diff --git a/Frontend Angular 4/src/app/shared/config.ts b/Frontend Angular 4/src/app/shared/config.ts
index e5b48168ac6ac14bb205b1a53d1043eec5ae2f16..269b0832a942fff97480651e814f48f506bb2fa2 100644
--- a/Frontend Angular 4/src/app/shared/config.ts	
+++ b/Frontend Angular 4/src/app/shared/config.ts	
@@ -1,9 +1,9 @@
 //export const SERVER = 'https://matefun.mybluemix.net';
 //export const GHCI_URL = 'wss://matefun.mybluemix.net/endpoint';
 
-export const SERVER = 'http://localhost:9090';
-export const GHCI_URL = 'ws://localhost:9090/endpoint';
+//export const SERVER = 'http://localhost:9090';
+//export const GHCI_URL = 'ws://localhost:9090/endpoint';
 
 //Configuracion dinamica pensando en servidor con ip dinamica
-//export const SERVER = window.location.protocol + '//' + window.location.host;//'http://localhost:9090';
-//export const GHCI_URL = window.location.protocol == 'http:'?  'ws://'+window.location.host+'/endpoint': 'wss://'+window.location.host+'/endpoint';
+export const SERVER = window.location.protocol + '//' + window.location.host;//'http://localhost:9090';
+export const GHCI_URL = window.location.protocol == 'http:'?  'ws://'+window.location.host+'/endpoint': 'wss://'+window.location.host+'/endpoint';
diff --git a/Servidor JEE/WebContent/0.1cf3c981b4810009465b.chunk.js b/Servidor JEE/WebContent/0.1cf3c981b4810009465b.chunk.js
deleted file mode 100644
index 23de52ca6e826063a9ed5b8241cbba5d7c083999..0000000000000000000000000000000000000000
--- a/Servidor JEE/WebContent/0.1cf3c981b4810009465b.chunk.js	
+++ /dev/null
@@ -1 +0,0 @@
-webpackJsonp([0],{"+0Ji":function(t,e,n){"use strict";var i=n("bKpL"),r=n("l/Fw");i.Observable.prototype.sample=r.sample},"+E40":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.justify="start",this.type="tabs"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"+Ve+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("I3ay");i.Observable.prototype.concatAll=r.concatAll},"+c7d":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.combineLatest.apply(void 0,t)(this)}var r=n("H4tt");e.combineLatest=i},"+iRM":function(t,e,n){"use strict";var i=n("uiTn"),r=n("azLz");n.n(r);n.d(e,"a",function(){return o});var o=function(){function t(t){this.notifService=t,this.alerts=[]}return t.prototype.ngOnInit=function(){var t=this;this.notifService.getMessageSubject().subscribe(function(e){t.alerts.push(e),setTimeout(function(){t.closeAlert(0)},5e3)})},t.prototype.closeAlert=function(t){this.alerts.splice(t,1)},t.ctorParameters=function(){return[{type:i.a}]},t}()},"+oJC":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){}return t.prototype.isMuted=function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)},t}();r.decorators=[{type:i.Component,args:[{selector:"[ngbDatepickerDayView]",styles:["\n    :host {\n      text-align: center;\n      width: 2rem;\n      height: 2rem;\n      line-height: 2rem;      \n      border-radius: 0.25rem;\n    }\n    :host.outside {\n      opacity: 0.5;\n    }\n  "],host:{"[class.bg-primary]":"selected","[class.text-white]":"selected","[class.text-muted]":"isMuted()","[class.outside]":"isMuted()","[class.btn-secondary]":"!disabled"},template:"{{ date.day }}"}]}],r.ctorParameters=function(){return[]},r.propDecorators={currentMonth:[{type:i.Input}],date:[{type:i.Input}],disabled:[{type:i.Input}],selected:[{type:i.Input}]}},"+vKo":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.buffer=i;var a=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingNotifier))},t}(),l=function(t){function e(e,n){t.call(this,e),this.buffer=[],this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(o.OuterSubscriber)},"/6Tg":function(t,e,n){"use strict";var i=n("KSV9"),r=n("GaSD"),o=n("/oeL");n.d(e,"a",function(){return s});var s=function(){function t(t){this._calendar=t}return t.prototype.generateMonthViewModel=function(t,e,n,i,o){var s={firstDate:null,number:t.month,year:t.year,weeks:[],weekdays:[]};t=this._getFirstViewDate(t,i);for(var a=0;a<this._calendar.getWeeksPerMonth();a++){for(var l=[],u=0;u<this._calendar.getDaysPerWeek();u++){0===a&&s.weekdays.push(this._calendar.getWeekday(t));var c=new r.a(t.year,t.month,t.day),h=e&&c.before(e)||n&&c.after(n);!h&&o&&(h=o(c,{month:s.number,year:s.year})),null===s.firstDate&&t.month===s.number&&(s.firstDate=c),l.push({date:c,disabled:h}),t=this._calendar.getNext(t)}s.weeks.push({number:this._calendar.getWeekNumber(l.map(function(t){return r.a.from(t.date)}),i),days:l})}return s},t.prototype.toValidDate=function(t,e){var n=r.a.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e},t.prototype._getFirstViewDate=function(t,e){for(var n=this,i=t.month,o=new r.a(t.year,t.month,t.day),s=this._calendar.getPrev(o);!function(){return o.month!==i&&e===n._calendar.getWeekday(o)}()&&!function(){return o.month!==s.month&&e===n._calendar.getWeekday(o)}();)o=new r.a(s.year,s.month,s.day),s=this._calendar.getPrev(s);return o},t}();s.decorators=[{type:o.Injectable}],s.ctorParameters=function(){return[{type:i.a}]}},"/9bB":function(t,e,n){"use strict";function i(){return r.materialize()(this)}var r=n("L0Qg");e.materialize=i},"/amm":function(t,e,n){"use strict";var i=n("bKpL"),r=n("60yU");i.Observable.prototype.repeatWhen=r.repeatWhen},"/h+r":function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=o.async),function(i){var r=s.isDate(t),o=r?+t-n.now():Math.abs(t);return i.lift(new u(o,r,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("yW9Z"),l=n("ktfo");e.timeoutWith=i;var u=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),c=function(t){function e(e,n,i,r,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=i,this.withObservable=r,this.scheduler=o,this.action=null,this.scheduleTimeout()}return r(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(l.subscribeToResult(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(a.OuterSubscriber)},"/zHi":function(t,e,n){"use strict";var i=n("bKpL"),r=n("+zVg");i.Observable.of=r.of},"0H8/":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.editable=!0,this.focusFirst=!0,this.showHint=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"0I3B":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.zip.apply(void 0,t)(this)}var r=n("SBOU");e.zipProto=i},"0L2s":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return i(e,t),e}(Error);e.TimeoutError=r},"0WLp":function(t,e,n){"use strict";var i=n("/oeL"),r=n("Zz+K"),o=n("wnyu"),s=n("EoP3"),a=n("2waW"),l=n("PY9B"),u=n("IBeK"),c=n("g5gQ"),h=n("xBEz"),p=n("PuIS"),f=n("U0Tu"),d=n("3rU7"),m=n("Cb36"),v=n("5h8W"),g=n("6ade"),b=n("4HaF"),y=n("DaIH");n.d(e,"a",function(){return x}),n.d(e,"b",function(){return S});var w=[r.a,o.a,s.a,a.a,l.a,u.a,c.a,h.a,p.a,f.a,d.a,m.a,v.a,g.a,b.a,y.a],x=function(){function t(){}return t}();x.decorators=[{type:i.NgModule,args:[{imports:[o.a.forRoot(),s.a.forRoot(),l.a.forRoot(),d.a.forRoot(),b.a.forRoot(),y.a.forRoot(),r.a.forRoot(),a.a.forRoot(),u.a.forRoot(),c.a.forRoot(),h.a.forRoot(),p.a.forRoot(),f.a.forRoot(),d.a.forRoot(),m.a.forRoot(),v.a.forRoot(),g.a.forRoot(),b.a.forRoot()],exports:w}]}],x.ctorParameters=function(){return[]};var S=function(){function t(){}return t.forRoot=function(){return{ngModule:x}},t}();S.decorators=[{type:i.NgModule,args:[{imports:w,exports:w}]}],S.ctorParameters=function(){return[]}},"0dhf":function(t,e,n){"use strict";function i(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new s(t,n,!1,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.find=i;var s=function(){function t(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=s;var a=function(t){function e(e,n,i,r,o){t.call(this,e),this.predicate=n,this.source=i,this.yieldIndex=r,this.thisArg=o,this.index=0}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this,n=e.predicate,i=e.thisArg,r=this.index++;try{n.call(i||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(o.Subscriber);e.FindValueSubscriber=a},"0imh":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("yR50"),s=n("xFbG"),a=n("GDiU"),l=n("Lhvy"),u=n("g0Kb"),c=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=i,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return i(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new h(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),i=this.scheduler;if(this.closed)throw new l.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new u.SubjectSubscription(this,t)),i&&t.add(t=new a.ObserveOnSubscriber(t,i));for(var r=n.length,o=0;o<r&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(r.Subject);e.ReplaySubject=c;var h=function(){function t(t,e){this.time=t,this.value=e}return t}()},"0lA3":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.switchMapTo=i;var a=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.observable,this.resultSelector))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.inner=n,this.resultSelector=i,this.index=0}return r(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(t,e,n,i):a.next(e)},e.prototype.tryResultSelector=function(t,e,n,i){var r,o=this,s=o.resultSelector,a=o.destination;try{r=s(t,e,n,i)}catch(t){return void a.error(t)}a.next(r)},e}(o.OuterSubscriber)},"0mJJ":function(t,e,n){"use strict";function i(t,e){return r.concatMap(function(){return t},e)}var r=n("+FJ1");e.concatMapTo=i},"0nG5":function(t,e,n){"use strict";function i(t){return r.min(t)(this)}var r=n("y3SI");e.min=i},"0vel":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("/oeL"),r=n("qbdv"),o=n("nfVm"),s=function(){function t(){}return t}();s.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[o.CodemirrorComponent],exports:[o.CodemirrorComponent]}]}],s.ctorParameters=function(){return[]},e.CodemirrorModule=s},"1Dsc":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){}return t}();r.decorators=[{type:i.Component,args:[{selector:"ngb-modal-backdrop",template:"",host:{class:"modal-backdrop fade show"}}]}],r.ctorParameters=function(){return[]}},"1VPd":function(t,e,n){"use strict";var i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=i},"1dXy":function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B");n.d(e,"c",function(){return s}),n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l});var o={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return s}),multi:!0},s=function(){function t(){this._radios=new Set,this._value=null,this.onChange=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this.setDisabledState(t)},enumerable:!0,configurable:!0}),t.prototype.onRadioChange=function(t){this.writeValue(t.value),this.onChange(t.value)},t.prototype.onRadioValueUpdate=function(){this._updateRadiosValue()},t.prototype.register=function(t){this._radios.add(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._disabled=t,this._updateRadiosDisabled()},t.prototype.unregister=function(t){this._radios.delete(t)},t.prototype.writeValue=function(t){this._value=t,this._updateRadiosValue()},t.prototype._updateRadiosValue=function(){var t=this;this._radios.forEach(function(e){return e.updateValue(t._value)})},t.prototype._updateRadiosDisabled=function(){this._radios.forEach(function(t){return t.updateDisabled()})},t}();s.decorators=[{type:i.Directive,args:[{selector:"[ngbRadioGroup]",host:{"data-toggle":"buttons",class:"btn-group",role:"group"},providers:[o]}]}],s.ctorParameters=function(){return[]};var a=function(){function t(t,e){this._renderer=t,this._elRef=e}return Object.defineProperty(t.prototype,"active",{set:function(t){t?this._renderer.addClass(this._elRef.nativeElement,"active"):this._renderer.removeClass(this._elRef.nativeElement,"active")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){t?this._renderer.addClass(this._elRef.nativeElement,"disabled"):this._renderer.removeClass(this._elRef.nativeElement,"disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{set:function(t){t?this._renderer.addClass(this._elRef.nativeElement,"focus"):this._renderer.removeClass(this._elRef.nativeElement,"focus")},enumerable:!0,configurable:!0}),t}();a.decorators=[{type:i.Directive,args:[{selector:"label.btn"}]}],a.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]};var l=function(){function t(t,e,n,i){this._group=t,this._label=e,this._renderer=n,this._element=i,this._value=null,this._group&&this._group.register(this)}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t;var e=t?t.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",e),this._group&&this._group.onRadioValueUpdate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=!!this._element.nativeElement.hasAttribute("checked")||t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._group&&this._group.disabled||this._disabled},set:function(t){this._disabled=!1!==t,this.updateDisabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{set:function(t){this._label&&(this._label.focused=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._group&&this._group.unregister(this)},t.prototype.onChange=function(){this._group&&this._group.onRadioChange(this)},t.prototype.updateValue=function(t){this._checked=this.value===t&&null!==t,this._label.active=this._checked},t.prototype.updateDisabled=function(){var t=this._group&&this._group.disabled||this._disabled;this._label&&(this._label.disabled=t)},t}();l.decorators=[{type:i.Directive,args:[{selector:"input[type=radio]",host:{"[checked]":"checked","[disabled]":"disabled","(change)":"onChange()","(focus)":"focused = true","(blur)":"focused = false"}}]}],l.ctorParameters=function(){return[{type:s,decorators:[{type:i.Optional}]},{type:a,decorators:[{type:i.Optional}]},{type:i.Renderer2},{type:i.ElementRef}]},l.propDecorators={value:[{type:i.Input,args:["value"]}],checked:[{type:i.Input,args:["checked"]}],disabled:[{type:i.Input,args:["disabled"]}]}},"1kAr":function(t,e,n){"use strict";function i(t){return r.mapTo(t)(this)}var r=n("6d3x");e.mapTo=i},"1pbG":function(t,e,n){"use strict";var i=n("bKpL"),r=n("NkQZ");i.Observable.prototype.switchMapTo=r.switchMapTo},"23I1":function(t,e,n){"use strict";var i=n("MzWM");e.defer=i.DeferObservable.create},"2Rhf":function(t,e,n){"use strict";function i(t){return r.skipUntil(t)(this)}var r=n("UHtL");e.skipUntil=i},"2Sjb":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("RdI5"),a=n("XRvs");e.distinctUntilChanged=i;var l=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.keySelector=i,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return r(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,n=t;if(e&&(n=s.tryCatch(this.keySelector)(t))===a.errorObject)return this.destination.error(a.errorObject.e);var i=!1;if(this.hasKey){if((i=s.tryCatch(this.compare)(this.key,n))===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;!1===Boolean(i)&&(this.key=n,this.destination.next(t))},e}(o.Subscriber)},"2UX5":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.timeout(t,e)(this)}var r=n("IhB/"),o=n("qbt9");e.timeout=i},"2l91":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.debounce=i;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1,this.durationSubscription=null}return r(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=s.subscribeToResult(this,e),n.closed||this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.OuterSubscriber)},"2qVr":function(t,e,n){"use strict";var i=n("Dqrr"),r=(n.n(i),n("6akk")),o=n("5FRs"),s=n("P1Y9");n.n(s);n.d(e,"a",function(){return l});var a=/^color (errores|input|output|logs) (\d)$/g,l=function(){function t(t){this.authService=t,this.messages=new i.Subject,this.connection=void 0,this.cons=void 0,this.modoAvanzado=!1,this.clear=!1,this.error="",this.warnings=[],this.codemirrorRef=null,this.warningStepReaded=0,this.waitingForError=!1,this.waitingForWarning=!1,this.waitingForWarning2=!1,this.warningText="",this.lastError=-1,this.lastWarning=-1,this.console_error_class="jqconsole-asd",this.consoleBuffer=[],this.regex="/(<svg.*s*.*</svg>)/g",this.consola=void 0,this.jqconsole=void 0,console.log("contructor ghci"),this.conectarWS(o.b,t.getUser().cedula,t.getToken()),setInterval(this.checkConnection.bind(this),5e3),setInterval(this.doPing.bind(this),3e4)}return t.prototype.setCodemirrorRef=function(t){this.codemirrorRef=t},t.prototype.clearWarnings=function(){this.warnings=[]},t.prototype.getWarnings=function(){return this.warnings},t.prototype.loadFile=function(t,e){this.waitingForWarning=!0;var n={token:this.authService.getToken(),load:t,dependencias:[]};for(var i in e)n.dependencias.push(e[i]);this.connection.send(JSON.stringify(n))},t.prototype.reiniciarInterprete=function(){var t={token:this.authService.getToken(),restart:""};console.log(t),this.connection.send(JSON.stringify(t))},t.prototype.conectarWS=function(t,e,n){!e||!n||this.connection&&this.connection.readyState!=WebSocket.CLOSED||(this.connection=new WebSocket(t+"/"+e+"/"+n),this.connection.onopen=function(){console.log("Conexión con web socket exitosa")},this.connection.onclose=function(){console.log("Conexión con web socket cerrada")},this.connection.onmessage=this.onMessage.bind(this))},t.prototype.desconectarWS=function(){this.connection&&this.connection.close()},t.prototype.logConsole=function(t){this.consoleRef?this.consoleRef.Write(t,"jqconsole-logs"):(this.consoleBuffer.unshift({text:t,type:"jqconsole-logs"}),setTimeout(this.checkConsole.bind(this),100))},t.prototype.outputConsole=function(t){this.consoleRef?this.consoleRef.Write(t,"jqconsole-output"):(this.consoleBuffer.unshift({text:t,type:"jqconsole-output"}),setTimeout(this.checkConsole.bind(this),100))},t.prototype.errorConsole=function(t){this.consoleRef?this.consoleRef.Write(t,"jqconsole-errors"):(this.consoleBuffer.unshift({text:t,type:"jqconsole-errors"}),setTimeout(this.checkConsole.bind(this),100))},t.prototype.hayError=function(t){var e=-1;if(!this.waitingForError){try{var e=Number(JSON.parse(t).resultado.split("en línea")[1].split(",")[0].trim())-1;this.waitingForError=!0,this.lastError=e}catch(t){}return!1}var e=this.lastError;if(null!==this.codemirrorRef){this.codemirrorRef.setGutterMarker(e,"breakpoints",function(){var n=document.createElement("div");return n.id="error_"+e.toString(),n.style.width="15px",n.title=JSON.parse(t).resultado.split("OUT")[1].trim(),n.style.height="15px",n.style.marginLeft="-5px",n.style.cursor="pointer",n.style["background-image"]="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=')",n.innerHTML="<a href='@' title='cuidado , advertencia matefun'></a>",n}()),this.waitingForError=!1,this.lastError=-1}},t.prototype.resetGutters=function(){null!==this.codemirrorRef&&this.codemirrorRef.clearGutter("breakpoints")},t.prototype.hayWarnings=function(t){var e=-1,n=JSON.parse(t);if(1===this.warningStepReaded)try{var i=n.resultado.split("OUT")[1].trim();this.warningStepReaded=2,this.warningText=this.warningText+"\n\n"+i;var e=this.lastWarning,r=this.warningText,o=r.split("columna:")[1].split("}")[0],s=r.split("}")[1],a="En columna "+o+": "+s;if(null!==this.codemirrorRef){this.codemirrorRef.setGutterMarker(e,"breakpoints",function(){var t=document.createElement("div");return t.style.width="15px",t.style.height="15px",t.style.marginLeft="-5px",t.style.cursor="pointer",t.innerHTML="<a href='@' title='cuidado , advertencia matefun'></a>",t.title=a,t.style["background-image"]="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=')",t.innerHTML="",t}())}}catch(t){}if(0===this.warningStepReaded)try{var e=n.resultado.split("OUTAdvertencia:")[1].trim().split("línea:")[1].split(" ")[1]-1;this.lastWarning=e,this.warnings.push(e);var l=n.resultado.split("OUTAdvertencia:")[1].trim();this.warningStepReaded=1,this.warningText=l,this.waitingForWarning&&(this.outputConsole("El programa contiene advertencias\n"),this.waitingForWarning=!1)}catch(t){}},t.prototype.onMessage=function(t){this.modoAvanzado&&this.logConsole("Respuesta: "+t.data+"\n"),this.clear&&this.clearConsole();var e=t.data;if(this.hayError(e)?this.error="Error":this.error="",this.hayWarnings(e),2==this.warningStepReaded)return void(this.warningStepReaded=0);if(1!=this.warningStepReaded){var n=JSON.parse(e);if("salida"==n.tipo){var i=n.resultado.trim();if(i.startsWith("OUT"))this.outputConsole(i.substring(3)+"\n");else if(i.startsWith("IN")){var r=i.substring(3);void 0===this.consoleRef&&this.renderConsole(),this.consoleRef.SetPromptLabel(r),this.consoleRef.SetPromptText(""),this.startPrompt.bind(this),this.startPrompt()}}else"error"==n.tipo?this.modoAvanzado&&this.errorConsole(n.resultado+"\n"):"prompt"==n.tipo?(this.consoleRef.SetPromptLabel(n.resultado+">"),this.consoleRef.SetPromptText(""),this.startPrompt.bind(this),this.startPrompt()):"canvas"!=n.tipo&&"animacion"!=n.tipo&&"graph"!=n.tipo||(document.getElementById("FigurasBtn").click(),this.focusConsole(),this.messages.next(n))}},t.prototype.checkConsole=function(){if(this.consoleRef)for(;this.consoleBuffer.length>0;){var t=this.consoleBuffer.pop();this.consoleRef.Write(t.text,t.type)}else setTimeout(this.checkConsole.bind(this),500)},t.prototype.checkConnection=function(){var t=this.authService.getUser(),e=this.authService.getToken();!t||!e||this.connection&&this.connection.readyState!=WebSocket.CLOSED||this.conectarWS(o.b,t.cedula,e)},t.prototype.doPing=function(){var t=this.authService.getToken();if(this.connection&&this.connection.readyState==WebSocket.OPEN&&t){var e={token:t,ping:""};this.connection.send(JSON.stringify(e))}},t.prototype.sendLine=function(t){if(""!==t.trim()){var e={token:this.authService.getToken(),comando:t};console.log(e),this.connection&&this.connection.readyState==WebSocket.OPEN?this.connection.send(JSON.stringify(e)):this.errorConsole("Sin conexión al servidor...\n")}},t.prototype.startPrompt=function(){this.jqconsole.Prompt(!0,this.callback.bind(this))},t.prototype.focusConsole=function(){this.jqconsole.Focus()},t.prototype.clearConsole=function(){this.consoleRef.Reset(),this.startPrompt.bind(this),this.startPrompt(),this.clear=!1},t.prototype.callback=function(t){var e;e=this.procesarInput(t),e&&(this.modoAvanzado&&this.logConsole("Ejecutar: "+t+"\n"),this.sendLine.bind(this),this.sendLine(t)),this.startPrompt.bind(this),this.startPrompt()},t.prototype.procesarInput=function(t){var e,n=!1;if("limpiar"===(e=t.trim().toLocaleLowerCase()))this.clearConsole();else if("modo avanzado"===e)this.modoAvanzado=!0,this.logConsole("Modo avanzado activado\n");else if("modo normal"===e)this.modoAvanzado=!1,this.logConsole("Modo avanzado desactivado\n");else if("listar colores"===e)this.outputConsole("1 - Azul\n"),this.outputConsole("2 - Rojo\n"),this.outputConsole("3 - Verde\n"),this.outputConsole("4 - Verde oscuro\n"),this.outputConsole("5 - Blanco\n"),this.outputConsole("6 - Naranja\n"),this.outputConsole("7 - Gris\n"),this.outputConsole("8 - Gris oscuro\n"),this.outputConsole("9 - Marrón\n");else if(null!==e.match(a)){var i=e.split(" ")[1],r=t.split(" ")[2];this.jqconsoleColor(r,i),this.modoAvanzado&&this.logConsole("Color "+i+" seleccionado\n")}else n=!0;return n},t.prototype.getCSSColorName=function(t){return"1"===t?"rgb(77, 77, 255)":"2"===t?"rgb(255, 26, 26)":"3"===t?"rgb(0, 179, 60)":"4"===t?"rgb(0, 77, 0)":"5"===t?"rgb(255, 255, 255)":"6"===t?"rgb(255, 133, 51)":"7"===t?"rgb(204, 204, 179)":"8"===t?"rgb(102, 102, 102)":"9"===t?"rgb(101, 27, 27)":void 0},t.prototype.getJQConsoleClass=function(t){return"input"===t?".jqconsole-prompt":"error"===t?".jqconsole-error":"logs"===t?".jqconsole-logs":"output"===t?".jqconsole-output":void 0},t.prototype.jqconsoleColor=function(t,e){var n=this.getCSSColorName(t),i=this.getJQConsoleClass(e),r=document.createElement("style");if(r.type="text/css",r.innerHTML=i+" { color: "+n+"; }",document.getElementsByTagName("head")[0].appendChild(r),".jqconsole-prompt"===i){var o=document.createElement("style");o.type="text/css",o.innerHTML=".jqconsole-old-prompt { color: "+n+"; }",document.getElementsByTagName("head")[0].appendChild(o)}},t.prototype.renderConsole=function(){this.jqconsole?$("#console").replaceWith(this.consola):(void 0!=$("#console").jqconsole?(this.jqconsole=$("#console").jqconsole(""),this.consoleRef=this.jqconsole,this.startPrompt.bind(this),this.startPrompt()):this.rendered(),this.consola=$("#console"))},t.prototype.rendered=function(){setTimeout(this.renderConsole.bind(this),1e3)},t.ctorParameters=function(){return[{type:r.a}]},t}()},"2waW":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("hMLV"),s=n("f1rf");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:o.a,exports:o.a,imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},"3N4h":function(t,e,n){"use strict";function i(t){return r.window(t)(this)}var r=n("7tal");e.window=i},"3WPo":function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("/oeL"),s=n("taw3"),a=function(){function t(t){this.resolver=t,this.dialogs=[]}return t.prototype.addDialog=function(t,e,n){var i=this;n=n||{};var r=this.resolver.resolveComponentFactory(s.DialogWrapperComponent),o=this.element.createComponent(r,n.index),a=o.instance,l=a.addComponent(t);return void 0!==n.index?this.dialogs.splice(n.index,0,l):this.dialogs.push(l),setTimeout(function(){a.container.nativeElement.classList.add("show"),a.container.nativeElement.classList.add("in")}),n.autoCloseTimeout&&setTimeout(function(){i.removeDialog(l)},n.autoCloseTimeout),n.closeByClickingOutside&&a.closeByClickOutside(),n.backdropColor&&(a.container.nativeElement.style.backgroundColor=n.backdropColor),l.fillData(e)},t.prototype.removeDialog=function(t){var e=this,n=t.wrapper.container.nativeElement;n.classList.remove("show"),n.classList.remove("in"),setTimeout(function(){e._removeElement(t)},300)},t.prototype._removeElement=function(t){var e=this.dialogs.indexOf(t);e>-1&&(this.element.remove(e),this.dialogs.splice(e,1))},t.prototype.clear=function(){this.element.clear(),this.dialogs=[]},t}();i([o.ViewChild("element",{read:o.ViewContainerRef}),r("design:type",o.ViewContainerRef)],a.prototype,"element",void 0),a=i([o.Component({selector:"dialog-holder",template:"<template #element></template>"}),r("design:paramtypes",[o.ComponentFactoryResolver])],a),e.DialogHolderComponent=a},"3rU7":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("n/Gy"),s=n("Wv1e");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[o.a],exports:[o.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},"3yXI":function(t,e,n){"use strict";function i(t){return l["ɵvid"](0,[(t()(),l["ɵeld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),l["ɵted"](1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,l["ɵinlineInterpolate"](1,"",n.highlightClass,"")),t(e,1,0,e.parent.context.$implicit)})}function r(t){return l["ɵvid"](0,[(t()(),l["ɵted"](0,null,["",""]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit)})}function o(t){return l["ɵvid"](0,[(t()(),l["ɵand"](16777216,null,null,1,null,i)),l["ɵdid"](1,16384,null,0,u.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["ɵand"](16777216,null,null,1,null,r)),l["ɵdid"](3,16384,null,0,u.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["ɵand"](0,null,null,0))],function(t,e){t(e,1,0,e.context.odd),t(e,3,0,!e.context.odd)},null)}function s(t){return l["ɵvid"](2,[(t()(),l["ɵand"](16777216,null,null,1,null,o)),l["ɵdid"](1,802816,null,0,u.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,1,0,e.component.parts)},null)}function a(t){return l["ɵvid"](0,[(t()(),l["ɵeld"](0,0,null,null,1,"ngb-highlight",[],null,null,null,s,p)),l["ɵdid"](1,573440,null,0,c.a,[],null,null)],null,null)}var l=n("/oeL"),u=n("qbdv"),c=n("OPj5");n.d(e,"b",function(){return p}),e.a=s;var h=[".ngb-highlight[_ngcontent-%COMP%] {\n      font-weight: bold;\n    }"],p=l["ɵcrt"]({encapsulation:0,styles:h,data:{}});l["ɵccf"]("ngb-highlight",c.a,a,{highlightClass:"highlightClass",result:"result",term:"term"},{},[])},"4HZJ":function(t,e,n){"use strict";function i(t,e,n){return function(i){return i.lift(new s(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.tap=i;var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,i,r){t.call(this,e);var s=new o.Subscriber(n,i,r);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return r(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},"4HaF":function(t,e,n){"use strict";var i=n("/oeL"),r=n("JFa0"),o=n("QGDq");n.d(e,"a",function(){return s});var s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();s.decorators=[{type:i.NgModule,args:[{declarations:[r.a,r.b],exports:[r.a],entryComponents:[r.b]}]}],s.ctorParameters=function(){return[]}},"4JlW":function(t,e,n){"use strict";var i=n("bKpL"),r=n("QgC4");i.Observable.webSocket=r.webSocket},"4Q/O":function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("KSV9"),s=n("GaSD"),a=n("/6Tg"),l=n("pd7P"),u=n("wM1e"),c=n("HRzg"),h=n("CuDZ");n.d(e,"a",function(){return f});var p={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return f}),multi:!0},f=function(){function t(t,e,n,r){this._service=t,this._calendar=e,this.i18n=n,this.months=[],this.navigate=new i.EventEmitter,this.disabled=!1,this.onChange=function(t){},this.onTouched=function(){},this.dayTemplate=r.dayTemplate,this.displayMonths=r.displayMonths,this.firstDayOfWeek=r.firstDayOfWeek,this.markDisabled=r.markDisabled,this.minDate=r.minDate,this.maxDate=r.maxDate,this.navigation=r.navigation,this.outsideDays=r.outsideDays,this.showWeekdays=r.showWeekdays,this.showWeekNumbers=r.showWeekNumbers,this.startDate=r.startDate}return t.prototype.getHeaderHeight=function(){var t=this.showWeekdays?6.25:4.25;return 1===this.displayMonths||"select"!==this.navigation?t-2:t},t.prototype.getHeaderMargin=function(){var t=this.showWeekdays?2:0;return 1!==this.displayMonths||"select"!==this.navigation?t+2:t},t.prototype.navigateTo=function(t){this._setViewWithinLimits(this._service.toValidDate(t)),this._updateData()},t.prototype.ngOnInit=function(){this._setDates(),this.navigateTo(this._date)},t.prototype.ngOnChanges=function(t){this._setDates(),this._setViewWithinLimits(this._date),t.displayMonths&&(this.displayMonths=n.i(u.b)(this.displayMonths)),["startDate","minDate","maxDate","navigation","firstDayOfWeek","markDisabled","displayMonths"].some(function(e){return!!t[e]})&&this._updateData(!0)},t.prototype.onDateSelect=function(t){this._setViewWithinLimits(t),this.onTouched(),this.writeValue(t),this.onChange({year:t.year,month:t.month,day:t.day}),this._date.month!==this.months[0].number&&1===this.displayMonths&&this._updateData()},t.prototype.onNavigateDateSelect=function(t){this._setViewWithinLimits(t),this._updateData()},t.prototype.onNavigateEvent=function(t){switch(t){case l.a.PREV:this._setViewWithinLimits(this._calendar.getPrev(this.months[0].firstDate,"m"));break;case l.a.NEXT:this._setViewWithinLimits(this._calendar.getNext(this.months[0].firstDate,"m"))}this._updateData()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.writeValue=function(t){this.model=this._service.toValidDate(t,null)},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._setDates=function(){if(this._maxDate=s.a.from(this.maxDate),this._minDate=s.a.from(this.minDate),this._date=this._service.toValidDate(this.startDate),this._calendar.isValid(this._minDate)||(this._minDate=this._calendar.getPrev(this._date,"y",10),this.minDate={year:this._minDate.year,month:this._minDate.month,day:this._minDate.day}),this._calendar.isValid(this._maxDate)||(this._maxDate=this._calendar.getNext(this._date,"y",11),this._maxDate=this._calendar.getPrev(this._maxDate),this.maxDate={year:this._maxDate.year,month:this._maxDate.month,day:this._maxDate.day}),this._minDate&&this._maxDate&&this._maxDate.before(this._minDate))throw new Error("'maxDate' "+this._maxDate+" should be greater than 'minDate' "+this._minDate)},t.prototype._setViewWithinLimits=function(t){this._minDate&&t.before(this._minDate)?this._date=new s.a(this._minDate.year,this._minDate.month,1):this._maxDate&&t.after(this._maxDate)?this._date=new s.a(this._maxDate.year,this._maxDate.month,1):this._date=new s.a(t.year,t.month,1)},t.prototype._updateData=function(t){void 0===t&&(t=!1);for(var e=[],i=this,r=0;r<this.displayMonths;r++)!function(r){var o=i._calendar.getNext(i._date,"m",r),s=i.months.findIndex(function(t){return t.firstDate.equals(o)});t||-1===s?e.push(i._service.generateMonthViewModel(o,i._minDate,i._maxDate,n.i(u.b)(i.firstDayOfWeek),i.markDisabled)):e.push(i.months[s])}(r);var o=e[0].firstDate,s=this.months[0]?this.months[0].firstDate:null;this.months=e,o.equals(s)||this.navigate.emit({current:s?{year:s.year,month:s.month}:null,next:{year:o.year,month:o.month}})},t}();f.decorators=[{type:i.Component,args:[{exportAs:"ngbDatepicker",selector:"ngb-datepicker",host:{class:"d-inline-block rounded"},styles:["\n    :host {\n      border: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-header {\n      border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-month {\n      pointer-events: none;\n    }\n    ngb-datepicker-month-view {\n      pointer-events: auto;\n    }\n    .ngb-dp-month:first-child {\n      margin-left: 0 !important;\n    }    \n    .ngb-dp-month-name {\n      font-size: larger;\n      height: 2rem;\n      line-height: 2rem;\n    }    \n  "],template:'\n    <ng-template #dt let-date="date" let-currentMonth="currentMonth" let-selected="selected" let-disabled="disabled">\n       <div ngbDatepickerDayView [date]="date" [currentMonth]="currentMonth" [selected]="selected" [disabled]="disabled"></div>\n    </ng-template>\n    \n    <div class="ngb-dp-header bg-faded pt-1 rounded-top" [style.height.rem]="getHeaderHeight()" \n      [style.marginBottom.rem]="-getHeaderMargin()">\n      <ngb-datepicker-navigation *ngIf="navigation !== \'none\'"\n        [date]="months[0]?.firstDate"\n        [minDate]="_minDate"\n        [maxDate]="_maxDate"\n        [months]="months.length"\n        [disabled]="disabled"\n        [showWeekNumbers]="showWeekNumbers"\n        [showSelect]="navigation === \'select\'"\n        (navigate)="onNavigateEvent($event)"\n        (select)="onNavigateDateSelect($event)">\n      </ngb-datepicker-navigation>\n    </div>\n\n    <div class="ngb-dp-months d-flex px-1 pb-1">\n      <ng-template ngFor let-month [ngForOf]="months" let-i="index">\n        <div class="ngb-dp-month d-block ml-3">            \n          <div *ngIf="navigation !== \'select\' || displayMonths > 1" class="ngb-dp-month-name text-center">\n            {{ i18n.getMonthFullName(month.number) }} {{ month.year }}\n          </div>\n          <ngb-datepicker-month-view\n            [month]="month"\n            [selectedDate]="model"\n            [dayTemplate]="dayTemplate || dt"\n            [showWeekdays]="showWeekdays"\n            [showWeekNumbers]="showWeekNumbers"\n            [disabled]="disabled"\n            [outsideDays]="displayMonths === 1 ? outsideDays : \'hidden\'"\n            (select)="onDateSelect($event)">\n          </ngb-datepicker-month-view>\n        </div>\n      </ng-template>\n    </div>\n  ',providers:[p,a.a]}]}],f.ctorParameters=function(){return[{type:a.a},{type:o.a},{type:h.a},{type:c.a}]},f.propDecorators={dayTemplate:[{type:i.Input}],displayMonths:[{type:i.Input}],firstDayOfWeek:[{type:i.Input}],markDisabled:[{type:i.Input}],minDate:[{type:i.Input}],maxDate:[{type:i.Input}],navigation:[{type:i.Input}],outsideDays:[{type:i.Input}],showWeekdays:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],startDate:[{type:i.Input}],navigate:[{type:i.Output}]}},"4cv6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Dqrr"),r=function(){function t(t){this.dialogService=t}return t.prototype.fillData=function(t){var e=this;t=t||{};for(var n=Object.keys(t),r=0,o=n.length;r<o;r++){var s=n[r];this[s]=t[s]}return i.Observable.create(function(t){return e.observer=t,function(){e.close()}})},t.prototype.close=function(){this.dialogService.removeDialog(this)},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.next(this.result)},t}();e.DialogComponent=r},"4thQ":function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};t.defineMode("xml",function(i,r){function o(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();if("<"==i)return t.eat("!")?t.eat("[")?t.match("CDATA[")?n(l("atom","]]>")):null:t.match("--")?n(l("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(u(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=l("meta","?>"),"meta"):(T=t.eat("/")?"closeTag":"openTag",e.tokenize=s,"tag bracket");if("&"==i){var r;return r=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),r?"atom":"error"}return t.eatWhile(/[^&<]/),null}function s(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=o,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){e.tokenize=o,e.state=f,e.tagName=e.tagStart=null;var i=e.tokenize(t,e);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=a(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=s;break}return"string"};return e.isInAttribute=!0,e}function l(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=o;break}n.next()}return t}}function u(t){return function(e,n){for(var i;null!=(i=e.next());){if("<"==i)return n.tokenize=u(t+1),n.tokenize(e,n);if(">"==i){if(1==t){n.tokenize=o;break}return n.tokenize=u(t-1),n.tokenize(e,n)}}return"meta"}}function c(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(C.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function p(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!C.contextGrabbers.hasOwnProperty(n)||!C.contextGrabbers[n].hasOwnProperty(e))return;h(t)}}function f(t,e,n){return"openTag"==t?(n.tagStart=e.column(),d):"closeTag"==t?m:f}function d(t,e,n){return"word"==t?(n.tagName=e.current(),_="tag",b):(_="error",d)}function m(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&C.implicitlyClosed.hasOwnProperty(n.context.tagName)&&h(n),n.context&&n.context.tagName==i||!1===C.matchClosing?(_="tag",v):(_="tag error",g)}return _="error",g}function v(t,e,n){return"endTag"!=t?(_="error",v):(h(n),f)}function g(t,e,n){return _="error",v(t,e,n)}function b(t,e,n){if("word"==t)return _="attribute",y;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||C.autoSelfClosers.hasOwnProperty(i)?p(n,i):(p(n,i),n.context=new c(n,i,r==n.indented)),f}return _="error",b}function y(t,e,n){return"equals"==t?w:(C.allowMissing||(_="error"),b(t,e,n))}function w(t,e,n){return"string"==t?x:"word"==t&&C.allowUnquoted?(_="string",b):(_="error",b(t,e,n))}function x(t,e,n){return"string"==t?x:b(t,e,n)}var S=i.indentUnit,C={},O=r.htmlMode?e:n;for(var k in O)C[k]=O[k];for(var k in r)C[k]=r[k];var T,_;return o.isInText=!0,{startState:function(t){var e={tokenize:o,state:f,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;T=null;var n=e.tokenize(t,e);return(n||T)&&"comment"!=n&&(_=null,e.state=e.state(T||n,t,e),_&&(n="error"==_?n+" error":_)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+S;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=s&&e.tokenize!=o)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==C.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+S*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var a=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(a&&a[1])for(;r;){if(r.tagName==a[2]){r=r.prev;break}if(!C.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(a)for(;r;){var l=C.contextGrabbers[r.tagName];if(!l||!l.hasOwnProperty(a[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+S:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(t){t.state==w&&(t.state=b)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"56vs":function(t,e,n){"use strict";function i(t){return r.skipWhile(t)(this)}var r=n("aL6N");e.skipWhile=i},"59zy":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.max=10,this.readonly=!1,this.resettable=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"5FRs":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=window.location.protocol+"//"+window.location.host,r="http:"==window.location.protocol?"ws://"+window.location.host+"/endpoint":"wss://"+window.location.host+"/endpoint"},"5FV4":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.closeOthers=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"5NGA":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=null),function(n){return n.lift(new s(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.bufferCount=i;var s=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?l:a}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),a=function(t){function e(e,n){t.call(this,e),this.bufferSize=n,this.buffer=[]}return r(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(o.Subscriber),l=function(t){function e(e,n,i){t.call(this,e),this.bufferSize=n,this.startBufferEvery=i,this.buffers=[],this.count=0}return r(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,i=e.startBufferEvery,r=e.buffers,o=e.count;this.count++,o%i==0&&r.push([]);for(var s=r.length;s--;){var a=r[s];a.push(t),a.length===n&&(r.splice(s,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this,n=e.buffers,i=e.destination;n.length>0;){var r=n.shift();r.length>0&&i.next(r)}t.prototype._complete.call(this)},e}(o.Subscriber)},"5h8W":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("Hjei"),s=n("+E40");n.d(e,"a",function(){return l});var a=[o.a,o.b,o.c,o.d],l=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();l.decorators=[{type:i.NgModule,args:[{declarations:a,exports:a,imports:[r.CommonModule]}]}],l.ctorParameters=function(){return[]}},"5p6H":function(t,e,n){"use strict";var i=n("bKpL"),r=n("TIdC");i.Observable.prototype.mergeAll=r.mergeAll},"5r3W":function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),function(e){return e.lift(new s(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.retry=i;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,i){t.call(this,e),this.count=n,this.source=i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this,i=n.source,r=n.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),i.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},"5uCp":function(t,e,n){"use strict";var i=n("bKpL"),r=n("Lqs2");i.Observable.prototype.take=r.take},"5v8a":function(t,e,n){"use strict";var i=n("bKpL"),r=n("lx+J");i.Observable.prototype.map=r.map},"5x23":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.takeWhile=i;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(o.Subscriber)},"60lp":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=a.async),function(n){return n.lift(new l(t,e))}}function r(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/");e.sampleTime=i;var l=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.period,this.scheduler))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.period=n,this.scheduler=i,this.hasValue=!1,this.add(i.schedule(r,n,{subscriber:this,period:n}))}return o(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(s.Subscriber)},"60yU":function(t,e,n){"use strict";function i(t){return r.repeatWhen(t)(this)}var r=n("g9kf");e.repeatWhen=i},"67Ck":function(t,e,n){"use strict";var i=n("bKpL"),r=n("56vs");i.Observable.prototype.skipWhile=r.skipWhile},"6DBm":function(t,e,n){"use strict";var i=n("bKpL"),r=n("+c7d");i.Observable.prototype.combineLatest=r.combineLatest},"6JjX":function(t,e,n){"use strict";function i(){return r.switchAll()(this)}var r=n("rhfi");e._switch=i},"6NKQ":function(t,e,n){"use strict";var i=n("bKpL"),r=n("kkQ5");i.Observable.prototype.scan=r.scan},"6P86":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,i=null;return r.isScheduler(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),new s.ArrayObservable(t,i).lift(new a.CombineLatestOperator(n))}var r=n("MicL"),o=n("NSJx"),s=n("wZOE"),a=n("H4tt");e.combineLatest=i},"6QEA":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("xFbG"),s=n("ktfo"),a=n("yW9Z");e.bufferToggle=i;var l=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.openings,this.closingSelector))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.openings=n,this.closingSelector=i,this.contexts=[],this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector,n=e.call(this,t);n&&this.trySubscribe(n)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,i=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=[],i=new o.Subscription,r={buffer:n,subscription:i};e.push(r);var a=s.subscribeToResult(this,t,r);!a||a.closed?this.closeBuffer(r):(a.context=r,this.add(a),i.add(a))},e}(a.OuterSubscriber)},"6ade":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("L5DB"),s=n("V6Dl");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[o.a],exports:[o.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},"6akk":function(t,e,n){"use strict";var i=n("CPp0"),r=n("5v8a"),o=(n.n(r),n("5FRs"));n.d(e,"a",function(){return s});var s=function(){function t(t){this.http=t}return t.prototype.login=function(t,e){var n=new i.l({"Content-Type":"application/json"}),r=new i.g({headers:n});return this.http.post(o.a+"/servicios/login",JSON.stringify({cedula:t,password:e}),r).map(function(t){var e=t.json();sessionStorage.setItem("currentUser",JSON.stringify(e))})},t.prototype.getUser=function(){return JSON.parse(sessionStorage.getItem("currentUser"))},t.prototype.getUserConfig=function(){return JSON.parse(sessionStorage.getItem("currentUser")).configuracion},t.prototype.getToken=function(){var t=JSON.parse(sessionStorage.getItem("currentUser"));return t?t.token:void 0},t.prototype.setUserConfig=function(t){var e=JSON.parse(sessionStorage.getItem("currentUser"));e.configuracion=t,sessionStorage.setItem("currentUser",JSON.stringify(e))},t.prototype.logout=function(){sessionStorage.removeItem("currentUser")},t.ctorParameters=function(){return[{type:i.i}]},t}()},"6d3x":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.mapTo=i;var s=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},t}(),a=function(t){function e(e,n){t.call(this,e),this.value=n}return r(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.Subscriber)},"6jp4":function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}e.isDate=i},"6nek":function(t,e,n){"use strict";var i=n("q+5A");e.interval=i.IntervalObservable.create},"75Hr":function(t,e,n){"use strict";function i(t,e,n,i){var r=o.positionElements(t,e,n,i);e.style.top=r.top+"px",e.style.left=r.left+"px"}e.a=i;var r=function(){function t(){}return t.prototype.getStyle=function(t,e){return window.getComputedStyle(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){void 0===e&&(e=!0);var n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect();else{var r=this.offsetParent(t);n=this.offset(t,!1),r!==document.documentElement&&(i=this.offset(r,!1)),i.top+=r.clientTop,i.left+=r.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),i={top:window.pageYOffset-document.documentElement.clientTop,left:window.pageXOffset-document.documentElement.clientLeft},r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i.top,bottom:n.bottom+i.top,left:n.left+i.left,right:n.right+i.left};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,i){var r=i?this.offset(t,!1):this.position(t,!1),o={left:r.left,center:r.left+r.width/2-e.offsetWidth/2,right:r.left+r.width},s={top:r.top,center:r.top+r.height/2-e.offsetHeight/2,bottom:r.top+r.height},a=e.getBoundingClientRect(),l=n.split("-")[0]||"top",u=n.split("-")[1]||"center",c={height:a.height||e.offsetHeight,width:a.width||e.offsetWidth,top:0,bottom:a.height||e.offsetHeight,left:0,right:a.width||e.offsetWidth};switch(l){case"top":c.top=r.top-e.offsetHeight,c.bottom+=r.top-e.offsetHeight,c.left=o[u],c.right+=o[u];break;case"bottom":c.top=s[l],c.bottom+=s[l],c.left=o[u],c.right+=o[u];break;case"left":c.top=s[u],c.bottom+=s[u],c.left=r.left-e.offsetWidth,c.right+=r.left-e.offsetWidth;break;case"right":c.top=s[u],c.bottom+=s[u],c.left=o[l],c.right+=o[l]}return c.top=Math.round(c.top),c.bottom=Math.round(c.bottom),c.left=Math.round(c.left),c.right=Math.round(c.right),c},t}(),o=new r},"7Obz":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(r.AsyncScheduler);e.AnimationFrameScheduler=o},"7PW3":function(t,e,n){"use strict";var i=n("T5Q1");e.using=i.UsingObservable.create},"7dLC":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.race.apply(void 0,t)(this)}var r=n("XWpj"),o=n("YofN");e.raceStatic=o.race,e.race=i},"7kbP":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&r.isScheduler(t[1])?s.from(t[0]):a.concatAll()(o.of.apply(void 0,t))}var r=n("MicL"),o=n("+zVg"),s=n("7JOC"),a=n("NiCh");e.concat=i},"7rqg":function(t,e,n){"use strict";var i=n("bKpL"),r=n("TQn8");i.Observable.prototype.concatMap=r.concatMap},"7tal":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new l(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("yW9Z"),a=n("ktfo");e.window=i;var l=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new u(t),i=e.subscribe(n);return i.closed||n.add(a.subscribeToResult(n,this.windowBoundaries)),i},t}(),u=function(t){function e(e){t.call(this,e),this.window=new o.Subject,e.next(this.window)}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new o.Subject;e.next(n)},e}(s.OuterSubscriber)},"7u+W":function(t,e,n){"use strict";var i=n("bKpL"),r=n("QU9E");i.Observable.fromPromise=r.fromPromise},"7xz3":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new r.CombineLatestOperator(t))}}var r=n("H4tt");e.combineAll=i},"7zUS":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.placement="top",this.triggers="click"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"82j9":function(t,e){},"86mp":function(t,e,n){"use strict";var i=n("bKpL"),r=n("s6AU");i.Observable.prototype.takeWhile=r.takeWhile},"89am":function(t,e,n){"use strict";var i=n("bKpL"),r=n("vokw");i.Observable.prototype.expand=r.expand},"8Ben":function(t,e,n){"use strict";function i(t){return t(this)}e.letProto=i},"8H5Y":function(t,e,n){"use strict";function i(t,e,n,i){return function(r){return r.lift(new h(t,e,n,i))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("xFbG"),a=n("bKpL"),l=n("rlar"),u=n("R61s"),c=n("etpI");e.groupBy=i;var h=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),p=function(t){function e(e,n,i,r,o){t.call(this,e),this.keySelector=n,this.elementSelector=i,this.durationSelector=r,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return r(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups="string"==typeof e?new c.FastMap:new u.Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(t){this.error(t)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new l.Subject,n.set(e,r);var o=new d(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new f(e,r,this)))}}r.closed||r.next(i)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(o.Subscriber),f=function(t){function e(e,n,i){t.call(this,n),this.key=e,this.group=n,this.parent=i}return r(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,e=t.parent,n=t.key;this.key=this.parent=null,e&&e.removeGroup(n)},e}(o.Subscriber),d=function(t){function e(e,n,i){t.call(this),this.key=e,this.groupSubject=n,this.refCountSubscription=i}return r(e,t),e.prototype._subscribe=function(t){var e=new s.Subscription,n=this,i=n.refCountSubscription,r=n.groupSubject;return i&&!i.closed&&e.add(new m(i)),e.add(r.subscribe(t)),e},e}(a.Observable);e.GroupedObservable=d;var m=function(t){function e(e){t.call(this),this.parent=e,e.count++}return r(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.Subscription)},"8Jh8":function(t,e,n){"use strict";function i(t){return r.takeUntil(t)(this)}var r=n("y3aq");e.takeUntil=i},"8efI":function(t,e,n){"use strict";function i(t,e){return r.distinct(t,e)(this)}var r=n("y+rW");e.distinct=i},"8pdA":function(t,e,n){"use strict";function i(t){var e=arguments.length,n=r.async;o.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),s.bufferTime(t,i,a,n)(this)}var r=n("IhB/"),o=n("MicL"),s=n("duFl");e.bufferTime=i},"99fb":function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";var e=/[\w$]+/;t.registerHelper("hint","anyword",function(n,i){for(var r=i&&i.word||e,o=i&&i.range||500,s=n.getCursor(),a=n.getLine(s.line),l=s.ch,u=l;u&&r.test(a.charAt(u-1));)--u;for(var c=u!=l&&a.slice(u,l),h=i&&i.list||[],p={},f=new RegExp(r.source,"g"),d=-1;d<=1;d+=2)for(var m=s.line,v=Math.min(Math.max(m+d*o,n.firstLine()),n.lastLine())+d;m!=v;m+=d)for(var g,b=n.getLine(m);g=f.exec(b);)m==s.line&&g[0]===c||c&&0!=g[0].lastIndexOf(c,0)||Object.prototype.hasOwnProperty.call(p,g[0])||(p[g[0]]=!0,h.push(g[0]));return{list:h,from:t.Pos(s.line,u),to:t.Pos(s.line,l)}})})},"9FjR":function(t,e,n){"use strict";function i(){return function(t){return t.lift(new s)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.pairwise=i;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return r(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(o.Subscriber)},"9jMf":function(t,e,n){"use strict";var i=n("bKpL"),r=n("Ohh6");i.Observable.prototype.startWith=r.startWith},"9lCb":function(t,e,n){"use strict";var i=n("bKpL"),r=n("GB+a");i.Observable.prototype.sequenceEqual=r.sequenceEqual},"9mSN":function(t,e,n){"use strict";var i=n("bKpL"),r=n("WAO4");i.Observable.prototype.timeoutWith=r.timeoutWith},"9mYp":function(t,e,n){"use strict";var i=n("r6G9");e.onErrorResumeNext=i.onErrorResumeNextStatic},"9tb5":function(t,e,n){"use strict";function i(t,e){return r.exhaustMap(t,e)(this)}var r=n("NzSV");e.exhaustMap=i},"9wNb":function(t,e,n){"use strict";var i=n("bKpL"),r=n("8efI");i.Observable.prototype.distinct=r.distinct},"A+1n":function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:["application/x-httpd-php","text/x-php"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.mime==e)return i;if(i.mimes)for(var r=0;r<i.mimes.length;r++)if(i.mimes[r]==e)return i}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.ext)for(var r=0;r<i.ext.length;r++)if(i.ext[r]==e)return i}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.file&&i.file.test(e))return i}var r=e.lastIndexOf("."),o=r>-1&&e.substring(r+1,e.length);if(o)return t.findModeByExtension(o)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.name.toLowerCase()==e)return i;if(i.alias)for(var r=0;r<i.alias.length;r++)if(i.alias[r].toLowerCase()==e)return i}}})},A1r7:function(t,e,n){"use strict";var i=n("bKpL"),r=n("buGu");i.Observable.prototype.defaultIfEmpty=r.defaultIfEmpty},ACG2:function(t,e,n){"use strict";var i=n("bKpL"),r=n("6nek");i.Observable.interval=r.interval},AHF9:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),r.observeOn(t,e)(this)}var r=n("GDiU");e.observeOn=i},ASfG:function(t,e,n){"use strict";function i(t){return function(e){return o.multicast(new r.BehaviorSubject(t))(e)}}var r=n("gvep"),o=n("P02W");e.publishBehavior=i},AVYa:function(t,e,n){"use strict";var i=n("/oeL"),r=n("zGKh");n.d(e,"a",function(){return o});var o=function(){function t(t,e){this._elRef=t,this._renderer=e,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.EventEmitter}return t.prototype.backdropClick=function(t){!0===this.backdrop&&this._elRef.nativeElement===t.target&&this.dismiss(r.a.BACKDROP_CLICK)},t.prototype.escKey=function(t){this.keyboard&&!t.defaultPrevented&&this.dismiss(r.a.ESC)},t.prototype.dismiss=function(t){this.dismissEvent.emit(t)},t.prototype.ngOnInit=function(){this._elWithFocus=document.activeElement,this._renderer.addClass(document.body,"modal-open")},t.prototype.ngAfterViewInit=function(){this._elRef.nativeElement.contains(document.activeElement)||this._elRef.nativeElement.focus.apply(this._elRef.nativeElement,[])},t.prototype.ngOnDestroy=function(){this._elWithFocus&&document.body.contains(this._elWithFocus)?this._elWithFocus.focus.apply(this._elWithFocus,[]):document.body.focus.apply(document.body,[]),this._elWithFocus=null,this._renderer.removeClass(document.body,"modal-open")},t}();o.decorators=[{type:i.Component,args:[{selector:"ngb-modal-window",host:{"[class]":'"modal fade show" + (windowClass ? " " + windowClass : "")',role:"dialog",tabindex:"-1",style:"display: block;","(keyup.esc)":"escKey($event)","(click)":"backdropClick($event)"},template:"\n    <div [class]=\"'modal-dialog' + (size ? ' modal-' + size : '')\" role=\"document\">\n        <div class=\"modal-content\"><ng-content></ng-content></div>\n    </div>\n    "}]}],o.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2}]},o.propDecorators={backdrop:[{type:i.Input}],keyboard:[{type:i.Input}],size:[{type:i.Input}],windowClass:[{type:i.Input}],dismissEvent:[{type:i.Output,args:["dismiss"]}]}},Af4u:function(t,e,n){"use strict";var i=n("bKpL"),r=n("YofN");i.Observable.race=r.race},Av3o:function(t,e,n){"use strict";var i=n("/oeL"),r=n("GaSD"),o=n("CuDZ");n.d(e,"a",function(){return s});var s=function(){function t(t){this.i18n=t,this.select=new i.EventEmitter}return t.prototype.doSelect=function(t){this.isDisabled(t)||this.isHidden(t)||this.select.emit(r.a.from(t.date))},t.prototype.isDisabled=function(t){return this.disabled||t.disabled},t.prototype.isSelected=function(t){return this.selectedDate&&this.selectedDate.equals(t)},t.prototype.isCollapsed=function(t){return"collapsed"===this.outsideDays&&t.days[0].date.month!==this.month.number&&t.days[t.days.length-1].date.month!==this.month.number},t.prototype.isHidden=function(t){return("hidden"===this.outsideDays||"collapsed"===this.outsideDays)&&this.month.number!==t.date.month},t}();s.decorators=[{type:i.Component,args:[{selector:"ngb-datepicker-month-view",host:{class:"d-block"},styles:["\n    .ngb-dp-weekday, .ngb-dp-week-number {\n      line-height: 2rem;\n    }\n    .ngb-dp-day, .ngb-dp-weekday, .ngb-dp-week-number {\n      width: 2rem;\n      height: 2rem;      \n    }\n    .ngb-dp-day {\n      cursor: pointer;\n    }\n    .ngb-dp-day.disabled, .ngb-dp-day.hidden {\n      cursor: default;\n    }\n  "],template:'\n    <div *ngIf="showWeekdays" class="ngb-dp-week d-flex">\n      <div *ngIf="showWeekNumbers" class="ngb-dp-weekday"></div>\n      <div *ngFor="let w of month.weekdays" class="ngb-dp-weekday small text-center text-info font-italic">\n        {{ i18n.getWeekdayShortName(w) }}\n      </div>\n    </div>\n    <ng-template ngFor let-week [ngForOf]="month.weeks">\n      <div *ngIf="!isCollapsed(week)" class="ngb-dp-week d-flex">\n        <div *ngIf="showWeekNumbers" class="ngb-dp-week-number small text-center font-italic text-muted">{{ week.number }}</div>\n        <div *ngFor="let day of week.days" (click)="doSelect(day)" class="ngb-dp-day" [class.disabled]="isDisabled(day)"\n         [class.hidden]="isHidden(day)">\n          <ng-template [ngIf]="!isHidden(day)">\n            <ng-template [ngTemplateOutlet]="dayTemplate"\n            [ngOutletContext]="{date: {year: day.date.year, month: day.date.month, day: day.date.day},\n              currentMonth: month.number,\n              disabled: isDisabled(day),\n              selected: isSelected(day.date)}">\n            </ng-template>\n          </ng-template>\n        </div>\n      </div>\n    </ng-template>\n  '}]}],s.ctorParameters=function(){return[{type:o.a}]},s.propDecorators={dayTemplate:[{type:i.Input}],disabled:[{type:i.Input}],month:[{type:i.Input}],outsideDays:[{type:i.Input}],selectedDate:[{type:i.Input}],showWeekdays:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],select:[{type:i.Output}]}},AzAY:function(t,e,n){"use strict";function i(t,e,n,i){return r.publishReplay(t,e,n,i)(this)}var r=n("z8/z");e.publishReplay=i},"B/As":function(t,e,n){"use strict";var i=n("bKpL"),r=n("ltng");i.Observable.range=r.range},BBvl:function(t,e,n){"use strict";var i=n("bKpL"),r=n("/9bB");i.Observable.prototype.materialize=r.materialize},BJqU:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=r.async),void 0===n&&(n=o.defaultThrottleConfig),s.throttleTime(t,e,n)(this)}var r=n("IhB/"),o=n("DrEP"),s=n("Rol4");e.throttleTime=i},BbOI:function(t,e,n){"use strict";var i=n("f7+7");e.bindNodeCallback=i.BoundNodeCallbackObservable.create},BdLl:function(t,e,n){"use strict";var i=n("bKpL"),r=n("vioa");i.Observable.timer=r.timer},C4ew:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new s)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.isEmpty=i;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},C8VA:function(t,e,n){"use strict";var i=n("/oeL"),r=n("uJci");n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var o=function(){function t(){}return t.prototype.close=function(t){},t.prototype.dismiss=function(t){},t}();o.decorators=[{type:i.Injectable}],o.ctorParameters=function(){return[]};var s=function(){function t(t,e,n){var i=this;this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,t.instance.dismissEvent.subscribe(function(t){i.dismiss(t)}),this.result=new Promise(function(t,e){i._resolve=t,i._reject=e}),this.result.then(null,function(){})}return Object.defineProperty(t.prototype,"componentInstance",{get:function(){if(this._contentRef.componentRef)return this._contentRef.componentRef.instance},set:function(t){},enumerable:!0,configurable:!0}),t.prototype.close=function(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())},t.prototype.dismiss=function(t){this._windowCmptRef&&(this._reject(t),this._removeModalElements())},t.prototype._removeModalElements=function(){var t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){var e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null},t}();s.decorators=[{type:i.Injectable}],s.ctorParameters=function(){return[{type:i.ComponentRef},{type:r.b},{type:i.ComponentRef}]}},"CH/r":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.debounceTime(t,e)(this)}var r=n("IhB/"),o=n("Hr+Y");e.debounceTime=i},CQyF:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,i=this.scheduler;if(t.syncErrorThrowable=!0,i)return i.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(r.Observable);e.ErrorObservable=o},CU81:function(t,e,n){"use strict";function i(t){return l["ɵvid"](0,[(t()(),l["ɵted"](-1,null,["\n      "])),(t()(),l["ɵeld"](1,0,null,null,1,"ngb-highlight",[],null,null,null,u.a,u.b)),l["ɵdid"](2,573440,null,0,c.a,[],{result:[0,"result"],term:[1,"term"]},null),(t()(),l["ɵted"](-1,null,["\n    "]))],function(t,e){t(e,2,0,e.context.formatter(e.context.result),e.context.term)},null)}function r(t){return l["ɵvid"](0,[(t()(),l["ɵand"](0,null,null,0))],null,null)}function o(t){return l["ɵvid"](0,[(t()(),l["ɵted"](-1,null,["\n      "])),(t()(),l["ɵeld"](1,0,null,null,5,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("mouseenter"===e){i=!1!==r.markActive(t.context.index)&&i}if("click"===e){i=!1!==r.select(t.context.$implicit)&&i}return i},null,null)),(t()(),l["ɵted"](-1,null,["\n          "])),(t()(),l["ɵand"](16777216,null,null,2,null,r)),l["ɵdid"](4,540672,null,0,h.NgTemplateOutlet,[l.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"],ngOutletContext:[1,"ngOutletContext"]},null),l["ɵpod"](5,{result:0,term:1,formatter:2}),(t()(),l["ɵted"](-1,null,["\n      "])),(t()(),l["ɵted"](-1,null,["\n    "]))],function(t,e){var n=e.component;t(e,4,0,n.resultTemplate||l["ɵnov"](e.parent,1),t(e,5,0,e.context.$implicit,n.term,n.formatter))},function(t,e){var n=e.component;t(e,1,0,n.id+"-"+e.context.index,e.context.index===n.activeIdx)})}function s(t){return l["ɵvid"](0,[(t()(),l["ɵted"](-1,null,["\n    "])),(t()(),l["ɵand"](0,[["rt",2]],null,0,null,i)),(t()(),l["ɵted"](-1,null,["\n    "])),(t()(),l["ɵand"](16777216,null,null,1,null,o)),l["ɵdid"](4,802816,null,0,h.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),l["ɵted"](-1,null,["\n  "]))],function(t,e){t(e,4,0,e.component.results)},null)}function a(t){return l["ɵvid"](0,[(t()(),l["ɵeld"](0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu"],["role","listbox"],["style","display: block"]],[[8,"id",0]],null,null,s,d)),l["ɵdid"](1,114688,null,0,p.a,[],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,l["ɵnov"](e,1).id)})}var l=n("/oeL"),u=n("3yXI"),c=n("OPj5"),h=n("qbdv"),p=n("c0Tg");n.d(e,"a",function(){return m});var f=[],d=l["ɵcrt"]({encapsulation:2,styles:f,data:{}}),m=l["ɵccf"]("ngb-typeahead-window",p.a,a,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[])},CXR1:function(t,e,n){"use strict";var i=n("bKpL"),r=n("tpuU");i.Observable.prototype.zipAll=r.zipAll},Cb36:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("59zy"),s=n("PySC");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[s.a],exports:[s.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},Cipy:function(t,e,n){"use strict";function i(t,e,n){return r.shareReplay(t,e,n)(this)}var r=n("Wxra");e.shareReplay=i},ClIn:function(t,e,n){"use strict";function i(t){return o["ɵvid"](2,[(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵeld"](1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),o["ɵncd"](null,0),(t()(),o["ɵted"](-1,null,["\n    "]))],null,null)}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,i,l)),o["ɵdid"](1,49152,null,0,s.b,[],null,null)],null,function(t,e){t(e,0,0,"tooltip show tooltip-"+o["ɵnov"](e,1).placement,o["ɵnov"](e,1).id)})}var o=n("/oeL"),s=n("JFa0");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-tooltip-window",s.b,r,{placement:"placement",id:"id"},{},["*"])},CuDZ:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return l}),n.d(e,"b",function(){return u});var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=["Mo","Tu","We","Th","Fr","Sa","Su"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=["January","February","March","April","May","June","July","August","September","October","November","December"],l=function(){function t(){}return t}();l.decorators=[{type:i.Injectable}],l.ctorParameters=function(){return[]};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getWeekdayShortName=function(t){return o[t-1]},e.prototype.getMonthShortName=function(t){return s[t-1]},e.prototype.getMonthFullName=function(t){return a[t-1]},e}(l);u.decorators=[{type:i.Injectable}],u.ctorParameters=function(){return[]}},D84Q:function(t,e,n){"use strict";var i=n("bKpL"),r=n("NUku");i.Observable.prototype.buffer=r.buffer},DaIH:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("OPj5"),s=n("c0Tg"),a=n("raIJ"),l=n("0H8/");n.d(e,"a",function(){return u});var u=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[l.a]}},t}();u.decorators=[{type:i.NgModule,args:[{declarations:[a.a,o.a,s.a],exports:[a.a],imports:[r.CommonModule],entryComponents:[s.a]}]}],u.ctorParameters=function(){return[]}},De29:function(t,e,n){"use strict";var i=n("bKpL"),r=n("NgMz");i.Observable.prototype.findIndex=r.findIndex},DlWC:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[],null,null)}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-modal-backdrop",[["class","modal-backdrop fade show"]],null,null,null,i,l)),o["ɵdid"](1,49152,null,0,s.a,[],null,null)],null,null)}var o=n("/oeL"),s=n("1Dsc");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-modal-backdrop",s.a,r,{},{},[])},Dqrr:function(t,e,n){"use strict";var i=n("rlar");e.Subject=i.Subject,e.AnonymousSubject=i.AnonymousSubject;var r=n("bKpL");e.Observable=r.Observable,n("amjc"),n("p3u8"),n("vJ3t"),n("JSgX"),n("VsKd"),n("hbO+"),n("GPwi"),n("XL2q"),n("Xtvq"),n("ZXBV"),n("7u+W"),n("d3kC"),n("okgN"),n("ACG2"),n("JNTq"),n("Af4u"),n("dyFf"),n("/zHi"),n("bprQ"),n("mjW1"),n("B/As"),n("W5L8"),n("S7im"),n("BdLl"),n("tcot"),n("o/OZ"),n("4JlW"),n("D84Q"),n("i4mq"),n("t8nJ"),n("LTTx"),n("UVHa"),n("xpf9"),n("rp90"),n("6DBm"),n("R0J0"),n("+Ve+"),n("7rqg"),n("oOL0"),n("vKg+"),n("E2ib"),n("p3bn"),n("azLz"),n("A1r7"),n("l3Q+"),n("TnjP"),n("9wNb"),n("MBEm"),n("mDYJ"),n("eqpX"),n("ptvE"),n("h+is"),n("89am"),n("afTc"),n("gbhw"),n("zc4d"),n("MaQZ"),n("De29"),n("ZQKz"),n("zZnE"),n("IpZT"),n("StS+"),n("pkLr"),n("qNQE"),n("dy5W"),n("ykQW"),n("r+/7"),n("5v8a"),n("iwys"),n("BBvl"),n("ScG9"),n("ub06"),n("5p6H"),n("RpuY"),n("srZQ"),n("SKRq"),n("pHO4"),n("PatI"),n("XR71"),n("NOvV"),n("Uvlg"),n("Lssd"),n("Ozq5"),n("VML3"),n("LClL"),n("HUu4"),n("vtHn"),n("dgXD"),n("Plqt"),n("UD+B"),n("/amm"),n("v6xs"),n("svCP"),n("+0Ji"),n("VXtB"),n("6NKQ"),n("9lCb"),n("qm+V"),n("g3vg"),n("z69B"),n("vfw3"),n("zdWg"),n("j8RC"),n("67Ck"),n("9jMf"),n("kIyd"),n("mvrJ"),n("Pic8"),n("1pbG"),n("5uCp"),n("bN7U"),n("q07K"),n("86mp"),n("OGSH"),n("YFUQ"),n("UbPm"),n("uGEk"),n("9mSN"),n("vNV3"),n("IUpl"),n("82j9"),n("Z2Sm"),n("eumZ"),n("RNRn"),n("sSYo"),n("kAWK"),n("asHm"),n("ItUe"),n("CXR1");var o=n("xFbG");e.Subscription=o.Subscription;var s=n("T14+");e.Subscriber=s.Subscriber;var a=n("l6Wf");e.AsyncSubject=a.AsyncSubject;var l=n("0imh");e.ReplaySubject=l.ReplaySubject;var u=n("gvep");e.BehaviorSubject=u.BehaviorSubject;var c=n("xKl2");e.ConnectableObservable=c.ConnectableObservable;var h=n("3lsR");e.Notification=h.Notification;var p=n("TpsG");e.EmptyError=p.EmptyError;var f=n("uT+d");e.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var d=n("Lhvy");e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var m=n("0L2s");e.TimeoutError=m.TimeoutError;var v=n("Emqh");e.UnsubscriptionError=v.UnsubscriptionError;var g=n("H9QY");e.TimeInterval=g.TimeInterval;var b=n("xK8X");e.Timestamp=b.Timestamp;var y=n("MIR9");e.TestScheduler=y.TestScheduler;var w=n("I64N");e.VirtualTimeScheduler=w.VirtualTimeScheduler;var x=n("HPkd");e.AjaxResponse=x.AjaxResponse,e.AjaxError=x.AjaxError,e.AjaxTimeoutError=x.AjaxTimeoutError;var S=n("vxPf");e.pipe=S.pipe;var C=n("wEhC"),O=n("IhB/"),k=n("yR50"),T=n("ruZE"),_=n("dkwD"),L=n("2B7B"),I=n("DP67"),M=n("LMxK");e.operators=M;var A={asap:C.asap,queue:k.queue,animationFrame:T.animationFrame,async:O.async};e.Scheduler=A;var E={rxSubscriber:_.rxSubscriber,observable:I.observable,iterator:L.iterator};e.Symbol=E},DrEP:function(t,e,n){"use strict";function i(t,n){return void 0===n&&(n=e.defaultThrottleConfig),function(e){return e.lift(new a(t,n.leading,n.trailing))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=i;var a=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector,this.leading,this.trailing))},t}(),l=function(t){function e(e,n,i,r){t.call(this,e),this.destination=e,this.durationSelector=n,this._leading=i,this._trailing=r,this._hasTrailingValue=!1}return r(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=s.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this,e=t.throttled;t._trailingValue,t._hasTrailingValue,t._trailing;this._trailingValue=null,this._hasTrailingValue=!1,e&&(this.remove(e),this.throttled=null,e.unsubscribe())},e.prototype._sendTrailing=function(){var t=this,e=t.destination,n=t.throttled,i=t._trailing,r=t._trailingValue,o=t._hasTrailingValue;n&&i&&o&&(e.next(r),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,n,i,r){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(o.OuterSubscriber)},E2ib:function(t,e,n){"use strict";var i=n("bKpL"),r=n("SJ56");i.Observable.prototype.dematerialize=r.dematerialize},EOAD:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=s.async),function(e){return e.lift(new l(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("IhB/");e.timeInterval=i;var a=function(){function t(t,e){this.value=t,this.interval=e}return t}();e.TimeInterval=a;var l=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler))},t}(),u=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return r(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new a(t,n))},e}(o.Subscriber)},EUVd:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(i,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("T14+"),l=n("3lsR");e.delay=i;var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,i){t.call(this,e),this.delay=n,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new h(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(l.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(l.Notification.createComplete())},e}(a.Subscriber),h=function(){function t(t,e){this.time=t,this.notification=e}return t}()},EmkH:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d");e.skipLast=i;var a=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new o.Subscriber(t)):e.subscribe(new l(t,this._skipCount))},t}(),l=function(t){function e(e,n){t.call(this,e),this._skipCount=n,this._count=0,this._ring=new Array(n)}return r(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,r=this._ring,o=r[i];r[i]=t,this.destination.next(o)}},e}(o.Subscriber)},EoP3:function(t,e,n){"use strict";var i=n("/oeL"),r=n("1dXy");n.d(e,"a",function(){return s});var o=[r.a,r.b,r.c],s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();s.decorators=[{type:i.NgModule,args:[{declarations:o,exports:o}]}],s.ctorParameters=function(){return[]}},EsGe:function(t,e,n){"use strict";function i(t){return!r.isArray(t)&&t-parseFloat(t)+1>=0}var r=n("NSJx");e.isNumeric=i},"F/7+":function(t,e,n){"use strict";var i=n("SBOU");e.zip=i.zipStatic},F3px:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=s);var n=(t||"").trim();if(0===n.length)return[];var i=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new o(n[0],n[1])}),r=i.filter(function(t){return t.isManual()});if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}function r(t,e,n,r,o,s){var l=i(n),u=[];return 1===l.length&&l[0].isManual()?a:(l.forEach(function(n){n.open===n.close?u.push(t.listen(e,n.open,s)):u.push(t.listen(e,n.open,r),t.listen(e,n.close,o))}),function(){u.forEach(function(t){return t()})})}e.a=r;var o=function(){function t(t,e){this.open=t,this.close=e,e||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),s={hover:["mouseenter","mouseleave"]},a=function(){}},FTnw:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("xFbG");e.finalize=i;var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.callback))},t}(),l=function(t){function e(e,n){t.call(this,e),this.add(new s.Subscription(n))}return r(e,t),e}(o.Subscriber)},Fi2k:function(t,e,n){"use strict";function i(t,e){return r.windowToggle(t,e)(this)}var r=n("bLt9");e.windowToggle=i},Fpv1:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("Io40"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return i(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(r.AsyncAction);e.QueueAction=o},Fq81:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("fclq"),o=n("bKpL"),s=n("xFbG"),a=function(t){function e(e,n,i){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=i}return i(e,t),e.create=function(t,n,i){return new e(t,n,i)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,i=this.selector?function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(i,t);r.isFunction(n)&&t.add(new s.Subscription(function(){n(i,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);e.FromEventPatternObservable=a},"GB+a":function(t,e,n){"use strict";function i(t,e){return r.sequenceEqual(t,e)(this)}var r=n("xJeO");e.sequenceEqual=i},GPwi:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Fhmd");i.Observable.forkJoin=r.forkJoin},GTdq:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.audit(function(){return s.timer(t,e)})}var r=n("IhB/"),o=n("tAjV"),s=n("vioa");e.auditTime=i},GaSD:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(){function t(t,e,n){this.year=t,this.month=e,this.day=n}return t.from=function(e){return e?new t(e.year,e.month,e.day?e.day:1):null},t.prototype.equals=function(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day},t.prototype.before=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)},t.prototype.after=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)},t.prototype.toString=function(){return this.year+"-"+this.month+"-"+this.day},t}()},GeBq:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("rlar");e.windowCount=i;var a=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.windowSize,this.startWindowEvery))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=i,this.windows=[new s.Subject],this.count=0,e.next(this.windows[0])}return r(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(t);var l=this.count-i+1;if(l>=0&&l%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var u=new s.Subject;r.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(o.Subscriber)},GoZW:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.pluck.apply(void 0,t)(this)}var r=n("wcuQ");e.pluck=i},H4tt:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new o.ArrayObservable([e].concat(t)),new c(n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("wZOE"),s=n("NSJx"),a=n("yW9Z"),l=n("ktfo"),u={};e.combineLatest=i;var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.project))},t}();e.CombineLatestOperator=c;var h=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return r(e,t),e.prototype._next=function(t){this.values.push(u),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(l.subscribeToResult(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,s=o[n],a=this.toRespond?s===u?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.OuterSubscriber);e.CombineLatestSubscriber=h},"H6+I":function(t,e,n){!function(t){t(n("oiK7"),n("4thQ"),n("A+1n"))}(function(t){"use strict";t.defineMode("markdown",function(e,n){function i(n){if(t.findModeByName){var i=t.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=t.getMode(e,n);return"null"==r.name?null:r}function r(t,e,n){return e.f=e.inline=n,n(t,e)}function o(t,e,n){return e.f=e.block=n,n(t,e)}function s(t){return!t||!/\S/.test(t.string)}function a(t){return t.linkTitle=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==u&&(t.f=f,t.block=l),t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function l(e,o){var a=e.column()===o.indentation,l=s(o.prevLine.stream),u=o.indentedCode,p=o.prevLine.hr,f=!1!==o.list,d=(o.listStack[o.listStack.length-1]||0)+3;o.indentedCode=!1;var m=o.indentation;if(null===o.indentationDiff&&(o.indentationDiff=o.indentation,f)){for(o.list=null;m<o.listStack[o.listStack.length-1];)o.listStack.pop(),o.listStack.length?o.indentation=o.listStack[o.listStack.length-1]:o.list=!1;!1!==o.list&&(o.indentationDiff=m-o.listStack[o.listStack.length-1])}var v=!(l||p||o.prevLine.header||f&&u||o.prevLine.fencedCodeEnd),b=(!1===o.list||p||l)&&o.indentation<=d&&e.match(O),y=null;if(o.indentationDiff>=4&&(u||o.prevLine.fencedCodeEnd||o.prevLine.header||l))return e.skipToEnd(),o.indentedCode=!0,S.code;if(e.eatSpace())return null;if(a&&o.indentation<=d&&(y=e.match(_))&&y[1].length<=6)return o.quote=0,o.header=y[1].length,o.thisLine.header=!0,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,h(o);if(o.indentation<=d&&e.eat(">"))return o.quote=a?1:o.quote+1,n.highlightFormatting&&(o.formatting="quote"),e.eatSpace(),h(o);if(!b&&!o.setext&&a&&o.indentation<=d&&(y=e.match(k))){var w=y[1]?"ol":"ul";return o.indentation=m+e.current().length,o.list=!0,o.quote=0,o.listStack.push(o.indentation),n.taskLists&&e.match(T,!1)&&(o.taskList=!0),o.f=o.inline,n.highlightFormatting&&(o.formatting=["list","list-"+w]),h(o)}return a&&o.indentation<=d&&(y=e.match(M,!0))?(o.quote=0,o.fencedEndRE=new RegExp(y[1]+"+ *$"),o.localMode=n.fencedCodeBlockHighlighting&&i(y[2]),o.localMode&&(o.localState=t.startState(o.localMode)),o.f=o.block=c,n.highlightFormatting&&(o.formatting="code-block"),o.code=-1,h(o)):o.setext||!(v&&f||o.quote||!1!==o.list||o.code||b||A.test(e.string))&&(y=e.lookAhead(1))&&(y=y.match(L))?(o.setext?(o.header=o.setext,o.setext=0,e.skipToEnd(),n.highlightFormatting&&(o.formatting="header")):(o.header="="==y[0].charAt(0)?1:2,o.setext=o.header),o.thisLine.header=!0,o.f=o.inline,h(o)):b?(e.skipToEnd(),o.hr=!0,o.thisLine.hr=!0,S.hr):"["===e.peek()?r(e,o,g):r(e,o,o.inline)}function u(e,n){var i=w.token(e,n.htmlState);if(!x){var r=t.innerMode(w,n.htmlState);("xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=f,n.block=l,n.htmlState=null)}return i}function c(t,e){var i=e.listStack[e.listStack.length-1]||0,r=e.indentation<i,s=i+3;if(e.fencedEndRE&&e.indentation<=s&&(r||t.match(e.fencedEndRE))){n.highlightFormatting&&(e.formatting="code-block");var a;return r||(a=h(e)),e.localMode=e.localState=null,e.block=l,e.f=f,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,r?o(t,e,e.block):a}return e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),S.code)}function h(t){var e=[];if(t.formatting){e.push(S.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var i=0;i<t.formatting.length;i++)e.push(S.formatting+"-"+t.formatting[i]),"header"===t.formatting[i]&&e.push(S.formatting+"-"+t.formatting[i]+"-"+t.header),"quote"===t.formatting[i]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(S.formatting+"-"+t.formatting[i]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(S.linkHref,"url"):(t.strong&&e.push(S.strong),t.em&&e.push(S.em),t.strikethrough&&e.push(S.strikethrough),t.emoji&&e.push(S.emoji),t.linkText&&e.push(S.linkText),t.code&&e.push(S.code),t.image&&e.push(S.image),t.imageAltText&&e.push(S.imageAltText,"link"),t.imageMarker&&e.push(S.imageMarker)),t.header&&e.push(S.header,S.header+"-"+t.header),t.quote&&(e.push(S.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(S.quote+"-"+t.quote):e.push(S.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var r=(t.listStack.length-1)%3;r?1===r?e.push(S.list2):e.push(S.list3):e.push(S.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function p(t,e){if(t.match(I,!0))return h(e)}function f(e,i){var r=i.text(e,i);if(void 0!==r)return r;if(i.list)return i.list=null,h(i);if(i.taskList){return" "===e.match(T,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,h(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),h(i);var s=e.next();if(i.linkTitle){i.linkTitle=!1;var a=s;"("===s&&(a=")"),a=(a+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var l="^\\s*(?:[^"+a+"\\\\]+|\\\\\\\\|\\\\.)"+a;if(e.match(new RegExp(l),!0))return S.linkHref}if("`"===s){var c=i.formatting;n.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var p=e.current().length;if(0!=i.code||i.quote&&1!=p){if(p==i.code){var v=h(i);return i.code=0,v}return i.formatting=c,h(i)}return i.code=p,h(i)}if(i.code)return h(i);if("\\"===s&&(e.next(),n.highlightFormatting)){var g=h(i),b=S.formatting+"-escape";return g?g+" "+b:b}if("!"===s&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),h(i);if("["===s&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),h(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var g=h(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=m,g}if("["===s&&!i.image)return i.linkText=!0,n.highlightFormatting&&(i.formatting="link"),h(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var g=h(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?m:f,g}if("<"===s&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=d,n.highlightFormatting&&(i.formatting="link");var g=h(i);return g?g+=" ":g="",g+S.linkInline}if("<"===s&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=d,n.highlightFormatting&&(i.formatting="link");var g=h(i);return g?g+=" ":g="",g+S.linkEmail}if(n.xml&&"<"===s&&e.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i,!1)){var y=e.string.indexOf(">",e.pos);if(-1!=y){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(e.string.substring(e.start,y))&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=t.startState(w),o(e,i,u)}if(n.xml&&"<"===s&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,C=1==e.pos?" ":e.string.charAt(e.pos-2);x<3&&e.eat(s);)x++;var O=e.peek()||" ",k=!/\s/.test(O)&&(!E.test(O)||/\s/.test(C)||E.test(C)),_=!/\s/.test(C)&&(!E.test(C)||/\s/.test(O)||E.test(O)),L=null,I=null;if(x%2&&(i.em||!k||"*"!==s&&_&&!E.test(C)?i.em!=s||!_||"*"!==s&&k&&!E.test(O)||(L=!1):L=!0),x>1&&(i.strong||!k||"*"!==s&&_&&!E.test(C)?i.strong!=s||!_||"*"!==s&&k&&!E.test(O)||(I=!1):I=!0),null!=I||null!=L){n.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=s),!0===I&&(i.strong=s);var v=h(i);return!1===L&&(i.em=!1),!1===I&&(i.strong=!1),v}}else if(" "===s&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return h(i);e.backUp(1)}if(n.strikethrough)if("~"===s&&e.eatWhile(s)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");var v=h(i);return i.strikethrough=!1,v}if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),h(i)}else if(" "===s&&e.match(/^~~/,!0)){if(" "===e.peek())return h(i);e.backUp(2)}if(n.emoji&&":"===s&&e.match(/^[a-z_\d+-]+:/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var M=h(i);return i.emoji=!1,M}return" "===s&&(e.match(/ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),h(i)}function d(t,e){if(">"===t.next()){e.f=e.inline=f,n.highlightFormatting&&(e.formatting="link");var i=h(e);return i?i+=" ":i="",i+S.linkInline}return t.match(/^[^>]+/,!0),S.linkInline}function m(t,e){if(t.eatSpace())return null;var i=t.next();return"("===i||"["===i?(e.f=e.inline=v("("===i?")":"]"),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,h(e)):"error"}function v(t){return function(e,i){if(e.next()===t){i.f=i.inline=f,n.highlightFormatting&&(i.formatting="link-string");var r=h(i);return i.linkHref=!1,r}return e.match(N[t]),i.linkHref=!0,h(i)}}function g(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=b,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,h(e)):r(t,e,f)}function b(t,e){if(t.match(/^\]:/,!0)){e.f=e.inline=y,n.highlightFormatting&&(e.formatting="link");var i=h(e);return e.linkText=!1,i}return t.match(/^([^\]\\]|\\.)+/,!0),S.linkText}function y(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=f,S.linkHref+" url")}var w=t.getMode(e,"text/html"),x="null"==w.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var S={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var C in S)S.hasOwnProperty(C)&&n.tokenTypeOverrides[C]&&(S[C]=n.tokenTypeOverrides[C]);var O=/^([*\-_])(?:\s*\1){2,}\s*$/,k=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,T=/^\[(x| )\](?=\s)/i,_=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,L=/^ *(?:\={1,}|-{1,})\s*$/,I=/^[^#!\[\]*_\\<>` "'(~:]+/,M=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,A=/^\s*\[[^\]]+?\]:\s*\S+(\s*\S*\s*)?$/,E=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/,N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},R={startState:function(){return{f:l,prevLine:{stream:null},thisLine:{stream:null},block:l,htmlState:null,indentation:0,inline:f,text:p,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(w,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return a(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=u)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==u?{state:t.htmlState,mode:w}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:R}},indent:function(e,n,i){return e.block==u&&w.indent?w.indent(e.htmlState,n,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,i):t.Pass},blankLine:a,getType:h,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R},"xml"),t.defineMIME("text/x-markdown","markdown")})},H9QY:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=r.async),o.timeInterval(t)(this)}var r=n("IhB/"),o=n("EOAD");e.TimeInterval=o.TimeInterval,e.timeInterval=i},HBVP:function(t,e,n){"use strict";function i(t,e){return r.distinctUntilChanged(function(n,i){return e?e(n[t],i[t]):n[t]===i[t]})}var r=n("2Sjb");e.distinctUntilKeyChanged=i},HHMl:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e}(r.AsyncScheduler);e.QueueScheduler=o},HPkd:function(t,e,n){"use strict";function i(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;if(f.root.XDomainRequest)return new f.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function r(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new f.root.ActiveXObject(t))break}catch(t){}return new f.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new w({method:"GET",url:t,headers:e})}function s(t,e,n){return new w({method:"POST",url:t,body:e,headers:n})}function a(t,e){return new w({method:"DELETE",url:t,headers:e})}function l(t,e,n){return new w({method:"PUT",url:t,body:e,headers:n})}function u(t,e,n){return new w({method:"PATCH",url:t,body:e,headers:n})}function c(t,e){return y(new w({method:"GET",url:t,responseType:"json",headers:e}))}function h(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=n("zijX"),d=n("RdI5"),m=n("XRvs"),v=n("bKpL"),g=n("T14+"),b=n("L8VJ");e.ajaxGet=o,e.ajaxPost=s,e.ajaxDelete=a,e.ajaxPut=l,e.ajaxPatch=u;var y=b.map(function(t,e){return t.response});e.ajaxGetJSON=c;var w=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?i.call(this):r()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);this.request=n}return p(e,t),e.prototype._subscribe=function(t){return new x(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t.delete=a,t.put=l,t.patch=u,t.getJSON=c,t}(),e}(v.Observable);e.AjaxObservable=w;var x=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var i=n.headers=n.headers||{};n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in i||f.root.FormData&&n.body instanceof f.root.FormData||void 0===n.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return p(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,i=e.request,r=e.destination,o=new S(t,n,i);r.next(o)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,i=n.user,r=n.method,o=n.url,s=n.async,a=n.password,l=n.headers,u=n.body,c=e.createXHR,h=d.tryCatch(c).call(e);if(h===m.errorObject)this.error(m.errorObject.e);else{this.xhr=h,this.setupEvents(h,e);if((i?d.tryCatch(h.open).call(h,r,o,s,i,a):d.tryCatch(h.open).call(h,r,o,s))===m.errorObject)return this.error(m.errorObject.e),null;if(s&&(h.timeout=e.timeout,h.responseType=e.responseType),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,l),(u?d.tryCatch(h.send).call(h,u):d.tryCatch(h.send).call(h))===m.errorObject)return this.error(m.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(f.root.FormData&&t instanceof f.root.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){function n(t){var e=n,i=e.subscriber,r=e.progressSubscriber,o=e.request;r&&r.error(t),i.error(new O(this,o))}function i(t){var e=i,n=e.subscriber,r=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(r&&r.complete(),n.next(t),n.complete()):(r&&r.error(t),n.error(new C("ajax error "+s,this,o)))}}var r=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=r,t.upload&&"withCredentials"in t){if(r){var o;o=function(t){o.progressSubscriber.next(t)},f.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=r}var s;s=function(t){var e=s,n=e.progressSubscriber,i=e.subscriber,r=e.request;n&&n.error(t),i.error(new C("ajax error",this,r))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=r}t.onreadystatechange=i,i.subscriber=this,i.progressSubscriber=r,i.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,i=e.xhr;!n&&i&&4!==i.readyState&&"function"==typeof i.abort&&i.abort(),t.prototype.unsubscribe.call(this)},e}(g.Subscriber);e.AjaxSubscriber=x;var S=function(){function t(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=h(this.responseType,e)}return t}();e.AjaxResponse=S;var C=function(t){function e(e,n,i){t.call(this,e),this.message=e,this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType||i.responseType,this.response=h(this.responseType,n)}return p(e,t),e}(Error);e.AjaxError=C;var O=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return p(e,t),e}(C);e.AjaxTimeoutError=O},HRzg:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},HTfL:function(t,e,n){"use strict";var i=n("CQyF");e._throw=i.ErrorObservable.create},HUu4:function(t,e,n){"use strict";var i=n("bKpL"),r=n("AzAY");i.Observable.prototype.publishReplay=r.publishReplay},Hg2u:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),function(e){return 0===t?new s.EmptyObservable:t<0?e.lift(new a(-1,e)):e.lift(new a(t-1,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("fcnB");e.repeat=i;var a=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.count,this.source))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.count=n,this.source=i}return r(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,n=e.source,i=e.count;if(0===i)return t.prototype.complete.call(this);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},Hjei:function(t,e,n){"use strict";var i=n("/oeL"),r=n("+E40");n.d(e,"d",function(){return s}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return l}),n.d(e,"a",function(){return u});var o=0,s=function(){function t(t){this.templateRef=t}return t}();s.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbTabTitle]"}]}],s.ctorParameters=function(){return[{type:i.TemplateRef}]};var a=function(){function t(t){this.templateRef=t}return t}();a.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbTabContent]"}]}],a.ctorParameters=function(){return[{type:i.TemplateRef}]};var l=function(){function t(){this.id="ngb-tab-"+o++,this.disabled=!1}return t}();l.decorators=[{type:i.Directive,args:[{selector:"ngb-tab"}]}],l.ctorParameters=function(){return[]},l.propDecorators={id:[{type:i.Input}],title:[{type:i.Input}],disabled:[{type:i.Input}],contentTpl:[{type:i.ContentChild,args:[a]}],titleTpl:[{type:i.ContentChild,args:[s]}]};var u=function(){function t(t){this.destroyOnHide=!0,this.tabChange=new i.EventEmitter,this.type=t.type,this.justify=t.justify}return t.prototype.select=function(t){var e=this._getTabById(t);if(e&&!e.disabled&&this.activeId!==e.id){var n=!1;this.tabChange.emit({activeId:this.activeId,nextId:e.id,preventDefault:function(){n=!0}}),n||(this.activeId=e.id)}},t.prototype.ngAfterContentChecked=function(){var t=this._getTabById(this.activeId);this.activeId=t?t.id:this.tabs.length?this.tabs.first.id:null},t.prototype._getTabById=function(t){var e=this.tabs.filter(function(e){return e.id===t});return e.length?e[0]:null},t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-tabset",exportAs:"ngbTabset",template:'\n    <ul [class]="\'nav nav-\' + type + \' justify-content-\' + justify" role="tablist">\n      <li class="nav-item" *ngFor="let tab of tabs">\n        <a [id]="tab.id" class="nav-link" [class.active]="tab.id === activeId" [class.disabled]="tab.disabled"\n          href (click)="!!select(tab.id)" role="tab" [attr.tabindex]="(tab.disabled ? \'-1\': undefined)"\n          [attr.aria-controls]="(!destroyOnHide || tab.id === activeId ? tab.id + \'-panel\' : null)"\n          [attr.aria-expanded]="tab.id === activeId" [attr.aria-disabled]="tab.disabled">\n          {{tab.title}}<ng-template [ngTemplateOutlet]="tab.titleTpl?.templateRef"></ng-template>\n        </a>\n      </li>\n    </ul>\n    <div class="tab-content">\n      <ng-template ngFor let-tab [ngForOf]="tabs">\n        <div\n          class="tab-pane {{tab.id === activeId ? \'active\' : null}}"\n          *ngIf="!destroyOnHide || tab.id === activeId"\n          role="tabpanel"\n          [attr.aria-labelledby]="tab.id" id="{{tab.id}}-panel"\n          [attr.aria-expanded]="tab.id === activeId">\n          <ng-template [ngTemplateOutlet]="tab.contentTpl.templateRef"></ng-template>\n        </div>\n      </ng-template>\n    </div>\n  '}]}],u.ctorParameters=function(){return[{type:r.a}]},u.propDecorators={tabs:[{type:i.ContentChildren,args:[l]}],activeId:[{type:i.Input}],destroyOnHide:[{type:i.Input}],justify:[{type:i.Input}],type:[{type:i.Input}],tabChange:[{type:i.Output}]}},"Hr+Y":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=a.async),function(n){return n.lift(new l(t,e))}}function r(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/");e.debounceTime=i;var l=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.dueTime=n,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(r,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},HyAm:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(r.AsyncScheduler);e.AsapScheduler=o},I2Y9:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("1VPd"),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return i(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}},e}(r.Scheduler);e.AsyncScheduler=o},I64N:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("Io40"),o=n("I2Y9"),s=function(t){function e(e,n){var i=this;void 0===e&&(e=a),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this,e,function(){return i.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return i(e,t),e.prototype.flush=function(){for(var t,e,n=this,i=n.actions,r=n.maxFrames;(e=i.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=i.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(o.AsyncScheduler);e.VirtualTimeScheduler=s;var a=function(t){function e(e,n,i){void 0===i&&(i=e.index+=1),t.call(this,e,n),this.scheduler=e,this.work=n,this.index=i,this.active=!0,this.index=e.index=i}return i(e,t),e.prototype.schedule=function(n,i){if(void 0===i&&(i=0),!this.id)return t.prototype.schedule.call(this,n,i);this.active=!1;var r=new e(this.scheduler,this.work);return this.add(r),r.schedule(n,i)},e.prototype.requestAsyncId=function(t,n,i){void 0===i&&(i=0),this.delay=t.frame+i;var r=t.actions;return r.push(this),r.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(r.AsyncAction);e.VirtualAction=a},IBeK:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("4Q/O"),s=n("Av3o"),a=n("Pc3Y"),l=n("bAfU"),u=n("bm2B"),c=n("+oJC"),h=n("CuDZ"),p=n("KSV9"),f=n("lA7/"),d=n("JNkN"),m=n("HRzg");n("vg2M");n.d(e,"a",function(){return v});var v=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[{provide:p.a,useClass:p.b},{provide:h.a,useClass:h.b},{provide:f.a,useClass:f.b},m.a]}},t}();v.decorators=[{type:i.NgModule,args:[{declarations:[o.a,s.a,a.a,d.a,c.a,l.a],exports:[o.a,l.a],imports:[r.CommonModule,u.FormsModule],entryComponents:[o.a]}]}],v.ctorParameters=function(){return[]}},IOeT:function(t,e,n){"use strict";function i(t){return r.combineAll(t)(this)}var r=n("7xz3");e.combineAll=i},IUpl:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Y+l6");i.Observable.prototype.toArray=r.toArray},IfwN:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new r.FindValueOperator(t,n,!0,e))}}var r=n("0dhf");e.findIndex=i},"IhB/":function(t,e,n){"use strict";var i=n("Io40"),r=n("I2Y9");e.async=new r.AsyncScheduler(i.AsyncAction)},IkMW:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new r.ZipOperator(t))}}var r=n("SBOU");e.zipAll=i},IkMs:function(t,e,n){"use strict";function i(t){return u["ɵvid"](0,[(t()(),u["ɵted"](-1,null,["\n       "])),(t()(),u["ɵeld"](1,0,null,null,1,"div",[["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"btn-secondary",null]],null,null,c.a,c.b)),u["ɵdid"](2,49152,null,0,h.a,[],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],selected:[3,"selected"]},null),(t()(),u["ɵted"](-1,null,["\n    "]))],function(t,e){t(e,2,0,e.context.currentMonth,e.context.date,e.context.disabled,e.context.selected)},function(t,e){t(e,1,0,u["ɵnov"](e,2).selected,u["ɵnov"](e,2).selected,u["ɵnov"](e,2).isMuted(),u["ɵnov"](e,2).isMuted(),!u["ɵnov"](e,2).disabled)})}function r(t){return u["ɵvid"](0,[(t()(),u["ɵeld"](0,0,null,null,2,"ngb-datepicker-navigation",[["class","d-flex justify-content-between"]],[[2,"collapsed",null]],[[null,"navigate"],[null,"select"]],function(t,e,n){var i=!0,r=t.component;if("navigate"===e){i=!1!==r.onNavigateEvent(n)&&i}if("select"===e){i=!1!==r.onNavigateDateSelect(n)&&i}return i},p.a,p.b)),u["ɵdid"](1,49152,null,0,f.a,[d.a,m.a],{date:[0,"date"],disabled:[1,"disabled"],maxDate:[2,"maxDate"],minDate:[3,"minDate"],months:[4,"months"],showSelect:[5,"showSelect"],showWeekNumbers:[6,"showWeekNumbers"]},{navigate:"navigate",select:"select"}),(t()(),u["ɵted"](-1,null,["\n      "]))],function(t,e){var n=e.component;t(e,1,0,null==n.months[0]?null:n.months[0].firstDate,n.disabled,n._maxDate,n._minDate,n.months.length,"select"===n.navigation,n.showWeekNumbers)},function(t,e){t(e,0,0,!u["ɵnov"](e,1).showSelect)})}function o(t){return u["ɵvid"](0,[(t()(),u["ɵeld"](0,0,null,null,1,"div",[["class","ngb-dp-month-name text-center"]],null,null,null,null,null)),(t()(),u["ɵted"](1,null,["\n            "," ","\n          "]))],null,function(t,e){t(e,1,0,e.component.i18n.getMonthFullName(e.parent.context.$implicit.number),e.parent.context.$implicit.year)})}function s(t){return u["ɵvid"](0,[(t()(),u["ɵted"](-1,null,["\n        "])),(t()(),u["ɵeld"](1,0,null,null,8,"div",[["class","ngb-dp-month d-block ml-3"]],null,null,null,null,null)),(t()(),u["ɵted"](-1,null,["            \n          "])),(t()(),u["ɵand"](16777216,null,null,1,null,o)),u["ɵdid"](4,16384,null,0,v.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),u["ɵted"](-1,null,["\n          "])),(t()(),u["ɵeld"](6,0,null,null,2,"ngb-datepicker-month-view",[["class","d-block"]],null,[[null,"select"]],function(t,e,n){var i=!0,r=t.component;if("select"===e){i=!1!==r.onDateSelect(n)&&i}return i},g.a,g.b)),u["ɵdid"](7,49152,null,0,b.a,[d.a],{dayTemplate:[0,"dayTemplate"],disabled:[1,"disabled"],month:[2,"month"],outsideDays:[3,"outsideDays"],selectedDate:[4,"selectedDate"],showWeekdays:[5,"showWeekdays"],showWeekNumbers:[6,"showWeekNumbers"]},{select:"select"}),(t()(),u["ɵted"](-1,null,["\n          "])),(t()(),u["ɵted"](-1,null,["\n        "])),(t()(),u["ɵted"](-1,null,["\n      "]))],function(t,e){var n=e.component;t(e,4,0,"select"!==n.navigation||n.displayMonths>1),t(e,7,0,n.dayTemplate||u["ɵnov"](e.parent,1),n.disabled,e.context.$implicit,1===n.displayMonths?n.outsideDays:"hidden",n.model,n.showWeekdays,n.showWeekNumbers)},null)}function a(t){return u["ɵvid"](0,[(t()(),u["ɵted"](-1,null,["\n    "])),(t()(),u["ɵand"](0,[["dt",2]],null,0,null,i)),(t()(),u["ɵted"](-1,null,["\n    \n    "])),(t()(),u["ɵeld"](3,0,null,null,4,"div",[["class","ngb-dp-header bg-faded pt-1 rounded-top"]],[[4,"height","rem"],[4,"marginBottom","rem"]],null,null,null,null)),(t()(),u["ɵted"](-1,null,["\n      "])),(t()(),u["ɵand"](16777216,null,null,1,null,r)),u["ɵdid"](6,16384,null,0,v.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),u["ɵted"](-1,null,["\n    "])),(t()(),u["ɵted"](-1,null,["\n\n    "])),(t()(),u["ɵeld"](9,0,null,null,4,"div",[["class","ngb-dp-months d-flex px-1 pb-1"]],null,null,null,null,null)),(t()(),u["ɵted"](-1,null,["\n      "])),(t()(),u["ɵand"](16777216,null,null,1,null,s)),u["ɵdid"](12,802816,null,0,v.NgForOf,[u.ViewContainerRef,u.TemplateRef,u.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),u["ɵted"](-1,null,["\n    "])),(t()(),u["ɵted"](-1,null,["\n  "]))],function(t,e){var n=e.component;t(e,6,0,"none"!==n.navigation),t(e,12,0,n.months)},function(t,e){var n=e.component;t(e,3,0,n.getHeaderHeight(),0-n.getHeaderMargin())})}function l(t){return u["ɵvid"](0,[(t()(),u["ɵeld"](0,0,null,null,3,"ngb-datepicker",[["class","d-inline-block rounded"]],null,null,null,a,O)),u["ɵprd"](5120,null,w.NG_VALUE_ACCESSOR,function(t){return[t]},[y.a]),u["ɵprd"](512,null,x.a,x.a,[m.a]),u["ɵdid"](3,638976,null,0,y.a,[x.a,m.a,d.a,S.a],null,null)],function(t,e){t(e,3,0)},null)}var u=n("/oeL"),c=n("RnhI"),h=n("+oJC"),p=n("uy4m"),f=n("Pc3Y"),d=n("CuDZ"),m=n("KSV9"),v=n("qbdv"),g=n("TfLl"),b=n("Av3o"),y=n("4Q/O"),w=n("bm2B"),x=n("/6Tg"),S=n("HRzg");n.d(e,"a",function(){return k});var C=["[_nghost-%COMP%] {\n      border: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-header[_ngcontent-%COMP%] {\n      border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-month[_ngcontent-%COMP%] {\n      pointer-events: none;\n    }\n    ngb-datepicker-month-view[_ngcontent-%COMP%] {\n      pointer-events: auto;\n    }\n    .ngb-dp-month[_ngcontent-%COMP%]:first-child {\n      margin-left: 0 !important;\n    }    \n    .ngb-dp-month-name[_ngcontent-%COMP%] {\n      font-size: larger;\n      height: 2rem;\n      line-height: 2rem;\n    }"],O=u["ɵcrt"]({encapsulation:0,styles:C,data:{}}),k=u["ɵccf"]("ngb-datepicker",y.a,l,{dayTemplate:"dayTemplate",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate"},[])},Io40:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("zijX"),o=n("XNum"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),r.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:r.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(o.Action);e.AsyncAction=s},IpZT:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ZQVD");i.Observable.prototype.ignoreElements=r.ignoreElements},IqVs:function(t,e,n){"use strict";var i=n("zijX"),r=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}();e.RequestAnimationFrameDefinition=r,e.AnimationFrame=new r(i.root)},ItUe:function(t,e,n){"use strict";var i=n("bKpL"),r=n("0I3B");i.Observable.prototype.zip=r.zipProto},JCyH:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("qIlB"),o=n("Io40"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return i(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=r.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(r.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(o.AsyncAction);e.AsapAction=s},JFa0:function(t,e,n){"use strict";var i=n("/oeL"),r=n("F3px"),o=n("75Hr"),s=n("uJci"),a=n("QGDq");n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var l=0,u=function(){function t(){this.placement="top"}return t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-tooltip-window",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{"[class]":'"tooltip show tooltip-" + placement',role:"tooltip","[id]":"id"},template:'\n    <div class="tooltip-inner"><ng-content></ng-content></div>\n    '}]}],u.ctorParameters=function(){return[]},u.propDecorators={placement:[{type:i.Input}],id:[{type:i.Input}]};var c=function(){function t(t,e,r,a,c,h,p){var f=this;this._elementRef=t,this._renderer=e,this.shown=new i.EventEmitter,this.hidden=new i.EventEmitter,this._ngbTooltipWindowId="ngb-tooltip-"+l++,this.placement=h.placement,this.triggers=h.triggers,this.container=h.container,this._popupService=new s.a(u,r,c,e,a),this._zoneSubscription=p.onStable.subscribe(function(){f._windowRef&&n.i(o.a)(f._elementRef.nativeElement,f._windowRef.location.nativeElement,f.placement,"body"===f.container)})}return Object.defineProperty(t.prototype,"ngbTooltip",{get:function(){return this._ngbTooltip},set:function(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()},enumerable:!0,configurable:!0}),t.prototype.open=function(t){!this._windowRef&&this._ngbTooltip&&(this._windowRef=this._popupService.open(this._ngbTooltip,t),this._windowRef.instance.placement=this.placement,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.markForCheck(),this.shown.emit())},t.prototype.close=function(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=n.i(r.a)(this._renderer,this._elementRef.nativeElement,this.triggers,this.open.bind(this),this.close.bind(this),this.toggle.bind(this))},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}();c.decorators=[{type:i.Directive,args:[{selector:"[ngbTooltip]",exportAs:"ngbTooltip"}]}],c.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:i.ComponentFactoryResolver},{type:i.ViewContainerRef},{type:a.a},{type:i.NgZone}]},c.propDecorators={placement:[{type:i.Input}],triggers:[{type:i.Input}],container:[{type:i.Input}],shown:[{type:i.Output}],hidden:[{type:i.Output}],ngbTooltip:[{type:i.Input}]}},JNTq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("LEug");i.Observable.merge=r.merge},JNkN:function(t,e,n){"use strict";var i=n("/oeL"),r=n("GaSD"),o=n("wM1e"),s=n("CuDZ"),a=n("KSV9");n.d(e,"a",function(){return l});var l=function(){function t(t,e){this.i18n=t,this.calendar=e,this.years=[],this.select=new i.EventEmitter,this.months=e.getMonths()}return t.prototype.ngOnChanges=function(t){(t.maxDate||t.minDate||t.date)&&(this._generateYears(),this._generateMonths())},t.prototype.changeMonth=function(t){this.select.emit(new r.a(this.date.year,n.i(o.b)(t),1))},t.prototype.changeYear=function(t){this.select.emit(new r.a(n.i(o.b)(t),this.date.month,1))},t.prototype._generateMonths=function(){var t=this;if(this.months=this.calendar.getMonths(),this.date&&this.date.year===this.minDate.year){var e=this.months.findIndex(function(e){return e===t.minDate.month});this.months=this.months.slice(e)}if(this.date&&this.date.year===this.maxDate.year){var e=this.months.findIndex(function(e){return e===t.maxDate.month});this.months=this.months.slice(0,e+1)}},t.prototype._generateYears=function(){var t=this;this.years=Array.from({length:this.maxDate.year-this.minDate.year+1},function(e,n){return t.minDate.year+n})},t}();l.decorators=[{type:i.Component,args:[{selector:"ngb-datepicker-navigation-select",styles:["\n    select {\n      /* to align with btn-sm */\n      padding: 0.25rem 0.5rem;\n      font-size: 0.875rem;      \n      line-height: 1.25;\n      /* to cancel the custom height set by custom-select */\n      height: inherit;\n      width: 50%;\n    }\n  "],template:'\n    <select [disabled]="disabled" class="custom-select d-inline-block" [value]="date?.month" (change)="changeMonth($event.target.value)">\n      <option *ngFor="let m of months" [value]="m">{{ i18n.getMonthShortName(m) }}</option>\n    </select><select [disabled]="disabled" class="custom-select d-inline-block" [value]="date?.year" (change)="changeYear($event.target.value)">\n      <option *ngFor="let y of years" [value]="y">{{ y }}</option>\n    </select> \n  '}]}],l.ctorParameters=function(){return[{type:s.a},{type:a.a}]},l.propDecorators={date:[{type:i.Input}],disabled:[{type:i.Input}],maxDate:[{type:i.Input}],minDate:[{type:i.Input}],select:[{type:i.Output}]}},JSgX:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7kbP");i.Observable.concat=r.concat},K5Xx:function(t,e,n){"use strict";function i(t){return r.publish(t)(this)}var r=n("zBM/");e.publish=i},KPCT:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[o["ɵqud"](402653184,1,{host:0}),(t()(),o["ɵeld"](1,0,[[1,0],["host",1]],null,0,"textarea",[],null,null,null,null,null))],null,null)}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,2,"codemirror",[],null,null,null,i,u)),o["ɵprd"](5120,null,s.NG_VALUE_ACCESSOR,function(t){return[t]},[a.CodemirrorComponent]),o["ɵdid"](2,4374528,null,0,a.CodemirrorComponent,[],null,null)],null,null)}var o=n("/oeL"),s=n("bm2B"),a=n("nfVm");n.n(a);n.d(e,"b",function(){return u}),e.a=i;var l=[],u=o["ɵcrt"]({encapsulation:2,styles:l,data:{}});o["ɵccf"]("codemirror",a.CodemirrorComponent,r,{config:"config",value:"value"},{change:"change",focus:"focus",blur:"blur",cursorActivity:"cursorActivity",instance:"instance"},[])},KRwK:function(t,e,n){"use strict";var i=n("/oeL"),r=n("uJci"),o=n("wM1e"),s=n("1Dsc"),a=n("AVYa"),l=n("C8VA");n.d(e,"a",function(){return u});var u=function(){function t(t,e,n){this._applicationRef=t,this._injector=e,this._componentFactoryResolver=n,this._backdropFactory=n.resolveComponentFactory(s.a),this._windowFactory=n.resolveComponentFactory(a.a)}return t.prototype.open=function(t,e,n,i){var r=i.container||"body",o=document.querySelector(r);if(!o)throw new Error('The specified modal container "'+r+'" was not found in the DOM.');var s,a,u,c=new l.a,h=this._getContentRef(t,e,n,c);return!1!==i.backdrop&&(a=this._backdropFactory.create(this._injector),this._applicationRef.attachView(a.hostView),o.appendChild(a.location.nativeElement)),s=this._windowFactory.create(this._injector,h.nodes),this._applicationRef.attachView(s.hostView),o.appendChild(s.location.nativeElement),u=new l.b(s,h,a),c.close=function(t){u.close(t)},c.dismiss=function(t){u.dismiss(t)},this._applyWindowOptions(s.instance,i),u},t.prototype._applyWindowOptions=function(t,e){["backdrop","keyboard","size","windowClass"].forEach(function(i){n.i(o.h)(e[i])&&(t[i]=e[i])})},t.prototype._getContentRef=function(t,e,s,a){if(s){if(s instanceof i.TemplateRef){var u=s.createEmbeddedView(a);return this._applicationRef.attachView(u),new r.b([u.rootNodes],u)}if(n.i(o.f)(s))return new r.b([[document.createTextNode(""+s)]]);var c=t.resolveComponentFactory(s),h=i.ReflectiveInjector.resolveAndCreate([{provide:l.a,useValue:a}],e),p=c.create(h);return this._applicationRef.attachView(p.hostView),new r.b([[p.location.nativeElement]],p.hostView,p)}return new r.b([])},t}();u.decorators=[{type:i.Injectable}],u.ctorParameters=function(){return[{type:i.ApplicationRef},{type:i.Injector},{type:i.ComponentFactoryResolver}]}},KSV9:function(t,e,n){"use strict";function i(t){return new o.a(t.getFullYear(),t.getMonth()+1,t.getDate())}function r(t){var e=new Date(t.year,t.month-1,t.day);return isNaN(e.getTime())||e.setFullYear(t.year),e}var o=n("GaSD"),s=n("/oeL"),a=n("wM1e");n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(){function t(){}return t}();u.decorators=[{type:s.Injectable}],u.ctorParameters=function(){return[]};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.getNext=function(t,e,n){void 0===e&&(e="d"),void 0===n&&(n=1);var s=r(t);switch(e){case"y":return new o.a(t.year+n,1,1);case"m":s=new Date(t.year,t.month+n-1,1);break;case"d":s.setDate(s.getDate()+n);break;default:return t}return i(s)},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=r(t),n=e.getDay();return 0===n?7:n},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=(11-e)%7,i=t[n],o=r(i);o.setDate(o.getDate()+4-(o.getDay()||7));var s=o.getTime();return o.setMonth(0),o.setDate(1),Math.floor(Math.round((s-o.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return i(new Date)},e.prototype.isValid=function(t){if(!(t&&n.i(a.i)(t.year)&&n.i(a.i)(t.month)&&n.i(a.i)(t.day)))return!1;var e=r(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day},e}(u);c.decorators=[{type:s.Injectable}],c.ctorParameters=function(){return[]}},"Kt+M":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.concat.apply(void 0,t)(this)}var r=n("vNxK");e.concat=i},Kuy3:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),r.subscribeOn(t,e)(this)}var r=n("qHrI");e.subscribeOn=i},L0Qg:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new a)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("3lsR");e.materialize=i;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype._next=function(t){this.destination.next(s.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(s.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(s.Notification.createComplete()),t.complete()},e}(o.Subscriber)},L5DB:function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("wM1e"),s=n("wsck"),a=n("V6Dl");n.d(e,"a",function(){return u});var l={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return u}),multi:!0},u=function(){function t(t){this.onChange=function(t){},this.onTouched=function(){},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}return t.prototype.writeValue=function(t){this.model=t?new s.a(t.hour,t.minute,t.second):new s.a,this.seconds||t&&n.i(o.a)(t.second)||(this.model.second=0)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.changeHour=function(t){this.model.changeHour(t),this.propagateModelChange()},t.prototype.changeMinute=function(t){this.model.changeMinute(t),this.propagateModelChange()},t.prototype.changeSecond=function(t){this.model.changeSecond(t),this.propagateModelChange()},t.prototype.updateHour=function(t){this.model.updateHour(n.i(o.b)(t)),this.propagateModelChange()},t.prototype.updateMinute=function(t){this.model.updateMinute(n.i(o.b)(t)),this.propagateModelChange()},t.prototype.updateSecond=function(t){this.model.updateSecond(n.i(o.b)(t)),this.propagateModelChange()},t.prototype.toggleMeridian=function(){this.meridian&&this.changeHour(12)},t.prototype.formatHour=function(t){return n.i(o.a)(t)?this.meridian?n.i(o.c)(t%12==0?12:t%12):n.i(o.c)(t%24):n.i(o.c)(NaN)},t.prototype.formatMinSec=function(t){return n.i(o.c)(t)},t.prototype.setFormControlSize=function(){return{"form-control-sm":"small"===this.size,"form-control-lg":"large"===this.size}},t.prototype.setButtonSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},t.prototype.ngOnChanges=function(t){t.seconds&&!this.seconds&&this.model&&!n.i(o.a)(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))},t.prototype.propagateModelChange=function(t){void 0===t&&(t=!0),t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange({hour:this.model.hour,minute:this.model.minute,second:this.model.second}):this.onChange(null)},t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-timepicker",styles:["\n    .ngb-tp {\n      display: flex;\n      align-items: center;\n    }\n\n    .ngb-tp-hour, .ngb-tp-minute, .ngb-tp-second, .ngb-tp-meridian {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: space-around;\n    }\n\n    .ngb-tp-spacer {\n      width: 1em;\n      text-align: center;\n    }\n\n    .chevron::before {\n      border-style: solid;\n      border-width: 0.29em 0.29em 0 0;\n      content: '';\n      display: inline-block;\n      height: 0.69em;\n      left: 0.05em;\n      position: relative;\n      top: 0.15em;\n      transform: rotate(-45deg);\n      -webkit-transform: rotate(-45deg);\n      -ms-transform: rotate(-45deg);\n      vertical-align: middle;\n      width: 0.71em;\n    }\n\n    .chevron.bottom:before {\n      top: -.3em;\n      -webkit-transform: rotate(135deg);\n      -ms-transform: rotate(135deg);\n      transform: rotate(135deg);\n    }\n\n    .btn-link {\n      outline: 0;\n    }\n\n    .btn-link.disabled {\n      cursor: not-allowed;\n      opacity: .65;\n    }\n\n    input {\n      text-align: center;\n      display: inline-block;\n      width: auto;\n    }\n  "],template:'\n    <fieldset [disabled]="disabled" [class.disabled]="disabled">\n      <div class="ngb-tp">\n        <div class="ngb-tp-hour">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeHour(hourStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron"></span>\n            <span class="sr-only">Increment hours</span>\n          </button>\n          <input type="text" class="form-control" [ngClass]="setFormControlSize()" maxlength="2" size="2" placeholder="HH"\n            [value]="formatHour(model?.hour)" (change)="updateHour($event.target.value)"\n            [readonly]="readonlyInputs" [disabled]="disabled" aria-label="Hours">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeHour(-hourStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron bottom"></span>\n            <span class="sr-only">Decrement hours</span>\n          </button>\n        </div>\n        <div class="ngb-tp-spacer">:</div>\n        <div class="ngb-tp-minute">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeMinute(minuteStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron"></span>\n            <span class="sr-only">Increment minutes</span>\n          </button>\n          <input type="text" class="form-control" [ngClass]="setFormControlSize()" maxlength="2" size="2" placeholder="MM"\n            [value]="formatMinSec(model?.minute)" (change)="updateMinute($event.target.value)"\n            [readonly]="readonlyInputs" [disabled]="disabled" aria-label="Minutes">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeMinute(-minuteStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron bottom"></span>\n            <span class="sr-only">Decrement minutes</span>\n          </button>\n        </div>\n        <div *ngIf="seconds" class="ngb-tp-spacer">:</div>\n        <div *ngIf="seconds" class="ngb-tp-second">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeSecond(secondStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron"></span>\n            <span class="sr-only">Increment seconds</span>\n          </button>\n          <input type="text" class="form-control" [ngClass]="setFormControlSize()" maxlength="2" size="2" placeholder="SS"\n            [value]="formatMinSec(model?.second)" (change)="updateSecond($event.target.value)"\n            [readonly]="readonlyInputs" [disabled]="disabled" aria-label="Seconds">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeSecond(-secondStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron bottom"></span>\n            <span class="sr-only">Decrement seconds</span>\n          </button>\n        </div>\n        <div *ngIf="meridian" class="ngb-tp-spacer"></div>\n        <div *ngIf="meridian" class="ngb-tp-meridian">\n          <button type="button" class="btn btn-outline-primary" [ngClass]="setButtonSize()"\n            [disabled]="disabled" [class.disabled]="disabled"\n            (click)="toggleMeridian()">{{model.hour >= 12 ? \'PM\' : \'AM\'}}</button>\n        </div>\n      </div>\n    </fieldset>\n  ',providers:[l]}]}],u.ctorParameters=function(){return[{type:a.a}]},u.propDecorators={meridian:[{type:i.Input}],spinners:[{type:i.Input}],seconds:[{type:i.Input}],hourStep:[{type:i.Input}],minuteStep:[{type:i.Input}],secondStep:[{type:i.Input}],readonlyInputs:[{type:i.Input}],size:[{type:i.Input}]}},LBqD:function(t,e,n){"use strict";function i(){return r.pairwise()(this)}var r=n("9FjR");e.pairwise=i},LClL:function(t,e,n){"use strict";var i=n("bKpL"),r=n("saEi");i.Observable.prototype.publishBehavior=r.publishBehavior},LMxK:function(t,e,n){"use strict";var i=n("tAjV");e.audit=i.audit;var r=n("GTdq");e.auditTime=r.auditTime;var o=n("+vKo");e.buffer=o.buffer;var s=n("5NGA");e.bufferCount=s.bufferCount;var a=n("duFl");e.bufferTime=a.bufferTime;var l=n("6QEA");e.bufferToggle=l.bufferToggle;var u=n("v1IT");e.bufferWhen=u.bufferWhen;var c=n("g1RG");e.catchError=c.catchError;var h=n("7xz3");e.combineAll=h.combineAll;var p=n("H4tt");e.combineLatest=p.combineLatest;var f=n("vNxK");e.concat=f.concat;var d=n("NiCh");e.concatAll=d.concatAll;var m=n("+FJ1");e.concatMap=m.concatMap;var v=n("0mJJ");e.concatMapTo=v.concatMapTo;var g=n("ip92");e.count=g.count;var b=n("2l91");e.debounce=b.debounce;var y=n("Hr+Y");e.debounceTime=y.debounceTime;var w=n("PbxL");e.defaultIfEmpty=w.defaultIfEmpty;var x=n("EUVd");e.delay=x.delay;var S=n("aeUV");e.delayWhen=S.delayWhen;var C=n("pguX");e.dematerialize=C.dematerialize;var O=n("y+rW");e.distinct=O.distinct;var k=n("2Sjb");e.distinctUntilChanged=k.distinctUntilChanged;var T=n("HBVP");e.distinctUntilKeyChanged=T.distinctUntilKeyChanged;var _=n("k6cv");e.elementAt=_.elementAt;var L=n("GiTH");e.every=L.every;var I=n("weui");e.exhaust=I.exhaust;var M=n("NzSV");e.exhaustMap=M.exhaustMap;var A=n("y23k");e.expand=A.expand;var E=n("Hd11");e.filter=E.filter;var N=n("FTnw");e.finalize=N.finalize;var R=n("0dhf");e.find=R.find;var D=n("IfwN");e.findIndex=D.findIndex;var P=n("+BWq");e.first=P.first;var j=n("8H5Y");e.groupBy=j.groupBy;var F=n("XG4q");e.ignoreElements=F.ignoreElements;var W=n("C4ew");e.isEmpty=W.isEmpty;var H=n("zrH4");e.last=H.last;var V=n("L8VJ");e.map=V.map;var z=n("6d3x");e.mapTo=z.mapTo;var B=n("L0Qg");e.materialize=B.materialize;var q=n("jjPq");e.max=q.max;var K=n("QHK3");e.merge=K.merge;var U=n("8rcZ");e.mergeAll=U.mergeAll;var G=n("mjx3");e.mergeMap=G.mergeMap;var Y=n("mjx3");e.flatMap=Y.mergeMap;var X=n("j8LY");e.mergeMapTo=X.mergeMapTo;var J=n("t9cH");e.mergeScan=J.mergeScan;var Z=n("y3SI");e.min=Z.min;var Q=n("P02W");e.multicast=Q.multicast;var $=n("GDiU");e.observeOn=$.observeOn;var tt=n("r6G9");e.onErrorResumeNext=tt.onErrorResumeNext;var et=n("9FjR");e.pairwise=et.pairwise;var nt=n("hfga");e.partition=nt.partition;var it=n("wcuQ");e.pluck=it.pluck;var rt=n("zBM/");e.publish=rt.publish;var ot=n("ASfG");e.publishBehavior=ot.publishBehavior;var st=n("qfkx");e.publishLast=st.publishLast;var at=n("z8/z");e.publishReplay=at.publishReplay;var lt=n("XWpj");e.race=lt.race;var ut=n("JwCl");e.reduce=ut.reduce;var ct=n("Hg2u");e.repeat=ct.repeat;var ht=n("g9kf");e.repeatWhen=ht.repeatWhen;var pt=n("5r3W");e.retry=pt.retry;var ft=n("qanz");e.retryWhen=ft.retryWhen;var dt=n("F9px");e.refCount=dt.refCount;var mt=n("ZNYO");e.sample=mt.sample;var vt=n("60lp");e.sampleTime=vt.sampleTime;var gt=n("H1KZ");e.scan=gt.scan;var bt=n("xJeO");e.sequenceEqual=bt.sequenceEqual;var yt=n("HwxE");e.share=yt.share;var wt=n("Wxra");e.shareReplay=wt.shareReplay;var xt=n("v71/");e.single=xt.single;var St=n("cyM/");e.skip=St.skip;var Ct=n("EmkH");e.skipLast=Ct.skipLast;var Ot=n("UHtL");e.skipUntil=Ot.skipUntil;var kt=n("aL6N");e.skipWhile=kt.skipWhile;var Tt=n("dtBE");e.startWith=Tt.startWith;var _t=n("rhfi");e.switchAll=_t.switchAll;var Lt=n("TupL");e.switchMap=Lt.switchMap;var It=n("0lA3");e.switchMapTo=It.switchMapTo;var Mt=n("TQK7");e.take=Mt.take;var At=n("XvrG");e.takeLast=At.takeLast;var Et=n("y3aq");e.takeUntil=Et.takeUntil;var Nt=n("5x23");e.takeWhile=Nt.takeWhile;var Rt=n("4HZJ");e.tap=Rt.tap;var Dt=n("DrEP");e.throttle=Dt.throttle;var Pt=n("Rol4");e.throttleTime=Pt.throttleTime;var jt=n("EOAD");e.timeInterval=jt.timeInterval;var Ft=n("qbt9");e.timeout=Ft.timeout;var Wt=n("/h+r");e.timeoutWith=Wt.timeoutWith;var Ht=n("xK8X");e.timestamp=Ht.timestamp;var Vt=n("Y4uv");e.toArray=Vt.toArray;var zt=n("7tal");e.window=zt.window;var Bt=n("GeBq");e.windowCount=Bt.windowCount;var qt=n("dffx");e.windowTime=qt.windowTime;var Kt=n("bLt9");e.windowToggle=Kt.windowToggle;var Ut=n("kqkQ");e.windowWhen=Ut.windowWhen;var Gt=n("p4do");e.withLatestFrom=Gt.withLatestFrom;var Yt=n("SBOU");e.zip=Yt.zip;var Xt=n("IkMW");e.zipAll=Xt.zipAll},LTTx:function(t,e,n){"use strict";var i=n("bKpL"),r=n("xAqS");i.Observable.prototype.bufferToggle=r.bufferToggle},Lqs2:function(t,e,n){"use strict";function i(t){return r.take(t)(this)}var r=n("TQK7");e.take=i},Lssd:function(t,e,n){"use strict";var i=n("bKpL"),r=n("WmO6");i.Observable.prototype.partition=r.partition},M11L:function(t,e,n){"use strict";function i(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}var r=n("zijX");e.minimalSetImpl=i,e.Set=r.root.Set||i()},MBEm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("kGJb");i.Observable.prototype.distinctUntilChanged=r.distinctUntilChanged},MIR9:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("3lsR"),s=n("iH09"),a=n("XR5H"),l=n("OXmC"),u=n("I64N"),c=750,h=function(t){function e(e){t.call(this,u.VirtualAction,c),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return i(e,t),e.prototype.createTime=function(t){var n=t.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*e.frameTimeFactor},e.prototype.createColdObservable=function(t,n,i){if(-1!==t.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==t.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var r=e.parseMarbles(t,n,i),o=new s.ColdObservable(r,this);return this.coldObservables.push(o),o},e.prototype.createHotObservable=function(t,n,i){if(-1!==t.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var r=e.parseMarbles(t,n,i),o=new a.HotObservable(r,this);return this.hotObservables.push(o),o},e.prototype.materializeInnerObservable=function(t,e){var n=this,i=[];return t.subscribe(function(t){i.push({frame:n.frame-e,notification:o.Notification.createNext(t)})},function(t){i.push({frame:n.frame-e,notification:o.Notification.createError(t)})},function(){i.push({frame:n.frame-e,notification:o.Notification.createComplete()})}),i},e.prototype.expectObservable=function(t,n){var i=this;void 0===n&&(n=null);var s,a=[],l={actual:a,ready:!1},u=e.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof r.Observable&&(e=i.materializeInnerObservable(e,i.frame)),a.push({frame:i.frame,notification:o.Notification.createNext(e)})},function(t){a.push({frame:i.frame,notification:o.Notification.createError(t)})},function(){a.push({frame:i.frame,notification:o.Notification.createComplete()})})},0),u!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},u),this.flushTests.push(l),{toBe:function(t,n,i){l.ready=!0,l.expected=e.parseMarbles(t,n,i,!0)}}},e.prototype.expectSubscriptions=function(t){var n={actual:t,ready:!1};return this.flushTests.push(n),{toBe:function(t){var i="string"==typeof t?[t]:t;n.ready=!0,n.expected=i.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var n=this.flushTests.filter(function(t){return t.ready});n.length>0;){var i=n.shift();this.assertDeepEqual(i.actual,i.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new l.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,n=-1,i=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=0;o<e;o++){var s=o*this.frameTimeFactor,a=t[o];switch(a){case"-":case" ":break;case"(":n=s;break;case")":n=-1;break;case"^":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=n>-1?n:s;break;case"!":if(r!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");r=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return r<0?new l.SubscriptionLog(i):new l.SubscriptionLog(i,r)},e.parseMarbles=function(t,e,n,i){if(void 0===i&&(i=!1),-1!==t.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var r=t.length,a=[],l=t.indexOf("^"),u=-1===l?0:l*-this.frameTimeFactor,c="object"!=typeof e?function(t){return t}:function(t){return i&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},h=-1,p=0;p<r;p++){var f=p*this.frameTimeFactor+u,d=void 0,m=t[p];switch(m){case"-":case" ":break;case"(":h=f;break;case")":h=-1;break;case"|":d=o.Notification.createComplete();break;case"^":break;case"#":d=o.Notification.createError(n||"error");break;default:d=o.Notification.createNext(c(m))}d&&a.push({frame:h>-1?h:f,notification:d})}return a},e}(u.VirtualTimeScheduler);e.TestScheduler=h},MaQZ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("etEa");i.Observable.prototype.find=r.find},MsHi:function(t,e,n){"use strict";function i(t){return o["ɵvid"](2,[(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵeld"](1,0,null,null,1,"h3",[["class","popover-title"]],null,null,null,null,null)),(t()(),o["ɵted"](2,null,["",""])),(t()(),o["ɵeld"](3,0,null,null,1,"div",[["class","popover-content"]],null,null,null,null,null)),o["ɵncd"](null,0),(t()(),o["ɵted"](-1,null,["\n    "]))],null,function(t,e){t(e,2,0,e.component.title)})}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,i,l)),o["ɵdid"](1,49152,null,0,s.b,[],null,null)],null,function(t,e){t(e,0,0,"popover show popover-"+o["ɵnov"](e,1).placement,o["ɵnov"](e,1).id)})}var o=n("/oeL"),s=n("mQQt");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-popover-window",s.b,r,{placement:"placement",title:"title",id:"id"},{},["*"])},MzWM:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return i(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new l(t,this.observableFactory)},e}(r.Observable);e.DeferObservable=a;var l=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return i(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},NOvV:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Pf4u");i.Observable.prototype.onErrorResumeNext=r.onErrorResumeNext},NUku:function(t,e,n){"use strict";function i(t){return r.buffer(t)(this)}var r=n("+vKo");e.buffer=i},NZPJ:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("MicL"),s=function(t){return t},a=function(t){function e(e,n,i,r,o){t.call(this),this.initialState=e,this.condition=n,this.iterate=i,this.resultSelector=r,this.scheduler=o}return i(e,t),e.create=function(t,n,i,r,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===r||o.isScheduler(r)?new e(t,n,i,s,r):new e(t,n,i,r,a)},e.prototype._subscribe=function(t){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var i=this,r=i.condition,o=i.resultSelector,s=i.iterate;;){if(r){var a=void 0;try{a=r(n)}catch(e){return void t.error(e)}if(!a){t.complete();break}}var l=void 0;try{l=o(n)}catch(e){return void t.error(e)}if(t.next(l),t.closed)break;try{n=s(n)}catch(e){return void t.error(e)}}},e.dispatch=function(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var i=void 0;try{i=n(t.state)}catch(t){return void e.error(t)}if(!i)return void e.complete();if(e.closed)return}var r;try{r=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(r),!e.closed))return this.schedule(t)}},e}(r.Observable);e.GenerateObservable=a},NgMz:function(t,e,n){"use strict";function i(t,e){return r.findIndex(t,e)(this)}var r=n("IfwN");e.findIndex=i},NkQZ:function(t,e,n){"use strict";function i(t,e){return r.switchMapTo(t,e)(this)}var r=n("0lA3");e.switchMapTo=i},NmeZ:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},NzSV:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.exhaustMap=i;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.resultSelector))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.project=n,this.resultSelector=i,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return r(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var i=this.project(t,e);this.hasSubscription=!0,this.add(s.subscribeToResult(this,i,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,i):a.next(e)},e.prototype.trySelectResult=function(t,e,n,i){var r=this,o=r.resultSelector,s=r.destination;try{var a=o(t,e,n,i);s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},OADz:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.withLatestFrom.apply(void 0,t)(this)}var r=n("p4do");e.withLatestFrom=i},OCM8:function(t,e,n){"use strict";function i(){return r.publishLast()(this)}var r=n("qfkx");e.publishLast=i},OGSH:function(t,e,n){"use strict";var i=n("bKpL"),r=n("c2EU");i.Observable.prototype.throttle=r.throttle},OPj5:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e");n.d(e,"a",function(){return o});var o=function(){function t(){this.highlightClass="ngb-highlight"}return t.prototype.ngOnChanges=function(t){var e=n.i(r.d)(this.result),i=e.toLowerCase(),o=n.i(r.d)(this.term).toLowerCase(),s=0;o.length>0?this.parts=i.split(new RegExp("("+n.i(r.g)(o)+")")).map(function(t){var n=e.substr(s,t.length);return s+=t.length,n}):this.parts=[e]},t}();o.decorators=[{type:i.Component,args:[{selector:"ngb-highlight",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'<ng-template ngFor [ngForOf]="parts" let-part let-isOdd="odd"><span *ngIf="isOdd" class="{{highlightClass}}">{{part}}</span><ng-template [ngIf]="!isOdd">{{part}}</ng-template></ng-template>',styles:["\n    .ngb-highlight {\n      font-weight: bold;\n    }\n  "]}]}],o.ctorParameters=function(){return[]},o.propDecorators={highlightClass:[{type:i.Input}],result:[{type:i.Input}],term:[{type:i.Input}]}},OXmC:function(t,e,n){"use strict";var i=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return t}();e.SubscriptionLog=i},Obns:function(t,e,n){"use strict";function i(t){return r.debounce(t)(this)}var r=n("2l91");e.debounce=i},OdUO:function(t,e,n){"use strict";function i(t,e){return r.elementAt(t,e)(this)}var r=n("k6cv");e.elementAt=i},Oery:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e"),o=n("5FV4");n.d(e,"c",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var s=0,a=function(){function t(t){this.templateRef=t}return t}();a.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbPanelTitle]"}]}],a.ctorParameters=function(){return[{type:i.TemplateRef}]};var l=function(){function t(t){this.templateRef=t}return t}();l.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbPanelContent]"}]}],l.ctorParameters=function(){return[{type:i.TemplateRef}]};var u=function(){function t(){this.disabled=!1,this.id="ngb-panel-"+s++}return t}();u.decorators=[{type:i.Directive,args:[{selector:"ngb-panel"}]}],u.ctorParameters=function(){return[]},u.propDecorators={disabled:[{type:i.Input}],id:[{type:i.Input}],title:[{type:i.Input}],type:[{type:i.Input}],contentTpl:[{type:i.ContentChild,args:[l]}],titleTpl:[{type:i.ContentChild,args:[a]}]};var c=function(){function t(t){this._states=new Map,this._panelRefs=new Map,this.activeIds=[],this.panelChange=new i.EventEmitter,this.type=t.type,this.closeOtherPanels=t.closeOthers}return t.prototype.toggle=function(t){var e=this._panelRefs.get(t);if(e&&!e.disabled){var n=!this._states.get(t),i=!1;this.panelChange.emit({panelId:t,nextState:n,preventDefault:function(){i=!0}}),i||(this._states.set(t,n),this.closeOtherPanels&&this._closeOthers(t),this._updateActiveIds())}},t.prototype.ngAfterContentChecked=function(){n.i(r.f)(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this._updateStates(),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0]),this._updateActiveIds())},t.prototype.isOpen=function(t){return this._states.get(t)},t.prototype._closeOthers=function(t){var e=this;this._states.forEach(function(n,i){i!==t&&e._states.set(i,!1)})},t.prototype._updateActiveIds=function(){var t=this;this.activeIds=this.panels.toArray().filter(function(e){return t.isOpen(e.id)&&!e.disabled}).map(function(t){return t.id})},t.prototype._updateStates=function(){var t=this;this._states.clear(),this._panelRefs.clear(),this.panels.toArray().forEach(function(e){t._states.set(e.id,t.activeIds.indexOf(e.id)>-1&&!e.disabled),t._panelRefs.set(e.id,e)})},t}();c.decorators=[{type:i.Component,args:[{selector:"ngb-accordion",exportAs:"ngbAccordion",host:{role:"tablist","[attr.aria-multiselectable]":"!closeOtherPanels"},template:'\n  <div class="card">\n    <ng-template ngFor let-panel [ngForOf]="panels">\n      <div role="tab" id="{{panel.id}}-header"\n        [class]="\'card-header \' + (panel.type ? \'card-\'+panel.type: type ? \'card-\'+type : \'\')" [class.active]="isOpen(panel.id)">\n        <a href (click)="!!toggle(panel.id)" [class.text-muted]="panel.disabled" [attr.tabindex]="(panel.disabled ? \'-1\' : null)"\n          [attr.aria-expanded]="isOpen(panel.id)" [attr.aria-controls]="(isOpen(panel.id) ? panel.id : null)"\n          [attr.aria-disabled]="panel.disabled">\n          {{panel.title}}<ng-template [ngTemplateOutlet]="panel.titleTpl?.templateRef"></ng-template>\n        </a>\n      </div>\n      <div id="{{panel.id}}" role="tabpanel" [attr.aria-labelledby]="panel.id + \'-header\'" class="card-block" *ngIf="isOpen(panel.id)">\n        <ng-template [ngTemplateOutlet]="panel.contentTpl.templateRef"></ng-template>\n      </div>\n    </ng-template>\n  </div>\n'}]}],c.ctorParameters=function(){return[{type:o.a}]},c.propDecorators={panels:[{type:i.ContentChildren,args:[u]}],activeIds:[{type:i.Input}],closeOtherPanels:[{type:i.Input,args:["closeOthers"]}],type:[{type:i.Input}],panelChange:[{type:i.Output}]}},Ohh6:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.startWith.apply(void 0,t)(this)}var r=n("dtBE");e.startWith=i},Ozq5:function(t,e,n){"use strict";var i=n("bKpL"),r=n("GoZW");i.Observable.prototype.pluck=r.pluck},"P+lj":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("wEhC"),s=n("EsGe"),a=function(t){function e(e,n,i){void 0===n&&(n=0),void 0===i&&(i=o.asap),t.call(this),this.source=e,this.delayTime=n,this.scheduler=i,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),i&&"function"==typeof i.schedule||(this.scheduler=o.asap)}return i(e,t),e.create=function(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=o.asap),new e(t,n,i)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,i=this.source;return this.scheduler.schedule(e.dispatch,n,{source:i,subscriber:t})},e}(r.Observable);e.SubscribeOnObservable=a},P1Y9:function(t,e,n){(function(e){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){Wt.forEach(function(e){var n=e.popper,i=e.tippyInstance,r=e.settings,o=r.appendTo,s=r.hideOnClick,a=r.trigger;if(o.contains(n)){var l=!0===s||-1!==a.indexOf("focus"),u=!t||n!==t.popper;l&&u&&i.hide(n)}})}function n(t,e){return(Element.prototype.closest||function(t){for(var e=this;e;){if(Kt.call(e,t))return e;e=e.parentElement}}).call(t,e)}function i(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function r(){var e=function(){Ft.touch=!0,Ft.iOS()&&document.body.classList.add("tippy-touch"),Ft.dynamicInputDetection&&window.performance&&document.addEventListener("mousemove",r)},r=function(){var t=void 0;return function(){var e=performance.now();e-t<20&&(Ft.touch=!1,document.removeEventListener("mousemove",r),Ft.iOS()||document.body.classList.remove("tippy-touch")),t=e}}(),o=function(e){if(!(e.target instanceof Element))return t();var r=n(e.target,Ht.TOOLTIPPED_EL),o=n(e.target,Ht.POPPER);if(o){if(i(Wt,function(t){return t.popper===o}).settings.interactive)return}if(r){var s=i(Wt,function(t){return t.el===r}),a=s.settings,l=a.hideOnClick,u=a.multiple,c=a.trigger;if(!u&&Ft.touch||!u&&-1!==c.indexOf("click"))return t(s);if(!0!==l||-1!==c.indexOf("click"))return}!n(e.target,Ht.CONTROLLER)&&document.querySelector(Ht.POPPER)&&t()},s=function(t){var e=document,n=e.activeElement;n&&n.blur&&Kt.call(n,Ht.TOOLTIPPED_EL)&&n.blur()};document.addEventListener("click",o),document.addEventListener("touchstart",e),window.addEventListener("blur",s),!Ft.SUPPORTS_TOUCH&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&document.addEventListener("pointerdown",e)}function o(){return!o.done&&(o.done=!0,r(),!0)}function s(t){window.requestAnimationFrame(function(){setTimeout(t,0)})}function a(t){for(var e=[!1,"webkit"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function l(t,e){return Array.prototype.findIndex?t.findIndex(e):t.indexOf(i(t,e))}function u(t){var e=t.getAttribute("title");e&&t.setAttribute("data-original-title",e),t.removeAttribute("title")}function c(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function h(t,e){e?window.getComputedStyle(e)[a("transform")]:window.getComputedStyle(t).opacity}function p(t,e){t.forEach(function(t){t&&e(t.classList)})}function f(t){return{tooltip:t.querySelector(Ht.TOOLTIP),circle:t.querySelector(Ht.CIRCLE),content:t.querySelector(Ht.CONTENT)}}function d(t,e){t.forEach(function(t){if(t){var n=Kt.call(t,Ht.CONTENT),i=n?Math.round(e/1.3):e;t.style[a("transitionDuration")]=i+"ms"}})}function m(t){return"visible"===t.style.visibility}function v(){}function g(t){return!!t&&"[object Object]"===t.toString()}function b(t){return t.replace(/-.+/,"")}function y(t){var e=this,n=i(Wt,function(t){return t.el===e}),r=n.popper,o=n.settings.offset,s=b(r.getAttribute("x-placement")),l=Math.round(r.offsetWidth/2),u=Math.round(r.offsetHeight/2),c=document.documentElement.offsetWidth||document.body.offsetWidth,h=t.pageX,p=t.pageY,f=void 0,d=void 0;switch(s){case"top":f=h-l+o,d=p-2*u;break;case"bottom":f=h-l+o,d=p+10;break;case"left":f=h-2*l,d=p-u+o;break;case"right":f=h+5,d=p-u+o}var m=h+5+l+o>c,v=h-5-l+o<0;"top"!==s&&"bottom"!==s||(m&&(f=c-5-2*l),v&&(f=5)),r.style[a("transform")]="translate3d("+f+"px, "+d+"px, 0)"}function w(t){if(t instanceof Element||g(t))return[t];if(t instanceof NodeList)return[].slice.call(t);if(Array.isArray(t))return t;try{return[].slice.call(document.querySelectorAll(t))}catch(t){return[]}}function x(t,e,n){if(!e)return n();var i=f(t.popper),r=i.tooltip,o=!1,s=function(t){t.target!==r||o||(o=!0,n())};r.addEventListener("webkitTransitionEnd",s),r.addEventListener("transitionend",s),clearTimeout(t._transitionendTimeout),t._transitionendTimeout=setTimeout(function(){o||n()},e)}function S(t){var e=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}function C(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Xt))}}function O(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function k(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function T(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function _(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var e=k(t),n=e.overflow,i=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+i)?t:_(T(t))}function L(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===k(e,"position")?L(e):e:window.document.documentElement}function I(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||L(t.firstElementChild)===t)}function M(t){return null!==t.parentNode?M(t.parentNode):t}function A(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||i.contains(r))return I(s)?s:L(s);var a=M(t);return a.host?A(a.host,e):A(t,M(e).host)}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return t[n]}function N(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=E(e,"top"),r=E(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function R(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function D(t,e,n,i,r){return Math.max(e["offset"+t],r?e["scroll"+t]:0,n["client"+t],n["offset"+t],r?n["scroll"+t]:0,te()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function P(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=window.document.body,n=window.document.documentElement,i=te()&&window.getComputedStyle(n);return{height:D("Height",e,n,i,t),width:D("Width",e,n,i,t)}}function j(t){return re({},t,{right:t.left+t.width,bottom:t.top+t.height})}function F(t){var e={};if(te())try{e=t.getBoundingClientRect();var n=E(t,"top"),i=E(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?P():{},s=o.width||t.clientWidth||r.right-r.left,a=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,u=t.offsetHeight-a;if(l||u){var c=k(t);l-=R(c,"x"),u-=R(c,"y"),r.width-=l,r.height-=u}return j(r)}function W(t,e){var n=te(),i="HTML"===e.nodeName,r=F(t),o=F(e),s=_(t),a=k(e),l=+a.borderTopWidth.split("px")[0],u=+a.borderLeftWidth.split("px")[0],c=j({top:r.top-o.top-l,left:r.left-o.left-u,width:r.width,height:r.height});if(c.marginTop=0,c.marginLeft=0,!n&&i){var h=+a.marginTop.split("px")[0],p=+a.marginLeft.split("px")[0];c.top-=l-h,c.bottom-=l-h,c.left-=u-p,c.right-=u-p,c.marginTop=h,c.marginLeft=p}return(n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(c=N(c,e)),c}function H(t){var e=window.document.documentElement,n=W(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),o=E(e),s=E(e,"left");return j({top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r})}function V(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===k(t,"position")||V(T(t)))}function z(t,e,n,i){var r={top:0,left:0},o=A(t,e);if("viewport"===i)r=H(o);else{var s=void 0;"scrollParent"===i?(s=_(T(t)),"BODY"===s.nodeName&&(s=window.document.documentElement)):s="window"===i?window.document.documentElement:i;var a=W(s,o);if("HTML"!==s.nodeName||V(o))r=a;else{var l=P(!1),u=l.height,c=l.width;r.top+=a.top-a.marginTop,r.bottom=u+a.top,r.left+=a.left-a.marginLeft,r.right=c+a.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function B(t){return t.width*t.height}function q(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=z(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return re({key:t},a[t],{area:B(a[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,h=t.split("-")[1];return c+(h?"-"+h:"")}function K(t,e,n){return W(n,A(e,n))}function U(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function G(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function Y(t,e,n){n=n.split("-")[0];var i=U(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[u]:e[G(a)],r}function X(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function J(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=X(t,function(t){return t[e]===n});return t.indexOf(i)}function Z(t,e,n){return(void 0===n?t:t.slice(0,J(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&O(n)&&(e.offsets.popper=j(e.offsets.popper),e.offsets.reference=j(e.offsets.reference),e=n(e,t))}),e}function Q(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=K(this.state,this.popper,this.reference),t.placement=q(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=Y(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=Z(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function $(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function tt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function et(){return this.state.isDestroyed=!0,$(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[tt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function nt(t,e,n,i){var r="BODY"===t.nodeName,o=r?window:t;o.addEventListener(e,n,{passive:!0}),r||nt(_(o.parentNode),e,n,i),i.push(o)}function it(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=_(t);return nt(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function rt(){this.state.eventsEnabled||(this.state=it(this.reference,this.options,this.state,this.scheduleUpdate))}function ot(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function st(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=ot(this.reference,this.state))}function at(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function lt(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&at(e[n])&&(i="px"),t.style[n]=e[n]+i})}function ut(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function ct(t){return lt(t.instance.popper,t.styles),ut(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&lt(t.arrowElement,t.arrowStyles),t}function ht(t,e,n,i,r){var o=K(r,e,t),s=q(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),lt(e,{position:"absolute"}),n}function pt(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=X(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,a=L(t.instance.popper),l=F(a),u={position:r.position},c={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},h="bottom"===n?"top":"bottom",p="right"===i?"left":"right",f=tt("transform"),d=void 0,m=void 0;if(m="bottom"===h?-l.height+c.bottom:c.top,d="right"===p?-l.width+c.right:c.left,s&&f)u[f]="translate3d("+d+"px, "+m+"px, 0)",u[h]=0,u[p]=0,u.willChange="transform";else{var v="bottom"===h?-1:1,g="right"===p?-1:1;u[h]=m*v,u[p]=d*g,u.willChange=h+", "+p}var b={"x-placement":t.placement};return t.attributes=re({},b,t.attributes),t.styles=re({},u,t.styles),t.arrowStyles=re({},t.offsets.arrow,t.arrowStyles),t}function ft(t,e,n){var i=X(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function dt(t,e){if(!ft(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,o=r.popper,s=r.reference,a=-1!==["left","right"].indexOf(i),l=a?"height":"width",u=a?"Top":"Left",c=u.toLowerCase(),h=a?"left":"top",p=a?"bottom":"right",f=U(n)[l];s[p]-f<o[c]&&(t.offsets.popper[c]-=o[c]-(s[p]-f)),s[c]+f>o[p]&&(t.offsets.popper[c]+=s[c]+f-o[p]);var d=s[c]+s[l]/2-f/2,m=k(t.instance.popper,"margin"+u).replace("px",""),v=d-j(t.offsets.popper)[c]-m;return v=Math.max(Math.min(o[l]-f,v),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[c]=Math.round(v),t.offsets.arrow[h]="",t}function mt(t){return"end"===t?"start":"start"===t?"end":t}function vt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=se.indexOf(t),i=se.slice(n+1).concat(se.slice(0,n));return e?i.reverse():i}function gt(t,e){if($(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=z(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=G(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case ae.FLIP:s=[i,r];break;case ae.CLOCKWISE:s=vt(i);break;case ae.COUNTERCLOCKWISE:s=vt(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=G(i);var u=t.offsets.popper,c=t.offsets.reference,h=Math.floor,p="left"===i&&h(u.right)>h(c.left)||"right"===i&&h(u.left)<h(c.right)||"top"===i&&h(u.bottom)>h(c.top)||"bottom"===i&&h(u.top)<h(c.bottom),f=h(u.left)<h(n.left),d=h(u.right)>h(n.right),m=h(u.top)<h(n.top),v=h(u.bottom)>h(n.bottom),g="left"===i&&f||"right"===i&&d||"top"===i&&m||"bottom"===i&&v,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===o&&f||b&&"end"===o&&d||!b&&"start"===o&&m||!b&&"end"===o&&v);(p||g||y)&&(t.flipped=!0,(p||g)&&(i=s[l+1]),y&&(o=mt(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=re({},t.offsets.popper,Y(t.instance.popper,t.offsets.reference,t.placement)),t=Z(t.instance.modifiers,t,"flip"))}),t}function bt(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}function yt(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return j(a)[e]/100*o}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function wt(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(X(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return yt(t,r,e,n)})}),u.forEach(function(t,e){t.forEach(function(n,i){at(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}function xt(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=at(+n)?[+n,0]:wt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function St(t,e){var n=e.boundariesElement||L(t.instance.popper);t.instance.reference===n&&(n=L(n));var i=z(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=t.offsets.popper,s={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),ie({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),ie({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=re({},o,s[e](t))}),t.offsets.popper=o,t}function Ct(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:ie({},l,o[l]),end:ie({},l,o[l]+o[u]-s[u])};t.offsets.popper=re({},s,c[i])}return t}function Ot(t){if(!ft(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=X(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function kt(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=G(e),t.offsets.popper=j(r),t}function Tt(t){return-(t-Vt.distance)+"px"}function _t(t){var e=t.el,n=t.popper,i=t.settings,r=i.position,o=i.popperOptions,l=i.offset,u=i.distance,c=i.flipDuration,h=f(n),p=h.tooltip,d=fe({placement:r},o||{},{modifiers:fe({},o?o.modifiers:{},{flip:fe({padding:u+5},o&&o.modifiers?o.modifiers.flip:{}),offset:fe({offset:l},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){var t=p.style;t.top="",t.bottom="",t.left="",t.right="",t[b(n.getAttribute("x-placement"))]=Tt(u)}});if(window.MutationObserver){var m=n.style,v=new MutationObserver(function(){m[a("transitionDuration")]="0ms",t.popperInstance.update(),s(function(){m[a("transitionDuration")]=c+"ms"})});v.observe(n,{childList:!0,subtree:!0,characterData:!0}),t._mutationObservers.push(v)}return new ce(e,n,d)}function Lt(t){var e=t.el,n=t.popper,i=t.settings,r=i.appendTo,o=i.followCursor;r.contains(n)||(r.appendChild(n),t.popperInstance?(t.popperInstance.update(),o&&!Ft.touch||t.popperInstance.enableEventListeners()):t.popperInstance=_t(t),o&&!Ft.touch&&(e.addEventListener("mousemove",y),t.popperInstance.disableEventListeners()))}function It(t){var e=t.popper,n=t.popperInstance,i=t.settings.stickyDuration,r=function(){return e.style[a("transitionDuration")]=i+"ms"},o=function(){return e.style[a("transitionDuration")]=""};s(function t(){n&&n.scheduleUpdate(),r(),m(e)?window.requestAnimationFrame(t):o()})}function Mt(t,e){var n=zt.reduce(function(n,i){var r=t.getAttribute("data-"+i.toLowerCase())||e[i];return"false"===r&&(r=!1),"true"===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),"string"==typeof r&&"["===r.trim().charAt(0)&&(r=JSON.parse(r)),n[i]=r,n},{});return fe({},e,n)}function At(t,e,n){var i=n.position,r=n.distance,o=n.arrow,s=n.animateFill,a=n.inertia,l=n.animation,u=n.arrowSize,c=n.size,h=n.theme,p=n.html,f=n.zIndex,d=n.interactive,m=document.createElement("div");m.setAttribute("class","tippy-popper"),m.setAttribute("role","tooltip"),m.setAttribute("aria-hidden","true"),m.setAttribute("id","tippy-tooltip-"+t),m.style.zIndex=f;var v=document.createElement("div");if(v.setAttribute("class","tippy-tooltip tippy-tooltip--"+c+" leave"),v.setAttribute("data-animation",l),h.split(" ").forEach(function(t){v.classList.add(t+"-theme")}),o){var g=document.createElement("div");g.setAttribute("class","arrow-"+u),g.setAttribute("x-arrow",""),v.appendChild(g)}if(s){v.setAttribute("data-animatefill","");var y=document.createElement("div");y.setAttribute("class","leave"),y.setAttribute("x-circle",""),v.appendChild(y)}a&&v.setAttribute("data-inertia",""),d&&v.setAttribute("data-interactive","");var w=document.createElement("div");if(w.setAttribute("class","tippy-tooltip-content"),p){var x=void 0;p instanceof Element?(w.appendChild(p),x="#"+p.id||"tippy-html-template"):(w.innerHTML=document.getElementById(p.replace("#","")).innerHTML,x=p),m.classList.add("html-template"),d&&m.setAttribute("tabindex","-1"),v.setAttribute("data-template-id",x)}else w.innerHTML=e;return v.style[b(i)]=Tt(r),v.appendChild(w),m.appendChild(v),m}function Et(t,e,n,i){var r=[];return"manual"===t?r:(e.addEventListener(t,n.handleTrigger),r.push({event:t,handler:n.handleTrigger}),"mouseenter"===t&&(Ft.SUPPORTS_TOUCH&&i&&(e.addEventListener("touchstart",n.handleTrigger),r.push({event:"touchstart",handler:n.handleTrigger}),e.addEventListener("touchend",n.handleMouseleave),r.push({event:"touchend",handler:n.handleMouseleave})),e.addEventListener("mouseleave",n.handleMouseleave),r.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===t&&(e.addEventListener("blur",n.handleBlur),r.push({event:"blur",handler:n.handleBlur})),r)}function Nt(t,e,n){if(!e.getAttribute("x-placement"))return!0;var i=t.clientX,r=t.clientY,o=n.interactiveBorder,s=n.distance,a=e.getBoundingClientRect(),l=b(e.getAttribute("x-placement")),u=o+s,c={top:a.top-r>o,bottom:r-a.bottom>o,left:a.left-i>o,right:i-a.right>o};switch(l){case"top":c.top=a.top-r>u;break;case"bottom":c.bottom=r-a.bottom>u;break;case"left":c.left=a.left-i>u;break;case"right":c.right=i-a.right>u}return c.top||c.bottom||c.left||c.right}function Rt(t,e,i){var r=this,o=(i.position,i.delay),s=(i.duration,i.interactive),a=(i.interactiveBorder,i.distance,i.hideOnClick),l=i.trigger,u=i.touchHold,c=(i.touchWait,void 0),h=void 0,p=function(){clearTimeout(c),clearTimeout(h)},f=function(){if(p(),!m(e)){var t=Array.isArray(o)?o[0]:o;o?c=setTimeout(function(){return r.show(e)},t):r.show(e)}},d=function(t){return r.callbacks.wait?r.callbacks.wait.call(e,f,t):f()},v=function(){p();var t=Array.isArray(o)?o[1]:o;o?h=setTimeout(function(){return r.hide(e)},t):r.hide(e)};return{handleTrigger:function(n){var i="mouseenter"===n.type&&Ft.SUPPORTS_TOUCH&&Ft.touch;if(!i||!u){var r="click"===n.type,o="persistent"!==a;r&&m(e)&&o?v():d(n),i&&Ft.iOS()&&t.click&&t.click()}},handleMouseleave:function(r){if(!("mouseleave"===r.type&&Ft.SUPPORTS_TOUCH&&Ft.touch&&u)){if(s){var o=function r(o){var s=function(){document.body.removeEventListener("mouseleave",v),document.removeEventListener("mousemove",r),v()},a=n(o.target,Ht.TOOLTIPPED_EL),u=n(o.target,Ht.POPPER)===e,c=a===t,h=-1!==l.indexOf("click");if(a&&a!==t)return s();u||c||h||Nt(o,e,i)&&s()};return document.body.addEventListener("mouseleave",v),void document.addEventListener("mousemove",o)}v()}},handleBlur:function(t){t.relatedTarget&&!Ft.touch&&(n(t.relatedTarget,Ht.POPPER)||v())}}}function Dt(t){return t.arrow&&(t.animateFill=!1),t.appendTo&&"function"==typeof t.appendTo&&(t.appendTo=t.appendTo()),t}function Pt(t){var e=this;return t.reduce(function(t,n){var i=de,r=fe({},Dt(e.settings.performance?e.settings:Mt(n,e.settings)));"function"==typeof r.html&&(r.html=r.html(n));var o=r.html,s=r.trigger,a=r.touchHold,l=r.dynamicTitle,c=n.getAttribute("title");if(!c&&!o)return t;n.setAttribute("data-tooltipped",""),n.setAttribute("aria-describedby","tippy-tooltip-"+i),u(n);var h=At(i,c,r),p=Rt.call(e,n,h,r),d=[];s.trim().split(" ").forEach(function(t){return d=d.concat(Et(t,n,p,a))});var m=void 0;if(l&&window.MutationObserver){var v=f(h),g=v.content;m=new MutationObserver(function(){var t=n.getAttribute("title");t&&(g.innerHTML=t,u(n))}),m.observe(n,{attributes:!0})}return t.push({id:i,el:n,popper:h,settings:r,listeners:d,tippyInstance:e,_mutationObservers:[m]}),de++,t},[])}function jt(t,e){return g(t)&&(t={refObj:!0,attributes:t.attributes||{},getBoundingClientRect:t.getBoundingClientRect,clientWidth:t.clientWidth,clientHeight:t.clientHeight,setAttribute:function(e,n){t.attributes[e]=n},getAttribute:function(e){return t.attributes[e]},removeAttribute:function(e){delete t.attributes[e]},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(e){t.classList.classNames[e]=!0},remove:function(e){return t.classList.classNames[e]=!1,!0},contains:function(e){return!!t.classList.classNames[e]}}}),new me(t,e)}var Ft={};"undefined"!=typeof window&&(Ft.SUPPORTED="requestAnimationFrame"in window,Ft.SUPPORTS_TOUCH="ontouchstart"in window,Ft.touch=!1,Ft.dynamicInputDetection=!0,Ft.iOS=function(){return/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});var Wt=[],Ht={POPPER:".tippy-popper",TOOLTIP:".tippy-tooltip",CONTENT:".tippy-tooltip-content",CIRCLE:"[x-circle]",ARROW:"[x-arrow]",TOOLTIPPED_EL:"[data-tooltipped]",CONTROLLER:"[data-tippy-controller]"},Vt={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,trigger:"mouseenter focus",duration:350,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,popperOptions:{}},zt=Ft.SUPPORTED&&Object.keys(Vt),Bt={};if("undefined"!=typeof Element){var qt=Element.prototype;Bt=qt.matches||qt.matchesSelector||qt.webkitMatchesSelector||qt.mozMatchesSelector||qt.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1}}for(var Kt=Bt,Ut=["native code","[object MutationObserverConstructor]"],Gt="undefined"!=typeof window,Yt=["Edge","Trident","Firefox"],Xt=0,Jt=0;Jt<Yt.length;Jt+=1)if(Gt&&navigator.userAgent.indexOf(Yt[Jt])>=0){Xt=1;break}var Zt=Gt&&function(t){return Ut.some(function(e){return(t||"").toString().indexOf(e)>-1})}(window.MutationObserver),Qt=Zt?S:C,$t=void 0,te=function(){return void 0===$t&&($t=-1!==navigator.appVersion.indexOf("MSIE 10")),$t},ee=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ne=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),ie=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},re=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],se=oe.slice(3),ae={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},le={shift:{order:100,enabled:!0,fn:Ct},offset:{order:200,enabled:!0,fn:xt,offset:0},preventOverflow:{order:300,enabled:!0,fn:St,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:bt},arrow:{order:500,enabled:!0,fn:dt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:gt,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:kt},hide:{order:800,enabled:!0,fn:Ot},computeStyle:{order:850,enabled:!0,fn:pt,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ct,onLoad:ht,gpuAcceleration:void 0}},ue={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:le},ce=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ee(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Qt(this.update.bind(this)),this.options=re({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,this.options.modifiers={},Object.keys(re({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=re({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return re({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&O(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ne(t,[{key:"update",value:function(){return Q.call(this)}},{key:"destroy",value:function(){return et.call(this)}},{key:"enableEventListeners",value:function(){return rt.call(this)}},{key:"disableEventListeners",value:function(){return st.call(this)}}]),t}();ce.Utils=("undefined"!=typeof window?window:e).PopperUtils,ce.placements=oe,ce.Defaults=ue;var he=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},pe=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),fe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},de=1,me=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he(this,t),Ft.SUPPORTED&&(o(),this.state={destroyed:!1},this.selector=e,this.settings=fe({},Vt,n),(n.show||n.shown||n.hide||n.hidden)&&console.warn("Callbacks without the `on` prefix are deprecated (with the exception of `wait`). Use onShow, onShown, onHide, and onHidden instead."),this.callbacks={wait:n.wait,show:n.onShow||n.show||v,shown:n.onShown||n.shown||v,hide:n.onHide||n.hide||v,hidden:n.onHidden||n.hidden||v},this.store=Pt.call(this,w(e)),Wt.push.apply(Wt,this.store))}return pe(t,[{key:"getPopperElement",value:function(t){try{return i(this.store,function(e){return e.el===t}).popper}catch(t){console.error("[getPopperElement]: Element passed as the argument does not exist in the instance")}}},{key:"getReferenceElement",value:function(t){try{return i(this.store,function(e){return e.popper===t}).el}catch(t){console.error("[getReferenceElement]: Popper passed as the argument does not exist in the instance")}}},{key:"getReferenceData",value:function(t){return i(this.store,function(e){return e.el===t||e.popper===t})}},{key:"show",value:function(t,e){var n=this;if(!this.state.destroyed){var r=i(this.store,function(e){return e.popper===t}),o=f(t),a=o.tooltip,l=o.circle,u=o.content;if(!this.selector.refObj&&!document.body.contains(r.el))return void this.destroy(t);this.callbacks.show.call(t);var c=r.el,v=r.settings,g=(v.appendTo,v.sticky),b=v.interactive,y=v.followCursor,w=v.flipDuration,S=v.duration,C=void 0!==e?e:Array.isArray(S)?S[0]:S;d([t,a,l],0),Lt(r),t.style.visibility="visible",t.setAttribute("aria-hidden","false"),s(function(){m(t)&&(y&&!Ft.touch||(r.popperInstance.update(),d([t],w)),d([a,l],C),l&&(u.style.opacity=1),b&&c.classList.add("active"),g&&It(r),h(a,l),p([a,l],function(t){t.contains("tippy-notransition")&&t.remove("tippy-notransition"),t.remove("leave"),t.add("enter")}),x(r,C,function(){m(t)&&!r._onShownFired&&(b&&t.focus(),a.classList.add("tippy-notransition"),r._onShownFired=!0,n.callbacks.shown.call(t))}))})}}},{key:"hide",value:function(t,e){var n=this;if(!this.state.destroyed){this.callbacks.hide.call(t);var r=i(this.store,function(e){return e.popper===t}),o=f(t),s=o.tooltip,a=o.circle,l=o.content,u=r.el,h=r.settings,v=h.appendTo,g=(h.sticky,h.interactive),b=(h.followCursor,h.html),w=h.trigger,S=h.duration,C=void 0!==e?e:Array.isArray(S)?S[1]:S;r._onShownFired=!1,g&&u.classList.remove("active"),t.style.visibility="hidden",t.setAttribute("aria-hidden","true"),d([s,a,a?l:null],C),a&&(l.style.opacity=0),p([s,a],function(t){t.contains("tippy-tooltip")&&t.remove("tippy-notransition"),t.remove("enter"),t.add("leave")}),b&&-1!==w.indexOf("click")&&c(u)&&u.focus(),x(r,C,function(){!m(t)&&v.contains(t)&&"1"!==getComputedStyle(s).opacity&&(u.removeEventListener("mousemove",y),r.popperInstance.disableEventListeners(),v.removeChild(t),n.callbacks.hidden.call(t))})}}},{key:"update",value:function(t){if(!this.state.destroyed){var e=i(this.store,function(e){return e.popper===t}),n=f(t),r=n.content,o=e.el,s=e.settings.html;if(s instanceof Element)return void console.warn("Aborted: update() should not be used if `html` is a DOM element");r.innerHTML=s?document.getElementById(s.replace("#","")).innerHTML:o.getAttribute("title")||o.getAttribute("data-original-title"),s||u(o)}}},{key:"destroy",value:function(t,e){var n=this;if(!this.state.destroyed){var r=i(this.store,function(e){return e.popper===t}),o=r.el,s=r.popperInstance,a=r.listeners,u=r._mutationObservers;m(t)&&this.hide(t,0),a.forEach(function(t){return o.removeEventListener(t.event,t.handler)}),o.setAttribute("title",o.getAttribute("data-original-title")),o.removeAttribute("data-original-title"),o.removeAttribute("data-tooltipped"),o.removeAttribute("aria-describedby"),s&&s.destroy(),u.forEach(function(t){t&&t.disconnect()}),Wt.splice(l(Wt,function(e){return e.popper===t}),1),(void 0===e||e)&&(this.store=Wt.filter(function(t){return t.tippyInstance===n}))}}},{key:"destroyAll",value:function(){var t=this;if(!this.state.destroyed){var e=this.store.length;this.store.forEach(function(n,i){var r=n.popper;t.destroy(r,i===e-1)}),this.store=null,this.state.destroyed=!0}}}]),t}();return jt.Browser=Ft,jt.Defaults=Vt,jt.disableDynamicInputDetection=function(){return Ft.dynamicInputDetection=!1},jt.enableDynamicInputDetection=function(){return Ft.dynamicInputDetection=!0},jt})}).call(e,n("fRUx"))},PT4i:function(t,e,n){"use strict";var i=n("Yvsb");e.never=i.NeverObservable.create},PY9B:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbcG");n.d(e,"a",function(){return o});var o=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();o.decorators=[{type:i.NgModule,args:[{declarations:[r.a],exports:[r.a]}]}],o.ctorParameters=function(){return[]}},PatI:function(t,e,n){"use strict";var i=n("bKpL"),r=n("gonN");i.Observable.prototype.multicast=r.multicast},Pc3Y:function(t,e,n){"use strict";var i=n("/oeL"),r=n("pd7P"),o=n("CuDZ"),s=n("KSV9");n.d(e,"a",function(){return a});var a=function(){function t(t,e){this.i18n=t,this._calendar=e,this.navigation=r.a,this.navigate=new i.EventEmitter,this.select=new i.EventEmitter}return t.prototype.doNavigate=function(t){this.navigate.emit(t)},t.prototype.nextDisabled=function(){return this.disabled||this.maxDate&&this._calendar.getNext(this.date,"m").after(this.maxDate)},t.prototype.prevDisabled=function(){var t=this._calendar.getPrev(this.date,"m");return this.disabled||this.minDate&&t.year<=this.minDate.year&&t.month<this.minDate.month},t.prototype.selectDate=function(t){this.select.emit(t)},t}();a.decorators=[{type:i.Component,args:[{selector:"ngb-datepicker-navigation",host:{class:"d-flex justify-content-between","[class.collapsed]":"!showSelect"},styles:["\n    :host {\n      height: 2rem;\n      line-height: 1.85rem;\n    }\n    :host.collapsed {\n      margin-bottom: -2rem;        \n    }\n    .ngb-dp-navigation-chevron::before {\n      border-style: solid;\n      border-width: 0.2em 0.2em 0 0;\n      content: '';\n      display: inline-block;\n      height: 0.75em;\n      transform: rotate(-135deg);\n      -webkit-transform: rotate(-135deg);\n      -ms-transform: rotate(-135deg);\n      width: 0.75em;\n      margin: 0 0 0 0.5rem;\n    }    \n    .ngb-dp-navigation-chevron.right:before {\n      -webkit-transform: rotate(45deg);\n      -ms-transform: rotate(45deg);\n      transform: rotate(45deg);\n      margin: 0 0.5rem 0 0;\n    }\n    .btn-link {\n      cursor: pointer;\n      outline: 0;\n    }\n    .btn-link[disabled] {\n      cursor: not-allowed;\n      opacity: .65;\n    }    \n  "],template:'\n    <button type="button" class="btn-link" (click)="!!doNavigate(navigation.PREV)" [disabled]="prevDisabled()">\n      <span class="ngb-dp-navigation-chevron"></span>    \n    </button>\n    \n    <ngb-datepicker-navigation-select *ngIf="showSelect" class="d-block" [style.width.rem]="months * 9"\n      [date]="date"\n      [minDate]="minDate"\n      [maxDate]="maxDate"\n      [disabled] = "disabled"\n      (select)="selectDate($event)">\n    </ngb-datepicker-navigation-select>\n    \n    <button type="button" class="btn-link" (click)="!!doNavigate(navigation.NEXT)" [disabled]="nextDisabled()">\n      <span class="ngb-dp-navigation-chevron right"></span>\n    </button>\n  '}]}],a.ctorParameters=function(){return[{type:o.a},{type:s.a}]},a.propDecorators={date:[{type:i.Input}],disabled:[{type:i.Input}],maxDate:[{type:i.Input}],minDate:[{type:i.Input}],months:[{type:i.Input}],showSelect:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],navigate:[{type:i.Output}],select:[{type:i.Output}]}},Pf4u:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.onErrorResumeNext.apply(void 0,t)(this)}var r=n("r6G9");e.onErrorResumeNext=i},Pic8:function(t,e,n){"use strict";var i=n("bKpL"),r=n("aCMF");i.Observable.prototype.switchMap=r.switchMap},Plqt:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Tq0x");i.Observable.prototype.reduce=r.reduce},PuIS:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("QVQ8"),s=n("NmeZ");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[o.a],exports:[o.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},PwNK:function(t,e,n){"use strict";function i(t){return r.audit(t)(this)}var r=n("tAjV");e.audit=i},PySC:function(t,e,n){"use strict";var i=n("/oeL"),r=n("59zy"),o=n("wM1e"),s=n("bm2B");n.d(e,"a",function(){return u});var a;!function(t){t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(a||(a={}));var l={provide:s.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return u}),multi:!0},u=function(){function t(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new i.EventEmitter,this.leave=new i.EventEmitter,this.rateChange=new i.EventEmitter(!0),this.onChange=function(t){},this.onTouched=function(){},this.max=t.max,this.readonly=t.readonly}return t.prototype.ariaValueText=function(){return this.nextRate+" out of "+this.max},t.prototype.enter=function(t){this.readonly||this.disabled||this._updateState(t),this.hover.emit(t)},t.prototype.handleBlur=function(){this.onTouched()},t.prototype.handleClick=function(t){this.update(this.resettable&&this.rate===t?0:t)},t.prototype.handleKeyDown=function(t){if(a[n.i(o.d)(t.which)])switch(t.preventDefault(),t.which){case a.ArrowDown:case a.ArrowLeft:this.update(this.rate-1);break;case a.ArrowUp:case a.ArrowRight:this.update(this.rate+1);break;case a.Home:this.update(0);break;case a.End:this.update(this.max)}},t.prototype.ngOnChanges=function(t){t.rate&&this.update(this.rate)},t.prototype.ngOnInit=function(){this.contexts=Array.from({length:this.max},function(){return{fill:0}}),this._updateState(this.rate)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.reset=function(){this.leave.emit(this.nextRate),this._updateState(this.rate)},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.update=function(t,e){void 0===e&&(e=!0);var i=n.i(o.e)(t,this.max,0);this.readonly||this.disabled||this.rate===i||(this.rate=i,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)},t.prototype.writeValue=function(t){this.update(t,!1),this._changeDetectorRef.markForCheck()},t.prototype._getFillValue=function(t){var e=this.nextRate-t;return e>=1?100:e<1&&e>0?Number.parseInt((100*e).toFixed(2)):0},t.prototype._updateState=function(t){var e=this;this.nextRate=t,this.contexts.forEach(function(t,n){return t.fill=e._getFillValue(n)})},t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-rating",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{class:"d-inline-flex",tabindex:"0",role:"slider","aria-valuemin":"0","[attr.aria-valuemax]":"max","[attr.aria-valuenow]":"nextRate","[attr.aria-valuetext]":"ariaValueText()","[attr.aria-disabled]":"readonly ? true : null","(blur)":"handleBlur()","(keydown)":"handleKeyDown($event)","(mouseleave)":"reset()"},template:'\n    <ng-template #t let-fill="fill">{{ fill === 100 ? \'&#9733;\' : \'&#9734;\' }}</ng-template>\n    <ng-template ngFor [ngForOf]="contexts" let-index="index">\n      <span class="sr-only">({{ index < nextRate ? \'*\' : \' \' }})</span>\n      <span (mouseenter)="enter(index + 1)" (click)="handleClick(index + 1)" [style.cursor]="readonly || disabled ? \'default\' : \'pointer\'">\n        <ng-template [ngTemplateOutlet]="starTemplate || t" [ngOutletContext]="contexts[index]"></ng-template>\n      </span>\n    </ng-template>\n  ',providers:[l]}]}],u.ctorParameters=function(){return[{type:r.a},{type:i.ChangeDetectorRef}]},u.propDecorators={max:[{type:i.Input}],rate:[{type:i.Input}],readonly:[{type:i.Input}],resettable:[{type:i.Input}],starTemplate:[{type:i.Input},{type:i.ContentChild,args:[i.TemplateRef]}],hover:[{type:i.Output}],leave:[{type:i.Output}],rateChange:[{type:i.Output}]}},QGDq:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.placement="top",this.triggers="hover"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},QVQ8:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e"),o=n("NmeZ");n.d(e,"a",function(){return s});var s=function(){function t(t){this.pageCount=0,this.pages=[],this.page=0,this.pageChange=new i.EventEmitter(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}return t.prototype.hasPrevious=function(){return this.page>1},t.prototype.hasNext=function(){return this.page<this.pageCount},t.prototype.selectPage=function(t){this._updatePages(t)},t.prototype.ngOnChanges=function(t){this._updatePages(this.page)},t.prototype.isEllipsis=function(t){return-1===t},t.prototype._applyEllipses=function(t,e){this.ellipses&&(t>0&&(t>1&&this.pages.unshift(-1),this.pages.unshift(1)),e<this.pageCount&&(e<this.pageCount-1&&this.pages.push(-1),this.pages.push(this.pageCount)))},t.prototype._applyRotation=function(){var t=0,e=this.pageCount,n=Math.floor(this.maxSize/2),i=this.maxSize%2==0?n-1:n;return this.page<=n?e=this.maxSize:this.pageCount-this.page<n?t=this.pageCount-this.maxSize:(t=this.page-n-1,e=this.page+i),[t,e]},t.prototype._applyPagination=function(){var t=Math.ceil(this.page/this.maxSize)-1,e=t*this.maxSize;return[e,e+this.maxSize]},t.prototype._setPageInRange=function(t){var e=this.page;this.page=n.i(r.e)(t,this.pageCount,1),this.page!==e&&this.pageChange.emit(this.page)},t.prototype._updatePages=function(t){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),n.i(r.a)(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(var e=1;e<=this.pageCount;e++)this.pages.push(e);if(this._setPageInRange(t),this.maxSize>0&&this.pageCount>this.maxSize){var i=0,o=this.pageCount;this.rotate?(s=this._applyRotation(),i=s[0],o=s[1]):(a=this._applyPagination(),i=a[0],o=a[1]),this.pages=this.pages.slice(i,o),this._applyEllipses(i,o)}var s,a},t}();s.decorators=[{type:i.Component,args:[{selector:"ngb-pagination",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{role:"navigation"},template:'\n    <ul [class]="\'pagination\' + (size ? \' pagination-\' + size : \'\')">\n      <li *ngIf="boundaryLinks" class="page-item"\n        [class.disabled]="!hasPrevious() || disabled">\n        <a aria-label="First" class="page-link" href (click)="!!selectPage(1)" [attr.tabindex]="(hasPrevious() ? null : \'-1\')">\n          <span aria-hidden="true">&laquo;&laquo;</span>\n        </a>\n      </li>\n\n      <li *ngIf="directionLinks" class="page-item"\n        [class.disabled]="!hasPrevious() || disabled">\n        <a aria-label="Previous" class="page-link" href (click)="!!selectPage(page-1)" [attr.tabindex]="(hasPrevious() ? null : \'-1\')">\n          <span aria-hidden="true">&laquo;</span>\n        </a>\n      </li>\n      <li *ngFor="let pageNumber of pages" class="page-item" [class.active]="pageNumber === page"\n        [class.disabled]="isEllipsis(pageNumber) || disabled">\n        <a *ngIf="isEllipsis(pageNumber)" class="page-link">...</a>\n        <a *ngIf="!isEllipsis(pageNumber)" class="page-link" href (click)="!!selectPage(pageNumber)">\n          {{pageNumber}}\n          <span *ngIf="pageNumber === page" class="sr-only">(current)</span>\n        </a>\n      </li>\n      <li *ngIf="directionLinks" class="page-item" [class.disabled]="!hasNext() || disabled">\n        <a aria-label="Next" class="page-link" href (click)="!!selectPage(page+1)" [attr.tabindex]="(hasNext() ? null : \'-1\')">\n          <span aria-hidden="true">&raquo;</span>\n        </a>\n      </li>\n\n      <li *ngIf="boundaryLinks" class="page-item" [class.disabled]="!hasNext() || disabled">\n        <a aria-label="Last" class="page-link" href (click)="!!selectPage(pageCount)" [attr.tabindex]="(hasNext() ? null : \'-1\')">\n          <span aria-hidden="true">&raquo;&raquo;</span>\n        </a>\n      </li>\n    </ul>\n  '}]}],s.ctorParameters=function(){return[{type:o.a}]},s.propDecorators={disabled:[{type:i.Input}],boundaryLinks:[{type:i.Input}],directionLinks:[{type:i.Input}],ellipses:[{type:i.Input}],rotate:[{type:i.Input}],collectionSize:[{type:i.Input}],maxSize:[{type:i.Input}],page:[{type:i.Input}],pageSize:[{type:i.Input}],pageChange:[{type:i.Output}],size:[{type:i.Input}]}},QgC4:function(t,e,n){"use strict";var i=n("yIff");e.webSocket=i.WebSocketSubject.create},QsbA:function(t,e,n){"use strict";function i(t){return r.windowWhen(t)(this)}var r=n("kqkQ");e.windowWhen=i},Qv0T:function(t,e,n){"use strict";function i(t){var e=t.obj,n=t.keys,i=t.length,r=t.index,o=t.subscriber;if(r===i)return void o.complete();var s=n[r];o.next([s,e[s]]),t.index=r+1,this.schedule(t)}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("bKpL"),s=function(t){function e(e,n){t.call(this),this.obj=e,this.scheduler=n,this.keys=Object.keys(e)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=e.keys,r=e.scheduler,o=n.length;if(r)return r.schedule(i,0,{obj:this.obj,keys:n,length:o,index:0,subscriber:t});for(var s=0;s<o;s++){var a=n[s];t.next([a,this.obj[a]])}t.complete()},e}(o.Observable);e.PairsObservable=s},Qyse:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.up=!1,this.autoClose=!0}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},R0J0:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Kt+M");i.Observable.prototype.concat=r.concat},"R3/v":function(t,e,n){"use strict";function i(t){var e=r.async,n=null,i=Number.POSITIVE_INFINITY;return s.isScheduler(arguments[3])&&(e=arguments[3]),s.isScheduler(arguments[2])?e=arguments[2]:o.isNumeric(arguments[2])&&(i=arguments[2]),s.isScheduler(arguments[1])?e=arguments[1]:o.isNumeric(arguments[1])&&(n=arguments[1]),a.windowTime(t,n,i,e)(this)}var r=n("IhB/"),o=n("EsGe"),s=n("MicL"),a=n("dffx");e.windowTime=i},R61s:function(t,e,n){"use strict";var i=n("zijX"),r=n("wQte");e.Map=i.root.Map||function(){return r.MapPolyfill}()},RNRn:function(t,e,n){"use strict";var i=n("bKpL"),r=n("R3/v");i.Observable.prototype.windowTime=r.windowTime},RnhI:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[(t()(),o["ɵted"](0,null,["",""]))],null,function(t,e){t(e,0,0,e.component.date.day)})}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"div",[["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"btn-secondary",null]],null,null,i,l)),o["ɵdid"](1,49152,null,0,s.a,[],null,null)],null,function(t,e){t(e,0,0,o["ɵnov"](e,1).selected,o["ɵnov"](e,1).selected,o["ɵnov"](e,1).isMuted(),o["ɵnov"](e,1).isMuted(),!o["ɵnov"](e,1).disabled)})}var o=n("/oeL"),s=n("+oJC");n.d(e,"b",function(){return l}),e.a=i;var a=["[_nghost-%COMP%] {\n      text-align: center;\n      width: 2rem;\n      height: 2rem;\n      line-height: 2rem;      \n      border-radius: 0.25rem;\n    }\n    .outside[_nghost-%COMP%] {\n      opacity: 0.5;\n    }"],l=o["ɵcrt"]({encapsulation:0,styles:a,data:{}});o["ɵccf"]("[ngbDatepickerDayView]",s.a,r,{currentMonth:"currentMonth",date:"date",disabled:"disabled",selected:"selected"},{},[])},Rol4:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=a.async),void 0===n&&(n=l.defaultThrottleConfig),function(i){return i.lift(new u(t,e,n.leading,n.trailing))}}function r(t){t.subscriber.clearThrottle()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/"),l=n("DrEP");e.throttleTime=i;var u=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,i,r,o){t.call(this,e),this.duration=n,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return o(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(r,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},RpuY:function(t,e,n){"use strict";var i=n("bKpL"),r=n("cPhF");i.Observable.prototype.mergeMap=r.mergeMap,i.Observable.prototype.flatMap=r.mergeMap},RvTY:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeMapTo(t,e,n)(this)}var r=n("j8LY");e.mergeMapTo=i},S08L:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n,i){t.call(this),this.condition=e,this.thenSource=n,this.elseSource=i}return i(e,t),e.create=function(t,n,i){return new e(t,n,i)},e.prototype._subscribe=function(t){var e=this,n=e.condition,i=e.thenSource,r=e.elseSource;return new l(t,n,i,r)},e}(r.Observable);e.IfObservable=a;var l=function(t){function e(e,n,i,r){t.call(this,e),this.condition=n,this.thenSource=i,this.elseSource=r,this.tryIf()}return i(e,t),e.prototype.tryIf=function(){var t,e=this,n=e.condition,i=e.thenSource,r=e.elseSource;try{t=n();var s=t?i:r;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(t){this._error(t)}},e}(s.OuterSubscriber)},S7im:function(t,e,n){"use strict";var i=n("bKpL"),r=n("HTfL");i.Observable.throw=r._throw},SBOU:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.apply(void 0,[e].concat(t)))}}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),new s.ArrayObservable(t).lift(new p(n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("wZOE"),a=n("NSJx"),l=n("T14+"),u=n("yW9Z"),c=n("ktfo"),h=n("2B7B");e.zip=i,e.zipStatic=r;var p=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();e.ZipOperator=p;var f=function(t){function e(e,n,i){void 0===i&&(i=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=i}return o(e,t),e.prototype._next=function(t){var e=this.iterators;a.isArray(t)?e.push(new m(t)):"function"==typeof t[h.iterator]?e.push(new d(t[h.iterator]())):e.push(new v(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var i=t[n];i.stillUnsubscribed?this.add(i.subscribe(i,n)):this.active--}},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,i=0;i<e;i++){var r=t[i];if("function"==typeof r.hasValue&&!r.hasValue())return}for(var o=!1,s=[],i=0;i<e;i++){var r=t[i],a=r.next();if(r.hasCompleted()&&(o=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),o&&n.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(l.Subscriber);e.ZipSubscriber=f;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),m=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[h.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),v=function(t){function e(e,n,i){t.call(this,e),this.parent=n,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(e,t),e.prototype[h.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return c.subscribeToResult(this,this.observable,this,e)},e}(u.OuterSubscriber)},SGrN:function(t,e,n){"use strict";var i=n("KSV9"),r=n("/oeL"),o=n("wM1e");n.d(e,"a",function(){return a});var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.isValid=function(t){return t&&n.i(o.a)(t.year)&&n.i(o.a)(t.month)&&n.i(o.a)(t.day)&&!isNaN(this.toGregorian(t).getTime())},e.prototype.setDay=function(t,e){e=+e;var n=this.getDaysInIslamicMonth(t.month,t.year);if(e<=0)for(;e<=0;)t=this.setMonth(t,t.month-1),n=this.getDaysInIslamicMonth(t.month,t.year),e+=n;else if(e>n)for(;e>n;)e-=n,t=this.setMonth(t,t.month+1),n=this.getDaysInIslamicMonth(t.month,t.year);return t.day=e,t},e.prototype.setMonth=function(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t},e.prototype.setYear=function(t,e){return t.year=+e,t},e.prototype._isIslamicLeapYear=function(t){return(14+11*t)%30<11},e.prototype._getMonthStart=function(t,e){return Math.ceil(29.5*e)+354*(t-1)+Math.floor((3+11*t)/30)},e.prototype._getYearStart=function(t){return 354*(t-1)+Math.floor((3+11*t)/30)},e}(i.a);a.decorators=[{type:r.Injectable}],a.ctorParameters=function(){return[]}},SJ56:function(t,e,n){"use strict";function i(){return r.dematerialize()(this)}var r=n("pguX");e.dematerialize=i},SKRq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("fdVa");i.Observable.prototype.mergeScan=r.mergeScan},ScG9:function(t,e,n){"use strict";var i=n("bKpL"),r=n("a9bY");i.Observable.prototype.max=r.max},"StS+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("lc3y");i.Observable.prototype.isEmpty=r.isEmpty},T1tZ:function(t,e,n){"use strict";function i(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function r(t){var e=t.err;t.subject.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("bKpL"),a=n("RdI5"),l=n("XRvs"),u=n("l6Wf"),c=function(t){function e(e,n,i,r,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=i,this.context=r,this.scheduler=o}return o(e,t),e.create=function(t,n,i){return void 0===n&&(n=void 0),function(){for(var r=[],o=0;o<arguments.length;o++)r[o-0]=arguments[o];return new e(t,n,r,this,i)}},e.prototype._subscribe=function(t){var n=this.callbackFunc,i=this.args,r=this.scheduler,o=this.subject;if(r)return r.schedule(e.dispatch,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new u.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var i=t.source,r=i.selector,o=i.subject;if(r){var s=a.tryCatch(r).apply(this,e);s===l.errorObject?o.error(l.errorObject.e):(o.next(s),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;a.tryCatch(n).apply(this.context,i.concat(s))===l.errorObject&&o.error(l.errorObject.e)}return o.subscribe(t)},e.dispatch=function(t){var e=this,n=t.source,o=t.subscriber,s=t.context,c=n.callbackFunc,h=n.args,p=n.scheduler,f=n.subject;if(!f){f=n.subject=new u.AsyncSubject;var d=function t(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];var s=t.source,u=s.selector,c=s.subject;if(u){var h=a.tryCatch(u).apply(this,n);h===l.errorObject?e.add(p.schedule(r,0,{err:l.errorObject.e,subject:c})):e.add(p.schedule(i,0,{value:h,subject:c}))}else{var f=n.length<=1?n[0]:n;e.add(p.schedule(i,0,{value:f,subject:c}))}};d.source=n;a.tryCatch(c).apply(s,h.concat(d))===l.errorObject&&f.error(l.errorObject.e)}e.add(f.subscribe(o))},e}(s.Observable);e.BoundCallbackObservable=c},T5Q1:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n){t.call(this),this.resourceFactory=e,this.observableFactory=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e,n=this,i=n.resourceFactory,r=n.observableFactory;try{return e=i(),new l(t,e,r)}catch(e){t.error(e)}},e}(r.Observable);e.UsingObservable=a;var l=function(t){function e(e,n,i){t.call(this,e),this.resource=n,this.observableFactory=i,e.add(n),this.tryUse()}return i(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(t){this._error(t)}},e}(s.OuterSubscriber)},TQK7:function(t,e,n){"use strict";function i(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new l(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d"),a=n("fcnB");e.take=i;var l=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},TfLl:function(t,e,n){"use strict";function i(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,0,"div",[["class","ngb-dp-weekday"]],null,null,null,null,null))],null,null)}function r(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,1,"div",[["class","ngb-dp-weekday small text-center text-info font-italic"]],null,null,null,null,null)),(t()(),d["ɵted"](1,null,["\n        ","\n      "]))],null,function(t,e){t(e,1,0,e.component.i18n.getWeekdayShortName(e.context.$implicit))})}function o(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,7,"div",[["class","ngb-dp-week d-flex"]],null,null,null,null,null)),(t()(),d["ɵted"](-1,null,["\n      "])),(t()(),d["ɵand"](16777216,null,null,1,null,i)),d["ɵdid"](3,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n      "])),(t()(),d["ɵand"](16777216,null,null,1,null,r)),d["ɵdid"](6,802816,null,0,m.NgForOf,[d.ViewContainerRef,d.TemplateRef,d.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),d["ɵted"](-1,null,["\n    "]))],function(t,e){var n=e.component;t(e,3,0,n.showWeekNumbers),t(e,6,0,n.month.weekdays)},null)}function s(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-center font-italic text-muted"]],null,null,null,null,null)),(t()(),d["ɵted"](1,null,["",""]))],null,function(t,e){t(e,1,0,e.parent.parent.context.$implicit.number)})}function a(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n            "]))],null,null)}function l(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n            "])),(t()(),d["ɵand"](16777216,null,null,3,null,a)),d["ɵdid"](2,540672,null,0,m.NgTemplateOutlet,[d.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"],ngOutletContext:[1,"ngOutletContext"]},null),d["ɵpod"](3,{year:0,month:1,day:2}),d["ɵpod"](4,{date:0,currentMonth:1,disabled:2,selected:3}),(t()(),d["ɵted"](-1,null,["\n          "]))],function(t,e){var n=e.component;t(e,2,0,n.dayTemplate,t(e,4,0,t(e,3,0,e.parent.context.$implicit.date.year,e.parent.context.$implicit.date.month,e.parent.context.$implicit.date.day),n.month.number,n.isDisabled(e.parent.context.$implicit),n.isSelected(e.parent.context.$implicit.date)))},null)}function u(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,4,"div",[["class","ngb-dp-day"]],[[2,"disabled",null],[2,"hidden",null]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!==r.doSelect(t.context.$implicit)&&i}return i},null,null)),(t()(),d["ɵted"](-1,null,["\n          "])),(t()(),d["ɵand"](16777216,null,null,1,null,l)),d["ɵdid"](3,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n        "]))],function(t,e){t(e,3,0,!e.component.isHidden(e.context.$implicit))},function(t,e){var n=e.component;t(e,0,0,n.isDisabled(e.context.$implicit),n.isHidden(e.context.$implicit))})}function c(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,7,"div",[["class","ngb-dp-week d-flex"]],null,null,null,null,null)),(t()(),d["ɵted"](-1,null,["\n        "])),(t()(),d["ɵand"](16777216,null,null,1,null,s)),d["ɵdid"](3,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n        "])),(t()(),d["ɵand"](16777216,null,null,1,null,u)),d["ɵdid"](6,802816,null,0,m.NgForOf,[d.ViewContainerRef,d.TemplateRef,d.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),d["ɵted"](-1,null,["\n      "]))],function(t,e){t(e,3,0,e.component.showWeekNumbers),t(e,6,0,e.parent.context.$implicit.days)},null)}function h(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n      "])),(t()(),d["ɵand"](16777216,null,null,1,null,c)),d["ɵdid"](2,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n    "]))],function(t,e){t(e,2,0,!e.component.isCollapsed(e.context.$implicit))},null)}function p(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n    "])),(t()(),d["ɵand"](16777216,null,null,1,null,o)),d["ɵdid"](2,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n    "])),(t()(),d["ɵand"](16777216,null,null,1,null,h)),d["ɵdid"](5,802816,null,0,m.NgForOf,[d.ViewContainerRef,d.TemplateRef,d.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),d["ɵted"](-1,null,["\n  "]))],function(t,e){var n=e.component;t(e,2,0,n.showWeekdays),t(e,5,0,n.month.weeks)},null)}function f(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,1,"ngb-datepicker-month-view",[["class","d-block"]],null,null,null,p,y)),d["ɵdid"](1,49152,null,0,v.a,[g.a],null,null)],null,null)}var d=n("/oeL"),m=n("qbdv"),v=n("Av3o"),g=n("CuDZ");n.d(e,"b",function(){return y}),e.a=p;var b=[".ngb-dp-weekday[_ngcontent-%COMP%], .ngb-dp-week-number[_ngcontent-%COMP%] {\n      line-height: 2rem;\n    }\n    .ngb-dp-day[_ngcontent-%COMP%], .ngb-dp-weekday[_ngcontent-%COMP%], .ngb-dp-week-number[_ngcontent-%COMP%] {\n      width: 2rem;\n      height: 2rem;      \n    }\n    .ngb-dp-day[_ngcontent-%COMP%] {\n      cursor: pointer;\n    }\n    .ngb-dp-day.disabled[_ngcontent-%COMP%], .ngb-dp-day.hidden[_ngcontent-%COMP%] {\n      cursor: default;\n    }"],y=d["ɵcrt"]({encapsulation:0,styles:b,data:{}});d["ɵccf"]("ngb-datepicker-month-view",v.a,f,{dayTemplate:"dayTemplate",disabled:"disabled",month:"month",outsideDays:"outsideDays",selectedDate:"selectedDate",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers"},{select:"select"},[])},TnjP:function(t,e,n){"use strict";var i=n("bKpL"),r=n("XOyC");i.Observable.prototype.delayWhen=r.delayWhen},TupL:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.switchMap=i;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.resultSelector))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.project=n,this.resultSelector=i,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){this.resultSelector?this._tryNotifyNext(t,e,n,i):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,i){var r;try{r=this.resultSelector(t,e,n,i)}catch(t){return void this.destination.error(t)}this.destination.next(r)},e}(o.OuterSubscriber)},Txt5:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.auditTime(t,e)(this)}var r=n("IhB/"),o=n("GTdq");e.auditTime=i},U0Tu:function(t,e,n){"use strict";var i=n("/oeL"),r=n("mQQt"),o=n("7zUS");n.d(e,"a",function(){return s});var s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();s.decorators=[{type:i.NgModule,args:[{declarations:[r.a,r.b],exports:[r.a],entryComponents:[r.b]}]}],s.ctorParameters=function(){return[]}},"UD+B":function(t,e,n){"use strict";var i=n("bKpL"),r=n("wDL6");i.Observable.prototype.repeat=r.repeat},UHtL:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.skipUntil=i;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier))},t}(),l=function(t){function e(e,n){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(o.OuterSubscriber)},UVHa:function(t,e,n){"use strict";var i=n("bKpL"),r=n("f7nC");i.Observable.prototype.bufferWhen=r.bufferWhen},UbPm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("H9QY");i.Observable.prototype.timeInterval=r.timeInterval},Uvlg:function(t,e,n){"use strict";var i=n("bKpL"),r=n("LBqD");i.Observable.prototype.pairwise=r.pairwise},V672:function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0});var s=n("/oeL"),a=n("3WPo"),l=function(){function t(){this.container=null}return t}();e.DialogServiceConfig=l;var u=function(){function t(t,e,n,i){this.resolver=t,this.applicationRef=e,this.injector=n,this.container=i&&i.container}return t.prototype.addDialog=function(t,e,n){return this.dialogHolderComponent||(this.dialogHolderComponent=this.createDialogHolder()),this.dialogHolderComponent.addDialog(t,e,n)},t.prototype.removeDialog=function(t){this.dialogHolderComponent&&this.dialogHolderComponent.removeDialog(t)},t.prototype.removeAll=function(){this.dialogHolderComponent.clear()},t.prototype.createDialogHolder=function(){var t=this,e=this.resolver.resolveComponentFactory(a.DialogHolderComponent),n=e.create(this.injector),i=n.hostView.rootNodes[0];if(!this.container){var r=this.applicationRef._rootComponents[0];this.container=r.hostView.rootNodes[0]}return this.applicationRef.attachView(n.hostView),n.onDestroy(function(){t.applicationRef.detachView(n.hostView)}),this.container.appendChild(i),n.instance},t}();u=i([s.Injectable(),o(3,s.Optional()),r("design:paramtypes",[s.ComponentFactoryResolver,s.ApplicationRef,s.Injector,l])],u),e.DialogService=u},V6Dl:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},VML3:function(t,e,n){"use strict";var i=n("bKpL"),r=n("K5Xx");i.Observable.prototype.publish=r.publish},VXtB:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ytB7");i.Observable.prototype.sampleTime=r.sampleTime},Vnhz:function(t,e,n){"use strict";function i(t){return c["ɵvid"](0,[(t()(),c["ɵand"](0,null,null,0))],null,null)}function r(t){return c["ɵvid"](0,[(t()(),c["ɵeld"](0,0,null,null,7,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n        "])),(t()(),c["ɵeld"](2,0,null,null,4,"a",[["class","nav-link"],["href",""],["role","tab"]],[[8,"id",0],[2,"active",null],[2,"disabled",null],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!=!!r.select(t.context.$implicit.id)&&i}return i},null,null)),(t()(),c["ɵted"](3,null,["\n          ",""])),(t()(),c["ɵand"](16777216,null,null,1,null,i)),c["ɵdid"](5,540672,null,0,h.NgTemplateOutlet,[c.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(t()(),c["ɵted"](-1,null,["\n        "])),(t()(),c["ɵted"](-1,null,["\n      "]))],function(t,e){t(e,5,0,null==e.context.$implicit.titleTpl?null:e.context.$implicit.titleTpl.templateRef)},function(t,e){var n=e.component;t(e,2,0,e.context.$implicit.id,e.context.$implicit.id===n.activeId,e.context.$implicit.disabled,e.context.$implicit.disabled?"-1":void 0,n.destroyOnHide&&e.context.$implicit.id!==n.activeId?null:e.context.$implicit.id+"-panel",e.context.$implicit.id===n.activeId,e.context.$implicit.disabled),t(e,3,0,e.context.$implicit.title)})}function o(t){return c["ɵvid"](0,[(t()(),c["ɵand"](0,null,null,0))],null,null)}function s(t){return c["ɵvid"](0,[(t()(),c["ɵeld"](0,0,null,null,4,"div",[["role","tabpanel"]],[[8,"className",0],[1,"aria-labelledby",0],[8,"id",0],[1,"aria-expanded",0]],null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n          "])),(t()(),c["ɵand"](16777216,null,null,1,null,o)),c["ɵdid"](3,540672,null,0,h.NgTemplateOutlet,[c.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(t()(),c["ɵted"](-1,null,["\n        "]))],function(t,e){t(e,3,0,e.parent.context.$implicit.contentTpl.templateRef)},function(t,e){var n=e.component;t(e,0,0,c["ɵinlineInterpolate"](1,"tab-pane ",e.parent.context.$implicit.id===n.activeId?"active":null,""),e.parent.context.$implicit.id,c["ɵinlineInterpolate"](1,"",e.parent.context.$implicit.id,"-panel"),e.parent.context.$implicit.id===n.activeId)})}function a(t){return c["ɵvid"](0,[(t()(),c["ɵted"](-1,null,["\n        "])),(t()(),c["ɵand"](16777216,null,null,1,null,s)),c["ɵdid"](2,16384,null,0,h.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),c["ɵted"](-1,null,["\n      "]))],function(t,e){var n=e.component;t(e,2,0,!n.destroyOnHide||e.context.$implicit.id===n.activeId)},null)}function l(t){return c["ɵvid"](0,[(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵeld"](1,0,null,null,4,"ul",[["role","tablist"]],[[8,"className",0]],null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n      "])),(t()(),c["ɵand"](16777216,null,null,1,null,r)),c["ɵdid"](4,802816,null,0,h.NgForOf,[c.ViewContainerRef,c.TemplateRef,c.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵeld"](7,0,null,null,4,"div",[["class","tab-content"]],null,null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n      "])),(t()(),c["ɵand"](16777216,null,null,1,null,a)),c["ɵdid"](10,802816,null,0,h.NgForOf,[c.ViewContainerRef,c.TemplateRef,c.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵted"](-1,null,["\n  "]))],function(t,e){var n=e.component;t(e,4,0,n.tabs),t(e,10,0,n.tabs)},function(t,e){var n=e.component;t(e,1,0,"nav nav-"+n.type+" justify-content-"+n.justify)})}function u(t){return c["ɵvid"](0,[(t()(),c["ɵeld"](0,0,null,null,2,"ngb-tabset",[],null,null,null,l,m)),c["ɵdid"](1,2146304,null,1,p.a,[f.a],null,null),c["ɵqud"](603979776,1,{tabs:1})],null,null)}var c=n("/oeL"),h=n("qbdv"),p=n("Hjei"),f=n("+E40");n.d(e,"b",function(){return m}),e.a=l;var d=[],m=c["ɵcrt"]({encapsulation:2,styles:d,data:{}});c["ɵccf"]("ngb-tabset",p.a,u,{activeId:"activeId",destroyOnHide:"destroyOnHide",justify:"justify",type:"type"},{tabChange:"tabChange"},[])},VsKd:function(t,e,n){"use strict";var i=n("bKpL"),r=n("23I1");i.Observable.defer=r.defer},W5L8:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7PW3");i.Observable.using=r.using},WAO4:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=r.async),o.timeoutWith(t,e,n)(this)}var r=n("IhB/"),o=n("/h+r");e.timeoutWith=i},WC4F:function(t,e,n){!function(t){t(n("oiK7"))}(function(t){function e(t,e,n,i){this.cm=t,this.node=e,this.options=n,this.height=i,this.cleared=!1}function n(t){var e=t.getWrapperElement(),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,i=parseInt(n.height),r=t.state.panels={setHeight:e.style.height,heightLeft:i,panels:0,wrapper:document.createElement("div")};e.parentNode.insertBefore(r.wrapper,e);var o=t.hasFocus();r.wrapper.appendChild(e),o&&t.focus(),t._setSize=t.setSize,null!=i&&(t.setSize=function(e,n){if(null==n)return this._setSize(e,n);if(r.setHeight=n,"number"!=typeof n){var o=/^(\d+\.?\d*)px$/.exec(n);o?n=Number(o[1]):(r.wrapper.style.height=n,n=r.wrapper.offsetHeight,r.wrapper.style.height="")}t._setSize(e,r.heightLeft+=n-i),i=n})}function i(t){var e=t.state.panels;t.state.panels=null;var n=t.getWrapperElement();e.wrapper.parentNode.replaceChild(n,e.wrapper),n.style.height=e.setHeight,t.setSize=t._setSize,t.setSize()}function r(t,e){for(var n=e.nextSibling;n;n=n.nextSibling)if(n==t.getWrapperElement())return!0;return!1}t.defineExtension("addPanel",function(t,i){i=i||{},this.state.panels||n(this);var o=this.state.panels,s=o.wrapper,a=this.getWrapperElement();i.after instanceof e&&!i.after.cleared?s.insertBefore(t,i.before.node.nextSibling):i.before instanceof e&&!i.before.cleared?s.insertBefore(t,i.before.node):i.replace instanceof e&&!i.replace.cleared?(s.insertBefore(t,i.replace.node),i.replace.clear()):"bottom"==i.position?s.appendChild(t):"before-bottom"==i.position?s.insertBefore(t,a.nextSibling):"after-top"==i.position?s.insertBefore(t,a):s.insertBefore(t,s.firstChild);var l=i&&i.height||t.offsetHeight;return this._setSize(null,o.heightLeft-=l),o.panels++,i.stable&&r(this,t)&&this.scrollTo(null,this.getScrollInfo().top+l),new e(this,t,i,l)}),e.prototype.clear=function(){if(!this.cleared){this.cleared=!0;var t=this.cm.state.panels;this.cm._setSize(null,t.heightLeft+=this.height),this.options.stable&&r(this.cm,this.node)&&this.cm.scrollTo(null,this.cm.getScrollInfo().top-this.height),t.wrapper.removeChild(this.node),0==--t.panels&&i(this.cm)}},e.prototype.changed=function(t){var e=null==t?this.node.offsetHeight:t,n=this.cm.state.panels;this.cm._setSize(null,n.heightLeft-=e-this.height),this.height=e}})},WmO6:function(t,e,n){"use strict";function i(t,e){return r.partition(t,e)(this)}var r=n("hfga");e.partition=i},Wv1e:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},Wxra:function(t,e,n){"use strict";function i(t,e,n){return function(i){return i.lift(r(t,e,n))}}function r(t,e,n){var i,r,s=0,a=!1,l=!1;return function(u){s++,i&&!a||(a=!1,i=new o.ReplaySubject(t,e,n),r=u.subscribe({next:function(t){i.next(t)},error:function(t){a=!0,i.error(t)},complete:function(){l=!0,i.complete()}}));var c=i.subscribe(this);return function(){s--,c.unsubscribe(),r&&0===s&&l&&r.unsubscribe()}}}var o=n("0imh");e.shareReplay=i},XG4q:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new a)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("Z5ED");e.ignoreElements=i;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype._next=function(t){s.noop()},e}(o.Subscriber)},XL2q:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7JOC");i.Observable.from=r.from},XNum:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("xFbG"),o=function(t){function e(e,n){t.call(this)}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r.Subscription);e.Action=o},XOyC:function(t,e,n){"use strict";function i(t,e){return r.delayWhen(t,e)(this)}var r=n("aeUV");e.delayWhen=i},XR5H:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),l=function(t){function e(e,n){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler=n}return i(e,t),e.prototype._subscribe=function(e){var n=this,i=n.logSubscribedFrame();return e.add(new o.Subscription(function(){n.logUnsubscribedFrame(i)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,n=0;n<e;n++)!function(){var e=t.messages[n];t.scheduler.schedule(function(){e.notification.observe(t)},e.frame)}()},e}(r.Subject);e.HotObservable=l,a.applyMixins(l,[s.SubscriptionLoggable])},XR71:function(t,e,n){"use strict";var i=n("bKpL"),r=n("AHF9");i.Observable.prototype.observeOn=r.observeOn},XWpj:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return 1===t.length&&r.isArray(t[0])&&(t=t[0]),e.lift.call(o.race.apply(void 0,[e].concat(t)))}}var r=n("NSJx"),o=n("YofN");e.race=i},Xa8F:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),r.windowCount(t,e)(this)}var r=n("GeBq");e.windowCount=i},Xga8:function(t,e,n){"use strict";var i=n("OXmC"),r=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new i.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,n=e[t];e[t]=new i.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},t}();e.SubscriptionLoggable=r},Xtvq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("zGUx");i.Observable.fromEvent=r.fromEvent},"Y+l6":function(t,e,n){"use strict";function i(){return r.toArray()(this)}var r=n("Y4uv");e.toArray=i},Y4uv:function(t,e,n){"use strict";function i(t,e,n){return t.push(e),t}function r(){return o.reduce(i,[])}var o=n("JwCl");e.toArray=r},YFUQ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("BJqU");i.Observable.prototype.throttleTime=r.throttleTime},"Yj/5":function(t,e,n){"use strict";var i=n("Fq81");e.fromEventPattern=i.FromEventPatternObservable.create},YofN:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!o.isArray(t[0]))return t[0];t=t[0]}return new s.ArrayObservable(t).lift(new u)}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("NSJx"),s=n("wZOE"),a=n("yW9Z"),l=n("ktfo");e.race=i;var u=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new c(t))},t}();e.RaceOperator=u;var c=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return r(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var i=t[n],r=l.subscribeToResult(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(a.OuterSubscriber);e.RaceSubscriber=c},Yvsb:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("Z5ED"),s=function(t){function e(){t.call(this)}return i(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){o.noop()},e}(r.Observable);e.NeverObservable=s},Z2Sm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("3N4h");i.Observable.prototype.window=r.window},ZNYO:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.sample=i;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new l(t),i=e.subscribe(n);return i.add(s.subscribeToResult(n,this.notifier)),i},t}(),l=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return r(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(o.OuterSubscriber)},ZQKz:function(t,e,n){"use strict";var i=n("bKpL"),r=n("1eQ7");i.Observable.prototype.first=r.first},ZQVD:function(t,e,n){"use strict";function i(){return r.ignoreElements()(this)}var r=n("XG4q");e.ignoreElements=i},ZXBV:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Yj/5");i.Observable.fromEventPattern=r.fromEventPattern},Zfg9:function(t,e,n){"use strict";function i(t){return r.skipLast(t)(this)}var r=n("EmkH");e.skipLast=i},"Zz+K":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("Oery"),s=n("5FV4");n.d(e,"a",function(){return l});var a=[o.a,o.b,o.c,o.d],l=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();l.decorators=[{type:i.NgModule,args:[{declarations:a,exports:a,imports:[r.CommonModule]}]}],l.ctorParameters=function(){return[]}},a9bY:function(t,e,n){"use strict";function i(t){return r.max(t)(this)}var r=n("jjPq");e.max=i},aCMF:function(t,e,n){"use strict";function i(t,e){return r.switchMap(t,e)(this)}var r=n("TupL");e.switchMap=i},aL6N:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.skipWhile=i;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return r(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(o.Subscriber)},aeUV:function(t,e,n){"use strict";function i(t,e){return e?function(n){return new h(n,e).lift(new u(t))}:function(e){return e.lift(new u(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("bKpL"),a=n("yW9Z"),l=n("ktfo");e.delayWhen=i;var u=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delayDurationSelector))},t}(),c=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=l.subscribeToResult(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),h=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return r(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new p(t,this.source))},e}(s.Observable),p=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return r(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(o.Subscriber)},afTc:function(t,e,n){"use strict";var i=n("bKpL"),r=n("OdUO");i.Observable.prototype.elementAt=r.elementAt},amjc:function(t,e,n){"use strict";var i=n("bKpL"),r=n("yQ6o");i.Observable.bindCallback=r.bindCallback},asHm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("OADz");i.Observable.prototype.withLatestFrom=r.withLatestFrom},azLz:function(t,e,n){"use strict";var i=n("bKpL"),r=n("CH/r");i.Observable.prototype.debounceTime=r.debounceTime},bAfU:function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("GaSD"),s=n("4Q/O"),a=n("lA7/"),l=n("75Hr"),u=n("KSV9"),c=n("/6Tg");n.d(e,"a",function(){return f});var h={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return f}),multi:!0},p={provide:r.NG_VALIDATORS,useExisting:n.i(i.forwardRef)(function(){return f}),multi:!0},f=function(){function t(t,e,r,o,s,a,u,c){var h=this;this._parserFormatter=t,this._elRef=e,this._vcRef=r,this._renderer=o,this._cfr=s,this._service=u,this._calendar=c,this._cRef=null,this.navigate=new i.EventEmitter,this._onChange=function(t){},this._onTouched=function(){},this._validatorChange=function(){},this._zoneSubscription=a.onStable.subscribe(function(){h._cRef&&n.i(l.a)(h._elRef.nativeElement,h._cRef.location.nativeElement,"bottom-left")})}return t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.registerOnValidatorChange=function(t){this._validatorChange=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elRef.nativeElement,"disabled",t),this.isOpen()&&this._cRef.instance.setDisabledState(t)},t.prototype.validate=function(t){var e=t.value;return null===e||void 0===e?null:this._calendar.isValid(e)?this.minDate&&o.a.from(e).before(o.a.from(this.minDate))?{ngbDate:{requiredBefore:this.minDate}}:this.maxDate&&o.a.from(e).after(o.a.from(this.maxDate))?{ngbDate:{requiredAfter:this.maxDate}}:void 0:{ngbDate:{invalid:t.value}}},t.prototype.writeValue=function(t){var e=t?new o.a(t.year,t.month,t.day):null;this._model=this._calendar.isValid(t)?e:null,this._writeModelValue(this._model)},t.prototype.manualDateChange=function(t){this._model=this._service.toValidDate(this._parserFormatter.parse(t),null),this._onChange(this._model?{year:this._model.year,month:this._model.month,day:this._model.day}:t),this._writeModelValue(this._model)},t.prototype.isOpen=function(){return!!this._cRef},t.prototype.open=function(){var t=this;if(!this.isOpen()){var e=this._cfr.resolveComponentFactory(s.a);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._cRef.instance.writeValue(this._model),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.registerOnChange(function(e){t.writeValue(e),t._onChange(e),t.close()})}},t.prototype.close=function(){this.isOpen()&&(this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null)},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.navigateTo=function(t){this.isOpen()&&this._cRef.instance.navigateTo(t)},t.prototype.onBlur=function(){this._onTouched()},t.prototype.ngOnChanges=function(t){(t.minDate||t.maxDate)&&this._validatorChange()},t.prototype.ngOnDestroy=function(){this.close(),this._zoneSubscription.unsubscribe()},t.prototype._applyDatepickerInputs=function(t){var e=this;["dayTemplate","displayMonths","firstDayOfWeek","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t.startDate=this.startDate||this._model},t.prototype._applyPopupStyling=function(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.setStyle(t,"padding","0")},t.prototype._subscribeForDatepickerOutputs=function(t){var e=this;t.navigate.subscribe(function(t){return e.navigate.emit(t)})},t.prototype._writeModelValue=function(t){this._renderer.setProperty(this._elRef.nativeElement,"value",this._parserFormatter.format(t)),this.isOpen()&&(this._cRef.instance.writeValue(t),this._onTouched())},t}();f.decorators=[{type:i.Directive,args:[{selector:"input[ngbDatepicker]",exportAs:"ngbDatepicker",host:{"(change)":"manualDateChange($event.target.value)","(keyup.esc)":"close()","(blur)":"onBlur()"},providers:[h,p,c.a]}]}],f.ctorParameters=function(){return[{type:a.a},{type:i.ElementRef},{type:i.ViewContainerRef},{type:i.Renderer2},{type:i.ComponentFactoryResolver},{type:i.NgZone},{type:c.a},{type:u.a}]},f.propDecorators={dayTemplate:[{type:i.Input}],displayMonths:[{type:i.Input}],firstDayOfWeek:[{type:i.Input}],markDisabled:[{type:i.Input}],minDate:[{type:i.Input}],maxDate:[{type:i.Input}],navigation:[{type:i.Input}],outsideDays:[{type:i.Input}],showWeekdays:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],startDate:[{type:i.Input}],navigate:[{type:i.Output}]}},bLt9:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new h(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("xFbG"),a=n("RdI5"),l=n("XRvs"),u=n("yW9Z"),c=n("ktfo");e.windowToggle=i;var h=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},t}(),p=function(t){function e(e,n,i){t.call(this,e),this.openings=n,this.closingSelector=i,this.contexts=[],this.add(this.openSubscription=c.subscribeToResult(this,n,n))}return r(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,i=-1;++i<n;){var r=e[i];r.window.complete(),r.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,i,r){if(t===this.openings){var u=this.closingSelector,h=a.tryCatch(u)(e);if(h===l.errorObject)return this.error(l.errorObject.e);var p=new o.Subject,f=new s.Subscription,d={window:p,subscription:f};this.contexts.push(d);var m=c.subscribeToResult(this,h,d);m.closed?this.closeWindow(this.contexts.length-1):(m.context=d,f.add(m)),this.destination.next(p)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],i=n.window,r=n.subscription;e.splice(t,1),i.complete(),r.unsubscribe()}},e}(u.OuterSubscriber)},bN7U:function(t,e,n){"use strict";var i=n("bKpL"),r=n("fxBd");i.Observable.prototype.takeLast=r.takeLast},bjDG:function(t,e,n){"use strict";var i=n("NZPJ");e.generate=i.GenerateObservable.create},bprQ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("9mYp");i.Observable.onErrorResumeNext=r.onErrorResumeNext},buGu:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=null),r.defaultIfEmpty(t)(this)}var r=n("PbxL");e.defaultIfEmpty=i},c0Tg:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e");n.d(e,"a",function(){return o});var o=function(){function t(){this.activeIdx=0,this.focusFirst=!0,this.formatter=r.d,this.selectEvent=new i.EventEmitter,this.activeChangeEvent=new i.EventEmitter}return t.prototype.getActive=function(){return this.results[this.activeIdx]},t.prototype.markActive=function(t){this.activeIdx=t,this._activeChanged()},t.prototype.next=function(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()},t.prototype.prev=function(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()},t.prototype.select=function(t){this.selectEvent.emit(t)},t.prototype.ngOnInit=function(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()},t.prototype._activeChanged=function(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)},t}();o.decorators=[{type:i.Component,args:[{selector:"ngb-typeahead-window",exportAs:"ngbTypeaheadWindow",host:{class:"dropdown-menu",style:"display: block",role:"listbox","[id]":"id"},template:'\n    <ng-template #rt let-result="result" let-term="term" let-formatter="formatter">\n      <ngb-highlight [result]="formatter(result)" [term]="term"></ngb-highlight>\n    </ng-template>\n    <ng-template ngFor [ngForOf]="results" let-result let-idx="index">\n      <button type="button" class="dropdown-item" role="option"\n        [id]="id + \'-\' + idx"\n        [class.active]="idx === activeIdx"\n        (mouseenter)="markActive(idx)"\n        (click)="select(result)">\n          <ng-template [ngTemplateOutlet]="resultTemplate || rt"\n          [ngOutletContext]="{result: result, term: term, formatter: formatter}"></ng-template>\n      </button>\n    </ng-template>\n  '}]}],o.ctorParameters=function(){return[]},o.propDecorators={id:[{type:i.Input}],focusFirst:[{type:i.Input}],results:[{type:i.Input}],term:[{type:i.Input}],formatter:[{type:i.Input}],resultTemplate:[{type:i.Input}],selectEvent:[{type:i.Output,args:["select"]}],activeChangeEvent:[{type:i.Output,args:["activeChange"]}]}},c2EU:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.defaultThrottleConfig),r.throttle(t,e)(this)}var r=n("DrEP");e.throttle=i},cviY:function(t,e,n){"use strict";function i(t){return a["ɵvid"](0,[(t()(),a["ɵeld"](0,0,null,null,3,"option",[],null,null,null,null,null)),a["ɵdid"](1,147456,null,0,l.NgSelectOption,[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),a["ɵdid"](2,147456,null,0,l["ɵq"],[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),a["ɵted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.component.i18n.getMonthShortName(e.context.$implicit))})}function r(t){return a["ɵvid"](0,[(t()(),a["ɵeld"](0,0,null,null,3,"option",[],null,null,null,null,null)),a["ɵdid"](1,147456,null,0,l.NgSelectOption,[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),a["ɵdid"](2,147456,null,0,l["ɵq"],[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),a["ɵted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.context.$implicit)})}function o(t){return a["ɵvid"](0,[(t()(),a["ɵted"](-1,null,["\n    "])),(t()(),a["ɵeld"](1,0,null,null,4,"select",[["class","custom-select d-inline-block"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var i=!0,r=t.component;if("change"===e){i=!1!==r.changeMonth(n.target.value)&&i}return i},null,null)),(t()(),a["ɵted"](-1,null,["\n      "])),(t()(),a["ɵand"](16777216,null,null,1,null,i)),a["ɵdid"](4,802816,null,0,c.NgForOf,[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),a["ɵted"](-1,null,["\n    "])),(t()(),a["ɵeld"](6,0,null,null,4,"select",[["class","custom-select d-inline-block"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var i=!0,r=t.component;if("change"===e){i=!1!==r.changeYear(n.target.value)&&i}return i},null,null)),(t()(),a["ɵted"](-1,null,["\n      "])),(t()(),a["ɵand"](16777216,null,null,1,null,r)),a["ɵdid"](9,802816,null,0,c.NgForOf,[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),a["ɵted"](-1,null,["\n    "])),(t()(),a["ɵted"](-1,null,[" \n  "]))],function(t,e){var n=e.component;t(e,4,0,n.months),t(e,9,0,n.years)},function(t,e){var n=e.component;t(e,1,0,n.disabled,null==n.date?null:n.date.month),t(e,6,0,n.disabled,null==n.date?null:n.date.year)})}function s(t){return a["ɵvid"](0,[(t()(),a["ɵeld"](0,0,null,null,1,"ngb-datepicker-navigation-select",[],null,null,null,o,d)),a["ɵdid"](1,573440,null,0,u.a,[h.a,p.a],null,null)],null,null)}var a=n("/oeL"),l=n("bm2B"),u=n("JNkN"),c=n("qbdv"),h=n("CuDZ"),p=n("KSV9");n.d(e,"b",function(){return d}),e.a=o;var f=["select[_ngcontent-%COMP%] {\n      \n      padding: 0.25rem 0.5rem;\n      font-size: 0.875rem;      \n      line-height: 1.25;\n      \n      height: inherit;\n      width: 50%;\n    }"],d=a["ɵcrt"]({encapsulation:0,styles:f,data:{}});a["ɵccf"]("ngb-datepicker-navigation-select",u.a,s,{date:"date",disabled:"disabled",maxDate:"maxDate",minDate:"minDate"},{select:"select"},[])},"cyM/":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.skip=i;var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},d3kC:function(t,e,n){"use strict";var i=n("bKpL"),r=n("bjDG");i.Observable.generate=r.generate},dN2u:function(t,e,n){"use strict";var i=n("/oeL"),r=n("KRwK");n.d(e,"a",function(){return o});var o=function(){function t(t,e,n){this._moduleCFR=t,this._injector=e,this._modalStack=n}return t.prototype.open=function(t,e){return void 0===e&&(e={}),this._modalStack.open(this._moduleCFR,this._injector,t,e)},t}();o.decorators=[{type:i.Injectable}],o.ctorParameters=function(){return[{type:i.ComponentFactoryResolver},{type:i.Injector},{type:r.a}]}},dffx:function(t,e,n){"use strict";function i(t){var e=u.async,n=null,i=Number.POSITIVE_INFINITY;return p.isScheduler(arguments[3])&&(e=arguments[3]),p.isScheduler(arguments[2])?e=arguments[2]:h.isNumeric(arguments[2])&&(i=arguments[2]),p.isScheduler(arguments[1])?e=arguments[1]:h.isNumeric(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new f(t,n,i,e))}}function r(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function o(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=n.openWindow(),a=this,l={action:a,subscription:null},u={subscriber:n,window:o,context:l};l.subscription=i.schedule(s,e,u),a.add(l.subscription),a.schedule(t,r)}function s(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=n("rlar"),u=n("IhB/"),c=n("T14+"),h=n("EsGe"),p=n("MicL");e.windowTime=i;var f=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(l.Subject),m=function(t){function e(e,n,i,a,l){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=i,this.maxWindowSize=a,this.scheduler=l,this.windows=[];var u=this.openWindow();if(null!==i&&i>=0){var c={subscriber:this,window:u,context:null},h={windowTimeSpan:n,windowCreationInterval:i,subscriber:this,scheduler:l};this.add(l.schedule(s,n,c)),this.add(l.schedule(o,i,h))}else{var p={subscriber:this,window:u,windowTimeSpan:n};this.add(l.schedule(r,n,p))}}return a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var r=e[i];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(c.Subscriber)},dgXD:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7dLC");i.Observable.prototype.race=r.race},"dh/p":function(t,e,n){"use strict";var i=n("CPp0"),r=n("bKpL"),o=(n.n(r),n("5FRs")),s=n("6akk"),a=n("5v8a"),l=(n.n(a),n("xpf9"));n.n(l);n.d(e,"a",function(){return u});var u=function(){function t(t,e){this.http=t,this.authService=e}return t.prototype.getArchivos=function(t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new i.m;n.set("cedula",t);var r=new i.g({headers:e,search:n});return this.http.get(o.a+"/servicios/archivo",r).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.getArchivosCompartidosAlumno=function(t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new i.m;n.set("cedula",t),n.set("compartidos","true");var r=new i.g({headers:e,search:n});return this.http.get(o.a+"/servicios/archivo",r).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.crearArchivo=function(t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new i.g({headers:e});return this.http.post(o.a+"/servicios/archivo",t,n).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.editarArchivo=function(t,e){var n=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),r=new i.g({headers:n});return this.http.put(o.a+"/servicios/archivo/"+t,e,r).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.eliminarArchivo=function(t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new i.g({headers:e});return this.http.delete(o.a+"/servicios/archivo/"+t,n).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.getCopiaArchivoCompartidoGrupo=function(t,e){var n=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),r=new i.m;r.set("cedula",t);var s=new i.g({headers:n,search:r});return this.http.get(o.a+"/servicios/archivo/compartido/"+e,s).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.compartirArchivoGrupo=function(t,e){var n=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),r=new i.g({headers:n}),s={id:e};return this.http.post(o.a+"/servicios/grupo/"+t.liceoId+"/"+t.anio+"/"+t.grado+"/"+t.grupo+"/archivo",s,r).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.calificarArchivo=function(t,e){var n=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),r=new i.g({headers:n});return this.http.post(o.a+"/servicios/archivo/"+t+"/evaluacion",e,r).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.getGrupos=function(t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new i.m;n.set("cedula",t);var r=new i.g({headers:e,search:n});return this.http.get(o.a+"/servicios/grupo",r).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.handleError=function(t){var e=t.message?t.message:t.status?t.status+" - "+t.statusText:"Server error";return console.error(e),r.Observable.throw(e)},t.ctorParameters=function(){return[{type:i.i},{type:s.a}]},t}()},dtBE:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];l.isScheduler(n)?t.pop():n=null;var i=t.length;return 1===i?a.concat(new o.ScalarObservable(t[0],n),e):i>1?a.concat(new r.ArrayObservable(t,n),e):a.concat(new s.EmptyObservable(n),e)}}var r=n("wZOE"),o=n("aOKN"),s=n("fcnB"),a=n("7kbP"),l=n("MicL");e.startWith=i},duFl:function(t,e,n){"use strict";function i(t){var e=arguments.length,n=l.async;c.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new h(t,i,r,n))}}function r(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function o(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext(),a=this;i.closed||(i.add(o.closeAction=r.schedule(s,n,{subscriber:i,context:o})),a.schedule(t,e))}function s(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=n("IhB/"),u=n("T14+"),c=n("MicL");e.bufferTime=i;var h=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),p=function(){function t(){this.buffer=[]}return t}(),f=function(t){function e(e,n,i,a,l){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=i,this.maxBufferSize=a,this.scheduler=l,this.contexts=[];var u=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly){var c={subscriber:this,context:u,bufferTimeSpan:n};this.add(u.closeAction=l.schedule(r,n,c))}else{var h={subscriber:this,context:u},p={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:this,scheduler:l};this.add(u.closeAction=l.schedule(s,n,h)),this.add(l.schedule(o,i,p))}}return a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this,n=e.contexts,i=e.destination;n.length>0;){var r=n.shift();i.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(r,n,i))}},e.prototype.openContext=function(){var t=new p;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(u.Subscriber)},dxfK:function(t,e,n){"use strict";function i(t,e){return r.distinctUntilKeyChanged(t,e)(this)}var r=n("HBVP");e.distinctUntilKeyChanged=i},dy5W:function(t,e,n){"use strict";var i=n("bKpL"),r=n("WSkQ");i.Observable.prototype.last=r.last},dyFf:function(t,e,n){"use strict";var i=n("bKpL"),r=n("PT4i");i.Observable.never=r.never},e7Zl:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=function(t){function e(e,n,i){t.call(this),this.start=e,this._count=n,this.scheduler=i}return i(e,t),e.create=function(t,n,i){return void 0===t&&(t=0),void 0===n&&(n=0),new e(t,n,i)},e.dispatch=function(t){var e=t.start,n=t.index,i=t.count,r=t.subscriber;if(n>=i)return void r.complete();r.next(e),r.closed||(t.index=n+1,t.start=e+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=0,i=this.start,r=this._count,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,count:r,start:i,subscriber:t});for(;;){if(n++>=r){t.complete();break}if(t.next(i++),t.closed)break}},e}(r.Observable);e.RangeObservable=o},eqpX:function(t,e,n){"use strict";var i=n("bKpL"),r=n("rDIt");i.Observable.prototype.do=r._do,i.Observable.prototype._do=r._do},etEa:function(t,e,n){"use strict";function i(t,e){return r.find(t,e)(this)}var r=n("0dhf");e.find=i},etpI:function(t,e,n){"use strict";var i=function(){function t(){this.values={}}return t.prototype.delete=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var n=this.values;for(var i in n)n.hasOwnProperty(i)&&null!==n[i]&&t.call(e,n[i],i)},t.prototype.clear=function(){this.values={}},t}();e.FastMap=i},eumZ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Xa8F");i.Observable.prototype.windowCount=r.windowCount},f1rf:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.interval=5e3,this.wrap=!0,this.keyboard=!0}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"f7+7":function(t,e,n){"use strict";function i(t){var e=this,n=t.source,i=t.subscriber,s=t.context,a=n,h=a.callbackFunc,p=a.args,f=a.scheduler,d=n.subject;if(!d){d=n.subject=new c.AsyncSubject;var m=function t(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var s=t.source,a=s.selector,c=s.subject,h=n.shift();if(h)e.add(f.schedule(o,0,{err:h,subject:c}));else if(a){var p=l.tryCatch(a).apply(this,n);p===u.errorObject?e.add(f.schedule(o,0,{err:u.errorObject.e,subject:c})):e.add(f.schedule(r,0,{value:p,subject:c}))}else{var d=n.length<=1?n[0]:n;e.add(f.schedule(r,0,{value:d,subject:c}))}};m.source=n;l.tryCatch(h).apply(s,p.concat(m))===u.errorObject&&e.add(f.schedule(o,0,{err:u.errorObject.e,subject:d}))}e.add(d.subscribe(i))}function r(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function o(t){var e=t.err;t.subject.error(e)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n("bKpL"),l=n("RdI5"),u=n("XRvs"),c=n("l6Wf"),h=function(t){function e(e,n,i,r,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=i,this.context=r,this.scheduler=o}return s(e,t),e.create=function(t,n,i){return void 0===n&&(n=void 0),function(){for(var r=[],o=0;o<arguments.length;o++)r[o-0]=arguments[o];return new e(t,n,r,this,i)}},e.prototype._subscribe=function(t){var e=this.callbackFunc,n=this.args,r=this.scheduler,o=this.subject;if(r)return r.schedule(i,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new c.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var i=t.source,r=i.selector,o=i.subject,s=e.shift();if(s)o.error(s);else if(r){var a=l.tryCatch(r).apply(this,e);a===u.errorObject?o.error(u.errorObject.e):(o.next(a),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;l.tryCatch(e).apply(this.context,n.concat(s))===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(t)},e}(a.Observable);e.BoundNodeCallbackObservable=h},f7nC:function(t,e,n){"use strict";function i(t){return r.bufferWhen(t)(this)}var r=n("v1IT");e.bufferWhen=i},fV3I:function(t,e,n){"use strict";function i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=e.length,r=0;r<i;r++){var o=e[r];for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function r(t){return t.Object.assign||i}var o=n("zijX");e.assignImpl=i,e.getAssign=r,e.assign=r(o.root)},fdVa:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeScan(t,e,n)(this)}var r=n("t9cH");e.mergeScan=i},fxBd:function(t,e,n){"use strict";function i(t){return r.takeLast(t)(this)}var r=n("XvrG");e.takeLast=i},fxWY:function(t,e,n){"use strict";var i=n("/oeL"),r=n("Qyse");n.d(e,"b",function(){return o}),n.d(e,"a",function(){return s});var o=function(){function t(t){this._open=!1,this.openChange=new i.EventEmitter,this.up=t.up,this.autoClose=t.autoClose}return t.prototype.isOpen=function(){return this._open},t.prototype.open=function(){this._open||(this._open=!0,this.openChange.emit(!0))},t.prototype.close=function(){this._open&&(this._open=!1,this.openChange.emit(!1))},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.closeFromOutsideClick=function(t){this.autoClose&&2!==t.button&&!this._isEventFromToggle(t)&&this.close()},t.prototype.closeFromOutsideEsc=function(){this.autoClose&&this.close()},Object.defineProperty(t.prototype,"toggleElement",{set:function(t){this._toggleElement=t},enumerable:!0,configurable:!0}),t.prototype._isEventFromToggle=function(t){return!!this._toggleElement&&this._toggleElement.contains(t.target)},t}();o.decorators=[{type:i.Directive,args:[{selector:"[ngbDropdown]",exportAs:"ngbDropdown",host:{"[class.dropdown]":"!up","[class.dropup]":"up","[class.show]":"isOpen()","(keyup.esc)":"closeFromOutsideEsc()","(document:click)":"closeFromOutsideClick($event)"}}]}],o.ctorParameters=function(){return[{type:r.a}]},o.propDecorators={up:[{type:i.Input}],autoClose:[{type:i.Input}],_open:[{type:i.Input,args:["open"]}],openChange:[{type:i.Output}]};var s=function(){function t(t,e){this.dropdown=t,t.toggleElement=e.nativeElement}return t.prototype.toggleOpen=function(){this.dropdown.toggle()},t}();s.decorators=[{type:i.Directive,args:[{selector:"[ngbDropdownToggle]",host:{class:"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()","(click)":"toggleOpen()"}}]}],s.ctorParameters=function(){return[{type:o},{type:i.ElementRef}]}},g3vg:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Cipy");i.Observable.prototype.shareReplay=r.shareReplay},g5gQ:function(t,e,n){"use strict";var i=n("/oeL"),r=n("fxWY"),o=n("Qyse");n.d(e,"a",function(){return a});var s=[r.a,r.b],a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:s,exports:s}]}],a.ctorParameters=function(){return[]}},g9kf:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.repeatWhen=i;var c=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.notifier,e))},t}(),h=function(t){function e(e,n,i){t.call(this,e),this.notifier=n,this.source=i,this.sourceIsBeingSubscribedTo=!0}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return t.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,n=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this,n=e.notifications,i=e.retries,r=e.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=n,this.retries=i,this.retriesSubscription=r,this},e.prototype.subscribeToRetries=function(){this.notifications=new o.Subject;var e=s.tryCatch(this.notifier)(this.notifications);if(e===a.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=u.subscribeToResult(this,e)},e}(l.OuterSubscriber)},"gb+0":function(t,e,n){"use strict";function i(t){return r.single(t)(this)}var r=n("v71/");e.single=i},gbhw:function(t,e,n){"use strict";var i=n("bKpL"),r=n("422b");i.Observable.prototype.filter=r.filter},gonN:function(t,e,n){"use strict";function i(t,e){return r.multicast(t,e)(this)}var r=n("P02W");e.multicast=i},"h+is":function(t,e,n){"use strict";var i=n("bKpL"),r=n("9tb5");i.Observable.prototype.exhaustMap=r.exhaustMap},hAtc:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,2,"ngb-alert",[["class","alertPosition"]],[[4,"top",null]],[[null,"close"]],function(t,e,n){var i=!0,r=t.component;if("close"===e){i=!1!==r.closeAlert(t.context.index)&&i}return i},a.b,a.c)),s["ɵdid"](1,49152,null,0,l.a,[u.a],{type:[0,"type"]},{close:"close"}),(t()(),s["ɵted"](2,0,["\n","\n"]))],function(t,e){t(e,1,0,null==e.context.$implicit?null:e.context.$implicit.type)},function(t,e){t(e,0,0,60*e.context.index+30+"px"),t(e,2,0,null==e.context.$implicit?null:e.context.$implicit.text)})}function r(t){return s["ɵvid"](0,[(t()(),s["ɵted"](-1,null,["\n\n"])),(t()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](2,802816,null,0,c.NgForOf,[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),s["ɵted"](-1,null,["\n"]))],function(t,e){t(e,2,0,e.component.alerts)},null)}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"notificacion",[],null,null,null,r,d)),s["ɵdid"](1,114688,null,0,h.a,[p.a],null,null)],function(t,e){t(e,1,0)},null)}var s=n("/oeL"),a=n("CVNG"),l=n("PVMJ"),u=n("nVXb"),c=n("qbdv"),h=n("+iRM"),p=n("uiTn");n.d(e,"b",function(){return d}),e.a=r;var f=[],d=s["ɵcrt"]({encapsulation:2,styles:f,data:{}});s["ɵccf"]("notificacion",h.a,o,{},{},[])},hMLV:function(t,e,n){"use strict";var i=n("/oeL"),r=n("f1rf");n.d(e,"a",function(){return l});var o=0,s=function(){function t(t){this.tplRef=t,this.id="ngb-slide-"+o++}return t}();s.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbSlide]"}]}],s.ctorParameters=function(){return[{type:i.TemplateRef}]},s.propDecorators={id:[{type:i.Input}]};var a=function(){function t(t){this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard}return t.prototype.ngAfterContentChecked=function(){var t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:null},t.prototype.ngOnInit=function(){this._startTimer()},t.prototype.ngOnDestroy=function(){clearInterval(this._slideChangeInterval)},t.prototype.select=function(t){this.cycleToSelected(t),this._restartTimer()},t.prototype.prev=function(){this.cycleToPrev(),this._restartTimer()},t.prototype.next=function(){this.cycleToNext(),this._restartTimer()},t.prototype.pause=function(){this._stopTimer()},t.prototype.cycle=function(){this._startTimer()},t.prototype.cycleToNext=function(){this.cycleToSelected(this._getNextSlide(this.activeId))},t.prototype.cycleToPrev=function(){this.cycleToSelected(this._getPrevSlide(this.activeId))},t.prototype.cycleToSelected=function(t){var e=this._getSlideById(t);e&&(this.activeId=e.id)},t.prototype.keyPrev=function(){this.keyboard&&this.prev()},t.prototype.keyNext=function(){this.keyboard&&this.next()},t.prototype._restartTimer=function(){this._stopTimer(),this._startTimer()},t.prototype._startTimer=function(){var t=this;this.interval>0&&(this._slideChangeInterval=setInterval(function(){t.cycleToNext()},this.interval))},t.prototype._stopTimer=function(){clearInterval(this._slideChangeInterval)},t.prototype._getSlideById=function(t){var e=this.slides.filter(function(e){return e.id===t});return e.length?e[0]:null},t.prototype._getSlideIdxById=function(t){return this.slides.toArray().indexOf(this._getSlideById(t))},t.prototype._getNextSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id},t.prototype._getPrevSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id},t}();a.decorators=[{type:i.Component,args:[{selector:"ngb-carousel",exportAs:"ngbCarousel",host:{class:"carousel slide","[style.display]":'"block"',tabIndex:"0","(mouseenter)":"pause()","(mouseleave)":"cycle()","(keydown.arrowLeft)":"keyPrev()","(keydown.arrowRight)":"keyNext()"},template:'\n    <ol class="carousel-indicators">\n      <li *ngFor="let slide of slides" [id]="slide.id" [class.active]="slide.id === activeId" (click)="cycleToSelected(slide.id)"></li>\n    </ol>\n    <div class="carousel-inner">\n      <div *ngFor="let slide of slides" class="carousel-item" [class.active]="slide.id === activeId">\n        <ng-template [ngTemplateOutlet]="slide.tplRef"></ng-template>\n      </div>\n    </div>\n    <a class="left carousel-control-prev" role="button" (click)="cycleToPrev()">\n      <span class="carousel-control-prev-icon" aria-hidden="true"></span>\n      <span class="sr-only">Previous</span>\n    </a>\n    <a class="right carousel-control-next" role="button" (click)="cycleToNext()">\n      <span class="carousel-control-next-icon" aria-hidden="true"></span>\n      <span class="sr-only">Next</span>\n    </a>\n    '}]}],a.ctorParameters=function(){return[{type:r.a}]},a.propDecorators={slides:[{type:i.ContentChildren,args:[s]}],interval:[{type:i.Input}],wrap:[{type:i.Input}],keyboard:[{type:i.Input}],activeId:[{type:i.Input}]};var l=[a,s]},"hbO+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("slZm");i.Observable.empty=r.empty},hfga:function(t,e,n){"use strict";function i(t,e){return function(n){return[o.filter(t,e)(n),o.filter(r.not(t,e))(n)]}}var r=n("iyHZ"),o=n("Hd11");e.partition=i},i4mq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("zbre");i.Observable.prototype.bufferCount=r.bufferCount},iDKa:function(t,e,n){"use strict";function i(t){return r.skip(t)(this)}var r=n("cyM/");e.skip=i},iH09:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),l=function(t){function e(e,n){t.call(this,function(t){var e=this,n=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(n)})),e.scheduleMessages(t),t}),this.messages=e,this.subscriptions=[],this.scheduler=n}return i(e,t),e.prototype.scheduleMessages=function(t){for(var e=this.messages.length,n=0;n<e;n++){var i=this.messages[n];t.add(this.scheduler.schedule(function(t){var e=t.message,n=t.subscriber;e.notification.observe(n)},i.frame,{message:i,subscriber:t}))}},e}(r.Observable);e.ColdObservable=l,a.applyMixins(l,[s.SubscriptionLoggable])},ip92:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.count=i;var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,i){t.call(this,e),this.predicate=n,this.source=i,this.count=0,this.index=0}return r(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},iwys:function(t,e,n){"use strict";var i=n("bKpL"),r=n("1kAr");i.Observable.prototype.mapTo=r.mapTo},iyHZ:function(t,e,n){"use strict";function i(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}e.not=i},j8LY:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),function(i){return i.lift(new a(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.mergeMapTo=i;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=a;var l=function(t){function e(e,n,i,r){void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=n,this.resultSelector=i,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,n=this.index++,i=this.ish,r=this.destination;this.active++,this._innerSub(i,r,e,t,n)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n,i,r){this.add(s.subscribeToResult(this,t,i,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,i):a.next(e)},e.prototype.trySelectResult=function(t,e,n,i){var r,o=this,s=o.resultSelector,a=o.destination;try{r=s(t,e,n,i)}catch(t){return void a.error(t)}a.next(r)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapToSubscriber=l},j8RC:function(t,e,n){"use strict";var i=n("bKpL"),r=n("2Rhf");i.Observable.prototype.skipUntil=r.skipUntil},jKKE:function(t,e,n){"use strict";function i(t){return r.count(t)(this)}var r=n("ip92");e.count=i},jjPq:function(t,e,n){"use strict";function i(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return r.reduce(e)}var r=n("JwCl");e.max=i},jyAw:function(t,e,n){"use strict";function i(t,e,n,i){return r.groupBy(t,e,n,i)(this)}var r=n("8H5Y");e.GroupedObservable=r.GroupedObservable,e.groupBy=i},k6cv:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d");e.elementAt=i;var a=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.index,this.defaultValue))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.index=n,this.defaultValue=i}return r(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new s.ArgumentOutOfRangeError)),t.complete()},e}(o.Subscriber)},kAWK:function(t,e,n){"use strict";var i=n("bKpL"),r=n("QsbA");i.Observable.prototype.windowWhen=r.windowWhen},kGJb:function(t,e,n){"use strict";function i(t,e){return r.distinctUntilChanged(t,e)(this)}var r=n("2Sjb");e.distinctUntilChanged=i},kIyd:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Kuy3");i.Observable.prototype.subscribeOn=r.subscribeOn},ki6Z:function(t,e,n){"use strict";function i(){return r.exhaust()(this)}var r=n("weui");e.exhaust=i},kkQ5:function(t,e,n){"use strict";function i(t,e){return arguments.length>=2?r.scan(t,e)(this):r.scan(t)(this)}var r=n("H1KZ");e.scan=i},kqkQ:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.windowWhen=i;var c=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.closingSelector))},t}(),h=function(t){function e(e,n){t.call(this,e),this.destination=e,this.closingSelector=n,this.openWindow()}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow(r)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new o.Subject;this.destination.next(n);var i=s.tryCatch(this.closingSelector)();if(i===a.errorObject){var r=a.errorObject.e;this.destination.error(r),this.window.error(r)}else this.add(this.closingNotification=u.subscribeToResult(this,i))},e}(l.OuterSubscriber)},"l/Fw":function(t,e,n){"use strict";function i(t){return r.sample(t)(this)}var r=n("ZNYO");e.sample=i},"l3Q+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("tBQh");i.Observable.prototype.delay=r.delay},l6Wf:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("xFbG"),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(r.Subject);e.AsyncSubject=s},"lA7/":function(t,e,n){"use strict";var i=n("wM1e");n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(){function t(){}return t}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.parse=function(t){if(t){var e=t.trim().split("-");if(1===e.length&&n.i(i.a)(e[0]))return{year:n.i(i.b)(e[0]),month:null,day:null};if(2===e.length&&n.i(i.a)(e[0])&&n.i(i.a)(e[1]))return{year:n.i(i.b)(e[0]),month:n.i(i.b)(e[1]),day:null};if(3===e.length&&n.i(i.a)(e[0])&&n.i(i.a)(e[1])&&n.i(i.a)(e[2]))return{year:n.i(i.b)(e[0]),month:n.i(i.b)(e[1]),day:n.i(i.b)(e[2])}}return null},e.prototype.format=function(t){return t?t.year+"-"+(n.i(i.a)(t.month)?n.i(i.c)(t.month):"")+"-"+(n.i(i.a)(t.day)?n.i(i.c)(t.day):""):""},e}(o)},lDY9:function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";function e(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e,n){return t.cmpPos(n.from,e.from)>0&&e.to.ch-e.from.ch!=n.to.ch-n.from.ch}function i(t,e,n){var i=t.options.hintOptions,r={};for(var o in m)r[o]=m[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(t,e)),r}function r(t){return"string"==typeof t?t:t.text}function o(t,e){function n(t,n){var r;r="string"!=typeof n?function(t){return n(t,e)}:i.hasOwnProperty(n)?i[n]:n,o[t]=r}var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},r=t.options.customKeys,o=r?{}:i;if(r)for(var s in r)r.hasOwnProperty(s)&&n(s,r[s]);var a=t.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&n(s,a[s]);return o}function s(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(e,n){this.completion=e,this.data=n,this.picked=!1;var i=this,a=e.cm,l=this.hints=document.createElement("ul");l.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var u=n.list,c=0;c<u.length;++c){var f=l.appendChild(document.createElement("li")),d=u[c],m=h+(c!=this.selectedHint?"":" "+p);null!=d.className&&(m=d.className+" "+m),f.className=m,d.render?d.render(f,n,d):f.appendChild(document.createTextNode(d.displayText||r(d))),f.hintId=c}var v=a.cursorCoords(e.options.alignWithWord?n.from:null),g=v.left,b=v.bottom,y=!0;l.style.left=g+"px",l.style.top=b+"px";var w=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),x=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(e.options.container||document.body).appendChild(l);var S=l.getBoundingClientRect(),C=S.bottom-x,O=l.scrollHeight>l.clientHeight+1,k=a.getScrollInfo();if(C>0){var T=S.bottom-S.top;if(v.top-(v.bottom-S.top)-T>0)l.style.top=(b=v.top-T)+"px",y=!1;else if(T>x){l.style.height=x-5+"px",l.style.top=(b=v.bottom-S.top)+"px";var _=a.getCursor();n.from.ch!=_.ch&&(v=a.cursorCoords(_),l.style.left=(g=v.left)+"px",S=l.getBoundingClientRect())}}var L=S.right-w;if(L>0&&(S.right-S.left>w&&(l.style.width=w-5+"px",L-=S.right-S.left-w),l.style.left=(g=v.left-L)+"px"),O)for(var I=l.firstChild;I;I=I.nextSibling)I.style.paddingRight=a.display.nativeBarWidth+"px";if(a.addKeyMap(this.keyMap=o(e,{moveFocus:function(t,e){i.changeActive(i.selectedHint+t,e)},setFocus:function(t){i.changeActive(t)},menuSize:function(){return i.screenAmount()},length:u.length,close:function(){e.close()},pick:function(){i.pick()},data:n})),e.options.closeOnUnfocus){var M;a.on("blur",this.onBlur=function(){M=setTimeout(function(){e.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(M)})}return a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),i=b+k.top-t.top,r=i-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(r+=l.offsetHeight),r<=n.top||r>=n.bottom)return e.close();l.style.top=i+"px",l.style.left=g+k.left-t.left+"px"}),t.on(l,"dblclick",function(t){var e=s(l,t.target||t.srcElement);e&&null!=e.hintId&&(i.changeActive(e.hintId),i.pick())}),t.on(l,"click",function(t){var n=s(l,t.target||t.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),e.options.completeOnSingleClick&&i.pick())}),t.on(l,"mousedown",function(){setTimeout(function(){a.focus()},20)}),t.signal(n,"select",u[this.selectedHint],l.childNodes[this.selectedHint]),!0}function l(t,e){if(!t.somethingSelected())return e;for(var n=[],i=0;i<e.length;i++)e[i].supportsSelection&&n.push(e[i]);return n}function u(t,e,n,i){if(t.async)t(e,i,n);else{var r=t(e,n);r&&r.then?r.then(i):i(r)}}function c(e,n){var i,r=e.getHelpers(n,"hint");if(r.length){var o=function(t,e,n){function i(r){if(r==o.length)return e(null);u(o[r],t,n,function(t){t&&t.list.length>0?e(t):i(r+1)})}var o=l(t,r);i(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:i})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}var h="CodeMirror-hint",p="CodeMirror-hint-active";t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var i={hint:e};if(n)for(var r in n)i[r]=n[r];return t.showHint(i)},t.defineExtension("showHint",function(n){n=i(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;o<r.length;o++)if(r[o].head.line!=r[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var s=this.state.completionActive=new e(this,n);s.options.hint&&(t.signal(this,"startCompletion",this),s.update(!0))}});var f=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},d=window.cancelAnimationFrame||clearTimeout;e.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var i=e.list[n];i.hint?i.hint(this.cm,e,i):this.cm.replaceRange(r(i),i.from||e.from,i.to||e.to,"complete"),t.signal(e,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(d(this.debounce),this.debounce=0);var t=this.cm.getCursor(),e=this.cm.getLine(t.line);if(t.line!=this.startPos.line||e.length-t.ch!=this.startLen-this.startPos.ch||t.ch<this.startPos.ch||this.cm.somethingSelected()||t.ch&&this.options.closeCharacters.test(e.charAt(t.ch-1)))this.close();else{var n=this;this.debounce=f(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;u(this.options.hint,this.cm,this.options,function(i){e.tick==n&&e.finishUpdate(i,t)})}},finishUpdate:function(e,i){this.data&&t.signal(this.data,"update");var r=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),e&&this.data&&n(this.data,e)||(this.data=e,e&&e.list.length&&(r&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown"))))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var i=this.hints.childNodes[this.selectedHint];i.className=i.className.replace(" "+p,""),i=this.hints.childNodes[this.selectedHint=e],i.className+=" "+p,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:c}),t.registerHelper("hint","fromList",function(e,n){var i=e.getCursor(),r=e.getTokenAt(i),o=t.Pos(i.line,r.end);if(r.string&&/\w/.test(r.string[r.string.length-1]))var s=r.string,a=t.Pos(i.line,r.start);else var s="",a=o;for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,s.length)==s&&l.push(c)}if(l.length)return{list:l,from:a,to:o}}),t.commands.autocomplete=t.showHint;var m={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)})},lc3y:function(t,e,n){"use strict";function i(){return r.isEmpty()(this)}var r=n("C4ew");e.isEmpty=i},ltng:function(t,e,n){"use strict";var i=n("e7Zl");e.range=i.RangeObservable.create},m0eP:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵeld"](1,0,null,null,4,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(t()(),o["ɵted"](-1,null,["\n        "])),(t()(),o["ɵeld"](3,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),o["ɵncd"](null,0),(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵted"](-1,null,["\n    "]))],null,function(t,e){var n=e.component;t(e,1,0,"modal-dialog"+(n.size?" modal-"+n.size:""))})}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["style","display: block;"],["tabindex","-1"]],[[8,"className",0]],[[null,"keyup.esc"],[null,"click"]],function(t,e,n){var i=!0;if("keyup.esc"===e){i=!1!==o["ɵnov"](t,1).escKey(n)&&i}if("click"===e){i=!1!==o["ɵnov"](t,1).backdropClick(n)&&i}return i},i,l)),o["ɵdid"](1,4440064,null,0,s.a,[o.ElementRef,o.Renderer2],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,"modal fade show"+(o["ɵnov"](e,1).windowClass?" "+o["ɵnov"](e,1).windowClass:""))})}var o=n("/oeL"),s=n("AVYa");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-modal-window",s.a,r,{backdrop:"backdrop",keyboard:"keyboard",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"])},mDYJ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("dxfK");i.Observable.prototype.distinctUntilKeyChanged=r.distinctUntilKeyChanged},mQQt:function(t,e,n){"use strict";var i=n("/oeL"),r=n("F3px"),o=n("75Hr"),s=n("uJci"),a=n("7zUS");n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var l=0,u=function(){function t(){this.placement="top"}return t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-popover-window",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{"[class]":'"popover show popover-" + placement',role:"tooltip","[id]":"id"},template:'\n    <h3 class="popover-title">{{title}}</h3><div class="popover-content"><ng-content></ng-content></div>\n    '}]}],u.ctorParameters=function(){return[]},u.propDecorators={placement:[{type:i.Input}],title:[{type:i.Input}],id:[{type:i.Input}]};var c=function(){function t(t,e,r,a,c,h,p){var f=this;this._elementRef=t,this._renderer=e,this.shown=new i.EventEmitter,this.hidden=new i.EventEmitter,this._ngbPopoverWindowId="ngb-popover-"+l++,this.placement=h.placement,this.triggers=h.triggers,this.container=h.container,this._popupService=new s.a(u,r,c,e,a),this._zoneSubscription=p.onStable.subscribe(function(){f._windowRef&&n.i(o.a)(f._elementRef.nativeElement,f._windowRef.location.nativeElement,f.placement,"body"===f.container)})}return t.prototype.open=function(t){this._windowRef||(this._windowRef=this._popupService.open(this.ngbPopover,t),this._windowRef.instance.placement=this.placement,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.markForCheck(),this.shown.emit())},t.prototype.close=function(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=n.i(r.a)(this._renderer,this._elementRef.nativeElement,this.triggers,this.open.bind(this),this.close.bind(this),this.toggle.bind(this))},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}();c.decorators=[{type:i.Directive,args:[{selector:"[ngbPopover]",exportAs:"ngbPopover"}]}],c.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:i.ComponentFactoryResolver},{type:i.ViewContainerRef},{type:a.a},{type:i.NgZone}]},c.propDecorators={ngbPopover:[{type:i.Input}],popoverTitle:[{type:i.Input}],placement:[{type:i.Input}],triggers:[{type:i.Input}],container:[{type:i.Input}],shown:[{type:i.Output}],hidden:[{type:i.Output}]}},mjW1:function(t,e,n){"use strict";var i=n("bKpL"),r=n("rAcl");i.Observable.pairs=r.pairs},mvrJ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("6JjX");i.Observable.prototype.switch=r._switch,i.Observable.prototype._switch=r._switch},"n/Gy":function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e"),o=n("Wv1e");n.d(e,"a",function(){return s});var s=function(){function t(t){this.value=0,this.max=t.max,this.animated=t.animated,this.striped=t.striped,this.type=t.type,this.showValue=t.showValue}return t.prototype.getValue=function(){return n.i(r.e)(this.value,this.max)},t.prototype.getPercentValue=function(){return 100*this.getValue()/this.max},t}();s.decorators=[{type:i.Component,args:[{selector:"ngb-progressbar",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'\n    <div class="progress">\n      <div class="progress-bar{{type ? \' bg-\' + type : \'\'}}{{animated ? \' progress-bar-animated\' : \'\'}}{{striped ?\n    \' progress-bar-striped\' : \'\'}}" role="progressbar" [style.width.%]="getPercentValue()"\n    [attr.aria-valuenow]="getValue()" aria-valuemin="0" [attr.aria-valuemax]="max">\n        <span *ngIf="showValue">{{getPercentValue()}}%</span><ng-content></ng-content>\n      </div>\n    </div>\n  '}]}],s.ctorParameters=function(){return[{type:o.a}]},s.propDecorators={max:[{type:i.Input}],animated:[{type:i.Input}],striped:[{type:i.Input}],showValue:[{type:i.Input}],type:[{type:i.Input}],value:[{type:i.Input}]}},nfVm:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("/oeL"),r=n("bm2B"),o=n("oiK7"),s=function(){function t(){this.change=new i.EventEmitter,this.focus=new i.EventEmitter,this.blur=new i.EventEmitter,this.cursorActivity=new i.EventEmitter,this.instance=null,this._value=""}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this._value=t,this.onChange(t))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){},t.prototype.ngAfterViewInit=function(){this.config=this.config||{},this.codemirrorInit(this.config)},t.prototype.codemirrorInit=function(t){var e=this;this.instance=o.fromTextArea(this.host.nativeElement,t),this.instance.setValue(this._value),this.instance.on("change",function(){e.updateValue(e.instance.getValue())}),this.instance.on("focus",function(t,n){e.focus.emit({instance:t,event:n})}),this.instance.on("cursorActivity",function(t){e.cursorActivity.emit({instance:t})}),this.instance.on("blur",function(t,n){e.blur.emit({instance:t,event:n})})},t.prototype.updateValue=function(t){this.value=t,this.onTouched(),this.change.emit(t)},t.prototype.writeValue=function(t){this._value=t||"",this.instance&&this.instance.setValue(this._value)},t.prototype.onChange=function(t){},t.prototype.onTouched=function(){},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t}();s.decorators=[{type:i.Component,args:[{selector:"codemirror",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return s}),multi:!0}],template:"<textarea #host></textarea>"}]}],s.ctorParameters=function(){return[]},s.propDecorators={config:[{type:i.Input}],change:[{type:i.Output}],focus:[{type:i.Output}],blur:[{type:i.Output}],cursorActivity:[{type:i.Output}],host:[{type:i.ViewChild,args:["host"]}],instance:[{type:i.Output}],value:[{type:i.Input}]},e.CodemirrorComponent=s},nhnq:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("sdK6");e.BootstrapModalModule=i.BootstrapModalModule;var r=n("4cv6");e.DialogComponent=r.DialogComponent;var o=n("V672");e.DialogService=o.DialogService,e.DialogServiceConfig=o.DialogServiceConfig},"o/OZ":function(t,e,n){"use strict";var i=n("bKpL"),r=n("ziym");i.Observable.ajax=r.ajax},oOL0:function(t,e,n){"use strict";var i=n("bKpL"),r=n("olrH");i.Observable.prototype.concatMapTo=r.concatMapTo},oiK7:function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function e(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function n(t,n){return e(t).appendChild(n)}function i(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)r.appendChild(e[o]);return r}function r(t,e,n,r){var o=i(t,e,n,r);return o.setAttribute("role","presentation"),o}function o(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function s(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function a(e,n){var i=e.className;t(n).test(i)||(e.className+=(i?" ":"")+n)}function l(e,n){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!t(i[r]).test(n)&&(n+=" "+i[r]);return n}function u(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function c(t,e,n){e||(e={});for(var i in t)!t.hasOwnProperty(i)||!1===n&&e.hasOwnProperty(i)||(e[i]=t[i]);return e}function h(t,e,n,i,r){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i||0,s=r||0;;){var a=t.indexOf("\t",o);if(a<0||a>=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}function p(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}function f(t,e,n){for(var i=0,r=0;;){var o=t.indexOf("\t",i);-1==o&&(o=t.length);var s=o-i;if(o==t.length||r+s>=e)return i+Math.min(s,e-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=e)return i}}function d(t){for(;Us.length<=t;)Us.push(m(Us)+" ");return Us[t]}function m(t){return t[t.length-1]}function v(t,e){for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i],i);return n}function g(t,e,n){for(var i=0,r=n(e);i<t.length&&n(t[i])<=r;)i++;t.splice(i,0,e)}function b(){}function y(t,e){var n;return Object.create?n=Object.create(t):(b.prototype=t,n=new b),e&&c(e,n),n}function w(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Gs.test(t))}function x(t,e){return e?!!(e.source.indexOf("\\w")>-1&&w(t))||e.test(t):w(t)}function S(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}function C(t){return t.charCodeAt(0)>=768&&Ys.test(t)}function O(t,e,n){for(;(n<0?e>0:e<t.length)&&C(t.charAt(e));)e+=n;return e}function k(t,e,n){for(var i=e>n?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function T(t,e,n){var o=this;this.input=n,o.scrollbarFiller=i("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=i("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=r("div",null,"CodeMirror-code"),o.selectionDiv=i("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=i("div",null,"CodeMirror-cursors"),o.measure=i("div",null,"CodeMirror-measure"),o.lineMeasure=i("div",null,"CodeMirror-measure"),o.lineSpace=r("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=r("div",[o.lineSpace],"CodeMirror-lines");o.mover=i("div",[s],null,"position: relative"),o.sizer=i("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=i("div",null,null,"position: absolute; height: "+Vs+"px; width: 1px;"),o.gutters=i("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=i("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=i("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),gs&&bs<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),ys||fs&&Ls||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function _(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e<o){n=r;break}e-=o}return n.lines[e]}function L(t,e,n){var i=[],r=e.line;return t.iter(e.line,n.line+1,function(t){var o=t.text;r==n.line&&(o=o.slice(0,n.ch)),r==e.line&&(o=o.slice(e.ch)),i.push(o),++r}),i}function I(t,e,n){var i=[];return t.iter(e,n,function(t){i.push(t.text)}),i}function M(t,e){var n=e-t.height;if(n)for(var i=t;i;i=i.parent)i.height+=n}function A(t){if(null==t.parent)return null;for(var e=t.parent,n=p(e.lines,t),i=e.parent;i;e=i,i=i.parent)for(var r=0;i.children[r]!=e;++r)n+=i.children[r].chunkSize();return n+e.first}function E(t,e){var n=t.first;t:do{for(var i=0;i<t.children.length;++i){var r=t.children[i],o=r.height;if(e<o){t=r;continue t}e-=o,n+=r.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s],l=a.height;if(e<l)break;e-=l}return n+s}function N(t,e){return e>=t.first&&e<t.first+t.size}function R(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function D(t,e,n){if(void 0===n&&(n=null),!(this instanceof D))return new D(t,e,n);this.line=t,this.ch=e,this.sticky=n}function P(t,e){return t.line-e.line||t.ch-e.ch}function j(t,e){return t.sticky==e.sticky&&0==P(t,e)}function F(t){return D(t.line,t.ch)}function W(t,e){return P(t,e)<0?e:t}function H(t,e){return P(t,e)<0?t:e}function V(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function z(t,e){if(e.line<t.first)return D(t.first,0);var n=t.first+t.size-1;return e.line>n?D(n,_(t,n).text.length):B(e,_(t,e.line).text.length)}function B(t,e){var n=t.ch;return null==n||n>e?D(t.line,e):n<0?D(t.line,0):t}function q(t,e){for(var n=[],i=0;i<e.length;i++)n[i]=z(t,e[i]);return n}function K(){Xs=!0}function U(){Js=!0}function G(t,e,n){this.marker=t,this.from=e,this.to=n}function Y(t,e){if(t)for(var n=0;n<t.length;++n){var i=t[n];if(i.marker==e)return i}}function X(t,e){for(var n,i=0;i<t.length;++i)t[i]!=e&&(n||(n=[])).push(t[i]);return n}function J(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Z(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],s=o.marker,a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);if(a||o.from==e&&"bookmark"==s.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);(i||(i=[])).push(new G(s,o.from,l?null:o.to))}}return i}function Q(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],s=o.marker,a=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);if(a||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);(i||(i=[])).push(new G(s,l?null:o.from-e,null==o.to?null:o.to-e))}}return i}function $(t,e){if(e.full)return null;var n=N(t,e.from.line)&&_(t,e.from.line).markedSpans,i=N(t,e.to.line)&&_(t,e.to.line).markedSpans;if(!n&&!i)return null;var r=e.from.ch,o=e.to.ch,s=0==P(e.from,e.to),a=Z(n,r,s),l=Q(i,o,s),u=1==e.text.length,c=m(e.text).length+(u?r:0);if(a)for(var h=0;h<a.length;++h){var p=a[h];if(null==p.to){var f=Y(l,p.marker);f?u&&(p.to=null==f.to?null:f.to+c):p.to=r}}if(l)for(var d=0;d<l.length;++d){var v=l[d];if(null!=v.to&&(v.to+=c),null==v.from){var g=Y(a,v.marker);g||(v.from=c,u&&(a||(a=[])).push(v))}else v.from+=c,u&&(a||(a=[])).push(v)}a&&(a=tt(a)),l&&l!=a&&(l=tt(l));var b=[a];if(!u){var y,w=e.text.length-2;if(w>0&&a)for(var x=0;x<a.length;++x)null==a[x].to&&(y||(y=[])).push(new G(a[x].marker,null,null));for(var S=0;S<w;++S)b.push(y);b.push(l)}return b}function tt(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function et(t,e,n){var i=null;if(t.iter(e.line,n.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||i&&-1!=p(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:e,to:n}],o=0;o<i.length;++o)for(var s=i[o],a=s.find(0),l=0;l<r.length;++l){var u=r[l];if(!(P(u.to,a.from)<0||P(u.from,a.to)>0)){var c=[l,1],h=P(u.from,a.from),f=P(u.to,a.to);(h<0||!s.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(f>0||!s.inclusiveRight&&!f)&&c.push({from:a.to,to:u.to}),r.splice.apply(r,c),l+=c.length-3}}return r}function nt(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function it(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function rt(t){return t.inclusiveLeft?-1:0}function ot(t){return t.inclusiveRight?1:0}function st(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var i=t.find(),r=e.find(),o=P(i.from,r.from)||rt(t)-rt(e);if(o)return-o;var s=P(i.to,r.to)||ot(t)-ot(e);return s||e.id-t.id}function at(t,e){var n,i=Js&&t.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)r=i[o],r.marker.collapsed&&null==(e?r.from:r.to)&&(!n||st(n,r.marker)<0)&&(n=r.marker);return n}function lt(t){return at(t,!0)}function ut(t){return at(t,!1)}function ct(t,e,n,i,r){var o=_(t,e),s=Js&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=P(u.from,n)||rt(l.marker)-rt(r),h=P(u.to,i)||ot(l.marker)-ot(r);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?P(u.to,n)>=0:P(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?P(u.from,i)<=0:P(u.from,i)<0)))return!0}}}function ht(t){for(var e;e=lt(t);)t=e.find(-1,!0).line;return t}function pt(t){for(var e;e=ut(t);)t=e.find(1,!0).line;return t}function ft(t){for(var e,n;e=ut(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function dt(t,e){var n=_(t,e),i=ht(n);return n==i?e:A(i)}function mt(t,e){if(e>t.lastLine())return e;var n,i=_(t,e);if(!vt(t,i))return e;for(;n=ut(i);)i=n.find(1,!0).line;return A(i)+1}function vt(t,e){var n=Js&&e.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if(i=n[r],i.marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&gt(t,e,i))return!0}}function gt(t,e,n){if(null==n.to){var i=n.marker.find(1,!0);return gt(t,i.line,Y(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var r=void 0,o=0;o<e.markedSpans.length;++o)if(r=e.markedSpans[o],r.marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&gt(t,e,r))return!0}function bt(t){t=ht(t);for(var e=0,n=t.parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==t)break;e+=r.height}for(var o=n.parent;o;n=o,o=n.parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;e+=a.height}return e}function yt(t){if(0==t.height)return 0;for(var e,n=t.text.length,i=t;e=lt(i);){var r=e.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=t;e=ut(i);){var o=e.find(0,!0);n-=i.text.length-o.from.ch,i=o.to.line,n+=i.text.length-o.to.ch}return n}function wt(t){var e=t.display,n=t.doc;e.maxLine=_(n,n.first),e.maxLineLength=yt(e.maxLine),e.maxLineChanged=!0,n.iter(function(t){var n=yt(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}function xt(t,e,n,i){if(!t)return i(e,n,"ltr",0);for(var r=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>e||e==n&&s.to==e)&&(i(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}function St(t,e,n){var i;Zs=null;for(var r=0;r<t.length;++r){var o=t[r];if(o.from<e&&o.to>e)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:Zs=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:Zs=r)}return null!=i?i:Zs}function Ct(t,e){var n=t.order;return null==n&&(n=t.order=Qs(t.text,e)),n}function Ot(t,e){return t._handlers&&t._handlers[e]||$s}function kt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var i=t._handlers,r=i&&i[e];if(r){var o=p(r,n);o>-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function Tt(t,e){var n=Ot(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function _t(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),Tt(t,n||e.type,t,e),Nt(e)||e.codemirrorIgnore}function Lt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),i=0;i<e.length;++i)-1==p(n,e[i])&&n.push(e[i])}function It(t,e){return Ot(t,e).length>0}function Mt(t){t.prototype.on=function(t,e){ta(this,t,e)},t.prototype.off=function(t,e){kt(this,t,e)}}function At(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Et(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Nt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Rt(t){At(t),Et(t)}function Dt(t){return t.target||t.srcElement}function Pt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),Is&&t.ctrlKey&&1==e&&(e=3),e}function jt(t){if(null==Ws){var e=i("span","​");n(t,i("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Ws=e.offsetWidth<=1&&e.offsetHeight>2&&!(gs&&bs<8))}var r=Ws?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ft(t){if(null!=Hs)return Hs;var i=n(t,document.createTextNode("AخA")),r=Ns(i,0,1).getBoundingClientRect(),o=Ns(i,1,2).getBoundingClientRect();return e(t),!(!r||r.left==r.right)&&(Hs=o.right-r.right<3)}function Wt(t){if(null!=oa)return oa;var e=n(t,i("span","x")),r=e.getBoundingClientRect(),o=Ns(e,0,1).getBoundingClientRect();return oa=Math.abs(r.left-o.left)>1}function Ht(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),sa[t]=e}function Vt(t,e){aa[t]=e}function zt(t){if("string"==typeof t&&aa.hasOwnProperty(t))t=aa[t];else if(t&&"string"==typeof t.name&&aa.hasOwnProperty(t.name)){var e=aa[t.name];"string"==typeof e&&(e={name:e}),t=y(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return zt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return zt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Bt(t,e){e=zt(e);var n=sa[e.name];if(!n)return Bt(t,"text/plain");var i=n(t,e);if(la.hasOwnProperty(e.name)){var r=la[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)i[s]=e.modeProps[s];return i}function qt(t,e){c(e,la.hasOwnProperty(t)?la[t]:la[t]={})}function Kt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Ut(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Gt(t,e,n){return!t.startState||t.startState(e,n)}function Yt(t,e,n,i){var r=[t.state.modeGen],o={};ne(t,e.text,t.doc.mode,n,function(t,e){return r.push(t,e)},o,i);for(var s=n.state,a=0;a<t.state.overlays.length;++a)!function(i){n.baseTokens=r;var a=t.state.overlays[i],l=1,u=0;n.state=!0,ne(t,e.text,a.mode,n,function(t,e){for(var n=l;u<t;){var i=r[l];i>t&&r.splice(l,1,t,r[l+1],i),l+=2,u=Math.min(t,i)}if(e)if(a.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+e}},o),n.state=s,n.baseTokens=null,n.baseTokenPos=1}(a);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function Xt(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var i=Jt(t,A(e)),r=e.text.length>t.options.maxHighlightLength&&Kt(t.doc.mode,i.state),o=Yt(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Jt(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new ha(i,!0,e);var o=ie(t,e,n),s=o>i.first&&_(i,o-1).stateAfter,a=s?ha.fromSaved(i,s,o):new ha(i,Gt(i.mode),o);return i.iter(o,e,function(n){Zt(t,n.text,a);var i=a.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?a.save():null,a.nextLine()}),n&&(i.modeFrontier=a.line),a}function Zt(t,e,n,i){var r=t.doc.mode,o=new ua(e,t.options.tabSize,n);for(o.start=o.pos=i||0,""==e&&Qt(r,n.state);!o.eol();)$t(r,o,n.state),o.start=o.pos}function Qt(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Ut(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function $t(t,e,n,i){for(var r=0;r<10;r++){i&&(i[0]=Ut(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}function te(t,e,n,i){var r,o=t.doc,s=o.mode;e=z(o,e);var a,l=_(o,e.line),u=Jt(t,e.line,n),c=new ua(l.text,t.options.tabSize,u);for(i&&(a=[]);(i||c.pos<e.ch)&&!c.eol();)c.start=c.pos,r=$t(s,c,u.state),i&&a.push(new pa(c,r,Kt(o.mode,u.state)));return i?a:new pa(c,r,u.state)}function ee(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==e[i]?e[i]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(e[i])||(e[i]+=" "+n[2])}return t}function ne(t,e,n,i,r,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,u=0,c=null,h=new ua(e,t.options.tabSize,i),p=t.options.addModeClass&&[null];for(""==e&&ee(Qt(n,i.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(a=!1,s&&Zt(t,e,i,h.pos),h.pos=e.length,l=null):l=ee($t(n,h,i.state,p),o),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!a||c!=l){for(;u<h.start;)u=Math.min(h.start,u+5e3),r(u,c);c=l}h.start=h.pos}for(;u<h.pos;){var d=Math.min(h.pos,u+5e3);r(d,c),u=d}}function ie(t,e,n){for(var i,r,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=_(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof ca?u.lookAhead:0)<=o.modeFrontier))return a;var c=h(l.text,null,t.options.tabSize);(null==r||i>c)&&(r=a-1,i=c)}return r}function re(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,i=e-1;i>n;i--){var r=_(t,i).stateAfter;if(r&&(!(r instanceof ca)||i+r.lookAhead<e)){n=i+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}function oe(t,e,n,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),nt(t),it(t,n);var r=i?i(t):1;r!=t.height&&M(t,r)}function se(t){t.parent=null,nt(t)}function ae(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?va:ma;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function le(t,e){var n=r("span",null,null,ys?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:(gs||ys)&&t.getOption("lineWrapping")};e.measure={};for(var o=0;o<=(e.rest?e.rest.length:0);o++){var s=o?e.rest[o-1]:e.line,a=void 0;i.pos=0,i.addToken=ce,Ft(t.display.measure)&&(a=Ct(s,t.doc.direction))&&(i.addToken=pe(i.addToken,a)),i.map=[];de(s,i,Xt(t,s,e!=t.display.externalMeasured&&A(s))),s.styleClasses&&(s.styleClasses.bgClass&&(i.bgClass=l(s.styleClasses.bgClass,i.bgClass||"")),s.styleClasses.textClass&&(i.textClass=l(s.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(jt(t.display.measure))),0==o?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(ys){var u=i.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Tt(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=l(i.pre.className,i.textClass||"")),i}function ue(t){var e=i("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function ce(t,e,n,r,o,s,a){if(e){var l,u=t.splitSpaces?he(e,t.trailingSpace):e,c=t.cm.state.specialChars,h=!1;if(c.test(e)){l=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var f=c.exec(e),m=f?f.index-p:e.length-p;if(m){var v=document.createTextNode(u.slice(p,p+m));gs&&bs<9?l.appendChild(i("span",[v])):l.appendChild(v),t.map.push(t.pos,t.pos+m,v),t.col+=m,t.pos+=m}if(!f)break;p+=m+1;var g=void 0;if("\t"==f[0]){var b=t.cm.options.tabSize,y=b-t.col%b;g=l.appendChild(i("span",d(y),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),t.col+=y}else"\r"==f[0]||"\n"==f[0]?(g=l.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",f[0]),t.col+=1):(g=t.cm.options.specialCharPlaceholder(f[0]),g.setAttribute("cm-text",f[0]),gs&&bs<9?l.appendChild(i("span",[g])):l.appendChild(g),t.col+=1);t.map.push(t.pos,t.pos+1,g),t.pos++}}else t.col+=e.length,l=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,l),gs&&bs<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||o||h||a){var w=n||"";r&&(w+=r),o&&(w+=o);var x=i("span",[l],w,a);return s&&(x.title=s),t.content.appendChild(x)}t.content.appendChild(l)}}function he(t,e){if(t.length>1&&!/  /.test(t))return t;for(var n=e,i="",r=0;r<t.length;r++){var o=t.charAt(r);" "!=o||!n||r!=t.length-1&&32!=t.charCodeAt(r+1)||(o=" "),i+=o,n=" "==o}return i}function pe(t,e){return function(n,i,r,o,s,a,l){r=r?r+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+i.length;;){for(var h=void 0,p=0;p<e.length&&(h=e[p],!(h.to>u&&h.from<=u));p++);if(h.to>=c)return t(n,i,r,o,s,a,l);t(n,i.slice(0,h.to-u),r,o,null,a,l),o=null,i=i.slice(h.to-u),u=h.to}}}function fe(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function de(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var s,a,l,u,c,h,p,f=r.length,d=0,m=1,v="",g=0;;){if(g==d){l=u=c=h=a="",p=null,g=1/0;for(var b=[],y=void 0,w=0;w<i.length;++w){var x=i[w],S=x.marker;"bookmark"==S.type&&x.from==d&&S.widgetNode?b.push(S):x.from<=d&&(null==x.to||x.to>d||S.collapsed&&x.to==d&&x.from==d)?(null!=x.to&&x.to!=d&&g>x.to&&(g=x.to,u=""),S.className&&(l+=" "+S.className),S.css&&(a=(a?a+";":"")+S.css),S.startStyle&&x.from==d&&(c+=" "+S.startStyle),S.endStyle&&x.to==g&&(y||(y=[])).push(S.endStyle,x.to),S.title&&!h&&(h=S.title),S.collapsed&&(!p||st(p.marker,S)<0)&&(p=x)):x.from>d&&g>x.from&&(g=x.from)}if(y)for(var C=0;C<y.length;C+=2)y[C+1]==g&&(u+=" "+y[C]);if(!p||p.from==d)for(var O=0;O<b.length;++O)fe(e,0,b[O]);if(p&&(p.from||0)==d){if(fe(e,(null==p.to?f+1:p.to)-d,p.marker,null==p.from),null==p.to)return;p.to==d&&(p=!1)}}if(d>=f)break;for(var k=Math.min(f,g);;){if(v){var T=d+v.length;if(!p){var _=T>k?v.slice(0,k-d):v;e.addToken(e,_,s?s+l:l,c,d+_.length==g?u:"",h,a)}if(T>=k){v=v.slice(k-d),d=k;break}d=T,c=""}v=r.slice(o,o=n[m++]),s=ae(n[m++],e.cm.options)}}else for(var L=1;L<n.length;L+=2)e.addToken(e,r.slice(o,o=n[L]),ae(n[L+1],e.cm.options))}function me(t,e,n){this.line=e,this.rest=ft(e),this.size=this.rest?A(m(this.rest))-n+1:1,this.node=this.text=null,this.hidden=vt(t,e)}function ve(t,e,n){for(var i,r=[],o=e;o<n;o=i){var s=new me(t.doc,_(t.doc,o),o);i=o+s.size,r.push(s)}return r}function ge(t){ga?ga.ops.push(t):t.ownsGroup=ga={ops:[t],delayedCallbacks:[]}}function be(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var i=0;i<t.ops.length;i++){var r=t.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<e.length)}function ye(t,e){var n=t.ownsGroup;if(n)try{be(n)}finally{ga=null,e(n)}}function we(t,e){var n=Ot(t,e);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);ga?i=ga.delayedCallbacks:ba?i=ba:(i=ba=[],setTimeout(xe,0));for(var o=0;o<n.length;++o)!function(t){i.push(function(){return n[t].apply(null,r)})}(o)}}function xe(){var t=ba;ba=null;for(var e=0;e<t.length;++e)t[e]()}function Se(t,e,n,i){for(var r=0;r<e.changes.length;r++){var o=e.changes[r];"text"==o?Te(t,e):"gutter"==o?Le(t,e,n,i):"class"==o?_e(t,e):"widget"==o&&Ie(t,e,i)}e.changes=null}function Ce(t){return t.node==t.text&&(t.node=i("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),gs&&bs<8&&(t.node.style.zIndex=2)),t.node}function Oe(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=Ce(e);e.background=r.insertBefore(i("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function ke(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):le(t,e)}function Te(t,e){var n=e.text.className,i=ke(t,e);e.text==e.node&&(e.node=i.pre),e.text.parentNode.replaceChild(i.pre,e.text),e.text=i.pre,i.bgClass!=e.bgClass||i.textClass!=e.textClass?(e.bgClass=i.bgClass,e.textClass=i.textClass,_e(t,e)):n&&(e.text.className=n)}function _e(t,e){Oe(t,e),e.line.wrapClass?Ce(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Le(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var o=Ce(e);e.gutterBackground=i("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),o.insertBefore(e.gutterBackground,e.text)}var s=e.line.gutterMarkers;if(t.options.lineNumbers||s){var a=Ce(e),l=e.gutter=i("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(l),a.insertBefore(l,e.text),e.line.gutterClass&&(l.className+=" "+e.line.gutterClass),!t.options.lineNumbers||s&&s["CodeMirror-linenumbers"]||(e.lineNumber=l.appendChild(i("div",R(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),s)for(var u=0;u<t.options.gutters.length;++u){var c=t.options.gutters[u],h=s.hasOwnProperty(c)&&s[c];h&&l.appendChild(i("div",[h],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Ie(t,e,n){e.alignable&&(e.alignable=null);for(var i=e.node.firstChild,r=void 0;i;i=r)r=i.nextSibling,"CodeMirror-linewidget"==i.className&&e.node.removeChild(i);Ae(t,e,n)}function Me(t,e,n,i){var r=ke(t,e);return e.text=e.node=r.pre,r.bgClass&&(e.bgClass=r.bgClass),r.textClass&&(e.textClass=r.textClass),_e(t,e),Le(t,e,n,i),Ae(t,e,i),e.node}function Ae(t,e,n){if(Ee(t,e.line,e,n,!0),e.rest)for(var i=0;i<e.rest.length;i++)Ee(t,e.rest[i],e,n,!1)}function Ee(t,e,n,r,o){if(e.widgets)for(var s=Ce(n),a=0,l=e.widgets;a<l.length;++a){var u=l[a],c=i("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Ne(u,c,n,r),t.display.input.setUneditable(c),o&&u.above?s.insertBefore(c,n.gutter||n.text):s.appendChild(c),we(u,"redraw")}}function Ne(t,e,n,i){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var r=i.wrapperWidth;e.style.left=i.fixedPos+"px",t.coverGutter||(r-=i.gutterTotalWidth,e.style.paddingLeft=i.gutterTotalWidth+"px"),e.style.width=r+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-i.gutterTotalWidth+"px"))}function Re(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!o(document.body,t.node)){var r="position: relative;";t.coverGutter&&(r+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(r+="width: "+e.display.wrapper.clientWidth+"px;"),n(e.display.measure,i("div",[t.node],null,r))}return t.height=t.node.parentNode.offsetHeight}function De(t,e){for(var n=Dt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Pe(t){return t.lineSpace.offsetTop}function je(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Fe(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=n(t.measure,i("pre","x")),r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,o={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(t.cachedPaddingH=o),o}function We(t){return Vs-t.display.nativeBarWidth}function He(t){return t.display.scroller.clientWidth-We(t)-t.display.barWidth}function Ve(t){return t.display.scroller.clientHeight-We(t)-t.display.barHeight}function ze(t,e,n){var i=t.options.lineWrapping,r=i&&He(t);if(!e.measure.heights||i&&e.measure.width!=r){var o=e.measure.heights=[];if(i){e.measure.width=r;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Be(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var i=0;i<t.rest.length;i++)if(t.rest[i]==e)return{map:t.measure.maps[i],cache:t.measure.caches[i]};for(var r=0;r<t.rest.length;r++)if(A(t.rest[r])>n)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function qe(t,e){e=ht(e);var i=A(e),r=t.display.externalMeasured=new me(t.doc,e,i);r.lineN=i;var o=r.built=le(t,r);return r.text=o.pre,n(t.display.lineMeasure,o.pre),r}function Ke(t,e,n,i){return Ye(t,Ge(t,e),n,i)}function Ue(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Tn(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Ge(t,e){var n=A(e),i=Ue(t,n);i&&!i.text?i=null:i&&i.changes&&(Se(t,i,n,xn(t)),t.curOp.forceUpdate=!0),i||(i=qe(t,e));var r=Be(i,e,n);return{line:e,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function Ye(t,e,n,i,r){e.before&&(n=-1);var o,s=n+(i||"");return e.cache.hasOwnProperty(s)?o=e.cache[s]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(ze(t,e.view,e.rect),e.hasHeights=!0),o=Ze(t,e,n,i),o.bogus||(e.cache[s]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}function Xe(t,e,n){for(var i,r,o,s,a,l,u=0;u<t.length;u+=3)if(a=t[u],l=t[u+1],e<a?(r=0,o=1,s="left"):e<l?(r=e-a,o=r+1):(u==t.length-3||e==l&&t[u+3]>e)&&(o=l-a,r=o-1,e>=l&&(s="right")),null!=r){if(i=t[u+2],a==l&&n==(i.insertLeft?"left":"right")&&(s=n),"left"==n&&0==r)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)i=t[2+(u-=3)],s="left";if("right"==n&&r==l-a)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)i=t[(u+=3)+2],s="right";break}return{node:i,start:r,end:o,collapse:s,coverStart:a,coverEnd:l}}function Je(t,e){var n=ya;if("left"==e)for(var i=0;i<t.length&&(n=t[i]).left==n.right;i++);else for(var r=t.length-1;r>=0&&(n=t[r]).left==n.right;r--);return n}function Ze(t,e,n,i){var r,o=Xe(e.map,n,i),s=o.node,a=o.start,l=o.end,u=o.collapse;if(3==s.nodeType){for(var c=0;c<4;c++){for(;a&&C(e.line.text.charAt(o.coverStart+a));)--a;for(;o.coverStart+l<o.coverEnd&&C(e.line.text.charAt(o.coverStart+l));)++l;if(r=gs&&bs<9&&0==a&&l==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():Je(Ns(s,a,l).getClientRects(),i),r.left||r.right||0==a)break;l=a,a-=1,u="right"}gs&&bs<11&&(r=Qe(t.display.measure,r))}else{a>0&&(u=i="right");var h;r=t.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==i?h.length-1:0]:s.getBoundingClientRect()}if(gs&&bs<9&&!a&&(!r||!r.left&&!r.right)){var p=s.parentNode.getClientRects()[0];r=p?{left:p.left,right:p.left+wn(t.display),top:p.top,bottom:p.bottom}:ya}for(var f=r.top-e.rect.top,d=r.bottom-e.rect.top,m=(f+d)/2,v=e.view.measure.heights,g=0;g<v.length-1&&!(m<v[g]);g++);var b=g?v[g-1]:0,y=v[g],w={left:("right"==u?r.right:r.left)-e.rect.left,right:("left"==u?r.left:r.right)-e.rect.left,top:b,bottom:y};return r.left||r.right||(w.bogus=!0),t.options.singleCursorHeightPerLine||(w.rtop=f,w.rbottom=d),w}function Qe(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Wt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}function $e(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function tn(t){t.display.externalMeasure=null,e(t.display.lineMeasure);for(var n=0;n<t.display.view.length;n++)$e(t.display.view[n])}function en(t){tn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function nn(){return xs&&_s?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function rn(){return xs&&_s?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function on(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=Re(t.widgets[n]));return e}function sn(t,e,n,i,r){if(!r){var o=on(e);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var s=bt(e);if("local"==i?s+=Pe(t.display):s-=t.display.viewOffset,"page"==i||"window"==i){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==i?0:rn());var l=a.left+("window"==i?0:nn());n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function an(t,e,n){if("div"==n)return e;var i=e.left,r=e.top;if("page"==n)i-=nn(),r-=rn();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:i-s.left,top:r-s.top}}function ln(t,e,n,i,r){return i||(i=_(t.doc,e.line)),sn(t,i,Ke(t,i,e.ch,r),n)}function un(t,e,n,i,r,o){function s(e,s){var a=Ye(t,r,e,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,sn(t,i,a,n)}function a(t,e,n){var i=l[e],r=1==i.level;return s(n?t-1:t,r!=n)}i=i||_(t.doc,e.line),r||(r=Ge(t,i));var l=Ct(i,t.doc.direction),u=e.ch,c=e.sticky;if(u>=i.text.length?(u=i.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return s("before"==c?u-1:u,"before"==c);var h=St(l,u,c),p=Zs,f=a(u,h,"before"==c);return null!=p&&(f.other=a(u,p,"before"!=c)),f}function cn(t,e){var n=0;e=z(t.doc,e),t.options.lineWrapping||(n=wn(t.display)*e.ch);var i=_(t.doc,e.line),r=bt(i)+Pe(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function hn(t,e,n,i,r){var o=D(t,e,n);return o.xRel=r,i&&(o.outside=!0),o}function pn(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return hn(i.first,0,null,!0,-1);var r=E(i,n),o=i.first+i.size-1;if(r>o)return hn(i.first+i.size-1,_(i,o).text.length,null,!0,1);e<0&&(e=0);for(var s=_(i,r);;){var a=vn(t,s,r,e,n),l=ut(s),u=l&&l.find(0,!0);if(!l||!(a.ch>u.from.ch||a.ch==u.from.ch&&a.xRel>0))return a;r=A(s=u.to.line)}}function fn(t,e,n,i){i-=on(e);var r=e.text.length,o=k(function(e){return Ye(t,n,e-1).bottom<=i},r,0);return r=k(function(e){return Ye(t,n,e).top>i},o,r),{begin:o,end:r}}function dn(t,e,n,i){return n||(n=Ge(t,e)),fn(t,e,n,sn(t,e,Ye(t,n,i),"line").top)}function mn(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function vn(t,e,n,i,r){r-=bt(e);var o=Ge(t,e),s=on(e),a=0,l=e.text.length,u=!0,c=Ct(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?bn:gn)(t,e,n,o,c,i,r);u=1!=h.level,a=u?h.from:h.to-1,l=u?h.to:h.from-1}var p,f,d=null,m=null,v=k(function(e){var n=Ye(t,o,e);return n.top+=s,n.bottom+=s,!!mn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(d=e,m=n),!0)},a,l),g=!1;if(m){var b=i-m.left<m.right-i,y=b==u;v=d+(y?0:1),f=y?"after":"before",p=b?m.left:m.right}else{u||v!=l&&v!=a||v++,f=0==v?"after":v==e.text.length?"before":Ye(t,o,v-(u?1:0)).bottom+s<=r==u?"after":"before";var w=un(t,D(n,v,f),"line",e,o);p=w.left,g=r<w.top||r>=w.bottom}return v=O(e.text,v,1),hn(n,v,f,g,i-p)}function gn(t,e,n,i,r,o,s){var a=k(function(a){var l=r[a],u=1!=l.level;return mn(un(t,D(n,u?l.to:l.from,u?"before":"after"),"line",e,i),o,s,!0)},0,r.length-1),l=r[a];if(a>0){var u=1!=l.level,c=un(t,D(n,u?l.from:l.to,u?"after":"before"),"line",e,i);mn(c,o,s,!0)&&c.top>s&&(l=r[a-1])}return l}function bn(t,e,n,i,r,o,s){var a=fn(t,e,i,s),l=a.begin,u=a.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,h=null,p=0;p<r.length;p++){var f=r[p];if(!(f.from>=u||f.to<=l)){var d=1!=f.level,m=Ye(t,i,d?Math.min(u,f.to)-1:Math.max(l,f.from)).right,v=m<o?o-m+1e9:m-o;(!c||h>v)&&(c=f,h=v)}}return c||(c=r[r.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function yn(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==da){da=i("pre");for(var r=0;r<49;++r)da.appendChild(document.createTextNode("x")),da.appendChild(i("br"));da.appendChild(document.createTextNode("x"))}n(t.measure,da);var o=da.offsetHeight/50;return o>3&&(t.cachedTextHeight=o),e(t.measure),o||1}function wn(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=i("span","xxxxxxxxxx"),r=i("pre",[e]);n(t.measure,r);var o=e.getBoundingClientRect(),s=(o.right-o.left)/10;return s>2&&(t.cachedCharWidth=s),s||10}function xn(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)n[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+r,i[t.options.gutters[s]]=o.clientWidth;return{fixedPos:Sn(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function Sn(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Cn(t){var e=yn(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/wn(t.display)-3);return function(r){if(vt(t.doc,r))return 0;var o=0;if(r.widgets)for(var s=0;s<r.widgets.length;s++)r.widgets[s].height&&(o+=r.widgets[s].height);return n?o+(Math.ceil(r.text.length/i)||1)*e:o+e}}function On(t){var e=t.doc,n=Cn(t);e.iter(function(t){var e=n(t);e!=t.height&&M(t,e)})}function kn(t,e,n,i){var r=t.display;if(!n&&"true"==Dt(e).getAttribute("cm-not-content"))return null;var o,s,a=r.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(e){return null}var l,u=pn(t,o,s);if(i&&1==u.xRel&&(l=_(t.doc,u.line).text).length==u.ch){var c=h(l,l.length,t.options.tabSize)-l.length;u=D(u.line,Math.max(0,Math.round((o-Fe(t.display).left)/wn(t.display))-c))}return u}function Tn(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i<n.length;i++)if((e-=n[i].size)<0)return i}function _n(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ln(t,e){void 0===e&&(e=!0);for(var n=t.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var a=n.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var l=a.empty();(l||t.options.showCursorWhenSelecting)&&In(t,a.head,r),l||An(t,a,o)}}return i}function In(t,e,n){var r=un(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),o=n.appendChild(i("div"," ","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var s=n.appendChild(i("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Mn(t,e){return t.top-e.top||t.left-e.left}function An(t,e,n){function r(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),l.appendChild(i("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==n?h-t:n)+"px;\n                             height: "+(r-e)+"px"))}function o(e,n,i){function o(n,i){return ln(t,D(e,n),"div",f,i)}function s(e,n,i){var r=dn(t,f,null,e),s="ltr"==n==("after"==i)?"left":"right";return o("after"==i?r.begin:r.end-(/\s/.test(f.text.charAt(r.end-1))?2:1),s)[s]}var l,u,f=_(a,e),d=f.text.length,m=Ct(f,a.direction);return xt(m,n||0,null==i?d:i,function(t,e,a,f){var v="ltr"==a,g=o(t,v?"left":"right"),b=o(e-1,v?"right":"left"),y=null==n&&0==t,w=null==i&&e==d,x=0==f,S=!m||f==m.length-1;if(b.top-g.top<=3){var C=(p?y:w)&&x,O=(p?w:y)&&S,k=C?c:(v?g:b).left,T=O?h:(v?b:g).right;r(k,g.top,T-k,g.bottom)}else{var _,L,I,M;v?(_=p&&y&&x?c:g.left,L=p?h:s(t,a,"before"),I=p?c:s(e,a,"after"),M=p&&w&&S?h:b.right):(_=p?s(t,a,"before"):c,L=!p&&y&&x?h:g.right,I=!p&&w&&S?c:b.left,M=p?s(e,a,"after"):h),r(_,g.top,L-_,g.bottom),g.bottom<b.top&&r(c,g.bottom,null,b.top),r(I,b.top,M-I,b.bottom)}(!l||Mn(g,l)<0)&&(l=g),Mn(b,l)<0&&(l=b),(!u||Mn(g,u)<0)&&(u=g),Mn(b,u)<0&&(u=b)}),{start:l,end:u}}var s=t.display,a=t.doc,l=document.createDocumentFragment(),u=Fe(t.display),c=u.left,h=Math.max(s.sizerWidth,He(t)-s.sizer.offsetLeft)-u.right,p="ltr"==a.direction,f=e.from(),d=e.to();if(f.line==d.line)o(f.line,f.ch,d.ch);else{var m=_(a,f.line),v=_(a,d.line),g=ht(m)==ht(v),b=o(f.line,f.ch,g?m.text.length+1:null).end,y=o(d.line,g?0:null,d.ch).start;g&&(b.top<y.top-2?(r(b.right,b.top,null,b.bottom),r(c,y.top,y.left,y.bottom)):r(b.right,b.top,y.left-b.right,b.bottom)),b.bottom<y.top&&r(c,b.bottom,null,y.top)}n.appendChild(l)}function En(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Nn(t){t.state.focused||(t.display.input.focus(),Dn(t))}function Rn(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Pn(t))},100)}function Dn(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(Tt(t,"focus",t,e),t.state.focused=!0,a(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),ys&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),En(t))}function Pn(t,e){t.state.delayingBlurEvent||(t.state.focused&&(Tt(t,"blur",t,e),t.state.focused=!1,Ps(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function jn(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i<e.view.length;i++){var r=e.view[i],o=void 0;if(!r.hidden){if(gs&&bs<8){var s=r.node.offsetTop+r.node.offsetHeight;o=s-n,n=s}else{var a=r.node.getBoundingClientRect();o=a.bottom-a.top}var l=r.line.height-o;if(o<2&&(o=yn(e)),(l>.005||l<-.005)&&(M(r.line,o),Fn(r.line),r.rest))for(var u=0;u<r.rest.length;u++)Fn(r.rest[u])}}}function Fn(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e)t.widgets[e].height=t.widgets[e].node.parentNode.offsetHeight}function Wn(t,e,n){var i=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;i=Math.floor(i-Pe(t));var r=n&&null!=n.bottom?n.bottom:i+t.wrapper.clientHeight,o=E(e,i),s=E(e,r);if(n&&n.ensure){var a=n.ensure.from.line,l=n.ensure.to.line;a<o?(o=a,s=E(e,bt(_(e,a))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=s&&(o=E(e,bt(_(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function Hn(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=Sn(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=i+r+"px")}}function Vn(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=R(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(i("div",[i("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=o.firstChild.offsetWidth,a=o.offsetWidth-s;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(s,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Ei(t),!0}return!1}function zn(t,e){if(!_t(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),o=null;if(e.top+r.top<0?o=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!ks){var s=i("div","​",null,"position: absolute;\n                         top: "+(e.top-n.viewOffset-Pe(t.display))+"px;\n                         height: "+(e.bottom-e.top+We(t)+n.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(s),s.scrollIntoView(o),t.display.lineSpace.removeChild(s)}}}function Bn(t,e,n,i){null==i&&(i=0);var r;t.options.lineWrapping||e!=n||(e=e.ch?D(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?D(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=un(t,e),l=n&&n!=e?un(t,n):a;r={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i};var u=Kn(t,r),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=u.scrollTop&&(Qn(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(ti(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(s=!0)),!s)break}return r}function qn(t,e){var n=Kn(t,e);null!=n.scrollTop&&Qn(t,n.scrollTop),null!=n.scrollLeft&&ti(t,n.scrollLeft)}function Kn(t,e){var n=t.display,i=yn(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Ve(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+je(n),l=e.top<i,u=e.bottom>a-i;if(e.top<r)s.scrollTop=l?0:e.top;else if(e.bottom>r+o){var c=Math.min(e.top,(u?a:e.bottom)-o);c!=r&&(s.scrollTop=c)}var h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,p=He(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),f=e.right-e.left>p;return f&&(e.right=e.left+p),e.left<10?s.scrollLeft=0:e.left<h?s.scrollLeft=Math.max(0,e.left-(f?0:10)):e.right>p+h-3&&(s.scrollLeft=e.right+(f?0:10)-p),s}function Un(t,e){null!=e&&(Jn(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Gn(t){Jn(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Yn(t,e,n){null==e&&null==n||Jn(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Xn(t,e){Jn(t),t.curOp.scrollToPos=e}function Jn(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;Zn(t,cn(t,e.from),cn(t,e.to),e.margin)}}function Zn(t,e,n,i){var r=Kn(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});Yn(t,r.scrollLeft,r.scrollTop)}function Qn(t,e){Math.abs(t.doc.scrollTop-e)<2||(fs||Mi(t,{top:e}),$n(t,e,!0),fs&&Mi(t),Ci(t,100))}function $n(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function ti(t,e,n,i){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,Hn(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function ei(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+je(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+We(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}function ni(t,e){e||(e=ei(t));var n=t.display.barWidth,i=t.display.barHeight;ii(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&jn(t),ii(t,ei(t)),n=t.display.barWidth,i=t.display.barHeight}function ii(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}function ri(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Ps(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Sa[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ta(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?ti(t,e):Qn(t,e)},t),t.display.scrollbars.addClass&&a(t.display.wrapper,t.display.scrollbars.addClass)}function oi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ca},ge(t.curOp)}function si(t){ye(t.curOp,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;ai(t)})}function ai(t){for(var e=t.ops,n=0;n<e.length;n++)li(e[n]);for(var i=0;i<e.length;i++)ui(e[i]);for(var r=0;r<e.length;r++)ci(e[r]);for(var o=0;o<e.length;o++)hi(e[o]);for(var s=0;s<e.length;s++)pi(e[s])}function li(t){var e=t.cm,n=e.display;ki(e),t.updateMaxLine&&wt(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Oa(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function ui(t){t.updatedDisplay=t.mustUpdate&&Li(t.cm,t.update)}function ci(t){var e=t.cm,n=e.display;t.updatedDisplay&&jn(e),t.barMeasure=ei(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Ke(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+We(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-He(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function hi(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&ti(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==s();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&ni(e,t.barMeasure),t.updatedDisplay&&Ni(e,t.barMeasure),t.selectionChanged&&En(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Nn(t.cm)}function pi(t){var e=t.cm,n=e.display,i=e.doc;if(t.updatedDisplay&&Ii(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&$n(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&ti(e,t.scrollLeft,!0,!0),t.scrollToPos){zn(e,Bn(e,z(i,t.scrollToPos.from),z(i,t.scrollToPos.to),t.scrollToPos.margin))}var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var s=0;s<r.length;++s)r[s].lines.length||Tt(r[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&Tt(o[a],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&Tt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function fi(t,e){if(t.curOp)return e();oi(t);try{return e()}finally{si(t)}}function di(t,e){return function(){if(t.curOp)return e.apply(t,arguments);oi(t);try{return e.apply(t,arguments)}finally{si(t)}}}function mi(t){return function(){if(this.curOp)return t.apply(this,arguments);oi(this);try{return t.apply(this,arguments)}finally{si(this)}}}function vi(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);oi(e);try{return t.apply(this,arguments)}finally{si(e)}}}function gi(t,e,n,i){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),i||(i=0);var r=t.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>e)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Js&&dt(t.doc,e)<r.viewTo&&yi(t);else if(n<=r.viewFrom)Js&&mt(t.doc,n+i)>r.viewFrom?yi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)yi(t);else if(e<=r.viewFrom){var o=wi(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):yi(t)}else if(n>=r.viewTo){var s=wi(t,e,e,-1);s?(r.view=r.view.slice(0,s.index),r.viewTo=s.lineN):yi(t)}else{var a=wi(t,e,e,-1),l=wi(t,n,n+i,1);a&&l?(r.view=r.view.slice(0,a.index).concat(ve(t,a.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):yi(t)}var u=r.externalMeasured;u&&(n<u.lineN?u.lineN+=i:e<u.lineN+u.size&&(r.externalMeasured=null))}function bi(t,e,n){t.curOp.viewChanged=!0;var i=t.display,r=t.display.externalMeasured;if(r&&e>=r.lineN&&e<r.lineN+r.size&&(i.externalMeasured=null),!(e<i.viewFrom||e>=i.viewTo)){var o=i.view[Tn(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==p(s,n)&&s.push(n)}}}function yi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function wi(t,e,n,i){var r,o=Tn(t,e),s=t.display.view;if(!Js||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(i>0){if(o==s.length-1)return null;r=a+s[o].size-e,o++}else r=a-e;e+=r,n+=r}for(;dt(t.doc,n)!=n;){if(o==(i<0?0:s.length-1))return null;n+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function xi(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=ve(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=ve(t,e,i.viewFrom).concat(i.view):i.viewFrom<e&&(i.view=i.view.slice(Tn(t,e))),i.viewFrom=e,i.viewTo<n?i.view=i.view.concat(ve(t,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Tn(t,n)))),i.viewTo=n}function Si(t){for(var e=t.display.view,n=0,i=0;i<e.length;i++){var r=e[i];r.hidden||r.node&&!r.changes||++n}return n}function Ci(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,u(Oi,t))}function Oi(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,i=Jt(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(i.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Kt(e.mode,i.state):null,l=Yt(t,o,i,!0);a&&(i.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!h&&p<s.length;++p)h=s[p]!=o.styles[p];h&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=t.options.maxHighlightLength&&Zt(t,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return Ci(t,t.options.workDelay),!0}),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&fi(t,function(){for(var e=0;e<r.length;e++)bi(t,r[e],"text")})}}function ki(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=We(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=We(t)+"px",e.scrollbarsClipped=!0)}function Ti(t){if(t.hasFocus())return null;var e=s();if(!e||!o(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&o(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function _i(t){if(t&&t.activeElt&&t.activeElt!=s()&&(t.activeElt.focus(),t.anchorNode&&o(document.body,t.anchorNode)&&o(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function Li(t,n){var i=t.display,r=t.doc;if(n.editorIsHidden)return yi(t),!1;if(!n.force&&n.visible.from>=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==Si(t))return!1;Vn(t)&&(yi(t),n.dims=xn(t));var o=r.first+r.size,s=Math.max(n.visible.from-t.options.viewportMargin,r.first),a=Math.min(o,n.visible.to+t.options.viewportMargin);i.viewFrom<s&&s-i.viewFrom<20&&(s=Math.max(r.first,i.viewFrom)),i.viewTo>a&&i.viewTo-a<20&&(a=Math.min(o,i.viewTo)),Js&&(s=dt(t.doc,s),a=mt(t.doc,a));var l=s!=i.viewFrom||a!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;xi(t,s,a),i.viewOffset=bt(_(t.doc,i.viewFrom)),t.display.mover.style.top=i.viewOffset+"px";var u=Si(t);if(!l&&0==u&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var c=Ti(t);return u>4&&(i.lineDiv.style.display="none"),Ai(t,i.updateLineNumbers,n.dims),u>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,_i(c),e(i.cursorDiv),e(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,Ci(t,400)),i.updateLineNumbers=null,!0}function Ii(t,e){for(var n=e.viewport,i=!0;(i&&t.options.lineWrapping&&e.oldDisplayWidth!=He(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+je(t.display)-Ve(t),n.top)}),e.visible=Wn(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&Li(t,e);i=!1){jn(t);var r=ei(t);_n(t),ni(t,r),Ni(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Mi(t,e){var n=new Oa(t,e);if(Li(t,n)){jn(t),Ii(t,n);var i=ei(t);_n(t),ni(t,i),Ni(t,i),n.finish()}}function Ai(t,n,i){function r(e){var n=e.nextSibling;return ys&&Is&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var o=t.display,s=t.options.lineNumbers,a=o.lineDiv,l=a.firstChild,u=o.view,c=o.viewFrom,h=0;h<u.length;h++){var f=u[h];if(f.hidden);else if(f.node&&f.node.parentNode==a){for(;l!=f.node;)l=r(l);var d=s&&null!=n&&n<=c&&f.lineNumber;f.changes&&(p(f.changes,"gutter")>-1&&(d=!1),Se(t,f,c,i)),d&&(e(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(R(t.options,c)))),l=f.node.nextSibling}else{var m=Me(t,f,c,i);a.insertBefore(m,l)}c+=f.size}for(;l;)l=r(l)}function Ei(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function Ni(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+We(t)+"px"}function Ri(t){var n=t.display.gutters,r=t.options.gutters;e(n);for(var o=0;o<r.length;++o){var s=r[o],a=n.appendChild(i("div",null,"CodeMirror-gutter "+s));"CodeMirror-linenumbers"==s&&(t.display.lineGutter=a,a.style.width=(t.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",Ei(t)}function Di(t){var e=p(t.gutters,"CodeMirror-linenumbers");-1==e&&t.lineNumbers?t.gutters=t.gutters.concat(["CodeMirror-linenumbers"]):e>-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}function Pi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function ji(t){var e=Pi(t);return e.x*=Ta,e.y*=Ta,e}function Fi(t,e){var n=Pi(e),i=n.x,r=n.y,o=t.display,s=o.scroller,a=s.scrollWidth>s.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&a||r&&l){if(r&&Is&&ys)t:for(var u=e.target,c=o.view;u!=s;u=u.parentNode)for(var h=0;h<c.length;h++)if(c[h].node==u){t.display.currentWheelTarget=u;break t}if(i&&!fs&&!Ss&&null!=Ta)return r&&l&&Qn(t,Math.max(0,s.scrollTop+r*Ta)),ti(t,Math.max(0,s.scrollLeft+i*Ta)),(!r||r&&l)&&At(e),void(o.wheelStartX=null);if(r&&null!=Ta){var p=r*Ta,f=t.doc.scrollTop,d=f+o.wrapper.clientHeight;p<0?f=Math.max(0,f+p-50):d=Math.min(t.doc.height,d+p+50),Mi(t,{top:f,bottom:d})}ka<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=r,setTimeout(function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,n=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(Ta=(Ta*ka+n)/(ka+1),++ka)}},200)):(o.wheelDX+=i,o.wheelDY+=r))}}function Wi(t,e){var n=t[e];t.sort(function(t,e){return P(t.from(),e.from())}),e=p(t,n);for(var i=1;i<t.length;i++){var r=t[i],o=t[i-1];if(P(o.to(),r.from())>=0){var s=H(o.from(),r.from()),a=W(o.to(),r.to()),l=o.empty()?r.from()==r.head:o.from()==o.head;i<=e&&--e,t.splice(--i,2,new La(l?a:s,l?s:a))}}return new _a(t,e)}function Hi(t,e){return new _a([new La(t,e||t)],0)}function Vi(t){return t.text?D(t.from.line+t.text.length-1,m(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function zi(t,e){if(P(t,e.from)<0)return t;if(P(t,e.to)<=0)return Vi(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=Vi(e).ch-e.to.ch),D(n,i)}function Bi(t,e){for(var n=[],i=0;i<t.sel.ranges.length;i++){var r=t.sel.ranges[i];n.push(new La(zi(r.anchor,e),zi(r.head,e)))}return Wi(n,t.sel.primIndex)}function qi(t,e,n){return t.line==e.line?D(n.line,t.ch-e.ch+n.ch):D(n.line+(t.line-e.line),t.ch)}function Ki(t,e,n){for(var i=[],r=D(t.first,0),o=r,s=0;s<e.length;s++){var a=e[s],l=qi(a.from,r,o),u=qi(Vi(a),r,o);if(r=a.to,o=u,"around"==n){var c=t.sel.ranges[s],h=P(c.head,c.anchor)<0;i[s]=new La(h?u:l,h?l:u)}else i[s]=new La(l,l)}return new _a(i,t.sel.primIndex)}function Ui(t){t.doc.mode=Bt(t.options,t.doc.modeOption),Gi(t)}function Gi(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ci(t,100),t.state.modeGen++,t.curOp&&gi(t)}function Yi(t,e){return 0==e.from.ch&&0==e.to.ch&&""==m(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Xi(t,e,n,i){function r(t){return n?n[t]:null}function o(t,n,r){oe(t,n,r,i),we(t,"change",t,e)}function s(t,e){for(var n=[],o=t;o<e;++o)n.push(new fa(u[o],r(o),i));return n}var a=e.from,l=e.to,u=e.text,c=_(t,a.line),h=_(t,l.line),p=m(u),f=r(u.length-1),d=l.line-a.line;if(e.full)t.insert(0,s(0,u.length)),t.remove(u.length,t.size-u.length);else if(Yi(t,e)){var v=s(0,u.length-1);o(h,h.text,f),d&&t.remove(a.line,d),v.length&&t.insert(a.line,v)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,a.ch)+p+c.text.slice(l.ch),f);else{var g=s(1,u.length-1);g.push(new fa(p+c.text.slice(l.ch),f,i)),o(c,c.text.slice(0,a.ch)+u[0],r(0)),t.insert(a.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,a.ch)+u[0]+h.text.slice(l.ch),r(0)),t.remove(a.line+1,d);else{o(c,c.text.slice(0,a.ch)+u[0],r(0)),o(h,p+h.text.slice(l.ch),f);var b=s(1,u.length-1);d>1&&t.remove(a.line+1,d-1),t.insert(a.line+1,b)}we(t,"change",t,e)}function Ji(t,e,n){function i(t,r,o){if(t.linked)for(var s=0;s<t.linked.length;++s){var a=t.linked[s];if(a.doc!=r){var l=o&&a.sharedHist;n&&!l||(e(a.doc,l),i(a.doc,t,l))}}}i(t,null,!0)}function Zi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,On(t),Ui(t),Qi(t),t.options.lineWrapping||wt(t),t.options.mode=e.modeOption,gi(t)}function Qi(t){("rtl"==t.doc.direction?a:Ps)(t.display.lineDiv,"CodeMirror-rtl")}function $i(t){fi(t,function(){Qi(t),gi(t)})}function tr(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function er(t,e){var n={from:F(e.from),to:Vi(e),text:L(t,e.from,e.to)};return lr(t,n,e.from.line,e.to.line+1),Ji(t,function(t){return lr(t,n,e.from.line,e.to.line+1)},!0),n}function nr(t){for(;t.length;){if(!m(t).ranges)break;t.pop()}}function ir(t,e){return e?(nr(t.done),m(t.done)):t.done.length&&!m(t.done).ranges?m(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),m(t.done)):void 0}function rr(t,e,n,i){var r=t.history;r.undone.length=0;var o,s,a=+new Date;if((r.lastOp==i||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&t.cm&&r.lastModTime>a-t.cm.options.historyEventDelay||"*"==e.origin.charAt(0)))&&(o=ir(r,r.lastOp==i)))s=m(o.changes),0==P(e.from,e.to)&&0==P(e.from,s.to)?s.to=Vi(e):o.changes.push(er(t,e));else{var l=m(r.done);for(l&&l.ranges||ar(t.sel,r.done),o={changes:[er(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,s||Tt(t,"historyAdded")}function or(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function sr(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||or(t,o,m(r.done),e))?r.done[r.done.length-1]=e:ar(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&nr(r.undone)}function ar(t,e){var n=m(e);n&&n.ranges&&n.equals(t)||e.push(t)}function lr(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function ur(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function cr(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var i=[],r=0;r<e.text.length;++r)i.push(ur(n[r]));return i}function hr(t,e){var n=cr(t,e),i=$(t,e);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],s=i[r];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else s&&(n[r]=s)}return n}function pr(t,e,n){for(var i=[],r=0;r<t.length;++r){var o=t[r];if(o.ranges)i.push(n?_a.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];i.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),e)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&p(e,Number(c[1]))>-1&&(m(a)[h]=u[h],delete u[h])}}}return i}function fr(t,e,n,i){if(i){var r=t.anchor;if(n){var o=P(e,r)<0;o!=P(n,r)<0?(r=e,e=n):o!=P(e,n)<0&&(e=n)}return new La(r,e)}return new La(n||e,e)}function dr(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),wr(t,new _a([fr(t.sel.primary(),e,n,r)],0),i)}function mr(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)i[o]=fr(t.sel.ranges[o],e[o],null,r);wr(t,Wi(i,t.sel.primIndex),n)}function vr(t,e,n,i){var r=t.sel.ranges.slice(0);r[e]=n,wr(t,Wi(r,t.sel.primIndex),i)}function gr(t,e,n,i){wr(t,Hi(e,n),i)}function br(t,e,n){var i={ranges:e.ranges,update:function(e){var n=this;this.ranges=[];for(var i=0;i<e.length;i++)n.ranges[i]=new La(z(t,e[i].anchor),z(t,e[i].head))},origin:n&&n.origin};return Tt(t,"beforeSelectionChange",t,i),t.cm&&Tt(t.cm,"beforeSelectionChange",t.cm,i),i.ranges!=e.ranges?Wi(i.ranges,i.ranges.length-1):e}function yr(t,e,n){var i=t.history.done,r=m(i);r&&r.ranges?(i[i.length-1]=e,xr(t,e,n)):wr(t,e,n)}function wr(t,e,n){xr(t,e,n),sr(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function xr(t,e,n){(It(t,"beforeSelectionChange")||t.cm&&It(t.cm,"beforeSelectionChange"))&&(e=br(t,e,n)),Sr(t,Or(t,e,n&&n.bias||(P(e.primary().head,t.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!t.cm||Gn(t.cm)}function Sr(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=t.cm.curOp.selectionChanged=!0,Lt(t.cm)),we(t,"cursorActivity",t))}function Cr(t){Sr(t,Or(t,t.sel,null,!1))}function Or(t,e,n,i){for(var r,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=Tr(t,s.anchor,a&&a.anchor,n,i),u=Tr(t,s.head,a&&a.head,n,i);(r||l!=s.anchor||u!=s.head)&&(r||(r=e.ranges.slice(0,o)),r[o]=new La(l,u))}return r?Wi(r,e.primIndex):e}function kr(t,e,n,i,r){var o=_(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker;if((null==a.from||(l.inclusiveLeft?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(l.inclusiveRight?a.to>=e.ch:a.to>e.ch))){if(r&&(Tt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var u=l.find(i<0?1:-1),c=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(u=_r(t,u,-i,u&&u.line==e.line?o:null)),u&&u.line==e.line&&(c=P(u,n))&&(i<0?c<0:c>0))return kr(t,u,e,i,r)}var h=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(h=_r(t,h,i,h.line==e.line?o:null)),h?kr(t,h,e,i,r):null}}return e}function Tr(t,e,n,i,r){var o=i||1,s=kr(t,e,n,o,r)||!r&&kr(t,e,n,o,!0)||kr(t,e,n,-o,r)||!r&&kr(t,e,n,-o,!0);return s||(t.cantEdit=!0,D(t.first,0))}function _r(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?z(t,D(e.line-1)):null:n>0&&e.ch==(i||_(t,e.line)).text.length?e.line<t.first+t.size-1?D(e.line+1,0):null:new D(e.line,e.ch+n)}function Lr(t){t.setSelection(D(t.firstLine(),0),D(t.lastLine()),Bs)}function Ir(t,e,n){var i={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(e,n,r,o){e&&(i.from=z(t,e)),n&&(i.to=z(t,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),Tt(t,"beforeChange",t,i),t.cm&&Tt(t.cm,"beforeChange",t.cm,i),i.canceled?null:{from:i.from,to:i.to,text:i.text,origin:i.origin}}function Mr(t,e,n){if(t.cm){if(!t.cm.curOp)return di(t.cm,Mr)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(It(t,"beforeChange")||t.cm&&It(t.cm,"beforeChange"))||(e=Ir(t,e,!0))){var i=Xs&&!n&&et(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)Ar(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else Ar(t,e)}}function Ar(t,e){if(1!=e.text.length||""!=e.text[0]||0!=P(e.from,e.to)){var n=Bi(t,e);rr(t,e,n,t.cm?t.cm.curOp.id:NaN),Rr(t,e,n,$(t,e));var i=[];Ji(t,function(t,n){n||-1!=p(i,t.history)||(Wr(t.history,e),i.push(t.history)),Rr(t,e,null,$(t,e))})}}function Er(t,e,n){if(!t.cm||!t.cm.state.suppressEdits||n){for(var i,r=t.history,o=t.sel,s="undo"==e?r.done:r.undone,a="undo"==e?r.undone:r.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=s.length){for(r.lastOrigin=r.lastSelOrigin=null;i=s.pop(),i.ranges;){if(ar(i,a),n&&!i.equals(t.sel))return void wr(t,i,{clearRedo:!1});o=i}var u=[];ar(o,a),a.push({changes:u,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var c=It(t,"beforeChange")||t.cm&&It(t.cm,"beforeChange"),h=i.changes.length-1;h>=0;--h){var f=function(n){var r=i.changes[n];if(r.origin=e,c&&!Ir(t,r,!1))return s.length=0,{};u.push(er(t,r));var o=n?Bi(t,r):m(s);Rr(t,r,o,hr(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Vi(r)});var a=[];Ji(t,function(t,e){e||-1!=p(a,t.history)||(Wr(t.history,r),a.push(t.history)),Rr(t,r,null,hr(t,r))})}(h);if(f)return f.v}}}}function Nr(t,e){if(0!=e&&(t.first+=e,t.sel=new _a(v(t.sel.ranges,function(t){return new La(D(t.anchor.line+e,t.anchor.ch),D(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){gi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;i<n.viewTo;i++)bi(t.cm,i,"gutter")}}function Rr(t,e,n,i){if(t.cm&&!t.cm.curOp)return di(t.cm,Rr)(t,e,n,i);if(e.to.line<t.first)return void Nr(t,e.text.length-1-(e.to.line-e.from.line));if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var r=e.text.length-1-(t.first-e.from.line);Nr(t,r),e={from:D(t.first,0),to:D(e.to.line+r,e.to.ch),text:[m(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:D(o,_(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=L(t,e.from,e.to),n||(n=Bi(t,e)),t.cm?Dr(t.cm,e,i):Xi(t,e,i),xr(t,n,Bs)}}function Dr(t,e,n){var i=t.doc,r=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=A(ht(_(i,o.line))),i.iter(l,s.line+1,function(t){if(t==r.maxLine)return a=!0,!0})),i.sel.contains(e.from,e.to)>-1&&Lt(t),Xi(i,e,n,Cn(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=yt(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0)),re(i,o.line),Ci(t,400);var u=e.text.length-(s.line-o.line)-1;e.full?gi(t):o.line!=s.line||1!=e.text.length||Yi(t.doc,e)?gi(t,o.line,s.line+1,u):bi(t,o.line,"text");var c=It(t,"changes"),h=It(t,"change");if(h||c){var p={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};h&&we(t,"change",t,p),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(p)}t.display.selForContextMenu=null}function Pr(t,e,n,i,r){if(i||(i=n),P(i,n)<0){var o;o=[i,n],n=o[0],i=o[1]}"string"==typeof e&&(e=t.splitLines(e)),Mr(t,{from:n,to:i,text:e,origin:r})}function jr(t,e,n,i){n<t.line?t.line+=i:e<t.line&&(t.line=e,t.ch=0)}function Fr(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r],s=!0;if(o.ranges){o.copied||(o=t[r]=o.deepCopy(),o.copied=!0);for(var a=0;a<o.ranges.length;a++)jr(o.ranges[a].anchor,e,n,i),jr(o.ranges[a].head,e,n,i)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=D(u.from.line+i,u.from.ch),u.to=D(u.to.line+i,u.to.ch);else if(e<=u.to.line){s=!1;break}}s||(t.splice(0,r+1),r=0)}}}function Wr(t,e){var n=e.from.line,i=e.to.line,r=e.text.length-(i-n)-1;Fr(t.done,n,i,r),Fr(t.undone,n,i,r)}function Hr(t,e,n,i){var r=e,o=e;return"number"==typeof e?o=_(t,V(t,e)):r=A(e),null==r?null:(i(o,r)&&t.cm&&bi(t.cm,r,n),o)}function Vr(t){var e=this;this.lines=t,this.parent=null;for(var n=0,i=0;i<t.length;++i)t[i].parent=e,n+=t[i].height;this.height=n}function zr(t){var e=this;this.children=t;for(var n=0,i=0,r=0;r<t.length;++r){var o=t[r];n+=o.chunkSize(),i+=o.height,o.parent=e}this.size=n,this.height=i,this.parent=null}function Br(t,e,n){bt(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Un(t,n)}function qr(t,e,n,i){var r=new Ia(t,n,i),o=t.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),Hr(t,e,"widget",function(e){var n=e.widgets||(e.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length-1,Math.max(0,r.insertAt)),0,r),r.line=e,o&&!vt(t,e)){var i=bt(e)<t.scrollTop;M(e,e.height+Re(r)),i&&Un(o,r.height),o.curOp.forceUpdate=!0}return!0}),we(o,"lineWidgetAdded",o,r,"number"==typeof e?e:A(e)),r}function Kr(t,e,n,i,o){if(i&&i.shared)return Ur(t,e,n,i,o);if(t.cm&&!t.cm.curOp)return di(t.cm,Kr)(t,e,n,i,o);var s=new Aa(t,o),a=P(e,n);if(i&&c(i,s,!1),a>0||0==a&&!1!==s.clearWhenEmpty)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=r("span",[s.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(ct(t,e.line,e,n,s)||e.line!=n.line&&ct(t,n.line,e,n,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");U()}s.addToHistory&&rr(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var l,u=e.line,h=t.cm;if(t.iter(u,n.line+1,function(t){h&&s.collapsed&&!h.options.lineWrapping&&ht(t)==h.display.maxLine&&(l=!0),s.collapsed&&u!=e.line&&M(t,0),J(t,new G(s,u==e.line?e.ch:null,u==n.line?n.ch:null)),++u}),s.collapsed&&t.iter(e.line,n.line+1,function(e){vt(t,e)&&M(e,0)}),s.clearOnEnter&&ta(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(K(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),s.collapsed&&(s.id=++Ma,s.atomic=!0),h){if(l&&(h.curOp.updateMaxLine=!0),s.collapsed)gi(h,e.line,n.line+1);else if(s.className||s.title||s.startStyle||s.endStyle||s.css)for(var p=e.line;p<=n.line;p++)bi(h,p,"text");s.atomic&&Cr(h.doc),we(h,"markerAdded",h,s)}return s}function Ur(t,e,n,i,r){i=c(i),i.shared=!1;var o=[Kr(t,e,n,i,r)],s=o[0],a=i.widgetNode;return Ji(t,function(t){a&&(i.widgetNode=a.cloneNode(!0)),o.push(Kr(t,z(t,e),z(t,n),i,r));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;s=m(o)}),new Ea(o,s)}function Gr(t){return t.findMarks(D(t.first,0),t.clipPos(D(t.lastLine())),function(t){return t.parent})}function Yr(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=i.find(),o=t.clipPos(r.from),s=t.clipPos(r.to);if(P(o,s)){var a=Kr(t,o,s,i.primary,i.primary.type);i.markers.push(a),a.parent=i}}}function Xr(t){for(var e=0;e<t.length;e++)!function(e){var n=t[e],i=[n.primary.doc];Ji(n.primary.doc,function(t){return i.push(t)});for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==p(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}}(e)}function Jr(t){var e=this;if($r(e),!_t(e,t)&&!De(e.display,t)){At(t),gs&&(Da=+new Date);var n=kn(e,t,!0),i=t.dataTransfer.files;if(n&&!e.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),s=0,a=0;a<r;++a)!function(t,i){if(!e.options.allowDropFileTypes||-1!=p(e.options.allowDropFileTypes,t.type)){var a=new FileReader;a.onload=di(e,function(){var t=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),o[i]=t,++s==r){n=z(e.doc,n);var l={from:n,to:n,text:e.doc.splitLines(o.join(e.doc.lineSeparator())),origin:"paste"};Mr(e.doc,l),yr(e.doc,Hi(n,Vi(l)))}}),a.readAsText(t)}}(i[a],a);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var l=t.dataTransfer.getData("Text");if(l){var u;if(e.state.draggingText&&!e.state.draggingText.copy&&(u=e.listSelections()),xr(e.doc,Hi(n,n)),u)for(var c=0;c<u.length;++c)Pr(e.doc,"",u[c].anchor,u[c].head,"drag");e.replaceSelection(l,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Zr(t,e){if(gs&&(!t.state.draggingText||+new Date-Da<100))return void Rt(e);if(!_t(t,e)&&!De(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!Cs)){var n=i("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ss&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),Ss&&n.parentNode.removeChild(n)}}function Qr(t,e){var r=kn(t,e);if(r){var o=document.createDocumentFragment();In(t,r,o),t.display.dragCursor||(t.display.dragCursor=i("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),n(t.display.dragCursor,o)}}function $r(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function to(t){if(document.getElementsByClassName)for(var e=document.getElementsByClassName("CodeMirror"),n=0;n<e.length;n++){var i=e[n].CodeMirror;i&&t(i)}}function eo(){Pa||(no(),Pa=!0)}function no(){var t;ta(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,to(io)},100))}),ta(window,"blur",function(){return to(Pn)})}function io(t){var e=t.display;e.lastWrapHeight==e.wrapper.clientHeight&&e.lastWrapWidth==e.wrapper.clientWidth||(e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize())}function ro(t){var e=t.split(/-(?!$)/);t=e[e.length-1];for(var n,i,r,o,s=0;s<e.length-1;s++){var a=e[s];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return n&&(t="Alt-"+t),i&&(t="Ctrl-"+t),o&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function oo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete t[n];continue}for(var r=v(n.split(" "),ro),o=0;o<r.length;o++){var s=void 0,a=void 0;o==r.length-1?(a=r.join(" "),s=i):(a=r.slice(0,o+1).join(" "),s="...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[n]}for(var u in e)t[u]=e[u];return t}function so(t,e,n,i){e=co(e);var r=e.call?e.call(t,i):e[t];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return so(t,e.fallthrough,n,i);for(var o=0;o<e.fallthrough.length;o++){var s=so(t,e.fallthrough[o],n,i);if(s)return s}}}function ao(t){var e="string"==typeof t?t:ja[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function lo(t,e,n){var i=t;return e.altKey&&"Alt"!=i&&(t="Alt-"+t),(Rs?e.metaKey:e.ctrlKey)&&"Ctrl"!=i&&(t="Ctrl-"+t),(Rs?e.ctrlKey:e.metaKey)&&"Cmd"!=i&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=i&&(t="Shift-"+t),t}function uo(t,e){if(Ss&&34==t.keyCode&&t.char)return!1;var n=ja[t.keyCode];return null!=n&&!t.altGraphKey&&lo(n,t,e)}function co(t){return"string"==typeof t?Va[t]:t}function ho(t,e){for(var n=t.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=e(n[r]);i.length&&P(o.from,m(i).to)<=0;){var s=i.pop();if(P(s.from,o.from)<0){o.from=s.from;break}}i.push(o)}fi(t,function(){for(var e=i.length-1;e>=0;e--)Pr(t.doc,"",i[e].from,i[e].to,"+delete");Gn(t)})}function po(t,e,n){var i=O(t.text,e+n,n);return i<0||i>t.text.length?null:i}function fo(t,e,n){var i=po(t,e.ch,n);return null==i?null:new D(e.line,i,n<0?"after":"before")}function mo(t,e,n,i,r){if(t){var o=Ct(n,e.doc.direction);if(o){var s,a=r<0?m(o):o[0],l=r<0==(1==a.level),u=l?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var c=Ge(e,n);s=r<0?n.text.length-1:0;var h=Ye(e,c,s).top;s=k(function(t){return Ye(e,c,t).top==h},r<0==(1==a.level)?a.from:a.to-1,s),"before"==u&&(s=po(n,s,1))}else s=r<0?a.to:a.from;return new D(i,s,u)}}return new D(i,r<0?n.text.length:0,r<0?"before":"after")}function vo(t,e,n,i){var r=Ct(e,t.doc.direction);if(!r)return fo(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=St(r,n.ch,n.sticky),s=r[o];if("ltr"==t.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from<n.ch))return fo(e,n,i);var a,l=function(t,n){return po(e,t instanceof D?t.ch:t,n)},u=function(n){return t.options.lineWrapping?(a=a||Ge(t,e),dn(t,e,a,n)):{begin:0,end:e.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var h=1==s.level==i<0,p=l(n,h?1:-1);if(null!=p&&(h?p<=s.to&&p<=c.end:p>=s.from&&p>=c.begin)){var f=h?"before":"after";return new D(n.line,p,f)}}var d=function(t,e,i){for(var o=function(t,e){return e?new D(n.line,l(t,1),"before"):new D(n.line,t,"after")};t>=0&&t<r.length;t+=e){var s=r[t],a=e>0==(1!=s.level),u=a?i.begin:l(i.end,-1);if(s.from<=u&&u<s.to)return o(u,a);if(u=a?s.from:l(s.to,-1),i.begin<=u&&u<i.end)return o(u,a)}},m=d(o+i,i,c);if(m)return m;var v=i>0?c.end:l(c.begin,-1);return null==v||i>0&&v==e.text.length||!(m=d(i>0?0:r.length-1,i,u(v)))?null:m}function go(t,e){var n=_(t.doc,e),i=ht(n);return i!=n&&(e=A(i)),mo(!0,t,i,e,1)}function bo(t,e){var n=_(t.doc,e),i=pt(n);return i!=n&&(e=A(i)),mo(!0,t,n,e,-1)}function yo(t,e){var n=go(t,e.line),i=_(t.doc,n.line),r=Ct(i,t.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),s=e.line==n.line&&e.ch<=o&&e.ch;return D(n.line,s?0:o,n.sticky)}return n}function wo(t,e,n){if("string"==typeof e&&!(e=za[e]))return!1;t.display.input.ensurePolled();var i=t.display.shift,r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),r=e(t)!=zs}finally{t.display.shift=i,t.state.suppressEdits=!1}return r}function xo(t,e,n){for(var i=0;i<t.state.keyMaps.length;i++){var r=so(e,t.state.keyMaps[i],n,t);if(r)return r}return t.options.extraKeys&&so(e,t.options.extraKeys,n,t)||so(e,t.options.keyMap,n,t)}function So(t,e,n,i){var r=t.state.keySeq;if(r){if(ao(e))return"handled";Ba.set(50,function(){t.state.keySeq==r&&(t.state.keySeq=null,t.display.input.reset())}),e=r+" "+e}var o=xo(t,e,i);return"multi"==o&&(t.state.keySeq=e),"handled"==o&&we(t,"keyHandled",t,e,n),"handled"!=o&&"multi"!=o||(At(n),En(t)),r&&!o&&/\'$/.test(e)?(At(n),!0):!!o}function Co(t,e){var n=uo(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?So(t,"Shift-"+n,e,function(e){return wo(t,e,!0)})||So(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return wo(t,e)}):So(t,n,e,function(e){return wo(t,e)}))}function Oo(t,e,n){return So(t,"'"+n+"'",e,function(e){return wo(t,e,!0)})}function ko(t){var e=this;if(e.curOp.focus=s(),!_t(e,t)){gs&&bs<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var i=Co(e,t);Ss&&(qa=i?n:null,!i&&88==n&&!ra&&(Is?t.metaKey:t.ctrlKey)&&e.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||To(e)}}function To(t){function e(t){18!=t.keyCode&&t.altKey||(Ps(n,"CodeMirror-crosshair"),kt(document,"keyup",e),kt(document,"mouseover",e))}var n=t.display.lineDiv;a(n,"CodeMirror-crosshair"),ta(document,"keyup",e),ta(document,"mouseover",e)}function _o(t){16==t.keyCode&&(this.doc.sel.shift=!1),_t(this,t)}function Lo(t){var e=this;if(!(De(e.display,t)||_t(e,t)||t.ctrlKey&&!t.altKey||Is&&t.metaKey)){var n=t.keyCode,i=t.charCode;if(Ss&&n==qa)return qa=null,void At(t);if(!Ss||t.which&&!(t.which<10)||!Co(e,t)){var r=String.fromCharCode(null==i?n:i);"\b"!=r&&(Oo(e,t,r)||e.display.input.onKeyPress(t))}}}function Io(t,e){var n=+new Date;return Ga&&Ga.compare(n,t,e)?(Ua=Ga=null,"triple"):Ua&&Ua.compare(n,t,e)?(Ga=new Ka(n,t,e),Ua=null,"double"):(Ua=new Ka(n,t,e),Ga=null,"single")}function Mo(t){var e=this,n=e.display;if(!(_t(e,t)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=t.shiftKey,De(n,t))return void(ys||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!Wo(e,t)){var i=kn(e,t),r=Pt(t),o=i?Io(i,r):"single";window.focus(),1==r&&e.state.selectingText&&e.state.selectingText(t),i&&Ao(e,r,i,o,t)||(1==r?i?No(e,i,o,t):Dt(t)==n.scroller&&At(t):2==r?(i&&dr(e.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(Ds?Ho(e,t):Rn(e)))}}}function Ao(t,e,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),o=(1==e?"Left":2==e?"Middle":"Right")+o,So(t,lo(o,r),r,function(e){if("string"==typeof e&&(e=za[e]),!e)return!1;var i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i=e(t,n)!=zs}finally{t.state.suppressEdits=!1}return i})}function Eo(t,e,n){var i=t.getOption("configureMouse"),r=i?i(t,e,n):{};if(null==r.unit){var o=Ms?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==r.extend||t.doc.extend)&&(r.extend=t.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=Is?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(Is?n.altKey:n.ctrlKey)),r}function No(t,e,n,i){gs?setTimeout(u(Nn,t),0):t.curOp.focus=s();var r,o=Eo(t,n,i),a=t.doc.sel;t.options.dragDrop&&ea&&!t.isReadOnly()&&"single"==n&&(r=a.contains(e))>-1&&(P((r=a.ranges[r]).from(),e)<0||e.xRel>0)&&(P(r.to(),e)>0||e.xRel<0)?Ro(t,i,e,o):Po(t,i,e,o)}function Ro(t,e,n,i){var r=t.display,o=!1,s=di(t,function(e){ys&&(r.scroller.draggable=!1),t.state.draggingText=!1,kt(document,"mouseup",s),kt(document,"mousemove",a),kt(r.scroller,"dragstart",l),kt(r.scroller,"drop",s),o||(At(e),i.addNew||dr(t.doc,n,null,null,i.extend),ys||gs&&9==bs?setTimeout(function(){document.body.focus(),r.input.focus()},20):r.input.focus())}),a=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},l=function(){return o=!0};ys&&(r.scroller.draggable=!0),t.state.draggingText=s,s.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),ta(document,"mouseup",s),ta(document,"mousemove",a),ta(r.scroller,"dragstart",l),ta(r.scroller,"drop",s),Rn(t),setTimeout(function(){return r.input.focus()},20)}function Do(t,e,n){if("char"==n)return new La(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new La(D(e.line,0),z(t.doc,D(e.line+1,0)));var i=n(t,e);return new La(i.from,i.to)}function Po(t,e,n,i){function r(e){if(0!=P(g,e))if(g=e,"rectangle"==i.unit){for(var r=[],o=t.options.tabSize,s=h(_(u,n.line).text,n.ch,o),a=h(_(u,e.line).text,e.ch,o),l=Math.min(s,a),m=Math.max(s,a),v=Math.min(n.line,e.line),b=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=b;v++){var y=_(u,v).text,w=f(y,l,o);l==m?r.push(new La(D(v,w),D(v,w))):y.length>w&&r.push(new La(D(v,w),D(v,f(y,m,o))))}r.length||r.push(new La(n,n)),wr(u,Wi(d.ranges.slice(0,p).concat(r),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var x,S=c,C=Do(t,e,i.unit),O=S.anchor;P(C.anchor,O)>0?(x=C.head,O=H(S.from(),C.anchor)):(x=C.anchor,O=W(S.to(),C.head));var k=d.ranges.slice(0);k[p]=jo(t,new La(z(u,O),x)),wr(u,Wi(k,p),qs)}}function o(e){var n=++y,a=kn(t,e,!0,"rectangle"==i.unit);if(a)if(0!=P(a,g)){t.curOp.focus=s(),r(a);var c=Wn(l,u);(a.line>=c.to||a.line<c.from)&&setTimeout(di(t,function(){y==n&&o(e)}),150)}else{var h=e.clientY<b.top?-20:e.clientY>b.bottom?20:0;h&&setTimeout(di(t,function(){y==n&&(l.scroller.scrollTop+=h,o(e))}),50)}}function a(e){t.state.selectingText=!1,y=1/0,At(e),l.input.focus(),kt(document,"mousemove",w),kt(document,"mouseup",x),u.history.lastSelOrigin=null}var l=t.display,u=t.doc;At(e);var c,p,d=u.sel,m=d.ranges;if(i.addNew&&!i.extend?(p=u.sel.contains(n),c=p>-1?m[p]:new La(n,n)):(c=u.sel.primary(),p=u.sel.primIndex),"rectangle"==i.unit)i.addNew||(c=new La(n,n)),n=kn(t,e,!0,!0),p=-1;else{var v=Do(t,n,i.unit);c=i.extend?fr(c,v.anchor,v.head,i.extend):v}i.addNew?-1==p?(p=m.length,wr(u,Wi(m.concat([c]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"char"==i.unit&&!i.extend?(wr(u,Wi(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),d=u.sel):vr(u,p,c,qs):(p=0,wr(u,new _a([c],0),qs),d=u.sel);var g=n,b=l.wrapper.getBoundingClientRect(),y=0,w=di(t,function(t){Pt(t)?o(t):a(t)}),x=di(t,a);t.state.selectingText=x,ta(document,"mousemove",w),ta(document,"mouseup",x)}function jo(t,e){var n=e.anchor,i=e.head,r=_(t.doc,n.line);if(0==P(n,i)&&n.sticky==i.sticky)return e;var o=Ct(r);if(!o)return e;var s=St(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==o.length)return e;var u;if(i.line!=n.line)u=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=St(o,i.ch,i.sticky),h=c-s||(i.ch-n.ch)*(1==a.level?-1:1);u=c==l-1||c==l?h<0:h>0}var p=o[l+(u?-1:0)],f=u==(1==p.level),d=f?p.from:p.to,m=f?"after":"before";return n.ch==d&&n.sticky==m?e:new La(new D(n.line,d,m),i)}function Fo(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(e){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&At(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!It(t,n))return Nt(e);o-=a.top-s.viewOffset;for(var l=0;l<t.options.gutters.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=r){return Tt(t,n,t,E(t.doc,o),t.options.gutters[l],e),Nt(e)}}}function Wo(t,e){return Fo(t,e,"gutterClick",!0)}function Ho(t,e){De(t.display,e)||Vo(t,e)||_t(t,e,"contextmenu")||t.display.input.onContextMenu(e)}function Vo(t,e){return!!It(t,"gutterContextMenu")&&Fo(t,e,"gutterContextMenu",!1)}function zo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),en(t)}function Bo(t){Ri(t),gi(t),Hn(t)}function qo(t,e,n){if(!e!=!(n&&n!=Ya)){var i=t.display.dragFunctions,r=e?ta:kt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Ko(t){t.options.lineWrapping?(a(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(Ps(t.display.wrapper,"CodeMirror-wrap"),wt(t)),On(t),gi(t),en(t),setTimeout(function(){return ni(t)},100)}function Uo(t,e){var n=this;if(!(this instanceof Uo))return new Uo(t,e);this.options=e=e?c(e):{},c(Xa,e,!1),Di(e);var i=e.value;"string"==typeof i&&(i=new Ra(i,e.mode,null,e.lineSeparator,e.direction)),this.doc=i;var r=new Uo.inputStyles[e.inputStyle](this),o=this.display=new T(t,i,r);o.wrapper.CodeMirror=this,Ri(this),zo(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ri(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Fs,keySeq:null,specialChars:null},e.autofocus&&!Ls&&o.input.focus(),gs&&bs<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Go(this),eo(),oi(this),this.curOp.forceUpdate=!0,Zi(this,i),e.autofocus&&!Ls||this.hasFocus()?setTimeout(u(Dn,this),20):Pn(this);for(var s in Ja)Ja.hasOwnProperty(s)&&Ja[s](n,e[s],Ya);Vn(this),e.finishInit&&e.finishInit(this);for(var a=0;a<Za.length;++a)Za[a](n);si(this),ys&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Go(t){function e(){r.activeTouch&&(o=setTimeout(function(){return r.activeTouch=null},1e3),s=r.activeTouch,s.end=+new Date)}function n(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function i(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}var r=t.display;ta(r.scroller,"mousedown",di(t,Mo)),gs&&bs<11?ta(r.scroller,"dblclick",di(t,function(e){if(!_t(t,e)){var n=kn(t,e);if(n&&!Wo(t,e)&&!De(t.display,e)){At(e);var i=t.findWordAt(n);dr(t.doc,i.anchor,i.head)}}})):ta(r.scroller,"dblclick",function(e){return _t(t,e)||At(e)}),Ds||ta(r.scroller,"contextmenu",function(e){return Ho(t,e)});var o,s={end:0};ta(r.scroller,"touchstart",function(e){if(!_t(t,e)&&!n(e)&&!Wo(t,e)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-s.end<=300?s:null},1==e.touches.length&&(r.activeTouch.left=e.touches[0].pageX,r.activeTouch.top=e.touches[0].pageY)}}),ta(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),ta(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!De(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var s,a=t.coordsChar(r.activeTouch,"page");s=!o.prev||i(o,o.prev)?new La(a,a):!o.prev.prev||i(o,o.prev.prev)?t.findWordAt(a):new La(D(a.line,0),z(t.doc,D(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),At(n)}e()}),ta(r.scroller,"touchcancel",e),ta(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Qn(t,r.scroller.scrollTop),ti(t,r.scroller.scrollLeft,!0),Tt(t,"scroll",t))}),ta(r.scroller,"mousewheel",function(e){return Fi(t,e)}),ta(r.scroller,"DOMMouseScroll",function(e){return Fi(t,e)}),ta(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(e){_t(t,e)||Rt(e)},over:function(e){_t(t,e)||(Qr(t,e),Rt(e))},start:function(e){return Zr(t,e)},drop:di(t,Jr),leave:function(e){_t(t,e)||$r(t)}};var a=r.input.getField();ta(a,"keyup",function(e){return _o.call(t,e)}),ta(a,"keydown",di(t,ko)),ta(a,"keypress",di(t,Lo)),ta(a,"focus",function(e){return Dn(t,e)}),ta(a,"blur",function(e){return Pn(t,e)})}function Yo(t,e,n,i){var r,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=Jt(t,e).state:n="prev");var s=t.options.tabSize,a=_(o,e),l=h(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(i||/\S/.test(a.text)){if("smart"==n&&((u=o.mode.indent(r,a.text.slice(c.length),a.text))==zs||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?h(_(o,e-1).text,null,s):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var p="",f=0;if(t.options.indentWithTabs)for(var m=Math.floor(u/s);m;--m)f+=s,p+="\t";if(f<u&&(p+=d(u-f)),p!=c)return Pr(o,p,D(e,0),D(e,c.length),"+input"),a.stateAfter=null,!0;for(var v=0;v<o.sel.ranges.length;v++){var g=o.sel.ranges[v];if(g.head.line==e&&g.head.ch<c.length){var b=D(e,c.length);vr(o,v,new La(b,b));break}}}function Xo(t){Qa=t}function Jo(t,e,n,i,r){var o=t.doc;t.display.shift=!1,i||(i=o.sel);var s=t.state.pasteIncoming||"paste"==r,a=na(e),l=null;if(s&&i.ranges.length>1)if(Qa&&Qa.text.join("\n")==e){if(i.ranges.length%Qa.text.length==0){l=[];for(var u=0;u<Qa.text.length;u++)l.push(o.splitLines(Qa.text[u]))}}else a.length==i.ranges.length&&t.options.pasteLinesPerSelection&&(l=v(a,function(t){return[t]}));for(var c,h=i.ranges.length-1;h>=0;h--){var p=i.ranges[h],f=p.from(),d=p.to();p.empty()&&(n&&n>0?f=D(f.line,f.ch-n):t.state.overwrite&&!s?d=D(d.line,Math.min(_(o,d.line).text.length,d.ch+m(a).length)):Qa&&Qa.lineWise&&Qa.text.join("\n")==e&&(f=d=D(f.line,0))),c=t.curOp.updateInput;var g={from:f,to:d,text:l?l[h%l.length]:a,origin:r||(s?"paste":t.state.cutIncoming?"cut":"+input")};Mr(t.doc,g),we(t,"inputRead",t,g)}e&&!s&&Qo(t,e),Gn(t),t.curOp.updateInput=c,t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=!1}function Zo(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||fi(e,function(){return Jo(e,n,0,null,"paste")}),!0}function Qo(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(e.indexOf(o.electricChars.charAt(a))>-1){s=Yo(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(_(t.doc,r.head.line).text.slice(0,r.head.ch))&&(s=Yo(t,r.head.line,"smart"));s&&we(t,"electricInput",t,r.head.line)}}}function $o(t){for(var e=[],n=[],i=0;i<t.doc.sel.ranges.length;i++){var r=t.doc.sel.ranges[i].head.line,o={anchor:D(r,0),head:D(r+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function ts(t,e){t.setAttribute("autocorrect","off"),t.setAttribute("autocapitalize","off"),t.setAttribute("spellcheck",!!e)}function es(){var t=i("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=i("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ys?t.style.width="1000px":t.setAttribute("wrap","off"),Ts&&(t.style.border="1px solid black"),ts(t),e}function ns(t,e,n,i,r){function o(){var i=e.line+n;return!(i<t.first||i>=t.first+t.size)&&(e=new D(i,e.ch,e.sticky),u=_(t,i))}function s(i){var s;if(null==(s=r?vo(t.cm,u,e,n):fo(u,e,n))){if(i||!o())return!1;e=mo(r,t.cm,u,e.line,n)}else e=s;return!0}var a=e,l=n,u=_(t,e.line);if("char"==i)s();else if("column"==i)s(!0);else if("word"==i||"group"==i)for(var c=null,h="group"==i,p=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||s(!f);f=!1){var d=u.text.charAt(e.ch)||"\n",m=x(d,p)?"w":h&&"\n"==d?"n":!h||/\s/.test(d)?null:"p";if(!h||f||m||(m="s"),c&&c!=m){n<0&&(n=1,s(),e.sticky="after");break}if(m&&(c=m),n>0&&!s(!f))break}var v=Tr(t,e,a,l,!0);return j(a,v)&&(v.hitSide=!0),v}function is(t,e,n,i){var r,o=t.doc,s=e.left;if("page"==i){var a=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(a-.5*yn(t.display),3);r=(n>0?e.bottom:e.top)+n*l}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(var u;u=pn(t,s,r),u.outside;){if(n<0?r<=0:r>=o.height){u.hitSide=!0;break}r+=5*n}return u}function rs(t,e){var n=Ue(t,e.line);if(!n||n.hidden)return null;var i=_(t.doc,e.line),r=Be(n,i,e.line),o=Ct(i,t.doc.direction),s="left";if(o){s=St(o,e.ch)%2?"right":"left"}var a=Xe(r.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function os(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function ss(t,e){return e&&(t.bad=!0),t}function as(t,e,n,i,r){function o(t){return function(e){return e.id==t}}function s(){c&&(u+=h,c=!1)}function a(t){t&&(s(),u+=t)}function l(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(null!=n)return void a(n||e.textContent.replace(/\u200b/g,""));var u,p=e.getAttribute("cm-marker");if(p){var f=t.findMarks(D(i,0),D(r+1,0),o(+p));return void(f.length&&(u=f[0].find(0))&&a(L(t.doc,u.from,u.to).join(h)))}if("false"==e.getAttribute("contenteditable"))return;var d=/^(pre|div|p)$/i.test(e.nodeName);d&&s();for(var m=0;m<e.childNodes.length;m++)l(e.childNodes[m]);d&&(c=!0)}else 3==e.nodeType&&a(e.nodeValue)}for(var u="",c=!1,h=t.doc.lineSeparator();l(e),e!=n;)e=e.nextSibling;return u}function ls(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return ss(t.clipPos(D(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r<t.display.view.length;r++){var o=t.display.view[r];if(o.node==i)return us(o,e,n)}}function us(t,e,n){function i(e,n,i){for(var r=-1;r<(h?h.length:0);r++)for(var o=r<0?c.map:h[r],s=0;s<o.length;s+=3){var a=o[s+2];if(a==e||a==n){var l=A(r<0?t.line:t.rest[r]),u=o[s]+i;return(i<0||a!=e)&&(u=o[s+(i?1:0)]),D(l,u)}}}var r=t.text.firstChild,s=!1;if(!e||!o(r,e))return ss(D(A(t.line),0),!0);if(e==r&&(s=!0,e=r.childNodes[n],n=0,!e)){var a=t.rest?m(t.rest):t.line;return ss(D(A(a),a.text.length),s)}var l=3==e.nodeType?e:null,u=e;for(l||1!=e.childNodes.length||3!=e.firstChild.nodeType||(l=e.firstChild,n&&(n=l.nodeValue.length));u.parentNode!=r;)u=u.parentNode;var c=t.measure,h=c.maps,p=i(l,u,n);if(p)return ss(p,s);for(var f=u.nextSibling,d=l?l.nodeValue.length-n:0;f;f=f.nextSibling){if(p=i(f,f.firstChild,0))return ss(D(p.line,p.ch-d),s);d+=f.textContent.length}for(var v=u.previousSibling,g=n;v;v=v.previousSibling){if(p=i(v,v.firstChild,-1))return ss(D(p.line,p.ch+g),s);g+=v.textContent.length}}function cs(t,e){function n(){t.value=l.getValue()}if(e=e?c(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var i=s();e.autofocus=i==t||null!=t.getAttribute("autofocus")&&i==document.body}var r;if(t.form&&(ta(t.form,"submit",n),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var a=o.submit=function(){n(),o.submit=r,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(kt(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=r))}},t.style.display="none";var l=Uo(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return l}var hs=navigator.userAgent,ps=navigator.platform,fs=/gecko\/\d/i.test(hs),ds=/MSIE \d/.test(hs),ms=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(hs),vs=/Edge\/(\d+)/.exec(hs),gs=ds||ms||vs,bs=gs&&(ds?document.documentMode||6:+(vs||ms)[1]),ys=!vs&&/WebKit\//.test(hs),ws=ys&&/Qt\/\d+\.\d+/.test(hs),xs=!vs&&/Chrome\//.test(hs),Ss=/Opera\//.test(hs),Cs=/Apple Computer/.test(navigator.vendor),Os=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(hs),ks=/PhantomJS/.test(hs),Ts=!vs&&/AppleWebKit/.test(hs)&&/Mobile\/\w+/.test(hs),_s=/Android/.test(hs),Ls=Ts||_s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(hs),Is=Ts||/Mac/.test(ps),Ms=/\bCrOS\b/.test(hs),As=/win/i.test(ps),Es=Ss&&hs.match(/Version\/(\d*\.\d*)/);Es&&(Es=Number(Es[1])),Es&&Es>=15&&(Ss=!1,ys=!0);var Ns,Rs=Is&&(ws||Ss&&(null==Es||Es<12.11)),Ds=fs||gs&&bs>=9,Ps=function(e,n){var i=e.className,r=t(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(o?r[1]+o:"")}};Ns=document.createRange?function(t,e,n,i){var r=document.createRange();return r.setEnd(i||t,n),r.setStart(t,e),r}:function(t,e,n){var i=document.body.createTextRange();try{i.moveToElementText(t.parentNode)}catch(t){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i};var js=function(t){t.select()};Ts?js=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:gs&&(js=function(t){try{t.select()}catch(t){}});var Fs=function(){this.id=null};Fs.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var Ws,Hs,Vs=30,zs={toString:function(){return"CodeMirror.Pass"}},Bs={scroll:!1},qs={origin:"*mouse"},Ks={origin:"+move"},Us=[""],Gs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ys=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Xs=!1,Js=!1,Zs=null,Qs=function(){function t(t){return t<=247?n.charAt(t):1424<=t&&t<=1524?"R":1536<=t&&t<=1785?i.charAt(t-1536):1774<=t&&t<=2220?"r":8192<=t&&t<=8203?"w":8204==t?"b":"L"}function e(t,e,n){this.level=t,this.from=e,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,s=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;return function(n,i){var u="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var c=n.length,h=[],p=0;p<c;++p)h.push(t(n.charCodeAt(p)));for(var f=0,d=u;f<c;++f){var v=h[f];"m"==v?h[f]=d:d=v}for(var g=0,b=u;g<c;++g){var y=h[g];"1"==y&&"r"==b?h[g]="n":s.test(y)&&(b=y,"r"==y&&(h[g]="R"))}for(var w=1,x=h[0];w<c-1;++w){var S=h[w];"+"==S&&"1"==x&&"1"==h[w+1]?h[w]="1":","!=S||x!=h[w+1]||"1"!=x&&"n"!=x||(h[w]=x),x=S}for(var C=0;C<c;++C){var O=h[C];if(","==O)h[C]="N";else if("%"==O){var k=void 0;for(k=C+1;k<c&&"%"==h[k];++k);for(var T=C&&"!"==h[C-1]||k<c&&"1"==h[k]?"1":"N",_=C;_<k;++_)h[_]=T;C=k-1}}for(var L=0,I=u;L<c;++L){var M=h[L];"L"==I&&"1"==M?h[L]="L":s.test(M)&&(I=M)}for(var A=0;A<c;++A)if(o.test(h[A])){var E=void 0;for(E=A+1;E<c&&o.test(h[E]);++E);for(var N="L"==(A?h[A-1]:u),R="L"==(E<c?h[E]:u),D=N==R?N?"L":"R":u,P=A;P<E;++P)h[P]=D;A=E-1}for(var j,F=[],W=0;W<c;)if(a.test(h[W])){var H=W;for(++W;W<c&&a.test(h[W]);++W);F.push(new e(0,H,W))}else{var V=W,z=F.length;for(++W;W<c&&"L"!=h[W];++W);for(var B=V;B<W;)if(l.test(h[B])){V<B&&F.splice(z,0,new e(1,V,B));var q=B;for(++B;B<W&&l.test(h[B]);++B);F.splice(z,0,new e(2,q,B)),V=B}else++B;V<W&&F.splice(z,0,new e(1,V,W))}return"ltr"==i&&(1==F[0].level&&(j=n.match(/^\s+/))&&(F[0].from=j[0].length,F.unshift(new e(0,0,j[0].length))),1==m(F).level&&(j=n.match(/\s+$/))&&(m(F).to-=j[0].length,F.push(new e(0,c-j[0].length,c)))),"rtl"==i?F.reverse():F}}(),$s=[],ta=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var i=t._handlers||(t._handlers={});i[e]=(i[e]||$s).concat(n)}},ea=function(){if(gs&&bs<9)return!1;var t=i("div");return"draggable"in t||"dragDrop"in t}(),na=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},ia=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},ra=function(){var t=i("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),oa=null,sa={},aa={},la={},ua=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};ua.prototype.eol=function(){return this.pos>=this.string.length},ua.prototype.sol=function(){return this.pos==this.lineStart},ua.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ua.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ua.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},ua.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},ua.prototype.eatSpace=function(){for(var t=this,e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++t.pos;return this.pos>e},ua.prototype.skipToEnd=function(){this.pos=this.string.length},ua.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},ua.prototype.backUp=function(t){this.pos-=t},ua.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=h(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)},ua.prototype.indentation=function(){return h(this.string,null,this.tabSize)-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)},ua.prototype.match=function(t,e,n){if("string"!=typeof t){var i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},ua.prototype.current=function(){return this.string.slice(this.start,this.pos)},ua.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},ua.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},ua.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ca=function(t,e){this.state=t,this.lookAhead=e},ha=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};ha.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ha.prototype.baseToken=function(t){var e=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)e.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ha.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ha.fromSaved=function(t,e,n){return e instanceof ca?new ha(t,Kt(t.mode,e.state),n,e.lookAhead):new ha(t,Kt(t.mode,e),n)},ha.prototype.save=function(t){var e=!1!==t?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ca(e,this.maxLookAhead):e};var pa=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n},fa=function(t,e,n){this.text=t,it(this,e),this.height=n?n(this):1};fa.prototype.lineNo=function(){return A(this)},Mt(fa);var da,ma={},va={},ga=null,ba=null,ya={left:0,right:0,top:0,bottom:0},wa=function(t,e,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");t(r),t(o),ta(r,"scroll",function(){r.clientHeight&&e(r.scrollTop,"vertical")}),ta(o,"scroll",function(){o.clientWidth&&e(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,gs&&bs<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wa.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},wa.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wa.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wa.prototype.zeroWidthHack=function(){var t=Is&&!Os?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fs,this.disableVert=new Fs},wa.prototype.enableZeroWidthBar=function(t,e,n){function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)}t.style.pointerEvents="auto",e.set(1e3,i)},wa.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var xa=function(){};xa.prototype.update=function(){return{bottom:0,right:0}},xa.prototype.setScrollLeft=function(){},xa.prototype.setScrollTop=function(){},xa.prototype.clear=function(){};var Sa={native:wa,null:xa},Ca=0,Oa=function(t,e,n){var i=t.display;this.viewport=e,this.visible=Wn(i,t.doc,e),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=He(t),this.force=n,this.dims=xn(t),this.events=[]};Oa.prototype.signal=function(t,e){It(t,e)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var t=this,e=0;e<this.events.length;e++)Tt.apply(null,t.events[e])};var ka=0,Ta=null;gs?Ta=-.53:fs?Ta=15:xs?Ta=-.7:Cs&&(Ta=-1/3);var _a=function(t,e){this.ranges=t,this.primIndex=e};_a.prototype.primary=function(){return this.ranges[this.primIndex]},_a.prototype.equals=function(t){var e=this;if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var i=e.ranges[n],r=t.ranges[n];if(!j(i.anchor,r.anchor)||!j(i.head,r.head))return!1}return!0},_a.prototype.deepCopy=function(){for(var t=this,e=[],n=0;n<this.ranges.length;n++)e[n]=new La(F(t.ranges[n].anchor),F(t.ranges[n].head));return new _a(e,this.primIndex)},_a.prototype.somethingSelected=function(){for(var t=this,e=0;e<this.ranges.length;e++)if(!t.ranges[e].empty())return!0;return!1},_a.prototype.contains=function(t,e){var n=this;e||(e=t);for(var i=0;i<this.ranges.length;i++){var r=n.ranges[i];if(P(e,r.from())>=0&&P(t,r.to())<=0)return i}return-1};var La=function(t,e){this.anchor=t,this.head=e};La.prototype.from=function(){return H(this.anchor,this.head)},La.prototype.to=function(){return W(this.anchor,this.head)},La.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Vr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=this,i=t,r=t+e;i<r;++i){var o=n.lines[i];n.height-=o.height,se(o),we(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){var i=this;this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=i},iterN:function(t,e,n){for(var i=this,r=t+e;t<r;++t)if(n(i.lines[t]))return!0}},zr.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){var n=this;this.size-=e;for(var i=0;i<this.children.length;++i){var r=n.children[i],o=r.chunkSize();if(t<o){var s=Math.min(e,o-t),a=r.height;if(r.removeInner(t,s),n.height-=a-r.height,o==s&&(n.children.splice(i--,1),r.parent=null),0==(e-=s))break;t=0}else t-=o}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof Vr))){var l=[];this.collapse(l),this.children=[new Vr(l)],this.children[0].parent=this}},collapse:function(t){for(var e=this,n=0;n<this.children.length;++n)e.children[n].collapse(t)},insertInner:function(t,e,n){var i=this;this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=i.children[r],s=o.chunkSize();if(t<=s){if(o.insertInner(t,e,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,l=a;l<o.lines.length;){var u=new Vr(o.lines.slice(l,l+=25));o.height-=u.height,i.children.splice(++r,0,u),u.parent=i}o.lines=o.lines.slice(0,a),i.maybeSpill()}break}t-=s}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),n=new zr(e);if(t.parent){t.size-=n.size,t.height-=n.height;var i=p(t.parent.children,t);t.parent.children.splice(i+1,0,n)}else{var r=new zr(t.children);r.parent=t,t.children=[r,n],t=r}n.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=this,r=0;r<this.children.length;++r){var o=i.children[r],s=o.chunkSize();if(t<s){var a=Math.min(e,s-t);if(o.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=s}}};var Ia=function(t,e,n){var i=this;if(n)for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r]);this.doc=t,this.node=e};Ia.prototype.clear=function(){var t=this,e=this.doc.cm,n=this.line.widgets,i=this.line,r=A(i);if(null!=r&&n){for(var o=0;o<n.length;++o)n[o]==t&&n.splice(o--,1);n.length||(i.widgets=null);var s=Re(this);M(i,Math.max(0,i.height-s)),e&&(fi(e,function(){Br(e,i,-s),bi(e,r,"widget")}),we(e,"lineWidgetCleared",e,this,r))}},Ia.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=Re(this)-e;r&&(M(i,i.height+r),n&&fi(n,function(){n.curOp.forceUpdate=!0,Br(n,i,r),we(n,"lineWidgetChanged",n,t,A(i))}))},Mt(Ia);var Ma=0,Aa=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Ma};Aa.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&oi(e),It(this,"clear")){var i=this.find();i&&we(this,"clear",i.from,i.to)}for(var r=null,o=null,s=0;s<this.lines.length;++s){var a=t.lines[s],l=Y(a.markedSpans,t);e&&!t.collapsed?bi(e,A(a),"text"):e&&(null!=l.to&&(o=A(a)),null!=l.from&&(r=A(a))),a.markedSpans=X(a.markedSpans,l),null==l.from&&t.collapsed&&!vt(t.doc,a)&&e&&M(a,yn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=ht(t.lines[u]),h=yt(c);h>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&gi(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Cr(e.doc)),e&&we(e,"markerCleared",e,this,r,o),n&&si(e),this.parent&&this.parent.clear()}},Aa.prototype.find=function(t,e){var n=this;null==t&&"bookmark"==this.type&&(t=1);for(var i,r,o=0;o<this.lines.length;++o){var s=n.lines[o],a=Y(s.markedSpans,n);if(null!=a.from&&(i=D(e?s:A(s),a.from),-1==t))return i;if(null!=a.to&&(r=D(e?s:A(s),a.to),1==t))return r}return i&&{from:i,to:r}},Aa.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,i=this.doc.cm;e&&i&&fi(i,function(){var r=e.line,o=A(e.line),s=Ue(i,o);if(s&&($e(s),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!vt(n.doc,r)&&null!=n.height){var a=n.height;n.height=null;var l=Re(n)-a;l&&M(r,r.height+l)}we(i,"markerChanged",i,t)})},Aa.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=p(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Aa.prototype.detachLine=function(t){if(this.lines.splice(p(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},Mt(Aa);var Ea=function(t,e){var n=this;this.markers=t,this.primary=e;for(var i=0;i<t.length;++i)t[i].parent=n};Ea.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)t.markers[e].clear();we(this,"clear")}},Ea.prototype.find=function(t,e){return this.primary.find(t,e)},Mt(Ea);var Na=0,Ra=function(t,e,n,i,r){if(!(this instanceof Ra))return new Ra(t,e,n,i,r);null==n&&(n=0),zr.call(this,[new Vr([new fa("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=D(n,0);this.sel=Hi(o),this.history=new tr(null),this.id=++Na,this.modeOption=e,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Xi(this,{from:o,to:o,text:t}),wr(this,Hi(o),Bs)};Ra.prototype=y(zr.prototype,{constructor:Ra,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,i=0;i<e.length;++i)n+=e[i].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=I(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:vi(function(t){var e=D(this.first,0),n=this.first+this.size-1;Mr(this,{from:e,to:D(n,_(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yn(this.cm,0,0),wr(this,Hi(e),Bs)}),replaceRange:function(t,e,n,i){e=z(this,e),n=n?z(this,n):e,Pr(this,t,e,n,i)},getRange:function(t,e,n){var i=L(this,z(this,t),z(this,e));return!1===n?i:i.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(N(this,t))return _(this,t)},getLineNumber:function(t){return A(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=_(this,t)),ht(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return z(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vi(function(t,e,n){gr(this,z(this,"number"==typeof t?D(t,e||0):t),null,n)}),setSelection:vi(function(t,e,n){gr(this,z(this,t),z(this,e||t),n)}),extendSelection:vi(function(t,e,n){dr(this,z(this,t),e&&z(this,e),n)}),extendSelections:vi(function(t,e){mr(this,q(this,t),e)}),extendSelectionsBy:vi(function(t,e){mr(this,q(this,v(this.sel.ranges,t)),e)}),setSelections:vi(function(t,e,n){var i=this;if(t.length){for(var r=[],o=0;o<t.length;o++)r[o]=new La(z(i,t[o].anchor),z(i,t[o].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),wr(this,Wi(r,e),n)}}),addSelection:vi(function(t,e,n){var i=this.sel.ranges.slice(0);i.push(new La(z(this,t),z(this,e||t))),wr(this,Wi(i,i.length-1),n)}),getSelection:function(t){for(var e,n=this,i=this.sel.ranges,r=0;r<i.length;r++){var o=L(n,i[r].from(),i[r].to());e=e?e.concat(o):o}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=this,n=[],i=this.sel.ranges,r=0;r<i.length;r++){var o=L(e,i[r].from(),i[r].to());!1!==t&&(o=o.join(t||e.lineSeparator())),n[r]=o}return n},replaceSelection:function(t,e,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=t;this.replaceSelections(i,e,n||"+input")},replaceSelections:vi(function(t,e,n){for(var i=this,r=[],o=this.sel,s=0;s<o.ranges.length;s++){var a=o.ranges[s];r[s]={from:a.from(),to:a.to(),text:i.splitLines(t[s]),origin:n}}for(var l=e&&"end"!=e&&Ki(this,r,e),u=r.length-1;u>=0;u--)Mr(i,r[u]);l?yr(this,l):this.cm&&Gn(this.cm)}),undo:vi(function(){Er(this,"undo")}),redo:vi(function(){Er(this,"redo")}),undoSelection:vi(function(){Er(this,"undo",!0)}),redoSelection:vi(function(){Er(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i<t.done.length;i++)t.done[i].ranges||++e;for(var r=0;r<t.undone.length;r++)t.undone[r].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){this.history=new tr(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:pr(this.history.done),undone:pr(this.history.undone)}},setHistory:function(t){var e=this.history=new tr(this.history.maxGeneration);e.done=pr(t.done.slice(0),null,!0),e.undone=pr(t.undone.slice(0),null,!0)},setGutterMarker:vi(function(t,e,n){return Hr(this,t,"gutter",function(t){var i=t.gutterMarkers||(t.gutterMarkers={});return i[e]=n,!n&&S(i)&&(t.gutterMarkers=null),!0})}),clearGutter:vi(function(t){var e=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[t]&&Hr(e,n,"gutter",function(){return n.gutterMarkers[t]=null,S(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!N(this,t))return null;if(e=t,!(t=_(this,t)))return null}else if(null==(e=A(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:vi(function(e,n,i){return Hr(this,e,"gutter"==n?"gutter":"class",function(e){var r="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(e[r]){if(t(i).test(e[r]))return!1;e[r]+=" "+i}else e[r]=i;return!0})}),removeLineClass:vi(function(e,n,i){return Hr(this,e,"gutter"==n?"gutter":"class",function(e){var r="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=e[r];if(!o)return!1;if(null==i)e[r]=null;else{var s=o.match(t(i));if(!s)return!1;var a=s.index+s[0].length;e[r]=o.slice(0,s.index)+(s.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0})}),addLineWidget:vi(function(t,e,n){return qr(this,t,e,n)}),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Kr(this,z(this,t),z(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return t=z(this,t),Kr(this,t,t,n,"bookmark")},findMarksAt:function(t){t=z(this,t);var e=[],n=_(this,t.line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=t.ch)&&(null==r.to||r.to>=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=z(this,t),e=z(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&r==t.line&&t.ch>=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&t.push(n[i].marker)}),t},posFromIndex:function(t){var e,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+i;if(o>t)return e=t,!0;t-=o,++n}),z(this,D(n,e))},indexFromPos:function(t){t=z(this,t);var e=t.ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+n}),e},copy:function(t){var e=new Ra(I(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var i=new Ra(I(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:t.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Yr(i,Gr(this)),i},unlinkDoc:function(t){var e=this;if(t instanceof Uo&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var i=e.linked[n];if(i.doc==t){e.linked.splice(n,1),t.unlinkDoc(e),Xr(Gr(e));break}}if(t.history==this.history){var r=[t.id];Ji(t,function(t){return r.push(t.id)},!0),t.history=new tr(null),t.history.done=pr(this.history.done,r),t.history.undone=pr(this.history.undone,r)}},iterLinkedDocs:function(t){Ji(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):na(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:vi(function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&$i(this.cm))})}),Ra.prototype.eachLine=Ra.prototype.iter;for(var Da=0,Pa=!1,ja={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fa=0;Fa<10;Fa++)ja[Fa+48]=ja[Fa+96]=String(Fa);for(var Wa=65;Wa<=90;Wa++)ja[Wa]=String.fromCharCode(Wa);for(var Ha=1;Ha<=12;Ha++)ja[Ha+111]=ja[Ha+63235]="F"+Ha;var Va={};Va.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Va.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Va.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Va.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Va.default=Is?Va.macDefault:Va.pcDefault;var za={selectAll:Lr,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Bs)},killLine:function(t){return ho(t,function(e){if(e.empty()){var n=_(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:D(e.head.line+1,0)}:{from:e.head,to:D(e.head.line,n)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return ho(t,function(e){return{from:D(e.from().line,0),to:z(t.doc,D(e.to().line+1,0))}})},delLineLeft:function(t){return ho(t,function(t){return{from:D(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(t){return ho(t,function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}})},delWrappedLineRight:function(t){return ho(t,function(e){var n=t.charCoords(e.head,"div").top+5,i=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:i}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(D(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(D(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return go(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return yo(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return bo(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")},Ks)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")},Ks)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5,i=t.coordsChar({left:0,top:n},"div");return i.ch<t.getLine(i.line).search(/\S/)?yo(t,e.head):i},Ks)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),i=t.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),s=h(t.getLine(o.line),o.ch,i);e.push(d(i-s%i))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return fi(t,function(){for(var e=t.listSelections(),n=[],i=0;i<e.length;i++)if(e[i].empty()){var r=e[i].head,o=_(t.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new D(r.line,r.ch-1)),r.ch>0)r=new D(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),D(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var s=_(t.doc,r.line-1).text;s&&(r=new D(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),D(r.line-1,s.length-1),r,"+transpose"))}n.push(new La(r,r))}t.setSelections(n)})},newlineAndIndent:function(t){return fi(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i<e.length;i++)t.indentLine(e[i].from().line,null,!0);Gn(t)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}},Ba=new Fs,qa=null,Ka=function(t,e,n){this.time=t,this.pos=e,this.button=n};Ka.prototype.compare=function(t,e,n){return this.time+400>t&&0==P(e,this.pos)&&n==this.button};var Ua,Ga,Ya={toString:function(){return"CodeMirror.Init"}},Xa={},Ja={};Uo.defaults=Xa,Uo.optionHandlers=Ja;var Za=[];Uo.defineInitHook=function(t){return Za.push(t)};var Qa=null,$a=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fs,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$a.prototype.init=function(t){function e(t){if(!_t(r,t)){if(r.somethingSelected())Xo({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=$o(r);Xo({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation(function(){r.setSelections(e.ranges,0,Bs),r.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var n=Qa.text.join("\n");if(t.clipboardData.setData("Text",n),t.clipboardData.getData("Text")==n)return void t.preventDefault()}var s=es(),a=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),a.value=Qa.text.join("\n");var l=document.activeElement;js(a),setTimeout(function(){r.display.lineSpace.removeChild(s),l.focus(),l==o&&i.showPrimarySelection()},50)}}var n=this,i=this,r=i.cm,o=i.div=t.lineDiv;ts(o,r.options.spellcheck),ta(o,"paste",function(t){_t(r,t)||Zo(t,r)||bs<=11&&setTimeout(di(r,function(){return n.updateFromDOM()}),20)}),ta(o,"compositionstart",function(t){n.composing={data:t.data,done:!1}}),ta(o,"compositionupdate",function(t){n.composing||(n.composing={data:t.data,done:!1})}),ta(o,"compositionend",function(t){n.composing&&(t.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ta(o,"touchstart",function(){return i.forceCompositionEnd()}),ta(o,"input",function(){n.composing||n.readFromDOMSoon()}),ta(o,"copy",e),ta(o,"cut",e)},$a.prototype.prepareSelection=function(){var t=Ln(this.cm,!1);return t.focus=this.cm.state.focused,t},$a.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},$a.prototype.showPrimarySelection=function(){var t=window.getSelection(),e=this.cm,n=e.doc.sel.primary(),i=n.from(),r=n.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||r.line<e.display.viewFrom)return void t.removeAllRanges();var o=ls(e,t.anchorNode,t.anchorOffset),s=ls(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=P(H(o,s),i)||0!=P(W(o,s),r)){var a=e.display.view,l=i.line>=e.display.viewFrom&&rs(e,i)||{node:a[0].measure.map[2],offset:0},u=r.line<e.display.viewTo&&rs(e,r);if(!u){var c=a[a.length-1].measure,h=c.maps?c.maps[c.maps.length-1]:c.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(!l||!u)return void t.removeAllRanges();var p,f=t.rangeCount&&t.getRangeAt(0);try{p=Ns(l.node,l.offset,u.offset,u.node)}catch(t){}p&&(!fs&&e.state.focused?(t.collapse(l.node,l.offset),p.collapsed||(t.removeAllRanges(),t.addRange(p))):(t.removeAllRanges(),t.addRange(p)),f&&null==t.anchorNode?t.addRange(f):fs&&this.startGracePeriod()),this.rememberSelection()}},$a.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},$a.prototype.showMultipleSelections=function(t){n(this.cm.display.cursorDiv,t.cursors),n(this.cm.display.selectionDiv,t.selection)},$a.prototype.rememberSelection=function(){var t=window.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},$a.prototype.selectionInEditor=function(){var t=window.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return o(this.div,e)},$a.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}var e=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,t)},$a.prototype.selectionChanged=function(){var t=window.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=window.getSelection(),e=this.cm;if(_s&&xs&&this.cm.options.gutters.length&&os(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ls(e,t.anchorNode,t.anchorOffset),i=ls(e,t.focusNode,t.focusOffset);n&&i&&fi(e,function(){wr(e.doc,Hi(n,i),Bs),(n.bad||i.bad)&&(e.curOp.selectionChanged=!0)})}}},$a.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,e=t.display,n=t.doc.sel.primary(),i=n.from(),r=n.to();if(0==i.ch&&i.line>t.firstLine()&&(i=D(i.line-1,_(t.doc,i.line-1).length)),r.ch==_(t.doc,r.line).text.length&&r.line<t.lastLine()&&(r=D(r.line+1,0)),i.line<e.viewFrom||r.line>e.viewTo-1)return!1;var o,s,a;i.line==e.viewFrom||0==(o=Tn(t,i.line))?(s=A(e.view[0].line),a=e.view[0].node):(s=A(e.view[o].line),a=e.view[o-1].node.nextSibling);var l,u,c=Tn(t,r.line);if(c==e.view.length-1?(l=e.viewTo-1,u=e.lineDiv.lastChild):(l=A(e.view[c+1].line)-1,u=e.view[c+1].node.previousSibling),!a)return!1;for(var h=t.doc.splitLines(as(t,a,u,s,l)),p=L(t.doc,D(s,0),D(l,_(t.doc,l).text.length));h.length>1&&p.length>1;)if(m(h)==m(p))h.pop(),p.pop(),l--;else{if(h[0]!=p[0])break;h.shift(),p.shift(),s++}for(var f=0,d=0,v=h[0],g=p[0],b=Math.min(v.length,g.length);f<b&&v.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=m(h),w=m(p),x=Math.min(y.length-(1==h.length?f:0),w.length-(1==p.length?f:0));d<x&&y.charCodeAt(y.length-d-1)==w.charCodeAt(w.length-d-1);)++d;if(1==h.length&&1==p.length&&s==i.line)for(;f&&f>i.ch&&y.charCodeAt(y.length-d-1)==w.charCodeAt(w.length-d-1);)f--,d++;h[h.length-1]=y.slice(0,y.length-d).replace(/^\u200b+/,""),h[0]=h[0].slice(f).replace(/\u200b+$/,"");var S=D(s,f),C=D(l,p.length?m(p).length-d:0);return h.length>1||h[0]||P(S,C)?(Pr(t.doc,h,S,C,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},$a.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||fi(this.cm,function(){return gi(t.cm)})},$a.prototype.setUneditable=function(t){t.contentEditable="false"},$a.prototype.onKeyPress=function(t){0!=t.charCode&&(t.preventDefault(),this.cm.isReadOnly()||di(this.cm,Jo)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},$a.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var tl=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Fs,this.hasSelection=!1,this.composing=null};tl.prototype.init=function(t){function e(t){if(!_t(r,t)){if(r.somethingSelected())Xo({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=$o(r);Xo({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,Bs):(i.prevInput="",s.value=e.text.join("\n"),js(s))}"cut"==t.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm,o=this.wrapper=es(),s=this.textarea=o.firstChild;t.wrapper.insertBefore(o,t.wrapper.firstChild),Ts&&(s.style.width="0px"),ta(s,"input",function(){gs&&bs>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),ta(s,"paste",function(t){_t(r,t)||Zo(t,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),ta(s,"cut",e),ta(s,"copy",e),ta(t.scroller,"paste",function(e){De(t,e)||_t(r,e)||(r.state.pasteIncoming=!0,i.focus())}),ta(t.lineSpace,"selectstart",function(e){De(t,e)||At(e)}),ta(s,"compositionstart",function(){var t=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ta(s,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},tl.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=Ln(t);if(t.options.moveInputWithCursor){var r=un(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+s.left-o.left))}return i},tl.prototype.showSelection=function(t){var e=this.cm,i=e.display;n(i.cursorDiv,t.cursors),n(i.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},tl.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&js(this.textarea),gs&&bs>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",gs&&bs>=9&&(this.hasSelection=null))}},tl.prototype.getField=function(){return this.textarea},tl.prototype.supportsTouch=function(){return!1},tl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Ls||s()!=this.textarea))try{this.textarea.focus()}catch(t){}},tl.prototype.blur=function(){this.textarea.blur()},tl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tl.prototype.receivedFocus=function(){this.slowPoll()},tl.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},tl.prototype.fastPoll=function(){function t(){n.poll()||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,t))}var e=!1,n=this;n.pollingFast=!0,n.polling.set(20,t)},tl.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||ia(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(gs&&bs>=9&&this.hasSelection===r||Is&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,a=Math.min(i.length,r.length);s<a&&i.charCodeAt(s)==r.charCodeAt(s);)++s;return fi(e,function(){Jo(e,r.slice(s),i.length-s,null,t.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tl.prototype.onKeyPress=function(){gs&&bs>=9&&(this.hasSelection=null),this.fastPoll()},tl.prototype.onContextMenu=function(t){function e(){if(null!=s.selectionStart){var t=r.somethingSelected(),e="​"+(t?s.value:"");s.value="⇚",s.value=e,i.prevInput=t?"":"​",s.selectionStart=1,s.selectionEnd=e.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=c,s.style.cssText=u,gs&&bs<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=s.selectionStart){(!gs||gs&&bs<9)&&e();var t=0,n=function(){o.selForContextMenu==r.doc.sel&&0==s.selectionStart&&s.selectionEnd>0&&"​"==i.prevInput?di(r,Lr)(r):t++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,s=i.textarea,a=kn(r,t),l=o.scroller.scrollTop;if(a&&!Ss){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(a)&&di(r,wr)(r.doc,Hi(a),Bs);var u=s.style.cssText,c=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var h=i.wrapper.getBoundingClientRect();s.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(gs?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var p;if(ys&&(p=window.scrollY),o.input.focus(),ys&&window.scrollTo(null,p),o.input.reset(),r.somethingSelected()||(s.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),gs&&bs>=9&&e(),Ds){Rt(t);var f=function(){kt(window,"mouseup",f),setTimeout(n,20)};ta(window,"mouseup",f)}else setTimeout(n,50)}},tl.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},tl.prototype.setUneditable=function(){},tl.prototype.needsContentAttribute=!1,function(t){function e(e,i,r,o){t.defaults[e]=i,r&&(n[e]=o?function(t,e,n){n!=Ya&&r(t,e,n)}:r)}var n=t.optionHandlers;t.defineOption=e,t.Init=Ya,e("value","",function(t,e){return t.setValue(e)},!0),e("mode",null,function(t,e){t.doc.modeOption=e,Ui(t)},!0),e("indentUnit",2,Ui,!0),e("indentWithTabs",!1),e("smartIndent",!0),e("tabSize",4,function(t){Gi(t),en(t),gi(t)},!0),e("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter(function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(D(i,o))}i++});for(var r=n.length-1;r>=0;r--)Pr(t.doc,e,n[r],D(n[r].line,n[r].ch+e.length))}}),e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ya&&t.refresh()}),e("specialCharPlaceholder",ue,function(t){return t.refresh()},!0),e("electricChars",!0),e("inputStyle",Ls?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),e("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),e("rtlMoveVisually",!As),e("wholeLineUpdateBefore",!0),e("theme","default",function(t){zo(t),Bo(t)},!0),e("keyMap","default",function(t,e,n){var i=co(e),r=n!=Ya&&co(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)}),e("extraKeys",null),e("configureMouse",null),e("lineWrapping",!1,Ko,!0),e("gutters",[],function(t){Di(t.options),Bo(t)},!0),e("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?Sn(t.display)+"px":"0",t.refresh()},!0),e("coverGutterNextToScrollbar",!1,function(t){return ni(t)},!0),e("scrollbarStyle","native",function(t){ri(t),ni(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),e("lineNumbers",!1,function(t){Di(t.options),Bo(t)},!0),e("firstLineNumber",1,Bo,!0),e("lineNumberFormatter",function(t){return t},Bo,!0),e("showCursorWhenSelecting",!1,_n,!0),e("resetSelectionOnContextMenu",!0),e("lineWiseCopyCut",!0),e("pasteLinesPerSelection",!0),e("readOnly",!1,function(t,e){"nocursor"==e&&(Pn(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),e("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),e("dragDrop",!0,qo),e("allowDropFileTypes",null),e("cursorBlinkRate",530),e("cursorScrollMargin",0),e("cursorHeight",1,_n,!0),e("singleCursorHeightPerLine",!0,_n,!0),e("workTime",100),e("workDelay",100),e("flattenSpans",!0,Gi,!0),e("addModeClass",!1,Gi,!0),e("pollInterval",100),e("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),e("historyEventDelay",1250),e("viewportMargin",10,function(t){return t.refresh()},!0),e("maxHighlightLength",1e4,Gi,!0),e("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),e("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),e("autofocus",null),e("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0)}(Uo),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&di(this,e[t])(this,n,r),Tt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](co(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:mi(function(e,n){var i=e.token?e:t.getMode(this.options,e);if(i.startState)throw new Error("Overlays may not be stateful.");g(this.state.overlays,{mode:i,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},function(t){return t.priority}),this.state.modeGen++,gi(this)}),removeOverlay:mi(function(t){for(var e=this,n=this.state.overlays,i=0;i<n.length;++i){var r=n[i].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return n.splice(i,1),e.state.modeGen++,void gi(e)}}),indentLine:mi(function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),N(this.doc,t)&&Yo(this,t,e,n)}),indentSelection:mi(function(t){for(var e=this,n=this.doc.sel.ranges,i=-1,r=0;r<n.length;r++){var o=n[r];if(o.empty())o.head.line>i&&(Yo(e,o.head.line,t,!0),i=o.head.line,r==e.doc.sel.primIndex&&Gn(e));else{var s=o.from(),a=o.to(),l=Math.max(i,s.line);i=Math.min(e.lastLine(),a.line-(a.ch?0:1))+1;for(var u=l;u<i;++u)Yo(e,u,t);var c=e.doc.sel.ranges;0==s.ch&&n.length==c.length&&c[r].from().ch>0&&vr(e.doc,r,new La(s,c[r].to()),Bs)}}}),getTokenAt:function(t,e){return te(this,t,e)},getLineTokens:function(t,e){return te(this,D(t),e,!0)},getTokenTypeAt:function(t){t=z(this.doc,t);var e,n=Xt(this,_(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=i+r>>1;if((s?n[2*s-1]:0)>=o)r=s;else{if(!(n[2*s+1]<o)){e=n[2*s+2];break}i=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var i=this,r=[];if(!n.hasOwnProperty(e))return r;var o=n[e],s=this.getModeAt(t);if("string"==typeof s[e])o[s[e]]&&r.push(o[s[e]]);else if(s[e])for(var a=0;a<s[e].length;a++){var l=o[s[e][a]];l&&r.push(l)}else s.helperType&&o[s.helperType]?r.push(o[s.helperType]):o[s.name]&&r.push(o[s.name]);for(var u=0;u<o._global.length;u++){var c=o._global[u];c.pred(s,i)&&-1==p(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(t,e){var n=this.doc;return t=V(n,null==t?n.first+n.size-1:t),Jt(this,t+1,e).state},cursorCoords:function(t,e){var n,i=this.doc.sel.primary();return n=null==t?i.head:"object"==typeof t?z(this.doc,t):t?i.from():i.to(),un(this,n,e||"page")},charCoords:function(t,e){return ln(this,z(this.doc,t),e||"page")},coordsChar:function(t,e){return t=an(this,t,e||"page"),pn(this,t.left,t.top)},lineAtHeight:function(t,e){return t=an(this,{top:t,left:0},e||"page").top,E(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var i,r=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,r=!0),i=_(this.doc,t)}else i=t;return sn(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-bt(i):0)},defaultTextHeight:function(){return yn(this.display)},defaultCharWidth:function(){return wn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o=this.display;t=un(this,z(this.doc,t));var s=t.bottom,a=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==i)s=t.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?s=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(s=t.bottom),a+e.offsetWidth>u&&(a=u-e.offsetWidth)}e.style.top=s+"px",e.style.left=e.style.right="","right"==r?(a=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?a=0:"middle"==r&&(a=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=a+"px"),n&&qn(this,{left:a,top:s,right:a+e.offsetWidth,bottom:s+e.offsetHeight})},triggerOnKeyDown:mi(ko),triggerOnKeyPress:mi(Lo),triggerOnKeyUp:_o,triggerOnMouseDown:mi(Mo),execCommand:function(t){if(za.hasOwnProperty(t))return za[t].call(null,this)},triggerElectric:mi(function(t){Qo(this,t)}),findPosH:function(t,e,n,i){var r=this,o=1;e<0&&(o=-1,e=-e);for(var s=z(this.doc,t),a=0;a<e&&(s=ns(r.doc,s,o,n,i),!s.hitSide);++a);return s},moveH:mi(function(t,e){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?ns(n.doc,i.head,t,e,n.options.rtlMoveVisually):t<0?i.from():i.to()},Ks)}),deleteH:mi(function(t,e){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):ho(this,function(n){var r=ns(i,n.head,t,e,!1);return t<0?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(t,e,n,i){var r=this,o=1,s=i;e<0&&(o=-1,e=-e);for(var a=z(this.doc,t),l=0;l<e;++l){var u=un(r,a,"div");if(null==s?s=u.left:u.left=s,a=is(r,u,o,n),a.hitSide)break}return a},moveV:mi(function(t,e){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(s){if(o)return t<0?s.from():s.to();var a=un(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),r.push(a.left);var l=is(n,a,t,e);return"page"==e&&s==i.sel.primary()&&Un(n,ln(n,l,"div").top-a.top),l},Ks),r.length)for(var s=0;s<i.sel.ranges.length;s++)i.sel.ranges[s].goalColumn=r[s]}),findWordAt:function(t){var e=this.doc,n=_(e,t.line).text,i=t.ch,r=t.ch;if(n){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=n.length||!i?++r:--i;for(var s=n.charAt(i),a=x(s,o)?function(t){return x(t,o)}:/\s/.test(s)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!x(t)};i>0&&a(n.charAt(i-1));)--i;for(;r<n.length&&a(n.charAt(r));)++r}return new La(D(t.line,i),D(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?a(this.display.cursorDiv,"CodeMirror-overwrite"):Ps(this.display.cursorDiv,"CodeMirror-overwrite"),Tt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==s()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:mi(function(t,e){Yn(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-We(this)-this.display.barHeight,width:t.scrollWidth-We(this)-this.display.barWidth,clientHeight:Ve(this),clientWidth:He(this)}},scrollIntoView:mi(function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:D(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?Xn(this,t):Zn(this,t.from,t.to,t.margin)}),setSize:mi(function(t,e){var n=this,i=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=i(t)),null!=e&&(this.display.wrapper.style.height=i(e)),this.options.lineWrapping&&tn(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){bi(n,r,"widget");break}++r}),this.curOp.forceUpdate=!0,Tt(this,"refresh",this)}),operation:function(t){return fi(this,t)},startOperation:function(){return oi(this)},endOperation:function(){return si(this)},refresh:mi(function(){var t=this.display.cachedTextHeight;gi(this),this.curOp.forceUpdate=!0,en(this),Yn(this,this.doc.scrollLeft,this.doc.scrollTop),Ei(this),(null==t||Math.abs(t-yn(this.display))>.5)&&On(this),Tt(this,"refresh",this)}),swapDoc:mi(function(t){var e=this.doc;return e.cm=null,Zi(this,t),en(this),this.display.input.reset(),Yn(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,we(this,"swapDoc",this,e),e}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Mt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}(Uo);var el="iter insert remove copy getEditor constructor".split(" ");for(var nl in Ra.prototype)Ra.prototype.hasOwnProperty(nl)&&p(el,nl)<0&&(Uo.prototype[nl]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ra.prototype[nl]));return Mt(Ra),Uo.inputStyles={textarea:tl,contenteditable:$a},Uo.defineMode=function(t){Uo.defaults.mode||"null"==t||(Uo.defaults.mode=t),Ht.apply(this,arguments)},Uo.defineMIME=Vt,Uo.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Uo.defineMIME("text/plain","null"),Uo.defineExtension=function(t,e){Uo.prototype[t]=e},Uo.defineDocExtension=function(t,e){Ra.prototype[t]=e},Uo.fromTextArea=cs,function(t){t.off=kt,t.on=ta,t.wheelEventPixels=ji,t.Doc=Ra,t.splitLines=na,t.countColumn=h,t.findColumn=f,t.isWordChar=w,t.Pass=zs,t.signal=Tt,t.Line=fa,t.changeEnd=Vi,t.scrollbarModel=Sa,t.Pos=D,t.cmpPos=P,t.modes=sa,t.mimeModes=aa,t.resolveMode=zt,t.getMode=Bt,t.modeExtensions=la,t.extendMode=qt,t.copyState=Kt,t.startState=Gt,t.innerMode=Ut,t.commands=za,t.keyMap=Va,t.keyName=uo,t.isModifierKey=ao,t.lookupKey=so,t.normalizeKeyMap=oo,t.StringStream=ua,t.SharedTextMarker=Ea,t.TextMarker=Aa,t.LineWidget=Ia,t.e_preventDefault=At,t.e_stopPropagation=Et,t.e_stop=Rt,t.addClass=a,t.contains=o,t.rmClass=Ps,t.keyNames=ja}(Uo),Uo.version="5.31.0",Uo})},okgN:function(t,e,n){"use strict";var i=n("bKpL"),r=n("pOTC");i.Observable.if=r._if},olOS:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=r.async),o.timestamp(t)(this)}var r=n("IhB/"),o=n("xK8X");e.timestamp=i},olrH:function(t,e,n){"use strict";function i(t,e){return r.concatMapTo(t,e)(this)}var r=n("0mJJ");e.concatMapTo=i},p2gU:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n("nhnq");e.BootstrapModalModule=i.BootstrapModalModule,e.DialogComponent=i.DialogComponent,e.DialogService=i.DialogService},p2y2:function(t,e,n){"use strict";function i(t,e){for(var n=0,i=e.length;n<i;n++)for(var r=e[n],o=Object.getOwnPropertyNames(r.prototype),s=0,a=o.length;s<a;s++){var l=o[s];t.prototype[l]=r.prototype[l]}}e.applyMixins=i},p3bn:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Obns");i.Observable.prototype.debounce=r.debounce},p3u8:function(t,e,n){"use strict";var i=n("bKpL"),r=n("BbOI");i.Observable.bindNodeCallback=r.bindNodeCallback},p4do:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var i=t;return e.lift(new a(i,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.withLatestFrom=i;var a=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.observables,this.project))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.observables=n,this.project=i,this.toRespond=[];var r=n.length;this.values=new Array(r);for(var o=0;o<r;o++)this.toRespond.push(o);for(var o=0;o<r;o++){var a=n[o];this.add(s.subscribeToResult(this,a,a,o))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.OuterSubscriber)},pHO4:function(t,e,n){"use strict";var i=n("bKpL"),r=n("0nG5");i.Observable.prototype.min=r.min},pOTC:function(t,e,n){"use strict";var i=n("S08L");e._if=i.IfObservable.create},pd7P:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(i||(i={}))},pguX:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new s)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.dematerialize=i;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(o.Subscriber)},pkLr:function(t,e,n){"use strict";var i=n("bKpL"),r=n("PwNK");i.Observable.prototype.audit=r.audit},ptvE:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ki6Z");i.Observable.prototype.exhaust=r.exhaust},"q+5A":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=s.async),t.call(this),this.period=e,this.scheduler=n,(!r.isNumeric(e)||e<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return i(e,t),e.create=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=s.async),new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.subscriber,i=t.period;n.next(e),n.closed||(t.index+=1,this.schedule(t,i))},e.prototype._subscribe=function(t){var n=this.period,i=this.scheduler;t.add(i.schedule(e.dispatch,n,{index:0,subscriber:t,period:n}))},e}(o.Observable);e.IntervalObservable=a},q07K:function(t,e,n){"use strict";var i=n("bKpL"),r=n("8Jh8");i.Observable.prototype.takeUntil=r.takeUntil},qHrI:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),function(n){return n.lift(new o(t,e))}}var r=n("P+lj");e.subscribeOn=i;var o=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new r.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},qIlB:function(t,e,n){"use strict";var i=n("zijX"),r=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function t(e){delete t.instance.tasksByHandle[e]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=function t(){var e=t,n=e.handler,i=e.args;"function"==typeof n?n.apply(void 0,i):new Function(""+n)()};return i.handler=t,i.args=e,i},t.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},t.prototype.createProcessNextTickSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.process.nextTick(e.partiallyApplied(e.runIfPresent,n)),n};return t.instance=this,t},t.prototype.createPostMessageSetImmediate=function(){var t=this.root,e="setImmediate$"+t.Math.random()+"$",n=function n(i){var r=n.instance;i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&r.runIfPresent(+i.data.slice(e.length))};n.instance=this,t.addEventListener("message",n,!1);var i=function t(){var e=t,n=e.messagePrefix,i=e.instance,r=i.addFromSetImmediateArguments(arguments);return i.root.postMessage(n+r,"*"),r};return i.instance=this,i.messagePrefix=e,i},t.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var e=this.tasksByHandle[t];if(e){this.currentlyRunningATask=!0;try{e()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},t.prototype.createMessageChannelSetImmediate=function(){var t=this,e=new this.root.MessageChannel;e.port1.onmessage=function(e){var n=e.data;t.runIfPresent(n)};var n=function t(){var e=t,n=e.channel,i=e.instance,r=i.addFromSetImmediateArguments(arguments);return n.port2.postMessage(r),r};return n.channel=e,n.instance=this,n},t.prototype.createReadyStateChangeSetImmediate=function(){var t=function t(){var e=t.instance,n=e.root,i=n.document,r=i.documentElement,o=e.addFromSetImmediateArguments(arguments),s=i.createElement("script");return s.onreadystatechange=function(){e.runIfPresent(o),s.onreadystatechange=null,r.removeChild(s),s=null},r.appendChild(s),o};return t.instance=this,t},t.prototype.createSetTimeoutSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.setTimeout(e.partiallyApplied(e.runIfPresent,n),0),n};return t.instance=this,t},t}();e.ImmediateDefinition=r,e.Immediate=new r(i.root)},qNQE:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Txt5");i.Observable.prototype.auditTime=r.auditTime},qanz:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.retryWhen=i;var c=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.notifier,this.source))},t}(),h=function(t){function e(e,n,i){t.call(this,e),this.notifier=n,this.source=i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{if(n=new o.Subject,(i=s.tryCatch(this.notifier)(n))===a.errorObject)return t.prototype.error.call(this,a.errorObject.e);r=u.subscribeToResult(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,n=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.errors,a=o.retries,l=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=l,this.source.subscribe(this)},e}(l.OuterSubscriber)},qbcG:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.collapsed=!1}return t}();r.decorators=[{type:i.Directive,args:[{selector:"[ngbCollapse]",exportAs:"ngbCollapse",host:{"[class.collapse]":"true","[class.show]":"!collapsed"}}]}],r.ctorParameters=function(){return[]},r.propDecorators={collapsed:[{type:i.Input,args:["ngbCollapse"]}]}},qbt9:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(i,n,e,new l.TimeoutError))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("T14+"),l=n("0L2s");e.timeout=i;var u=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=n,this.errorInstance=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),c=function(t){function e(e,n,i,r,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=i,this.scheduler=r,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return r(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(a.Subscriber)},qfkx:function(t,e,n){"use strict";function i(){return function(t){return o.multicast(new r.AsyncSubject)(t)}}var r=n("l6Wf"),o=n("P02W");e.publishLast=i},"qm+V":function(t,e,n){"use strict";var i=n("bKpL"),r=n("CE6k");i.Observable.prototype.share=r.share},"r+/7":function(t,e,n){"use strict";var i=n("bKpL"),r=n("THYR");i.Observable.prototype.every=r.every},r2Rd:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("Io40"),o=n("IqVs"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return i(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(r.AsyncAction);e.AnimationFrameAction=s},r6G9:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&a.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new c(t))}}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return 1===t.length&&a.isArray(t[0])&&(t=t[0]),n=t.shift(),new s.FromObservable(n,null).lift(new c(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("OWbQ"),a=n("NSJx"),l=n("yW9Z"),u=n("ktfo");e.onErrorResumeNext=i,e.onErrorResumeNextStatic=r;var c=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.nextSources))},t}(),h=function(t){function e(e,n){t.call(this,e),this.destination=e,this.nextSources=n}return o(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(u.subscribeToResult(this,t)):this.destination.complete()},e}(l.OuterSubscriber)},rAcl:function(t,e,n){"use strict";var i=n("Qv0T");e.pairs=i.PairsObservable.create},rDIt:function(t,e,n){"use strict";function i(t,e,n){return r.tap(t,e,n)(this)}var r=n("4HZJ");e._do=i},raIJ:function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("8Ben"),s=(n.n(o),n("rDIt")),a=(n.n(s),n("zGUx")),l=(n.n(a),n("75Hr")),u=n("c0Tg"),c=n("uJci"),h=n("wM1e"),p=n("0H8/");n.d(e,"a",function(){return v});var f;!function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowDown=40]="ArrowDown"}(f||(f={}));var d={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return v}),multi:!0},m=0,v=function(){function t(t,e,r,o,s,h,p){var f=this;this._elementRef=t,this._viewContainerRef=e,this._renderer=r,this._injector=o,this.selectItem=new i.EventEmitter,this.popupId="ngb-typeahead-"+m++,this._onTouched=function(){},this._onChange=function(t){},this.editable=h.editable,this.focusFirst=h.focusFirst,this.showHint=h.showHint,this._valueChanges=n.i(a.fromEvent)(t.nativeElement,"input",function(t){return t.target.value}),this._popupService=new c.a(u.a,o,e,r,s),this._zoneSubscription=p.onStable.subscribe(function(){f.isPopupOpen()&&n.i(l.a)(f._elementRef.nativeElement,f._windowRef.location.nativeElement,"bottom-left")})}return t.prototype.ngOnInit=function(){var t=this,e=s._do.call(this._valueChanges,function(e){t._userInput=e,t.editable&&t._onChange(e)}),n=o.letProto.call(e,this.ngbTypeahead),i=s._do.call(n,function(){t.editable||t._onChange(void 0)});this._subscription=this._subscribeToUserInput(i)},t.prototype.ngOnDestroy=function(){this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.writeValue=function(t){this._writeInputValue(this._formatItemForInput(t))},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype.dismissPopup=function(){this.isPopupOpen()&&(this._closePopup(),this._writeInputValue(this._userInput))},t.prototype.isPopupOpen=function(){return null!=this._windowRef},t.prototype.handleBlur=function(){this._onTouched()},t.prototype.handleKeyDown=function(t){if(this.isPopupOpen()&&f[n.i(h.d)(t.which)])switch(t.which){case f.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case f.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case f.Enter:case f.Tab:var e=this._windowRef.instance.getActive();n.i(h.h)(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup();break;case f.Escape:t.preventDefault(),this.dismissPopup()}},t.prototype._openPopup=function(){var t=this;this.isPopupOpen()||(this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(function(e){return t._selectResultClosePopup(e)}),this._windowRef.instance.activeChangeEvent.subscribe(function(e){return t.activeDescendant=e}))},t.prototype._closePopup=function(){this._popupService.close(),this._windowRef=null,this.activeDescendant=void 0},t.prototype._selectResult=function(t){var e=!1;this.selectItem.emit({item:t,preventDefault:function(){e=!0}}),e||(this.writeValue(t),this._onChange(t))},t.prototype._selectResultClosePopup=function(t){this._selectResult(t),this._closePopup()},t.prototype._showHint=function(){if(this.showHint){var t=this._userInput.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._userInput.length).toLowerCase()?(this._writeInputValue(this._userInput+e.substr(this._userInput.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._userInput.length,e.length])):this.writeValue(this._windowRef.instance.getActive())}},t.prototype._formatItemForInput=function(t){return t&&this.inputFormatter?this.inputFormatter(t):n.i(h.d)(t)},t.prototype._writeInputValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},t.prototype._subscribeToUserInput=function(t){var e=this;return t.subscribe(function(t){t&&0!==t.length?(e._openPopup(),e._windowRef.instance.focusFirst=e.focusFirst,e._windowRef.instance.results=t,e._windowRef.instance.term=e._elementRef.nativeElement.value,e.resultFormatter&&(e._windowRef.instance.formatter=e.resultFormatter),e.resultTemplate&&(e._windowRef.instance.resultTemplate=e.resultTemplate),e._showHint(),e._windowRef.changeDetectorRef.detectChanges()):e._closePopup()})},t.prototype._unsubscribeFromUserInput=function(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null},t}();v.decorators=[{type:i.Directive,args:[{selector:"input[ngbTypeahead]",host:{"(blur)":"handleBlur()","[class.open]":"isPopupOpen()","(document:click)":"dismissPopup()","(keydown)":"handleKeyDown($event)",autocomplete:"off",autocapitalize:"off",autocorrect:"off",role:"combobox","aria-multiline":"false","[attr.aria-autocomplete]":'showHint ? "both" : "list"',"[attr.aria-activedescendant]":"activeDescendant","[attr.aria-owns]":"isPopupOpen() ? popupId : null","[attr.aria-expanded]":"isPopupOpen()"},providers:[d]}]}],v.ctorParameters=function(){return[{type:i.ElementRef},{type:i.ViewContainerRef},{type:i.Renderer2},{type:i.Injector},{type:i.ComponentFactoryResolver},{type:p.a},{type:i.NgZone}]},v.propDecorators={editable:[{type:i.Input}],focusFirst:[{type:i.Input}],inputFormatter:[{type:i.Input}],ngbTypeahead:[{type:i.Input}],resultFormatter:[{type:i.Input}],resultTemplate:[{type:i.Input}],showHint:[{type:i.Input}],selectItem:[{type:i.Output}]}},rhfi:function(t,e,n){"use strict";function i(){return r.switchMap(o.identity)}var r=n("TupL"),o=n("Yuqz");e.switchAll=i},rp90:function(t,e,n){"use strict";var i=n("bKpL"),r=n("IOeT");i.Observable.prototype.combineAll=r.combineAll},ruZE:function(t,e,n){"use strict";var i=n("r2Rd"),r=n("7Obz");e.animationFrame=new r.AnimationFrameScheduler(i.AnimationFrameAction)},s6AU:function(t,e,n){"use strict";function i(t){return r.takeWhile(t)(this)}var r=n("5x23");e.takeWhile=i},sLwK:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=n("MicL"),l=n("6jp4"),u=function(t){function e(e,n,i){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,r.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):a.isScheduler(n)&&(i=n),a.isScheduler(i)||(i=s.async),this.scheduler=i,this.dueTime=l.isDate(e)?+e-this.scheduler.now():e}return i(e,t),e.create=function(t,n,i){return void 0===t&&(t=0),new e(t,n,i)},e.dispatch=function(t){var e=t.index,n=t.period,i=t.subscriber,r=this;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,r.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,i=n.period,r=n.dueTime;return n.scheduler.schedule(e.dispatch,r,{index:0,period:i,subscriber:t})},e}(o.Observable);e.TimerObservable=u},sSYo:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Fi2k");i.Observable.prototype.windowToggle=r.windowToggle},saEi:function(t,e,n){"use strict";function i(t){return r.publishBehavior(t)(this)}var r=n("ASfG");e.publishBehavior=i},sdK6:function(t,e,n){"use strict";function i(t,e,n,i){return new u.DialogService(t,e,n,i)}var r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n("/oeL"),s=n("qbdv"),a=n("3WPo"),l=n("taw3"),u=n("V672");e.dialogServiceFactory=i;var c=h=function(){function t(){}return t.forRoot=function(t){return{ngModule:h,providers:[{provide:u.DialogServiceConfig,useValue:t},{provide:u.DialogService,useFactory:i,deps:[o.ComponentFactoryResolver,o.ApplicationRef,o.Injector,u.DialogServiceConfig]}]}},t}();c=h=r([o.NgModule({declarations:[a.DialogHolderComponent,l.DialogWrapperComponent],providers:[u.DialogService],imports:[s.CommonModule],entryComponents:[a.DialogHolderComponent,l.DialogWrapperComponent]})],c),e.BootstrapModalModule=c;var h},slZm:function(t,e,n){"use strict";var i=n("fcnB");e.empty=i.EmptyObservable.create},srZQ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("RvTY");i.Observable.prototype.flatMapTo=r.mergeMapTo,i.Observable.prototype.mergeMapTo=r.mergeMapTo},svCP:function(t,e,n){"use strict";var i=n("bKpL"),r=n("tl8U");i.Observable.prototype.retryWhen=r.retryWhen},t8nJ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("8pdA");i.Observable.prototype.bufferTime=r.bufferTime},t9cH:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new u(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("ktfo"),l=n("yW9Z");e.mergeScan=i;var u=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=u;var c=function(t){function e(e,n,i,r){t.call(this,e),this.accumulator=n,this.acc=i,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=o.tryCatch(this.accumulator)(this.acc,t),i=this.destination;n===s.errorObject?i.error(s.errorObject.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(a.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(l.OuterSubscriber);e.MergeScanSubscriber=c},tAjV:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new u(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),l=n("ktfo");e.audit=i;var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=o.tryCatch(this.durationSelector)(t);if(e===s.errorObject)this.destination.error(s.errorObject.e);else{var n=l.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},tBQh:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.delay(t,e)(this)}var r=n("IhB/"),o=n("EUVd");e.delay=i},taw3:function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("/oeL"),s=n("V672"),a=function(){function t(t,e){this.resolver=t,this.dialogService=e}return t.prototype.addComponent=function(t){var e=this.resolver.resolveComponentFactory(t),n=o.ReflectiveInjector.fromResolvedProviders([],this.element.injector),i=e.create(n);return this.element.insert(i.hostView),this.content=i.instance,this.content.wrapper=this,this.content},t.prototype.closeByClickOutside=function(){var t=this,e=this.container.nativeElement;e.querySelector(".modal-content").addEventListener("click",function(t){t.stopPropagation()}),e.addEventListener("click",function(){t.dialogService.removeDialog(t.content)},!1)},t}();i([o.ViewChild("element",{read:o.ViewContainerRef}),r("design:type",o.ViewContainerRef)],a.prototype,"element",void 0),i([o.ViewChild("container"),r("design:type",Object)],a.prototype,"container",void 0),a=i([o.Component({selector:"dialog-wrapper",template:'\n    <div #container class="modal fade" style="display:block !important;" role="dialog">\n        <template #element></template>\n    </div>\n'}),r("design:paramtypes",[o.ComponentFactoryResolver,s.DialogService])],a),e.DialogWrapperComponent=a},tcot:function(t,e,n){"use strict";var i=n("bKpL"),r=n("F/7+");i.Observable.zip=r.zip},tl8U:function(t,e,n){"use strict";function i(t){return r.retryWhen(t)(this)}var r=n("qanz");e.retryWhen=i},tpuU:function(t,e,n){"use strict";function i(t){return r.zipAll(t)(this)}var r=n("IkMW");e.zipAll=i},uGEk:function(t,e,n){"use strict";var i=n("bKpL"),r=n("2UX5");i.Observable.prototype.timeout=r.timeout},uJci:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o});var r=function(){function t(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}return t}(),o=function(){function t(t,e,n,i,r){this._injector=e,this._viewContainerRef=n,this._renderer=i,this._windowFactory=r.resolveComponentFactory(t)}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._windowFactory,0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null))},t.prototype._getContentRef=function(t,e){if(t){if(t instanceof i.TemplateRef){var n=this._viewContainerRef.createEmbeddedView(t,e);return new r([n.rootNodes],n)}return new r([[this._renderer.createText(""+t)]])}return new r([])},t}()},uYJe:function(t,e,n){"use strict";function i(t){return r.finalize(t)(this)}var r=n("FTnw");e._finally=i},ub06:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ViUi");i.Observable.prototype.merge=r.merge},ufkV:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵand"](0,null,null,0))],null,null)}function r(t){return s["ɵvid"](0,[s["ɵqud"](402653184,1,{element:0}),(t()(),s["ɵand"](16777216,[[1,3],["element",2]],null,0,null,i))],null,null)}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"dialog-holder",[],null,null,null,r,u)),s["ɵdid"](1,49152,null,0,a.DialogHolderComponent,[s.ComponentFactoryResolver],null,null)],null,null)}var s=n("/oeL"),a=n("3WPo");n.n(a);n.d(e,"a",function(){return c});var l=[],u=s["ɵcrt"]({encapsulation:2,styles:l,data:{}}),c=s["ɵccf"]("dialog-holder",a.DialogHolderComponent,o,{},{},[])},uy4m:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,2,"ngb-datepicker-navigation-select",[["class","d-block"]],[[4,"width","rem"]],[[null,"select"]],function(t,e,n){var i=!0,r=t.component;if("select"===e){i=!1!==r.selectDate(n)&&i}return i},a.a,a.b)),s["ɵdid"](1,573440,null,0,l.a,[u.a,c.a],{date:[0,"date"],disabled:[1,"disabled"],maxDate:[2,"maxDate"],minDate:[3,"minDate"]},{select:"select"}),(t()(),s["ɵted"](-1,null,["\n    "]))],function(t,e){var n=e.component;t(e,1,0,n.date,n.disabled,n.maxDate,n.minDate)},function(t,e){t(e,0,0,9*e.component.months)})}function r(t){return s["ɵvid"](0,[(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵeld"](1,0,null,null,3,"button",[["class","btn-link"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!=!!r.doNavigate(r.navigation.PREV)&&i}return i},null,null)),(t()(),s["ɵted"](-1,null,["\n      "])),(t()(),s["ɵeld"](3,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(t()(),s["ɵted"](-1,null,["    \n    "])),(t()(),s["ɵted"](-1,null,["\n    \n    "])),(t()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](7,16384,null,0,p.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),s["ɵted"](-1,null,["\n    \n    "])),(t()(),s["ɵeld"](9,0,null,null,3,"button",[["class","btn-link"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!=!!r.doNavigate(r.navigation.NEXT)&&i}return i},null,null)),(t()(),s["ɵted"](-1,null,["\n      "])),(t()(),s["ɵeld"](11,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron right"]],null,null,null,null,null)),(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵted"](-1,null,["\n  "]))],function(t,e){t(e,7,0,e.component.showSelect)},function(t,e){var n=e.component;t(e,1,0,n.prevDisabled()),t(e,9,0,n.nextDisabled())})}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"ngb-datepicker-navigation",[["class","d-flex justify-content-between"]],[[2,"collapsed",null]],null,null,r,d)),s["ɵdid"](1,49152,null,0,h.a,[u.a,c.a],null,null)],null,function(t,e){t(e,0,0,!s["ɵnov"](e,1).showSelect)})}var s=n("/oeL"),a=n("cviY"),l=n("JNkN"),u=n("CuDZ"),c=n("KSV9"),h=n("Pc3Y"),p=n("qbdv");n.d(e,"b",function(){return d}),e.a=r;var f=["[_nghost-%COMP%] {\n      height: 2rem;\n      line-height: 1.85rem;\n    }\n    .collapsed[_nghost-%COMP%] {\n      margin-bottom: -2rem;        \n    }\n    .ngb-dp-navigation-chevron[_ngcontent-%COMP%]::before {\n      border-style: solid;\n      border-width: 0.2em 0.2em 0 0;\n      content: '';\n      display: inline-block;\n      height: 0.75em;\n      transform: rotate(-135deg);\n      -webkit-transform: rotate(-135deg);\n      -ms-transform: rotate(-135deg);\n      width: 0.75em;\n      margin: 0 0 0 0.5rem;\n    }    \n    .ngb-dp-navigation-chevron.right[_ngcontent-%COMP%]:before {\n      -webkit-transform: rotate(45deg);\n      -ms-transform: rotate(45deg);\n      transform: rotate(45deg);\n      margin: 0 0.5rem 0 0;\n    }\n    .btn-link[_ngcontent-%COMP%] {\n      cursor: pointer;\n      outline: 0;\n    }\n    .btn-link[disabled][_ngcontent-%COMP%] {\n      cursor: not-allowed;\n      opacity: .65;\n    }"],d=s["ɵcrt"]({encapsulation:0,styles:f,data:{}});s["ɵccf"]("ngb-datepicker-navigation",h.a,o,{date:"date",disabled:"disabled",maxDate:"maxDate",minDate:"minDate",months:"months",showSelect:"showSelect",showWeekNumbers:"showWeekNumbers"},{navigate:"navigate",select:"select"},[])},v1IT:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("xFbG"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.bufferWhen=i;var c=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.closingSelector))},t}(),h=function(t){function e(e,n){t.call(this,e),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,i,r){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=s.tryCatch(this.closingSelector)();n===a.errorObject?this.error(a.errorObject.e):(t=new o.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(u.subscribeToResult(this,n)),this.subscribing=!1)},e}(l.OuterSubscriber)},v6xs:function(t,e,n){"use strict";var i=n("bKpL"),r=n("zjlw");i.Observable.prototype.retry=r.retry},"v71/":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("TpsG");e.single=i;var a=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.predicate,this.source))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.predicate=n,this.source=i,this.seenValue=!1,this.index=0}return r(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},vJ3t:function(t,e,n){"use strict";var i=n("bKpL"),r=n("6P86");i.Observable.combineLatest=r.combineLatest},"vKg+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("jKKE");i.Observable.prototype.count=r.count},vNV3:function(t,e,n){"use strict";var i=n("bKpL"),r=n("olOS");i.Observable.prototype.timestamp=r.timestamp},vNxK:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.concat.apply(void 0,[e].concat(t)))}}var r=n("7kbP");e.concat=i},vfw3:function(t,e,n){"use strict";var i=n("bKpL"),r=n("iDKa");i.Observable.prototype.skip=r.skip},vg2M:function(t,e,n){"use strict";function i(t){var e=t.getFullYear();return e%4==0&&e%100!=0||e%400==0}function r(t,e){return t-e*Math.floor(t/e)}var o=n("SGrN"),s=n("GaSD"),a=n("/oeL"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.fromGregorian=function(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),a=1721424.5+365*(n-1)+Math.floor((n-1)/4)+-Math.floor((n-1)/100)+Math.floor((n-1)/400)+Math.floor((367*(r+1)-362)/12+(r+1<=2?0:i(e)?-1:-2)+o);a=Math.floor(a)+.5;var l=a-1948439.5,u=Math.floor((30*l+10646)/10631),c=Math.ceil((l-29-this._getYearStart(u))/29.5);c=Math.min(c,11);var h=Math.ceil(l-this._getMonthStart(u,c))+1;return new s.a(u,c+1,h)},e.prototype.toGregorian=function(t){var e=t.year,n=t.month-1,o=t.day,s=o+Math.ceil(29.5*n)+354*(e-1)+Math.floor((3+11*e)/30)+1948439.5-1,a=Math.floor(s-.5)+.5,l=a-1721425.5,u=Math.floor(l/146097),c=r(l,146097),h=Math.floor(c/36524),p=r(c,36524),f=Math.floor(p/1461),d=r(p,1461),m=Math.floor(d/365),v=400*u+100*h+4*f+m;4!==h&&4!==m&&v++;var g=1721425.5+365*(v-1)+Math.floor((v-1)/4)-Math.floor((v-1)/100)+Math.floor((v-1)/400),b=a-g,y=1721424.5+365*(v-1)+Math.floor((v-1)/4)-Math.floor((v-1)/100)+Math.floor((v-1)/400)+Math.floor(739/12+(i(new Date(v,3,1))?-1:-2)+1),w=a<y?0:i(new Date(v,3,1))?1:2,x=Math.floor((12*(b+w)+373)/367),S=1721424.5+365*(v-1)+Math.floor((v-1)/4)-Math.floor((v-1)/100)+Math.floor((v-1)/400)+Math.floor((367*x-362)/12+(x<=2?0:i(new Date(v,x-1,1))?-1:-2)+1),C=a-S+1;return new Date(v,x-1,C)},e.prototype.getDaysInIslamicMonth=function(t,e){e+=Math.floor(t/13),t=(t-1)%12+1;var n=29+t%2;return 12===t&&this._isIslamicLeapYear(e)&&n++,n},e.prototype.getNext=function(t,e,n){switch(void 0===e&&(e="d"),void 0===n&&(n=1),t=s.a.from(t),e){case"y":return t=this.setYear(t,t.year+n),t.month=1,t.day=1,t;case"m":return t=this.setMonth(t,t.month+n),t.day=1,t;case"d":return this.setDay(t,t.day+n);default:return t}},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=this.toGregorian(t).getDay();return 0===e?7:e},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=(11-e)%7,i=t[n],r=this.toGregorian(i);r.setDate(r.getDate()+4-(r.getDay()||7));var o=r.getTime(),a=this.toGregorian(new s.a(i.year,1,1));return Math.floor(Math.round((o-a.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return this.fromGregorian(new Date)},e}(o.a);u.decorators=[{type:a.Injectable}],u.ctorParameters=function(){return[]}},vioa:function(t,e,n){"use strict";var i=n("sLwK");e.timer=i.TimerObservable.create},vokw:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,r.expand(t,e,n)(this)}var r=n("y23k");e.expand=i},vtHn:function(t,e,n){"use strict";var i=n("bKpL"),r=n("OCM8");i.Observable.prototype.publishLast=r.publishLast},wDL6:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),r.repeat(t)(this)}var r=n("Hg2u");e.repeat=i},wEhC:function(t,e,n){"use strict";var i=n("JCyH"),r=n("HyAm");e.asap=new r.AsapScheduler(i.AsapAction)},wM1e:function(t,e,n){"use strict";function i(t){return parseInt(""+t,10)}function r(t){return void 0!==t&&null!==t?""+t:""}function o(t,e,n){return void 0===n&&(n=0),Math.max(Math.min(t,e),n)}function s(t){return"string"==typeof t}function a(t){return!isNaN(i(t))}function l(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function u(t){return void 0!==t&&null!==t}function c(t){return a(t)?("0"+t).slice(-2):""}function h(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}e.b=i,e.d=r,e.e=o,e.f=s,e.a=a,e.i=l,e.h=u,e.c=c,e.g=h},wQte:function(t,e,n){"use strict";var i=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var n=0;n<this.size;n++)t.call(e,this._values[n],this._keys[n])},t}();e.MapPolyfill=i},wbX9:function(t,e,n){"use strict";function i(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function r(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===d.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===d.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("bKpL"),c=n("RdI5"),h=n("fclq"),p=n("XRvs"),f=n("xFbG"),d=Object.prototype.toString,m=function(t){function e(e,n,i,r){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=i,this.options=r}return l(e,t),e.create=function(t,n,i,r){return h.isFunction(i)&&(r=i,i=void 0),new e(t,n,r,i)},e.setupSubscription=function(t,n,l,u,c){var h;if(o(t)||s(t))for(var p=0,d=t.length;p<d;p++)e.setupSubscription(t[p],n,l,u,c);else if(a(t)){var m=t;t.addEventListener(n,l,c),h=function(){return m.removeEventListener(n,l)}}else if(r(t)){var v=t;t.on(n,l),h=function(){return v.off(n,l)}}else{if(!i(t))throw new TypeError("Invalid event target");var g=t;t.addListener(n,l),h=function(){return g.removeListener(n,l)}}u.add(new f.Subscription(h))},e.prototype._subscribe=function(t){var n=this.sourceObj,i=this.eventName,r=this.options,o=this.selector,s=o?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var i=c.tryCatch(o).apply(void 0,e);i===p.errorObject?t.error(p.errorObject.e):t.next(i)}:function(e){return t.next(e)};e.setupSubscription(n,i,s,t,r)},e}(u.Observable);e.FromEventObservable=m},wcuQ:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return o.map(r(t,n))(e)}}function r(t,e){return function(n){for(var i=n,r=0;r<e;r++){var o=i[t[r]];if(void 0===o)return;i=o}return i}}var o=n("L8VJ");e.pluck=i},weui:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new a)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.exhaust=i;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return r(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},wsck:function(t,e,n){"use strict";var i=n("wM1e");n.d(e,"a",function(){return r});var r=function(){function t(t,e,r){this.hour=n.i(i.b)(t),this.minute=n.i(i.b)(e),this.second=n.i(i.b)(r)}return t.prototype.changeHour=function(t){void 0===t&&(t=1),this.updateHour((isNaN(this.hour)?0:this.hour)+t)},t.prototype.updateHour=function(t){n.i(i.a)(t)?this.hour=(t<0?24+t:t)%24:this.hour=NaN},t.prototype.changeMinute=function(t){void 0===t&&(t=1),this.updateMinute((isNaN(this.minute)?0:this.minute)+t)},t.prototype.updateMinute=function(t){n.i(i.a)(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN},t.prototype.changeSecond=function(t){void 0===t&&(t=1),this.updateSecond((isNaN(this.second)?0:this.second)+t)},t.prototype.updateSecond=function(t){n.i(i.a)(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN},t.prototype.isValid=function(t){return void 0===t&&(t=!0),n.i(i.a)(this.hour)&&n.i(i.a)(this.minute)&&(!t||n.i(i.a)(this.second))},t.prototype.toString=function(){return(this.hour||0)+":"+(this.minute||0)+":"+(this.second||0)},t}()},xAqS:function(t,e,n){"use strict";function i(t,e){return r.bufferToggle(t,e)(this)}var r=n("6QEA");e.bufferToggle=i},xBEz:function(t,e,n){"use strict";var i=n("/oeL"),r=n("1Dsc"),o=n("AVYa"),s=n("KRwK"),a=n("dN2u");n("C8VA"),n("zGKh");n.d(e,"a",function(){return l});var l=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[a.a,s.a]}},t}();l.decorators=[{type:i.NgModule,args:[{declarations:[r.a,o.a],entryComponents:[r.a,o.a],providers:[a.a]}]}],l.ctorParameters=function(){return[]}},xDpJ:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵand"](0,null,null,0))],null,null)}function r(t){return s["ɵvid"](0,[s["ɵqud"](402653184,1,{element:0}),s["ɵqud"](402653184,2,{container:0}),(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵeld"](3,0,[[2,0],["container",1]],null,3,"div",[["class","modal fade"],["role","dialog"],["style","display:block !important;"]],null,null,null,null,null)),(t()(),s["ɵted"](-1,null,["\n        "])),(t()(),s["ɵand"](16777216,[[1,3],["element",2]],null,0,null,i)),(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵted"](-1,null,["\n"]))],null,null)}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"dialog-wrapper",[],null,null,null,r,c)),s["ɵdid"](1,49152,null,0,a.DialogWrapperComponent,[s.ComponentFactoryResolver,l.DialogService],null,null)],null,null)}var s=n("/oeL"),a=n("taw3"),l=(n.n(a),n("V672"));n.n(l);n.d(e,"a",function(){return h});var u=[],c=s["ɵcrt"]({encapsulation:2,styles:u,data:{}}),h=s["ɵccf"]("dialog-wrapper",a.DialogWrapperComponent,o,{},{},[])},xJeO:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("RdI5"),a=n("XRvs");e.sequenceEqual=i;var l=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=l;var u=function(t){function e(e,n,i){t.call(this,e),this.compareTo=n,this.comparor=i,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new c(e,this)))}return r(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,i=t.comparor;e.length>0&&n.length>0;){var r=e.shift(),o=n.shift(),l=!1;i?(l=s.tryCatch(i)(r,o))===a.errorObject&&this.destination.error(a.errorObject.e):l=r===o,l||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(o.Subscriber);e.SequenceEqualSubscriber=u;var c=function(t){function e(e,n){t.call(this,e),this.parent=n}return r(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(o.Subscriber)},xK8X:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=r.async),o.map(function(e){return new s(e,t.now())})}var r=n("IhB/"),o=n("L8VJ");e.timestamp=i;var s=function(){function t(t,e){this.value=t,this.timestamp=e}return t}();e.Timestamp=s},xpf9:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ueUM");i.Observable.prototype.catch=r._catch,i.Observable.prototype._catch=r._catch},"y+rW":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo"),a=n("M11L");e.distinct=i;var l=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.keySelector,this.flushes))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.keySelector=n,this.values=new a.Set,i&&this.add(s.subscribeToResult(this,i))}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(o.OuterSubscriber);e.DistinctSubscriber=u},y23k:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(i){return i.lift(new u(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),l=n("ktfo");e.expand=i;var u=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=u;var c=function(t){function e(e,n,i,r){t.call(this,e),this.project=n,this.concurrent=i,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(this.buffer=[])}return r(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,i=t.value,r=t.index;e.subscribeToProjection(n,i,r)},e.prototype._next=function(t){var n=this.destination;if(n.closed)return void this._complete();var i=this.index++;if(this.active<this.concurrent){n.next(t);var r=o.tryCatch(this.project)(t,i);if(r===s.errorObject)n.error(s.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:r,value:t,index:i};this.add(this.scheduler.schedule(e.dispatch,0,a))}else this.subscribeToProjection(r,t,i)}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(l.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber);e.ExpandSubscriber=c},y3SI:function(t,e,n){"use strict";function i(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e};return r.reduce(e)}var r=n("JwCl");e.min=i},y3aq:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.takeUntil=i;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier))},t}(),l=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.complete()},e.prototype.notifyComplete=function(){},e}(o.OuterSubscriber)},yIff:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("T14+"),s=n("bKpL"),a=n("xFbG"),l=n("zijX"),u=n("0imh"),c=n("RdI5"),h=n("XRvs"),p=n("fV3I"),f=function(t){function e(e,n){if(e instanceof s.Observable)t.call(this,n,e);else{if(t.call(this),this.WebSocketCtor=l.root.WebSocket,this._output=new r.Subject,"string"==typeof e?this.url=e:p.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new u.ReplaySubject}}return i(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var n=new e(this,this.destination);return n.operator=t,n},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new u.ReplaySubject),this._output=new r.Subject},e.prototype.multiplex=function(t,e,n){var i=this;return new s.Observable(function(r){var o=c.tryCatch(t)();o===h.errorObject?r.error(h.errorObject.e):i.next(o);var s=i.subscribe(function(t){var e=c.tryCatch(n)(t);e===h.errorObject?r.error(h.errorObject.e):e&&r.next(t)},function(t){return r.error(t)},function(){return r.complete()});return function(){var t=c.tryCatch(e)();t===h.errorObject?r.error(h.errorObject.e):i.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,n=this._output,i=null;try{i=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=i,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(t){return void n.error(t)}var r=new a.Subscription(function(){t.socket=null,i&&1===i.readyState&&i.close()});i.onopen=function(e){var s=t.openObserver;s&&s.next(e);var a=t.destination;t.destination=o.Subscriber.create(function(t){return 1===i.readyState&&i.send(t)},function(e){var r=t.closingObserver;r&&r.next(void 0),e&&e.code?i.close(e.code,e.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),i.close(),t._resetState()}),a&&a instanceof u.ReplaySubject&&r.add(a.subscribe(t.destination))},i.onerror=function(e){t._resetState(),n.error(e)},i.onclose=function(e){t._resetState();var i=t.closeObserver;i&&i.next(e),e.wasClean?n.complete():n.error(e)},i.onmessage=function(e){var i=c.tryCatch(t.resultSelector)(e);i===h.errorObject?n.error(h.errorObject.e):n.next(i)}},e.prototype._subscribe=function(t){var e=this,n=this.source;if(n)return n.subscribe(t);this.socket||this._connectSocket();var i=new a.Subscription;return i.add(this._output.subscribe(t)),i.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),i},e.prototype.unsubscribe=function(){var e=this,n=e.source,i=e.socket;i&&1===i.readyState&&(i.close(),this._resetState()),t.prototype.unsubscribe.call(this),n||(this.destination=new u.ReplaySubject)},e}(r.AnonymousSubject);e.WebSocketSubject=f},yQ6o:function(t,e,n){"use strict";var i=n("T1tZ");e.bindCallback=i.BoundCallbackObservable.create},yR50:function(t,e,n){"use strict";var i=n("Fpv1"),r=n("HHMl");e.queue=new r.QueueScheduler(i.QueueAction)},ykQW:function(t,e,n){"use strict";var i=n("bKpL"),r=n("8Ben");i.Observable.prototype.let=r.letProto,i.Observable.prototype.letBind=r.letProto},ytB7:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.sampleTime(t,e)(this)}var r=n("IhB/"),o=n("60lp");e.sampleTime=i},z69B:function(t,e,n){"use strict";var i=n("bKpL"),r=n("gb+0");i.Observable.prototype.single=r.single},"z8/z":function(t,e,n){"use strict";function i(t,e,n,i){n&&"function"!=typeof n&&(i=n);var s="function"==typeof n?n:void 0,a=new r.ReplaySubject(t,e,i);return function(t){return o.multicast(function(){return a},s)(t)}}var r=n("0imh"),o=n("P02W");e.publishReplay=i},"zBM/":function(t,e,n){"use strict";function i(t){return t?o.multicast(function(){return new r.Subject},t):o.multicast(new r.Subject)}var r=n("rlar"),o=n("P02W");e.publish=i},zGKh:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(i||(i={}))},zGUx:function(t,e,n){"use strict";var i=n("wbX9");e.fromEvent=i.FromEventObservable.create},zZnE:function(t,e,n){"use strict";var i=n("bKpL"),r=n("jyAw");i.Observable.prototype.groupBy=r.groupBy},zbre:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=null),r.bufferCount(t,e)(this)}var r=n("5NGA");e.bufferCount=i},zc4d:function(t,e,n){"use strict";var i=n("bKpL"),r=n("uYJe");i.Observable.prototype.finally=r._finally,i.Observable.prototype._finally=r._finally},zdWg:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Zfg9");i.Observable.prototype.skipLast=r.skipLast},ziym:function(t,e,n){"use strict";var i=n("HPkd");e.ajax=i.AjaxObservable.create},zjlw:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),r.retry(t)(this)}var r=n("5r3W");e.retry=i}});
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/0.a2834ddcf91edfd3595a.chunk.js b/Servidor JEE/WebContent/0.a2834ddcf91edfd3595a.chunk.js
new file mode 100644
index 0000000000000000000000000000000000000000..cba9702c637b26e765432180dea9ce3280e60140
--- /dev/null
+++ b/Servidor JEE/WebContent/0.a2834ddcf91edfd3595a.chunk.js	
@@ -0,0 +1 @@
+webpackJsonp([0],{"+0Ji":function(t,e,n){"use strict";var i=n("bKpL"),r=n("l/Fw");i.Observable.prototype.sample=r.sample},"+E40":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.justify="start",this.type="tabs"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"+Ve+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("I3ay");i.Observable.prototype.concatAll=r.concatAll},"+c7d":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.combineLatest.apply(void 0,t)(this)}var r=n("H4tt");e.combineLatest=i},"+iRM":function(t,e,n){"use strict";var i=n("uiTn"),r=n("azLz");n.n(r);n.d(e,"a",function(){return o});var o=function(){function t(t){this.notifService=t,this.alerts=[]}return t.prototype.ngOnInit=function(){var t=this;this.notifService.getMessageSubject().subscribe(function(e){t.alerts.push(e),setTimeout(function(){t.closeAlert(0)},5e3)})},t.prototype.closeAlert=function(t){this.alerts.splice(t,1)},t.ctorParameters=function(){return[{type:i.a}]},t}()},"+oJC":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){}return t.prototype.isMuted=function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)},t}();r.decorators=[{type:i.Component,args:[{selector:"[ngbDatepickerDayView]",styles:["\n    :host {\n      text-align: center;\n      width: 2rem;\n      height: 2rem;\n      line-height: 2rem;      \n      border-radius: 0.25rem;\n    }\n    :host.outside {\n      opacity: 0.5;\n    }\n  "],host:{"[class.bg-primary]":"selected","[class.text-white]":"selected","[class.text-muted]":"isMuted()","[class.outside]":"isMuted()","[class.btn-secondary]":"!disabled"},template:"{{ date.day }}"}]}],r.ctorParameters=function(){return[]},r.propDecorators={currentMonth:[{type:i.Input}],date:[{type:i.Input}],disabled:[{type:i.Input}],selected:[{type:i.Input}]}},"+vKo":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.buffer=i;var a=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingNotifier))},t}(),l=function(t){function e(e,n){t.call(this,e),this.buffer=[],this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(o.OuterSubscriber)},"/6Tg":function(t,e,n){"use strict";var i=n("KSV9"),r=n("GaSD"),o=n("/oeL");n.d(e,"a",function(){return s});var s=function(){function t(t){this._calendar=t}return t.prototype.generateMonthViewModel=function(t,e,n,i,o){var s={firstDate:null,number:t.month,year:t.year,weeks:[],weekdays:[]};t=this._getFirstViewDate(t,i);for(var a=0;a<this._calendar.getWeeksPerMonth();a++){for(var l=[],u=0;u<this._calendar.getDaysPerWeek();u++){0===a&&s.weekdays.push(this._calendar.getWeekday(t));var c=new r.a(t.year,t.month,t.day),h=e&&c.before(e)||n&&c.after(n);!h&&o&&(h=o(c,{month:s.number,year:s.year})),null===s.firstDate&&t.month===s.number&&(s.firstDate=c),l.push({date:c,disabled:h}),t=this._calendar.getNext(t)}s.weeks.push({number:this._calendar.getWeekNumber(l.map(function(t){return r.a.from(t.date)}),i),days:l})}return s},t.prototype.toValidDate=function(t,e){var n=r.a.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e},t.prototype._getFirstViewDate=function(t,e){for(var n=this,i=t.month,o=new r.a(t.year,t.month,t.day),s=this._calendar.getPrev(o);!function(){return o.month!==i&&e===n._calendar.getWeekday(o)}()&&!function(){return o.month!==s.month&&e===n._calendar.getWeekday(o)}();)o=new r.a(s.year,s.month,s.day),s=this._calendar.getPrev(s);return o},t}();s.decorators=[{type:o.Injectable}],s.ctorParameters=function(){return[{type:i.a}]}},"/9bB":function(t,e,n){"use strict";function i(){return r.materialize()(this)}var r=n("L0Qg");e.materialize=i},"/amm":function(t,e,n){"use strict";var i=n("bKpL"),r=n("60yU");i.Observable.prototype.repeatWhen=r.repeatWhen},"/h+r":function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=o.async),function(i){var r=s.isDate(t),o=r?+t-n.now():Math.abs(t);return i.lift(new u(o,r,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("yW9Z"),l=n("ktfo");e.timeoutWith=i;var u=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),c=function(t){function e(e,n,i,r,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=i,this.withObservable=r,this.scheduler=o,this.action=null,this.scheduleTimeout()}return r(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(l.subscribeToResult(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(a.OuterSubscriber)},"/zHi":function(t,e,n){"use strict";var i=n("bKpL"),r=n("+zVg");i.Observable.of=r.of},"0H8/":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.editable=!0,this.focusFirst=!0,this.showHint=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"0I3B":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.zip.apply(void 0,t)(this)}var r=n("SBOU");e.zipProto=i},"0L2s":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return i(e,t),e}(Error);e.TimeoutError=r},"0WLp":function(t,e,n){"use strict";var i=n("/oeL"),r=n("Zz+K"),o=n("wnyu"),s=n("EoP3"),a=n("2waW"),l=n("PY9B"),u=n("IBeK"),c=n("g5gQ"),h=n("xBEz"),p=n("PuIS"),f=n("U0Tu"),d=n("3rU7"),m=n("Cb36"),v=n("5h8W"),g=n("6ade"),b=n("4HaF"),y=n("DaIH");n.d(e,"a",function(){return x}),n.d(e,"b",function(){return S});var w=[r.a,o.a,s.a,a.a,l.a,u.a,c.a,h.a,p.a,f.a,d.a,m.a,v.a,g.a,b.a,y.a],x=function(){function t(){}return t}();x.decorators=[{type:i.NgModule,args:[{imports:[o.a.forRoot(),s.a.forRoot(),l.a.forRoot(),d.a.forRoot(),b.a.forRoot(),y.a.forRoot(),r.a.forRoot(),a.a.forRoot(),u.a.forRoot(),c.a.forRoot(),h.a.forRoot(),p.a.forRoot(),f.a.forRoot(),d.a.forRoot(),m.a.forRoot(),v.a.forRoot(),g.a.forRoot(),b.a.forRoot()],exports:w}]}],x.ctorParameters=function(){return[]};var S=function(){function t(){}return t.forRoot=function(){return{ngModule:x}},t}();S.decorators=[{type:i.NgModule,args:[{imports:w,exports:w}]}],S.ctorParameters=function(){return[]}},"0dhf":function(t,e,n){"use strict";function i(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new s(t,n,!1,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.find=i;var s=function(){function t(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=s;var a=function(t){function e(e,n,i,r,o){t.call(this,e),this.predicate=n,this.source=i,this.yieldIndex=r,this.thisArg=o,this.index=0}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this,n=e.predicate,i=e.thisArg,r=this.index++;try{n.call(i||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(o.Subscriber);e.FindValueSubscriber=a},"0imh":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("yR50"),s=n("xFbG"),a=n("GDiU"),l=n("Lhvy"),u=n("g0Kb"),c=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=i,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return i(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new h(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),i=this.scheduler;if(this.closed)throw new l.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new u.SubjectSubscription(this,t)),i&&t.add(t=new a.ObserveOnSubscriber(t,i));for(var r=n.length,o=0;o<r&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(r.Subject);e.ReplaySubject=c;var h=function(){function t(t,e){this.time=t,this.value=e}return t}()},"0lA3":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.switchMapTo=i;var a=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.observable,this.resultSelector))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.inner=n,this.resultSelector=i,this.index=0}return r(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(t,e,n,i):a.next(e)},e.prototype.tryResultSelector=function(t,e,n,i){var r,o=this,s=o.resultSelector,a=o.destination;try{r=s(t,e,n,i)}catch(t){return void a.error(t)}a.next(r)},e}(o.OuterSubscriber)},"0mJJ":function(t,e,n){"use strict";function i(t,e){return r.concatMap(function(){return t},e)}var r=n("+FJ1");e.concatMapTo=i},"0nG5":function(t,e,n){"use strict";function i(t){return r.min(t)(this)}var r=n("y3SI");e.min=i},"0vel":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("/oeL"),r=n("qbdv"),o=n("nfVm"),s=function(){function t(){}return t}();s.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[o.CodemirrorComponent],exports:[o.CodemirrorComponent]}]}],s.ctorParameters=function(){return[]},e.CodemirrorModule=s},"1Dsc":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){}return t}();r.decorators=[{type:i.Component,args:[{selector:"ngb-modal-backdrop",template:"",host:{class:"modal-backdrop fade show"}}]}],r.ctorParameters=function(){return[]}},"1VPd":function(t,e,n){"use strict";var i=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=i},"1dXy":function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B");n.d(e,"c",function(){return s}),n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l});var o={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return s}),multi:!0},s=function(){function t(){this._radios=new Set,this._value=null,this.onChange=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this.setDisabledState(t)},enumerable:!0,configurable:!0}),t.prototype.onRadioChange=function(t){this.writeValue(t.value),this.onChange(t.value)},t.prototype.onRadioValueUpdate=function(){this._updateRadiosValue()},t.prototype.register=function(t){this._radios.add(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._disabled=t,this._updateRadiosDisabled()},t.prototype.unregister=function(t){this._radios.delete(t)},t.prototype.writeValue=function(t){this._value=t,this._updateRadiosValue()},t.prototype._updateRadiosValue=function(){var t=this;this._radios.forEach(function(e){return e.updateValue(t._value)})},t.prototype._updateRadiosDisabled=function(){this._radios.forEach(function(t){return t.updateDisabled()})},t}();s.decorators=[{type:i.Directive,args:[{selector:"[ngbRadioGroup]",host:{"data-toggle":"buttons",class:"btn-group",role:"group"},providers:[o]}]}],s.ctorParameters=function(){return[]};var a=function(){function t(t,e){this._renderer=t,this._elRef=e}return Object.defineProperty(t.prototype,"active",{set:function(t){t?this._renderer.addClass(this._elRef.nativeElement,"active"):this._renderer.removeClass(this._elRef.nativeElement,"active")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){t?this._renderer.addClass(this._elRef.nativeElement,"disabled"):this._renderer.removeClass(this._elRef.nativeElement,"disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{set:function(t){t?this._renderer.addClass(this._elRef.nativeElement,"focus"):this._renderer.removeClass(this._elRef.nativeElement,"focus")},enumerable:!0,configurable:!0}),t}();a.decorators=[{type:i.Directive,args:[{selector:"label.btn"}]}],a.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]};var l=function(){function t(t,e,n,i){this._group=t,this._label=e,this._renderer=n,this._element=i,this._value=null,this._group&&this._group.register(this)}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t;var e=t?t.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",e),this._group&&this._group.onRadioValueUpdate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=!!this._element.nativeElement.hasAttribute("checked")||t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._group&&this._group.disabled||this._disabled},set:function(t){this._disabled=!1!==t,this.updateDisabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{set:function(t){this._label&&(this._label.focused=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._group&&this._group.unregister(this)},t.prototype.onChange=function(){this._group&&this._group.onRadioChange(this)},t.prototype.updateValue=function(t){this._checked=this.value===t&&null!==t,this._label.active=this._checked},t.prototype.updateDisabled=function(){var t=this._group&&this._group.disabled||this._disabled;this._label&&(this._label.disabled=t)},t}();l.decorators=[{type:i.Directive,args:[{selector:"input[type=radio]",host:{"[checked]":"checked","[disabled]":"disabled","(change)":"onChange()","(focus)":"focused = true","(blur)":"focused = false"}}]}],l.ctorParameters=function(){return[{type:s,decorators:[{type:i.Optional}]},{type:a,decorators:[{type:i.Optional}]},{type:i.Renderer2},{type:i.ElementRef}]},l.propDecorators={value:[{type:i.Input,args:["value"]}],checked:[{type:i.Input,args:["checked"]}],disabled:[{type:i.Input,args:["disabled"]}]}},"1kAr":function(t,e,n){"use strict";function i(t){return r.mapTo(t)(this)}var r=n("6d3x");e.mapTo=i},"1pbG":function(t,e,n){"use strict";var i=n("bKpL"),r=n("NkQZ");i.Observable.prototype.switchMapTo=r.switchMapTo},"23I1":function(t,e,n){"use strict";var i=n("MzWM");e.defer=i.DeferObservable.create},"2Rhf":function(t,e,n){"use strict";function i(t){return r.skipUntil(t)(this)}var r=n("UHtL");e.skipUntil=i},"2Sjb":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("RdI5"),a=n("XRvs");e.distinctUntilChanged=i;var l=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.keySelector=i,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return r(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,n=t;if(e&&(n=s.tryCatch(this.keySelector)(t))===a.errorObject)return this.destination.error(a.errorObject.e);var i=!1;if(this.hasKey){if((i=s.tryCatch(this.compare)(this.key,n))===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;!1===Boolean(i)&&(this.key=n,this.destination.next(t))},e}(o.Subscriber)},"2UX5":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.timeout(t,e)(this)}var r=n("IhB/"),o=n("qbt9");e.timeout=i},"2l91":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.debounce=i;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1,this.durationSubscription=null}return r(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=s.subscribeToResult(this,e),n.closed||this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.OuterSubscriber)},"2qVr":function(t,e,n){"use strict";var i=n("BkNc"),r=n("Dqrr"),o=(n.n(r),n("6akk")),s=n("5FRs"),a=n("P1Y9");n.n(a);n.d(e,"a",function(){return u});var l=/^color (errores|input|output|logs) (\d)$/g,u=function(){function t(t,e){this.authService=t,this.router=e,this.messages=new r.Subject,this.connection=void 0,this.cons=void 0,this.modoAvanzado=!1,this.clear=!1,this.error="",this.warnings=[],this.codemirrorRef=null,this.warningStepReaded=0,this.waitingForError=!1,this.waitingForWarning=!1,this.waitingForWarning2=!1,this.warningText="",this.lastError=-1,this.lastWarning=-1,this.console_error_class="jqconsole-asd",this.consoleBuffer=[],this.regex="/(<svg.*s*.*</svg>)/g",this.consola=void 0,this.jqconsole=void 0,console.log("contructor ghci"),this.conectarWS(s.b,t.getUser().cedula,t.getToken()),setInterval(this.checkConnection.bind(this),5e3),setInterval(this.doPing.bind(this),3e4)}return t.prototype.setCodemirrorRef=function(t){this.codemirrorRef=t},t.prototype.clearWarnings=function(){this.warnings=[]},t.prototype.getWarnings=function(){return this.warnings},t.prototype.loadFile=function(t,e){this.waitingForWarning=!0;var n={token:this.authService.getToken(),load:t,dependencias:[]};for(var i in e)n.dependencias.push(e[i]);this.connection.send(JSON.stringify(n))},t.prototype.reiniciarInterprete=function(){var t={token:this.authService.getToken(),restart:""};console.log(t),this.connection.send(JSON.stringify(t))},t.prototype.conectarWS=function(t,e,n){!e||!n||this.connection&&this.connection.readyState!=WebSocket.CLOSED||(this.connection=new WebSocket(t+"/"+e+"/"+n),this.connection.onopen=function(){console.log("Conexión con web socket exitosa")},this.connection.onclose=function(t){1008==t.code&&this.router.navigate(["/login"]),console.log("Conexión con web socket cerrada",t)}.bind(this),this.connection.onmessage=this.onMessage.bind(this))},t.prototype.desconectarWS=function(){this.connection&&this.connection.close()},t.prototype.logConsole=function(t){this.consoleRef?this.consoleRef.Write(t,"jqconsole-logs"):(this.consoleBuffer.unshift({text:t,type:"jqconsole-logs"}),setTimeout(this.checkConsole.bind(this),100))},t.prototype.outputConsole=function(t){this.consoleRef?this.consoleRef.Write(t,"jqconsole-output"):(this.consoleBuffer.unshift({text:t,type:"jqconsole-output"}),setTimeout(this.checkConsole.bind(this),100))},t.prototype.errorConsole=function(t){this.consoleRef?this.consoleRef.Write(t,"jqconsole-errors"):(this.consoleBuffer.unshift({text:t,type:"jqconsole-errors"}),setTimeout(this.checkConsole.bind(this),100))},t.prototype.hayError=function(t){var e=-1;if(!this.waitingForError){try{var e=Number(JSON.parse(t).resultado.split("en línea")[1].split(",")[0].trim())-1;this.waitingForError=!0,this.lastError=e}catch(t){}return!1}var e=this.lastError;if(null!==this.codemirrorRef){this.codemirrorRef.setGutterMarker(e,"breakpoints",function(){var n=document.createElement("div");return n.id="error_"+e.toString(),n.style.width="15px",n.title=JSON.parse(t).resultado.split("OUT")[1].trim(),n.style.height="15px",n.style.marginLeft="-5px",n.style.cursor="pointer",n.style["background-image"]="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=')",n.innerHTML="<a href='@' title='cuidado , advertencia matefun'></a>",n}()),this.waitingForError=!1,this.lastError=-1}},t.prototype.resetGutters=function(){null!==this.codemirrorRef&&this.codemirrorRef.clearGutter("breakpoints")},t.prototype.hayWarnings=function(t){var e=-1,n=JSON.parse(t);if(1===this.warningStepReaded)try{var i=n.resultado.split("OUT")[1].trim();this.warningStepReaded=2,this.warningText=this.warningText+"\n\n"+i;var e=this.lastWarning,r=this.warningText,o=r.split("columna:")[1].split("}")[0],s=r.split("}")[1],a="En columna "+o+": "+s;if(null!==this.codemirrorRef){this.codemirrorRef.setGutterMarker(e,"breakpoints",function(){var t=document.createElement("div");return t.style.width="15px",t.style.height="15px",t.style.marginLeft="-5px",t.style.cursor="pointer",t.innerHTML="<a href='@' title='cuidado , advertencia matefun'></a>",t.title=a,t.style["background-image"]="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=')",t.innerHTML="",t}())}}catch(t){}if(0===this.warningStepReaded)try{var e=n.resultado.split("OUTAdvertencia:")[1].trim().split("línea:")[1].split(" ")[1]-1;this.lastWarning=e,this.warnings.push(e);var l=n.resultado.split("OUTAdvertencia:")[1].trim();this.warningStepReaded=1,this.warningText=l,this.waitingForWarning&&(this.outputConsole("El programa contiene advertencias\n"),this.waitingForWarning=!1)}catch(t){}},t.prototype.onMessage=function(t){this.modoAvanzado&&this.logConsole("Respuesta: "+t.data+"\n"),this.clear&&this.clearConsole();var e=t.data;if(this.hayError(e)?this.error="Error":this.error="",this.hayWarnings(e),2==this.warningStepReaded)return void(this.warningStepReaded=0);if(1!=this.warningStepReaded){var n=JSON.parse(e);if("salida"==n.tipo){var i=n.resultado.trim();if(i.startsWith("OUT"))this.outputConsole(i.substring(3)+"\n");else if(i.startsWith("IN")){var r=i.substring(3);void 0===this.consoleRef&&this.renderConsole(),this.consoleRef.SetPromptLabel(r),this.consoleRef.SetPromptText(""),this.startPrompt.bind(this),this.startPrompt()}}else"error"==n.tipo?this.modoAvanzado&&this.errorConsole(n.resultado+"\n"):"prompt"==n.tipo?(this.consoleRef.SetPromptLabel(n.resultado+">"),this.consoleRef.SetPromptText(""),this.startPrompt.bind(this),this.startPrompt()):"canvas"!=n.tipo&&"animacion"!=n.tipo&&"graph"!=n.tipo||(document.getElementById("FigurasBtn").click(),this.focusConsole(),this.messages.next(n))}},t.prototype.checkConsole=function(){if(this.consoleRef)for(;this.consoleBuffer.length>0;){var t=this.consoleBuffer.pop();this.consoleRef.Write(t.text,t.type)}else setTimeout(this.checkConsole.bind(this),500)},t.prototype.checkConnection=function(){var t=this.authService.getUser(),e=this.authService.getToken();!t||!e||this.connection&&this.connection.readyState!=WebSocket.CLOSED||this.conectarWS(s.b,t.cedula,e)},t.prototype.doPing=function(){var t=this.authService.getToken();if(this.connection&&this.connection.readyState==WebSocket.OPEN&&t){var e={token:t,ping:""};this.connection.send(JSON.stringify(e))}},t.prototype.sendLine=function(t){if(""!==t.trim()){var e={token:this.authService.getToken(),comando:t};console.log(e),this.connection&&this.connection.readyState==WebSocket.OPEN?this.connection.send(JSON.stringify(e)):this.errorConsole("Sin conexión al servidor...\n")}},t.prototype.startPrompt=function(){this.jqconsole.Prompt(!0,this.callback.bind(this))},t.prototype.focusConsole=function(){this.jqconsole.Focus()},t.prototype.clearConsole=function(){this.consoleRef.Reset(),this.startPrompt.bind(this),this.startPrompt(),this.clear=!1},t.prototype.callback=function(t){var e;e=this.procesarInput(t),e&&(this.modoAvanzado&&this.logConsole("Ejecutar: "+t+"\n"),this.sendLine.bind(this),this.sendLine(t)),this.startPrompt.bind(this),this.startPrompt()},t.prototype.procesarInput=function(t){var e,n=!1;if("limpiar"===(e=t.trim().toLocaleLowerCase()))this.clearConsole();else if("modo avanzado"===e)this.modoAvanzado=!0,this.logConsole("Modo avanzado activado\n");else if("modo normal"===e)this.modoAvanzado=!1,this.logConsole("Modo avanzado desactivado\n");else if("listar colores"===e)this.outputConsole("1 - Azul\n"),this.outputConsole("2 - Rojo\n"),this.outputConsole("3 - Verde\n"),this.outputConsole("4 - Verde oscuro\n"),this.outputConsole("5 - Blanco\n"),this.outputConsole("6 - Naranja\n"),this.outputConsole("7 - Gris\n"),this.outputConsole("8 - Gris oscuro\n"),this.outputConsole("9 - Marrón\n");else if(null!==e.match(l)){var i=e.split(" ")[1],r=t.split(" ")[2];this.jqconsoleColor(r,i),this.modoAvanzado&&this.logConsole("Color "+i+" seleccionado\n")}else n=!0;return n},t.prototype.getCSSColorName=function(t){return"1"===t?"rgb(77, 77, 255)":"2"===t?"rgb(255, 26, 26)":"3"===t?"rgb(0, 179, 60)":"4"===t?"rgb(0, 77, 0)":"5"===t?"rgb(255, 255, 255)":"6"===t?"rgb(255, 133, 51)":"7"===t?"rgb(204, 204, 179)":"8"===t?"rgb(102, 102, 102)":"9"===t?"rgb(101, 27, 27)":void 0},t.prototype.getJQConsoleClass=function(t){return"input"===t?".jqconsole-prompt":"error"===t?".jqconsole-error":"logs"===t?".jqconsole-logs":"output"===t?".jqconsole-output":void 0},t.prototype.jqconsoleColor=function(t,e){var n=this.getCSSColorName(t),i=this.getJQConsoleClass(e),r=document.createElement("style");if(r.type="text/css",r.innerHTML=i+" { color: "+n+"; }",document.getElementsByTagName("head")[0].appendChild(r),".jqconsole-prompt"===i){var o=document.createElement("style");o.type="text/css",o.innerHTML=".jqconsole-old-prompt { color: "+n+"; }",document.getElementsByTagName("head")[0].appendChild(o)}},t.prototype.renderConsole=function(){this.jqconsole?$("#console").replaceWith(this.consola):(void 0!=$("#console").jqconsole?(this.jqconsole=$("#console").jqconsole(""),this.consoleRef=this.jqconsole,this.startPrompt.bind(this),this.startPrompt()):this.rendered(),this.consola=$("#console"))},t.prototype.rendered=function(){setTimeout(this.renderConsole.bind(this),1e3)},t.ctorParameters=function(){return[{type:o.a},{type:i.c}]},t}()},"2waW":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("hMLV"),s=n("f1rf");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:o.a,exports:o.a,imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},"3N4h":function(t,e,n){"use strict";function i(t){return r.window(t)(this)}var r=n("7tal");e.window=i},"3WPo":function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("/oeL"),s=n("taw3"),a=function(){function t(t){this.resolver=t,this.dialogs=[]}return t.prototype.addDialog=function(t,e,n){var i=this;n=n||{};var r=this.resolver.resolveComponentFactory(s.DialogWrapperComponent),o=this.element.createComponent(r,n.index),a=o.instance,l=a.addComponent(t);return void 0!==n.index?this.dialogs.splice(n.index,0,l):this.dialogs.push(l),setTimeout(function(){a.container.nativeElement.classList.add("show"),a.container.nativeElement.classList.add("in")}),n.autoCloseTimeout&&setTimeout(function(){i.removeDialog(l)},n.autoCloseTimeout),n.closeByClickingOutside&&a.closeByClickOutside(),n.backdropColor&&(a.container.nativeElement.style.backgroundColor=n.backdropColor),l.fillData(e)},t.prototype.removeDialog=function(t){var e=this,n=t.wrapper.container.nativeElement;n.classList.remove("show"),n.classList.remove("in"),setTimeout(function(){e._removeElement(t)},300)},t.prototype._removeElement=function(t){var e=this.dialogs.indexOf(t);e>-1&&(this.element.remove(e),this.dialogs.splice(e,1))},t.prototype.clear=function(){this.element.clear(),this.dialogs=[]},t}();i([o.ViewChild("element",{read:o.ViewContainerRef}),r("design:type",o.ViewContainerRef)],a.prototype,"element",void 0),a=i([o.Component({selector:"dialog-holder",template:"<template #element></template>"}),r("design:paramtypes",[o.ComponentFactoryResolver])],a),e.DialogHolderComponent=a},"3rU7":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("n/Gy"),s=n("Wv1e");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[o.a],exports:[o.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},"3yXI":function(t,e,n){"use strict";function i(t){return l["ɵvid"](0,[(t()(),l["ɵeld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),l["ɵted"](1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,l["ɵinlineInterpolate"](1,"",n.highlightClass,"")),t(e,1,0,e.parent.context.$implicit)})}function r(t){return l["ɵvid"](0,[(t()(),l["ɵted"](0,null,["",""]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit)})}function o(t){return l["ɵvid"](0,[(t()(),l["ɵand"](16777216,null,null,1,null,i)),l["ɵdid"](1,16384,null,0,u.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["ɵand"](16777216,null,null,1,null,r)),l["ɵdid"](3,16384,null,0,u.NgIf,[l.ViewContainerRef,l.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),l["ɵand"](0,null,null,0))],function(t,e){t(e,1,0,e.context.odd),t(e,3,0,!e.context.odd)},null)}function s(t){return l["ɵvid"](2,[(t()(),l["ɵand"](16777216,null,null,1,null,o)),l["ɵdid"](1,802816,null,0,u.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,1,0,e.component.parts)},null)}function a(t){return l["ɵvid"](0,[(t()(),l["ɵeld"](0,0,null,null,1,"ngb-highlight",[],null,null,null,s,p)),l["ɵdid"](1,573440,null,0,c.a,[],null,null)],null,null)}var l=n("/oeL"),u=n("qbdv"),c=n("OPj5");n.d(e,"b",function(){return p}),e.a=s;var h=[".ngb-highlight[_ngcontent-%COMP%] {\n      font-weight: bold;\n    }"],p=l["ɵcrt"]({encapsulation:0,styles:h,data:{}});l["ɵccf"]("ngb-highlight",c.a,a,{highlightClass:"highlightClass",result:"result",term:"term"},{},[])},"4HZJ":function(t,e,n){"use strict";function i(t,e,n){return function(i){return i.lift(new s(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.tap=i;var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,i,r){t.call(this,e);var s=new o.Subscriber(n,i,r);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return r(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},"4HaF":function(t,e,n){"use strict";var i=n("/oeL"),r=n("JFa0"),o=n("QGDq");n.d(e,"a",function(){return s});var s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();s.decorators=[{type:i.NgModule,args:[{declarations:[r.a,r.b],exports:[r.a],entryComponents:[r.b]}]}],s.ctorParameters=function(){return[]}},"4JlW":function(t,e,n){"use strict";var i=n("bKpL"),r=n("QgC4");i.Observable.webSocket=r.webSocket},"4Q/O":function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("KSV9"),s=n("GaSD"),a=n("/6Tg"),l=n("pd7P"),u=n("wM1e"),c=n("HRzg"),h=n("CuDZ");n.d(e,"a",function(){return f});var p={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return f}),multi:!0},f=function(){function t(t,e,n,r){this._service=t,this._calendar=e,this.i18n=n,this.months=[],this.navigate=new i.EventEmitter,this.disabled=!1,this.onChange=function(t){},this.onTouched=function(){},this.dayTemplate=r.dayTemplate,this.displayMonths=r.displayMonths,this.firstDayOfWeek=r.firstDayOfWeek,this.markDisabled=r.markDisabled,this.minDate=r.minDate,this.maxDate=r.maxDate,this.navigation=r.navigation,this.outsideDays=r.outsideDays,this.showWeekdays=r.showWeekdays,this.showWeekNumbers=r.showWeekNumbers,this.startDate=r.startDate}return t.prototype.getHeaderHeight=function(){var t=this.showWeekdays?6.25:4.25;return 1===this.displayMonths||"select"!==this.navigation?t-2:t},t.prototype.getHeaderMargin=function(){var t=this.showWeekdays?2:0;return 1!==this.displayMonths||"select"!==this.navigation?t+2:t},t.prototype.navigateTo=function(t){this._setViewWithinLimits(this._service.toValidDate(t)),this._updateData()},t.prototype.ngOnInit=function(){this._setDates(),this.navigateTo(this._date)},t.prototype.ngOnChanges=function(t){this._setDates(),this._setViewWithinLimits(this._date),t.displayMonths&&(this.displayMonths=n.i(u.b)(this.displayMonths)),["startDate","minDate","maxDate","navigation","firstDayOfWeek","markDisabled","displayMonths"].some(function(e){return!!t[e]})&&this._updateData(!0)},t.prototype.onDateSelect=function(t){this._setViewWithinLimits(t),this.onTouched(),this.writeValue(t),this.onChange({year:t.year,month:t.month,day:t.day}),this._date.month!==this.months[0].number&&1===this.displayMonths&&this._updateData()},t.prototype.onNavigateDateSelect=function(t){this._setViewWithinLimits(t),this._updateData()},t.prototype.onNavigateEvent=function(t){switch(t){case l.a.PREV:this._setViewWithinLimits(this._calendar.getPrev(this.months[0].firstDate,"m"));break;case l.a.NEXT:this._setViewWithinLimits(this._calendar.getNext(this.months[0].firstDate,"m"))}this._updateData()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.writeValue=function(t){this.model=this._service.toValidDate(t,null)},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._setDates=function(){if(this._maxDate=s.a.from(this.maxDate),this._minDate=s.a.from(this.minDate),this._date=this._service.toValidDate(this.startDate),this._calendar.isValid(this._minDate)||(this._minDate=this._calendar.getPrev(this._date,"y",10),this.minDate={year:this._minDate.year,month:this._minDate.month,day:this._minDate.day}),this._calendar.isValid(this._maxDate)||(this._maxDate=this._calendar.getNext(this._date,"y",11),this._maxDate=this._calendar.getPrev(this._maxDate),this.maxDate={year:this._maxDate.year,month:this._maxDate.month,day:this._maxDate.day}),this._minDate&&this._maxDate&&this._maxDate.before(this._minDate))throw new Error("'maxDate' "+this._maxDate+" should be greater than 'minDate' "+this._minDate)},t.prototype._setViewWithinLimits=function(t){this._minDate&&t.before(this._minDate)?this._date=new s.a(this._minDate.year,this._minDate.month,1):this._maxDate&&t.after(this._maxDate)?this._date=new s.a(this._maxDate.year,this._maxDate.month,1):this._date=new s.a(t.year,t.month,1)},t.prototype._updateData=function(t){void 0===t&&(t=!1);for(var e=[],i=this,r=0;r<this.displayMonths;r++)!function(r){var o=i._calendar.getNext(i._date,"m",r),s=i.months.findIndex(function(t){return t.firstDate.equals(o)});t||-1===s?e.push(i._service.generateMonthViewModel(o,i._minDate,i._maxDate,n.i(u.b)(i.firstDayOfWeek),i.markDisabled)):e.push(i.months[s])}(r);var o=e[0].firstDate,s=this.months[0]?this.months[0].firstDate:null;this.months=e,o.equals(s)||this.navigate.emit({current:s?{year:s.year,month:s.month}:null,next:{year:o.year,month:o.month}})},t}();f.decorators=[{type:i.Component,args:[{exportAs:"ngbDatepicker",selector:"ngb-datepicker",host:{class:"d-inline-block rounded"},styles:["\n    :host {\n      border: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-header {\n      border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-month {\n      pointer-events: none;\n    }\n    ngb-datepicker-month-view {\n      pointer-events: auto;\n    }\n    .ngb-dp-month:first-child {\n      margin-left: 0 !important;\n    }    \n    .ngb-dp-month-name {\n      font-size: larger;\n      height: 2rem;\n      line-height: 2rem;\n    }    \n  "],template:'\n    <ng-template #dt let-date="date" let-currentMonth="currentMonth" let-selected="selected" let-disabled="disabled">\n       <div ngbDatepickerDayView [date]="date" [currentMonth]="currentMonth" [selected]="selected" [disabled]="disabled"></div>\n    </ng-template>\n    \n    <div class="ngb-dp-header bg-faded pt-1 rounded-top" [style.height.rem]="getHeaderHeight()" \n      [style.marginBottom.rem]="-getHeaderMargin()">\n      <ngb-datepicker-navigation *ngIf="navigation !== \'none\'"\n        [date]="months[0]?.firstDate"\n        [minDate]="_minDate"\n        [maxDate]="_maxDate"\n        [months]="months.length"\n        [disabled]="disabled"\n        [showWeekNumbers]="showWeekNumbers"\n        [showSelect]="navigation === \'select\'"\n        (navigate)="onNavigateEvent($event)"\n        (select)="onNavigateDateSelect($event)">\n      </ngb-datepicker-navigation>\n    </div>\n\n    <div class="ngb-dp-months d-flex px-1 pb-1">\n      <ng-template ngFor let-month [ngForOf]="months" let-i="index">\n        <div class="ngb-dp-month d-block ml-3">            \n          <div *ngIf="navigation !== \'select\' || displayMonths > 1" class="ngb-dp-month-name text-center">\n            {{ i18n.getMonthFullName(month.number) }} {{ month.year }}\n          </div>\n          <ngb-datepicker-month-view\n            [month]="month"\n            [selectedDate]="model"\n            [dayTemplate]="dayTemplate || dt"\n            [showWeekdays]="showWeekdays"\n            [showWeekNumbers]="showWeekNumbers"\n            [disabled]="disabled"\n            [outsideDays]="displayMonths === 1 ? outsideDays : \'hidden\'"\n            (select)="onDateSelect($event)">\n          </ngb-datepicker-month-view>\n        </div>\n      </ng-template>\n    </div>\n  ',providers:[p,a.a]}]}],f.ctorParameters=function(){return[{type:a.a},{type:o.a},{type:h.a},{type:c.a}]},f.propDecorators={dayTemplate:[{type:i.Input}],displayMonths:[{type:i.Input}],firstDayOfWeek:[{type:i.Input}],markDisabled:[{type:i.Input}],minDate:[{type:i.Input}],maxDate:[{type:i.Input}],navigation:[{type:i.Input}],outsideDays:[{type:i.Input}],showWeekdays:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],startDate:[{type:i.Input}],navigate:[{type:i.Output}]}},"4cv6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Dqrr"),r=function(){function t(t){this.dialogService=t}return t.prototype.fillData=function(t){var e=this;t=t||{};for(var n=Object.keys(t),r=0,o=n.length;r<o;r++){var s=n[r];this[s]=t[s]}return i.Observable.create(function(t){return e.observer=t,function(){e.close()}})},t.prototype.close=function(){this.dialogService.removeDialog(this)},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.next(this.result)},t}();e.DialogComponent=r},"4thQ":function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};t.defineMode("xml",function(i,r){function o(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();if("<"==i)return t.eat("!")?t.eat("[")?t.match("CDATA[")?n(l("atom","]]>")):null:t.match("--")?n(l("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(u(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=l("meta","?>"),"meta"):(T=t.eat("/")?"closeTag":"openTag",e.tokenize=s,"tag bracket");if("&"==i){var r;return r=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),r?"atom":"error"}return t.eatWhile(/[^&<]/),null}function s(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=o,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){e.tokenize=o,e.state=f,e.tagName=e.tagStart=null;var i=e.tokenize(t,e);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=a(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=s;break}return"string"};return e.isInAttribute=!0,e}function l(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=o;break}n.next()}return t}}function u(t){return function(e,n){for(var i;null!=(i=e.next());){if("<"==i)return n.tokenize=u(t+1),n.tokenize(e,n);if(">"==i){if(1==t){n.tokenize=o;break}return n.tokenize=u(t-1),n.tokenize(e,n)}}return"meta"}}function c(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(C.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function p(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!C.contextGrabbers.hasOwnProperty(n)||!C.contextGrabbers[n].hasOwnProperty(e))return;h(t)}}function f(t,e,n){return"openTag"==t?(n.tagStart=e.column(),d):"closeTag"==t?m:f}function d(t,e,n){return"word"==t?(n.tagName=e.current(),_="tag",b):(_="error",d)}function m(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&C.implicitlyClosed.hasOwnProperty(n.context.tagName)&&h(n),n.context&&n.context.tagName==i||!1===C.matchClosing?(_="tag",v):(_="tag error",g)}return _="error",g}function v(t,e,n){return"endTag"!=t?(_="error",v):(h(n),f)}function g(t,e,n){return _="error",v(t,e,n)}function b(t,e,n){if("word"==t)return _="attribute",y;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||C.autoSelfClosers.hasOwnProperty(i)?p(n,i):(p(n,i),n.context=new c(n,i,r==n.indented)),f}return _="error",b}function y(t,e,n){return"equals"==t?w:(C.allowMissing||(_="error"),b(t,e,n))}function w(t,e,n){return"string"==t?x:"word"==t&&C.allowUnquoted?(_="string",b):(_="error",b(t,e,n))}function x(t,e,n){return"string"==t?x:b(t,e,n)}var S=i.indentUnit,C={},O=r.htmlMode?e:n;for(var k in O)C[k]=O[k];for(var k in r)C[k]=r[k];var T,_;return o.isInText=!0,{startState:function(t){var e={tokenize:o,state:f,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;T=null;var n=e.tokenize(t,e);return(n||T)&&"comment"!=n&&(_=null,e.state=e.state(T||n,t,e),_&&(n="error"==_?n+" error":_)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+S;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=s&&e.tokenize!=o)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==C.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+S*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var a=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(a&&a[1])for(;r;){if(r.tagName==a[2]){r=r.prev;break}if(!C.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(a)for(;r;){var l=C.contextGrabbers[r.tagName];if(!l||!l.hasOwnProperty(a[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+S:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(t){t.state==w&&(t.state=b)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"56vs":function(t,e,n){"use strict";function i(t){return r.skipWhile(t)(this)}var r=n("aL6N");e.skipWhile=i},"59zy":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.max=10,this.readonly=!1,this.resettable=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"5FRs":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=window.location.protocol+"//"+window.location.host,r="http:"==window.location.protocol?"ws://"+window.location.host+"/endpoint":"wss://"+window.location.host+"/endpoint"},"5FV4":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.closeOthers=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"5NGA":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=null),function(n){return n.lift(new s(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.bufferCount=i;var s=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?l:a}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),a=function(t){function e(e,n){t.call(this,e),this.bufferSize=n,this.buffer=[]}return r(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(o.Subscriber),l=function(t){function e(e,n,i){t.call(this,e),this.bufferSize=n,this.startBufferEvery=i,this.buffers=[],this.count=0}return r(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,i=e.startBufferEvery,r=e.buffers,o=e.count;this.count++,o%i==0&&r.push([]);for(var s=r.length;s--;){var a=r[s];a.push(t),a.length===n&&(r.splice(s,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this,n=e.buffers,i=e.destination;n.length>0;){var r=n.shift();r.length>0&&i.next(r)}t.prototype._complete.call(this)},e}(o.Subscriber)},"5h8W":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("Hjei"),s=n("+E40");n.d(e,"a",function(){return l});var a=[o.a,o.b,o.c,o.d],l=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();l.decorators=[{type:i.NgModule,args:[{declarations:a,exports:a,imports:[r.CommonModule]}]}],l.ctorParameters=function(){return[]}},"5p6H":function(t,e,n){"use strict";var i=n("bKpL"),r=n("TIdC");i.Observable.prototype.mergeAll=r.mergeAll},"5r3W":function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),function(e){return e.lift(new s(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.retry=i;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,i){t.call(this,e),this.count=n,this.source=i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this,i=n.source,r=n.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),i.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},"5uCp":function(t,e,n){"use strict";var i=n("bKpL"),r=n("Lqs2");i.Observable.prototype.take=r.take},"5v8a":function(t,e,n){"use strict";var i=n("bKpL"),r=n("lx+J");i.Observable.prototype.map=r.map},"5x23":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.takeWhile=i;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(o.Subscriber)},"60lp":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=a.async),function(n){return n.lift(new l(t,e))}}function r(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/");e.sampleTime=i;var l=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.period,this.scheduler))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.period=n,this.scheduler=i,this.hasValue=!1,this.add(i.schedule(r,n,{subscriber:this,period:n}))}return o(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(s.Subscriber)},"60yU":function(t,e,n){"use strict";function i(t){return r.repeatWhen(t)(this)}var r=n("g9kf");e.repeatWhen=i},"67Ck":function(t,e,n){"use strict";var i=n("bKpL"),r=n("56vs");i.Observable.prototype.skipWhile=r.skipWhile},"6DBm":function(t,e,n){"use strict";var i=n("bKpL"),r=n("+c7d");i.Observable.prototype.combineLatest=r.combineLatest},"6JjX":function(t,e,n){"use strict";function i(){return r.switchAll()(this)}var r=n("rhfi");e._switch=i},"6NKQ":function(t,e,n){"use strict";var i=n("bKpL"),r=n("kkQ5");i.Observable.prototype.scan=r.scan},"6P86":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,i=null;return r.isScheduler(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),new s.ArrayObservable(t,i).lift(new a.CombineLatestOperator(n))}var r=n("MicL"),o=n("NSJx"),s=n("wZOE"),a=n("H4tt");e.combineLatest=i},"6QEA":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("xFbG"),s=n("ktfo"),a=n("yW9Z");e.bufferToggle=i;var l=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.openings,this.closingSelector))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.openings=n,this.closingSelector=i,this.contexts=[],this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector,n=e.call(this,t);n&&this.trySubscribe(n)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,i=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=[],i=new o.Subscription,r={buffer:n,subscription:i};e.push(r);var a=s.subscribeToResult(this,t,r);!a||a.closed?this.closeBuffer(r):(a.context=r,this.add(a),i.add(a))},e}(a.OuterSubscriber)},"6ade":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("L5DB"),s=n("V6Dl");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[o.a],exports:[o.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},"6akk":function(t,e,n){"use strict";var i=n("CPp0"),r=n("5v8a"),o=(n.n(r),n("5FRs"));n.d(e,"a",function(){return s});var s=function(){function t(t){this.http=t}return t.prototype.login=function(t,e){var n=new i.l({"Content-Type":"application/json"}),r=new i.g({headers:n});return this.http.post(o.a+"/servicios/login",JSON.stringify({cedula:t,password:e}),r).map(function(t){var e=t.json();sessionStorage.setItem("currentUser",JSON.stringify(e))})},t.prototype.getUser=function(){return JSON.parse(sessionStorage.getItem("currentUser"))},t.prototype.getUserConfig=function(){return JSON.parse(sessionStorage.getItem("currentUser")).configuracion},t.prototype.getToken=function(){var t=JSON.parse(sessionStorage.getItem("currentUser"));return t?t.token:void 0},t.prototype.setUserConfig=function(t){var e=JSON.parse(sessionStorage.getItem("currentUser"));e.configuracion=t,sessionStorage.setItem("currentUser",JSON.stringify(e))},t.prototype.logout=function(){sessionStorage.removeItem("currentUser")},t.ctorParameters=function(){return[{type:i.i}]},t}()},"6d3x":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.mapTo=i;var s=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},t}(),a=function(t){function e(e,n){t.call(this,e),this.value=n}return r(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.Subscriber)},"6jp4":function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}e.isDate=i},"6nek":function(t,e,n){"use strict";var i=n("q+5A");e.interval=i.IntervalObservable.create},"75Hr":function(t,e,n){"use strict";function i(t,e,n,i){var r=o.positionElements(t,e,n,i);e.style.top=r.top+"px",e.style.left=r.left+"px"}e.a=i;var r=function(){function t(){}return t.prototype.getStyle=function(t,e){return window.getComputedStyle(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){void 0===e&&(e=!0);var n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect();else{var r=this.offsetParent(t);n=this.offset(t,!1),r!==document.documentElement&&(i=this.offset(r,!1)),i.top+=r.clientTop,i.left+=r.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),i={top:window.pageYOffset-document.documentElement.clientTop,left:window.pageXOffset-document.documentElement.clientLeft},r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i.top,bottom:n.bottom+i.top,left:n.left+i.left,right:n.right+i.left};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,i){var r=i?this.offset(t,!1):this.position(t,!1),o={left:r.left,center:r.left+r.width/2-e.offsetWidth/2,right:r.left+r.width},s={top:r.top,center:r.top+r.height/2-e.offsetHeight/2,bottom:r.top+r.height},a=e.getBoundingClientRect(),l=n.split("-")[0]||"top",u=n.split("-")[1]||"center",c={height:a.height||e.offsetHeight,width:a.width||e.offsetWidth,top:0,bottom:a.height||e.offsetHeight,left:0,right:a.width||e.offsetWidth};switch(l){case"top":c.top=r.top-e.offsetHeight,c.bottom+=r.top-e.offsetHeight,c.left=o[u],c.right+=o[u];break;case"bottom":c.top=s[l],c.bottom+=s[l],c.left=o[u],c.right+=o[u];break;case"left":c.top=s[u],c.bottom+=s[u],c.left=r.left-e.offsetWidth,c.right+=r.left-e.offsetWidth;break;case"right":c.top=s[u],c.bottom+=s[u],c.left=o[l],c.right+=o[l]}return c.top=Math.round(c.top),c.bottom=Math.round(c.bottom),c.left=Math.round(c.left),c.right=Math.round(c.right),c},t}(),o=new r},"7Obz":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(r.AsyncScheduler);e.AnimationFrameScheduler=o},"7PW3":function(t,e,n){"use strict";var i=n("T5Q1");e.using=i.UsingObservable.create},"7dLC":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.race.apply(void 0,t)(this)}var r=n("XWpj"),o=n("YofN");e.raceStatic=o.race,e.race=i},"7kbP":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&r.isScheduler(t[1])?s.from(t[0]):a.concatAll()(o.of.apply(void 0,t))}var r=n("MicL"),o=n("+zVg"),s=n("7JOC"),a=n("NiCh");e.concat=i},"7rqg":function(t,e,n){"use strict";var i=n("bKpL"),r=n("TQn8");i.Observable.prototype.concatMap=r.concatMap},"7tal":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new l(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("yW9Z"),a=n("ktfo");e.window=i;var l=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new u(t),i=e.subscribe(n);return i.closed||n.add(a.subscribeToResult(n,this.windowBoundaries)),i},t}(),u=function(t){function e(e){t.call(this,e),this.window=new o.Subject,e.next(this.window)}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new o.Subject;e.next(n)},e}(s.OuterSubscriber)},"7u+W":function(t,e,n){"use strict";var i=n("bKpL"),r=n("QU9E");i.Observable.fromPromise=r.fromPromise},"7xz3":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new r.CombineLatestOperator(t))}}var r=n("H4tt");e.combineAll=i},"7zUS":function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.placement="top",this.triggers="click"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"82j9":function(t,e){},"86mp":function(t,e,n){"use strict";var i=n("bKpL"),r=n("s6AU");i.Observable.prototype.takeWhile=r.takeWhile},"89am":function(t,e,n){"use strict";var i=n("bKpL"),r=n("vokw");i.Observable.prototype.expand=r.expand},"8Ben":function(t,e,n){"use strict";function i(t){return t(this)}e.letProto=i},"8H5Y":function(t,e,n){"use strict";function i(t,e,n,i){return function(r){return r.lift(new h(t,e,n,i))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("xFbG"),a=n("bKpL"),l=n("rlar"),u=n("R61s"),c=n("etpI");e.groupBy=i;var h=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),p=function(t){function e(e,n,i,r,o){t.call(this,e),this.keySelector=n,this.elementSelector=i,this.durationSelector=r,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return r(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups="string"==typeof e?new c.FastMap:new u.Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(t){this.error(t)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new l.Subject,n.set(e,r);var o=new d(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new f(e,r,this)))}}r.closed||r.next(i)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(o.Subscriber),f=function(t){function e(e,n,i){t.call(this,n),this.key=e,this.group=n,this.parent=i}return r(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,e=t.parent,n=t.key;this.key=this.parent=null,e&&e.removeGroup(n)},e}(o.Subscriber),d=function(t){function e(e,n,i){t.call(this),this.key=e,this.groupSubject=n,this.refCountSubscription=i}return r(e,t),e.prototype._subscribe=function(t){var e=new s.Subscription,n=this,i=n.refCountSubscription,r=n.groupSubject;return i&&!i.closed&&e.add(new m(i)),e.add(r.subscribe(t)),e},e}(a.Observable);e.GroupedObservable=d;var m=function(t){function e(e){t.call(this),this.parent=e,e.count++}return r(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.Subscription)},"8Jh8":function(t,e,n){"use strict";function i(t){return r.takeUntil(t)(this)}var r=n("y3aq");e.takeUntil=i},"8efI":function(t,e,n){"use strict";function i(t,e){return r.distinct(t,e)(this)}var r=n("y+rW");e.distinct=i},"8pdA":function(t,e,n){"use strict";function i(t){var e=arguments.length,n=r.async;o.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),s.bufferTime(t,i,a,n)(this)}var r=n("IhB/"),o=n("MicL"),s=n("duFl");e.bufferTime=i},"99fb":function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";var e=/[\w$]+/;t.registerHelper("hint","anyword",function(n,i){for(var r=i&&i.word||e,o=i&&i.range||500,s=n.getCursor(),a=n.getLine(s.line),l=s.ch,u=l;u&&r.test(a.charAt(u-1));)--u;for(var c=u!=l&&a.slice(u,l),h=i&&i.list||[],p={},f=new RegExp(r.source,"g"),d=-1;d<=1;d+=2)for(var m=s.line,v=Math.min(Math.max(m+d*o,n.firstLine()),n.lastLine())+d;m!=v;m+=d)for(var g,b=n.getLine(m);g=f.exec(b);)m==s.line&&g[0]===c||c&&0!=g[0].lastIndexOf(c,0)||Object.prototype.hasOwnProperty.call(p,g[0])||(p[g[0]]=!0,h.push(g[0]));return{list:h,from:t.Pos(s.line,u),to:t.Pos(s.line,l)}})})},"9FjR":function(t,e,n){"use strict";function i(){return function(t){return t.lift(new s)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.pairwise=i;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return r(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(o.Subscriber)},"9jMf":function(t,e,n){"use strict";var i=n("bKpL"),r=n("Ohh6");i.Observable.prototype.startWith=r.startWith},"9lCb":function(t,e,n){"use strict";var i=n("bKpL"),r=n("GB+a");i.Observable.prototype.sequenceEqual=r.sequenceEqual},"9mSN":function(t,e,n){"use strict";var i=n("bKpL"),r=n("WAO4");i.Observable.prototype.timeoutWith=r.timeoutWith},"9mYp":function(t,e,n){"use strict";var i=n("r6G9");e.onErrorResumeNext=i.onErrorResumeNextStatic},"9tb5":function(t,e,n){"use strict";function i(t,e){return r.exhaustMap(t,e)(this)}var r=n("NzSV");e.exhaustMap=i},"9wNb":function(t,e,n){"use strict";var i=n("bKpL"),r=n("8efI");i.Observable.prototype.distinct=r.distinct},"A+1n":function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:["application/x-httpd-php","text/x-php"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.mime==e)return i;if(i.mimes)for(var r=0;r<i.mimes.length;r++)if(i.mimes[r]==e)return i}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.ext)for(var r=0;r<i.ext.length;r++)if(i.ext[r]==e)return i}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.file&&i.file.test(e))return i}var r=e.lastIndexOf("."),o=r>-1&&e.substring(r+1,e.length);if(o)return t.findModeByExtension(o)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.name.toLowerCase()==e)return i;if(i.alias)for(var r=0;r<i.alias.length;r++)if(i.alias[r].toLowerCase()==e)return i}}})},A1r7:function(t,e,n){"use strict";var i=n("bKpL"),r=n("buGu");i.Observable.prototype.defaultIfEmpty=r.defaultIfEmpty},ACG2:function(t,e,n){"use strict";var i=n("bKpL"),r=n("6nek");i.Observable.interval=r.interval},AHF9:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),r.observeOn(t,e)(this)}var r=n("GDiU");e.observeOn=i},ASfG:function(t,e,n){"use strict";function i(t){return function(e){return o.multicast(new r.BehaviorSubject(t))(e)}}var r=n("gvep"),o=n("P02W");e.publishBehavior=i},AVYa:function(t,e,n){"use strict";var i=n("/oeL"),r=n("zGKh");n.d(e,"a",function(){return o});var o=function(){function t(t,e){this._elRef=t,this._renderer=e,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.EventEmitter}return t.prototype.backdropClick=function(t){!0===this.backdrop&&this._elRef.nativeElement===t.target&&this.dismiss(r.a.BACKDROP_CLICK)},t.prototype.escKey=function(t){this.keyboard&&!t.defaultPrevented&&this.dismiss(r.a.ESC)},t.prototype.dismiss=function(t){this.dismissEvent.emit(t)},t.prototype.ngOnInit=function(){this._elWithFocus=document.activeElement,this._renderer.addClass(document.body,"modal-open")},t.prototype.ngAfterViewInit=function(){this._elRef.nativeElement.contains(document.activeElement)||this._elRef.nativeElement.focus.apply(this._elRef.nativeElement,[])},t.prototype.ngOnDestroy=function(){this._elWithFocus&&document.body.contains(this._elWithFocus)?this._elWithFocus.focus.apply(this._elWithFocus,[]):document.body.focus.apply(document.body,[]),this._elWithFocus=null,this._renderer.removeClass(document.body,"modal-open")},t}();o.decorators=[{type:i.Component,args:[{selector:"ngb-modal-window",host:{"[class]":'"modal fade show" + (windowClass ? " " + windowClass : "")',role:"dialog",tabindex:"-1",style:"display: block;","(keyup.esc)":"escKey($event)","(click)":"backdropClick($event)"},template:"\n    <div [class]=\"'modal-dialog' + (size ? ' modal-' + size : '')\" role=\"document\">\n        <div class=\"modal-content\"><ng-content></ng-content></div>\n    </div>\n    "}]}],o.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2}]},o.propDecorators={backdrop:[{type:i.Input}],keyboard:[{type:i.Input}],size:[{type:i.Input}],windowClass:[{type:i.Input}],dismissEvent:[{type:i.Output,args:["dismiss"]}]}},Af4u:function(t,e,n){"use strict";var i=n("bKpL"),r=n("YofN");i.Observable.race=r.race},Av3o:function(t,e,n){"use strict";var i=n("/oeL"),r=n("GaSD"),o=n("CuDZ");n.d(e,"a",function(){return s});var s=function(){function t(t){this.i18n=t,this.select=new i.EventEmitter}return t.prototype.doSelect=function(t){this.isDisabled(t)||this.isHidden(t)||this.select.emit(r.a.from(t.date))},t.prototype.isDisabled=function(t){return this.disabled||t.disabled},t.prototype.isSelected=function(t){return this.selectedDate&&this.selectedDate.equals(t)},t.prototype.isCollapsed=function(t){return"collapsed"===this.outsideDays&&t.days[0].date.month!==this.month.number&&t.days[t.days.length-1].date.month!==this.month.number},t.prototype.isHidden=function(t){return("hidden"===this.outsideDays||"collapsed"===this.outsideDays)&&this.month.number!==t.date.month},t}();s.decorators=[{type:i.Component,args:[{selector:"ngb-datepicker-month-view",host:{class:"d-block"},styles:["\n    .ngb-dp-weekday, .ngb-dp-week-number {\n      line-height: 2rem;\n    }\n    .ngb-dp-day, .ngb-dp-weekday, .ngb-dp-week-number {\n      width: 2rem;\n      height: 2rem;      \n    }\n    .ngb-dp-day {\n      cursor: pointer;\n    }\n    .ngb-dp-day.disabled, .ngb-dp-day.hidden {\n      cursor: default;\n    }\n  "],template:'\n    <div *ngIf="showWeekdays" class="ngb-dp-week d-flex">\n      <div *ngIf="showWeekNumbers" class="ngb-dp-weekday"></div>\n      <div *ngFor="let w of month.weekdays" class="ngb-dp-weekday small text-center text-info font-italic">\n        {{ i18n.getWeekdayShortName(w) }}\n      </div>\n    </div>\n    <ng-template ngFor let-week [ngForOf]="month.weeks">\n      <div *ngIf="!isCollapsed(week)" class="ngb-dp-week d-flex">\n        <div *ngIf="showWeekNumbers" class="ngb-dp-week-number small text-center font-italic text-muted">{{ week.number }}</div>\n        <div *ngFor="let day of week.days" (click)="doSelect(day)" class="ngb-dp-day" [class.disabled]="isDisabled(day)"\n         [class.hidden]="isHidden(day)">\n          <ng-template [ngIf]="!isHidden(day)">\n            <ng-template [ngTemplateOutlet]="dayTemplate"\n            [ngOutletContext]="{date: {year: day.date.year, month: day.date.month, day: day.date.day},\n              currentMonth: month.number,\n              disabled: isDisabled(day),\n              selected: isSelected(day.date)}">\n            </ng-template>\n          </ng-template>\n        </div>\n      </div>\n    </ng-template>\n  '}]}],s.ctorParameters=function(){return[{type:o.a}]},s.propDecorators={dayTemplate:[{type:i.Input}],disabled:[{type:i.Input}],month:[{type:i.Input}],outsideDays:[{type:i.Input}],selectedDate:[{type:i.Input}],showWeekdays:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],select:[{type:i.Output}]}},AzAY:function(t,e,n){"use strict";function i(t,e,n,i){return r.publishReplay(t,e,n,i)(this)}var r=n("z8/z");e.publishReplay=i},"B/As":function(t,e,n){"use strict";var i=n("bKpL"),r=n("ltng");i.Observable.range=r.range},BBvl:function(t,e,n){"use strict";var i=n("bKpL"),r=n("/9bB");i.Observable.prototype.materialize=r.materialize},BJqU:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=r.async),void 0===n&&(n=o.defaultThrottleConfig),s.throttleTime(t,e,n)(this)}var r=n("IhB/"),o=n("DrEP"),s=n("Rol4");e.throttleTime=i},BbOI:function(t,e,n){"use strict";var i=n("f7+7");e.bindNodeCallback=i.BoundNodeCallbackObservable.create},BdLl:function(t,e,n){"use strict";var i=n("bKpL"),r=n("vioa");i.Observable.timer=r.timer},C4ew:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new s)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.isEmpty=i;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},C8VA:function(t,e,n){"use strict";var i=n("/oeL"),r=n("uJci");n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var o=function(){function t(){}return t.prototype.close=function(t){},t.prototype.dismiss=function(t){},t}();o.decorators=[{type:i.Injectable}],o.ctorParameters=function(){return[]};var s=function(){function t(t,e,n){var i=this;this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,t.instance.dismissEvent.subscribe(function(t){i.dismiss(t)}),this.result=new Promise(function(t,e){i._resolve=t,i._reject=e}),this.result.then(null,function(){})}return Object.defineProperty(t.prototype,"componentInstance",{get:function(){if(this._contentRef.componentRef)return this._contentRef.componentRef.instance},set:function(t){},enumerable:!0,configurable:!0}),t.prototype.close=function(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())},t.prototype.dismiss=function(t){this._windowCmptRef&&(this._reject(t),this._removeModalElements())},t.prototype._removeModalElements=function(){var t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){var e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null},t}();s.decorators=[{type:i.Injectable}],s.ctorParameters=function(){return[{type:i.ComponentRef},{type:r.b},{type:i.ComponentRef}]}},"CH/r":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.debounceTime(t,e)(this)}var r=n("IhB/"),o=n("Hr+Y");e.debounceTime=i},CQyF:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,i=this.scheduler;if(t.syncErrorThrowable=!0,i)return i.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(r.Observable);e.ErrorObservable=o},CU81:function(t,e,n){"use strict";function i(t){return l["ɵvid"](0,[(t()(),l["ɵted"](-1,null,["\n      "])),(t()(),l["ɵeld"](1,0,null,null,1,"ngb-highlight",[],null,null,null,u.a,u.b)),l["ɵdid"](2,573440,null,0,c.a,[],{result:[0,"result"],term:[1,"term"]},null),(t()(),l["ɵted"](-1,null,["\n    "]))],function(t,e){t(e,2,0,e.context.formatter(e.context.result),e.context.term)},null)}function r(t){return l["ɵvid"](0,[(t()(),l["ɵand"](0,null,null,0))],null,null)}function o(t){return l["ɵvid"](0,[(t()(),l["ɵted"](-1,null,["\n      "])),(t()(),l["ɵeld"](1,0,null,null,5,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("mouseenter"===e){i=!1!==r.markActive(t.context.index)&&i}if("click"===e){i=!1!==r.select(t.context.$implicit)&&i}return i},null,null)),(t()(),l["ɵted"](-1,null,["\n          "])),(t()(),l["ɵand"](16777216,null,null,2,null,r)),l["ɵdid"](4,540672,null,0,h.NgTemplateOutlet,[l.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"],ngOutletContext:[1,"ngOutletContext"]},null),l["ɵpod"](5,{result:0,term:1,formatter:2}),(t()(),l["ɵted"](-1,null,["\n      "])),(t()(),l["ɵted"](-1,null,["\n    "]))],function(t,e){var n=e.component;t(e,4,0,n.resultTemplate||l["ɵnov"](e.parent,1),t(e,5,0,e.context.$implicit,n.term,n.formatter))},function(t,e){var n=e.component;t(e,1,0,n.id+"-"+e.context.index,e.context.index===n.activeIdx)})}function s(t){return l["ɵvid"](0,[(t()(),l["ɵted"](-1,null,["\n    "])),(t()(),l["ɵand"](0,[["rt",2]],null,0,null,i)),(t()(),l["ɵted"](-1,null,["\n    "])),(t()(),l["ɵand"](16777216,null,null,1,null,o)),l["ɵdid"](4,802816,null,0,h.NgForOf,[l.ViewContainerRef,l.TemplateRef,l.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),l["ɵted"](-1,null,["\n  "]))],function(t,e){t(e,4,0,e.component.results)},null)}function a(t){return l["ɵvid"](0,[(t()(),l["ɵeld"](0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu"],["role","listbox"],["style","display: block"]],[[8,"id",0]],null,null,s,d)),l["ɵdid"](1,114688,null,0,p.a,[],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,l["ɵnov"](e,1).id)})}var l=n("/oeL"),u=n("3yXI"),c=n("OPj5"),h=n("qbdv"),p=n("c0Tg");n.d(e,"a",function(){return m});var f=[],d=l["ɵcrt"]({encapsulation:2,styles:f,data:{}}),m=l["ɵccf"]("ngb-typeahead-window",p.a,a,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[])},CXR1:function(t,e,n){"use strict";var i=n("bKpL"),r=n("tpuU");i.Observable.prototype.zipAll=r.zipAll},Cb36:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("59zy"),s=n("PySC");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[s.a],exports:[s.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},Cipy:function(t,e,n){"use strict";function i(t,e,n){return r.shareReplay(t,e,n)(this)}var r=n("Wxra");e.shareReplay=i},ClIn:function(t,e,n){"use strict";function i(t){return o["ɵvid"](2,[(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵeld"](1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),o["ɵncd"](null,0),(t()(),o["ɵted"](-1,null,["\n    "]))],null,null)}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,i,l)),o["ɵdid"](1,49152,null,0,s.b,[],null,null)],null,function(t,e){t(e,0,0,"tooltip show tooltip-"+o["ɵnov"](e,1).placement,o["ɵnov"](e,1).id)})}var o=n("/oeL"),s=n("JFa0");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-tooltip-window",s.b,r,{placement:"placement",id:"id"},{},["*"])},CuDZ:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return l}),n.d(e,"b",function(){return u});var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=["Mo","Tu","We","Th","Fr","Sa","Su"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=["January","February","March","April","May","June","July","August","September","October","November","December"],l=function(){function t(){}return t}();l.decorators=[{type:i.Injectable}],l.ctorParameters=function(){return[]};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getWeekdayShortName=function(t){return o[t-1]},e.prototype.getMonthShortName=function(t){return s[t-1]},e.prototype.getMonthFullName=function(t){return a[t-1]},e}(l);u.decorators=[{type:i.Injectable}],u.ctorParameters=function(){return[]}},D84Q:function(t,e,n){"use strict";var i=n("bKpL"),r=n("NUku");i.Observable.prototype.buffer=r.buffer},DaIH:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("OPj5"),s=n("c0Tg"),a=n("raIJ"),l=n("0H8/");n.d(e,"a",function(){return u});var u=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[l.a]}},t}();u.decorators=[{type:i.NgModule,args:[{declarations:[a.a,o.a,s.a],exports:[a.a],imports:[r.CommonModule],entryComponents:[s.a]}]}],u.ctorParameters=function(){return[]}},De29:function(t,e,n){"use strict";var i=n("bKpL"),r=n("NgMz");i.Observable.prototype.findIndex=r.findIndex},DlWC:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[],null,null)}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-modal-backdrop",[["class","modal-backdrop fade show"]],null,null,null,i,l)),o["ɵdid"](1,49152,null,0,s.a,[],null,null)],null,null)}var o=n("/oeL"),s=n("1Dsc");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-modal-backdrop",s.a,r,{},{},[])},Dqrr:function(t,e,n){"use strict";var i=n("rlar");e.Subject=i.Subject,e.AnonymousSubject=i.AnonymousSubject;var r=n("bKpL");e.Observable=r.Observable,n("amjc"),n("p3u8"),n("vJ3t"),n("JSgX"),n("VsKd"),n("hbO+"),n("GPwi"),n("XL2q"),n("Xtvq"),n("ZXBV"),n("7u+W"),n("d3kC"),n("okgN"),n("ACG2"),n("JNTq"),n("Af4u"),n("dyFf"),n("/zHi"),n("bprQ"),n("mjW1"),n("B/As"),n("W5L8"),n("S7im"),n("BdLl"),n("tcot"),n("o/OZ"),n("4JlW"),n("D84Q"),n("i4mq"),n("t8nJ"),n("LTTx"),n("UVHa"),n("xpf9"),n("rp90"),n("6DBm"),n("R0J0"),n("+Ve+"),n("7rqg"),n("oOL0"),n("vKg+"),n("E2ib"),n("p3bn"),n("azLz"),n("A1r7"),n("l3Q+"),n("TnjP"),n("9wNb"),n("MBEm"),n("mDYJ"),n("eqpX"),n("ptvE"),n("h+is"),n("89am"),n("afTc"),n("gbhw"),n("zc4d"),n("MaQZ"),n("De29"),n("ZQKz"),n("zZnE"),n("IpZT"),n("StS+"),n("pkLr"),n("qNQE"),n("dy5W"),n("ykQW"),n("r+/7"),n("5v8a"),n("iwys"),n("BBvl"),n("ScG9"),n("ub06"),n("5p6H"),n("RpuY"),n("srZQ"),n("SKRq"),n("pHO4"),n("PatI"),n("XR71"),n("NOvV"),n("Uvlg"),n("Lssd"),n("Ozq5"),n("VML3"),n("LClL"),n("HUu4"),n("vtHn"),n("dgXD"),n("Plqt"),n("UD+B"),n("/amm"),n("v6xs"),n("svCP"),n("+0Ji"),n("VXtB"),n("6NKQ"),n("9lCb"),n("qm+V"),n("g3vg"),n("z69B"),n("vfw3"),n("zdWg"),n("j8RC"),n("67Ck"),n("9jMf"),n("kIyd"),n("mvrJ"),n("Pic8"),n("1pbG"),n("5uCp"),n("bN7U"),n("q07K"),n("86mp"),n("OGSH"),n("YFUQ"),n("UbPm"),n("uGEk"),n("9mSN"),n("vNV3"),n("IUpl"),n("82j9"),n("Z2Sm"),n("eumZ"),n("RNRn"),n("sSYo"),n("kAWK"),n("asHm"),n("ItUe"),n("CXR1");var o=n("xFbG");e.Subscription=o.Subscription;var s=n("T14+");e.Subscriber=s.Subscriber;var a=n("l6Wf");e.AsyncSubject=a.AsyncSubject;var l=n("0imh");e.ReplaySubject=l.ReplaySubject;var u=n("gvep");e.BehaviorSubject=u.BehaviorSubject;var c=n("xKl2");e.ConnectableObservable=c.ConnectableObservable;var h=n("3lsR");e.Notification=h.Notification;var p=n("TpsG");e.EmptyError=p.EmptyError;var f=n("uT+d");e.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var d=n("Lhvy");e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var m=n("0L2s");e.TimeoutError=m.TimeoutError;var v=n("Emqh");e.UnsubscriptionError=v.UnsubscriptionError;var g=n("H9QY");e.TimeInterval=g.TimeInterval;var b=n("xK8X");e.Timestamp=b.Timestamp;var y=n("MIR9");e.TestScheduler=y.TestScheduler;var w=n("I64N");e.VirtualTimeScheduler=w.VirtualTimeScheduler;var x=n("HPkd");e.AjaxResponse=x.AjaxResponse,e.AjaxError=x.AjaxError,e.AjaxTimeoutError=x.AjaxTimeoutError;var S=n("vxPf");e.pipe=S.pipe;var C=n("wEhC"),O=n("IhB/"),k=n("yR50"),T=n("ruZE"),_=n("dkwD"),L=n("2B7B"),I=n("DP67"),M=n("LMxK");e.operators=M;var A={asap:C.asap,queue:k.queue,animationFrame:T.animationFrame,async:O.async};e.Scheduler=A;var E={rxSubscriber:_.rxSubscriber,observable:I.observable,iterator:L.iterator};e.Symbol=E},DrEP:function(t,e,n){"use strict";function i(t,n){return void 0===n&&(n=e.defaultThrottleConfig),function(e){return e.lift(new a(t,n.leading,n.trailing))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=i;var a=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector,this.leading,this.trailing))},t}(),l=function(t){function e(e,n,i,r){t.call(this,e),this.destination=e,this.durationSelector=n,this._leading=i,this._trailing=r,this._hasTrailingValue=!1}return r(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=s.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this,e=t.throttled;t._trailingValue,t._hasTrailingValue,t._trailing;this._trailingValue=null,this._hasTrailingValue=!1,e&&(this.remove(e),this.throttled=null,e.unsubscribe())},e.prototype._sendTrailing=function(){var t=this,e=t.destination,n=t.throttled,i=t._trailing,r=t._trailingValue,o=t._hasTrailingValue;n&&i&&o&&(e.next(r),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,n,i,r){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(o.OuterSubscriber)},E2ib:function(t,e,n){"use strict";var i=n("bKpL"),r=n("SJ56");i.Observable.prototype.dematerialize=r.dematerialize},EOAD:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=s.async),function(e){return e.lift(new l(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("IhB/");e.timeInterval=i;var a=function(){function t(t,e){this.value=t,this.interval=e}return t}();e.TimeInterval=a;var l=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler))},t}(),u=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return r(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new a(t,n))},e}(o.Subscriber)},EUVd:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(i,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("T14+"),l=n("3lsR");e.delay=i;var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,n,i){t.call(this,e),this.delay=n,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new h(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(l.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(l.Notification.createComplete())},e}(a.Subscriber),h=function(){function t(t,e){this.time=t,this.notification=e}return t}()},EmkH:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d");e.skipLast=i;var a=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new o.Subscriber(t)):e.subscribe(new l(t,this._skipCount))},t}(),l=function(t){function e(e,n){t.call(this,e),this._skipCount=n,this._count=0,this._ring=new Array(n)}return r(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,r=this._ring,o=r[i];r[i]=t,this.destination.next(o)}},e}(o.Subscriber)},EoP3:function(t,e,n){"use strict";var i=n("/oeL"),r=n("1dXy");n.d(e,"a",function(){return s});var o=[r.a,r.b,r.c],s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();s.decorators=[{type:i.NgModule,args:[{declarations:o,exports:o}]}],s.ctorParameters=function(){return[]}},EsGe:function(t,e,n){"use strict";function i(t){return!r.isArray(t)&&t-parseFloat(t)+1>=0}var r=n("NSJx");e.isNumeric=i},"F/7+":function(t,e,n){"use strict";var i=n("SBOU");e.zip=i.zipStatic},F3px:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=s);var n=(t||"").trim();if(0===n.length)return[];var i=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new o(n[0],n[1])}),r=i.filter(function(t){return t.isManual()});if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}function r(t,e,n,r,o,s){var l=i(n),u=[];return 1===l.length&&l[0].isManual()?a:(l.forEach(function(n){n.open===n.close?u.push(t.listen(e,n.open,s)):u.push(t.listen(e,n.open,r),t.listen(e,n.close,o))}),function(){u.forEach(function(t){return t()})})}e.a=r;var o=function(){function t(t,e){this.open=t,this.close=e,e||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),s={hover:["mouseenter","mouseleave"]},a=function(){}},FTnw:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("xFbG");e.finalize=i;var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.callback))},t}(),l=function(t){function e(e,n){t.call(this,e),this.add(new s.Subscription(n))}return r(e,t),e}(o.Subscriber)},Fi2k:function(t,e,n){"use strict";function i(t,e){return r.windowToggle(t,e)(this)}var r=n("bLt9");e.windowToggle=i},Fpv1:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("Io40"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return i(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(r.AsyncAction);e.QueueAction=o},Fq81:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("fclq"),o=n("bKpL"),s=n("xFbG"),a=function(t){function e(e,n,i){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=i}return i(e,t),e.create=function(t,n,i){return new e(t,n,i)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,i=this.selector?function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(i,t);r.isFunction(n)&&t.add(new s.Subscription(function(){n(i,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);e.FromEventPatternObservable=a},"GB+a":function(t,e,n){"use strict";function i(t,e){return r.sequenceEqual(t,e)(this)}var r=n("xJeO");e.sequenceEqual=i},GPwi:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Fhmd");i.Observable.forkJoin=r.forkJoin},GTdq:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.audit(function(){return s.timer(t,e)})}var r=n("IhB/"),o=n("tAjV"),s=n("vioa");e.auditTime=i},GaSD:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(){function t(t,e,n){this.year=t,this.month=e,this.day=n}return t.from=function(e){return e?new t(e.year,e.month,e.day?e.day:1):null},t.prototype.equals=function(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day},t.prototype.before=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)},t.prototype.after=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)},t.prototype.toString=function(){return this.year+"-"+this.month+"-"+this.day},t}()},GeBq:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("rlar");e.windowCount=i;var a=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.windowSize,this.startWindowEvery))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=i,this.windows=[new s.Subject],this.count=0,e.next(this.windows[0])}return r(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(t);var l=this.count-i+1;if(l>=0&&l%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var u=new s.Subject;r.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(o.Subscriber)},GoZW:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.pluck.apply(void 0,t)(this)}var r=n("wcuQ");e.pluck=i},H4tt:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new o.ArrayObservable([e].concat(t)),new c(n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("wZOE"),s=n("NSJx"),a=n("yW9Z"),l=n("ktfo"),u={};e.combineLatest=i;var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.project))},t}();e.CombineLatestOperator=c;var h=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return r(e,t),e.prototype._next=function(t){this.values.push(u),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(l.subscribeToResult(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,s=o[n],a=this.toRespond?s===u?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.OuterSubscriber);e.CombineLatestSubscriber=h},"H6+I":function(t,e,n){!function(t){t(n("oiK7"),n("4thQ"),n("A+1n"))}(function(t){"use strict";t.defineMode("markdown",function(e,n){function i(n){if(t.findModeByName){var i=t.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=t.getMode(e,n);return"null"==r.name?null:r}function r(t,e,n){return e.f=e.inline=n,n(t,e)}function o(t,e,n){return e.f=e.block=n,n(t,e)}function s(t){return!t||!/\S/.test(t.string)}function a(t){return t.linkTitle=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==u&&(t.f=f,t.block=l),t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function l(e,o){var a=e.column()===o.indentation,l=s(o.prevLine.stream),u=o.indentedCode,p=o.prevLine.hr,f=!1!==o.list,d=(o.listStack[o.listStack.length-1]||0)+3;o.indentedCode=!1;var m=o.indentation;if(null===o.indentationDiff&&(o.indentationDiff=o.indentation,f)){for(o.list=null;m<o.listStack[o.listStack.length-1];)o.listStack.pop(),o.listStack.length?o.indentation=o.listStack[o.listStack.length-1]:o.list=!1;!1!==o.list&&(o.indentationDiff=m-o.listStack[o.listStack.length-1])}var v=!(l||p||o.prevLine.header||f&&u||o.prevLine.fencedCodeEnd),b=(!1===o.list||p||l)&&o.indentation<=d&&e.match(O),y=null;if(o.indentationDiff>=4&&(u||o.prevLine.fencedCodeEnd||o.prevLine.header||l))return e.skipToEnd(),o.indentedCode=!0,S.code;if(e.eatSpace())return null;if(a&&o.indentation<=d&&(y=e.match(_))&&y[1].length<=6)return o.quote=0,o.header=y[1].length,o.thisLine.header=!0,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,h(o);if(o.indentation<=d&&e.eat(">"))return o.quote=a?1:o.quote+1,n.highlightFormatting&&(o.formatting="quote"),e.eatSpace(),h(o);if(!b&&!o.setext&&a&&o.indentation<=d&&(y=e.match(k))){var w=y[1]?"ol":"ul";return o.indentation=m+e.current().length,o.list=!0,o.quote=0,o.listStack.push(o.indentation),n.taskLists&&e.match(T,!1)&&(o.taskList=!0),o.f=o.inline,n.highlightFormatting&&(o.formatting=["list","list-"+w]),h(o)}return a&&o.indentation<=d&&(y=e.match(M,!0))?(o.quote=0,o.fencedEndRE=new RegExp(y[1]+"+ *$"),o.localMode=n.fencedCodeBlockHighlighting&&i(y[2]),o.localMode&&(o.localState=t.startState(o.localMode)),o.f=o.block=c,n.highlightFormatting&&(o.formatting="code-block"),o.code=-1,h(o)):o.setext||!(v&&f||o.quote||!1!==o.list||o.code||b||A.test(e.string))&&(y=e.lookAhead(1))&&(y=y.match(L))?(o.setext?(o.header=o.setext,o.setext=0,e.skipToEnd(),n.highlightFormatting&&(o.formatting="header")):(o.header="="==y[0].charAt(0)?1:2,o.setext=o.header),o.thisLine.header=!0,o.f=o.inline,h(o)):b?(e.skipToEnd(),o.hr=!0,o.thisLine.hr=!0,S.hr):"["===e.peek()?r(e,o,g):r(e,o,o.inline)}function u(e,n){var i=w.token(e,n.htmlState);if(!x){var r=t.innerMode(w,n.htmlState);("xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=f,n.block=l,n.htmlState=null)}return i}function c(t,e){var i=e.listStack[e.listStack.length-1]||0,r=e.indentation<i,s=i+3;if(e.fencedEndRE&&e.indentation<=s&&(r||t.match(e.fencedEndRE))){n.highlightFormatting&&(e.formatting="code-block");var a;return r||(a=h(e)),e.localMode=e.localState=null,e.block=l,e.f=f,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,r?o(t,e,e.block):a}return e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),S.code)}function h(t){var e=[];if(t.formatting){e.push(S.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var i=0;i<t.formatting.length;i++)e.push(S.formatting+"-"+t.formatting[i]),"header"===t.formatting[i]&&e.push(S.formatting+"-"+t.formatting[i]+"-"+t.header),"quote"===t.formatting[i]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(S.formatting+"-"+t.formatting[i]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(S.linkHref,"url"):(t.strong&&e.push(S.strong),t.em&&e.push(S.em),t.strikethrough&&e.push(S.strikethrough),t.emoji&&e.push(S.emoji),t.linkText&&e.push(S.linkText),t.code&&e.push(S.code),t.image&&e.push(S.image),t.imageAltText&&e.push(S.imageAltText,"link"),t.imageMarker&&e.push(S.imageMarker)),t.header&&e.push(S.header,S.header+"-"+t.header),t.quote&&(e.push(S.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(S.quote+"-"+t.quote):e.push(S.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var r=(t.listStack.length-1)%3;r?1===r?e.push(S.list2):e.push(S.list3):e.push(S.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function p(t,e){if(t.match(I,!0))return h(e)}function f(e,i){var r=i.text(e,i);if(void 0!==r)return r;if(i.list)return i.list=null,h(i);if(i.taskList){return" "===e.match(T,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,h(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),h(i);var s=e.next();if(i.linkTitle){i.linkTitle=!1;var a=s;"("===s&&(a=")"),a=(a+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var l="^\\s*(?:[^"+a+"\\\\]+|\\\\\\\\|\\\\.)"+a;if(e.match(new RegExp(l),!0))return S.linkHref}if("`"===s){var c=i.formatting;n.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var p=e.current().length;if(0!=i.code||i.quote&&1!=p){if(p==i.code){var v=h(i);return i.code=0,v}return i.formatting=c,h(i)}return i.code=p,h(i)}if(i.code)return h(i);if("\\"===s&&(e.next(),n.highlightFormatting)){var g=h(i),b=S.formatting+"-escape";return g?g+" "+b:b}if("!"===s&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),h(i);if("["===s&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),h(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var g=h(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=m,g}if("["===s&&!i.image)return i.linkText=!0,n.highlightFormatting&&(i.formatting="link"),h(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var g=h(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?m:f,g}if("<"===s&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=d,n.highlightFormatting&&(i.formatting="link");var g=h(i);return g?g+=" ":g="",g+S.linkInline}if("<"===s&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=d,n.highlightFormatting&&(i.formatting="link");var g=h(i);return g?g+=" ":g="",g+S.linkEmail}if(n.xml&&"<"===s&&e.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i,!1)){var y=e.string.indexOf(">",e.pos);if(-1!=y){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(e.string.substring(e.start,y))&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=t.startState(w),o(e,i,u)}if(n.xml&&"<"===s&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,C=1==e.pos?" ":e.string.charAt(e.pos-2);x<3&&e.eat(s);)x++;var O=e.peek()||" ",k=!/\s/.test(O)&&(!E.test(O)||/\s/.test(C)||E.test(C)),_=!/\s/.test(C)&&(!E.test(C)||/\s/.test(O)||E.test(O)),L=null,I=null;if(x%2&&(i.em||!k||"*"!==s&&_&&!E.test(C)?i.em!=s||!_||"*"!==s&&k&&!E.test(O)||(L=!1):L=!0),x>1&&(i.strong||!k||"*"!==s&&_&&!E.test(C)?i.strong!=s||!_||"*"!==s&&k&&!E.test(O)||(I=!1):I=!0),null!=I||null!=L){n.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=s),!0===I&&(i.strong=s);var v=h(i);return!1===L&&(i.em=!1),!1===I&&(i.strong=!1),v}}else if(" "===s&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return h(i);e.backUp(1)}if(n.strikethrough)if("~"===s&&e.eatWhile(s)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");var v=h(i);return i.strikethrough=!1,v}if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),h(i)}else if(" "===s&&e.match(/^~~/,!0)){if(" "===e.peek())return h(i);e.backUp(2)}if(n.emoji&&":"===s&&e.match(/^[a-z_\d+-]+:/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var M=h(i);return i.emoji=!1,M}return" "===s&&(e.match(/ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),h(i)}function d(t,e){if(">"===t.next()){e.f=e.inline=f,n.highlightFormatting&&(e.formatting="link");var i=h(e);return i?i+=" ":i="",i+S.linkInline}return t.match(/^[^>]+/,!0),S.linkInline}function m(t,e){if(t.eatSpace())return null;var i=t.next();return"("===i||"["===i?(e.f=e.inline=v("("===i?")":"]"),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,h(e)):"error"}function v(t){return function(e,i){if(e.next()===t){i.f=i.inline=f,n.highlightFormatting&&(i.formatting="link-string");var r=h(i);return i.linkHref=!1,r}return e.match(N[t]),i.linkHref=!0,h(i)}}function g(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=b,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,h(e)):r(t,e,f)}function b(t,e){if(t.match(/^\]:/,!0)){e.f=e.inline=y,n.highlightFormatting&&(e.formatting="link");var i=h(e);return e.linkText=!1,i}return t.match(/^([^\]\\]|\\.)+/,!0),S.linkText}function y(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=f,S.linkHref+" url")}var w=t.getMode(e,"text/html"),x="null"==w.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var S={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var C in S)S.hasOwnProperty(C)&&n.tokenTypeOverrides[C]&&(S[C]=n.tokenTypeOverrides[C]);var O=/^([*\-_])(?:\s*\1){2,}\s*$/,k=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,T=/^\[(x| )\](?=\s)/i,_=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,L=/^ *(?:\={1,}|-{1,})\s*$/,I=/^[^#!\[\]*_\\<>` "'(~:]+/,M=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,A=/^\s*\[[^\]]+?\]:\s*\S+(\s*\S*\s*)?$/,E=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/,N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},R={startState:function(){return{f:l,prevLine:{stream:null},thisLine:{stream:null},block:l,htmlState:null,indentation:0,inline:f,text:p,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(w,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return a(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=u)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==u?{state:t.htmlState,mode:w}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:R}},indent:function(e,n,i){return e.block==u&&w.indent?w.indent(e.htmlState,n,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,i):t.Pass},blankLine:a,getType:h,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R},"xml"),t.defineMIME("text/x-markdown","markdown")})},H9QY:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=r.async),o.timeInterval(t)(this)}var r=n("IhB/"),o=n("EOAD");e.TimeInterval=o.TimeInterval,e.timeInterval=i},HBVP:function(t,e,n){"use strict";function i(t,e){return r.distinctUntilChanged(function(n,i){return e?e(n[t],i[t]):n[t]===i[t]})}var r=n("2Sjb");e.distinctUntilKeyChanged=i},HHMl:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e}(r.AsyncScheduler);e.QueueScheduler=o},HPkd:function(t,e,n){"use strict";function i(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;if(f.root.XDomainRequest)return new f.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function r(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new f.root.ActiveXObject(t))break}catch(t){}return new f.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new w({method:"GET",url:t,headers:e})}function s(t,e,n){return new w({method:"POST",url:t,body:e,headers:n})}function a(t,e){return new w({method:"DELETE",url:t,headers:e})}function l(t,e,n){return new w({method:"PUT",url:t,body:e,headers:n})}function u(t,e,n){return new w({method:"PATCH",url:t,body:e,headers:n})}function c(t,e){return y(new w({method:"GET",url:t,responseType:"json",headers:e}))}function h(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=n("zijX"),d=n("RdI5"),m=n("XRvs"),v=n("bKpL"),g=n("T14+"),b=n("L8VJ");e.ajaxGet=o,e.ajaxPost=s,e.ajaxDelete=a,e.ajaxPut=l,e.ajaxPatch=u;var y=b.map(function(t,e){return t.response});e.ajaxGetJSON=c;var w=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?i.call(this):r()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);this.request=n}return p(e,t),e.prototype._subscribe=function(t){return new x(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t.delete=a,t.put=l,t.patch=u,t.getJSON=c,t}(),e}(v.Observable);e.AjaxObservable=w;var x=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var i=n.headers=n.headers||{};n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in i||f.root.FormData&&n.body instanceof f.root.FormData||void 0===n.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return p(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,i=e.request,r=e.destination,o=new S(t,n,i);r.next(o)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,i=n.user,r=n.method,o=n.url,s=n.async,a=n.password,l=n.headers,u=n.body,c=e.createXHR,h=d.tryCatch(c).call(e);if(h===m.errorObject)this.error(m.errorObject.e);else{this.xhr=h,this.setupEvents(h,e);if((i?d.tryCatch(h.open).call(h,r,o,s,i,a):d.tryCatch(h.open).call(h,r,o,s))===m.errorObject)return this.error(m.errorObject.e),null;if(s&&(h.timeout=e.timeout,h.responseType=e.responseType),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,l),(u?d.tryCatch(h.send).call(h,u):d.tryCatch(h.send).call(h))===m.errorObject)return this.error(m.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(f.root.FormData&&t instanceof f.root.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){function n(t){var e=n,i=e.subscriber,r=e.progressSubscriber,o=e.request;r&&r.error(t),i.error(new O(this,o))}function i(t){var e=i,n=e.subscriber,r=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(r&&r.complete(),n.next(t),n.complete()):(r&&r.error(t),n.error(new C("ajax error "+s,this,o)))}}var r=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=r,t.upload&&"withCredentials"in t){if(r){var o;o=function(t){o.progressSubscriber.next(t)},f.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=r}var s;s=function(t){var e=s,n=e.progressSubscriber,i=e.subscriber,r=e.request;n&&n.error(t),i.error(new C("ajax error",this,r))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=r}t.onreadystatechange=i,i.subscriber=this,i.progressSubscriber=r,i.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,i=e.xhr;!n&&i&&4!==i.readyState&&"function"==typeof i.abort&&i.abort(),t.prototype.unsubscribe.call(this)},e}(g.Subscriber);e.AjaxSubscriber=x;var S=function(){function t(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=h(this.responseType,e)}return t}();e.AjaxResponse=S;var C=function(t){function e(e,n,i){t.call(this,e),this.message=e,this.xhr=n,this.request=i,this.status=n.status,this.responseType=n.responseType||i.responseType,this.response=h(this.responseType,n)}return p(e,t),e}(Error);e.AjaxError=C;var O=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return p(e,t),e}(C);e.AjaxTimeoutError=O},HRzg:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},HTfL:function(t,e,n){"use strict";var i=n("CQyF");e._throw=i.ErrorObservable.create},HUu4:function(t,e,n){"use strict";var i=n("bKpL"),r=n("AzAY");i.Observable.prototype.publishReplay=r.publishReplay},Hg2u:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),function(e){return 0===t?new s.EmptyObservable:t<0?e.lift(new a(-1,e)):e.lift(new a(t-1,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("fcnB");e.repeat=i;var a=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.count,this.source))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.count=n,this.source=i}return r(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,n=e.source,i=e.count;if(0===i)return t.prototype.complete.call(this);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},Hjei:function(t,e,n){"use strict";var i=n("/oeL"),r=n("+E40");n.d(e,"d",function(){return s}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return l}),n.d(e,"a",function(){return u});var o=0,s=function(){function t(t){this.templateRef=t}return t}();s.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbTabTitle]"}]}],s.ctorParameters=function(){return[{type:i.TemplateRef}]};var a=function(){function t(t){this.templateRef=t}return t}();a.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbTabContent]"}]}],a.ctorParameters=function(){return[{type:i.TemplateRef}]};var l=function(){function t(){this.id="ngb-tab-"+o++,this.disabled=!1}return t}();l.decorators=[{type:i.Directive,args:[{selector:"ngb-tab"}]}],l.ctorParameters=function(){return[]},l.propDecorators={id:[{type:i.Input}],title:[{type:i.Input}],disabled:[{type:i.Input}],contentTpl:[{type:i.ContentChild,args:[a]}],titleTpl:[{type:i.ContentChild,args:[s]}]};var u=function(){function t(t){this.destroyOnHide=!0,this.tabChange=new i.EventEmitter,this.type=t.type,this.justify=t.justify}return t.prototype.select=function(t){var e=this._getTabById(t);if(e&&!e.disabled&&this.activeId!==e.id){var n=!1;this.tabChange.emit({activeId:this.activeId,nextId:e.id,preventDefault:function(){n=!0}}),n||(this.activeId=e.id)}},t.prototype.ngAfterContentChecked=function(){var t=this._getTabById(this.activeId);this.activeId=t?t.id:this.tabs.length?this.tabs.first.id:null},t.prototype._getTabById=function(t){var e=this.tabs.filter(function(e){return e.id===t});return e.length?e[0]:null},t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-tabset",exportAs:"ngbTabset",template:'\n    <ul [class]="\'nav nav-\' + type + \' justify-content-\' + justify" role="tablist">\n      <li class="nav-item" *ngFor="let tab of tabs">\n        <a [id]="tab.id" class="nav-link" [class.active]="tab.id === activeId" [class.disabled]="tab.disabled"\n          href (click)="!!select(tab.id)" role="tab" [attr.tabindex]="(tab.disabled ? \'-1\': undefined)"\n          [attr.aria-controls]="(!destroyOnHide || tab.id === activeId ? tab.id + \'-panel\' : null)"\n          [attr.aria-expanded]="tab.id === activeId" [attr.aria-disabled]="tab.disabled">\n          {{tab.title}}<ng-template [ngTemplateOutlet]="tab.titleTpl?.templateRef"></ng-template>\n        </a>\n      </li>\n    </ul>\n    <div class="tab-content">\n      <ng-template ngFor let-tab [ngForOf]="tabs">\n        <div\n          class="tab-pane {{tab.id === activeId ? \'active\' : null}}"\n          *ngIf="!destroyOnHide || tab.id === activeId"\n          role="tabpanel"\n          [attr.aria-labelledby]="tab.id" id="{{tab.id}}-panel"\n          [attr.aria-expanded]="tab.id === activeId">\n          <ng-template [ngTemplateOutlet]="tab.contentTpl.templateRef"></ng-template>\n        </div>\n      </ng-template>\n    </div>\n  '}]}],u.ctorParameters=function(){return[{type:r.a}]},u.propDecorators={tabs:[{type:i.ContentChildren,args:[l]}],activeId:[{type:i.Input}],destroyOnHide:[{type:i.Input}],justify:[{type:i.Input}],type:[{type:i.Input}],tabChange:[{type:i.Output}]}},"Hr+Y":function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=a.async),function(n){return n.lift(new l(t,e))}}function r(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/");e.debounceTime=i;var l=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.dueTime,this.scheduler))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.dueTime=n,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(r,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},HyAm:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(r.AsyncScheduler);e.AsapScheduler=o},I2Y9:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("1VPd"),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return i(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}},e}(r.Scheduler);e.AsyncScheduler=o},I64N:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("Io40"),o=n("I2Y9"),s=function(t){function e(e,n){var i=this;void 0===e&&(e=a),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this,e,function(){return i.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return i(e,t),e.prototype.flush=function(){for(var t,e,n=this,i=n.actions,r=n.maxFrames;(e=i.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=i.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(o.AsyncScheduler);e.VirtualTimeScheduler=s;var a=function(t){function e(e,n,i){void 0===i&&(i=e.index+=1),t.call(this,e,n),this.scheduler=e,this.work=n,this.index=i,this.active=!0,this.index=e.index=i}return i(e,t),e.prototype.schedule=function(n,i){if(void 0===i&&(i=0),!this.id)return t.prototype.schedule.call(this,n,i);this.active=!1;var r=new e(this.scheduler,this.work);return this.add(r),r.schedule(n,i)},e.prototype.requestAsyncId=function(t,n,i){void 0===i&&(i=0),this.delay=t.frame+i;var r=t.actions;return r.push(this),r.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(r.AsyncAction);e.VirtualAction=a},IBeK:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("4Q/O"),s=n("Av3o"),a=n("Pc3Y"),l=n("bAfU"),u=n("bm2B"),c=n("+oJC"),h=n("CuDZ"),p=n("KSV9"),f=n("lA7/"),d=n("JNkN"),m=n("HRzg");n("vg2M");n.d(e,"a",function(){return v});var v=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[{provide:p.a,useClass:p.b},{provide:h.a,useClass:h.b},{provide:f.a,useClass:f.b},m.a]}},t}();v.decorators=[{type:i.NgModule,args:[{declarations:[o.a,s.a,a.a,d.a,c.a,l.a],exports:[o.a,l.a],imports:[r.CommonModule,u.FormsModule],entryComponents:[o.a]}]}],v.ctorParameters=function(){return[]}},IOeT:function(t,e,n){"use strict";function i(t){return r.combineAll(t)(this)}var r=n("7xz3");e.combineAll=i},IUpl:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Y+l6");i.Observable.prototype.toArray=r.toArray},IfwN:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new r.FindValueOperator(t,n,!0,e))}}var r=n("0dhf");e.findIndex=i},"IhB/":function(t,e,n){"use strict";var i=n("Io40"),r=n("I2Y9");e.async=new r.AsyncScheduler(i.AsyncAction)},IkMW:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new r.ZipOperator(t))}}var r=n("SBOU");e.zipAll=i},IkMs:function(t,e,n){"use strict";function i(t){return u["ɵvid"](0,[(t()(),u["ɵted"](-1,null,["\n       "])),(t()(),u["ɵeld"](1,0,null,null,1,"div",[["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"btn-secondary",null]],null,null,c.a,c.b)),u["ɵdid"](2,49152,null,0,h.a,[],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],selected:[3,"selected"]},null),(t()(),u["ɵted"](-1,null,["\n    "]))],function(t,e){t(e,2,0,e.context.currentMonth,e.context.date,e.context.disabled,e.context.selected)},function(t,e){t(e,1,0,u["ɵnov"](e,2).selected,u["ɵnov"](e,2).selected,u["ɵnov"](e,2).isMuted(),u["ɵnov"](e,2).isMuted(),!u["ɵnov"](e,2).disabled)})}function r(t){return u["ɵvid"](0,[(t()(),u["ɵeld"](0,0,null,null,2,"ngb-datepicker-navigation",[["class","d-flex justify-content-between"]],[[2,"collapsed",null]],[[null,"navigate"],[null,"select"]],function(t,e,n){var i=!0,r=t.component;if("navigate"===e){i=!1!==r.onNavigateEvent(n)&&i}if("select"===e){i=!1!==r.onNavigateDateSelect(n)&&i}return i},p.a,p.b)),u["ɵdid"](1,49152,null,0,f.a,[d.a,m.a],{date:[0,"date"],disabled:[1,"disabled"],maxDate:[2,"maxDate"],minDate:[3,"minDate"],months:[4,"months"],showSelect:[5,"showSelect"],showWeekNumbers:[6,"showWeekNumbers"]},{navigate:"navigate",select:"select"}),(t()(),u["ɵted"](-1,null,["\n      "]))],function(t,e){var n=e.component;t(e,1,0,null==n.months[0]?null:n.months[0].firstDate,n.disabled,n._maxDate,n._minDate,n.months.length,"select"===n.navigation,n.showWeekNumbers)},function(t,e){t(e,0,0,!u["ɵnov"](e,1).showSelect)})}function o(t){return u["ɵvid"](0,[(t()(),u["ɵeld"](0,0,null,null,1,"div",[["class","ngb-dp-month-name text-center"]],null,null,null,null,null)),(t()(),u["ɵted"](1,null,["\n            "," ","\n          "]))],null,function(t,e){t(e,1,0,e.component.i18n.getMonthFullName(e.parent.context.$implicit.number),e.parent.context.$implicit.year)})}function s(t){return u["ɵvid"](0,[(t()(),u["ɵted"](-1,null,["\n        "])),(t()(),u["ɵeld"](1,0,null,null,8,"div",[["class","ngb-dp-month d-block ml-3"]],null,null,null,null,null)),(t()(),u["ɵted"](-1,null,["            \n          "])),(t()(),u["ɵand"](16777216,null,null,1,null,o)),u["ɵdid"](4,16384,null,0,v.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),u["ɵted"](-1,null,["\n          "])),(t()(),u["ɵeld"](6,0,null,null,2,"ngb-datepicker-month-view",[["class","d-block"]],null,[[null,"select"]],function(t,e,n){var i=!0,r=t.component;if("select"===e){i=!1!==r.onDateSelect(n)&&i}return i},g.a,g.b)),u["ɵdid"](7,49152,null,0,b.a,[d.a],{dayTemplate:[0,"dayTemplate"],disabled:[1,"disabled"],month:[2,"month"],outsideDays:[3,"outsideDays"],selectedDate:[4,"selectedDate"],showWeekdays:[5,"showWeekdays"],showWeekNumbers:[6,"showWeekNumbers"]},{select:"select"}),(t()(),u["ɵted"](-1,null,["\n          "])),(t()(),u["ɵted"](-1,null,["\n        "])),(t()(),u["ɵted"](-1,null,["\n      "]))],function(t,e){var n=e.component;t(e,4,0,"select"!==n.navigation||n.displayMonths>1),t(e,7,0,n.dayTemplate||u["ɵnov"](e.parent,1),n.disabled,e.context.$implicit,1===n.displayMonths?n.outsideDays:"hidden",n.model,n.showWeekdays,n.showWeekNumbers)},null)}function a(t){return u["ɵvid"](0,[(t()(),u["ɵted"](-1,null,["\n    "])),(t()(),u["ɵand"](0,[["dt",2]],null,0,null,i)),(t()(),u["ɵted"](-1,null,["\n    \n    "])),(t()(),u["ɵeld"](3,0,null,null,4,"div",[["class","ngb-dp-header bg-faded pt-1 rounded-top"]],[[4,"height","rem"],[4,"marginBottom","rem"]],null,null,null,null)),(t()(),u["ɵted"](-1,null,["\n      "])),(t()(),u["ɵand"](16777216,null,null,1,null,r)),u["ɵdid"](6,16384,null,0,v.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),u["ɵted"](-1,null,["\n    "])),(t()(),u["ɵted"](-1,null,["\n\n    "])),(t()(),u["ɵeld"](9,0,null,null,4,"div",[["class","ngb-dp-months d-flex px-1 pb-1"]],null,null,null,null,null)),(t()(),u["ɵted"](-1,null,["\n      "])),(t()(),u["ɵand"](16777216,null,null,1,null,s)),u["ɵdid"](12,802816,null,0,v.NgForOf,[u.ViewContainerRef,u.TemplateRef,u.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),u["ɵted"](-1,null,["\n    "])),(t()(),u["ɵted"](-1,null,["\n  "]))],function(t,e){var n=e.component;t(e,6,0,"none"!==n.navigation),t(e,12,0,n.months)},function(t,e){var n=e.component;t(e,3,0,n.getHeaderHeight(),0-n.getHeaderMargin())})}function l(t){return u["ɵvid"](0,[(t()(),u["ɵeld"](0,0,null,null,3,"ngb-datepicker",[["class","d-inline-block rounded"]],null,null,null,a,O)),u["ɵprd"](5120,null,w.NG_VALUE_ACCESSOR,function(t){return[t]},[y.a]),u["ɵprd"](512,null,x.a,x.a,[m.a]),u["ɵdid"](3,638976,null,0,y.a,[x.a,m.a,d.a,S.a],null,null)],function(t,e){t(e,3,0)},null)}var u=n("/oeL"),c=n("RnhI"),h=n("+oJC"),p=n("uy4m"),f=n("Pc3Y"),d=n("CuDZ"),m=n("KSV9"),v=n("qbdv"),g=n("TfLl"),b=n("Av3o"),y=n("4Q/O"),w=n("bm2B"),x=n("/6Tg"),S=n("HRzg");n.d(e,"a",function(){return k});var C=["[_nghost-%COMP%] {\n      border: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-header[_ngcontent-%COMP%] {\n      border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n    }\n    .ngb-dp-month[_ngcontent-%COMP%] {\n      pointer-events: none;\n    }\n    ngb-datepicker-month-view[_ngcontent-%COMP%] {\n      pointer-events: auto;\n    }\n    .ngb-dp-month[_ngcontent-%COMP%]:first-child {\n      margin-left: 0 !important;\n    }    \n    .ngb-dp-month-name[_ngcontent-%COMP%] {\n      font-size: larger;\n      height: 2rem;\n      line-height: 2rem;\n    }"],O=u["ɵcrt"]({encapsulation:0,styles:C,data:{}}),k=u["ɵccf"]("ngb-datepicker",y.a,l,{dayTemplate:"dayTemplate",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate"},[])},Io40:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("zijX"),o=n("XNum"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),r.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:r.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(o.Action);e.AsyncAction=s},IpZT:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ZQVD");i.Observable.prototype.ignoreElements=r.ignoreElements},IqVs:function(t,e,n){"use strict";var i=n("zijX"),r=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}();e.RequestAnimationFrameDefinition=r,e.AnimationFrame=new r(i.root)},ItUe:function(t,e,n){"use strict";var i=n("bKpL"),r=n("0I3B");i.Observable.prototype.zip=r.zipProto},JCyH:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("qIlB"),o=n("Io40"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return i(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=r.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(r.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(o.AsyncAction);e.AsapAction=s},JFa0:function(t,e,n){"use strict";var i=n("/oeL"),r=n("F3px"),o=n("75Hr"),s=n("uJci"),a=n("QGDq");n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var l=0,u=function(){function t(){this.placement="top"}return t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-tooltip-window",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{"[class]":'"tooltip show tooltip-" + placement',role:"tooltip","[id]":"id"},template:'\n    <div class="tooltip-inner"><ng-content></ng-content></div>\n    '}]}],u.ctorParameters=function(){return[]},u.propDecorators={placement:[{type:i.Input}],id:[{type:i.Input}]};var c=function(){function t(t,e,r,a,c,h,p){var f=this;this._elementRef=t,this._renderer=e,this.shown=new i.EventEmitter,this.hidden=new i.EventEmitter,this._ngbTooltipWindowId="ngb-tooltip-"+l++,this.placement=h.placement,this.triggers=h.triggers,this.container=h.container,this._popupService=new s.a(u,r,c,e,a),this._zoneSubscription=p.onStable.subscribe(function(){f._windowRef&&n.i(o.a)(f._elementRef.nativeElement,f._windowRef.location.nativeElement,f.placement,"body"===f.container)})}return Object.defineProperty(t.prototype,"ngbTooltip",{get:function(){return this._ngbTooltip},set:function(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()},enumerable:!0,configurable:!0}),t.prototype.open=function(t){!this._windowRef&&this._ngbTooltip&&(this._windowRef=this._popupService.open(this._ngbTooltip,t),this._windowRef.instance.placement=this.placement,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.markForCheck(),this.shown.emit())},t.prototype.close=function(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=n.i(r.a)(this._renderer,this._elementRef.nativeElement,this.triggers,this.open.bind(this),this.close.bind(this),this.toggle.bind(this))},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}();c.decorators=[{type:i.Directive,args:[{selector:"[ngbTooltip]",exportAs:"ngbTooltip"}]}],c.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:i.ComponentFactoryResolver},{type:i.ViewContainerRef},{type:a.a},{type:i.NgZone}]},c.propDecorators={placement:[{type:i.Input}],triggers:[{type:i.Input}],container:[{type:i.Input}],shown:[{type:i.Output}],hidden:[{type:i.Output}],ngbTooltip:[{type:i.Input}]}},JNTq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("LEug");i.Observable.merge=r.merge},JNkN:function(t,e,n){"use strict";var i=n("/oeL"),r=n("GaSD"),o=n("wM1e"),s=n("CuDZ"),a=n("KSV9");n.d(e,"a",function(){return l});var l=function(){function t(t,e){this.i18n=t,this.calendar=e,this.years=[],this.select=new i.EventEmitter,this.months=e.getMonths()}return t.prototype.ngOnChanges=function(t){(t.maxDate||t.minDate||t.date)&&(this._generateYears(),this._generateMonths())},t.prototype.changeMonth=function(t){this.select.emit(new r.a(this.date.year,n.i(o.b)(t),1))},t.prototype.changeYear=function(t){this.select.emit(new r.a(n.i(o.b)(t),this.date.month,1))},t.prototype._generateMonths=function(){var t=this;if(this.months=this.calendar.getMonths(),this.date&&this.date.year===this.minDate.year){var e=this.months.findIndex(function(e){return e===t.minDate.month});this.months=this.months.slice(e)}if(this.date&&this.date.year===this.maxDate.year){var e=this.months.findIndex(function(e){return e===t.maxDate.month});this.months=this.months.slice(0,e+1)}},t.prototype._generateYears=function(){var t=this;this.years=Array.from({length:this.maxDate.year-this.minDate.year+1},function(e,n){return t.minDate.year+n})},t}();l.decorators=[{type:i.Component,args:[{selector:"ngb-datepicker-navigation-select",styles:["\n    select {\n      /* to align with btn-sm */\n      padding: 0.25rem 0.5rem;\n      font-size: 0.875rem;      \n      line-height: 1.25;\n      /* to cancel the custom height set by custom-select */\n      height: inherit;\n      width: 50%;\n    }\n  "],template:'\n    <select [disabled]="disabled" class="custom-select d-inline-block" [value]="date?.month" (change)="changeMonth($event.target.value)">\n      <option *ngFor="let m of months" [value]="m">{{ i18n.getMonthShortName(m) }}</option>\n    </select><select [disabled]="disabled" class="custom-select d-inline-block" [value]="date?.year" (change)="changeYear($event.target.value)">\n      <option *ngFor="let y of years" [value]="y">{{ y }}</option>\n    </select> \n  '}]}],l.ctorParameters=function(){return[{type:s.a},{type:a.a}]},l.propDecorators={date:[{type:i.Input}],disabled:[{type:i.Input}],maxDate:[{type:i.Input}],minDate:[{type:i.Input}],select:[{type:i.Output}]}},JSgX:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7kbP");i.Observable.concat=r.concat},K5Xx:function(t,e,n){"use strict";function i(t){return r.publish(t)(this)}var r=n("zBM/");e.publish=i},KPCT:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[o["ɵqud"](402653184,1,{host:0}),(t()(),o["ɵeld"](1,0,[[1,0],["host",1]],null,0,"textarea",[],null,null,null,null,null))],null,null)}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,2,"codemirror",[],null,null,null,i,u)),o["ɵprd"](5120,null,s.NG_VALUE_ACCESSOR,function(t){return[t]},[a.CodemirrorComponent]),o["ɵdid"](2,4374528,null,0,a.CodemirrorComponent,[],null,null)],null,null)}var o=n("/oeL"),s=n("bm2B"),a=n("nfVm");n.n(a);n.d(e,"b",function(){return u}),e.a=i;var l=[],u=o["ɵcrt"]({encapsulation:2,styles:l,data:{}});o["ɵccf"]("codemirror",a.CodemirrorComponent,r,{config:"config",value:"value"},{change:"change",focus:"focus",blur:"blur",cursorActivity:"cursorActivity",instance:"instance"},[])},KRwK:function(t,e,n){"use strict";var i=n("/oeL"),r=n("uJci"),o=n("wM1e"),s=n("1Dsc"),a=n("AVYa"),l=n("C8VA");n.d(e,"a",function(){return u});var u=function(){function t(t,e,n){this._applicationRef=t,this._injector=e,this._componentFactoryResolver=n,this._backdropFactory=n.resolveComponentFactory(s.a),this._windowFactory=n.resolveComponentFactory(a.a)}return t.prototype.open=function(t,e,n,i){var r=i.container||"body",o=document.querySelector(r);if(!o)throw new Error('The specified modal container "'+r+'" was not found in the DOM.');var s,a,u,c=new l.a,h=this._getContentRef(t,e,n,c);return!1!==i.backdrop&&(a=this._backdropFactory.create(this._injector),this._applicationRef.attachView(a.hostView),o.appendChild(a.location.nativeElement)),s=this._windowFactory.create(this._injector,h.nodes),this._applicationRef.attachView(s.hostView),o.appendChild(s.location.nativeElement),u=new l.b(s,h,a),c.close=function(t){u.close(t)},c.dismiss=function(t){u.dismiss(t)},this._applyWindowOptions(s.instance,i),u},t.prototype._applyWindowOptions=function(t,e){["backdrop","keyboard","size","windowClass"].forEach(function(i){n.i(o.h)(e[i])&&(t[i]=e[i])})},t.prototype._getContentRef=function(t,e,s,a){if(s){if(s instanceof i.TemplateRef){var u=s.createEmbeddedView(a);return this._applicationRef.attachView(u),new r.b([u.rootNodes],u)}if(n.i(o.f)(s))return new r.b([[document.createTextNode(""+s)]]);var c=t.resolveComponentFactory(s),h=i.ReflectiveInjector.resolveAndCreate([{provide:l.a,useValue:a}],e),p=c.create(h);return this._applicationRef.attachView(p.hostView),new r.b([[p.location.nativeElement]],p.hostView,p)}return new r.b([])},t}();u.decorators=[{type:i.Injectable}],u.ctorParameters=function(){return[{type:i.ApplicationRef},{type:i.Injector},{type:i.ComponentFactoryResolver}]}},KSV9:function(t,e,n){"use strict";function i(t){return new o.a(t.getFullYear(),t.getMonth()+1,t.getDate())}function r(t){var e=new Date(t.year,t.month-1,t.day);return isNaN(e.getTime())||e.setFullYear(t.year),e}var o=n("GaSD"),s=n("/oeL"),a=n("wM1e");n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(){function t(){}return t}();u.decorators=[{type:s.Injectable}],u.ctorParameters=function(){return[]};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.getNext=function(t,e,n){void 0===e&&(e="d"),void 0===n&&(n=1);var s=r(t);switch(e){case"y":return new o.a(t.year+n,1,1);case"m":s=new Date(t.year,t.month+n-1,1);break;case"d":s.setDate(s.getDate()+n);break;default:return t}return i(s)},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=r(t),n=e.getDay();return 0===n?7:n},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=(11-e)%7,i=t[n],o=r(i);o.setDate(o.getDate()+4-(o.getDay()||7));var s=o.getTime();return o.setMonth(0),o.setDate(1),Math.floor(Math.round((s-o.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return i(new Date)},e.prototype.isValid=function(t){if(!(t&&n.i(a.i)(t.year)&&n.i(a.i)(t.month)&&n.i(a.i)(t.day)))return!1;var e=r(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day},e}(u);c.decorators=[{type:s.Injectable}],c.ctorParameters=function(){return[]}},"Kt+M":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.concat.apply(void 0,t)(this)}var r=n("vNxK");e.concat=i},Kuy3:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),r.subscribeOn(t,e)(this)}var r=n("qHrI");e.subscribeOn=i},L0Qg:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new a)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("3lsR");e.materialize=i;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype._next=function(t){this.destination.next(s.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(s.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(s.Notification.createComplete()),t.complete()},e}(o.Subscriber)},L5DB:function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("wM1e"),s=n("wsck"),a=n("V6Dl");n.d(e,"a",function(){return u});var l={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return u}),multi:!0},u=function(){function t(t){this.onChange=function(t){},this.onTouched=function(){},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}return t.prototype.writeValue=function(t){this.model=t?new s.a(t.hour,t.minute,t.second):new s.a,this.seconds||t&&n.i(o.a)(t.second)||(this.model.second=0)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.changeHour=function(t){this.model.changeHour(t),this.propagateModelChange()},t.prototype.changeMinute=function(t){this.model.changeMinute(t),this.propagateModelChange()},t.prototype.changeSecond=function(t){this.model.changeSecond(t),this.propagateModelChange()},t.prototype.updateHour=function(t){this.model.updateHour(n.i(o.b)(t)),this.propagateModelChange()},t.prototype.updateMinute=function(t){this.model.updateMinute(n.i(o.b)(t)),this.propagateModelChange()},t.prototype.updateSecond=function(t){this.model.updateSecond(n.i(o.b)(t)),this.propagateModelChange()},t.prototype.toggleMeridian=function(){this.meridian&&this.changeHour(12)},t.prototype.formatHour=function(t){return n.i(o.a)(t)?this.meridian?n.i(o.c)(t%12==0?12:t%12):n.i(o.c)(t%24):n.i(o.c)(NaN)},t.prototype.formatMinSec=function(t){return n.i(o.c)(t)},t.prototype.setFormControlSize=function(){return{"form-control-sm":"small"===this.size,"form-control-lg":"large"===this.size}},t.prototype.setButtonSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},t.prototype.ngOnChanges=function(t){t.seconds&&!this.seconds&&this.model&&!n.i(o.a)(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))},t.prototype.propagateModelChange=function(t){void 0===t&&(t=!0),t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange({hour:this.model.hour,minute:this.model.minute,second:this.model.second}):this.onChange(null)},t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-timepicker",styles:["\n    .ngb-tp {\n      display: flex;\n      align-items: center;\n    }\n\n    .ngb-tp-hour, .ngb-tp-minute, .ngb-tp-second, .ngb-tp-meridian {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: space-around;\n    }\n\n    .ngb-tp-spacer {\n      width: 1em;\n      text-align: center;\n    }\n\n    .chevron::before {\n      border-style: solid;\n      border-width: 0.29em 0.29em 0 0;\n      content: '';\n      display: inline-block;\n      height: 0.69em;\n      left: 0.05em;\n      position: relative;\n      top: 0.15em;\n      transform: rotate(-45deg);\n      -webkit-transform: rotate(-45deg);\n      -ms-transform: rotate(-45deg);\n      vertical-align: middle;\n      width: 0.71em;\n    }\n\n    .chevron.bottom:before {\n      top: -.3em;\n      -webkit-transform: rotate(135deg);\n      -ms-transform: rotate(135deg);\n      transform: rotate(135deg);\n    }\n\n    .btn-link {\n      outline: 0;\n    }\n\n    .btn-link.disabled {\n      cursor: not-allowed;\n      opacity: .65;\n    }\n\n    input {\n      text-align: center;\n      display: inline-block;\n      width: auto;\n    }\n  "],template:'\n    <fieldset [disabled]="disabled" [class.disabled]="disabled">\n      <div class="ngb-tp">\n        <div class="ngb-tp-hour">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeHour(hourStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron"></span>\n            <span class="sr-only">Increment hours</span>\n          </button>\n          <input type="text" class="form-control" [ngClass]="setFormControlSize()" maxlength="2" size="2" placeholder="HH"\n            [value]="formatHour(model?.hour)" (change)="updateHour($event.target.value)"\n            [readonly]="readonlyInputs" [disabled]="disabled" aria-label="Hours">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeHour(-hourStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron bottom"></span>\n            <span class="sr-only">Decrement hours</span>\n          </button>\n        </div>\n        <div class="ngb-tp-spacer">:</div>\n        <div class="ngb-tp-minute">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeMinute(minuteStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron"></span>\n            <span class="sr-only">Increment minutes</span>\n          </button>\n          <input type="text" class="form-control" [ngClass]="setFormControlSize()" maxlength="2" size="2" placeholder="MM"\n            [value]="formatMinSec(model?.minute)" (change)="updateMinute($event.target.value)"\n            [readonly]="readonlyInputs" [disabled]="disabled" aria-label="Minutes">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeMinute(-minuteStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron bottom"></span>\n            <span class="sr-only">Decrement minutes</span>\n          </button>\n        </div>\n        <div *ngIf="seconds" class="ngb-tp-spacer">:</div>\n        <div *ngIf="seconds" class="ngb-tp-second">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeSecond(secondStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron"></span>\n            <span class="sr-only">Increment seconds</span>\n          </button>\n          <input type="text" class="form-control" [ngClass]="setFormControlSize()" maxlength="2" size="2" placeholder="SS"\n            [value]="formatMinSec(model?.second)" (change)="updateSecond($event.target.value)"\n            [readonly]="readonlyInputs" [disabled]="disabled" aria-label="Seconds">\n          <button *ngIf="spinners" type="button" class="btn-link" [ngClass]="setButtonSize()" (click)="changeSecond(-secondStep)"\n            [disabled]="disabled" [class.disabled]="disabled">\n            <span class="chevron bottom"></span>\n            <span class="sr-only">Decrement seconds</span>\n          </button>\n        </div>\n        <div *ngIf="meridian" class="ngb-tp-spacer"></div>\n        <div *ngIf="meridian" class="ngb-tp-meridian">\n          <button type="button" class="btn btn-outline-primary" [ngClass]="setButtonSize()"\n            [disabled]="disabled" [class.disabled]="disabled"\n            (click)="toggleMeridian()">{{model.hour >= 12 ? \'PM\' : \'AM\'}}</button>\n        </div>\n      </div>\n    </fieldset>\n  ',providers:[l]}]}],u.ctorParameters=function(){return[{type:a.a}]},u.propDecorators={meridian:[{type:i.Input}],spinners:[{type:i.Input}],seconds:[{type:i.Input}],hourStep:[{type:i.Input}],minuteStep:[{type:i.Input}],secondStep:[{type:i.Input}],readonlyInputs:[{type:i.Input}],size:[{type:i.Input}]}},LBqD:function(t,e,n){"use strict";function i(){return r.pairwise()(this)}var r=n("9FjR");e.pairwise=i},LClL:function(t,e,n){"use strict";var i=n("bKpL"),r=n("saEi");i.Observable.prototype.publishBehavior=r.publishBehavior},LMxK:function(t,e,n){"use strict";var i=n("tAjV");e.audit=i.audit;var r=n("GTdq");e.auditTime=r.auditTime;var o=n("+vKo");e.buffer=o.buffer;var s=n("5NGA");e.bufferCount=s.bufferCount;var a=n("duFl");e.bufferTime=a.bufferTime;var l=n("6QEA");e.bufferToggle=l.bufferToggle;var u=n("v1IT");e.bufferWhen=u.bufferWhen;var c=n("g1RG");e.catchError=c.catchError;var h=n("7xz3");e.combineAll=h.combineAll;var p=n("H4tt");e.combineLatest=p.combineLatest;var f=n("vNxK");e.concat=f.concat;var d=n("NiCh");e.concatAll=d.concatAll;var m=n("+FJ1");e.concatMap=m.concatMap;var v=n("0mJJ");e.concatMapTo=v.concatMapTo;var g=n("ip92");e.count=g.count;var b=n("2l91");e.debounce=b.debounce;var y=n("Hr+Y");e.debounceTime=y.debounceTime;var w=n("PbxL");e.defaultIfEmpty=w.defaultIfEmpty;var x=n("EUVd");e.delay=x.delay;var S=n("aeUV");e.delayWhen=S.delayWhen;var C=n("pguX");e.dematerialize=C.dematerialize;var O=n("y+rW");e.distinct=O.distinct;var k=n("2Sjb");e.distinctUntilChanged=k.distinctUntilChanged;var T=n("HBVP");e.distinctUntilKeyChanged=T.distinctUntilKeyChanged;var _=n("k6cv");e.elementAt=_.elementAt;var L=n("GiTH");e.every=L.every;var I=n("weui");e.exhaust=I.exhaust;var M=n("NzSV");e.exhaustMap=M.exhaustMap;var A=n("y23k");e.expand=A.expand;var E=n("Hd11");e.filter=E.filter;var N=n("FTnw");e.finalize=N.finalize;var R=n("0dhf");e.find=R.find;var D=n("IfwN");e.findIndex=D.findIndex;var P=n("+BWq");e.first=P.first;var j=n("8H5Y");e.groupBy=j.groupBy;var F=n("XG4q");e.ignoreElements=F.ignoreElements;var W=n("C4ew");e.isEmpty=W.isEmpty;var H=n("zrH4");e.last=H.last;var V=n("L8VJ");e.map=V.map;var z=n("6d3x");e.mapTo=z.mapTo;var B=n("L0Qg");e.materialize=B.materialize;var q=n("jjPq");e.max=q.max;var K=n("QHK3");e.merge=K.merge;var U=n("8rcZ");e.mergeAll=U.mergeAll;var G=n("mjx3");e.mergeMap=G.mergeMap;var Y=n("mjx3");e.flatMap=Y.mergeMap;var X=n("j8LY");e.mergeMapTo=X.mergeMapTo;var J=n("t9cH");e.mergeScan=J.mergeScan;var Z=n("y3SI");e.min=Z.min;var Q=n("P02W");e.multicast=Q.multicast;var $=n("GDiU");e.observeOn=$.observeOn;var tt=n("r6G9");e.onErrorResumeNext=tt.onErrorResumeNext;var et=n("9FjR");e.pairwise=et.pairwise;var nt=n("hfga");e.partition=nt.partition;var it=n("wcuQ");e.pluck=it.pluck;var rt=n("zBM/");e.publish=rt.publish;var ot=n("ASfG");e.publishBehavior=ot.publishBehavior;var st=n("qfkx");e.publishLast=st.publishLast;var at=n("z8/z");e.publishReplay=at.publishReplay;var lt=n("XWpj");e.race=lt.race;var ut=n("JwCl");e.reduce=ut.reduce;var ct=n("Hg2u");e.repeat=ct.repeat;var ht=n("g9kf");e.repeatWhen=ht.repeatWhen;var pt=n("5r3W");e.retry=pt.retry;var ft=n("qanz");e.retryWhen=ft.retryWhen;var dt=n("F9px");e.refCount=dt.refCount;var mt=n("ZNYO");e.sample=mt.sample;var vt=n("60lp");e.sampleTime=vt.sampleTime;var gt=n("H1KZ");e.scan=gt.scan;var bt=n("xJeO");e.sequenceEqual=bt.sequenceEqual;var yt=n("HwxE");e.share=yt.share;var wt=n("Wxra");e.shareReplay=wt.shareReplay;var xt=n("v71/");e.single=xt.single;var St=n("cyM/");e.skip=St.skip;var Ct=n("EmkH");e.skipLast=Ct.skipLast;var Ot=n("UHtL");e.skipUntil=Ot.skipUntil;var kt=n("aL6N");e.skipWhile=kt.skipWhile;var Tt=n("dtBE");e.startWith=Tt.startWith;var _t=n("rhfi");e.switchAll=_t.switchAll;var Lt=n("TupL");e.switchMap=Lt.switchMap;var It=n("0lA3");e.switchMapTo=It.switchMapTo;var Mt=n("TQK7");e.take=Mt.take;var At=n("XvrG");e.takeLast=At.takeLast;var Et=n("y3aq");e.takeUntil=Et.takeUntil;var Nt=n("5x23");e.takeWhile=Nt.takeWhile;var Rt=n("4HZJ");e.tap=Rt.tap;var Dt=n("DrEP");e.throttle=Dt.throttle;var Pt=n("Rol4");e.throttleTime=Pt.throttleTime;var jt=n("EOAD");e.timeInterval=jt.timeInterval;var Ft=n("qbt9");e.timeout=Ft.timeout;var Wt=n("/h+r");e.timeoutWith=Wt.timeoutWith;var Ht=n("xK8X");e.timestamp=Ht.timestamp;var Vt=n("Y4uv");e.toArray=Vt.toArray;var zt=n("7tal");e.window=zt.window;var Bt=n("GeBq");e.windowCount=Bt.windowCount;var qt=n("dffx");e.windowTime=qt.windowTime;var Kt=n("bLt9");e.windowToggle=Kt.windowToggle;var Ut=n("kqkQ");e.windowWhen=Ut.windowWhen;var Gt=n("p4do");e.withLatestFrom=Gt.withLatestFrom;var Yt=n("SBOU");e.zip=Yt.zip;var Xt=n("IkMW");e.zipAll=Xt.zipAll},LTTx:function(t,e,n){"use strict";var i=n("bKpL"),r=n("xAqS");i.Observable.prototype.bufferToggle=r.bufferToggle},Lqs2:function(t,e,n){"use strict";function i(t){return r.take(t)(this)}var r=n("TQK7");e.take=i},Lssd:function(t,e,n){"use strict";var i=n("bKpL"),r=n("WmO6");i.Observable.prototype.partition=r.partition},M11L:function(t,e,n){"use strict";function i(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}var r=n("zijX");e.minimalSetImpl=i,e.Set=r.root.Set||i()},MBEm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("kGJb");i.Observable.prototype.distinctUntilChanged=r.distinctUntilChanged},MIR9:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("3lsR"),s=n("iH09"),a=n("XR5H"),l=n("OXmC"),u=n("I64N"),c=750,h=function(t){function e(e){t.call(this,u.VirtualAction,c),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return i(e,t),e.prototype.createTime=function(t){var n=t.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*e.frameTimeFactor},e.prototype.createColdObservable=function(t,n,i){if(-1!==t.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==t.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var r=e.parseMarbles(t,n,i),o=new s.ColdObservable(r,this);return this.coldObservables.push(o),o},e.prototype.createHotObservable=function(t,n,i){if(-1!==t.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var r=e.parseMarbles(t,n,i),o=new a.HotObservable(r,this);return this.hotObservables.push(o),o},e.prototype.materializeInnerObservable=function(t,e){var n=this,i=[];return t.subscribe(function(t){i.push({frame:n.frame-e,notification:o.Notification.createNext(t)})},function(t){i.push({frame:n.frame-e,notification:o.Notification.createError(t)})},function(){i.push({frame:n.frame-e,notification:o.Notification.createComplete()})}),i},e.prototype.expectObservable=function(t,n){var i=this;void 0===n&&(n=null);var s,a=[],l={actual:a,ready:!1},u=e.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof r.Observable&&(e=i.materializeInnerObservable(e,i.frame)),a.push({frame:i.frame,notification:o.Notification.createNext(e)})},function(t){a.push({frame:i.frame,notification:o.Notification.createError(t)})},function(){a.push({frame:i.frame,notification:o.Notification.createComplete()})})},0),u!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},u),this.flushTests.push(l),{toBe:function(t,n,i){l.ready=!0,l.expected=e.parseMarbles(t,n,i,!0)}}},e.prototype.expectSubscriptions=function(t){var n={actual:t,ready:!1};return this.flushTests.push(n),{toBe:function(t){var i="string"==typeof t?[t]:t;n.ready=!0,n.expected=i.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var n=this.flushTests.filter(function(t){return t.ready});n.length>0;){var i=n.shift();this.assertDeepEqual(i.actual,i.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new l.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,n=-1,i=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=0;o<e;o++){var s=o*this.frameTimeFactor,a=t[o];switch(a){case"-":case" ":break;case"(":n=s;break;case")":n=-1;break;case"^":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=n>-1?n:s;break;case"!":if(r!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");r=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return r<0?new l.SubscriptionLog(i):new l.SubscriptionLog(i,r)},e.parseMarbles=function(t,e,n,i){if(void 0===i&&(i=!1),-1!==t.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var r=t.length,a=[],l=t.indexOf("^"),u=-1===l?0:l*-this.frameTimeFactor,c="object"!=typeof e?function(t){return t}:function(t){return i&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},h=-1,p=0;p<r;p++){var f=p*this.frameTimeFactor+u,d=void 0,m=t[p];switch(m){case"-":case" ":break;case"(":h=f;break;case")":h=-1;break;case"|":d=o.Notification.createComplete();break;case"^":break;case"#":d=o.Notification.createError(n||"error");break;default:d=o.Notification.createNext(c(m))}d&&a.push({frame:h>-1?h:f,notification:d})}return a},e}(u.VirtualTimeScheduler);e.TestScheduler=h},MaQZ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("etEa");i.Observable.prototype.find=r.find},MsHi:function(t,e,n){"use strict";function i(t){return o["ɵvid"](2,[(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵeld"](1,0,null,null,1,"h3",[["class","popover-title"]],null,null,null,null,null)),(t()(),o["ɵted"](2,null,["",""])),(t()(),o["ɵeld"](3,0,null,null,1,"div",[["class","popover-content"]],null,null,null,null,null)),o["ɵncd"](null,0),(t()(),o["ɵted"](-1,null,["\n    "]))],null,function(t,e){t(e,2,0,e.component.title)})}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,i,l)),o["ɵdid"](1,49152,null,0,s.b,[],null,null)],null,function(t,e){t(e,0,0,"popover show popover-"+o["ɵnov"](e,1).placement,o["ɵnov"](e,1).id)})}var o=n("/oeL"),s=n("mQQt");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-popover-window",s.b,r,{placement:"placement",title:"title",id:"id"},{},["*"])},MzWM:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return i(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new l(t,this.observableFactory)},e}(r.Observable);e.DeferObservable=a;var l=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return i(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},NOvV:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Pf4u");i.Observable.prototype.onErrorResumeNext=r.onErrorResumeNext},NUku:function(t,e,n){"use strict";function i(t){return r.buffer(t)(this)}var r=n("+vKo");e.buffer=i},NZPJ:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("MicL"),s=function(t){return t},a=function(t){function e(e,n,i,r,o){t.call(this),this.initialState=e,this.condition=n,this.iterate=i,this.resultSelector=r,this.scheduler=o}return i(e,t),e.create=function(t,n,i,r,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===r||o.isScheduler(r)?new e(t,n,i,s,r):new e(t,n,i,r,a)},e.prototype._subscribe=function(t){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var i=this,r=i.condition,o=i.resultSelector,s=i.iterate;;){if(r){var a=void 0;try{a=r(n)}catch(e){return void t.error(e)}if(!a){t.complete();break}}var l=void 0;try{l=o(n)}catch(e){return void t.error(e)}if(t.next(l),t.closed)break;try{n=s(n)}catch(e){return void t.error(e)}}},e.dispatch=function(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var i=void 0;try{i=n(t.state)}catch(t){return void e.error(t)}if(!i)return void e.complete();if(e.closed)return}var r;try{r=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(r),!e.closed))return this.schedule(t)}},e}(r.Observable);e.GenerateObservable=a},NgMz:function(t,e,n){"use strict";function i(t,e){return r.findIndex(t,e)(this)}var r=n("IfwN");e.findIndex=i},NkQZ:function(t,e,n){"use strict";function i(t,e){return r.switchMapTo(t,e)(this)}var r=n("0lA3");e.switchMapTo=i},NmeZ:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},NzSV:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.exhaustMap=i;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.resultSelector))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.project=n,this.resultSelector=i,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return r(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var i=this.project(t,e);this.hasSubscription=!0,this.add(s.subscribeToResult(this,i,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,i):a.next(e)},e.prototype.trySelectResult=function(t,e,n,i){var r=this,o=r.resultSelector,s=r.destination;try{var a=o(t,e,n,i);s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},OADz:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.withLatestFrom.apply(void 0,t)(this)}var r=n("p4do");e.withLatestFrom=i},OCM8:function(t,e,n){"use strict";function i(){return r.publishLast()(this)}var r=n("qfkx");e.publishLast=i},OGSH:function(t,e,n){"use strict";var i=n("bKpL"),r=n("c2EU");i.Observable.prototype.throttle=r.throttle},OPj5:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e");n.d(e,"a",function(){return o});var o=function(){function t(){this.highlightClass="ngb-highlight"}return t.prototype.ngOnChanges=function(t){var e=n.i(r.d)(this.result),i=e.toLowerCase(),o=n.i(r.d)(this.term).toLowerCase(),s=0;o.length>0?this.parts=i.split(new RegExp("("+n.i(r.g)(o)+")")).map(function(t){var n=e.substr(s,t.length);return s+=t.length,n}):this.parts=[e]},t}();o.decorators=[{type:i.Component,args:[{selector:"ngb-highlight",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'<ng-template ngFor [ngForOf]="parts" let-part let-isOdd="odd"><span *ngIf="isOdd" class="{{highlightClass}}">{{part}}</span><ng-template [ngIf]="!isOdd">{{part}}</ng-template></ng-template>',styles:["\n    .ngb-highlight {\n      font-weight: bold;\n    }\n  "]}]}],o.ctorParameters=function(){return[]},o.propDecorators={highlightClass:[{type:i.Input}],result:[{type:i.Input}],term:[{type:i.Input}]}},OXmC:function(t,e,n){"use strict";var i=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return t}();e.SubscriptionLog=i},Obns:function(t,e,n){"use strict";function i(t){return r.debounce(t)(this)}var r=n("2l91");e.debounce=i},OdUO:function(t,e,n){"use strict";function i(t,e){return r.elementAt(t,e)(this)}var r=n("k6cv");e.elementAt=i},Oery:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e"),o=n("5FV4");n.d(e,"c",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var s=0,a=function(){function t(t){this.templateRef=t}return t}();a.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbPanelTitle]"}]}],a.ctorParameters=function(){return[{type:i.TemplateRef}]};var l=function(){function t(t){this.templateRef=t}return t}();l.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbPanelContent]"}]}],l.ctorParameters=function(){return[{type:i.TemplateRef}]};var u=function(){function t(){this.disabled=!1,this.id="ngb-panel-"+s++}return t}();u.decorators=[{type:i.Directive,args:[{selector:"ngb-panel"}]}],u.ctorParameters=function(){return[]},u.propDecorators={disabled:[{type:i.Input}],id:[{type:i.Input}],title:[{type:i.Input}],type:[{type:i.Input}],contentTpl:[{type:i.ContentChild,args:[l]}],titleTpl:[{type:i.ContentChild,args:[a]}]};var c=function(){function t(t){this._states=new Map,this._panelRefs=new Map,this.activeIds=[],this.panelChange=new i.EventEmitter,this.type=t.type,this.closeOtherPanels=t.closeOthers}return t.prototype.toggle=function(t){var e=this._panelRefs.get(t);if(e&&!e.disabled){var n=!this._states.get(t),i=!1;this.panelChange.emit({panelId:t,nextState:n,preventDefault:function(){i=!0}}),i||(this._states.set(t,n),this.closeOtherPanels&&this._closeOthers(t),this._updateActiveIds())}},t.prototype.ngAfterContentChecked=function(){n.i(r.f)(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this._updateStates(),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0]),this._updateActiveIds())},t.prototype.isOpen=function(t){return this._states.get(t)},t.prototype._closeOthers=function(t){var e=this;this._states.forEach(function(n,i){i!==t&&e._states.set(i,!1)})},t.prototype._updateActiveIds=function(){var t=this;this.activeIds=this.panels.toArray().filter(function(e){return t.isOpen(e.id)&&!e.disabled}).map(function(t){return t.id})},t.prototype._updateStates=function(){var t=this;this._states.clear(),this._panelRefs.clear(),this.panels.toArray().forEach(function(e){t._states.set(e.id,t.activeIds.indexOf(e.id)>-1&&!e.disabled),t._panelRefs.set(e.id,e)})},t}();c.decorators=[{type:i.Component,args:[{selector:"ngb-accordion",exportAs:"ngbAccordion",host:{role:"tablist","[attr.aria-multiselectable]":"!closeOtherPanels"},template:'\n  <div class="card">\n    <ng-template ngFor let-panel [ngForOf]="panels">\n      <div role="tab" id="{{panel.id}}-header"\n        [class]="\'card-header \' + (panel.type ? \'card-\'+panel.type: type ? \'card-\'+type : \'\')" [class.active]="isOpen(panel.id)">\n        <a href (click)="!!toggle(panel.id)" [class.text-muted]="panel.disabled" [attr.tabindex]="(panel.disabled ? \'-1\' : null)"\n          [attr.aria-expanded]="isOpen(panel.id)" [attr.aria-controls]="(isOpen(panel.id) ? panel.id : null)"\n          [attr.aria-disabled]="panel.disabled">\n          {{panel.title}}<ng-template [ngTemplateOutlet]="panel.titleTpl?.templateRef"></ng-template>\n        </a>\n      </div>\n      <div id="{{panel.id}}" role="tabpanel" [attr.aria-labelledby]="panel.id + \'-header\'" class="card-block" *ngIf="isOpen(panel.id)">\n        <ng-template [ngTemplateOutlet]="panel.contentTpl.templateRef"></ng-template>\n      </div>\n    </ng-template>\n  </div>\n'}]}],c.ctorParameters=function(){return[{type:o.a}]},c.propDecorators={panels:[{type:i.ContentChildren,args:[u]}],activeIds:[{type:i.Input}],closeOtherPanels:[{type:i.Input,args:["closeOthers"]}],type:[{type:i.Input}],panelChange:[{type:i.Output}]}},Ohh6:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.startWith.apply(void 0,t)(this)}var r=n("dtBE");e.startWith=i},Ozq5:function(t,e,n){"use strict";var i=n("bKpL"),r=n("GoZW");i.Observable.prototype.pluck=r.pluck},"P+lj":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("wEhC"),s=n("EsGe"),a=function(t){function e(e,n,i){void 0===n&&(n=0),void 0===i&&(i=o.asap),t.call(this),this.source=e,this.delayTime=n,this.scheduler=i,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),i&&"function"==typeof i.schedule||(this.scheduler=o.asap)}return i(e,t),e.create=function(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=o.asap),new e(t,n,i)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,i=this.source;return this.scheduler.schedule(e.dispatch,n,{source:i,subscriber:t})},e}(r.Observable);e.SubscribeOnObservable=a},P1Y9:function(t,e,n){(function(e){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){Wt.forEach(function(e){var n=e.popper,i=e.tippyInstance,r=e.settings,o=r.appendTo,s=r.hideOnClick,a=r.trigger;if(o.contains(n)){var l=!0===s||-1!==a.indexOf("focus"),u=!t||n!==t.popper;l&&u&&i.hide(n)}})}function n(t,e){return(Element.prototype.closest||function(t){for(var e=this;e;){if(Kt.call(e,t))return e;e=e.parentElement}}).call(t,e)}function i(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function r(){var e=function(){Ft.touch=!0,Ft.iOS()&&document.body.classList.add("tippy-touch"),Ft.dynamicInputDetection&&window.performance&&document.addEventListener("mousemove",r)},r=function(){var t=void 0;return function(){var e=performance.now();e-t<20&&(Ft.touch=!1,document.removeEventListener("mousemove",r),Ft.iOS()||document.body.classList.remove("tippy-touch")),t=e}}(),o=function(e){if(!(e.target instanceof Element))return t();var r=n(e.target,Ht.TOOLTIPPED_EL),o=n(e.target,Ht.POPPER);if(o){if(i(Wt,function(t){return t.popper===o}).settings.interactive)return}if(r){var s=i(Wt,function(t){return t.el===r}),a=s.settings,l=a.hideOnClick,u=a.multiple,c=a.trigger;if(!u&&Ft.touch||!u&&-1!==c.indexOf("click"))return t(s);if(!0!==l||-1!==c.indexOf("click"))return}!n(e.target,Ht.CONTROLLER)&&document.querySelector(Ht.POPPER)&&t()},s=function(t){var e=document,n=e.activeElement;n&&n.blur&&Kt.call(n,Ht.TOOLTIPPED_EL)&&n.blur()};document.addEventListener("click",o),document.addEventListener("touchstart",e),window.addEventListener("blur",s),!Ft.SUPPORTS_TOUCH&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&document.addEventListener("pointerdown",e)}function o(){return!o.done&&(o.done=!0,r(),!0)}function s(t){window.requestAnimationFrame(function(){setTimeout(t,0)})}function a(t){for(var e=[!1,"webkit"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function l(t,e){return Array.prototype.findIndex?t.findIndex(e):t.indexOf(i(t,e))}function u(t){var e=t.getAttribute("title");e&&t.setAttribute("data-original-title",e),t.removeAttribute("title")}function c(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function h(t,e){e?window.getComputedStyle(e)[a("transform")]:window.getComputedStyle(t).opacity}function p(t,e){t.forEach(function(t){t&&e(t.classList)})}function f(t){return{tooltip:t.querySelector(Ht.TOOLTIP),circle:t.querySelector(Ht.CIRCLE),content:t.querySelector(Ht.CONTENT)}}function d(t,e){t.forEach(function(t){if(t){var n=Kt.call(t,Ht.CONTENT),i=n?Math.round(e/1.3):e;t.style[a("transitionDuration")]=i+"ms"}})}function m(t){return"visible"===t.style.visibility}function v(){}function g(t){return!!t&&"[object Object]"===t.toString()}function b(t){return t.replace(/-.+/,"")}function y(t){var e=this,n=i(Wt,function(t){return t.el===e}),r=n.popper,o=n.settings.offset,s=b(r.getAttribute("x-placement")),l=Math.round(r.offsetWidth/2),u=Math.round(r.offsetHeight/2),c=document.documentElement.offsetWidth||document.body.offsetWidth,h=t.pageX,p=t.pageY,f=void 0,d=void 0;switch(s){case"top":f=h-l+o,d=p-2*u;break;case"bottom":f=h-l+o,d=p+10;break;case"left":f=h-2*l,d=p-u+o;break;case"right":f=h+5,d=p-u+o}var m=h+5+l+o>c,v=h-5-l+o<0;"top"!==s&&"bottom"!==s||(m&&(f=c-5-2*l),v&&(f=5)),r.style[a("transform")]="translate3d("+f+"px, "+d+"px, 0)"}function w(t){if(t instanceof Element||g(t))return[t];if(t instanceof NodeList)return[].slice.call(t);if(Array.isArray(t))return t;try{return[].slice.call(document.querySelectorAll(t))}catch(t){return[]}}function x(t,e,n){if(!e)return n();var i=f(t.popper),r=i.tooltip,o=!1,s=function(t){t.target!==r||o||(o=!0,n())};r.addEventListener("webkitTransitionEnd",s),r.addEventListener("transitionend",s),clearTimeout(t._transitionendTimeout),t._transitionendTimeout=setTimeout(function(){o||n()},e)}function S(t){var e=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}function C(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Xt))}}function O(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function k(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function T(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function _(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var e=k(t),n=e.overflow,i=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+i)?t:_(T(t))}function L(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===k(e,"position")?L(e):e:window.document.documentElement}function I(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||L(t.firstElementChild)===t)}function M(t){return null!==t.parentNode?M(t.parentNode):t}function A(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||i.contains(r))return I(s)?s:L(s);var a=M(t);return a.host?A(a.host,e):A(t,M(e).host)}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return t[n]}function N(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=E(e,"top"),r=E(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function R(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function D(t,e,n,i,r){return Math.max(e["offset"+t],r?e["scroll"+t]:0,n["client"+t],n["offset"+t],r?n["scroll"+t]:0,te()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function P(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=window.document.body,n=window.document.documentElement,i=te()&&window.getComputedStyle(n);return{height:D("Height",e,n,i,t),width:D("Width",e,n,i,t)}}function j(t){return re({},t,{right:t.left+t.width,bottom:t.top+t.height})}function F(t){var e={};if(te())try{e=t.getBoundingClientRect();var n=E(t,"top"),i=E(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?P():{},s=o.width||t.clientWidth||r.right-r.left,a=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,u=t.offsetHeight-a;if(l||u){var c=k(t);l-=R(c,"x"),u-=R(c,"y"),r.width-=l,r.height-=u}return j(r)}function W(t,e){var n=te(),i="HTML"===e.nodeName,r=F(t),o=F(e),s=_(t),a=k(e),l=+a.borderTopWidth.split("px")[0],u=+a.borderLeftWidth.split("px")[0],c=j({top:r.top-o.top-l,left:r.left-o.left-u,width:r.width,height:r.height});if(c.marginTop=0,c.marginLeft=0,!n&&i){var h=+a.marginTop.split("px")[0],p=+a.marginLeft.split("px")[0];c.top-=l-h,c.bottom-=l-h,c.left-=u-p,c.right-=u-p,c.marginTop=h,c.marginLeft=p}return(n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(c=N(c,e)),c}function H(t){var e=window.document.documentElement,n=W(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),o=E(e),s=E(e,"left");return j({top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r})}function V(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===k(t,"position")||V(T(t)))}function z(t,e,n,i){var r={top:0,left:0},o=A(t,e);if("viewport"===i)r=H(o);else{var s=void 0;"scrollParent"===i?(s=_(T(t)),"BODY"===s.nodeName&&(s=window.document.documentElement)):s="window"===i?window.document.documentElement:i;var a=W(s,o);if("HTML"!==s.nodeName||V(o))r=a;else{var l=P(!1),u=l.height,c=l.width;r.top+=a.top-a.marginTop,r.bottom=u+a.top,r.left+=a.left-a.marginLeft,r.right=c+a.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function B(t){return t.width*t.height}function q(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=z(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return re({key:t},a[t],{area:B(a[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,h=t.split("-")[1];return c+(h?"-"+h:"")}function K(t,e,n){return W(n,A(e,n))}function U(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function G(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function Y(t,e,n){n=n.split("-")[0];var i=U(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[u]:e[G(a)],r}function X(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function J(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=X(t,function(t){return t[e]===n});return t.indexOf(i)}function Z(t,e,n){return(void 0===n?t:t.slice(0,J(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&O(n)&&(e.offsets.popper=j(e.offsets.popper),e.offsets.reference=j(e.offsets.reference),e=n(e,t))}),e}function Q(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=K(this.state,this.popper,this.reference),t.placement=q(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=Y(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=Z(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function $(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function tt(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function et(){return this.state.isDestroyed=!0,$(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[tt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function nt(t,e,n,i){var r="BODY"===t.nodeName,o=r?window:t;o.addEventListener(e,n,{passive:!0}),r||nt(_(o.parentNode),e,n,i),i.push(o)}function it(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=_(t);return nt(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function rt(){this.state.eventsEnabled||(this.state=it(this.reference,this.options,this.state,this.scheduleUpdate))}function ot(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function st(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=ot(this.reference,this.state))}function at(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function lt(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&at(e[n])&&(i="px"),t.style[n]=e[n]+i})}function ut(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function ct(t){return lt(t.instance.popper,t.styles),ut(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&lt(t.arrowElement,t.arrowStyles),t}function ht(t,e,n,i,r){var o=K(r,e,t),s=q(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),lt(e,{position:"absolute"}),n}function pt(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=X(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:e.gpuAcceleration,a=L(t.instance.popper),l=F(a),u={position:r.position},c={left:Math.floor(r.left),top:Math.floor(r.top),bottom:Math.floor(r.bottom),right:Math.floor(r.right)},h="bottom"===n?"top":"bottom",p="right"===i?"left":"right",f=tt("transform"),d=void 0,m=void 0;if(m="bottom"===h?-l.height+c.bottom:c.top,d="right"===p?-l.width+c.right:c.left,s&&f)u[f]="translate3d("+d+"px, "+m+"px, 0)",u[h]=0,u[p]=0,u.willChange="transform";else{var v="bottom"===h?-1:1,g="right"===p?-1:1;u[h]=m*v,u[p]=d*g,u.willChange=h+", "+p}var b={"x-placement":t.placement};return t.attributes=re({},b,t.attributes),t.styles=re({},u,t.styles),t.arrowStyles=re({},t.offsets.arrow,t.arrowStyles),t}function ft(t,e,n){var i=X(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function dt(t,e){if(!ft(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,o=r.popper,s=r.reference,a=-1!==["left","right"].indexOf(i),l=a?"height":"width",u=a?"Top":"Left",c=u.toLowerCase(),h=a?"left":"top",p=a?"bottom":"right",f=U(n)[l];s[p]-f<o[c]&&(t.offsets.popper[c]-=o[c]-(s[p]-f)),s[c]+f>o[p]&&(t.offsets.popper[c]+=s[c]+f-o[p]);var d=s[c]+s[l]/2-f/2,m=k(t.instance.popper,"margin"+u).replace("px",""),v=d-j(t.offsets.popper)[c]-m;return v=Math.max(Math.min(o[l]-f,v),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[c]=Math.round(v),t.offsets.arrow[h]="",t}function mt(t){return"end"===t?"start":"start"===t?"end":t}function vt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=se.indexOf(t),i=se.slice(n+1).concat(se.slice(0,n));return e?i.reverse():i}function gt(t,e){if($(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=z(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=G(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case ae.FLIP:s=[i,r];break;case ae.CLOCKWISE:s=vt(i);break;case ae.COUNTERCLOCKWISE:s=vt(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=G(i);var u=t.offsets.popper,c=t.offsets.reference,h=Math.floor,p="left"===i&&h(u.right)>h(c.left)||"right"===i&&h(u.left)<h(c.right)||"top"===i&&h(u.bottom)>h(c.top)||"bottom"===i&&h(u.top)<h(c.bottom),f=h(u.left)<h(n.left),d=h(u.right)>h(n.right),m=h(u.top)<h(n.top),v=h(u.bottom)>h(n.bottom),g="left"===i&&f||"right"===i&&d||"top"===i&&m||"bottom"===i&&v,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===o&&f||b&&"end"===o&&d||!b&&"start"===o&&m||!b&&"end"===o&&v);(p||g||y)&&(t.flipped=!0,(p||g)&&(i=s[l+1]),y&&(o=mt(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=re({},t.offsets.popper,Y(t.instance.popper,t.offsets.reference,t.placement)),t=Z(t.instance.modifiers,t,"flip"))}),t}function bt(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}function yt(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return j(a)[e]/100*o}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function wt(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(X(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return yt(t,r,e,n)})}),u.forEach(function(t,e){t.forEach(function(n,i){at(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}function xt(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=at(+n)?[+n,0]:wt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function St(t,e){var n=e.boundariesElement||L(t.instance.popper);t.instance.reference===n&&(n=L(n));var i=z(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=t.offsets.popper,s={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),ie({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),ie({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=re({},o,s[e](t))}),t.offsets.popper=o,t}function Ct(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:ie({},l,o[l]),end:ie({},l,o[l]+o[u]-s[u])};t.offsets.popper=re({},s,c[i])}return t}function Ot(t){if(!ft(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=X(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function kt(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=G(e),t.offsets.popper=j(r),t}function Tt(t){return-(t-Vt.distance)+"px"}function _t(t){var e=t.el,n=t.popper,i=t.settings,r=i.position,o=i.popperOptions,l=i.offset,u=i.distance,c=i.flipDuration,h=f(n),p=h.tooltip,d=fe({placement:r},o||{},{modifiers:fe({},o?o.modifiers:{},{flip:fe({padding:u+5},o&&o.modifiers?o.modifiers.flip:{}),offset:fe({offset:l},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){var t=p.style;t.top="",t.bottom="",t.left="",t.right="",t[b(n.getAttribute("x-placement"))]=Tt(u)}});if(window.MutationObserver){var m=n.style,v=new MutationObserver(function(){m[a("transitionDuration")]="0ms",t.popperInstance.update(),s(function(){m[a("transitionDuration")]=c+"ms"})});v.observe(n,{childList:!0,subtree:!0,characterData:!0}),t._mutationObservers.push(v)}return new ce(e,n,d)}function Lt(t){var e=t.el,n=t.popper,i=t.settings,r=i.appendTo,o=i.followCursor;r.contains(n)||(r.appendChild(n),t.popperInstance?(t.popperInstance.update(),o&&!Ft.touch||t.popperInstance.enableEventListeners()):t.popperInstance=_t(t),o&&!Ft.touch&&(e.addEventListener("mousemove",y),t.popperInstance.disableEventListeners()))}function It(t){var e=t.popper,n=t.popperInstance,i=t.settings.stickyDuration,r=function(){return e.style[a("transitionDuration")]=i+"ms"},o=function(){return e.style[a("transitionDuration")]=""};s(function t(){n&&n.scheduleUpdate(),r(),m(e)?window.requestAnimationFrame(t):o()})}function Mt(t,e){var n=zt.reduce(function(n,i){var r=t.getAttribute("data-"+i.toLowerCase())||e[i];return"false"===r&&(r=!1),"true"===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),"string"==typeof r&&"["===r.trim().charAt(0)&&(r=JSON.parse(r)),n[i]=r,n},{});return fe({},e,n)}function At(t,e,n){var i=n.position,r=n.distance,o=n.arrow,s=n.animateFill,a=n.inertia,l=n.animation,u=n.arrowSize,c=n.size,h=n.theme,p=n.html,f=n.zIndex,d=n.interactive,m=document.createElement("div");m.setAttribute("class","tippy-popper"),m.setAttribute("role","tooltip"),m.setAttribute("aria-hidden","true"),m.setAttribute("id","tippy-tooltip-"+t),m.style.zIndex=f;var v=document.createElement("div");if(v.setAttribute("class","tippy-tooltip tippy-tooltip--"+c+" leave"),v.setAttribute("data-animation",l),h.split(" ").forEach(function(t){v.classList.add(t+"-theme")}),o){var g=document.createElement("div");g.setAttribute("class","arrow-"+u),g.setAttribute("x-arrow",""),v.appendChild(g)}if(s){v.setAttribute("data-animatefill","");var y=document.createElement("div");y.setAttribute("class","leave"),y.setAttribute("x-circle",""),v.appendChild(y)}a&&v.setAttribute("data-inertia",""),d&&v.setAttribute("data-interactive","");var w=document.createElement("div");if(w.setAttribute("class","tippy-tooltip-content"),p){var x=void 0;p instanceof Element?(w.appendChild(p),x="#"+p.id||"tippy-html-template"):(w.innerHTML=document.getElementById(p.replace("#","")).innerHTML,x=p),m.classList.add("html-template"),d&&m.setAttribute("tabindex","-1"),v.setAttribute("data-template-id",x)}else w.innerHTML=e;return v.style[b(i)]=Tt(r),v.appendChild(w),m.appendChild(v),m}function Et(t,e,n,i){var r=[];return"manual"===t?r:(e.addEventListener(t,n.handleTrigger),r.push({event:t,handler:n.handleTrigger}),"mouseenter"===t&&(Ft.SUPPORTS_TOUCH&&i&&(e.addEventListener("touchstart",n.handleTrigger),r.push({event:"touchstart",handler:n.handleTrigger}),e.addEventListener("touchend",n.handleMouseleave),r.push({event:"touchend",handler:n.handleMouseleave})),e.addEventListener("mouseleave",n.handleMouseleave),r.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===t&&(e.addEventListener("blur",n.handleBlur),r.push({event:"blur",handler:n.handleBlur})),r)}function Nt(t,e,n){if(!e.getAttribute("x-placement"))return!0;var i=t.clientX,r=t.clientY,o=n.interactiveBorder,s=n.distance,a=e.getBoundingClientRect(),l=b(e.getAttribute("x-placement")),u=o+s,c={top:a.top-r>o,bottom:r-a.bottom>o,left:a.left-i>o,right:i-a.right>o};switch(l){case"top":c.top=a.top-r>u;break;case"bottom":c.bottom=r-a.bottom>u;break;case"left":c.left=a.left-i>u;break;case"right":c.right=i-a.right>u}return c.top||c.bottom||c.left||c.right}function Rt(t,e,i){var r=this,o=(i.position,i.delay),s=(i.duration,i.interactive),a=(i.interactiveBorder,i.distance,i.hideOnClick),l=i.trigger,u=i.touchHold,c=(i.touchWait,void 0),h=void 0,p=function(){clearTimeout(c),clearTimeout(h)},f=function(){if(p(),!m(e)){var t=Array.isArray(o)?o[0]:o;o?c=setTimeout(function(){return r.show(e)},t):r.show(e)}},d=function(t){return r.callbacks.wait?r.callbacks.wait.call(e,f,t):f()},v=function(){p();var t=Array.isArray(o)?o[1]:o;o?h=setTimeout(function(){return r.hide(e)},t):r.hide(e)};return{handleTrigger:function(n){var i="mouseenter"===n.type&&Ft.SUPPORTS_TOUCH&&Ft.touch;if(!i||!u){var r="click"===n.type,o="persistent"!==a;r&&m(e)&&o?v():d(n),i&&Ft.iOS()&&t.click&&t.click()}},handleMouseleave:function(r){if(!("mouseleave"===r.type&&Ft.SUPPORTS_TOUCH&&Ft.touch&&u)){if(s){var o=function r(o){var s=function(){document.body.removeEventListener("mouseleave",v),document.removeEventListener("mousemove",r),v()},a=n(o.target,Ht.TOOLTIPPED_EL),u=n(o.target,Ht.POPPER)===e,c=a===t,h=-1!==l.indexOf("click");if(a&&a!==t)return s();u||c||h||Nt(o,e,i)&&s()};return document.body.addEventListener("mouseleave",v),void document.addEventListener("mousemove",o)}v()}},handleBlur:function(t){t.relatedTarget&&!Ft.touch&&(n(t.relatedTarget,Ht.POPPER)||v())}}}function Dt(t){return t.arrow&&(t.animateFill=!1),t.appendTo&&"function"==typeof t.appendTo&&(t.appendTo=t.appendTo()),t}function Pt(t){var e=this;return t.reduce(function(t,n){var i=de,r=fe({},Dt(e.settings.performance?e.settings:Mt(n,e.settings)));"function"==typeof r.html&&(r.html=r.html(n));var o=r.html,s=r.trigger,a=r.touchHold,l=r.dynamicTitle,c=n.getAttribute("title");if(!c&&!o)return t;n.setAttribute("data-tooltipped",""),n.setAttribute("aria-describedby","tippy-tooltip-"+i),u(n);var h=At(i,c,r),p=Rt.call(e,n,h,r),d=[];s.trim().split(" ").forEach(function(t){return d=d.concat(Et(t,n,p,a))});var m=void 0;if(l&&window.MutationObserver){var v=f(h),g=v.content;m=new MutationObserver(function(){var t=n.getAttribute("title");t&&(g.innerHTML=t,u(n))}),m.observe(n,{attributes:!0})}return t.push({id:i,el:n,popper:h,settings:r,listeners:d,tippyInstance:e,_mutationObservers:[m]}),de++,t},[])}function jt(t,e){return g(t)&&(t={refObj:!0,attributes:t.attributes||{},getBoundingClientRect:t.getBoundingClientRect,clientWidth:t.clientWidth,clientHeight:t.clientHeight,setAttribute:function(e,n){t.attributes[e]=n},getAttribute:function(e){return t.attributes[e]},removeAttribute:function(e){delete t.attributes[e]},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(e){t.classList.classNames[e]=!0},remove:function(e){return t.classList.classNames[e]=!1,!0},contains:function(e){return!!t.classList.classNames[e]}}}),new me(t,e)}var Ft={};"undefined"!=typeof window&&(Ft.SUPPORTED="requestAnimationFrame"in window,Ft.SUPPORTS_TOUCH="ontouchstart"in window,Ft.touch=!1,Ft.dynamicInputDetection=!0,Ft.iOS=function(){return/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});var Wt=[],Ht={POPPER:".tippy-popper",TOOLTIP:".tippy-tooltip",CONTENT:".tippy-tooltip-content",CIRCLE:"[x-circle]",ARROW:"[x-arrow]",TOOLTIPPED_EL:"[data-tooltipped]",CONTROLLER:"[data-tippy-controller]"},Vt={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,trigger:"mouseenter focus",duration:350,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,popperOptions:{}},zt=Ft.SUPPORTED&&Object.keys(Vt),Bt={};if("undefined"!=typeof Element){var qt=Element.prototype;Bt=qt.matches||qt.matchesSelector||qt.webkitMatchesSelector||qt.mozMatchesSelector||qt.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1}}for(var Kt=Bt,Ut=["native code","[object MutationObserverConstructor]"],Gt="undefined"!=typeof window,Yt=["Edge","Trident","Firefox"],Xt=0,Jt=0;Jt<Yt.length;Jt+=1)if(Gt&&navigator.userAgent.indexOf(Yt[Jt])>=0){Xt=1;break}var Zt=Gt&&function(t){return Ut.some(function(e){return(t||"").toString().indexOf(e)>-1})}(window.MutationObserver),Qt=Zt?S:C,$t=void 0,te=function(){return void 0===$t&&($t=-1!==navigator.appVersion.indexOf("MSIE 10")),$t},ee=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ne=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),ie=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},re=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],se=oe.slice(3),ae={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},le={shift:{order:100,enabled:!0,fn:Ct},offset:{order:200,enabled:!0,fn:xt,offset:0},preventOverflow:{order:300,enabled:!0,fn:St,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:bt},arrow:{order:500,enabled:!0,fn:dt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:gt,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:kt},hide:{order:800,enabled:!0,fn:Ot},computeStyle:{order:850,enabled:!0,fn:pt,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ct,onLoad:ht,gpuAcceleration:void 0}},ue={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:le},ce=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ee(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Qt(this.update.bind(this)),this.options=re({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,this.options.modifiers={},Object.keys(re({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=re({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return re({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&O(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ne(t,[{key:"update",value:function(){return Q.call(this)}},{key:"destroy",value:function(){return et.call(this)}},{key:"enableEventListeners",value:function(){return rt.call(this)}},{key:"disableEventListeners",value:function(){return st.call(this)}}]),t}();ce.Utils=("undefined"!=typeof window?window:e).PopperUtils,ce.placements=oe,ce.Defaults=ue;var he=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},pe=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),fe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},de=1,me=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};he(this,t),Ft.SUPPORTED&&(o(),this.state={destroyed:!1},this.selector=e,this.settings=fe({},Vt,n),(n.show||n.shown||n.hide||n.hidden)&&console.warn("Callbacks without the `on` prefix are deprecated (with the exception of `wait`). Use onShow, onShown, onHide, and onHidden instead."),this.callbacks={wait:n.wait,show:n.onShow||n.show||v,shown:n.onShown||n.shown||v,hide:n.onHide||n.hide||v,hidden:n.onHidden||n.hidden||v},this.store=Pt.call(this,w(e)),Wt.push.apply(Wt,this.store))}return pe(t,[{key:"getPopperElement",value:function(t){try{return i(this.store,function(e){return e.el===t}).popper}catch(t){console.error("[getPopperElement]: Element passed as the argument does not exist in the instance")}}},{key:"getReferenceElement",value:function(t){try{return i(this.store,function(e){return e.popper===t}).el}catch(t){console.error("[getReferenceElement]: Popper passed as the argument does not exist in the instance")}}},{key:"getReferenceData",value:function(t){return i(this.store,function(e){return e.el===t||e.popper===t})}},{key:"show",value:function(t,e){var n=this;if(!this.state.destroyed){var r=i(this.store,function(e){return e.popper===t}),o=f(t),a=o.tooltip,l=o.circle,u=o.content;if(!this.selector.refObj&&!document.body.contains(r.el))return void this.destroy(t);this.callbacks.show.call(t);var c=r.el,v=r.settings,g=(v.appendTo,v.sticky),b=v.interactive,y=v.followCursor,w=v.flipDuration,S=v.duration,C=void 0!==e?e:Array.isArray(S)?S[0]:S;d([t,a,l],0),Lt(r),t.style.visibility="visible",t.setAttribute("aria-hidden","false"),s(function(){m(t)&&(y&&!Ft.touch||(r.popperInstance.update(),d([t],w)),d([a,l],C),l&&(u.style.opacity=1),b&&c.classList.add("active"),g&&It(r),h(a,l),p([a,l],function(t){t.contains("tippy-notransition")&&t.remove("tippy-notransition"),t.remove("leave"),t.add("enter")}),x(r,C,function(){m(t)&&!r._onShownFired&&(b&&t.focus(),a.classList.add("tippy-notransition"),r._onShownFired=!0,n.callbacks.shown.call(t))}))})}}},{key:"hide",value:function(t,e){var n=this;if(!this.state.destroyed){this.callbacks.hide.call(t);var r=i(this.store,function(e){return e.popper===t}),o=f(t),s=o.tooltip,a=o.circle,l=o.content,u=r.el,h=r.settings,v=h.appendTo,g=(h.sticky,h.interactive),b=(h.followCursor,h.html),w=h.trigger,S=h.duration,C=void 0!==e?e:Array.isArray(S)?S[1]:S;r._onShownFired=!1,g&&u.classList.remove("active"),t.style.visibility="hidden",t.setAttribute("aria-hidden","true"),d([s,a,a?l:null],C),a&&(l.style.opacity=0),p([s,a],function(t){t.contains("tippy-tooltip")&&t.remove("tippy-notransition"),t.remove("enter"),t.add("leave")}),b&&-1!==w.indexOf("click")&&c(u)&&u.focus(),x(r,C,function(){!m(t)&&v.contains(t)&&"1"!==getComputedStyle(s).opacity&&(u.removeEventListener("mousemove",y),r.popperInstance.disableEventListeners(),v.removeChild(t),n.callbacks.hidden.call(t))})}}},{key:"update",value:function(t){if(!this.state.destroyed){var e=i(this.store,function(e){return e.popper===t}),n=f(t),r=n.content,o=e.el,s=e.settings.html;if(s instanceof Element)return void console.warn("Aborted: update() should not be used if `html` is a DOM element");r.innerHTML=s?document.getElementById(s.replace("#","")).innerHTML:o.getAttribute("title")||o.getAttribute("data-original-title"),s||u(o)}}},{key:"destroy",value:function(t,e){var n=this;if(!this.state.destroyed){var r=i(this.store,function(e){return e.popper===t}),o=r.el,s=r.popperInstance,a=r.listeners,u=r._mutationObservers;m(t)&&this.hide(t,0),a.forEach(function(t){return o.removeEventListener(t.event,t.handler)}),o.setAttribute("title",o.getAttribute("data-original-title")),o.removeAttribute("data-original-title"),o.removeAttribute("data-tooltipped"),o.removeAttribute("aria-describedby"),s&&s.destroy(),u.forEach(function(t){t&&t.disconnect()}),Wt.splice(l(Wt,function(e){return e.popper===t}),1),(void 0===e||e)&&(this.store=Wt.filter(function(t){return t.tippyInstance===n}))}}},{key:"destroyAll",value:function(){var t=this;if(!this.state.destroyed){var e=this.store.length;this.store.forEach(function(n,i){var r=n.popper;t.destroy(r,i===e-1)}),this.store=null,this.state.destroyed=!0}}}]),t}();return jt.Browser=Ft,jt.Defaults=Vt,jt.disableDynamicInputDetection=function(){return Ft.dynamicInputDetection=!1},jt.enableDynamicInputDetection=function(){return Ft.dynamicInputDetection=!0},jt})}).call(e,n("fRUx"))},PT4i:function(t,e,n){"use strict";var i=n("Yvsb");e.never=i.NeverObservable.create},PY9B:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbcG");n.d(e,"a",function(){return o});var o=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t}();o.decorators=[{type:i.NgModule,args:[{declarations:[r.a],exports:[r.a]}]}],o.ctorParameters=function(){return[]}},PatI:function(t,e,n){"use strict";var i=n("bKpL"),r=n("gonN");i.Observable.prototype.multicast=r.multicast},Pc3Y:function(t,e,n){"use strict";var i=n("/oeL"),r=n("pd7P"),o=n("CuDZ"),s=n("KSV9");n.d(e,"a",function(){return a});var a=function(){function t(t,e){this.i18n=t,this._calendar=e,this.navigation=r.a,this.navigate=new i.EventEmitter,this.select=new i.EventEmitter}return t.prototype.doNavigate=function(t){this.navigate.emit(t)},t.prototype.nextDisabled=function(){return this.disabled||this.maxDate&&this._calendar.getNext(this.date,"m").after(this.maxDate)},t.prototype.prevDisabled=function(){var t=this._calendar.getPrev(this.date,"m");return this.disabled||this.minDate&&t.year<=this.minDate.year&&t.month<this.minDate.month},t.prototype.selectDate=function(t){this.select.emit(t)},t}();a.decorators=[{type:i.Component,args:[{selector:"ngb-datepicker-navigation",host:{class:"d-flex justify-content-between","[class.collapsed]":"!showSelect"},styles:["\n    :host {\n      height: 2rem;\n      line-height: 1.85rem;\n    }\n    :host.collapsed {\n      margin-bottom: -2rem;        \n    }\n    .ngb-dp-navigation-chevron::before {\n      border-style: solid;\n      border-width: 0.2em 0.2em 0 0;\n      content: '';\n      display: inline-block;\n      height: 0.75em;\n      transform: rotate(-135deg);\n      -webkit-transform: rotate(-135deg);\n      -ms-transform: rotate(-135deg);\n      width: 0.75em;\n      margin: 0 0 0 0.5rem;\n    }    \n    .ngb-dp-navigation-chevron.right:before {\n      -webkit-transform: rotate(45deg);\n      -ms-transform: rotate(45deg);\n      transform: rotate(45deg);\n      margin: 0 0.5rem 0 0;\n    }\n    .btn-link {\n      cursor: pointer;\n      outline: 0;\n    }\n    .btn-link[disabled] {\n      cursor: not-allowed;\n      opacity: .65;\n    }    \n  "],template:'\n    <button type="button" class="btn-link" (click)="!!doNavigate(navigation.PREV)" [disabled]="prevDisabled()">\n      <span class="ngb-dp-navigation-chevron"></span>    \n    </button>\n    \n    <ngb-datepicker-navigation-select *ngIf="showSelect" class="d-block" [style.width.rem]="months * 9"\n      [date]="date"\n      [minDate]="minDate"\n      [maxDate]="maxDate"\n      [disabled] = "disabled"\n      (select)="selectDate($event)">\n    </ngb-datepicker-navigation-select>\n    \n    <button type="button" class="btn-link" (click)="!!doNavigate(navigation.NEXT)" [disabled]="nextDisabled()">\n      <span class="ngb-dp-navigation-chevron right"></span>\n    </button>\n  '}]}],a.ctorParameters=function(){return[{type:o.a},{type:s.a}]},a.propDecorators={date:[{type:i.Input}],disabled:[{type:i.Input}],maxDate:[{type:i.Input}],minDate:[{type:i.Input}],months:[{type:i.Input}],showSelect:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],navigate:[{type:i.Output}],select:[{type:i.Output}]}},Pf4u:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return r.onErrorResumeNext.apply(void 0,t)(this)}var r=n("r6G9");e.onErrorResumeNext=i},Pic8:function(t,e,n){"use strict";var i=n("bKpL"),r=n("aCMF");i.Observable.prototype.switchMap=r.switchMap},Plqt:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Tq0x");i.Observable.prototype.reduce=r.reduce},PuIS:function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("QVQ8"),s=n("NmeZ");n.d(e,"a",function(){return a});var a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:[o.a],exports:[o.a],imports:[r.CommonModule]}]}],a.ctorParameters=function(){return[]}},PwNK:function(t,e,n){"use strict";function i(t){return r.audit(t)(this)}var r=n("tAjV");e.audit=i},PySC:function(t,e,n){"use strict";var i=n("/oeL"),r=n("59zy"),o=n("wM1e"),s=n("bm2B");n.d(e,"a",function(){return u});var a;!function(t){t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(a||(a={}));var l={provide:s.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return u}),multi:!0},u=function(){function t(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new i.EventEmitter,this.leave=new i.EventEmitter,this.rateChange=new i.EventEmitter(!0),this.onChange=function(t){},this.onTouched=function(){},this.max=t.max,this.readonly=t.readonly}return t.prototype.ariaValueText=function(){return this.nextRate+" out of "+this.max},t.prototype.enter=function(t){this.readonly||this.disabled||this._updateState(t),this.hover.emit(t)},t.prototype.handleBlur=function(){this.onTouched()},t.prototype.handleClick=function(t){this.update(this.resettable&&this.rate===t?0:t)},t.prototype.handleKeyDown=function(t){if(a[n.i(o.d)(t.which)])switch(t.preventDefault(),t.which){case a.ArrowDown:case a.ArrowLeft:this.update(this.rate-1);break;case a.ArrowUp:case a.ArrowRight:this.update(this.rate+1);break;case a.Home:this.update(0);break;case a.End:this.update(this.max)}},t.prototype.ngOnChanges=function(t){t.rate&&this.update(this.rate)},t.prototype.ngOnInit=function(){this.contexts=Array.from({length:this.max},function(){return{fill:0}}),this._updateState(this.rate)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.reset=function(){this.leave.emit(this.nextRate),this._updateState(this.rate)},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.update=function(t,e){void 0===e&&(e=!0);var i=n.i(o.e)(t,this.max,0);this.readonly||this.disabled||this.rate===i||(this.rate=i,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)},t.prototype.writeValue=function(t){this.update(t,!1),this._changeDetectorRef.markForCheck()},t.prototype._getFillValue=function(t){var e=this.nextRate-t;return e>=1?100:e<1&&e>0?Number.parseInt((100*e).toFixed(2)):0},t.prototype._updateState=function(t){var e=this;this.nextRate=t,this.contexts.forEach(function(t,n){return t.fill=e._getFillValue(n)})},t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-rating",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{class:"d-inline-flex",tabindex:"0",role:"slider","aria-valuemin":"0","[attr.aria-valuemax]":"max","[attr.aria-valuenow]":"nextRate","[attr.aria-valuetext]":"ariaValueText()","[attr.aria-disabled]":"readonly ? true : null","(blur)":"handleBlur()","(keydown)":"handleKeyDown($event)","(mouseleave)":"reset()"},template:'\n    <ng-template #t let-fill="fill">{{ fill === 100 ? \'&#9733;\' : \'&#9734;\' }}</ng-template>\n    <ng-template ngFor [ngForOf]="contexts" let-index="index">\n      <span class="sr-only">({{ index < nextRate ? \'*\' : \' \' }})</span>\n      <span (mouseenter)="enter(index + 1)" (click)="handleClick(index + 1)" [style.cursor]="readonly || disabled ? \'default\' : \'pointer\'">\n        <ng-template [ngTemplateOutlet]="starTemplate || t" [ngOutletContext]="contexts[index]"></ng-template>\n      </span>\n    </ng-template>\n  ',providers:[l]}]}],u.ctorParameters=function(){return[{type:r.a},{type:i.ChangeDetectorRef}]},u.propDecorators={max:[{type:i.Input}],rate:[{type:i.Input}],readonly:[{type:i.Input}],resettable:[{type:i.Input}],starTemplate:[{type:i.Input},{type:i.ContentChild,args:[i.TemplateRef]}],hover:[{type:i.Output}],leave:[{type:i.Output}],rateChange:[{type:i.Output}]}},QGDq:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.placement="top",this.triggers="hover"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},QVQ8:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e"),o=n("NmeZ");n.d(e,"a",function(){return s});var s=function(){function t(t){this.pageCount=0,this.pages=[],this.page=0,this.pageChange=new i.EventEmitter(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}return t.prototype.hasPrevious=function(){return this.page>1},t.prototype.hasNext=function(){return this.page<this.pageCount},t.prototype.selectPage=function(t){this._updatePages(t)},t.prototype.ngOnChanges=function(t){this._updatePages(this.page)},t.prototype.isEllipsis=function(t){return-1===t},t.prototype._applyEllipses=function(t,e){this.ellipses&&(t>0&&(t>1&&this.pages.unshift(-1),this.pages.unshift(1)),e<this.pageCount&&(e<this.pageCount-1&&this.pages.push(-1),this.pages.push(this.pageCount)))},t.prototype._applyRotation=function(){var t=0,e=this.pageCount,n=Math.floor(this.maxSize/2),i=this.maxSize%2==0?n-1:n;return this.page<=n?e=this.maxSize:this.pageCount-this.page<n?t=this.pageCount-this.maxSize:(t=this.page-n-1,e=this.page+i),[t,e]},t.prototype._applyPagination=function(){var t=Math.ceil(this.page/this.maxSize)-1,e=t*this.maxSize;return[e,e+this.maxSize]},t.prototype._setPageInRange=function(t){var e=this.page;this.page=n.i(r.e)(t,this.pageCount,1),this.page!==e&&this.pageChange.emit(this.page)},t.prototype._updatePages=function(t){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),n.i(r.a)(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(var e=1;e<=this.pageCount;e++)this.pages.push(e);if(this._setPageInRange(t),this.maxSize>0&&this.pageCount>this.maxSize){var i=0,o=this.pageCount;this.rotate?(s=this._applyRotation(),i=s[0],o=s[1]):(a=this._applyPagination(),i=a[0],o=a[1]),this.pages=this.pages.slice(i,o),this._applyEllipses(i,o)}var s,a},t}();s.decorators=[{type:i.Component,args:[{selector:"ngb-pagination",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{role:"navigation"},template:'\n    <ul [class]="\'pagination\' + (size ? \' pagination-\' + size : \'\')">\n      <li *ngIf="boundaryLinks" class="page-item"\n        [class.disabled]="!hasPrevious() || disabled">\n        <a aria-label="First" class="page-link" href (click)="!!selectPage(1)" [attr.tabindex]="(hasPrevious() ? null : \'-1\')">\n          <span aria-hidden="true">&laquo;&laquo;</span>\n        </a>\n      </li>\n\n      <li *ngIf="directionLinks" class="page-item"\n        [class.disabled]="!hasPrevious() || disabled">\n        <a aria-label="Previous" class="page-link" href (click)="!!selectPage(page-1)" [attr.tabindex]="(hasPrevious() ? null : \'-1\')">\n          <span aria-hidden="true">&laquo;</span>\n        </a>\n      </li>\n      <li *ngFor="let pageNumber of pages" class="page-item" [class.active]="pageNumber === page"\n        [class.disabled]="isEllipsis(pageNumber) || disabled">\n        <a *ngIf="isEllipsis(pageNumber)" class="page-link">...</a>\n        <a *ngIf="!isEllipsis(pageNumber)" class="page-link" href (click)="!!selectPage(pageNumber)">\n          {{pageNumber}}\n          <span *ngIf="pageNumber === page" class="sr-only">(current)</span>\n        </a>\n      </li>\n      <li *ngIf="directionLinks" class="page-item" [class.disabled]="!hasNext() || disabled">\n        <a aria-label="Next" class="page-link" href (click)="!!selectPage(page+1)" [attr.tabindex]="(hasNext() ? null : \'-1\')">\n          <span aria-hidden="true">&raquo;</span>\n        </a>\n      </li>\n\n      <li *ngIf="boundaryLinks" class="page-item" [class.disabled]="!hasNext() || disabled">\n        <a aria-label="Last" class="page-link" href (click)="!!selectPage(pageCount)" [attr.tabindex]="(hasNext() ? null : \'-1\')">\n          <span aria-hidden="true">&raquo;&raquo;</span>\n        </a>\n      </li>\n    </ul>\n  '}]}],s.ctorParameters=function(){return[{type:o.a}]},s.propDecorators={disabled:[{type:i.Input}],boundaryLinks:[{type:i.Input}],directionLinks:[{type:i.Input}],ellipses:[{type:i.Input}],rotate:[{type:i.Input}],collectionSize:[{type:i.Input}],maxSize:[{type:i.Input}],page:[{type:i.Input}],pageSize:[{type:i.Input}],pageChange:[{type:i.Output}],size:[{type:i.Input}]}},QgC4:function(t,e,n){"use strict";var i=n("yIff");e.webSocket=i.WebSocketSubject.create},QsbA:function(t,e,n){"use strict";function i(t){return r.windowWhen(t)(this)}var r=n("kqkQ");e.windowWhen=i},Qv0T:function(t,e,n){"use strict";function i(t){var e=t.obj,n=t.keys,i=t.length,r=t.index,o=t.subscriber;if(r===i)return void o.complete();var s=n[r];o.next([s,e[s]]),t.index=r+1,this.schedule(t)}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("bKpL"),s=function(t){function e(e,n){t.call(this),this.obj=e,this.scheduler=n,this.keys=Object.keys(e)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=e.keys,r=e.scheduler,o=n.length;if(r)return r.schedule(i,0,{obj:this.obj,keys:n,length:o,index:0,subscriber:t});for(var s=0;s<o;s++){var a=n[s];t.next([a,this.obj[a]])}t.complete()},e}(o.Observable);e.PairsObservable=s},Qyse:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.up=!1,this.autoClose=!0}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},R0J0:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Kt+M");i.Observable.prototype.concat=r.concat},"R3/v":function(t,e,n){"use strict";function i(t){var e=r.async,n=null,i=Number.POSITIVE_INFINITY;return s.isScheduler(arguments[3])&&(e=arguments[3]),s.isScheduler(arguments[2])?e=arguments[2]:o.isNumeric(arguments[2])&&(i=arguments[2]),s.isScheduler(arguments[1])?e=arguments[1]:o.isNumeric(arguments[1])&&(n=arguments[1]),a.windowTime(t,n,i,e)(this)}var r=n("IhB/"),o=n("EsGe"),s=n("MicL"),a=n("dffx");e.windowTime=i},R61s:function(t,e,n){"use strict";var i=n("zijX"),r=n("wQte");e.Map=i.root.Map||function(){return r.MapPolyfill}()},RNRn:function(t,e,n){"use strict";var i=n("bKpL"),r=n("R3/v");i.Observable.prototype.windowTime=r.windowTime},RnhI:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[(t()(),o["ɵted"](0,null,["",""]))],null,function(t,e){t(e,0,0,e.component.date.day)})}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"div",[["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"btn-secondary",null]],null,null,i,l)),o["ɵdid"](1,49152,null,0,s.a,[],null,null)],null,function(t,e){t(e,0,0,o["ɵnov"](e,1).selected,o["ɵnov"](e,1).selected,o["ɵnov"](e,1).isMuted(),o["ɵnov"](e,1).isMuted(),!o["ɵnov"](e,1).disabled)})}var o=n("/oeL"),s=n("+oJC");n.d(e,"b",function(){return l}),e.a=i;var a=["[_nghost-%COMP%] {\n      text-align: center;\n      width: 2rem;\n      height: 2rem;\n      line-height: 2rem;      \n      border-radius: 0.25rem;\n    }\n    .outside[_nghost-%COMP%] {\n      opacity: 0.5;\n    }"],l=o["ɵcrt"]({encapsulation:0,styles:a,data:{}});o["ɵccf"]("[ngbDatepickerDayView]",s.a,r,{currentMonth:"currentMonth",date:"date",disabled:"disabled",selected:"selected"},{},[])},Rol4:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=a.async),void 0===n&&(n=l.defaultThrottleConfig),function(i){return i.lift(new u(t,e,n.leading,n.trailing))}}function r(t){t.subscriber.clearThrottle()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/"),l=n("DrEP");e.throttleTime=i;var u=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,i,r,o){t.call(this,e),this.duration=n,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return o(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(r,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},RpuY:function(t,e,n){"use strict";var i=n("bKpL"),r=n("cPhF");i.Observable.prototype.mergeMap=r.mergeMap,i.Observable.prototype.flatMap=r.mergeMap},RvTY:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeMapTo(t,e,n)(this)}var r=n("j8LY");e.mergeMapTo=i},S08L:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n,i){t.call(this),this.condition=e,this.thenSource=n,this.elseSource=i}return i(e,t),e.create=function(t,n,i){return new e(t,n,i)},e.prototype._subscribe=function(t){var e=this,n=e.condition,i=e.thenSource,r=e.elseSource;return new l(t,n,i,r)},e}(r.Observable);e.IfObservable=a;var l=function(t){function e(e,n,i,r){t.call(this,e),this.condition=n,this.thenSource=i,this.elseSource=r,this.tryIf()}return i(e,t),e.prototype.tryIf=function(){var t,e=this,n=e.condition,i=e.thenSource,r=e.elseSource;try{t=n();var s=t?i:r;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(t){this._error(t)}},e}(s.OuterSubscriber)},S7im:function(t,e,n){"use strict";var i=n("bKpL"),r=n("HTfL");i.Observable.throw=r._throw},SBOU:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.apply(void 0,[e].concat(t)))}}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),new s.ArrayObservable(t).lift(new p(n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("wZOE"),a=n("NSJx"),l=n("T14+"),u=n("yW9Z"),c=n("ktfo"),h=n("2B7B");e.zip=i,e.zipStatic=r;var p=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();e.ZipOperator=p;var f=function(t){function e(e,n,i){void 0===i&&(i=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=i}return o(e,t),e.prototype._next=function(t){var e=this.iterators;a.isArray(t)?e.push(new m(t)):"function"==typeof t[h.iterator]?e.push(new d(t[h.iterator]())):e.push(new v(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var i=t[n];i.stillUnsubscribed?this.add(i.subscribe(i,n)):this.active--}},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,i=0;i<e;i++){var r=t[i];if("function"==typeof r.hasValue&&!r.hasValue())return}for(var o=!1,s=[],i=0;i<e;i++){var r=t[i],a=r.next();if(r.hasCompleted()&&(o=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),o&&n.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(l.Subscriber);e.ZipSubscriber=f;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),m=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[h.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),v=function(t){function e(e,n,i){t.call(this,e),this.parent=n,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(e,t),e.prototype[h.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return c.subscribeToResult(this,this.observable,this,e)},e}(u.OuterSubscriber)},SGrN:function(t,e,n){"use strict";var i=n("KSV9"),r=n("/oeL"),o=n("wM1e");n.d(e,"a",function(){return a});var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.isValid=function(t){return t&&n.i(o.a)(t.year)&&n.i(o.a)(t.month)&&n.i(o.a)(t.day)&&!isNaN(this.toGregorian(t).getTime())},e.prototype.setDay=function(t,e){e=+e;var n=this.getDaysInIslamicMonth(t.month,t.year);if(e<=0)for(;e<=0;)t=this.setMonth(t,t.month-1),n=this.getDaysInIslamicMonth(t.month,t.year),e+=n;else if(e>n)for(;e>n;)e-=n,t=this.setMonth(t,t.month+1),n=this.getDaysInIslamicMonth(t.month,t.year);return t.day=e,t},e.prototype.setMonth=function(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t},e.prototype.setYear=function(t,e){return t.year=+e,t},e.prototype._isIslamicLeapYear=function(t){return(14+11*t)%30<11},e.prototype._getMonthStart=function(t,e){return Math.ceil(29.5*e)+354*(t-1)+Math.floor((3+11*t)/30)},e.prototype._getYearStart=function(t){return 354*(t-1)+Math.floor((3+11*t)/30)},e}(i.a);a.decorators=[{type:r.Injectable}],a.ctorParameters=function(){return[]}},SJ56:function(t,e,n){"use strict";function i(){return r.dematerialize()(this)}var r=n("pguX");e.dematerialize=i},SKRq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("fdVa");i.Observable.prototype.mergeScan=r.mergeScan},ScG9:function(t,e,n){"use strict";var i=n("bKpL"),r=n("a9bY");i.Observable.prototype.max=r.max},"StS+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("lc3y");i.Observable.prototype.isEmpty=r.isEmpty},T1tZ:function(t,e,n){"use strict";function i(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function r(t){var e=t.err;t.subject.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("bKpL"),a=n("RdI5"),l=n("XRvs"),u=n("l6Wf"),c=function(t){function e(e,n,i,r,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=i,this.context=r,this.scheduler=o}return o(e,t),e.create=function(t,n,i){return void 0===n&&(n=void 0),function(){for(var r=[],o=0;o<arguments.length;o++)r[o-0]=arguments[o];return new e(t,n,r,this,i)}},e.prototype._subscribe=function(t){var n=this.callbackFunc,i=this.args,r=this.scheduler,o=this.subject;if(r)return r.schedule(e.dispatch,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new u.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var i=t.source,r=i.selector,o=i.subject;if(r){var s=a.tryCatch(r).apply(this,e);s===l.errorObject?o.error(l.errorObject.e):(o.next(s),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;a.tryCatch(n).apply(this.context,i.concat(s))===l.errorObject&&o.error(l.errorObject.e)}return o.subscribe(t)},e.dispatch=function(t){var e=this,n=t.source,o=t.subscriber,s=t.context,c=n.callbackFunc,h=n.args,p=n.scheduler,f=n.subject;if(!f){f=n.subject=new u.AsyncSubject;var d=function t(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];var s=t.source,u=s.selector,c=s.subject;if(u){var h=a.tryCatch(u).apply(this,n);h===l.errorObject?e.add(p.schedule(r,0,{err:l.errorObject.e,subject:c})):e.add(p.schedule(i,0,{value:h,subject:c}))}else{var f=n.length<=1?n[0]:n;e.add(p.schedule(i,0,{value:f,subject:c}))}};d.source=n;a.tryCatch(c).apply(s,h.concat(d))===l.errorObject&&f.error(l.errorObject.e)}e.add(f.subscribe(o))},e}(s.Observable);e.BoundCallbackObservable=c},T5Q1:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n){t.call(this),this.resourceFactory=e,this.observableFactory=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e,n=this,i=n.resourceFactory,r=n.observableFactory;try{return e=i(),new l(t,e,r)}catch(e){t.error(e)}},e}(r.Observable);e.UsingObservable=a;var l=function(t){function e(e,n,i){t.call(this,e),this.resource=n,this.observableFactory=i,e.add(n),this.tryUse()}return i(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(t){this._error(t)}},e}(s.OuterSubscriber)},TQK7:function(t,e,n){"use strict";function i(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new l(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d"),a=n("fcnB");e.take=i;var l=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},TfLl:function(t,e,n){"use strict";function i(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,0,"div",[["class","ngb-dp-weekday"]],null,null,null,null,null))],null,null)}function r(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,1,"div",[["class","ngb-dp-weekday small text-center text-info font-italic"]],null,null,null,null,null)),(t()(),d["ɵted"](1,null,["\n        ","\n      "]))],null,function(t,e){t(e,1,0,e.component.i18n.getWeekdayShortName(e.context.$implicit))})}function o(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,7,"div",[["class","ngb-dp-week d-flex"]],null,null,null,null,null)),(t()(),d["ɵted"](-1,null,["\n      "])),(t()(),d["ɵand"](16777216,null,null,1,null,i)),d["ɵdid"](3,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n      "])),(t()(),d["ɵand"](16777216,null,null,1,null,r)),d["ɵdid"](6,802816,null,0,m.NgForOf,[d.ViewContainerRef,d.TemplateRef,d.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),d["ɵted"](-1,null,["\n    "]))],function(t,e){var n=e.component;t(e,3,0,n.showWeekNumbers),t(e,6,0,n.month.weekdays)},null)}function s(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-center font-italic text-muted"]],null,null,null,null,null)),(t()(),d["ɵted"](1,null,["",""]))],null,function(t,e){t(e,1,0,e.parent.parent.context.$implicit.number)})}function a(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n            "]))],null,null)}function l(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n            "])),(t()(),d["ɵand"](16777216,null,null,3,null,a)),d["ɵdid"](2,540672,null,0,m.NgTemplateOutlet,[d.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"],ngOutletContext:[1,"ngOutletContext"]},null),d["ɵpod"](3,{year:0,month:1,day:2}),d["ɵpod"](4,{date:0,currentMonth:1,disabled:2,selected:3}),(t()(),d["ɵted"](-1,null,["\n          "]))],function(t,e){var n=e.component;t(e,2,0,n.dayTemplate,t(e,4,0,t(e,3,0,e.parent.context.$implicit.date.year,e.parent.context.$implicit.date.month,e.parent.context.$implicit.date.day),n.month.number,n.isDisabled(e.parent.context.$implicit),n.isSelected(e.parent.context.$implicit.date)))},null)}function u(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,4,"div",[["class","ngb-dp-day"]],[[2,"disabled",null],[2,"hidden",null]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!==r.doSelect(t.context.$implicit)&&i}return i},null,null)),(t()(),d["ɵted"](-1,null,["\n          "])),(t()(),d["ɵand"](16777216,null,null,1,null,l)),d["ɵdid"](3,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n        "]))],function(t,e){t(e,3,0,!e.component.isHidden(e.context.$implicit))},function(t,e){var n=e.component;t(e,0,0,n.isDisabled(e.context.$implicit),n.isHidden(e.context.$implicit))})}function c(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,7,"div",[["class","ngb-dp-week d-flex"]],null,null,null,null,null)),(t()(),d["ɵted"](-1,null,["\n        "])),(t()(),d["ɵand"](16777216,null,null,1,null,s)),d["ɵdid"](3,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n        "])),(t()(),d["ɵand"](16777216,null,null,1,null,u)),d["ɵdid"](6,802816,null,0,m.NgForOf,[d.ViewContainerRef,d.TemplateRef,d.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),d["ɵted"](-1,null,["\n      "]))],function(t,e){t(e,3,0,e.component.showWeekNumbers),t(e,6,0,e.parent.context.$implicit.days)},null)}function h(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n      "])),(t()(),d["ɵand"](16777216,null,null,1,null,c)),d["ɵdid"](2,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n    "]))],function(t,e){t(e,2,0,!e.component.isCollapsed(e.context.$implicit))},null)}function p(t){return d["ɵvid"](0,[(t()(),d["ɵted"](-1,null,["\n    "])),(t()(),d["ɵand"](16777216,null,null,1,null,o)),d["ɵdid"](2,16384,null,0,m.NgIf,[d.ViewContainerRef,d.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),d["ɵted"](-1,null,["\n    "])),(t()(),d["ɵand"](16777216,null,null,1,null,h)),d["ɵdid"](5,802816,null,0,m.NgForOf,[d.ViewContainerRef,d.TemplateRef,d.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),d["ɵted"](-1,null,["\n  "]))],function(t,e){var n=e.component;t(e,2,0,n.showWeekdays),t(e,5,0,n.month.weeks)},null)}function f(t){return d["ɵvid"](0,[(t()(),d["ɵeld"](0,0,null,null,1,"ngb-datepicker-month-view",[["class","d-block"]],null,null,null,p,y)),d["ɵdid"](1,49152,null,0,v.a,[g.a],null,null)],null,null)}var d=n("/oeL"),m=n("qbdv"),v=n("Av3o"),g=n("CuDZ");n.d(e,"b",function(){return y}),e.a=p;var b=[".ngb-dp-weekday[_ngcontent-%COMP%], .ngb-dp-week-number[_ngcontent-%COMP%] {\n      line-height: 2rem;\n    }\n    .ngb-dp-day[_ngcontent-%COMP%], .ngb-dp-weekday[_ngcontent-%COMP%], .ngb-dp-week-number[_ngcontent-%COMP%] {\n      width: 2rem;\n      height: 2rem;      \n    }\n    .ngb-dp-day[_ngcontent-%COMP%] {\n      cursor: pointer;\n    }\n    .ngb-dp-day.disabled[_ngcontent-%COMP%], .ngb-dp-day.hidden[_ngcontent-%COMP%] {\n      cursor: default;\n    }"],y=d["ɵcrt"]({encapsulation:0,styles:b,data:{}});d["ɵccf"]("ngb-datepicker-month-view",v.a,f,{dayTemplate:"dayTemplate",disabled:"disabled",month:"month",outsideDays:"outsideDays",selectedDate:"selectedDate",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers"},{select:"select"},[])},TnjP:function(t,e,n){"use strict";var i=n("bKpL"),r=n("XOyC");i.Observable.prototype.delayWhen=r.delayWhen},TupL:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.switchMap=i;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.resultSelector))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.project=n,this.resultSelector=i,this.index=0}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){this.resultSelector?this._tryNotifyNext(t,e,n,i):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,i){var r;try{r=this.resultSelector(t,e,n,i)}catch(t){return void this.destination.error(t)}this.destination.next(r)},e}(o.OuterSubscriber)},Txt5:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.auditTime(t,e)(this)}var r=n("IhB/"),o=n("GTdq");e.auditTime=i},U0Tu:function(t,e,n){"use strict";var i=n("/oeL"),r=n("mQQt"),o=n("7zUS");n.d(e,"a",function(){return s});var s=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();s.decorators=[{type:i.NgModule,args:[{declarations:[r.a,r.b],exports:[r.a],entryComponents:[r.b]}]}],s.ctorParameters=function(){return[]}},"UD+B":function(t,e,n){"use strict";var i=n("bKpL"),r=n("wDL6");i.Observable.prototype.repeat=r.repeat},UHtL:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.skipUntil=i;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier))},t}(),l=function(t){function e(e,n){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(o.OuterSubscriber)},UVHa:function(t,e,n){"use strict";var i=n("bKpL"),r=n("f7nC");i.Observable.prototype.bufferWhen=r.bufferWhen},UbPm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("H9QY");i.Observable.prototype.timeInterval=r.timeInterval},Uvlg:function(t,e,n){"use strict";var i=n("bKpL"),r=n("LBqD");i.Observable.prototype.pairwise=r.pairwise},V672:function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0});var s=n("/oeL"),a=n("3WPo"),l=function(){function t(){this.container=null}return t}();e.DialogServiceConfig=l;var u=function(){function t(t,e,n,i){this.resolver=t,this.applicationRef=e,this.injector=n,this.container=i&&i.container}return t.prototype.addDialog=function(t,e,n){return this.dialogHolderComponent||(this.dialogHolderComponent=this.createDialogHolder()),this.dialogHolderComponent.addDialog(t,e,n)},t.prototype.removeDialog=function(t){this.dialogHolderComponent&&this.dialogHolderComponent.removeDialog(t)},t.prototype.removeAll=function(){this.dialogHolderComponent.clear()},t.prototype.createDialogHolder=function(){var t=this,e=this.resolver.resolveComponentFactory(a.DialogHolderComponent),n=e.create(this.injector),i=n.hostView.rootNodes[0];if(!this.container){var r=this.applicationRef._rootComponents[0];this.container=r.hostView.rootNodes[0]}return this.applicationRef.attachView(n.hostView),n.onDestroy(function(){t.applicationRef.detachView(n.hostView)}),this.container.appendChild(i),n.instance},t}();u=i([s.Injectable(),o(3,s.Optional()),r("design:paramtypes",[s.ComponentFactoryResolver,s.ApplicationRef,s.Injector,l])],u),e.DialogService=u},V6Dl:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},VML3:function(t,e,n){"use strict";var i=n("bKpL"),r=n("K5Xx");i.Observable.prototype.publish=r.publish},VXtB:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ytB7");i.Observable.prototype.sampleTime=r.sampleTime},Vnhz:function(t,e,n){"use strict";function i(t){return c["ɵvid"](0,[(t()(),c["ɵand"](0,null,null,0))],null,null)}function r(t){return c["ɵvid"](0,[(t()(),c["ɵeld"](0,0,null,null,7,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n        "])),(t()(),c["ɵeld"](2,0,null,null,4,"a",[["class","nav-link"],["href",""],["role","tab"]],[[8,"id",0],[2,"active",null],[2,"disabled",null],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!=!!r.select(t.context.$implicit.id)&&i}return i},null,null)),(t()(),c["ɵted"](3,null,["\n          ",""])),(t()(),c["ɵand"](16777216,null,null,1,null,i)),c["ɵdid"](5,540672,null,0,h.NgTemplateOutlet,[c.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(t()(),c["ɵted"](-1,null,["\n        "])),(t()(),c["ɵted"](-1,null,["\n      "]))],function(t,e){t(e,5,0,null==e.context.$implicit.titleTpl?null:e.context.$implicit.titleTpl.templateRef)},function(t,e){var n=e.component;t(e,2,0,e.context.$implicit.id,e.context.$implicit.id===n.activeId,e.context.$implicit.disabled,e.context.$implicit.disabled?"-1":void 0,n.destroyOnHide&&e.context.$implicit.id!==n.activeId?null:e.context.$implicit.id+"-panel",e.context.$implicit.id===n.activeId,e.context.$implicit.disabled),t(e,3,0,e.context.$implicit.title)})}function o(t){return c["ɵvid"](0,[(t()(),c["ɵand"](0,null,null,0))],null,null)}function s(t){return c["ɵvid"](0,[(t()(),c["ɵeld"](0,0,null,null,4,"div",[["role","tabpanel"]],[[8,"className",0],[1,"aria-labelledby",0],[8,"id",0],[1,"aria-expanded",0]],null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n          "])),(t()(),c["ɵand"](16777216,null,null,1,null,o)),c["ɵdid"](3,540672,null,0,h.NgTemplateOutlet,[c.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(t()(),c["ɵted"](-1,null,["\n        "]))],function(t,e){t(e,3,0,e.parent.context.$implicit.contentTpl.templateRef)},function(t,e){var n=e.component;t(e,0,0,c["ɵinlineInterpolate"](1,"tab-pane ",e.parent.context.$implicit.id===n.activeId?"active":null,""),e.parent.context.$implicit.id,c["ɵinlineInterpolate"](1,"",e.parent.context.$implicit.id,"-panel"),e.parent.context.$implicit.id===n.activeId)})}function a(t){return c["ɵvid"](0,[(t()(),c["ɵted"](-1,null,["\n        "])),(t()(),c["ɵand"](16777216,null,null,1,null,s)),c["ɵdid"](2,16384,null,0,h.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),c["ɵted"](-1,null,["\n      "]))],function(t,e){var n=e.component;t(e,2,0,!n.destroyOnHide||e.context.$implicit.id===n.activeId)},null)}function l(t){return c["ɵvid"](0,[(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵeld"](1,0,null,null,4,"ul",[["role","tablist"]],[[8,"className",0]],null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n      "])),(t()(),c["ɵand"](16777216,null,null,1,null,r)),c["ɵdid"](4,802816,null,0,h.NgForOf,[c.ViewContainerRef,c.TemplateRef,c.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵeld"](7,0,null,null,4,"div",[["class","tab-content"]],null,null,null,null,null)),(t()(),c["ɵted"](-1,null,["\n      "])),(t()(),c["ɵand"](16777216,null,null,1,null,a)),c["ɵdid"](10,802816,null,0,h.NgForOf,[c.ViewContainerRef,c.TemplateRef,c.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),c["ɵted"](-1,null,["\n    "])),(t()(),c["ɵted"](-1,null,["\n  "]))],function(t,e){var n=e.component;t(e,4,0,n.tabs),t(e,10,0,n.tabs)},function(t,e){var n=e.component;t(e,1,0,"nav nav-"+n.type+" justify-content-"+n.justify)})}function u(t){return c["ɵvid"](0,[(t()(),c["ɵeld"](0,0,null,null,2,"ngb-tabset",[],null,null,null,l,m)),c["ɵdid"](1,2146304,null,1,p.a,[f.a],null,null),c["ɵqud"](603979776,1,{tabs:1})],null,null)}var c=n("/oeL"),h=n("qbdv"),p=n("Hjei"),f=n("+E40");n.d(e,"b",function(){return m}),e.a=l;var d=[],m=c["ɵcrt"]({encapsulation:2,styles:d,data:{}});c["ɵccf"]("ngb-tabset",p.a,u,{activeId:"activeId",destroyOnHide:"destroyOnHide",justify:"justify",type:"type"},{tabChange:"tabChange"},[])},VsKd:function(t,e,n){"use strict";var i=n("bKpL"),r=n("23I1");i.Observable.defer=r.defer},W5L8:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7PW3");i.Observable.using=r.using},WAO4:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=r.async),o.timeoutWith(t,e,n)(this)}var r=n("IhB/"),o=n("/h+r");e.timeoutWith=i},WC4F:function(t,e,n){!function(t){t(n("oiK7"))}(function(t){function e(t,e,n,i){this.cm=t,this.node=e,this.options=n,this.height=i,this.cleared=!1}function n(t){var e=t.getWrapperElement(),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,i=parseInt(n.height),r=t.state.panels={setHeight:e.style.height,heightLeft:i,panels:0,wrapper:document.createElement("div")};e.parentNode.insertBefore(r.wrapper,e);var o=t.hasFocus();r.wrapper.appendChild(e),o&&t.focus(),t._setSize=t.setSize,null!=i&&(t.setSize=function(e,n){if(null==n)return this._setSize(e,n);if(r.setHeight=n,"number"!=typeof n){var o=/^(\d+\.?\d*)px$/.exec(n);o?n=Number(o[1]):(r.wrapper.style.height=n,n=r.wrapper.offsetHeight,r.wrapper.style.height="")}t._setSize(e,r.heightLeft+=n-i),i=n})}function i(t){var e=t.state.panels;t.state.panels=null;var n=t.getWrapperElement();e.wrapper.parentNode.replaceChild(n,e.wrapper),n.style.height=e.setHeight,t.setSize=t._setSize,t.setSize()}function r(t,e){for(var n=e.nextSibling;n;n=n.nextSibling)if(n==t.getWrapperElement())return!0;return!1}t.defineExtension("addPanel",function(t,i){i=i||{},this.state.panels||n(this);var o=this.state.panels,s=o.wrapper,a=this.getWrapperElement();i.after instanceof e&&!i.after.cleared?s.insertBefore(t,i.before.node.nextSibling):i.before instanceof e&&!i.before.cleared?s.insertBefore(t,i.before.node):i.replace instanceof e&&!i.replace.cleared?(s.insertBefore(t,i.replace.node),i.replace.clear()):"bottom"==i.position?s.appendChild(t):"before-bottom"==i.position?s.insertBefore(t,a.nextSibling):"after-top"==i.position?s.insertBefore(t,a):s.insertBefore(t,s.firstChild);var l=i&&i.height||t.offsetHeight;return this._setSize(null,o.heightLeft-=l),o.panels++,i.stable&&r(this,t)&&this.scrollTo(null,this.getScrollInfo().top+l),new e(this,t,i,l)}),e.prototype.clear=function(){if(!this.cleared){this.cleared=!0;var t=this.cm.state.panels;this.cm._setSize(null,t.heightLeft+=this.height),this.options.stable&&r(this.cm,this.node)&&this.cm.scrollTo(null,this.cm.getScrollInfo().top-this.height),t.wrapper.removeChild(this.node),0==--t.panels&&i(this.cm)}},e.prototype.changed=function(t){var e=null==t?this.node.offsetHeight:t,n=this.cm.state.panels;this.cm._setSize(null,n.heightLeft-=e-this.height),this.height=e}})},WmO6:function(t,e,n){"use strict";function i(t,e){return r.partition(t,e)(this)}var r=n("hfga");e.partition=i},Wv1e:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},Wxra:function(t,e,n){"use strict";function i(t,e,n){return function(i){return i.lift(r(t,e,n))}}function r(t,e,n){var i,r,s=0,a=!1,l=!1;return function(u){s++,i&&!a||(a=!1,i=new o.ReplaySubject(t,e,n),r=u.subscribe({next:function(t){i.next(t)},error:function(t){a=!0,i.error(t)},complete:function(){l=!0,i.complete()}}));var c=i.subscribe(this);return function(){s--,c.unsubscribe(),r&&0===s&&l&&r.unsubscribe()}}}var o=n("0imh");e.shareReplay=i},XG4q:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new a)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("Z5ED");e.ignoreElements=i;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype._next=function(t){s.noop()},e}(o.Subscriber)},XL2q:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7JOC");i.Observable.from=r.from},XNum:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("xFbG"),o=function(t){function e(e,n){t.call(this)}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r.Subscription);e.Action=o},XOyC:function(t,e,n){"use strict";function i(t,e){return r.delayWhen(t,e)(this)}var r=n("aeUV");e.delayWhen=i},XR5H:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),l=function(t){function e(e,n){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler=n}return i(e,t),e.prototype._subscribe=function(e){var n=this,i=n.logSubscribedFrame();return e.add(new o.Subscription(function(){n.logUnsubscribedFrame(i)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,n=0;n<e;n++)!function(){var e=t.messages[n];t.scheduler.schedule(function(){e.notification.observe(t)},e.frame)}()},e}(r.Subject);e.HotObservable=l,a.applyMixins(l,[s.SubscriptionLoggable])},XR71:function(t,e,n){"use strict";var i=n("bKpL"),r=n("AHF9");i.Observable.prototype.observeOn=r.observeOn},XWpj:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return 1===t.length&&r.isArray(t[0])&&(t=t[0]),e.lift.call(o.race.apply(void 0,[e].concat(t)))}}var r=n("NSJx"),o=n("YofN");e.race=i},Xa8F:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),r.windowCount(t,e)(this)}var r=n("GeBq");e.windowCount=i},Xga8:function(t,e,n){"use strict";var i=n("OXmC"),r=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new i.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,n=e[t];e[t]=new i.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},t}();e.SubscriptionLoggable=r},Xtvq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("zGUx");i.Observable.fromEvent=r.fromEvent},"Y+l6":function(t,e,n){"use strict";function i(){return r.toArray()(this)}var r=n("Y4uv");e.toArray=i},Y4uv:function(t,e,n){"use strict";function i(t,e,n){return t.push(e),t}function r(){return o.reduce(i,[])}var o=n("JwCl");e.toArray=r},YFUQ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("BJqU");i.Observable.prototype.throttleTime=r.throttleTime},"Yj/5":function(t,e,n){"use strict";var i=n("Fq81");e.fromEventPattern=i.FromEventPatternObservable.create},YofN:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!o.isArray(t[0]))return t[0];t=t[0]}return new s.ArrayObservable(t).lift(new u)}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("NSJx"),s=n("wZOE"),a=n("yW9Z"),l=n("ktfo");e.race=i;var u=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new c(t))},t}();e.RaceOperator=u;var c=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return r(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var i=t[n],r=l.subscribeToResult(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(a.OuterSubscriber);e.RaceSubscriber=c},Yvsb:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("Z5ED"),s=function(t){function e(){t.call(this)}return i(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){o.noop()},e}(r.Observable);e.NeverObservable=s},Z2Sm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("3N4h");i.Observable.prototype.window=r.window},ZNYO:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.sample=i;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new l(t),i=e.subscribe(n);return i.add(s.subscribeToResult(n,this.notifier)),i},t}(),l=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return r(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(o.OuterSubscriber)},ZQKz:function(t,e,n){"use strict";var i=n("bKpL"),r=n("1eQ7");i.Observable.prototype.first=r.first},ZQVD:function(t,e,n){"use strict";function i(){return r.ignoreElements()(this)}var r=n("XG4q");e.ignoreElements=i},ZXBV:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Yj/5");i.Observable.fromEventPattern=r.fromEventPattern},Zfg9:function(t,e,n){"use strict";function i(t){return r.skipLast(t)(this)}var r=n("EmkH");e.skipLast=i},"Zz+K":function(t,e,n){"use strict";var i=n("/oeL"),r=n("qbdv"),o=n("Oery"),s=n("5FV4");n.d(e,"a",function(){return l});var a=[o.a,o.b,o.c,o.d],l=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s.a]}},t}();l.decorators=[{type:i.NgModule,args:[{declarations:a,exports:a,imports:[r.CommonModule]}]}],l.ctorParameters=function(){return[]}},a9bY:function(t,e,n){"use strict";function i(t){return r.max(t)(this)}var r=n("jjPq");e.max=i},aCMF:function(t,e,n){"use strict";function i(t,e){return r.switchMap(t,e)(this)}var r=n("TupL");e.switchMap=i},aL6N:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.skipWhile=i;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return r(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(o.Subscriber)},aeUV:function(t,e,n){"use strict";function i(t,e){return e?function(n){return new h(n,e).lift(new u(t))}:function(e){return e.lift(new u(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("bKpL"),a=n("yW9Z"),l=n("ktfo");e.delayWhen=i;var u=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delayDurationSelector))},t}(),c=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=l.subscribeToResult(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),h=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return r(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new p(t,this.source))},e}(s.Observable),p=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return r(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(o.Subscriber)},afTc:function(t,e,n){"use strict";var i=n("bKpL"),r=n("OdUO");i.Observable.prototype.elementAt=r.elementAt},amjc:function(t,e,n){"use strict";var i=n("bKpL"),r=n("yQ6o");i.Observable.bindCallback=r.bindCallback},asHm:function(t,e,n){"use strict";var i=n("bKpL"),r=n("OADz");i.Observable.prototype.withLatestFrom=r.withLatestFrom},azLz:function(t,e,n){"use strict";var i=n("bKpL"),r=n("CH/r");i.Observable.prototype.debounceTime=r.debounceTime},bAfU:function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("GaSD"),s=n("4Q/O"),a=n("lA7/"),l=n("75Hr"),u=n("KSV9"),c=n("/6Tg");n.d(e,"a",function(){return f});var h={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return f}),multi:!0},p={provide:r.NG_VALIDATORS,useExisting:n.i(i.forwardRef)(function(){return f}),multi:!0},f=function(){function t(t,e,r,o,s,a,u,c){var h=this;this._parserFormatter=t,this._elRef=e,this._vcRef=r,this._renderer=o,this._cfr=s,this._service=u,this._calendar=c,this._cRef=null,this.navigate=new i.EventEmitter,this._onChange=function(t){},this._onTouched=function(){},this._validatorChange=function(){},this._zoneSubscription=a.onStable.subscribe(function(){h._cRef&&n.i(l.a)(h._elRef.nativeElement,h._cRef.location.nativeElement,"bottom-left")})}return t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.registerOnValidatorChange=function(t){this._validatorChange=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elRef.nativeElement,"disabled",t),this.isOpen()&&this._cRef.instance.setDisabledState(t)},t.prototype.validate=function(t){var e=t.value;return null===e||void 0===e?null:this._calendar.isValid(e)?this.minDate&&o.a.from(e).before(o.a.from(this.minDate))?{ngbDate:{requiredBefore:this.minDate}}:this.maxDate&&o.a.from(e).after(o.a.from(this.maxDate))?{ngbDate:{requiredAfter:this.maxDate}}:void 0:{ngbDate:{invalid:t.value}}},t.prototype.writeValue=function(t){var e=t?new o.a(t.year,t.month,t.day):null;this._model=this._calendar.isValid(t)?e:null,this._writeModelValue(this._model)},t.prototype.manualDateChange=function(t){this._model=this._service.toValidDate(this._parserFormatter.parse(t),null),this._onChange(this._model?{year:this._model.year,month:this._model.month,day:this._model.day}:t),this._writeModelValue(this._model)},t.prototype.isOpen=function(){return!!this._cRef},t.prototype.open=function(){var t=this;if(!this.isOpen()){var e=this._cfr.resolveComponentFactory(s.a);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._cRef.instance.writeValue(this._model),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.registerOnChange(function(e){t.writeValue(e),t._onChange(e),t.close()})}},t.prototype.close=function(){this.isOpen()&&(this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null)},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.navigateTo=function(t){this.isOpen()&&this._cRef.instance.navigateTo(t)},t.prototype.onBlur=function(){this._onTouched()},t.prototype.ngOnChanges=function(t){(t.minDate||t.maxDate)&&this._validatorChange()},t.prototype.ngOnDestroy=function(){this.close(),this._zoneSubscription.unsubscribe()},t.prototype._applyDatepickerInputs=function(t){var e=this;["dayTemplate","displayMonths","firstDayOfWeek","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t.startDate=this.startDate||this._model},t.prototype._applyPopupStyling=function(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.setStyle(t,"padding","0")},t.prototype._subscribeForDatepickerOutputs=function(t){var e=this;t.navigate.subscribe(function(t){return e.navigate.emit(t)})},t.prototype._writeModelValue=function(t){this._renderer.setProperty(this._elRef.nativeElement,"value",this._parserFormatter.format(t)),this.isOpen()&&(this._cRef.instance.writeValue(t),this._onTouched())},t}();f.decorators=[{type:i.Directive,args:[{selector:"input[ngbDatepicker]",exportAs:"ngbDatepicker",host:{"(change)":"manualDateChange($event.target.value)","(keyup.esc)":"close()","(blur)":"onBlur()"},providers:[h,p,c.a]}]}],f.ctorParameters=function(){return[{type:a.a},{type:i.ElementRef},{type:i.ViewContainerRef},{type:i.Renderer2},{type:i.ComponentFactoryResolver},{type:i.NgZone},{type:c.a},{type:u.a}]},f.propDecorators={dayTemplate:[{type:i.Input}],displayMonths:[{type:i.Input}],firstDayOfWeek:[{type:i.Input}],markDisabled:[{type:i.Input}],minDate:[{type:i.Input}],maxDate:[{type:i.Input}],navigation:[{type:i.Input}],outsideDays:[{type:i.Input}],showWeekdays:[{type:i.Input}],showWeekNumbers:[{type:i.Input}],startDate:[{type:i.Input}],navigate:[{type:i.Output}]}},bLt9:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new h(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("xFbG"),a=n("RdI5"),l=n("XRvs"),u=n("yW9Z"),c=n("ktfo");e.windowToggle=i;var h=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},t}(),p=function(t){function e(e,n,i){t.call(this,e),this.openings=n,this.closingSelector=i,this.contexts=[],this.add(this.openSubscription=c.subscribeToResult(this,n,n))}return r(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,i=-1;++i<n;){var r=e[i];r.window.complete(),r.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,i,r){if(t===this.openings){var u=this.closingSelector,h=a.tryCatch(u)(e);if(h===l.errorObject)return this.error(l.errorObject.e);var p=new o.Subject,f=new s.Subscription,d={window:p,subscription:f};this.contexts.push(d);var m=c.subscribeToResult(this,h,d);m.closed?this.closeWindow(this.contexts.length-1):(m.context=d,f.add(m)),this.destination.next(p)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],i=n.window,r=n.subscription;e.splice(t,1),i.complete(),r.unsubscribe()}},e}(u.OuterSubscriber)},bN7U:function(t,e,n){"use strict";var i=n("bKpL"),r=n("fxBd");i.Observable.prototype.takeLast=r.takeLast},bjDG:function(t,e,n){"use strict";var i=n("NZPJ");e.generate=i.GenerateObservable.create},bprQ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("9mYp");i.Observable.onErrorResumeNext=r.onErrorResumeNext},buGu:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=null),r.defaultIfEmpty(t)(this)}var r=n("PbxL");e.defaultIfEmpty=i},c0Tg:function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e");n.d(e,"a",function(){return o});var o=function(){function t(){this.activeIdx=0,this.focusFirst=!0,this.formatter=r.d,this.selectEvent=new i.EventEmitter,this.activeChangeEvent=new i.EventEmitter}return t.prototype.getActive=function(){return this.results[this.activeIdx]},t.prototype.markActive=function(t){this.activeIdx=t,this._activeChanged()},t.prototype.next=function(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()},t.prototype.prev=function(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()},t.prototype.select=function(t){this.selectEvent.emit(t)},t.prototype.ngOnInit=function(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()},t.prototype._activeChanged=function(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)},t}();o.decorators=[{type:i.Component,args:[{selector:"ngb-typeahead-window",exportAs:"ngbTypeaheadWindow",host:{class:"dropdown-menu",style:"display: block",role:"listbox","[id]":"id"},template:'\n    <ng-template #rt let-result="result" let-term="term" let-formatter="formatter">\n      <ngb-highlight [result]="formatter(result)" [term]="term"></ngb-highlight>\n    </ng-template>\n    <ng-template ngFor [ngForOf]="results" let-result let-idx="index">\n      <button type="button" class="dropdown-item" role="option"\n        [id]="id + \'-\' + idx"\n        [class.active]="idx === activeIdx"\n        (mouseenter)="markActive(idx)"\n        (click)="select(result)">\n          <ng-template [ngTemplateOutlet]="resultTemplate || rt"\n          [ngOutletContext]="{result: result, term: term, formatter: formatter}"></ng-template>\n      </button>\n    </ng-template>\n  '}]}],o.ctorParameters=function(){return[]},o.propDecorators={id:[{type:i.Input}],focusFirst:[{type:i.Input}],results:[{type:i.Input}],term:[{type:i.Input}],formatter:[{type:i.Input}],resultTemplate:[{type:i.Input}],selectEvent:[{type:i.Output,args:["select"]}],activeChangeEvent:[{type:i.Output,args:["activeChange"]}]}},c2EU:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.defaultThrottleConfig),r.throttle(t,e)(this)}var r=n("DrEP");e.throttle=i},cviY:function(t,e,n){"use strict";function i(t){return a["ɵvid"](0,[(t()(),a["ɵeld"](0,0,null,null,3,"option",[],null,null,null,null,null)),a["ɵdid"](1,147456,null,0,l.NgSelectOption,[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),a["ɵdid"](2,147456,null,0,l["ɵq"],[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),a["ɵted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.component.i18n.getMonthShortName(e.context.$implicit))})}function r(t){return a["ɵvid"](0,[(t()(),a["ɵeld"](0,0,null,null,3,"option",[],null,null,null,null,null)),a["ɵdid"](1,147456,null,0,l.NgSelectOption,[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),a["ɵdid"](2,147456,null,0,l["ɵq"],[a.ElementRef,a.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),a["ɵted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.context.$implicit)})}function o(t){return a["ɵvid"](0,[(t()(),a["ɵted"](-1,null,["\n    "])),(t()(),a["ɵeld"](1,0,null,null,4,"select",[["class","custom-select d-inline-block"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var i=!0,r=t.component;if("change"===e){i=!1!==r.changeMonth(n.target.value)&&i}return i},null,null)),(t()(),a["ɵted"](-1,null,["\n      "])),(t()(),a["ɵand"](16777216,null,null,1,null,i)),a["ɵdid"](4,802816,null,0,c.NgForOf,[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),a["ɵted"](-1,null,["\n    "])),(t()(),a["ɵeld"](6,0,null,null,4,"select",[["class","custom-select d-inline-block"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var i=!0,r=t.component;if("change"===e){i=!1!==r.changeYear(n.target.value)&&i}return i},null,null)),(t()(),a["ɵted"](-1,null,["\n      "])),(t()(),a["ɵand"](16777216,null,null,1,null,r)),a["ɵdid"](9,802816,null,0,c.NgForOf,[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),a["ɵted"](-1,null,["\n    "])),(t()(),a["ɵted"](-1,null,[" \n  "]))],function(t,e){var n=e.component;t(e,4,0,n.months),t(e,9,0,n.years)},function(t,e){var n=e.component;t(e,1,0,n.disabled,null==n.date?null:n.date.month),t(e,6,0,n.disabled,null==n.date?null:n.date.year)})}function s(t){return a["ɵvid"](0,[(t()(),a["ɵeld"](0,0,null,null,1,"ngb-datepicker-navigation-select",[],null,null,null,o,d)),a["ɵdid"](1,573440,null,0,u.a,[h.a,p.a],null,null)],null,null)}var a=n("/oeL"),l=n("bm2B"),u=n("JNkN"),c=n("qbdv"),h=n("CuDZ"),p=n("KSV9");n.d(e,"b",function(){return d}),e.a=o;var f=["select[_ngcontent-%COMP%] {\n      \n      padding: 0.25rem 0.5rem;\n      font-size: 0.875rem;      \n      line-height: 1.25;\n      \n      height: inherit;\n      width: 50%;\n    }"],d=a["ɵcrt"]({encapsulation:0,styles:f,data:{}});a["ɵccf"]("ngb-datepicker-navigation-select",u.a,s,{date:"date",disabled:"disabled",maxDate:"maxDate",minDate:"minDate"},{select:"select"},[])},"cyM/":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.skip=i;var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},d3kC:function(t,e,n){"use strict";var i=n("bKpL"),r=n("bjDG");i.Observable.generate=r.generate},dN2u:function(t,e,n){"use strict";var i=n("/oeL"),r=n("KRwK");n.d(e,"a",function(){return o});var o=function(){function t(t,e,n){this._moduleCFR=t,this._injector=e,this._modalStack=n}return t.prototype.open=function(t,e){return void 0===e&&(e={}),this._modalStack.open(this._moduleCFR,this._injector,t,e)},t}();o.decorators=[{type:i.Injectable}],o.ctorParameters=function(){return[{type:i.ComponentFactoryResolver},{type:i.Injector},{type:r.a}]}},dffx:function(t,e,n){"use strict";function i(t){var e=u.async,n=null,i=Number.POSITIVE_INFINITY;return p.isScheduler(arguments[3])&&(e=arguments[3]),p.isScheduler(arguments[2])?e=arguments[2]:h.isNumeric(arguments[2])&&(i=arguments[2]),p.isScheduler(arguments[1])?e=arguments[1]:h.isNumeric(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new f(t,n,i,e))}}function r(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function o(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=n.openWindow(),a=this,l={action:a,subscription:null},u={subscriber:n,window:o,context:l};l.subscription=i.schedule(s,e,u),a.add(l.subscription),a.schedule(t,r)}function s(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=n("rlar"),u=n("IhB/"),c=n("T14+"),h=n("EsGe"),p=n("MicL");e.windowTime=i;var f=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(l.Subject),m=function(t){function e(e,n,i,a,l){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=i,this.maxWindowSize=a,this.scheduler=l,this.windows=[];var u=this.openWindow();if(null!==i&&i>=0){var c={subscriber:this,window:u,context:null},h={windowTimeSpan:n,windowCreationInterval:i,subscriber:this,scheduler:l};this.add(l.schedule(s,n,c)),this.add(l.schedule(o,i,h))}else{var p={subscriber:this,window:u,windowTimeSpan:n};this.add(l.schedule(r,n,p))}}return a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var r=e[i];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(c.Subscriber)},dgXD:function(t,e,n){"use strict";var i=n("bKpL"),r=n("7dLC");i.Observable.prototype.race=r.race},"dh/p":function(t,e,n){"use strict";var i=n("BkNc"),r=n("CPp0"),o=n("bKpL"),s=(n.n(o),n("5FRs")),a=n("6akk"),l=n("5v8a"),u=(n.n(l),n("xpf9"));n.n(u);n.d(e,"a",function(){return c});var c=function(){function t(t,e,n){this.http=t,this.router=e,this.authService=n}return t.prototype.getArchivos=function(t){var e=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new r.m;n.set("cedula",t);var i=new r.g({headers:e,search:n});return this.http.get(s.a+"/servicios/archivo",i).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.getArchivosCompartidosAlumno=function(t){var e=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new r.m;n.set("cedula",t),n.set("compartidos","true");var i=new r.g({headers:e,search:n});return this.http.get(s.a+"/servicios/archivo",i).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.crearArchivo=function(t){var e=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new r.g({headers:e});return this.http.post(s.a+"/servicios/archivo",t,n).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.editarArchivo=function(t,e){var n=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),i=new r.g({headers:n});return this.http.put(s.a+"/servicios/archivo/"+t,e,i).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.eliminarArchivo=function(t){var e=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new r.g({headers:e});return this.http.delete(s.a+"/servicios/archivo/"+t,n).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.getCopiaArchivoCompartidoGrupo=function(t,e){var n=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),i=new r.m;i.set("cedula",t);var o=new r.g({headers:n,search:i});return this.http.get(s.a+"/servicios/archivo/compartido/"+e,o).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.compartirArchivoGrupo=function(t,e){var n=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),i=new r.g({headers:n}),o={id:e};return this.http.post(s.a+"/servicios/grupo/"+t.liceoId+"/"+t.anio+"/"+t.grado+"/"+t.grupo+"/archivo",o,i).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.calificarArchivo=function(t,e){var n=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),i=new r.g({headers:n});return this.http.post(s.a+"/servicios/archivo/"+t+"/evaluacion",e,i).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.getGrupos=function(t){var e=new r.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),n=new r.m;n.set("cedula",t);var i=new r.g({headers:e,search:n});return this.http.get(s.a+"/servicios/grupo",i).map(function(t){return t.json()}).catch(this.handleError)},t.prototype.handleError=function(t){401==t.status&&this.router.navigate(["/login"]);var e=t.message?t.message:t.status?t.status+" - "+t.statusText:"Server error";return console.error(e),o.Observable.throw(e)},t.ctorParameters=function(){return[{type:r.i},{type:i.c},{type:a.a}]},t}()},dtBE:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];l.isScheduler(n)?t.pop():n=null;var i=t.length;return 1===i?a.concat(new o.ScalarObservable(t[0],n),e):i>1?a.concat(new r.ArrayObservable(t,n),e):a.concat(new s.EmptyObservable(n),e)}}var r=n("wZOE"),o=n("aOKN"),s=n("fcnB"),a=n("7kbP"),l=n("MicL");e.startWith=i},duFl:function(t,e,n){"use strict";function i(t){var e=arguments.length,n=l.async;c.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new h(t,i,r,n))}}function r(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function o(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext(),a=this;i.closed||(i.add(o.closeAction=r.schedule(s,n,{subscriber:i,context:o})),a.schedule(t,e))}function s(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=n("IhB/"),u=n("T14+"),c=n("MicL");e.bufferTime=i;var h=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),p=function(){function t(){this.buffer=[]}return t}(),f=function(t){function e(e,n,i,a,l){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=i,this.maxBufferSize=a,this.scheduler=l,this.contexts=[];var u=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly){var c={subscriber:this,context:u,bufferTimeSpan:n};this.add(u.closeAction=l.schedule(r,n,c))}else{var h={subscriber:this,context:u},p={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:this,scheduler:l};this.add(u.closeAction=l.schedule(s,n,h)),this.add(l.schedule(o,i,p))}}return a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this,n=e.contexts,i=e.destination;n.length>0;){var r=n.shift();i.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(r,n,i))}},e.prototype.openContext=function(){var t=new p;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(u.Subscriber)},dxfK:function(t,e,n){"use strict";function i(t,e){return r.distinctUntilKeyChanged(t,e)(this)}var r=n("HBVP");e.distinctUntilKeyChanged=i},dy5W:function(t,e,n){"use strict";var i=n("bKpL"),r=n("WSkQ");i.Observable.prototype.last=r.last},dyFf:function(t,e,n){"use strict";var i=n("bKpL"),r=n("PT4i");i.Observable.never=r.never},e7Zl:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=function(t){function e(e,n,i){t.call(this),this.start=e,this._count=n,this.scheduler=i}return i(e,t),e.create=function(t,n,i){return void 0===t&&(t=0),void 0===n&&(n=0),new e(t,n,i)},e.dispatch=function(t){var e=t.start,n=t.index,i=t.count,r=t.subscriber;if(n>=i)return void r.complete();r.next(e),r.closed||(t.index=n+1,t.start=e+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=0,i=this.start,r=this._count,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,count:r,start:i,subscriber:t});for(;;){if(n++>=r){t.complete();break}if(t.next(i++),t.closed)break}},e}(r.Observable);e.RangeObservable=o},eqpX:function(t,e,n){"use strict";var i=n("bKpL"),r=n("rDIt");i.Observable.prototype.do=r._do,i.Observable.prototype._do=r._do},etEa:function(t,e,n){"use strict";function i(t,e){return r.find(t,e)(this)}var r=n("0dhf");e.find=i},etpI:function(t,e,n){"use strict";var i=function(){function t(){this.values={}}return t.prototype.delete=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var n=this.values;for(var i in n)n.hasOwnProperty(i)&&null!==n[i]&&t.call(e,n[i],i)},t.prototype.clear=function(){this.values={}},t}();e.FastMap=i},eumZ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Xa8F");i.Observable.prototype.windowCount=r.windowCount},f1rf:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.interval=5e3,this.wrap=!0,this.keyboard=!0}return t}();r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[]}},"f7+7":function(t,e,n){"use strict";function i(t){var e=this,n=t.source,i=t.subscriber,s=t.context,a=n,h=a.callbackFunc,p=a.args,f=a.scheduler,d=n.subject;if(!d){d=n.subject=new c.AsyncSubject;var m=function t(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var s=t.source,a=s.selector,c=s.subject,h=n.shift();if(h)e.add(f.schedule(o,0,{err:h,subject:c}));else if(a){var p=l.tryCatch(a).apply(this,n);p===u.errorObject?e.add(f.schedule(o,0,{err:u.errorObject.e,subject:c})):e.add(f.schedule(r,0,{value:p,subject:c}))}else{var d=n.length<=1?n[0]:n;e.add(f.schedule(r,0,{value:d,subject:c}))}};m.source=n;l.tryCatch(h).apply(s,p.concat(m))===u.errorObject&&e.add(f.schedule(o,0,{err:u.errorObject.e,subject:d}))}e.add(d.subscribe(i))}function r(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function o(t){var e=t.err;t.subject.error(e)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n("bKpL"),l=n("RdI5"),u=n("XRvs"),c=n("l6Wf"),h=function(t){function e(e,n,i,r,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=i,this.context=r,this.scheduler=o}return s(e,t),e.create=function(t,n,i){return void 0===n&&(n=void 0),function(){for(var r=[],o=0;o<arguments.length;o++)r[o-0]=arguments[o];return new e(t,n,r,this,i)}},e.prototype._subscribe=function(t){var e=this.callbackFunc,n=this.args,r=this.scheduler,o=this.subject;if(r)return r.schedule(i,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new c.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var i=t.source,r=i.selector,o=i.subject,s=e.shift();if(s)o.error(s);else if(r){var a=l.tryCatch(r).apply(this,e);a===u.errorObject?o.error(u.errorObject.e):(o.next(a),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;l.tryCatch(e).apply(this.context,n.concat(s))===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(t)},e}(a.Observable);e.BoundNodeCallbackObservable=h},f7nC:function(t,e,n){"use strict";function i(t){return r.bufferWhen(t)(this)}var r=n("v1IT");e.bufferWhen=i},fV3I:function(t,e,n){"use strict";function i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=e.length,r=0;r<i;r++){var o=e[r];for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function r(t){return t.Object.assign||i}var o=n("zijX");e.assignImpl=i,e.getAssign=r,e.assign=r(o.root)},fdVa:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),r.mergeScan(t,e,n)(this)}var r=n("t9cH");e.mergeScan=i},fxBd:function(t,e,n){"use strict";function i(t){return r.takeLast(t)(this)}var r=n("XvrG");e.takeLast=i},fxWY:function(t,e,n){"use strict";var i=n("/oeL"),r=n("Qyse");n.d(e,"b",function(){return o}),n.d(e,"a",function(){return s});var o=function(){function t(t){this._open=!1,this.openChange=new i.EventEmitter,this.up=t.up,this.autoClose=t.autoClose}return t.prototype.isOpen=function(){return this._open},t.prototype.open=function(){this._open||(this._open=!0,this.openChange.emit(!0))},t.prototype.close=function(){this._open&&(this._open=!1,this.openChange.emit(!1))},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.closeFromOutsideClick=function(t){this.autoClose&&2!==t.button&&!this._isEventFromToggle(t)&&this.close()},t.prototype.closeFromOutsideEsc=function(){this.autoClose&&this.close()},Object.defineProperty(t.prototype,"toggleElement",{set:function(t){this._toggleElement=t},enumerable:!0,configurable:!0}),t.prototype._isEventFromToggle=function(t){return!!this._toggleElement&&this._toggleElement.contains(t.target)},t}();o.decorators=[{type:i.Directive,args:[{selector:"[ngbDropdown]",exportAs:"ngbDropdown",host:{"[class.dropdown]":"!up","[class.dropup]":"up","[class.show]":"isOpen()","(keyup.esc)":"closeFromOutsideEsc()","(document:click)":"closeFromOutsideClick($event)"}}]}],o.ctorParameters=function(){return[{type:r.a}]},o.propDecorators={up:[{type:i.Input}],autoClose:[{type:i.Input}],_open:[{type:i.Input,args:["open"]}],openChange:[{type:i.Output}]};var s=function(){function t(t,e){this.dropdown=t,t.toggleElement=e.nativeElement}return t.prototype.toggleOpen=function(){this.dropdown.toggle()},t}();s.decorators=[{type:i.Directive,args:[{selector:"[ngbDropdownToggle]",host:{class:"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()","(click)":"toggleOpen()"}}]}],s.ctorParameters=function(){return[{type:o},{type:i.ElementRef}]}},g3vg:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Cipy");i.Observable.prototype.shareReplay=r.shareReplay},g5gQ:function(t,e,n){"use strict";var i=n("/oeL"),r=n("fxWY"),o=n("Qyse");n.d(e,"a",function(){return a});var s=[r.a,r.b],a=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[o.a]}},t}();a.decorators=[{type:i.NgModule,args:[{declarations:s,exports:s}]}],a.ctorParameters=function(){return[]}},g9kf:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.repeatWhen=i;var c=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.notifier,e))},t}(),h=function(t){function e(e,n,i){t.call(this,e),this.notifier=n,this.source=i,this.sourceIsBeingSubscribedTo=!0}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return t.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,n=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this,n=e.notifications,i=e.retries,r=e.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=n,this.retries=i,this.retriesSubscription=r,this},e.prototype.subscribeToRetries=function(){this.notifications=new o.Subject;var e=s.tryCatch(this.notifier)(this.notifications);if(e===a.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=u.subscribeToResult(this,e)},e}(l.OuterSubscriber)},"gb+0":function(t,e,n){"use strict";function i(t){return r.single(t)(this)}var r=n("v71/");e.single=i},gbhw:function(t,e,n){"use strict";var i=n("bKpL"),r=n("422b");i.Observable.prototype.filter=r.filter},gonN:function(t,e,n){"use strict";function i(t,e){return r.multicast(t,e)(this)}var r=n("P02W");e.multicast=i},"h+is":function(t,e,n){"use strict";var i=n("bKpL"),r=n("9tb5");i.Observable.prototype.exhaustMap=r.exhaustMap},hAtc:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,2,"ngb-alert",[["class","alertPosition"]],[[4,"top",null]],[[null,"close"]],function(t,e,n){var i=!0,r=t.component;if("close"===e){i=!1!==r.closeAlert(t.context.index)&&i}return i},a.b,a.c)),s["ɵdid"](1,49152,null,0,l.a,[u.a],{type:[0,"type"]},{close:"close"}),(t()(),s["ɵted"](2,0,["\n","\n"]))],function(t,e){t(e,1,0,null==e.context.$implicit?null:e.context.$implicit.type)},function(t,e){t(e,0,0,60*e.context.index+30+"px"),t(e,2,0,null==e.context.$implicit?null:e.context.$implicit.text)})}function r(t){return s["ɵvid"](0,[(t()(),s["ɵted"](-1,null,["\n\n"])),(t()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](2,802816,null,0,c.NgForOf,[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),s["ɵted"](-1,null,["\n"]))],function(t,e){t(e,2,0,e.component.alerts)},null)}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"notificacion",[],null,null,null,r,d)),s["ɵdid"](1,114688,null,0,h.a,[p.a],null,null)],function(t,e){t(e,1,0)},null)}var s=n("/oeL"),a=n("CVNG"),l=n("PVMJ"),u=n("nVXb"),c=n("qbdv"),h=n("+iRM"),p=n("uiTn");n.d(e,"b",function(){return d}),e.a=r;var f=[],d=s["ɵcrt"]({encapsulation:2,styles:f,data:{}});s["ɵccf"]("notificacion",h.a,o,{},{},[])},hMLV:function(t,e,n){"use strict";var i=n("/oeL"),r=n("f1rf");n.d(e,"a",function(){return l});var o=0,s=function(){function t(t){this.tplRef=t,this.id="ngb-slide-"+o++}return t}();s.decorators=[{type:i.Directive,args:[{selector:"ng-template[ngbSlide]"}]}],s.ctorParameters=function(){return[{type:i.TemplateRef}]},s.propDecorators={id:[{type:i.Input}]};var a=function(){function t(t){this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard}return t.prototype.ngAfterContentChecked=function(){var t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:null},t.prototype.ngOnInit=function(){this._startTimer()},t.prototype.ngOnDestroy=function(){clearInterval(this._slideChangeInterval)},t.prototype.select=function(t){this.cycleToSelected(t),this._restartTimer()},t.prototype.prev=function(){this.cycleToPrev(),this._restartTimer()},t.prototype.next=function(){this.cycleToNext(),this._restartTimer()},t.prototype.pause=function(){this._stopTimer()},t.prototype.cycle=function(){this._startTimer()},t.prototype.cycleToNext=function(){this.cycleToSelected(this._getNextSlide(this.activeId))},t.prototype.cycleToPrev=function(){this.cycleToSelected(this._getPrevSlide(this.activeId))},t.prototype.cycleToSelected=function(t){var e=this._getSlideById(t);e&&(this.activeId=e.id)},t.prototype.keyPrev=function(){this.keyboard&&this.prev()},t.prototype.keyNext=function(){this.keyboard&&this.next()},t.prototype._restartTimer=function(){this._stopTimer(),this._startTimer()},t.prototype._startTimer=function(){var t=this;this.interval>0&&(this._slideChangeInterval=setInterval(function(){t.cycleToNext()},this.interval))},t.prototype._stopTimer=function(){clearInterval(this._slideChangeInterval)},t.prototype._getSlideById=function(t){var e=this.slides.filter(function(e){return e.id===t});return e.length?e[0]:null},t.prototype._getSlideIdxById=function(t){return this.slides.toArray().indexOf(this._getSlideById(t))},t.prototype._getNextSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id},t.prototype._getPrevSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id},t}();a.decorators=[{type:i.Component,args:[{selector:"ngb-carousel",exportAs:"ngbCarousel",host:{class:"carousel slide","[style.display]":'"block"',tabIndex:"0","(mouseenter)":"pause()","(mouseleave)":"cycle()","(keydown.arrowLeft)":"keyPrev()","(keydown.arrowRight)":"keyNext()"},template:'\n    <ol class="carousel-indicators">\n      <li *ngFor="let slide of slides" [id]="slide.id" [class.active]="slide.id === activeId" (click)="cycleToSelected(slide.id)"></li>\n    </ol>\n    <div class="carousel-inner">\n      <div *ngFor="let slide of slides" class="carousel-item" [class.active]="slide.id === activeId">\n        <ng-template [ngTemplateOutlet]="slide.tplRef"></ng-template>\n      </div>\n    </div>\n    <a class="left carousel-control-prev" role="button" (click)="cycleToPrev()">\n      <span class="carousel-control-prev-icon" aria-hidden="true"></span>\n      <span class="sr-only">Previous</span>\n    </a>\n    <a class="right carousel-control-next" role="button" (click)="cycleToNext()">\n      <span class="carousel-control-next-icon" aria-hidden="true"></span>\n      <span class="sr-only">Next</span>\n    </a>\n    '}]}],a.ctorParameters=function(){return[{type:r.a}]},a.propDecorators={slides:[{type:i.ContentChildren,args:[s]}],interval:[{type:i.Input}],wrap:[{type:i.Input}],keyboard:[{type:i.Input}],activeId:[{type:i.Input}]};var l=[a,s]},"hbO+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("slZm");i.Observable.empty=r.empty},hfga:function(t,e,n){"use strict";function i(t,e){return function(n){return[o.filter(t,e)(n),o.filter(r.not(t,e))(n)]}}var r=n("iyHZ"),o=n("Hd11");e.partition=i},i4mq:function(t,e,n){"use strict";var i=n("bKpL"),r=n("zbre");i.Observable.prototype.bufferCount=r.bufferCount},iDKa:function(t,e,n){"use strict";function i(t){return r.skip(t)(this)}var r=n("cyM/");e.skip=i},iH09:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("bKpL"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),l=function(t){function e(e,n){t.call(this,function(t){var e=this,n=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(n)})),e.scheduleMessages(t),t}),this.messages=e,this.subscriptions=[],this.scheduler=n}return i(e,t),e.prototype.scheduleMessages=function(t){for(var e=this.messages.length,n=0;n<e;n++){var i=this.messages[n];t.add(this.scheduler.schedule(function(t){var e=t.message,n=t.subscriber;e.notification.observe(n)},i.frame,{message:i,subscriber:t}))}},e}(r.Observable);e.ColdObservable=l,a.applyMixins(l,[s.SubscriptionLoggable])},ip92:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new s(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.count=i;var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,i){t.call(this,e),this.predicate=n,this.source=i,this.count=0,this.index=0}return r(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},iwys:function(t,e,n){"use strict";var i=n("bKpL"),r=n("1kAr");i.Observable.prototype.mapTo=r.mapTo},iyHZ:function(t,e,n){"use strict";function i(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}e.not=i},j8LY:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),function(i){return i.lift(new a(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.mergeMapTo=i;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=a;var l=function(t){function e(e,n,i,r){void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=n,this.resultSelector=i,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,n=this.index++,i=this.ish,r=this.destination;this.active++,this._innerSub(i,r,e,t,n)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n,i,r){this.add(s.subscribeToResult(this,t,i,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,i):a.next(e)},e.prototype.trySelectResult=function(t,e,n,i){var r,o=this,s=o.resultSelector,a=o.destination;try{r=s(t,e,n,i)}catch(t){return void a.error(t)}a.next(r)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapToSubscriber=l},j8RC:function(t,e,n){"use strict";var i=n("bKpL"),r=n("2Rhf");i.Observable.prototype.skipUntil=r.skipUntil},jKKE:function(t,e,n){"use strict";function i(t){return r.count(t)(this)}var r=n("ip92");e.count=i},jjPq:function(t,e,n){"use strict";function i(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return r.reduce(e)}var r=n("JwCl");e.max=i},jyAw:function(t,e,n){"use strict";function i(t,e,n,i){return r.groupBy(t,e,n,i)(this)}var r=n("8H5Y");e.GroupedObservable=r.GroupedObservable,e.groupBy=i},k6cv:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d");e.elementAt=i;var a=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.index,this.defaultValue))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.index=n,this.defaultValue=i}return r(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new s.ArgumentOutOfRangeError)),t.complete()},e}(o.Subscriber)},kAWK:function(t,e,n){"use strict";var i=n("bKpL"),r=n("QsbA");i.Observable.prototype.windowWhen=r.windowWhen},kGJb:function(t,e,n){"use strict";function i(t,e){return r.distinctUntilChanged(t,e)(this)}var r=n("2Sjb");e.distinctUntilChanged=i},kIyd:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Kuy3");i.Observable.prototype.subscribeOn=r.subscribeOn},ki6Z:function(t,e,n){"use strict";function i(){return r.exhaust()(this)}var r=n("weui");e.exhaust=i},kkQ5:function(t,e,n){"use strict";function i(t,e){return arguments.length>=2?r.scan(t,e)(this):r.scan(t)(this)}var r=n("H1KZ");e.scan=i},kqkQ:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.windowWhen=i;var c=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.closingSelector))},t}(),h=function(t){function e(e,n){t.call(this,e),this.destination=e,this.closingSelector=n,this.openWindow()}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow(r)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new o.Subject;this.destination.next(n);var i=s.tryCatch(this.closingSelector)();if(i===a.errorObject){var r=a.errorObject.e;this.destination.error(r),this.window.error(r)}else this.add(this.closingNotification=u.subscribeToResult(this,i))},e}(l.OuterSubscriber)},"l/Fw":function(t,e,n){"use strict";function i(t){return r.sample(t)(this)}var r=n("ZNYO");e.sample=i},"l3Q+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("tBQh");i.Observable.prototype.delay=r.delay},l6Wf:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("xFbG"),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(r.Subject);e.AsyncSubject=s},"lA7/":function(t,e,n){"use strict";var i=n("wM1e");n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(){function t(){}return t}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.parse=function(t){if(t){var e=t.trim().split("-");if(1===e.length&&n.i(i.a)(e[0]))return{year:n.i(i.b)(e[0]),month:null,day:null};if(2===e.length&&n.i(i.a)(e[0])&&n.i(i.a)(e[1]))return{year:n.i(i.b)(e[0]),month:n.i(i.b)(e[1]),day:null};if(3===e.length&&n.i(i.a)(e[0])&&n.i(i.a)(e[1])&&n.i(i.a)(e[2]))return{year:n.i(i.b)(e[0]),month:n.i(i.b)(e[1]),day:n.i(i.b)(e[2])}}return null},e.prototype.format=function(t){return t?t.year+"-"+(n.i(i.a)(t.month)?n.i(i.c)(t.month):"")+"-"+(n.i(i.a)(t.day)?n.i(i.c)(t.day):""):""},e}(o)},lDY9:function(t,e,n){!function(t){t(n("oiK7"))}(function(t){"use strict";function e(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e,n){return t.cmpPos(n.from,e.from)>0&&e.to.ch-e.from.ch!=n.to.ch-n.from.ch}function i(t,e,n){var i=t.options.hintOptions,r={};for(var o in m)r[o]=m[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(t,e)),r}function r(t){return"string"==typeof t?t:t.text}function o(t,e){function n(t,n){var r;r="string"!=typeof n?function(t){return n(t,e)}:i.hasOwnProperty(n)?i[n]:n,o[t]=r}var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},r=t.options.customKeys,o=r?{}:i;if(r)for(var s in r)r.hasOwnProperty(s)&&n(s,r[s]);var a=t.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&n(s,a[s]);return o}function s(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(e,n){this.completion=e,this.data=n,this.picked=!1;var i=this,a=e.cm,l=this.hints=document.createElement("ul");l.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var u=n.list,c=0;c<u.length;++c){var f=l.appendChild(document.createElement("li")),d=u[c],m=h+(c!=this.selectedHint?"":" "+p);null!=d.className&&(m=d.className+" "+m),f.className=m,d.render?d.render(f,n,d):f.appendChild(document.createTextNode(d.displayText||r(d))),f.hintId=c}var v=a.cursorCoords(e.options.alignWithWord?n.from:null),g=v.left,b=v.bottom,y=!0;l.style.left=g+"px",l.style.top=b+"px";var w=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),x=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(e.options.container||document.body).appendChild(l);var S=l.getBoundingClientRect(),C=S.bottom-x,O=l.scrollHeight>l.clientHeight+1,k=a.getScrollInfo();if(C>0){var T=S.bottom-S.top;if(v.top-(v.bottom-S.top)-T>0)l.style.top=(b=v.top-T)+"px",y=!1;else if(T>x){l.style.height=x-5+"px",l.style.top=(b=v.bottom-S.top)+"px";var _=a.getCursor();n.from.ch!=_.ch&&(v=a.cursorCoords(_),l.style.left=(g=v.left)+"px",S=l.getBoundingClientRect())}}var L=S.right-w;if(L>0&&(S.right-S.left>w&&(l.style.width=w-5+"px",L-=S.right-S.left-w),l.style.left=(g=v.left-L)+"px"),O)for(var I=l.firstChild;I;I=I.nextSibling)I.style.paddingRight=a.display.nativeBarWidth+"px";if(a.addKeyMap(this.keyMap=o(e,{moveFocus:function(t,e){i.changeActive(i.selectedHint+t,e)},setFocus:function(t){i.changeActive(t)},menuSize:function(){return i.screenAmount()},length:u.length,close:function(){e.close()},pick:function(){i.pick()},data:n})),e.options.closeOnUnfocus){var M;a.on("blur",this.onBlur=function(){M=setTimeout(function(){e.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(M)})}return a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),i=b+k.top-t.top,r=i-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(y||(r+=l.offsetHeight),r<=n.top||r>=n.bottom)return e.close();l.style.top=i+"px",l.style.left=g+k.left-t.left+"px"}),t.on(l,"dblclick",function(t){var e=s(l,t.target||t.srcElement);e&&null!=e.hintId&&(i.changeActive(e.hintId),i.pick())}),t.on(l,"click",function(t){var n=s(l,t.target||t.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),e.options.completeOnSingleClick&&i.pick())}),t.on(l,"mousedown",function(){setTimeout(function(){a.focus()},20)}),t.signal(n,"select",u[this.selectedHint],l.childNodes[this.selectedHint]),!0}function l(t,e){if(!t.somethingSelected())return e;for(var n=[],i=0;i<e.length;i++)e[i].supportsSelection&&n.push(e[i]);return n}function u(t,e,n,i){if(t.async)t(e,i,n);else{var r=t(e,n);r&&r.then?r.then(i):i(r)}}function c(e,n){var i,r=e.getHelpers(n,"hint");if(r.length){var o=function(t,e,n){function i(r){if(r==o.length)return e(null);u(o[r],t,n,function(t){t&&t.list.length>0?e(t):i(r+1)})}var o=l(t,r);i(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:i})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}var h="CodeMirror-hint",p="CodeMirror-hint-active";t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var i={hint:e};if(n)for(var r in n)i[r]=n[r];return t.showHint(i)},t.defineExtension("showHint",function(n){n=i(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;o<r.length;o++)if(r[o].head.line!=r[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var s=this.state.completionActive=new e(this,n);s.options.hint&&(t.signal(this,"startCompletion",this),s.update(!0))}});var f=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},d=window.cancelAnimationFrame||clearTimeout;e.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var i=e.list[n];i.hint?i.hint(this.cm,e,i):this.cm.replaceRange(r(i),i.from||e.from,i.to||e.to,"complete"),t.signal(e,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(d(this.debounce),this.debounce=0);var t=this.cm.getCursor(),e=this.cm.getLine(t.line);if(t.line!=this.startPos.line||e.length-t.ch!=this.startLen-this.startPos.ch||t.ch<this.startPos.ch||this.cm.somethingSelected()||t.ch&&this.options.closeCharacters.test(e.charAt(t.ch-1)))this.close();else{var n=this;this.debounce=f(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;u(this.options.hint,this.cm,this.options,function(i){e.tick==n&&e.finishUpdate(i,t)})}},finishUpdate:function(e,i){this.data&&t.signal(this.data,"update");var r=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),e&&this.data&&n(this.data,e)||(this.data=e,e&&e.list.length&&(r&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown"))))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var i=this.hints.childNodes[this.selectedHint];i.className=i.className.replace(" "+p,""),i=this.hints.childNodes[this.selectedHint=e],i.className+=" "+p,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:c}),t.registerHelper("hint","fromList",function(e,n){var i=e.getCursor(),r=e.getTokenAt(i),o=t.Pos(i.line,r.end);if(r.string&&/\w/.test(r.string[r.string.length-1]))var s=r.string,a=t.Pos(i.line,r.start);else var s="",a=o;for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,s.length)==s&&l.push(c)}if(l.length)return{list:l,from:a,to:o}}),t.commands.autocomplete=t.showHint;var m={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)})},lc3y:function(t,e,n){"use strict";function i(){return r.isEmpty()(this)}var r=n("C4ew");e.isEmpty=i},ltng:function(t,e,n){"use strict";var i=n("e7Zl");e.range=i.RangeObservable.create},m0eP:function(t,e,n){"use strict";function i(t){return o["ɵvid"](0,[(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵeld"](1,0,null,null,4,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(t()(),o["ɵted"](-1,null,["\n        "])),(t()(),o["ɵeld"](3,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),o["ɵncd"](null,0),(t()(),o["ɵted"](-1,null,["\n    "])),(t()(),o["ɵted"](-1,null,["\n    "]))],null,function(t,e){var n=e.component;t(e,1,0,"modal-dialog"+(n.size?" modal-"+n.size:""))})}function r(t){return o["ɵvid"](0,[(t()(),o["ɵeld"](0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["style","display: block;"],["tabindex","-1"]],[[8,"className",0]],[[null,"keyup.esc"],[null,"click"]],function(t,e,n){var i=!0;if("keyup.esc"===e){i=!1!==o["ɵnov"](t,1).escKey(n)&&i}if("click"===e){i=!1!==o["ɵnov"](t,1).backdropClick(n)&&i}return i},i,l)),o["ɵdid"](1,4440064,null,0,s.a,[o.ElementRef,o.Renderer2],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,"modal fade show"+(o["ɵnov"](e,1).windowClass?" "+o["ɵnov"](e,1).windowClass:""))})}var o=n("/oeL"),s=n("AVYa");n.d(e,"a",function(){return u});var a=[],l=o["ɵcrt"]({encapsulation:2,styles:a,data:{}}),u=o["ɵccf"]("ngb-modal-window",s.a,r,{backdrop:"backdrop",keyboard:"keyboard",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"])},mDYJ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("dxfK");i.Observable.prototype.distinctUntilKeyChanged=r.distinctUntilKeyChanged},mQQt:function(t,e,n){"use strict";var i=n("/oeL"),r=n("F3px"),o=n("75Hr"),s=n("uJci"),a=n("7zUS");n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var l=0,u=function(){function t(){this.placement="top"}return t}();u.decorators=[{type:i.Component,args:[{selector:"ngb-popover-window",changeDetection:i.ChangeDetectionStrategy.OnPush,host:{"[class]":'"popover show popover-" + placement',role:"tooltip","[id]":"id"},template:'\n    <h3 class="popover-title">{{title}}</h3><div class="popover-content"><ng-content></ng-content></div>\n    '}]}],u.ctorParameters=function(){return[]},u.propDecorators={placement:[{type:i.Input}],title:[{type:i.Input}],id:[{type:i.Input}]};var c=function(){function t(t,e,r,a,c,h,p){var f=this;this._elementRef=t,this._renderer=e,this.shown=new i.EventEmitter,this.hidden=new i.EventEmitter,this._ngbPopoverWindowId="ngb-popover-"+l++,this.placement=h.placement,this.triggers=h.triggers,this.container=h.container,this._popupService=new s.a(u,r,c,e,a),this._zoneSubscription=p.onStable.subscribe(function(){f._windowRef&&n.i(o.a)(f._elementRef.nativeElement,f._windowRef.location.nativeElement,f.placement,"body"===f.container)})}return t.prototype.open=function(t){this._windowRef||(this._windowRef=this._popupService.open(this.ngbPopover,t),this._windowRef.instance.placement=this.placement,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.markForCheck(),this.shown.emit())},t.prototype.close=function(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=n.i(r.a)(this._renderer,this._elementRef.nativeElement,this.triggers,this.open.bind(this),this.close.bind(this),this.toggle.bind(this))},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}();c.decorators=[{type:i.Directive,args:[{selector:"[ngbPopover]",exportAs:"ngbPopover"}]}],c.ctorParameters=function(){return[{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:i.ComponentFactoryResolver},{type:i.ViewContainerRef},{type:a.a},{type:i.NgZone}]},c.propDecorators={ngbPopover:[{type:i.Input}],popoverTitle:[{type:i.Input}],placement:[{type:i.Input}],triggers:[{type:i.Input}],container:[{type:i.Input}],shown:[{type:i.Output}],hidden:[{type:i.Output}]}},mjW1:function(t,e,n){"use strict";var i=n("bKpL"),r=n("rAcl");i.Observable.pairs=r.pairs},mvrJ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("6JjX");i.Observable.prototype.switch=r._switch,i.Observable.prototype._switch=r._switch},"n/Gy":function(t,e,n){"use strict";var i=n("/oeL"),r=n("wM1e"),o=n("Wv1e");n.d(e,"a",function(){return s});var s=function(){function t(t){this.value=0,this.max=t.max,this.animated=t.animated,this.striped=t.striped,this.type=t.type,this.showValue=t.showValue}return t.prototype.getValue=function(){return n.i(r.e)(this.value,this.max)},t.prototype.getPercentValue=function(){return 100*this.getValue()/this.max},t}();s.decorators=[{type:i.Component,args:[{selector:"ngb-progressbar",changeDetection:i.ChangeDetectionStrategy.OnPush,template:'\n    <div class="progress">\n      <div class="progress-bar{{type ? \' bg-\' + type : \'\'}}{{animated ? \' progress-bar-animated\' : \'\'}}{{striped ?\n    \' progress-bar-striped\' : \'\'}}" role="progressbar" [style.width.%]="getPercentValue()"\n    [attr.aria-valuenow]="getValue()" aria-valuemin="0" [attr.aria-valuemax]="max">\n        <span *ngIf="showValue">{{getPercentValue()}}%</span><ng-content></ng-content>\n      </div>\n    </div>\n  '}]}],s.ctorParameters=function(){return[{type:o.a}]},s.propDecorators={max:[{type:i.Input}],animated:[{type:i.Input}],striped:[{type:i.Input}],showValue:[{type:i.Input}],type:[{type:i.Input}],value:[{type:i.Input}]}},nfVm:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("/oeL"),r=n("bm2B"),o=n("oiK7"),s=function(){function t(){this.change=new i.EventEmitter,this.focus=new i.EventEmitter,this.blur=new i.EventEmitter,this.cursorActivity=new i.EventEmitter,this.instance=null,this._value=""}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this._value=t,this.onChange(t))},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){},t.prototype.ngAfterViewInit=function(){this.config=this.config||{},this.codemirrorInit(this.config)},t.prototype.codemirrorInit=function(t){var e=this;this.instance=o.fromTextArea(this.host.nativeElement,t),this.instance.setValue(this._value),this.instance.on("change",function(){e.updateValue(e.instance.getValue())}),this.instance.on("focus",function(t,n){e.focus.emit({instance:t,event:n})}),this.instance.on("cursorActivity",function(t){e.cursorActivity.emit({instance:t})}),this.instance.on("blur",function(t,n){e.blur.emit({instance:t,event:n})})},t.prototype.updateValue=function(t){this.value=t,this.onTouched(),this.change.emit(t)},t.prototype.writeValue=function(t){this._value=t||"",this.instance&&this.instance.setValue(this._value)},t.prototype.onChange=function(t){},t.prototype.onTouched=function(){},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t}();s.decorators=[{type:i.Component,args:[{selector:"codemirror",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return s}),multi:!0}],template:"<textarea #host></textarea>"}]}],s.ctorParameters=function(){return[]},s.propDecorators={config:[{type:i.Input}],change:[{type:i.Output}],focus:[{type:i.Output}],blur:[{type:i.Output}],cursorActivity:[{type:i.Output}],host:[{type:i.ViewChild,args:["host"]}],instance:[{type:i.Output}],value:[{type:i.Input}]},e.CodemirrorComponent=s},nhnq:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("sdK6");e.BootstrapModalModule=i.BootstrapModalModule;var r=n("4cv6");e.DialogComponent=r.DialogComponent;var o=n("V672");e.DialogService=o.DialogService,e.DialogServiceConfig=o.DialogServiceConfig},"o/OZ":function(t,e,n){"use strict";var i=n("bKpL"),r=n("ziym");i.Observable.ajax=r.ajax},oOL0:function(t,e,n){"use strict";var i=n("bKpL"),r=n("olrH");i.Observable.prototype.concatMapTo=r.concatMapTo},oiK7:function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function e(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function n(t,n){return e(t).appendChild(n)}function i(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)r.appendChild(e[o]);return r}function r(t,e,n,r){var o=i(t,e,n,r);return o.setAttribute("role","presentation"),o}function o(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function s(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function a(e,n){var i=e.className;t(n).test(i)||(e.className+=(i?" ":"")+n)}function l(e,n){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!t(i[r]).test(n)&&(n+=" "+i[r]);return n}function u(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function c(t,e,n){e||(e={});for(var i in t)!t.hasOwnProperty(i)||!1===n&&e.hasOwnProperty(i)||(e[i]=t[i]);return e}function h(t,e,n,i,r){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i||0,s=r||0;;){var a=t.indexOf("\t",o);if(a<0||a>=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}function p(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}function f(t,e,n){for(var i=0,r=0;;){var o=t.indexOf("\t",i);-1==o&&(o=t.length);var s=o-i;if(o==t.length||r+s>=e)return i+Math.min(s,e-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=e)return i}}function d(t){for(;Us.length<=t;)Us.push(m(Us)+" ");return Us[t]}function m(t){return t[t.length-1]}function v(t,e){for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i],i);return n}function g(t,e,n){for(var i=0,r=n(e);i<t.length&&n(t[i])<=r;)i++;t.splice(i,0,e)}function b(){}function y(t,e){var n;return Object.create?n=Object.create(t):(b.prototype=t,n=new b),e&&c(e,n),n}function w(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Gs.test(t))}function x(t,e){return e?!!(e.source.indexOf("\\w")>-1&&w(t))||e.test(t):w(t)}function S(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}function C(t){return t.charCodeAt(0)>=768&&Ys.test(t)}function O(t,e,n){for(;(n<0?e>0:e<t.length)&&C(t.charAt(e));)e+=n;return e}function k(t,e,n){for(var i=e>n?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function T(t,e,n){var o=this;this.input=n,o.scrollbarFiller=i("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=i("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=r("div",null,"CodeMirror-code"),o.selectionDiv=i("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=i("div",null,"CodeMirror-cursors"),o.measure=i("div",null,"CodeMirror-measure"),o.lineMeasure=i("div",null,"CodeMirror-measure"),o.lineSpace=r("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=r("div",[o.lineSpace],"CodeMirror-lines");o.mover=i("div",[s],null,"position: relative"),o.sizer=i("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=i("div",null,null,"position: absolute; height: "+Vs+"px; width: 1px;"),o.gutters=i("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=i("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=i("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),gs&&bs<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),ys||fs&&Ls||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function _(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e<o){n=r;break}e-=o}return n.lines[e]}function L(t,e,n){var i=[],r=e.line;return t.iter(e.line,n.line+1,function(t){var o=t.text;r==n.line&&(o=o.slice(0,n.ch)),r==e.line&&(o=o.slice(e.ch)),i.push(o),++r}),i}function I(t,e,n){var i=[];return t.iter(e,n,function(t){i.push(t.text)}),i}function M(t,e){var n=e-t.height;if(n)for(var i=t;i;i=i.parent)i.height+=n}function A(t){if(null==t.parent)return null;for(var e=t.parent,n=p(e.lines,t),i=e.parent;i;e=i,i=i.parent)for(var r=0;i.children[r]!=e;++r)n+=i.children[r].chunkSize();return n+e.first}function E(t,e){var n=t.first;t:do{for(var i=0;i<t.children.length;++i){var r=t.children[i],o=r.height;if(e<o){t=r;continue t}e-=o,n+=r.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s],l=a.height;if(e<l)break;e-=l}return n+s}function N(t,e){return e>=t.first&&e<t.first+t.size}function R(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function D(t,e,n){if(void 0===n&&(n=null),!(this instanceof D))return new D(t,e,n);this.line=t,this.ch=e,this.sticky=n}function P(t,e){return t.line-e.line||t.ch-e.ch}function j(t,e){return t.sticky==e.sticky&&0==P(t,e)}function F(t){return D(t.line,t.ch)}function W(t,e){return P(t,e)<0?e:t}function H(t,e){return P(t,e)<0?t:e}function V(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function z(t,e){if(e.line<t.first)return D(t.first,0);var n=t.first+t.size-1;return e.line>n?D(n,_(t,n).text.length):B(e,_(t,e.line).text.length)}function B(t,e){var n=t.ch;return null==n||n>e?D(t.line,e):n<0?D(t.line,0):t}function q(t,e){for(var n=[],i=0;i<e.length;i++)n[i]=z(t,e[i]);return n}function K(){Xs=!0}function U(){Js=!0}function G(t,e,n){this.marker=t,this.from=e,this.to=n}function Y(t,e){if(t)for(var n=0;n<t.length;++n){var i=t[n];if(i.marker==e)return i}}function X(t,e){for(var n,i=0;i<t.length;++i)t[i]!=e&&(n||(n=[])).push(t[i]);return n}function J(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Z(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],s=o.marker,a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);if(a||o.from==e&&"bookmark"==s.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);(i||(i=[])).push(new G(s,o.from,l?null:o.to))}}return i}function Q(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],s=o.marker,a=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);if(a||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);(i||(i=[])).push(new G(s,l?null:o.from-e,null==o.to?null:o.to-e))}}return i}function $(t,e){if(e.full)return null;var n=N(t,e.from.line)&&_(t,e.from.line).markedSpans,i=N(t,e.to.line)&&_(t,e.to.line).markedSpans;if(!n&&!i)return null;var r=e.from.ch,o=e.to.ch,s=0==P(e.from,e.to),a=Z(n,r,s),l=Q(i,o,s),u=1==e.text.length,c=m(e.text).length+(u?r:0);if(a)for(var h=0;h<a.length;++h){var p=a[h];if(null==p.to){var f=Y(l,p.marker);f?u&&(p.to=null==f.to?null:f.to+c):p.to=r}}if(l)for(var d=0;d<l.length;++d){var v=l[d];if(null!=v.to&&(v.to+=c),null==v.from){var g=Y(a,v.marker);g||(v.from=c,u&&(a||(a=[])).push(v))}else v.from+=c,u&&(a||(a=[])).push(v)}a&&(a=tt(a)),l&&l!=a&&(l=tt(l));var b=[a];if(!u){var y,w=e.text.length-2;if(w>0&&a)for(var x=0;x<a.length;++x)null==a[x].to&&(y||(y=[])).push(new G(a[x].marker,null,null));for(var S=0;S<w;++S)b.push(y);b.push(l)}return b}function tt(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function et(t,e,n){var i=null;if(t.iter(e.line,n.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||i&&-1!=p(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:e,to:n}],o=0;o<i.length;++o)for(var s=i[o],a=s.find(0),l=0;l<r.length;++l){var u=r[l];if(!(P(u.to,a.from)<0||P(u.from,a.to)>0)){var c=[l,1],h=P(u.from,a.from),f=P(u.to,a.to);(h<0||!s.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(f>0||!s.inclusiveRight&&!f)&&c.push({from:a.to,to:u.to}),r.splice.apply(r,c),l+=c.length-3}}return r}function nt(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function it(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function rt(t){return t.inclusiveLeft?-1:0}function ot(t){return t.inclusiveRight?1:0}function st(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var i=t.find(),r=e.find(),o=P(i.from,r.from)||rt(t)-rt(e);if(o)return-o;var s=P(i.to,r.to)||ot(t)-ot(e);return s||e.id-t.id}function at(t,e){var n,i=Js&&t.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)r=i[o],r.marker.collapsed&&null==(e?r.from:r.to)&&(!n||st(n,r.marker)<0)&&(n=r.marker);return n}function lt(t){return at(t,!0)}function ut(t){return at(t,!1)}function ct(t,e,n,i,r){var o=_(t,e),s=Js&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=P(u.from,n)||rt(l.marker)-rt(r),h=P(u.to,i)||ot(l.marker)-ot(r);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?P(u.to,n)>=0:P(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?P(u.from,i)<=0:P(u.from,i)<0)))return!0}}}function ht(t){for(var e;e=lt(t);)t=e.find(-1,!0).line;return t}function pt(t){for(var e;e=ut(t);)t=e.find(1,!0).line;return t}function ft(t){for(var e,n;e=ut(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function dt(t,e){var n=_(t,e),i=ht(n);return n==i?e:A(i)}function mt(t,e){if(e>t.lastLine())return e;var n,i=_(t,e);if(!vt(t,i))return e;for(;n=ut(i);)i=n.find(1,!0).line;return A(i)+1}function vt(t,e){var n=Js&&e.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if(i=n[r],i.marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&gt(t,e,i))return!0}}function gt(t,e,n){if(null==n.to){var i=n.marker.find(1,!0);return gt(t,i.line,Y(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var r=void 0,o=0;o<e.markedSpans.length;++o)if(r=e.markedSpans[o],r.marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&gt(t,e,r))return!0}function bt(t){t=ht(t);for(var e=0,n=t.parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==t)break;e+=r.height}for(var o=n.parent;o;n=o,o=n.parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;e+=a.height}return e}function yt(t){if(0==t.height)return 0;for(var e,n=t.text.length,i=t;e=lt(i);){var r=e.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=t;e=ut(i);){var o=e.find(0,!0);n-=i.text.length-o.from.ch,i=o.to.line,n+=i.text.length-o.to.ch}return n}function wt(t){var e=t.display,n=t.doc;e.maxLine=_(n,n.first),e.maxLineLength=yt(e.maxLine),e.maxLineChanged=!0,n.iter(function(t){var n=yt(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}function xt(t,e,n,i){if(!t)return i(e,n,"ltr",0);for(var r=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>e||e==n&&s.to==e)&&(i(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}function St(t,e,n){var i;Zs=null;for(var r=0;r<t.length;++r){var o=t[r];if(o.from<e&&o.to>e)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:Zs=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:Zs=r)}return null!=i?i:Zs}function Ct(t,e){var n=t.order;return null==n&&(n=t.order=Qs(t.text,e)),n}function Ot(t,e){return t._handlers&&t._handlers[e]||$s}function kt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var i=t._handlers,r=i&&i[e];if(r){var o=p(r,n);o>-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function Tt(t,e){var n=Ot(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function _t(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),Tt(t,n||e.type,t,e),Nt(e)||e.codemirrorIgnore}function Lt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),i=0;i<e.length;++i)-1==p(n,e[i])&&n.push(e[i])}function It(t,e){return Ot(t,e).length>0}function Mt(t){t.prototype.on=function(t,e){ta(this,t,e)},t.prototype.off=function(t,e){kt(this,t,e)}}function At(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Et(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Nt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Rt(t){At(t),Et(t)}function Dt(t){return t.target||t.srcElement}function Pt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),Is&&t.ctrlKey&&1==e&&(e=3),e}function jt(t){if(null==Ws){var e=i("span","​");n(t,i("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Ws=e.offsetWidth<=1&&e.offsetHeight>2&&!(gs&&bs<8))}var r=Ws?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ft(t){if(null!=Hs)return Hs;var i=n(t,document.createTextNode("AخA")),r=Ns(i,0,1).getBoundingClientRect(),o=Ns(i,1,2).getBoundingClientRect();return e(t),!(!r||r.left==r.right)&&(Hs=o.right-r.right<3)}function Wt(t){if(null!=oa)return oa;var e=n(t,i("span","x")),r=e.getBoundingClientRect(),o=Ns(e,0,1).getBoundingClientRect();return oa=Math.abs(r.left-o.left)>1}function Ht(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),sa[t]=e}function Vt(t,e){aa[t]=e}function zt(t){if("string"==typeof t&&aa.hasOwnProperty(t))t=aa[t];else if(t&&"string"==typeof t.name&&aa.hasOwnProperty(t.name)){var e=aa[t.name];"string"==typeof e&&(e={name:e}),t=y(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return zt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return zt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Bt(t,e){e=zt(e);var n=sa[e.name];if(!n)return Bt(t,"text/plain");var i=n(t,e);if(la.hasOwnProperty(e.name)){var r=la[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)i[s]=e.modeProps[s];return i}function qt(t,e){c(e,la.hasOwnProperty(t)?la[t]:la[t]={})}function Kt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Ut(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Gt(t,e,n){return!t.startState||t.startState(e,n)}function Yt(t,e,n,i){var r=[t.state.modeGen],o={};ne(t,e.text,t.doc.mode,n,function(t,e){return r.push(t,e)},o,i);for(var s=n.state,a=0;a<t.state.overlays.length;++a)!function(i){n.baseTokens=r;var a=t.state.overlays[i],l=1,u=0;n.state=!0,ne(t,e.text,a.mode,n,function(t,e){for(var n=l;u<t;){var i=r[l];i>t&&r.splice(l,1,t,r[l+1],i),l+=2,u=Math.min(t,i)}if(e)if(a.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+e}},o),n.state=s,n.baseTokens=null,n.baseTokenPos=1}(a);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function Xt(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var i=Jt(t,A(e)),r=e.text.length>t.options.maxHighlightLength&&Kt(t.doc.mode,i.state),o=Yt(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Jt(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new ha(i,!0,e);var o=ie(t,e,n),s=o>i.first&&_(i,o-1).stateAfter,a=s?ha.fromSaved(i,s,o):new ha(i,Gt(i.mode),o);return i.iter(o,e,function(n){Zt(t,n.text,a);var i=a.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?a.save():null,a.nextLine()}),n&&(i.modeFrontier=a.line),a}function Zt(t,e,n,i){var r=t.doc.mode,o=new ua(e,t.options.tabSize,n);for(o.start=o.pos=i||0,""==e&&Qt(r,n.state);!o.eol();)$t(r,o,n.state),o.start=o.pos}function Qt(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Ut(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function $t(t,e,n,i){for(var r=0;r<10;r++){i&&(i[0]=Ut(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}function te(t,e,n,i){var r,o=t.doc,s=o.mode;e=z(o,e);var a,l=_(o,e.line),u=Jt(t,e.line,n),c=new ua(l.text,t.options.tabSize,u);for(i&&(a=[]);(i||c.pos<e.ch)&&!c.eol();)c.start=c.pos,r=$t(s,c,u.state),i&&a.push(new pa(c,r,Kt(o.mode,u.state)));return i?a:new pa(c,r,u.state)}function ee(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==e[i]?e[i]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(e[i])||(e[i]+=" "+n[2])}return t}function ne(t,e,n,i,r,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,u=0,c=null,h=new ua(e,t.options.tabSize,i),p=t.options.addModeClass&&[null];for(""==e&&ee(Qt(n,i.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(a=!1,s&&Zt(t,e,i,h.pos),h.pos=e.length,l=null):l=ee($t(n,h,i.state,p),o),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!a||c!=l){for(;u<h.start;)u=Math.min(h.start,u+5e3),r(u,c);c=l}h.start=h.pos}for(;u<h.pos;){var d=Math.min(h.pos,u+5e3);r(d,c),u=d}}function ie(t,e,n){for(var i,r,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=_(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof ca?u.lookAhead:0)<=o.modeFrontier))return a;var c=h(l.text,null,t.options.tabSize);(null==r||i>c)&&(r=a-1,i=c)}return r}function re(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,i=e-1;i>n;i--){var r=_(t,i).stateAfter;if(r&&(!(r instanceof ca)||i+r.lookAhead<e)){n=i+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}function oe(t,e,n,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),nt(t),it(t,n);var r=i?i(t):1;r!=t.height&&M(t,r)}function se(t){t.parent=null,nt(t)}function ae(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?va:ma;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function le(t,e){var n=r("span",null,null,ys?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:(gs||ys)&&t.getOption("lineWrapping")};e.measure={};for(var o=0;o<=(e.rest?e.rest.length:0);o++){var s=o?e.rest[o-1]:e.line,a=void 0;i.pos=0,i.addToken=ce,Ft(t.display.measure)&&(a=Ct(s,t.doc.direction))&&(i.addToken=pe(i.addToken,a)),i.map=[];de(s,i,Xt(t,s,e!=t.display.externalMeasured&&A(s))),s.styleClasses&&(s.styleClasses.bgClass&&(i.bgClass=l(s.styleClasses.bgClass,i.bgClass||"")),s.styleClasses.textClass&&(i.textClass=l(s.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(jt(t.display.measure))),0==o?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(ys){var u=i.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Tt(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=l(i.pre.className,i.textClass||"")),i}function ue(t){var e=i("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function ce(t,e,n,r,o,s,a){if(e){var l,u=t.splitSpaces?he(e,t.trailingSpace):e,c=t.cm.state.specialChars,h=!1;if(c.test(e)){l=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var f=c.exec(e),m=f?f.index-p:e.length-p;if(m){var v=document.createTextNode(u.slice(p,p+m));gs&&bs<9?l.appendChild(i("span",[v])):l.appendChild(v),t.map.push(t.pos,t.pos+m,v),t.col+=m,t.pos+=m}if(!f)break;p+=m+1;var g=void 0;if("\t"==f[0]){var b=t.cm.options.tabSize,y=b-t.col%b;g=l.appendChild(i("span",d(y),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),t.col+=y}else"\r"==f[0]||"\n"==f[0]?(g=l.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",f[0]),t.col+=1):(g=t.cm.options.specialCharPlaceholder(f[0]),g.setAttribute("cm-text",f[0]),gs&&bs<9?l.appendChild(i("span",[g])):l.appendChild(g),t.col+=1);t.map.push(t.pos,t.pos+1,g),t.pos++}}else t.col+=e.length,l=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,l),gs&&bs<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||o||h||a){var w=n||"";r&&(w+=r),o&&(w+=o);var x=i("span",[l],w,a);return s&&(x.title=s),t.content.appendChild(x)}t.content.appendChild(l)}}function he(t,e){if(t.length>1&&!/  /.test(t))return t;for(var n=e,i="",r=0;r<t.length;r++){var o=t.charAt(r);" "!=o||!n||r!=t.length-1&&32!=t.charCodeAt(r+1)||(o=" "),i+=o,n=" "==o}return i}function pe(t,e){return function(n,i,r,o,s,a,l){r=r?r+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+i.length;;){for(var h=void 0,p=0;p<e.length&&(h=e[p],!(h.to>u&&h.from<=u));p++);if(h.to>=c)return t(n,i,r,o,s,a,l);t(n,i.slice(0,h.to-u),r,o,null,a,l),o=null,i=i.slice(h.to-u),u=h.to}}}function fe(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function de(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var s,a,l,u,c,h,p,f=r.length,d=0,m=1,v="",g=0;;){if(g==d){l=u=c=h=a="",p=null,g=1/0;for(var b=[],y=void 0,w=0;w<i.length;++w){var x=i[w],S=x.marker;"bookmark"==S.type&&x.from==d&&S.widgetNode?b.push(S):x.from<=d&&(null==x.to||x.to>d||S.collapsed&&x.to==d&&x.from==d)?(null!=x.to&&x.to!=d&&g>x.to&&(g=x.to,u=""),S.className&&(l+=" "+S.className),S.css&&(a=(a?a+";":"")+S.css),S.startStyle&&x.from==d&&(c+=" "+S.startStyle),S.endStyle&&x.to==g&&(y||(y=[])).push(S.endStyle,x.to),S.title&&!h&&(h=S.title),S.collapsed&&(!p||st(p.marker,S)<0)&&(p=x)):x.from>d&&g>x.from&&(g=x.from)}if(y)for(var C=0;C<y.length;C+=2)y[C+1]==g&&(u+=" "+y[C]);if(!p||p.from==d)for(var O=0;O<b.length;++O)fe(e,0,b[O]);if(p&&(p.from||0)==d){if(fe(e,(null==p.to?f+1:p.to)-d,p.marker,null==p.from),null==p.to)return;p.to==d&&(p=!1)}}if(d>=f)break;for(var k=Math.min(f,g);;){if(v){var T=d+v.length;if(!p){var _=T>k?v.slice(0,k-d):v;e.addToken(e,_,s?s+l:l,c,d+_.length==g?u:"",h,a)}if(T>=k){v=v.slice(k-d),d=k;break}d=T,c=""}v=r.slice(o,o=n[m++]),s=ae(n[m++],e.cm.options)}}else for(var L=1;L<n.length;L+=2)e.addToken(e,r.slice(o,o=n[L]),ae(n[L+1],e.cm.options))}function me(t,e,n){this.line=e,this.rest=ft(e),this.size=this.rest?A(m(this.rest))-n+1:1,this.node=this.text=null,this.hidden=vt(t,e)}function ve(t,e,n){for(var i,r=[],o=e;o<n;o=i){var s=new me(t.doc,_(t.doc,o),o);i=o+s.size,r.push(s)}return r}function ge(t){ga?ga.ops.push(t):t.ownsGroup=ga={ops:[t],delayedCallbacks:[]}}function be(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var i=0;i<t.ops.length;i++){var r=t.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<e.length)}function ye(t,e){var n=t.ownsGroup;if(n)try{be(n)}finally{ga=null,e(n)}}function we(t,e){var n=Ot(t,e);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);ga?i=ga.delayedCallbacks:ba?i=ba:(i=ba=[],setTimeout(xe,0));for(var o=0;o<n.length;++o)!function(t){i.push(function(){return n[t].apply(null,r)})}(o)}}function xe(){var t=ba;ba=null;for(var e=0;e<t.length;++e)t[e]()}function Se(t,e,n,i){for(var r=0;r<e.changes.length;r++){var o=e.changes[r];"text"==o?Te(t,e):"gutter"==o?Le(t,e,n,i):"class"==o?_e(t,e):"widget"==o&&Ie(t,e,i)}e.changes=null}function Ce(t){return t.node==t.text&&(t.node=i("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),gs&&bs<8&&(t.node.style.zIndex=2)),t.node}function Oe(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=Ce(e);e.background=r.insertBefore(i("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function ke(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):le(t,e)}function Te(t,e){var n=e.text.className,i=ke(t,e);e.text==e.node&&(e.node=i.pre),e.text.parentNode.replaceChild(i.pre,e.text),e.text=i.pre,i.bgClass!=e.bgClass||i.textClass!=e.textClass?(e.bgClass=i.bgClass,e.textClass=i.textClass,_e(t,e)):n&&(e.text.className=n)}function _e(t,e){Oe(t,e),e.line.wrapClass?Ce(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Le(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var o=Ce(e);e.gutterBackground=i("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),o.insertBefore(e.gutterBackground,e.text)}var s=e.line.gutterMarkers;if(t.options.lineNumbers||s){var a=Ce(e),l=e.gutter=i("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(l),a.insertBefore(l,e.text),e.line.gutterClass&&(l.className+=" "+e.line.gutterClass),!t.options.lineNumbers||s&&s["CodeMirror-linenumbers"]||(e.lineNumber=l.appendChild(i("div",R(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),s)for(var u=0;u<t.options.gutters.length;++u){var c=t.options.gutters[u],h=s.hasOwnProperty(c)&&s[c];h&&l.appendChild(i("div",[h],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Ie(t,e,n){e.alignable&&(e.alignable=null);for(var i=e.node.firstChild,r=void 0;i;i=r)r=i.nextSibling,"CodeMirror-linewidget"==i.className&&e.node.removeChild(i);Ae(t,e,n)}function Me(t,e,n,i){var r=ke(t,e);return e.text=e.node=r.pre,r.bgClass&&(e.bgClass=r.bgClass),r.textClass&&(e.textClass=r.textClass),_e(t,e),Le(t,e,n,i),Ae(t,e,i),e.node}function Ae(t,e,n){if(Ee(t,e.line,e,n,!0),e.rest)for(var i=0;i<e.rest.length;i++)Ee(t,e.rest[i],e,n,!1)}function Ee(t,e,n,r,o){if(e.widgets)for(var s=Ce(n),a=0,l=e.widgets;a<l.length;++a){var u=l[a],c=i("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Ne(u,c,n,r),t.display.input.setUneditable(c),o&&u.above?s.insertBefore(c,n.gutter||n.text):s.appendChild(c),we(u,"redraw")}}function Ne(t,e,n,i){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var r=i.wrapperWidth;e.style.left=i.fixedPos+"px",t.coverGutter||(r-=i.gutterTotalWidth,e.style.paddingLeft=i.gutterTotalWidth+"px"),e.style.width=r+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-i.gutterTotalWidth+"px"))}function Re(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!o(document.body,t.node)){var r="position: relative;";t.coverGutter&&(r+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(r+="width: "+e.display.wrapper.clientWidth+"px;"),n(e.display.measure,i("div",[t.node],null,r))}return t.height=t.node.parentNode.offsetHeight}function De(t,e){for(var n=Dt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Pe(t){return t.lineSpace.offsetTop}function je(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Fe(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=n(t.measure,i("pre","x")),r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,o={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(t.cachedPaddingH=o),o}function We(t){return Vs-t.display.nativeBarWidth}function He(t){return t.display.scroller.clientWidth-We(t)-t.display.barWidth}function Ve(t){return t.display.scroller.clientHeight-We(t)-t.display.barHeight}function ze(t,e,n){var i=t.options.lineWrapping,r=i&&He(t);if(!e.measure.heights||i&&e.measure.width!=r){var o=e.measure.heights=[];if(i){e.measure.width=r;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Be(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var i=0;i<t.rest.length;i++)if(t.rest[i]==e)return{map:t.measure.maps[i],cache:t.measure.caches[i]};for(var r=0;r<t.rest.length;r++)if(A(t.rest[r])>n)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function qe(t,e){e=ht(e);var i=A(e),r=t.display.externalMeasured=new me(t.doc,e,i);r.lineN=i;var o=r.built=le(t,r);return r.text=o.pre,n(t.display.lineMeasure,o.pre),r}function Ke(t,e,n,i){return Ye(t,Ge(t,e),n,i)}function Ue(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Tn(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Ge(t,e){var n=A(e),i=Ue(t,n);i&&!i.text?i=null:i&&i.changes&&(Se(t,i,n,xn(t)),t.curOp.forceUpdate=!0),i||(i=qe(t,e));var r=Be(i,e,n);return{line:e,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function Ye(t,e,n,i,r){e.before&&(n=-1);var o,s=n+(i||"");return e.cache.hasOwnProperty(s)?o=e.cache[s]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(ze(t,e.view,e.rect),e.hasHeights=!0),o=Ze(t,e,n,i),o.bogus||(e.cache[s]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}function Xe(t,e,n){for(var i,r,o,s,a,l,u=0;u<t.length;u+=3)if(a=t[u],l=t[u+1],e<a?(r=0,o=1,s="left"):e<l?(r=e-a,o=r+1):(u==t.length-3||e==l&&t[u+3]>e)&&(o=l-a,r=o-1,e>=l&&(s="right")),null!=r){if(i=t[u+2],a==l&&n==(i.insertLeft?"left":"right")&&(s=n),"left"==n&&0==r)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)i=t[2+(u-=3)],s="left";if("right"==n&&r==l-a)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)i=t[(u+=3)+2],s="right";break}return{node:i,start:r,end:o,collapse:s,coverStart:a,coverEnd:l}}function Je(t,e){var n=ya;if("left"==e)for(var i=0;i<t.length&&(n=t[i]).left==n.right;i++);else for(var r=t.length-1;r>=0&&(n=t[r]).left==n.right;r--);return n}function Ze(t,e,n,i){var r,o=Xe(e.map,n,i),s=o.node,a=o.start,l=o.end,u=o.collapse;if(3==s.nodeType){for(var c=0;c<4;c++){for(;a&&C(e.line.text.charAt(o.coverStart+a));)--a;for(;o.coverStart+l<o.coverEnd&&C(e.line.text.charAt(o.coverStart+l));)++l;if(r=gs&&bs<9&&0==a&&l==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():Je(Ns(s,a,l).getClientRects(),i),r.left||r.right||0==a)break;l=a,a-=1,u="right"}gs&&bs<11&&(r=Qe(t.display.measure,r))}else{a>0&&(u=i="right");var h;r=t.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==i?h.length-1:0]:s.getBoundingClientRect()}if(gs&&bs<9&&!a&&(!r||!r.left&&!r.right)){var p=s.parentNode.getClientRects()[0];r=p?{left:p.left,right:p.left+wn(t.display),top:p.top,bottom:p.bottom}:ya}for(var f=r.top-e.rect.top,d=r.bottom-e.rect.top,m=(f+d)/2,v=e.view.measure.heights,g=0;g<v.length-1&&!(m<v[g]);g++);var b=g?v[g-1]:0,y=v[g],w={left:("right"==u?r.right:r.left)-e.rect.left,right:("left"==u?r.left:r.right)-e.rect.left,top:b,bottom:y};return r.left||r.right||(w.bogus=!0),t.options.singleCursorHeightPerLine||(w.rtop=f,w.rbottom=d),w}function Qe(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Wt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}function $e(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function tn(t){t.display.externalMeasure=null,e(t.display.lineMeasure);for(var n=0;n<t.display.view.length;n++)$e(t.display.view[n])}function en(t){tn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function nn(){return xs&&_s?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function rn(){return xs&&_s?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function on(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=Re(t.widgets[n]));return e}function sn(t,e,n,i,r){if(!r){var o=on(e);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var s=bt(e);if("local"==i?s+=Pe(t.display):s-=t.display.viewOffset,"page"==i||"window"==i){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==i?0:rn());var l=a.left+("window"==i?0:nn());n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function an(t,e,n){if("div"==n)return e;var i=e.left,r=e.top;if("page"==n)i-=nn(),r-=rn();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:i-s.left,top:r-s.top}}function ln(t,e,n,i,r){return i||(i=_(t.doc,e.line)),sn(t,i,Ke(t,i,e.ch,r),n)}function un(t,e,n,i,r,o){function s(e,s){var a=Ye(t,r,e,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,sn(t,i,a,n)}function a(t,e,n){var i=l[e],r=1==i.level;return s(n?t-1:t,r!=n)}i=i||_(t.doc,e.line),r||(r=Ge(t,i));var l=Ct(i,t.doc.direction),u=e.ch,c=e.sticky;if(u>=i.text.length?(u=i.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return s("before"==c?u-1:u,"before"==c);var h=St(l,u,c),p=Zs,f=a(u,h,"before"==c);return null!=p&&(f.other=a(u,p,"before"!=c)),f}function cn(t,e){var n=0;e=z(t.doc,e),t.options.lineWrapping||(n=wn(t.display)*e.ch);var i=_(t.doc,e.line),r=bt(i)+Pe(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function hn(t,e,n,i,r){var o=D(t,e,n);return o.xRel=r,i&&(o.outside=!0),o}function pn(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return hn(i.first,0,null,!0,-1);var r=E(i,n),o=i.first+i.size-1;if(r>o)return hn(i.first+i.size-1,_(i,o).text.length,null,!0,1);e<0&&(e=0);for(var s=_(i,r);;){var a=vn(t,s,r,e,n),l=ut(s),u=l&&l.find(0,!0);if(!l||!(a.ch>u.from.ch||a.ch==u.from.ch&&a.xRel>0))return a;r=A(s=u.to.line)}}function fn(t,e,n,i){i-=on(e);var r=e.text.length,o=k(function(e){return Ye(t,n,e-1).bottom<=i},r,0);return r=k(function(e){return Ye(t,n,e).top>i},o,r),{begin:o,end:r}}function dn(t,e,n,i){return n||(n=Ge(t,e)),fn(t,e,n,sn(t,e,Ye(t,n,i),"line").top)}function mn(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function vn(t,e,n,i,r){r-=bt(e);var o=Ge(t,e),s=on(e),a=0,l=e.text.length,u=!0,c=Ct(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?bn:gn)(t,e,n,o,c,i,r);u=1!=h.level,a=u?h.from:h.to-1,l=u?h.to:h.from-1}var p,f,d=null,m=null,v=k(function(e){var n=Ye(t,o,e);return n.top+=s,n.bottom+=s,!!mn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(d=e,m=n),!0)},a,l),g=!1;if(m){var b=i-m.left<m.right-i,y=b==u;v=d+(y?0:1),f=y?"after":"before",p=b?m.left:m.right}else{u||v!=l&&v!=a||v++,f=0==v?"after":v==e.text.length?"before":Ye(t,o,v-(u?1:0)).bottom+s<=r==u?"after":"before";var w=un(t,D(n,v,f),"line",e,o);p=w.left,g=r<w.top||r>=w.bottom}return v=O(e.text,v,1),hn(n,v,f,g,i-p)}function gn(t,e,n,i,r,o,s){var a=k(function(a){var l=r[a],u=1!=l.level;return mn(un(t,D(n,u?l.to:l.from,u?"before":"after"),"line",e,i),o,s,!0)},0,r.length-1),l=r[a];if(a>0){var u=1!=l.level,c=un(t,D(n,u?l.from:l.to,u?"after":"before"),"line",e,i);mn(c,o,s,!0)&&c.top>s&&(l=r[a-1])}return l}function bn(t,e,n,i,r,o,s){var a=fn(t,e,i,s),l=a.begin,u=a.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,h=null,p=0;p<r.length;p++){var f=r[p];if(!(f.from>=u||f.to<=l)){var d=1!=f.level,m=Ye(t,i,d?Math.min(u,f.to)-1:Math.max(l,f.from)).right,v=m<o?o-m+1e9:m-o;(!c||h>v)&&(c=f,h=v)}}return c||(c=r[r.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function yn(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==da){da=i("pre");for(var r=0;r<49;++r)da.appendChild(document.createTextNode("x")),da.appendChild(i("br"));da.appendChild(document.createTextNode("x"))}n(t.measure,da);var o=da.offsetHeight/50;return o>3&&(t.cachedTextHeight=o),e(t.measure),o||1}function wn(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=i("span","xxxxxxxxxx"),r=i("pre",[e]);n(t.measure,r);var o=e.getBoundingClientRect(),s=(o.right-o.left)/10;return s>2&&(t.cachedCharWidth=s),s||10}function xn(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s)n[t.options.gutters[s]]=o.offsetLeft+o.clientLeft+r,i[t.options.gutters[s]]=o.clientWidth;return{fixedPos:Sn(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function Sn(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Cn(t){var e=yn(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/wn(t.display)-3);return function(r){if(vt(t.doc,r))return 0;var o=0;if(r.widgets)for(var s=0;s<r.widgets.length;s++)r.widgets[s].height&&(o+=r.widgets[s].height);return n?o+(Math.ceil(r.text.length/i)||1)*e:o+e}}function On(t){var e=t.doc,n=Cn(t);e.iter(function(t){var e=n(t);e!=t.height&&M(t,e)})}function kn(t,e,n,i){var r=t.display;if(!n&&"true"==Dt(e).getAttribute("cm-not-content"))return null;var o,s,a=r.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(e){return null}var l,u=pn(t,o,s);if(i&&1==u.xRel&&(l=_(t.doc,u.line).text).length==u.ch){var c=h(l,l.length,t.options.tabSize)-l.length;u=D(u.line,Math.max(0,Math.round((o-Fe(t.display).left)/wn(t.display))-c))}return u}function Tn(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i<n.length;i++)if((e-=n[i].size)<0)return i}function _n(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ln(t,e){void 0===e&&(e=!0);for(var n=t.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),s=0;s<n.sel.ranges.length;s++)if(e||s!=n.sel.primIndex){var a=n.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var l=a.empty();(l||t.options.showCursorWhenSelecting)&&In(t,a.head,r),l||An(t,a,o)}}return i}function In(t,e,n){var r=un(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),o=n.appendChild(i("div"," ","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var s=n.appendChild(i("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Mn(t,e){return t.top-e.top||t.left-e.left}function An(t,e,n){function r(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),l.appendChild(i("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==n?h-t:n)+"px;\n                             height: "+(r-e)+"px"))}function o(e,n,i){function o(n,i){return ln(t,D(e,n),"div",f,i)}function s(e,n,i){var r=dn(t,f,null,e),s="ltr"==n==("after"==i)?"left":"right";return o("after"==i?r.begin:r.end-(/\s/.test(f.text.charAt(r.end-1))?2:1),s)[s]}var l,u,f=_(a,e),d=f.text.length,m=Ct(f,a.direction);return xt(m,n||0,null==i?d:i,function(t,e,a,f){var v="ltr"==a,g=o(t,v?"left":"right"),b=o(e-1,v?"right":"left"),y=null==n&&0==t,w=null==i&&e==d,x=0==f,S=!m||f==m.length-1;if(b.top-g.top<=3){var C=(p?y:w)&&x,O=(p?w:y)&&S,k=C?c:(v?g:b).left,T=O?h:(v?b:g).right;r(k,g.top,T-k,g.bottom)}else{var _,L,I,M;v?(_=p&&y&&x?c:g.left,L=p?h:s(t,a,"before"),I=p?c:s(e,a,"after"),M=p&&w&&S?h:b.right):(_=p?s(t,a,"before"):c,L=!p&&y&&x?h:g.right,I=!p&&w&&S?c:b.left,M=p?s(e,a,"after"):h),r(_,g.top,L-_,g.bottom),g.bottom<b.top&&r(c,g.bottom,null,b.top),r(I,b.top,M-I,b.bottom)}(!l||Mn(g,l)<0)&&(l=g),Mn(b,l)<0&&(l=b),(!u||Mn(g,u)<0)&&(u=g),Mn(b,u)<0&&(u=b)}),{start:l,end:u}}var s=t.display,a=t.doc,l=document.createDocumentFragment(),u=Fe(t.display),c=u.left,h=Math.max(s.sizerWidth,He(t)-s.sizer.offsetLeft)-u.right,p="ltr"==a.direction,f=e.from(),d=e.to();if(f.line==d.line)o(f.line,f.ch,d.ch);else{var m=_(a,f.line),v=_(a,d.line),g=ht(m)==ht(v),b=o(f.line,f.ch,g?m.text.length+1:null).end,y=o(d.line,g?0:null,d.ch).start;g&&(b.top<y.top-2?(r(b.right,b.top,null,b.bottom),r(c,y.top,y.left,y.bottom)):r(b.right,b.top,y.left-b.right,b.bottom)),b.bottom<y.top&&r(c,b.bottom,null,y.top)}n.appendChild(l)}function En(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Nn(t){t.state.focused||(t.display.input.focus(),Dn(t))}function Rn(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Pn(t))},100)}function Dn(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(Tt(t,"focus",t,e),t.state.focused=!0,a(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),ys&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),En(t))}function Pn(t,e){t.state.delayingBlurEvent||(t.state.focused&&(Tt(t,"blur",t,e),t.state.focused=!1,Ps(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function jn(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i<e.view.length;i++){var r=e.view[i],o=void 0;if(!r.hidden){if(gs&&bs<8){var s=r.node.offsetTop+r.node.offsetHeight;o=s-n,n=s}else{var a=r.node.getBoundingClientRect();o=a.bottom-a.top}var l=r.line.height-o;if(o<2&&(o=yn(e)),(l>.005||l<-.005)&&(M(r.line,o),Fn(r.line),r.rest))for(var u=0;u<r.rest.length;u++)Fn(r.rest[u])}}}function Fn(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e)t.widgets[e].height=t.widgets[e].node.parentNode.offsetHeight}function Wn(t,e,n){var i=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;i=Math.floor(i-Pe(t));var r=n&&null!=n.bottom?n.bottom:i+t.wrapper.clientHeight,o=E(e,i),s=E(e,r);if(n&&n.ensure){var a=n.ensure.from.line,l=n.ensure.to.line;a<o?(o=a,s=E(e,bt(_(e,a))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=s&&(o=E(e,bt(_(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function Hn(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=Sn(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=i+r+"px")}}function Vn(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=R(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(i("div",[i("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=o.firstChild.offsetWidth,a=o.offsetWidth-s;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(s,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Ei(t),!0}return!1}function zn(t,e){if(!_t(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),o=null;if(e.top+r.top<0?o=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!ks){var s=i("div","​",null,"position: absolute;\n                         top: "+(e.top-n.viewOffset-Pe(t.display))+"px;\n                         height: "+(e.bottom-e.top+We(t)+n.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(s),s.scrollIntoView(o),t.display.lineSpace.removeChild(s)}}}function Bn(t,e,n,i){null==i&&(i=0);var r;t.options.lineWrapping||e!=n||(e=e.ch?D(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?D(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=un(t,e),l=n&&n!=e?un(t,n):a;r={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i};var u=Kn(t,r),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=u.scrollTop&&(Qn(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(ti(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(s=!0)),!s)break}return r}function qn(t,e){var n=Kn(t,e);null!=n.scrollTop&&Qn(t,n.scrollTop),null!=n.scrollLeft&&ti(t,n.scrollLeft)}function Kn(t,e){var n=t.display,i=yn(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Ve(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+je(n),l=e.top<i,u=e.bottom>a-i;if(e.top<r)s.scrollTop=l?0:e.top;else if(e.bottom>r+o){var c=Math.min(e.top,(u?a:e.bottom)-o);c!=r&&(s.scrollTop=c)}var h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,p=He(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),f=e.right-e.left>p;return f&&(e.right=e.left+p),e.left<10?s.scrollLeft=0:e.left<h?s.scrollLeft=Math.max(0,e.left-(f?0:10)):e.right>p+h-3&&(s.scrollLeft=e.right+(f?0:10)-p),s}function Un(t,e){null!=e&&(Jn(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Gn(t){Jn(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Yn(t,e,n){null==e&&null==n||Jn(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Xn(t,e){Jn(t),t.curOp.scrollToPos=e}function Jn(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;Zn(t,cn(t,e.from),cn(t,e.to),e.margin)}}function Zn(t,e,n,i){var r=Kn(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});Yn(t,r.scrollLeft,r.scrollTop)}function Qn(t,e){Math.abs(t.doc.scrollTop-e)<2||(fs||Mi(t,{top:e}),$n(t,e,!0),fs&&Mi(t),Ci(t,100))}function $n(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function ti(t,e,n,i){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,Hn(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function ei(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+je(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+We(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}function ni(t,e){e||(e=ei(t));var n=t.display.barWidth,i=t.display.barHeight;ii(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&jn(t),ii(t,ei(t)),n=t.display.barWidth,i=t.display.barHeight}function ii(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}function ri(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Ps(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Sa[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ta(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?ti(t,e):Qn(t,e)},t),t.display.scrollbars.addClass&&a(t.display.wrapper,t.display.scrollbars.addClass)}function oi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ca},ge(t.curOp)}function si(t){ye(t.curOp,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;ai(t)})}function ai(t){for(var e=t.ops,n=0;n<e.length;n++)li(e[n]);for(var i=0;i<e.length;i++)ui(e[i]);for(var r=0;r<e.length;r++)ci(e[r]);for(var o=0;o<e.length;o++)hi(e[o]);for(var s=0;s<e.length;s++)pi(e[s])}function li(t){var e=t.cm,n=e.display;ki(e),t.updateMaxLine&&wt(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Oa(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function ui(t){t.updatedDisplay=t.mustUpdate&&Li(t.cm,t.update)}function ci(t){var e=t.cm,n=e.display;t.updatedDisplay&&jn(e),t.barMeasure=ei(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Ke(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+We(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-He(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function hi(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&ti(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==s();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&ni(e,t.barMeasure),t.updatedDisplay&&Ni(e,t.barMeasure),t.selectionChanged&&En(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Nn(t.cm)}function pi(t){var e=t.cm,n=e.display,i=e.doc;if(t.updatedDisplay&&Ii(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&$n(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&ti(e,t.scrollLeft,!0,!0),t.scrollToPos){zn(e,Bn(e,z(i,t.scrollToPos.from),z(i,t.scrollToPos.to),t.scrollToPos.margin))}var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var s=0;s<r.length;++s)r[s].lines.length||Tt(r[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&Tt(o[a],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&Tt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function fi(t,e){if(t.curOp)return e();oi(t);try{return e()}finally{si(t)}}function di(t,e){return function(){if(t.curOp)return e.apply(t,arguments);oi(t);try{return e.apply(t,arguments)}finally{si(t)}}}function mi(t){return function(){if(this.curOp)return t.apply(this,arguments);oi(this);try{return t.apply(this,arguments)}finally{si(this)}}}function vi(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);oi(e);try{return t.apply(this,arguments)}finally{si(e)}}}function gi(t,e,n,i){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),i||(i=0);var r=t.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>e)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Js&&dt(t.doc,e)<r.viewTo&&yi(t);else if(n<=r.viewFrom)Js&&mt(t.doc,n+i)>r.viewFrom?yi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)yi(t);else if(e<=r.viewFrom){var o=wi(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):yi(t)}else if(n>=r.viewTo){var s=wi(t,e,e,-1);s?(r.view=r.view.slice(0,s.index),r.viewTo=s.lineN):yi(t)}else{var a=wi(t,e,e,-1),l=wi(t,n,n+i,1);a&&l?(r.view=r.view.slice(0,a.index).concat(ve(t,a.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):yi(t)}var u=r.externalMeasured;u&&(n<u.lineN?u.lineN+=i:e<u.lineN+u.size&&(r.externalMeasured=null))}function bi(t,e,n){t.curOp.viewChanged=!0;var i=t.display,r=t.display.externalMeasured;if(r&&e>=r.lineN&&e<r.lineN+r.size&&(i.externalMeasured=null),!(e<i.viewFrom||e>=i.viewTo)){var o=i.view[Tn(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==p(s,n)&&s.push(n)}}}function yi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function wi(t,e,n,i){var r,o=Tn(t,e),s=t.display.view;if(!Js||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(i>0){if(o==s.length-1)return null;r=a+s[o].size-e,o++}else r=a-e;e+=r,n+=r}for(;dt(t.doc,n)!=n;){if(o==(i<0?0:s.length-1))return null;n+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function xi(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=ve(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=ve(t,e,i.viewFrom).concat(i.view):i.viewFrom<e&&(i.view=i.view.slice(Tn(t,e))),i.viewFrom=e,i.viewTo<n?i.view=i.view.concat(ve(t,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Tn(t,n)))),i.viewTo=n}function Si(t){for(var e=t.display.view,n=0,i=0;i<e.length;i++){var r=e[i];r.hidden||r.node&&!r.changes||++n}return n}function Ci(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,u(Oi,t))}function Oi(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,i=Jt(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(i.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Kt(e.mode,i.state):null,l=Yt(t,o,i,!0);a&&(i.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!h&&p<s.length;++p)h=s[p]!=o.styles[p];h&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=t.options.maxHighlightLength&&Zt(t,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return Ci(t,t.options.workDelay),!0}),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&fi(t,function(){for(var e=0;e<r.length;e++)bi(t,r[e],"text")})}}function ki(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=We(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=We(t)+"px",e.scrollbarsClipped=!0)}function Ti(t){if(t.hasFocus())return null;var e=s();if(!e||!o(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&o(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function _i(t){if(t&&t.activeElt&&t.activeElt!=s()&&(t.activeElt.focus(),t.anchorNode&&o(document.body,t.anchorNode)&&o(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function Li(t,n){var i=t.display,r=t.doc;if(n.editorIsHidden)return yi(t),!1;if(!n.force&&n.visible.from>=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==Si(t))return!1;Vn(t)&&(yi(t),n.dims=xn(t));var o=r.first+r.size,s=Math.max(n.visible.from-t.options.viewportMargin,r.first),a=Math.min(o,n.visible.to+t.options.viewportMargin);i.viewFrom<s&&s-i.viewFrom<20&&(s=Math.max(r.first,i.viewFrom)),i.viewTo>a&&i.viewTo-a<20&&(a=Math.min(o,i.viewTo)),Js&&(s=dt(t.doc,s),a=mt(t.doc,a));var l=s!=i.viewFrom||a!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;xi(t,s,a),i.viewOffset=bt(_(t.doc,i.viewFrom)),t.display.mover.style.top=i.viewOffset+"px";var u=Si(t);if(!l&&0==u&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var c=Ti(t);return u>4&&(i.lineDiv.style.display="none"),Ai(t,i.updateLineNumbers,n.dims),u>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,_i(c),e(i.cursorDiv),e(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,Ci(t,400)),i.updateLineNumbers=null,!0}function Ii(t,e){for(var n=e.viewport,i=!0;(i&&t.options.lineWrapping&&e.oldDisplayWidth!=He(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+je(t.display)-Ve(t),n.top)}),e.visible=Wn(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&Li(t,e);i=!1){jn(t);var r=ei(t);_n(t),ni(t,r),Ni(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Mi(t,e){var n=new Oa(t,e);if(Li(t,n)){jn(t),Ii(t,n);var i=ei(t);_n(t),ni(t,i),Ni(t,i),n.finish()}}function Ai(t,n,i){function r(e){var n=e.nextSibling;return ys&&Is&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var o=t.display,s=t.options.lineNumbers,a=o.lineDiv,l=a.firstChild,u=o.view,c=o.viewFrom,h=0;h<u.length;h++){var f=u[h];if(f.hidden);else if(f.node&&f.node.parentNode==a){for(;l!=f.node;)l=r(l);var d=s&&null!=n&&n<=c&&f.lineNumber;f.changes&&(p(f.changes,"gutter")>-1&&(d=!1),Se(t,f,c,i)),d&&(e(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(R(t.options,c)))),l=f.node.nextSibling}else{var m=Me(t,f,c,i);a.insertBefore(m,l)}c+=f.size}for(;l;)l=r(l)}function Ei(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function Ni(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+We(t)+"px"}function Ri(t){var n=t.display.gutters,r=t.options.gutters;e(n);for(var o=0;o<r.length;++o){var s=r[o],a=n.appendChild(i("div",null,"CodeMirror-gutter "+s));"CodeMirror-linenumbers"==s&&(t.display.lineGutter=a,a.style.width=(t.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",Ei(t)}function Di(t){var e=p(t.gutters,"CodeMirror-linenumbers");-1==e&&t.lineNumbers?t.gutters=t.gutters.concat(["CodeMirror-linenumbers"]):e>-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}function Pi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function ji(t){var e=Pi(t);return e.x*=Ta,e.y*=Ta,e}function Fi(t,e){var n=Pi(e),i=n.x,r=n.y,o=t.display,s=o.scroller,a=s.scrollWidth>s.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&a||r&&l){if(r&&Is&&ys)t:for(var u=e.target,c=o.view;u!=s;u=u.parentNode)for(var h=0;h<c.length;h++)if(c[h].node==u){t.display.currentWheelTarget=u;break t}if(i&&!fs&&!Ss&&null!=Ta)return r&&l&&Qn(t,Math.max(0,s.scrollTop+r*Ta)),ti(t,Math.max(0,s.scrollLeft+i*Ta)),(!r||r&&l)&&At(e),void(o.wheelStartX=null);if(r&&null!=Ta){var p=r*Ta,f=t.doc.scrollTop,d=f+o.wrapper.clientHeight;p<0?f=Math.max(0,f+p-50):d=Math.min(t.doc.height,d+p+50),Mi(t,{top:f,bottom:d})}ka<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=r,setTimeout(function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,n=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(Ta=(Ta*ka+n)/(ka+1),++ka)}},200)):(o.wheelDX+=i,o.wheelDY+=r))}}function Wi(t,e){var n=t[e];t.sort(function(t,e){return P(t.from(),e.from())}),e=p(t,n);for(var i=1;i<t.length;i++){var r=t[i],o=t[i-1];if(P(o.to(),r.from())>=0){var s=H(o.from(),r.from()),a=W(o.to(),r.to()),l=o.empty()?r.from()==r.head:o.from()==o.head;i<=e&&--e,t.splice(--i,2,new La(l?a:s,l?s:a))}}return new _a(t,e)}function Hi(t,e){return new _a([new La(t,e||t)],0)}function Vi(t){return t.text?D(t.from.line+t.text.length-1,m(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function zi(t,e){if(P(t,e.from)<0)return t;if(P(t,e.to)<=0)return Vi(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=Vi(e).ch-e.to.ch),D(n,i)}function Bi(t,e){for(var n=[],i=0;i<t.sel.ranges.length;i++){var r=t.sel.ranges[i];n.push(new La(zi(r.anchor,e),zi(r.head,e)))}return Wi(n,t.sel.primIndex)}function qi(t,e,n){return t.line==e.line?D(n.line,t.ch-e.ch+n.ch):D(n.line+(t.line-e.line),t.ch)}function Ki(t,e,n){for(var i=[],r=D(t.first,0),o=r,s=0;s<e.length;s++){var a=e[s],l=qi(a.from,r,o),u=qi(Vi(a),r,o);if(r=a.to,o=u,"around"==n){var c=t.sel.ranges[s],h=P(c.head,c.anchor)<0;i[s]=new La(h?u:l,h?l:u)}else i[s]=new La(l,l)}return new _a(i,t.sel.primIndex)}function Ui(t){t.doc.mode=Bt(t.options,t.doc.modeOption),Gi(t)}function Gi(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ci(t,100),t.state.modeGen++,t.curOp&&gi(t)}function Yi(t,e){return 0==e.from.ch&&0==e.to.ch&&""==m(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Xi(t,e,n,i){function r(t){return n?n[t]:null}function o(t,n,r){oe(t,n,r,i),we(t,"change",t,e)}function s(t,e){for(var n=[],o=t;o<e;++o)n.push(new fa(u[o],r(o),i));return n}var a=e.from,l=e.to,u=e.text,c=_(t,a.line),h=_(t,l.line),p=m(u),f=r(u.length-1),d=l.line-a.line;if(e.full)t.insert(0,s(0,u.length)),t.remove(u.length,t.size-u.length);else if(Yi(t,e)){var v=s(0,u.length-1);o(h,h.text,f),d&&t.remove(a.line,d),v.length&&t.insert(a.line,v)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,a.ch)+p+c.text.slice(l.ch),f);else{var g=s(1,u.length-1);g.push(new fa(p+c.text.slice(l.ch),f,i)),o(c,c.text.slice(0,a.ch)+u[0],r(0)),t.insert(a.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,a.ch)+u[0]+h.text.slice(l.ch),r(0)),t.remove(a.line+1,d);else{o(c,c.text.slice(0,a.ch)+u[0],r(0)),o(h,p+h.text.slice(l.ch),f);var b=s(1,u.length-1);d>1&&t.remove(a.line+1,d-1),t.insert(a.line+1,b)}we(t,"change",t,e)}function Ji(t,e,n){function i(t,r,o){if(t.linked)for(var s=0;s<t.linked.length;++s){var a=t.linked[s];if(a.doc!=r){var l=o&&a.sharedHist;n&&!l||(e(a.doc,l),i(a.doc,t,l))}}}i(t,null,!0)}function Zi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,On(t),Ui(t),Qi(t),t.options.lineWrapping||wt(t),t.options.mode=e.modeOption,gi(t)}function Qi(t){("rtl"==t.doc.direction?a:Ps)(t.display.lineDiv,"CodeMirror-rtl")}function $i(t){fi(t,function(){Qi(t),gi(t)})}function tr(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function er(t,e){var n={from:F(e.from),to:Vi(e),text:L(t,e.from,e.to)};return lr(t,n,e.from.line,e.to.line+1),Ji(t,function(t){return lr(t,n,e.from.line,e.to.line+1)},!0),n}function nr(t){for(;t.length;){if(!m(t).ranges)break;t.pop()}}function ir(t,e){return e?(nr(t.done),m(t.done)):t.done.length&&!m(t.done).ranges?m(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),m(t.done)):void 0}function rr(t,e,n,i){var r=t.history;r.undone.length=0;var o,s,a=+new Date;if((r.lastOp==i||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&t.cm&&r.lastModTime>a-t.cm.options.historyEventDelay||"*"==e.origin.charAt(0)))&&(o=ir(r,r.lastOp==i)))s=m(o.changes),0==P(e.from,e.to)&&0==P(e.from,s.to)?s.to=Vi(e):o.changes.push(er(t,e));else{var l=m(r.done);for(l&&l.ranges||ar(t.sel,r.done),o={changes:[er(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,s||Tt(t,"historyAdded")}function or(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function sr(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||or(t,o,m(r.done),e))?r.done[r.done.length-1]=e:ar(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&nr(r.undone)}function ar(t,e){var n=m(e);n&&n.ranges&&n.equals(t)||e.push(t)}function lr(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function ur(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function cr(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var i=[],r=0;r<e.text.length;++r)i.push(ur(n[r]));return i}function hr(t,e){var n=cr(t,e),i=$(t,e);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],s=i[r];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else s&&(n[r]=s)}return n}function pr(t,e,n){for(var i=[],r=0;r<t.length;++r){var o=t[r];if(o.ranges)i.push(n?_a.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];i.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),e)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&p(e,Number(c[1]))>-1&&(m(a)[h]=u[h],delete u[h])}}}return i}function fr(t,e,n,i){if(i){var r=t.anchor;if(n){var o=P(e,r)<0;o!=P(n,r)<0?(r=e,e=n):o!=P(e,n)<0&&(e=n)}return new La(r,e)}return new La(n||e,e)}function dr(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),wr(t,new _a([fr(t.sel.primary(),e,n,r)],0),i)}function mr(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)i[o]=fr(t.sel.ranges[o],e[o],null,r);wr(t,Wi(i,t.sel.primIndex),n)}function vr(t,e,n,i){var r=t.sel.ranges.slice(0);r[e]=n,wr(t,Wi(r,t.sel.primIndex),i)}function gr(t,e,n,i){wr(t,Hi(e,n),i)}function br(t,e,n){var i={ranges:e.ranges,update:function(e){var n=this;this.ranges=[];for(var i=0;i<e.length;i++)n.ranges[i]=new La(z(t,e[i].anchor),z(t,e[i].head))},origin:n&&n.origin};return Tt(t,"beforeSelectionChange",t,i),t.cm&&Tt(t.cm,"beforeSelectionChange",t.cm,i),i.ranges!=e.ranges?Wi(i.ranges,i.ranges.length-1):e}function yr(t,e,n){var i=t.history.done,r=m(i);r&&r.ranges?(i[i.length-1]=e,xr(t,e,n)):wr(t,e,n)}function wr(t,e,n){xr(t,e,n),sr(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function xr(t,e,n){(It(t,"beforeSelectionChange")||t.cm&&It(t.cm,"beforeSelectionChange"))&&(e=br(t,e,n)),Sr(t,Or(t,e,n&&n.bias||(P(e.primary().head,t.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!t.cm||Gn(t.cm)}function Sr(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=t.cm.curOp.selectionChanged=!0,Lt(t.cm)),we(t,"cursorActivity",t))}function Cr(t){Sr(t,Or(t,t.sel,null,!1))}function Or(t,e,n,i){for(var r,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=Tr(t,s.anchor,a&&a.anchor,n,i),u=Tr(t,s.head,a&&a.head,n,i);(r||l!=s.anchor||u!=s.head)&&(r||(r=e.ranges.slice(0,o)),r[o]=new La(l,u))}return r?Wi(r,e.primIndex):e}function kr(t,e,n,i,r){var o=_(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker;if((null==a.from||(l.inclusiveLeft?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(l.inclusiveRight?a.to>=e.ch:a.to>e.ch))){if(r&&(Tt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var u=l.find(i<0?1:-1),c=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(u=_r(t,u,-i,u&&u.line==e.line?o:null)),u&&u.line==e.line&&(c=P(u,n))&&(i<0?c<0:c>0))return kr(t,u,e,i,r)}var h=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(h=_r(t,h,i,h.line==e.line?o:null)),h?kr(t,h,e,i,r):null}}return e}function Tr(t,e,n,i,r){var o=i||1,s=kr(t,e,n,o,r)||!r&&kr(t,e,n,o,!0)||kr(t,e,n,-o,r)||!r&&kr(t,e,n,-o,!0);return s||(t.cantEdit=!0,D(t.first,0))}function _r(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?z(t,D(e.line-1)):null:n>0&&e.ch==(i||_(t,e.line)).text.length?e.line<t.first+t.size-1?D(e.line+1,0):null:new D(e.line,e.ch+n)}function Lr(t){t.setSelection(D(t.firstLine(),0),D(t.lastLine()),Bs)}function Ir(t,e,n){var i={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(e,n,r,o){e&&(i.from=z(t,e)),n&&(i.to=z(t,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),Tt(t,"beforeChange",t,i),t.cm&&Tt(t.cm,"beforeChange",t.cm,i),i.canceled?null:{from:i.from,to:i.to,text:i.text,origin:i.origin}}function Mr(t,e,n){if(t.cm){if(!t.cm.curOp)return di(t.cm,Mr)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(It(t,"beforeChange")||t.cm&&It(t.cm,"beforeChange"))||(e=Ir(t,e,!0))){var i=Xs&&!n&&et(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)Ar(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else Ar(t,e)}}function Ar(t,e){if(1!=e.text.length||""!=e.text[0]||0!=P(e.from,e.to)){var n=Bi(t,e);rr(t,e,n,t.cm?t.cm.curOp.id:NaN),Rr(t,e,n,$(t,e));var i=[];Ji(t,function(t,n){n||-1!=p(i,t.history)||(Wr(t.history,e),i.push(t.history)),Rr(t,e,null,$(t,e))})}}function Er(t,e,n){if(!t.cm||!t.cm.state.suppressEdits||n){for(var i,r=t.history,o=t.sel,s="undo"==e?r.done:r.undone,a="undo"==e?r.undone:r.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=s.length){for(r.lastOrigin=r.lastSelOrigin=null;i=s.pop(),i.ranges;){if(ar(i,a),n&&!i.equals(t.sel))return void wr(t,i,{clearRedo:!1});o=i}var u=[];ar(o,a),a.push({changes:u,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var c=It(t,"beforeChange")||t.cm&&It(t.cm,"beforeChange"),h=i.changes.length-1;h>=0;--h){var f=function(n){var r=i.changes[n];if(r.origin=e,c&&!Ir(t,r,!1))return s.length=0,{};u.push(er(t,r));var o=n?Bi(t,r):m(s);Rr(t,r,o,hr(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Vi(r)});var a=[];Ji(t,function(t,e){e||-1!=p(a,t.history)||(Wr(t.history,r),a.push(t.history)),Rr(t,r,null,hr(t,r))})}(h);if(f)return f.v}}}}function Nr(t,e){if(0!=e&&(t.first+=e,t.sel=new _a(v(t.sel.ranges,function(t){return new La(D(t.anchor.line+e,t.anchor.ch),D(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){gi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;i<n.viewTo;i++)bi(t.cm,i,"gutter")}}function Rr(t,e,n,i){if(t.cm&&!t.cm.curOp)return di(t.cm,Rr)(t,e,n,i);if(e.to.line<t.first)return void Nr(t,e.text.length-1-(e.to.line-e.from.line));if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var r=e.text.length-1-(t.first-e.from.line);Nr(t,r),e={from:D(t.first,0),to:D(e.to.line+r,e.to.ch),text:[m(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:D(o,_(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=L(t,e.from,e.to),n||(n=Bi(t,e)),t.cm?Dr(t.cm,e,i):Xi(t,e,i),xr(t,n,Bs)}}function Dr(t,e,n){var i=t.doc,r=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=A(ht(_(i,o.line))),i.iter(l,s.line+1,function(t){if(t==r.maxLine)return a=!0,!0})),i.sel.contains(e.from,e.to)>-1&&Lt(t),Xi(i,e,n,Cn(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=yt(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0)),re(i,o.line),Ci(t,400);var u=e.text.length-(s.line-o.line)-1;e.full?gi(t):o.line!=s.line||1!=e.text.length||Yi(t.doc,e)?gi(t,o.line,s.line+1,u):bi(t,o.line,"text");var c=It(t,"changes"),h=It(t,"change");if(h||c){var p={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};h&&we(t,"change",t,p),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(p)}t.display.selForContextMenu=null}function Pr(t,e,n,i,r){if(i||(i=n),P(i,n)<0){var o;o=[i,n],n=o[0],i=o[1]}"string"==typeof e&&(e=t.splitLines(e)),Mr(t,{from:n,to:i,text:e,origin:r})}function jr(t,e,n,i){n<t.line?t.line+=i:e<t.line&&(t.line=e,t.ch=0)}function Fr(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r],s=!0;if(o.ranges){o.copied||(o=t[r]=o.deepCopy(),o.copied=!0);for(var a=0;a<o.ranges.length;a++)jr(o.ranges[a].anchor,e,n,i),jr(o.ranges[a].head,e,n,i)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=D(u.from.line+i,u.from.ch),u.to=D(u.to.line+i,u.to.ch);else if(e<=u.to.line){s=!1;break}}s||(t.splice(0,r+1),r=0)}}}function Wr(t,e){var n=e.from.line,i=e.to.line,r=e.text.length-(i-n)-1;Fr(t.done,n,i,r),Fr(t.undone,n,i,r)}function Hr(t,e,n,i){var r=e,o=e;return"number"==typeof e?o=_(t,V(t,e)):r=A(e),null==r?null:(i(o,r)&&t.cm&&bi(t.cm,r,n),o)}function Vr(t){var e=this;this.lines=t,this.parent=null;for(var n=0,i=0;i<t.length;++i)t[i].parent=e,n+=t[i].height;this.height=n}function zr(t){var e=this;this.children=t;for(var n=0,i=0,r=0;r<t.length;++r){var o=t[r];n+=o.chunkSize(),i+=o.height,o.parent=e}this.size=n,this.height=i,this.parent=null}function Br(t,e,n){bt(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Un(t,n)}function qr(t,e,n,i){var r=new Ia(t,n,i),o=t.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),Hr(t,e,"widget",function(e){var n=e.widgets||(e.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length-1,Math.max(0,r.insertAt)),0,r),r.line=e,o&&!vt(t,e)){var i=bt(e)<t.scrollTop;M(e,e.height+Re(r)),i&&Un(o,r.height),o.curOp.forceUpdate=!0}return!0}),we(o,"lineWidgetAdded",o,r,"number"==typeof e?e:A(e)),r}function Kr(t,e,n,i,o){if(i&&i.shared)return Ur(t,e,n,i,o);if(t.cm&&!t.cm.curOp)return di(t.cm,Kr)(t,e,n,i,o);var s=new Aa(t,o),a=P(e,n);if(i&&c(i,s,!1),a>0||0==a&&!1!==s.clearWhenEmpty)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=r("span",[s.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(ct(t,e.line,e,n,s)||e.line!=n.line&&ct(t,n.line,e,n,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");U()}s.addToHistory&&rr(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var l,u=e.line,h=t.cm;if(t.iter(u,n.line+1,function(t){h&&s.collapsed&&!h.options.lineWrapping&&ht(t)==h.display.maxLine&&(l=!0),s.collapsed&&u!=e.line&&M(t,0),J(t,new G(s,u==e.line?e.ch:null,u==n.line?n.ch:null)),++u}),s.collapsed&&t.iter(e.line,n.line+1,function(e){vt(t,e)&&M(e,0)}),s.clearOnEnter&&ta(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(K(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),s.collapsed&&(s.id=++Ma,s.atomic=!0),h){if(l&&(h.curOp.updateMaxLine=!0),s.collapsed)gi(h,e.line,n.line+1);else if(s.className||s.title||s.startStyle||s.endStyle||s.css)for(var p=e.line;p<=n.line;p++)bi(h,p,"text");s.atomic&&Cr(h.doc),we(h,"markerAdded",h,s)}return s}function Ur(t,e,n,i,r){i=c(i),i.shared=!1;var o=[Kr(t,e,n,i,r)],s=o[0],a=i.widgetNode;return Ji(t,function(t){a&&(i.widgetNode=a.cloneNode(!0)),o.push(Kr(t,z(t,e),z(t,n),i,r));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;s=m(o)}),new Ea(o,s)}function Gr(t){return t.findMarks(D(t.first,0),t.clipPos(D(t.lastLine())),function(t){return t.parent})}function Yr(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=i.find(),o=t.clipPos(r.from),s=t.clipPos(r.to);if(P(o,s)){var a=Kr(t,o,s,i.primary,i.primary.type);i.markers.push(a),a.parent=i}}}function Xr(t){for(var e=0;e<t.length;e++)!function(e){var n=t[e],i=[n.primary.doc];Ji(n.primary.doc,function(t){return i.push(t)});for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==p(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}}(e)}function Jr(t){var e=this;if($r(e),!_t(e,t)&&!De(e.display,t)){At(t),gs&&(Da=+new Date);var n=kn(e,t,!0),i=t.dataTransfer.files;if(n&&!e.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),s=0,a=0;a<r;++a)!function(t,i){if(!e.options.allowDropFileTypes||-1!=p(e.options.allowDropFileTypes,t.type)){var a=new FileReader;a.onload=di(e,function(){var t=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),o[i]=t,++s==r){n=z(e.doc,n);var l={from:n,to:n,text:e.doc.splitLines(o.join(e.doc.lineSeparator())),origin:"paste"};Mr(e.doc,l),yr(e.doc,Hi(n,Vi(l)))}}),a.readAsText(t)}}(i[a],a);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var l=t.dataTransfer.getData("Text");if(l){var u;if(e.state.draggingText&&!e.state.draggingText.copy&&(u=e.listSelections()),xr(e.doc,Hi(n,n)),u)for(var c=0;c<u.length;++c)Pr(e.doc,"",u[c].anchor,u[c].head,"drag");e.replaceSelection(l,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Zr(t,e){if(gs&&(!t.state.draggingText||+new Date-Da<100))return void Rt(e);if(!_t(t,e)&&!De(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!Cs)){var n=i("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ss&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),Ss&&n.parentNode.removeChild(n)}}function Qr(t,e){var r=kn(t,e);if(r){var o=document.createDocumentFragment();In(t,r,o),t.display.dragCursor||(t.display.dragCursor=i("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),n(t.display.dragCursor,o)}}function $r(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function to(t){if(document.getElementsByClassName)for(var e=document.getElementsByClassName("CodeMirror"),n=0;n<e.length;n++){var i=e[n].CodeMirror;i&&t(i)}}function eo(){Pa||(no(),Pa=!0)}function no(){var t;ta(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,to(io)},100))}),ta(window,"blur",function(){return to(Pn)})}function io(t){var e=t.display;e.lastWrapHeight==e.wrapper.clientHeight&&e.lastWrapWidth==e.wrapper.clientWidth||(e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize())}function ro(t){var e=t.split(/-(?!$)/);t=e[e.length-1];for(var n,i,r,o,s=0;s<e.length-1;s++){var a=e[s];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return n&&(t="Alt-"+t),i&&(t="Ctrl-"+t),o&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function oo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete t[n];continue}for(var r=v(n.split(" "),ro),o=0;o<r.length;o++){var s=void 0,a=void 0;o==r.length-1?(a=r.join(" "),s=i):(a=r.slice(0,o+1).join(" "),s="...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[n]}for(var u in e)t[u]=e[u];return t}function so(t,e,n,i){e=co(e);var r=e.call?e.call(t,i):e[t];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return so(t,e.fallthrough,n,i);for(var o=0;o<e.fallthrough.length;o++){var s=so(t,e.fallthrough[o],n,i);if(s)return s}}}function ao(t){var e="string"==typeof t?t:ja[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function lo(t,e,n){var i=t;return e.altKey&&"Alt"!=i&&(t="Alt-"+t),(Rs?e.metaKey:e.ctrlKey)&&"Ctrl"!=i&&(t="Ctrl-"+t),(Rs?e.ctrlKey:e.metaKey)&&"Cmd"!=i&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=i&&(t="Shift-"+t),t}function uo(t,e){if(Ss&&34==t.keyCode&&t.char)return!1;var n=ja[t.keyCode];return null!=n&&!t.altGraphKey&&lo(n,t,e)}function co(t){return"string"==typeof t?Va[t]:t}function ho(t,e){for(var n=t.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=e(n[r]);i.length&&P(o.from,m(i).to)<=0;){var s=i.pop();if(P(s.from,o.from)<0){o.from=s.from;break}}i.push(o)}fi(t,function(){for(var e=i.length-1;e>=0;e--)Pr(t.doc,"",i[e].from,i[e].to,"+delete");Gn(t)})}function po(t,e,n){var i=O(t.text,e+n,n);return i<0||i>t.text.length?null:i}function fo(t,e,n){var i=po(t,e.ch,n);return null==i?null:new D(e.line,i,n<0?"after":"before")}function mo(t,e,n,i,r){if(t){var o=Ct(n,e.doc.direction);if(o){var s,a=r<0?m(o):o[0],l=r<0==(1==a.level),u=l?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var c=Ge(e,n);s=r<0?n.text.length-1:0;var h=Ye(e,c,s).top;s=k(function(t){return Ye(e,c,t).top==h},r<0==(1==a.level)?a.from:a.to-1,s),"before"==u&&(s=po(n,s,1))}else s=r<0?a.to:a.from;return new D(i,s,u)}}return new D(i,r<0?n.text.length:0,r<0?"before":"after")}function vo(t,e,n,i){var r=Ct(e,t.doc.direction);if(!r)return fo(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=St(r,n.ch,n.sticky),s=r[o];if("ltr"==t.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from<n.ch))return fo(e,n,i);var a,l=function(t,n){return po(e,t instanceof D?t.ch:t,n)},u=function(n){return t.options.lineWrapping?(a=a||Ge(t,e),dn(t,e,a,n)):{begin:0,end:e.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var h=1==s.level==i<0,p=l(n,h?1:-1);if(null!=p&&(h?p<=s.to&&p<=c.end:p>=s.from&&p>=c.begin)){var f=h?"before":"after";return new D(n.line,p,f)}}var d=function(t,e,i){for(var o=function(t,e){return e?new D(n.line,l(t,1),"before"):new D(n.line,t,"after")};t>=0&&t<r.length;t+=e){var s=r[t],a=e>0==(1!=s.level),u=a?i.begin:l(i.end,-1);if(s.from<=u&&u<s.to)return o(u,a);if(u=a?s.from:l(s.to,-1),i.begin<=u&&u<i.end)return o(u,a)}},m=d(o+i,i,c);if(m)return m;var v=i>0?c.end:l(c.begin,-1);return null==v||i>0&&v==e.text.length||!(m=d(i>0?0:r.length-1,i,u(v)))?null:m}function go(t,e){var n=_(t.doc,e),i=ht(n);return i!=n&&(e=A(i)),mo(!0,t,i,e,1)}function bo(t,e){var n=_(t.doc,e),i=pt(n);return i!=n&&(e=A(i)),mo(!0,t,n,e,-1)}function yo(t,e){var n=go(t,e.line),i=_(t.doc,n.line),r=Ct(i,t.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),s=e.line==n.line&&e.ch<=o&&e.ch;return D(n.line,s?0:o,n.sticky)}return n}function wo(t,e,n){if("string"==typeof e&&!(e=za[e]))return!1;t.display.input.ensurePolled();var i=t.display.shift,r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),r=e(t)!=zs}finally{t.display.shift=i,t.state.suppressEdits=!1}return r}function xo(t,e,n){for(var i=0;i<t.state.keyMaps.length;i++){var r=so(e,t.state.keyMaps[i],n,t);if(r)return r}return t.options.extraKeys&&so(e,t.options.extraKeys,n,t)||so(e,t.options.keyMap,n,t)}function So(t,e,n,i){var r=t.state.keySeq;if(r){if(ao(e))return"handled";Ba.set(50,function(){t.state.keySeq==r&&(t.state.keySeq=null,t.display.input.reset())}),e=r+" "+e}var o=xo(t,e,i);return"multi"==o&&(t.state.keySeq=e),"handled"==o&&we(t,"keyHandled",t,e,n),"handled"!=o&&"multi"!=o||(At(n),En(t)),r&&!o&&/\'$/.test(e)?(At(n),!0):!!o}function Co(t,e){var n=uo(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?So(t,"Shift-"+n,e,function(e){return wo(t,e,!0)})||So(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return wo(t,e)}):So(t,n,e,function(e){return wo(t,e)}))}function Oo(t,e,n){return So(t,"'"+n+"'",e,function(e){return wo(t,e,!0)})}function ko(t){var e=this;if(e.curOp.focus=s(),!_t(e,t)){gs&&bs<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var i=Co(e,t);Ss&&(qa=i?n:null,!i&&88==n&&!ra&&(Is?t.metaKey:t.ctrlKey)&&e.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||To(e)}}function To(t){function e(t){18!=t.keyCode&&t.altKey||(Ps(n,"CodeMirror-crosshair"),kt(document,"keyup",e),kt(document,"mouseover",e))}var n=t.display.lineDiv;a(n,"CodeMirror-crosshair"),ta(document,"keyup",e),ta(document,"mouseover",e)}function _o(t){16==t.keyCode&&(this.doc.sel.shift=!1),_t(this,t)}function Lo(t){var e=this;if(!(De(e.display,t)||_t(e,t)||t.ctrlKey&&!t.altKey||Is&&t.metaKey)){var n=t.keyCode,i=t.charCode;if(Ss&&n==qa)return qa=null,void At(t);if(!Ss||t.which&&!(t.which<10)||!Co(e,t)){var r=String.fromCharCode(null==i?n:i);"\b"!=r&&(Oo(e,t,r)||e.display.input.onKeyPress(t))}}}function Io(t,e){var n=+new Date;return Ga&&Ga.compare(n,t,e)?(Ua=Ga=null,"triple"):Ua&&Ua.compare(n,t,e)?(Ga=new Ka(n,t,e),Ua=null,"double"):(Ua=new Ka(n,t,e),Ga=null,"single")}function Mo(t){var e=this,n=e.display;if(!(_t(e,t)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=t.shiftKey,De(n,t))return void(ys||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!Wo(e,t)){var i=kn(e,t),r=Pt(t),o=i?Io(i,r):"single";window.focus(),1==r&&e.state.selectingText&&e.state.selectingText(t),i&&Ao(e,r,i,o,t)||(1==r?i?No(e,i,o,t):Dt(t)==n.scroller&&At(t):2==r?(i&&dr(e.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(Ds?Ho(e,t):Rn(e)))}}}function Ao(t,e,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),o=(1==e?"Left":2==e?"Middle":"Right")+o,So(t,lo(o,r),r,function(e){if("string"==typeof e&&(e=za[e]),!e)return!1;var i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i=e(t,n)!=zs}finally{t.state.suppressEdits=!1}return i})}function Eo(t,e,n){var i=t.getOption("configureMouse"),r=i?i(t,e,n):{};if(null==r.unit){var o=Ms?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==r.extend||t.doc.extend)&&(r.extend=t.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=Is?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(Is?n.altKey:n.ctrlKey)),r}function No(t,e,n,i){gs?setTimeout(u(Nn,t),0):t.curOp.focus=s();var r,o=Eo(t,n,i),a=t.doc.sel;t.options.dragDrop&&ea&&!t.isReadOnly()&&"single"==n&&(r=a.contains(e))>-1&&(P((r=a.ranges[r]).from(),e)<0||e.xRel>0)&&(P(r.to(),e)>0||e.xRel<0)?Ro(t,i,e,o):Po(t,i,e,o)}function Ro(t,e,n,i){var r=t.display,o=!1,s=di(t,function(e){ys&&(r.scroller.draggable=!1),t.state.draggingText=!1,kt(document,"mouseup",s),kt(document,"mousemove",a),kt(r.scroller,"dragstart",l),kt(r.scroller,"drop",s),o||(At(e),i.addNew||dr(t.doc,n,null,null,i.extend),ys||gs&&9==bs?setTimeout(function(){document.body.focus(),r.input.focus()},20):r.input.focus())}),a=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},l=function(){return o=!0};ys&&(r.scroller.draggable=!0),t.state.draggingText=s,s.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),ta(document,"mouseup",s),ta(document,"mousemove",a),ta(r.scroller,"dragstart",l),ta(r.scroller,"drop",s),Rn(t),setTimeout(function(){return r.input.focus()},20)}function Do(t,e,n){if("char"==n)return new La(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new La(D(e.line,0),z(t.doc,D(e.line+1,0)));var i=n(t,e);return new La(i.from,i.to)}function Po(t,e,n,i){function r(e){if(0!=P(g,e))if(g=e,"rectangle"==i.unit){for(var r=[],o=t.options.tabSize,s=h(_(u,n.line).text,n.ch,o),a=h(_(u,e.line).text,e.ch,o),l=Math.min(s,a),m=Math.max(s,a),v=Math.min(n.line,e.line),b=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=b;v++){var y=_(u,v).text,w=f(y,l,o);l==m?r.push(new La(D(v,w),D(v,w))):y.length>w&&r.push(new La(D(v,w),D(v,f(y,m,o))))}r.length||r.push(new La(n,n)),wr(u,Wi(d.ranges.slice(0,p).concat(r),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var x,S=c,C=Do(t,e,i.unit),O=S.anchor;P(C.anchor,O)>0?(x=C.head,O=H(S.from(),C.anchor)):(x=C.anchor,O=W(S.to(),C.head));var k=d.ranges.slice(0);k[p]=jo(t,new La(z(u,O),x)),wr(u,Wi(k,p),qs)}}function o(e){var n=++y,a=kn(t,e,!0,"rectangle"==i.unit);if(a)if(0!=P(a,g)){t.curOp.focus=s(),r(a);var c=Wn(l,u);(a.line>=c.to||a.line<c.from)&&setTimeout(di(t,function(){y==n&&o(e)}),150)}else{var h=e.clientY<b.top?-20:e.clientY>b.bottom?20:0;h&&setTimeout(di(t,function(){y==n&&(l.scroller.scrollTop+=h,o(e))}),50)}}function a(e){t.state.selectingText=!1,y=1/0,At(e),l.input.focus(),kt(document,"mousemove",w),kt(document,"mouseup",x),u.history.lastSelOrigin=null}var l=t.display,u=t.doc;At(e);var c,p,d=u.sel,m=d.ranges;if(i.addNew&&!i.extend?(p=u.sel.contains(n),c=p>-1?m[p]:new La(n,n)):(c=u.sel.primary(),p=u.sel.primIndex),"rectangle"==i.unit)i.addNew||(c=new La(n,n)),n=kn(t,e,!0,!0),p=-1;else{var v=Do(t,n,i.unit);c=i.extend?fr(c,v.anchor,v.head,i.extend):v}i.addNew?-1==p?(p=m.length,wr(u,Wi(m.concat([c]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"char"==i.unit&&!i.extend?(wr(u,Wi(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),d=u.sel):vr(u,p,c,qs):(p=0,wr(u,new _a([c],0),qs),d=u.sel);var g=n,b=l.wrapper.getBoundingClientRect(),y=0,w=di(t,function(t){Pt(t)?o(t):a(t)}),x=di(t,a);t.state.selectingText=x,ta(document,"mousemove",w),ta(document,"mouseup",x)}function jo(t,e){var n=e.anchor,i=e.head,r=_(t.doc,n.line);if(0==P(n,i)&&n.sticky==i.sticky)return e;var o=Ct(r);if(!o)return e;var s=St(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==o.length)return e;var u;if(i.line!=n.line)u=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=St(o,i.ch,i.sticky),h=c-s||(i.ch-n.ch)*(1==a.level?-1:1);u=c==l-1||c==l?h<0:h>0}var p=o[l+(u?-1:0)],f=u==(1==p.level),d=f?p.from:p.to,m=f?"after":"before";return n.ch==d&&n.sticky==m?e:new La(new D(n.line,d,m),i)}function Fo(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(e){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&At(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!It(t,n))return Nt(e);o-=a.top-s.viewOffset;for(var l=0;l<t.options.gutters.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=r){return Tt(t,n,t,E(t.doc,o),t.options.gutters[l],e),Nt(e)}}}function Wo(t,e){return Fo(t,e,"gutterClick",!0)}function Ho(t,e){De(t.display,e)||Vo(t,e)||_t(t,e,"contextmenu")||t.display.input.onContextMenu(e)}function Vo(t,e){return!!It(t,"gutterContextMenu")&&Fo(t,e,"gutterContextMenu",!1)}function zo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),en(t)}function Bo(t){Ri(t),gi(t),Hn(t)}function qo(t,e,n){if(!e!=!(n&&n!=Ya)){var i=t.display.dragFunctions,r=e?ta:kt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Ko(t){t.options.lineWrapping?(a(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(Ps(t.display.wrapper,"CodeMirror-wrap"),wt(t)),On(t),gi(t),en(t),setTimeout(function(){return ni(t)},100)}function Uo(t,e){var n=this;if(!(this instanceof Uo))return new Uo(t,e);this.options=e=e?c(e):{},c(Xa,e,!1),Di(e);var i=e.value;"string"==typeof i&&(i=new Ra(i,e.mode,null,e.lineSeparator,e.direction)),this.doc=i;var r=new Uo.inputStyles[e.inputStyle](this),o=this.display=new T(t,i,r);o.wrapper.CodeMirror=this,Ri(this),zo(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ri(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Fs,keySeq:null,specialChars:null},e.autofocus&&!Ls&&o.input.focus(),gs&&bs<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Go(this),eo(),oi(this),this.curOp.forceUpdate=!0,Zi(this,i),e.autofocus&&!Ls||this.hasFocus()?setTimeout(u(Dn,this),20):Pn(this);for(var s in Ja)Ja.hasOwnProperty(s)&&Ja[s](n,e[s],Ya);Vn(this),e.finishInit&&e.finishInit(this);for(var a=0;a<Za.length;++a)Za[a](n);si(this),ys&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Go(t){function e(){r.activeTouch&&(o=setTimeout(function(){return r.activeTouch=null},1e3),s=r.activeTouch,s.end=+new Date)}function n(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function i(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}var r=t.display;ta(r.scroller,"mousedown",di(t,Mo)),gs&&bs<11?ta(r.scroller,"dblclick",di(t,function(e){if(!_t(t,e)){var n=kn(t,e);if(n&&!Wo(t,e)&&!De(t.display,e)){At(e);var i=t.findWordAt(n);dr(t.doc,i.anchor,i.head)}}})):ta(r.scroller,"dblclick",function(e){return _t(t,e)||At(e)}),Ds||ta(r.scroller,"contextmenu",function(e){return Ho(t,e)});var o,s={end:0};ta(r.scroller,"touchstart",function(e){if(!_t(t,e)&&!n(e)&&!Wo(t,e)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-s.end<=300?s:null},1==e.touches.length&&(r.activeTouch.left=e.touches[0].pageX,r.activeTouch.top=e.touches[0].pageY)}}),ta(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),ta(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!De(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var s,a=t.coordsChar(r.activeTouch,"page");s=!o.prev||i(o,o.prev)?new La(a,a):!o.prev.prev||i(o,o.prev.prev)?t.findWordAt(a):new La(D(a.line,0),z(t.doc,D(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),At(n)}e()}),ta(r.scroller,"touchcancel",e),ta(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Qn(t,r.scroller.scrollTop),ti(t,r.scroller.scrollLeft,!0),Tt(t,"scroll",t))}),ta(r.scroller,"mousewheel",function(e){return Fi(t,e)}),ta(r.scroller,"DOMMouseScroll",function(e){return Fi(t,e)}),ta(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(e){_t(t,e)||Rt(e)},over:function(e){_t(t,e)||(Qr(t,e),Rt(e))},start:function(e){return Zr(t,e)},drop:di(t,Jr),leave:function(e){_t(t,e)||$r(t)}};var a=r.input.getField();ta(a,"keyup",function(e){return _o.call(t,e)}),ta(a,"keydown",di(t,ko)),ta(a,"keypress",di(t,Lo)),ta(a,"focus",function(e){return Dn(t,e)}),ta(a,"blur",function(e){return Pn(t,e)})}function Yo(t,e,n,i){var r,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=Jt(t,e).state:n="prev");var s=t.options.tabSize,a=_(o,e),l=h(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(i||/\S/.test(a.text)){if("smart"==n&&((u=o.mode.indent(r,a.text.slice(c.length),a.text))==zs||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?h(_(o,e-1).text,null,s):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var p="",f=0;if(t.options.indentWithTabs)for(var m=Math.floor(u/s);m;--m)f+=s,p+="\t";if(f<u&&(p+=d(u-f)),p!=c)return Pr(o,p,D(e,0),D(e,c.length),"+input"),a.stateAfter=null,!0;for(var v=0;v<o.sel.ranges.length;v++){var g=o.sel.ranges[v];if(g.head.line==e&&g.head.ch<c.length){var b=D(e,c.length);vr(o,v,new La(b,b));break}}}function Xo(t){Qa=t}function Jo(t,e,n,i,r){var o=t.doc;t.display.shift=!1,i||(i=o.sel);var s=t.state.pasteIncoming||"paste"==r,a=na(e),l=null;if(s&&i.ranges.length>1)if(Qa&&Qa.text.join("\n")==e){if(i.ranges.length%Qa.text.length==0){l=[];for(var u=0;u<Qa.text.length;u++)l.push(o.splitLines(Qa.text[u]))}}else a.length==i.ranges.length&&t.options.pasteLinesPerSelection&&(l=v(a,function(t){return[t]}));for(var c,h=i.ranges.length-1;h>=0;h--){var p=i.ranges[h],f=p.from(),d=p.to();p.empty()&&(n&&n>0?f=D(f.line,f.ch-n):t.state.overwrite&&!s?d=D(d.line,Math.min(_(o,d.line).text.length,d.ch+m(a).length)):Qa&&Qa.lineWise&&Qa.text.join("\n")==e&&(f=d=D(f.line,0))),c=t.curOp.updateInput;var g={from:f,to:d,text:l?l[h%l.length]:a,origin:r||(s?"paste":t.state.cutIncoming?"cut":"+input")};Mr(t.doc,g),we(t,"inputRead",t,g)}e&&!s&&Qo(t,e),Gn(t),t.curOp.updateInput=c,t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=!1}function Zo(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||fi(e,function(){return Jo(e,n,0,null,"paste")}),!0}function Qo(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(e.indexOf(o.electricChars.charAt(a))>-1){s=Yo(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(_(t.doc,r.head.line).text.slice(0,r.head.ch))&&(s=Yo(t,r.head.line,"smart"));s&&we(t,"electricInput",t,r.head.line)}}}function $o(t){for(var e=[],n=[],i=0;i<t.doc.sel.ranges.length;i++){var r=t.doc.sel.ranges[i].head.line,o={anchor:D(r,0),head:D(r+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function ts(t,e){t.setAttribute("autocorrect","off"),t.setAttribute("autocapitalize","off"),t.setAttribute("spellcheck",!!e)}function es(){var t=i("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=i("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ys?t.style.width="1000px":t.setAttribute("wrap","off"),Ts&&(t.style.border="1px solid black"),ts(t),e}function ns(t,e,n,i,r){function o(){var i=e.line+n;return!(i<t.first||i>=t.first+t.size)&&(e=new D(i,e.ch,e.sticky),u=_(t,i))}function s(i){var s;if(null==(s=r?vo(t.cm,u,e,n):fo(u,e,n))){if(i||!o())return!1;e=mo(r,t.cm,u,e.line,n)}else e=s;return!0}var a=e,l=n,u=_(t,e.line);if("char"==i)s();else if("column"==i)s(!0);else if("word"==i||"group"==i)for(var c=null,h="group"==i,p=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||s(!f);f=!1){var d=u.text.charAt(e.ch)||"\n",m=x(d,p)?"w":h&&"\n"==d?"n":!h||/\s/.test(d)?null:"p";if(!h||f||m||(m="s"),c&&c!=m){n<0&&(n=1,s(),e.sticky="after");break}if(m&&(c=m),n>0&&!s(!f))break}var v=Tr(t,e,a,l,!0);return j(a,v)&&(v.hitSide=!0),v}function is(t,e,n,i){var r,o=t.doc,s=e.left;if("page"==i){var a=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(a-.5*yn(t.display),3);r=(n>0?e.bottom:e.top)+n*l}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(var u;u=pn(t,s,r),u.outside;){if(n<0?r<=0:r>=o.height){u.hitSide=!0;break}r+=5*n}return u}function rs(t,e){var n=Ue(t,e.line);if(!n||n.hidden)return null;var i=_(t.doc,e.line),r=Be(n,i,e.line),o=Ct(i,t.doc.direction),s="left";if(o){s=St(o,e.ch)%2?"right":"left"}var a=Xe(r.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function os(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function ss(t,e){return e&&(t.bad=!0),t}function as(t,e,n,i,r){function o(t){return function(e){return e.id==t}}function s(){c&&(u+=h,c=!1)}function a(t){t&&(s(),u+=t)}function l(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(null!=n)return void a(n||e.textContent.replace(/\u200b/g,""));var u,p=e.getAttribute("cm-marker");if(p){var f=t.findMarks(D(i,0),D(r+1,0),o(+p));return void(f.length&&(u=f[0].find(0))&&a(L(t.doc,u.from,u.to).join(h)))}if("false"==e.getAttribute("contenteditable"))return;var d=/^(pre|div|p)$/i.test(e.nodeName);d&&s();for(var m=0;m<e.childNodes.length;m++)l(e.childNodes[m]);d&&(c=!0)}else 3==e.nodeType&&a(e.nodeValue)}for(var u="",c=!1,h=t.doc.lineSeparator();l(e),e!=n;)e=e.nextSibling;return u}function ls(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return ss(t.clipPos(D(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r<t.display.view.length;r++){var o=t.display.view[r];if(o.node==i)return us(o,e,n)}}function us(t,e,n){function i(e,n,i){for(var r=-1;r<(h?h.length:0);r++)for(var o=r<0?c.map:h[r],s=0;s<o.length;s+=3){var a=o[s+2];if(a==e||a==n){var l=A(r<0?t.line:t.rest[r]),u=o[s]+i;return(i<0||a!=e)&&(u=o[s+(i?1:0)]),D(l,u)}}}var r=t.text.firstChild,s=!1;if(!e||!o(r,e))return ss(D(A(t.line),0),!0);if(e==r&&(s=!0,e=r.childNodes[n],n=0,!e)){var a=t.rest?m(t.rest):t.line;return ss(D(A(a),a.text.length),s)}var l=3==e.nodeType?e:null,u=e;for(l||1!=e.childNodes.length||3!=e.firstChild.nodeType||(l=e.firstChild,n&&(n=l.nodeValue.length));u.parentNode!=r;)u=u.parentNode;var c=t.measure,h=c.maps,p=i(l,u,n);if(p)return ss(p,s);for(var f=u.nextSibling,d=l?l.nodeValue.length-n:0;f;f=f.nextSibling){if(p=i(f,f.firstChild,0))return ss(D(p.line,p.ch-d),s);d+=f.textContent.length}for(var v=u.previousSibling,g=n;v;v=v.previousSibling){if(p=i(v,v.firstChild,-1))return ss(D(p.line,p.ch+g),s);g+=v.textContent.length}}function cs(t,e){function n(){t.value=l.getValue()}if(e=e?c(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var i=s();e.autofocus=i==t||null!=t.getAttribute("autofocus")&&i==document.body}var r;if(t.form&&(ta(t.form,"submit",n),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var a=o.submit=function(){n(),o.submit=r,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(kt(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=r))}},t.style.display="none";var l=Uo(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return l}var hs=navigator.userAgent,ps=navigator.platform,fs=/gecko\/\d/i.test(hs),ds=/MSIE \d/.test(hs),ms=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(hs),vs=/Edge\/(\d+)/.exec(hs),gs=ds||ms||vs,bs=gs&&(ds?document.documentMode||6:+(vs||ms)[1]),ys=!vs&&/WebKit\//.test(hs),ws=ys&&/Qt\/\d+\.\d+/.test(hs),xs=!vs&&/Chrome\//.test(hs),Ss=/Opera\//.test(hs),Cs=/Apple Computer/.test(navigator.vendor),Os=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(hs),ks=/PhantomJS/.test(hs),Ts=!vs&&/AppleWebKit/.test(hs)&&/Mobile\/\w+/.test(hs),_s=/Android/.test(hs),Ls=Ts||_s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(hs),Is=Ts||/Mac/.test(ps),Ms=/\bCrOS\b/.test(hs),As=/win/i.test(ps),Es=Ss&&hs.match(/Version\/(\d*\.\d*)/);Es&&(Es=Number(Es[1])),Es&&Es>=15&&(Ss=!1,ys=!0);var Ns,Rs=Is&&(ws||Ss&&(null==Es||Es<12.11)),Ds=fs||gs&&bs>=9,Ps=function(e,n){var i=e.className,r=t(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(o?r[1]+o:"")}};Ns=document.createRange?function(t,e,n,i){var r=document.createRange();return r.setEnd(i||t,n),r.setStart(t,e),r}:function(t,e,n){var i=document.body.createTextRange();try{i.moveToElementText(t.parentNode)}catch(t){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i};var js=function(t){t.select()};Ts?js=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:gs&&(js=function(t){try{t.select()}catch(t){}});var Fs=function(){this.id=null};Fs.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var Ws,Hs,Vs=30,zs={toString:function(){return"CodeMirror.Pass"}},Bs={scroll:!1},qs={origin:"*mouse"},Ks={origin:"+move"},Us=[""],Gs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ys=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Xs=!1,Js=!1,Zs=null,Qs=function(){function t(t){return t<=247?n.charAt(t):1424<=t&&t<=1524?"R":1536<=t&&t<=1785?i.charAt(t-1536):1774<=t&&t<=2220?"r":8192<=t&&t<=8203?"w":8204==t?"b":"L"}function e(t,e,n){this.level=t,this.from=e,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,s=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;return function(n,i){var u="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var c=n.length,h=[],p=0;p<c;++p)h.push(t(n.charCodeAt(p)));for(var f=0,d=u;f<c;++f){var v=h[f];"m"==v?h[f]=d:d=v}for(var g=0,b=u;g<c;++g){var y=h[g];"1"==y&&"r"==b?h[g]="n":s.test(y)&&(b=y,"r"==y&&(h[g]="R"))}for(var w=1,x=h[0];w<c-1;++w){var S=h[w];"+"==S&&"1"==x&&"1"==h[w+1]?h[w]="1":","!=S||x!=h[w+1]||"1"!=x&&"n"!=x||(h[w]=x),x=S}for(var C=0;C<c;++C){var O=h[C];if(","==O)h[C]="N";else if("%"==O){var k=void 0;for(k=C+1;k<c&&"%"==h[k];++k);for(var T=C&&"!"==h[C-1]||k<c&&"1"==h[k]?"1":"N",_=C;_<k;++_)h[_]=T;C=k-1}}for(var L=0,I=u;L<c;++L){var M=h[L];"L"==I&&"1"==M?h[L]="L":s.test(M)&&(I=M)}for(var A=0;A<c;++A)if(o.test(h[A])){var E=void 0;for(E=A+1;E<c&&o.test(h[E]);++E);for(var N="L"==(A?h[A-1]:u),R="L"==(E<c?h[E]:u),D=N==R?N?"L":"R":u,P=A;P<E;++P)h[P]=D;A=E-1}for(var j,F=[],W=0;W<c;)if(a.test(h[W])){var H=W;for(++W;W<c&&a.test(h[W]);++W);F.push(new e(0,H,W))}else{var V=W,z=F.length;for(++W;W<c&&"L"!=h[W];++W);for(var B=V;B<W;)if(l.test(h[B])){V<B&&F.splice(z,0,new e(1,V,B));var q=B;for(++B;B<W&&l.test(h[B]);++B);F.splice(z,0,new e(2,q,B)),V=B}else++B;V<W&&F.splice(z,0,new e(1,V,W))}return"ltr"==i&&(1==F[0].level&&(j=n.match(/^\s+/))&&(F[0].from=j[0].length,F.unshift(new e(0,0,j[0].length))),1==m(F).level&&(j=n.match(/\s+$/))&&(m(F).to-=j[0].length,F.push(new e(0,c-j[0].length,c)))),"rtl"==i?F.reverse():F}}(),$s=[],ta=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var i=t._handlers||(t._handlers={});i[e]=(i[e]||$s).concat(n)}},ea=function(){if(gs&&bs<9)return!1;var t=i("div");return"draggable"in t||"dragDrop"in t}(),na=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},ia=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},ra=function(){var t=i("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),oa=null,sa={},aa={},la={},ua=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};ua.prototype.eol=function(){return this.pos>=this.string.length},ua.prototype.sol=function(){return this.pos==this.lineStart},ua.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ua.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ua.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},ua.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},ua.prototype.eatSpace=function(){for(var t=this,e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++t.pos;return this.pos>e},ua.prototype.skipToEnd=function(){this.pos=this.string.length},ua.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},ua.prototype.backUp=function(t){this.pos-=t},ua.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=h(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)},ua.prototype.indentation=function(){return h(this.string,null,this.tabSize)-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)},ua.prototype.match=function(t,e,n){if("string"!=typeof t){var i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},ua.prototype.current=function(){return this.string.slice(this.start,this.pos)},ua.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},ua.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},ua.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ca=function(t,e){this.state=t,this.lookAhead=e},ha=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};ha.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ha.prototype.baseToken=function(t){var e=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)e.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ha.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ha.fromSaved=function(t,e,n){return e instanceof ca?new ha(t,Kt(t.mode,e.state),n,e.lookAhead):new ha(t,Kt(t.mode,e),n)},ha.prototype.save=function(t){var e=!1!==t?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ca(e,this.maxLookAhead):e};var pa=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n},fa=function(t,e,n){this.text=t,it(this,e),this.height=n?n(this):1};fa.prototype.lineNo=function(){return A(this)},Mt(fa);var da,ma={},va={},ga=null,ba=null,ya={left:0,right:0,top:0,bottom:0},wa=function(t,e,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");t(r),t(o),ta(r,"scroll",function(){r.clientHeight&&e(r.scrollTop,"vertical")}),ta(o,"scroll",function(){o.clientWidth&&e(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,gs&&bs<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wa.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},wa.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wa.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wa.prototype.zeroWidthHack=function(){var t=Is&&!Os?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fs,this.disableVert=new Fs},wa.prototype.enableZeroWidthBar=function(t,e,n){function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)}t.style.pointerEvents="auto",e.set(1e3,i)},wa.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var xa=function(){};xa.prototype.update=function(){return{bottom:0,right:0}},xa.prototype.setScrollLeft=function(){},xa.prototype.setScrollTop=function(){},xa.prototype.clear=function(){};var Sa={native:wa,null:xa},Ca=0,Oa=function(t,e,n){var i=t.display;this.viewport=e,this.visible=Wn(i,t.doc,e),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=He(t),this.force=n,this.dims=xn(t),this.events=[]};Oa.prototype.signal=function(t,e){It(t,e)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var t=this,e=0;e<this.events.length;e++)Tt.apply(null,t.events[e])};var ka=0,Ta=null;gs?Ta=-.53:fs?Ta=15:xs?Ta=-.7:Cs&&(Ta=-1/3);var _a=function(t,e){this.ranges=t,this.primIndex=e};_a.prototype.primary=function(){return this.ranges[this.primIndex]},_a.prototype.equals=function(t){var e=this;if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var i=e.ranges[n],r=t.ranges[n];if(!j(i.anchor,r.anchor)||!j(i.head,r.head))return!1}return!0},_a.prototype.deepCopy=function(){for(var t=this,e=[],n=0;n<this.ranges.length;n++)e[n]=new La(F(t.ranges[n].anchor),F(t.ranges[n].head));return new _a(e,this.primIndex)},_a.prototype.somethingSelected=function(){for(var t=this,e=0;e<this.ranges.length;e++)if(!t.ranges[e].empty())return!0;return!1},_a.prototype.contains=function(t,e){var n=this;e||(e=t);for(var i=0;i<this.ranges.length;i++){var r=n.ranges[i];if(P(e,r.from())>=0&&P(t,r.to())<=0)return i}return-1};var La=function(t,e){this.anchor=t,this.head=e};La.prototype.from=function(){return H(this.anchor,this.head)},La.prototype.to=function(){return W(this.anchor,this.head)},La.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Vr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=this,i=t,r=t+e;i<r;++i){var o=n.lines[i];n.height-=o.height,se(o),we(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){var i=this;this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=i},iterN:function(t,e,n){for(var i=this,r=t+e;t<r;++t)if(n(i.lines[t]))return!0}},zr.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){var n=this;this.size-=e;for(var i=0;i<this.children.length;++i){var r=n.children[i],o=r.chunkSize();if(t<o){var s=Math.min(e,o-t),a=r.height;if(r.removeInner(t,s),n.height-=a-r.height,o==s&&(n.children.splice(i--,1),r.parent=null),0==(e-=s))break;t=0}else t-=o}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof Vr))){var l=[];this.collapse(l),this.children=[new Vr(l)],this.children[0].parent=this}},collapse:function(t){for(var e=this,n=0;n<this.children.length;++n)e.children[n].collapse(t)},insertInner:function(t,e,n){var i=this;this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=i.children[r],s=o.chunkSize();if(t<=s){if(o.insertInner(t,e,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,l=a;l<o.lines.length;){var u=new Vr(o.lines.slice(l,l+=25));o.height-=u.height,i.children.splice(++r,0,u),u.parent=i}o.lines=o.lines.slice(0,a),i.maybeSpill()}break}t-=s}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),n=new zr(e);if(t.parent){t.size-=n.size,t.height-=n.height;var i=p(t.parent.children,t);t.parent.children.splice(i+1,0,n)}else{var r=new zr(t.children);r.parent=t,t.children=[r,n],t=r}n.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=this,r=0;r<this.children.length;++r){var o=i.children[r],s=o.chunkSize();if(t<s){var a=Math.min(e,s-t);if(o.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=s}}};var Ia=function(t,e,n){var i=this;if(n)for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r]);this.doc=t,this.node=e};Ia.prototype.clear=function(){var t=this,e=this.doc.cm,n=this.line.widgets,i=this.line,r=A(i);if(null!=r&&n){for(var o=0;o<n.length;++o)n[o]==t&&n.splice(o--,1);n.length||(i.widgets=null);var s=Re(this);M(i,Math.max(0,i.height-s)),e&&(fi(e,function(){Br(e,i,-s),bi(e,r,"widget")}),we(e,"lineWidgetCleared",e,this,r))}},Ia.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=Re(this)-e;r&&(M(i,i.height+r),n&&fi(n,function(){n.curOp.forceUpdate=!0,Br(n,i,r),we(n,"lineWidgetChanged",n,t,A(i))}))},Mt(Ia);var Ma=0,Aa=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Ma};Aa.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&oi(e),It(this,"clear")){var i=this.find();i&&we(this,"clear",i.from,i.to)}for(var r=null,o=null,s=0;s<this.lines.length;++s){var a=t.lines[s],l=Y(a.markedSpans,t);e&&!t.collapsed?bi(e,A(a),"text"):e&&(null!=l.to&&(o=A(a)),null!=l.from&&(r=A(a))),a.markedSpans=X(a.markedSpans,l),null==l.from&&t.collapsed&&!vt(t.doc,a)&&e&&M(a,yn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=ht(t.lines[u]),h=yt(c);h>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&gi(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Cr(e.doc)),e&&we(e,"markerCleared",e,this,r,o),n&&si(e),this.parent&&this.parent.clear()}},Aa.prototype.find=function(t,e){var n=this;null==t&&"bookmark"==this.type&&(t=1);for(var i,r,o=0;o<this.lines.length;++o){var s=n.lines[o],a=Y(s.markedSpans,n);if(null!=a.from&&(i=D(e?s:A(s),a.from),-1==t))return i;if(null!=a.to&&(r=D(e?s:A(s),a.to),1==t))return r}return i&&{from:i,to:r}},Aa.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,i=this.doc.cm;e&&i&&fi(i,function(){var r=e.line,o=A(e.line),s=Ue(i,o);if(s&&($e(s),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!vt(n.doc,r)&&null!=n.height){var a=n.height;n.height=null;var l=Re(n)-a;l&&M(r,r.height+l)}we(i,"markerChanged",i,t)})},Aa.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=p(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Aa.prototype.detachLine=function(t){if(this.lines.splice(p(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},Mt(Aa);var Ea=function(t,e){var n=this;this.markers=t,this.primary=e;for(var i=0;i<t.length;++i)t[i].parent=n};Ea.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)t.markers[e].clear();we(this,"clear")}},Ea.prototype.find=function(t,e){return this.primary.find(t,e)},Mt(Ea);var Na=0,Ra=function(t,e,n,i,r){if(!(this instanceof Ra))return new Ra(t,e,n,i,r);null==n&&(n=0),zr.call(this,[new Vr([new fa("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=D(n,0);this.sel=Hi(o),this.history=new tr(null),this.id=++Na,this.modeOption=e,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Xi(this,{from:o,to:o,text:t}),wr(this,Hi(o),Bs)};Ra.prototype=y(zr.prototype,{constructor:Ra,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,i=0;i<e.length;++i)n+=e[i].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=I(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:vi(function(t){var e=D(this.first,0),n=this.first+this.size-1;Mr(this,{from:e,to:D(n,_(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yn(this.cm,0,0),wr(this,Hi(e),Bs)}),replaceRange:function(t,e,n,i){e=z(this,e),n=n?z(this,n):e,Pr(this,t,e,n,i)},getRange:function(t,e,n){var i=L(this,z(this,t),z(this,e));return!1===n?i:i.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(N(this,t))return _(this,t)},getLineNumber:function(t){return A(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=_(this,t)),ht(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return z(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vi(function(t,e,n){gr(this,z(this,"number"==typeof t?D(t,e||0):t),null,n)}),setSelection:vi(function(t,e,n){gr(this,z(this,t),z(this,e||t),n)}),extendSelection:vi(function(t,e,n){dr(this,z(this,t),e&&z(this,e),n)}),extendSelections:vi(function(t,e){mr(this,q(this,t),e)}),extendSelectionsBy:vi(function(t,e){mr(this,q(this,v(this.sel.ranges,t)),e)}),setSelections:vi(function(t,e,n){var i=this;if(t.length){for(var r=[],o=0;o<t.length;o++)r[o]=new La(z(i,t[o].anchor),z(i,t[o].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),wr(this,Wi(r,e),n)}}),addSelection:vi(function(t,e,n){var i=this.sel.ranges.slice(0);i.push(new La(z(this,t),z(this,e||t))),wr(this,Wi(i,i.length-1),n)}),getSelection:function(t){for(var e,n=this,i=this.sel.ranges,r=0;r<i.length;r++){var o=L(n,i[r].from(),i[r].to());e=e?e.concat(o):o}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=this,n=[],i=this.sel.ranges,r=0;r<i.length;r++){var o=L(e,i[r].from(),i[r].to());!1!==t&&(o=o.join(t||e.lineSeparator())),n[r]=o}return n},replaceSelection:function(t,e,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=t;this.replaceSelections(i,e,n||"+input")},replaceSelections:vi(function(t,e,n){for(var i=this,r=[],o=this.sel,s=0;s<o.ranges.length;s++){var a=o.ranges[s];r[s]={from:a.from(),to:a.to(),text:i.splitLines(t[s]),origin:n}}for(var l=e&&"end"!=e&&Ki(this,r,e),u=r.length-1;u>=0;u--)Mr(i,r[u]);l?yr(this,l):this.cm&&Gn(this.cm)}),undo:vi(function(){Er(this,"undo")}),redo:vi(function(){Er(this,"redo")}),undoSelection:vi(function(){Er(this,"undo",!0)}),redoSelection:vi(function(){Er(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i<t.done.length;i++)t.done[i].ranges||++e;for(var r=0;r<t.undone.length;r++)t.undone[r].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){this.history=new tr(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:pr(this.history.done),undone:pr(this.history.undone)}},setHistory:function(t){var e=this.history=new tr(this.history.maxGeneration);e.done=pr(t.done.slice(0),null,!0),e.undone=pr(t.undone.slice(0),null,!0)},setGutterMarker:vi(function(t,e,n){return Hr(this,t,"gutter",function(t){var i=t.gutterMarkers||(t.gutterMarkers={});return i[e]=n,!n&&S(i)&&(t.gutterMarkers=null),!0})}),clearGutter:vi(function(t){var e=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[t]&&Hr(e,n,"gutter",function(){return n.gutterMarkers[t]=null,S(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!N(this,t))return null;if(e=t,!(t=_(this,t)))return null}else if(null==(e=A(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:vi(function(e,n,i){return Hr(this,e,"gutter"==n?"gutter":"class",function(e){var r="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(e[r]){if(t(i).test(e[r]))return!1;e[r]+=" "+i}else e[r]=i;return!0})}),removeLineClass:vi(function(e,n,i){return Hr(this,e,"gutter"==n?"gutter":"class",function(e){var r="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=e[r];if(!o)return!1;if(null==i)e[r]=null;else{var s=o.match(t(i));if(!s)return!1;var a=s.index+s[0].length;e[r]=o.slice(0,s.index)+(s.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0})}),addLineWidget:vi(function(t,e,n){return qr(this,t,e,n)}),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Kr(this,z(this,t),z(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return t=z(this,t),Kr(this,t,t,n,"bookmark")},findMarksAt:function(t){t=z(this,t);var e=[],n=_(this,t.line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=t.ch)&&(null==r.to||r.to>=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=z(this,t),e=z(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&r==t.line&&t.ch>=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&t.push(n[i].marker)}),t},posFromIndex:function(t){var e,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+i;if(o>t)return e=t,!0;t-=o,++n}),z(this,D(n,e))},indexFromPos:function(t){t=z(this,t);var e=t.ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+n}),e},copy:function(t){var e=new Ra(I(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var i=new Ra(I(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:t.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Yr(i,Gr(this)),i},unlinkDoc:function(t){var e=this;if(t instanceof Uo&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var i=e.linked[n];if(i.doc==t){e.linked.splice(n,1),t.unlinkDoc(e),Xr(Gr(e));break}}if(t.history==this.history){var r=[t.id];Ji(t,function(t){return r.push(t.id)},!0),t.history=new tr(null),t.history.done=pr(this.history.done,r),t.history.undone=pr(this.history.undone,r)}},iterLinkedDocs:function(t){Ji(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):na(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:vi(function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&$i(this.cm))})}),Ra.prototype.eachLine=Ra.prototype.iter;for(var Da=0,Pa=!1,ja={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fa=0;Fa<10;Fa++)ja[Fa+48]=ja[Fa+96]=String(Fa);for(var Wa=65;Wa<=90;Wa++)ja[Wa]=String.fromCharCode(Wa);for(var Ha=1;Ha<=12;Ha++)ja[Ha+111]=ja[Ha+63235]="F"+Ha;var Va={};Va.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Va.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Va.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Va.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Va.default=Is?Va.macDefault:Va.pcDefault;var za={selectAll:Lr,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Bs)},killLine:function(t){return ho(t,function(e){if(e.empty()){var n=_(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:D(e.head.line+1,0)}:{from:e.head,to:D(e.head.line,n)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return ho(t,function(e){return{from:D(e.from().line,0),to:z(t.doc,D(e.to().line+1,0))}})},delLineLeft:function(t){return ho(t,function(t){return{from:D(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(t){return ho(t,function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}})},delWrappedLineRight:function(t){return ho(t,function(e){var n=t.charCoords(e.head,"div").top+5,i=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:i}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(D(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(D(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return go(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return yo(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return bo(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")},Ks)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")},Ks)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5,i=t.coordsChar({left:0,top:n},"div");return i.ch<t.getLine(i.line).search(/\S/)?yo(t,e.head):i},Ks)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),i=t.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),s=h(t.getLine(o.line),o.ch,i);e.push(d(i-s%i))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return fi(t,function(){for(var e=t.listSelections(),n=[],i=0;i<e.length;i++)if(e[i].empty()){var r=e[i].head,o=_(t.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new D(r.line,r.ch-1)),r.ch>0)r=new D(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),D(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var s=_(t.doc,r.line-1).text;s&&(r=new D(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),D(r.line-1,s.length-1),r,"+transpose"))}n.push(new La(r,r))}t.setSelections(n)})},newlineAndIndent:function(t){return fi(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i<e.length;i++)t.indentLine(e[i].from().line,null,!0);Gn(t)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}},Ba=new Fs,qa=null,Ka=function(t,e,n){this.time=t,this.pos=e,this.button=n};Ka.prototype.compare=function(t,e,n){return this.time+400>t&&0==P(e,this.pos)&&n==this.button};var Ua,Ga,Ya={toString:function(){return"CodeMirror.Init"}},Xa={},Ja={};Uo.defaults=Xa,Uo.optionHandlers=Ja;var Za=[];Uo.defineInitHook=function(t){return Za.push(t)};var Qa=null,$a=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fs,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$a.prototype.init=function(t){function e(t){if(!_t(r,t)){if(r.somethingSelected())Xo({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=$o(r);Xo({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation(function(){r.setSelections(e.ranges,0,Bs),r.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var n=Qa.text.join("\n");if(t.clipboardData.setData("Text",n),t.clipboardData.getData("Text")==n)return void t.preventDefault()}var s=es(),a=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),a.value=Qa.text.join("\n");var l=document.activeElement;js(a),setTimeout(function(){r.display.lineSpace.removeChild(s),l.focus(),l==o&&i.showPrimarySelection()},50)}}var n=this,i=this,r=i.cm,o=i.div=t.lineDiv;ts(o,r.options.spellcheck),ta(o,"paste",function(t){_t(r,t)||Zo(t,r)||bs<=11&&setTimeout(di(r,function(){return n.updateFromDOM()}),20)}),ta(o,"compositionstart",function(t){n.composing={data:t.data,done:!1}}),ta(o,"compositionupdate",function(t){n.composing||(n.composing={data:t.data,done:!1})}),ta(o,"compositionend",function(t){n.composing&&(t.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ta(o,"touchstart",function(){return i.forceCompositionEnd()}),ta(o,"input",function(){n.composing||n.readFromDOMSoon()}),ta(o,"copy",e),ta(o,"cut",e)},$a.prototype.prepareSelection=function(){var t=Ln(this.cm,!1);return t.focus=this.cm.state.focused,t},$a.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},$a.prototype.showPrimarySelection=function(){var t=window.getSelection(),e=this.cm,n=e.doc.sel.primary(),i=n.from(),r=n.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||r.line<e.display.viewFrom)return void t.removeAllRanges();var o=ls(e,t.anchorNode,t.anchorOffset),s=ls(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=P(H(o,s),i)||0!=P(W(o,s),r)){var a=e.display.view,l=i.line>=e.display.viewFrom&&rs(e,i)||{node:a[0].measure.map[2],offset:0},u=r.line<e.display.viewTo&&rs(e,r);if(!u){var c=a[a.length-1].measure,h=c.maps?c.maps[c.maps.length-1]:c.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(!l||!u)return void t.removeAllRanges();var p,f=t.rangeCount&&t.getRangeAt(0);try{p=Ns(l.node,l.offset,u.offset,u.node)}catch(t){}p&&(!fs&&e.state.focused?(t.collapse(l.node,l.offset),p.collapsed||(t.removeAllRanges(),t.addRange(p))):(t.removeAllRanges(),t.addRange(p)),f&&null==t.anchorNode?t.addRange(f):fs&&this.startGracePeriod()),this.rememberSelection()}},$a.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},$a.prototype.showMultipleSelections=function(t){n(this.cm.display.cursorDiv,t.cursors),n(this.cm.display.selectionDiv,t.selection)},$a.prototype.rememberSelection=function(){var t=window.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},$a.prototype.selectionInEditor=function(){var t=window.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return o(this.div,e)},$a.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}var e=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,t)},$a.prototype.selectionChanged=function(){var t=window.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=window.getSelection(),e=this.cm;if(_s&&xs&&this.cm.options.gutters.length&&os(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ls(e,t.anchorNode,t.anchorOffset),i=ls(e,t.focusNode,t.focusOffset);n&&i&&fi(e,function(){wr(e.doc,Hi(n,i),Bs),(n.bad||i.bad)&&(e.curOp.selectionChanged=!0)})}}},$a.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,e=t.display,n=t.doc.sel.primary(),i=n.from(),r=n.to();if(0==i.ch&&i.line>t.firstLine()&&(i=D(i.line-1,_(t.doc,i.line-1).length)),r.ch==_(t.doc,r.line).text.length&&r.line<t.lastLine()&&(r=D(r.line+1,0)),i.line<e.viewFrom||r.line>e.viewTo-1)return!1;var o,s,a;i.line==e.viewFrom||0==(o=Tn(t,i.line))?(s=A(e.view[0].line),a=e.view[0].node):(s=A(e.view[o].line),a=e.view[o-1].node.nextSibling);var l,u,c=Tn(t,r.line);if(c==e.view.length-1?(l=e.viewTo-1,u=e.lineDiv.lastChild):(l=A(e.view[c+1].line)-1,u=e.view[c+1].node.previousSibling),!a)return!1;for(var h=t.doc.splitLines(as(t,a,u,s,l)),p=L(t.doc,D(s,0),D(l,_(t.doc,l).text.length));h.length>1&&p.length>1;)if(m(h)==m(p))h.pop(),p.pop(),l--;else{if(h[0]!=p[0])break;h.shift(),p.shift(),s++}for(var f=0,d=0,v=h[0],g=p[0],b=Math.min(v.length,g.length);f<b&&v.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=m(h),w=m(p),x=Math.min(y.length-(1==h.length?f:0),w.length-(1==p.length?f:0));d<x&&y.charCodeAt(y.length-d-1)==w.charCodeAt(w.length-d-1);)++d;if(1==h.length&&1==p.length&&s==i.line)for(;f&&f>i.ch&&y.charCodeAt(y.length-d-1)==w.charCodeAt(w.length-d-1);)f--,d++;h[h.length-1]=y.slice(0,y.length-d).replace(/^\u200b+/,""),h[0]=h[0].slice(f).replace(/\u200b+$/,"");var S=D(s,f),C=D(l,p.length?m(p).length-d:0);return h.length>1||h[0]||P(S,C)?(Pr(t.doc,h,S,C,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},$a.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||fi(this.cm,function(){return gi(t.cm)})},$a.prototype.setUneditable=function(t){t.contentEditable="false"},$a.prototype.onKeyPress=function(t){0!=t.charCode&&(t.preventDefault(),this.cm.isReadOnly()||di(this.cm,Jo)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},$a.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var tl=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Fs,this.hasSelection=!1,this.composing=null};tl.prototype.init=function(t){function e(t){if(!_t(r,t)){if(r.somethingSelected())Xo({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=$o(r);Xo({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,Bs):(i.prevInput="",s.value=e.text.join("\n"),js(s))}"cut"==t.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm,o=this.wrapper=es(),s=this.textarea=o.firstChild;t.wrapper.insertBefore(o,t.wrapper.firstChild),Ts&&(s.style.width="0px"),ta(s,"input",function(){gs&&bs>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),ta(s,"paste",function(t){_t(r,t)||Zo(t,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),ta(s,"cut",e),ta(s,"copy",e),ta(t.scroller,"paste",function(e){De(t,e)||_t(r,e)||(r.state.pasteIncoming=!0,i.focus())}),ta(t.lineSpace,"selectstart",function(e){De(t,e)||At(e)}),ta(s,"compositionstart",function(){var t=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ta(s,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},tl.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=Ln(t);if(t.options.moveInputWithCursor){var r=un(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+s.left-o.left))}return i},tl.prototype.showSelection=function(t){var e=this.cm,i=e.display;n(i.cursorDiv,t.cursors),n(i.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},tl.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&js(this.textarea),gs&&bs>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",gs&&bs>=9&&(this.hasSelection=null))}},tl.prototype.getField=function(){return this.textarea},tl.prototype.supportsTouch=function(){return!1},tl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Ls||s()!=this.textarea))try{this.textarea.focus()}catch(t){}},tl.prototype.blur=function(){this.textarea.blur()},tl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tl.prototype.receivedFocus=function(){this.slowPoll()},tl.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},tl.prototype.fastPoll=function(){function t(){n.poll()||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,t))}var e=!1,n=this;n.pollingFast=!0,n.polling.set(20,t)},tl.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||ia(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(gs&&bs>=9&&this.hasSelection===r||Is&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,a=Math.min(i.length,r.length);s<a&&i.charCodeAt(s)==r.charCodeAt(s);)++s;return fi(e,function(){Jo(e,r.slice(s),i.length-s,null,t.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tl.prototype.onKeyPress=function(){gs&&bs>=9&&(this.hasSelection=null),this.fastPoll()},tl.prototype.onContextMenu=function(t){function e(){if(null!=s.selectionStart){var t=r.somethingSelected(),e="​"+(t?s.value:"");s.value="⇚",s.value=e,i.prevInput=t?"":"​",s.selectionStart=1,s.selectionEnd=e.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=c,s.style.cssText=u,gs&&bs<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=s.selectionStart){(!gs||gs&&bs<9)&&e();var t=0,n=function(){o.selForContextMenu==r.doc.sel&&0==s.selectionStart&&s.selectionEnd>0&&"​"==i.prevInput?di(r,Lr)(r):t++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,s=i.textarea,a=kn(r,t),l=o.scroller.scrollTop;if(a&&!Ss){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(a)&&di(r,wr)(r.doc,Hi(a),Bs);var u=s.style.cssText,c=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var h=i.wrapper.getBoundingClientRect();s.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(gs?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var p;if(ys&&(p=window.scrollY),o.input.focus(),ys&&window.scrollTo(null,p),o.input.reset(),r.somethingSelected()||(s.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),gs&&bs>=9&&e(),Ds){Rt(t);var f=function(){kt(window,"mouseup",f),setTimeout(n,20)};ta(window,"mouseup",f)}else setTimeout(n,50)}},tl.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},tl.prototype.setUneditable=function(){},tl.prototype.needsContentAttribute=!1,function(t){function e(e,i,r,o){t.defaults[e]=i,r&&(n[e]=o?function(t,e,n){n!=Ya&&r(t,e,n)}:r)}var n=t.optionHandlers;t.defineOption=e,t.Init=Ya,e("value","",function(t,e){return t.setValue(e)},!0),e("mode",null,function(t,e){t.doc.modeOption=e,Ui(t)},!0),e("indentUnit",2,Ui,!0),e("indentWithTabs",!1),e("smartIndent",!0),e("tabSize",4,function(t){Gi(t),en(t),gi(t)},!0),e("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter(function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(D(i,o))}i++});for(var r=n.length-1;r>=0;r--)Pr(t.doc,e,n[r],D(n[r].line,n[r].ch+e.length))}}),e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ya&&t.refresh()}),e("specialCharPlaceholder",ue,function(t){return t.refresh()},!0),e("electricChars",!0),e("inputStyle",Ls?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),e("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),e("rtlMoveVisually",!As),e("wholeLineUpdateBefore",!0),e("theme","default",function(t){zo(t),Bo(t)},!0),e("keyMap","default",function(t,e,n){var i=co(e),r=n!=Ya&&co(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)}),e("extraKeys",null),e("configureMouse",null),e("lineWrapping",!1,Ko,!0),e("gutters",[],function(t){Di(t.options),Bo(t)},!0),e("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?Sn(t.display)+"px":"0",t.refresh()},!0),e("coverGutterNextToScrollbar",!1,function(t){return ni(t)},!0),e("scrollbarStyle","native",function(t){ri(t),ni(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),e("lineNumbers",!1,function(t){Di(t.options),Bo(t)},!0),e("firstLineNumber",1,Bo,!0),e("lineNumberFormatter",function(t){return t},Bo,!0),e("showCursorWhenSelecting",!1,_n,!0),e("resetSelectionOnContextMenu",!0),e("lineWiseCopyCut",!0),e("pasteLinesPerSelection",!0),e("readOnly",!1,function(t,e){"nocursor"==e&&(Pn(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),e("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),e("dragDrop",!0,qo),e("allowDropFileTypes",null),e("cursorBlinkRate",530),e("cursorScrollMargin",0),e("cursorHeight",1,_n,!0),e("singleCursorHeightPerLine",!0,_n,!0),e("workTime",100),e("workDelay",100),e("flattenSpans",!0,Gi,!0),e("addModeClass",!1,Gi,!0),e("pollInterval",100),e("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),e("historyEventDelay",1250),e("viewportMargin",10,function(t){return t.refresh()},!0),e("maxHighlightLength",1e4,Gi,!0),e("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),e("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),e("autofocus",null),e("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0)}(Uo),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&di(this,e[t])(this,n,r),Tt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](co(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:mi(function(e,n){var i=e.token?e:t.getMode(this.options,e);if(i.startState)throw new Error("Overlays may not be stateful.");g(this.state.overlays,{mode:i,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},function(t){return t.priority}),this.state.modeGen++,gi(this)}),removeOverlay:mi(function(t){for(var e=this,n=this.state.overlays,i=0;i<n.length;++i){var r=n[i].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return n.splice(i,1),e.state.modeGen++,void gi(e)}}),indentLine:mi(function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),N(this.doc,t)&&Yo(this,t,e,n)}),indentSelection:mi(function(t){for(var e=this,n=this.doc.sel.ranges,i=-1,r=0;r<n.length;r++){var o=n[r];if(o.empty())o.head.line>i&&(Yo(e,o.head.line,t,!0),i=o.head.line,r==e.doc.sel.primIndex&&Gn(e));else{var s=o.from(),a=o.to(),l=Math.max(i,s.line);i=Math.min(e.lastLine(),a.line-(a.ch?0:1))+1;for(var u=l;u<i;++u)Yo(e,u,t);var c=e.doc.sel.ranges;0==s.ch&&n.length==c.length&&c[r].from().ch>0&&vr(e.doc,r,new La(s,c[r].to()),Bs)}}}),getTokenAt:function(t,e){return te(this,t,e)},getLineTokens:function(t,e){return te(this,D(t),e,!0)},getTokenTypeAt:function(t){t=z(this.doc,t);var e,n=Xt(this,_(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=i+r>>1;if((s?n[2*s-1]:0)>=o)r=s;else{if(!(n[2*s+1]<o)){e=n[2*s+2];break}i=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var i=this,r=[];if(!n.hasOwnProperty(e))return r;var o=n[e],s=this.getModeAt(t);if("string"==typeof s[e])o[s[e]]&&r.push(o[s[e]]);else if(s[e])for(var a=0;a<s[e].length;a++){var l=o[s[e][a]];l&&r.push(l)}else s.helperType&&o[s.helperType]?r.push(o[s.helperType]):o[s.name]&&r.push(o[s.name]);for(var u=0;u<o._global.length;u++){var c=o._global[u];c.pred(s,i)&&-1==p(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(t,e){var n=this.doc;return t=V(n,null==t?n.first+n.size-1:t),Jt(this,t+1,e).state},cursorCoords:function(t,e){var n,i=this.doc.sel.primary();return n=null==t?i.head:"object"==typeof t?z(this.doc,t):t?i.from():i.to(),un(this,n,e||"page")},charCoords:function(t,e){return ln(this,z(this.doc,t),e||"page")},coordsChar:function(t,e){return t=an(this,t,e||"page"),pn(this,t.left,t.top)},lineAtHeight:function(t,e){return t=an(this,{top:t,left:0},e||"page").top,E(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var i,r=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,r=!0),i=_(this.doc,t)}else i=t;return sn(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-bt(i):0)},defaultTextHeight:function(){return yn(this.display)},defaultCharWidth:function(){return wn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o=this.display;t=un(this,z(this.doc,t));var s=t.bottom,a=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==i)s=t.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?s=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(s=t.bottom),a+e.offsetWidth>u&&(a=u-e.offsetWidth)}e.style.top=s+"px",e.style.left=e.style.right="","right"==r?(a=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?a=0:"middle"==r&&(a=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=a+"px"),n&&qn(this,{left:a,top:s,right:a+e.offsetWidth,bottom:s+e.offsetHeight})},triggerOnKeyDown:mi(ko),triggerOnKeyPress:mi(Lo),triggerOnKeyUp:_o,triggerOnMouseDown:mi(Mo),execCommand:function(t){if(za.hasOwnProperty(t))return za[t].call(null,this)},triggerElectric:mi(function(t){Qo(this,t)}),findPosH:function(t,e,n,i){var r=this,o=1;e<0&&(o=-1,e=-e);for(var s=z(this.doc,t),a=0;a<e&&(s=ns(r.doc,s,o,n,i),!s.hitSide);++a);return s},moveH:mi(function(t,e){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?ns(n.doc,i.head,t,e,n.options.rtlMoveVisually):t<0?i.from():i.to()},Ks)}),deleteH:mi(function(t,e){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):ho(this,function(n){var r=ns(i,n.head,t,e,!1);return t<0?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(t,e,n,i){var r=this,o=1,s=i;e<0&&(o=-1,e=-e);for(var a=z(this.doc,t),l=0;l<e;++l){var u=un(r,a,"div");if(null==s?s=u.left:u.left=s,a=is(r,u,o,n),a.hitSide)break}return a},moveV:mi(function(t,e){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(s){if(o)return t<0?s.from():s.to();var a=un(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),r.push(a.left);var l=is(n,a,t,e);return"page"==e&&s==i.sel.primary()&&Un(n,ln(n,l,"div").top-a.top),l},Ks),r.length)for(var s=0;s<i.sel.ranges.length;s++)i.sel.ranges[s].goalColumn=r[s]}),findWordAt:function(t){var e=this.doc,n=_(e,t.line).text,i=t.ch,r=t.ch;if(n){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=n.length||!i?++r:--i;for(var s=n.charAt(i),a=x(s,o)?function(t){return x(t,o)}:/\s/.test(s)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!x(t)};i>0&&a(n.charAt(i-1));)--i;for(;r<n.length&&a(n.charAt(r));)++r}return new La(D(t.line,i),D(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?a(this.display.cursorDiv,"CodeMirror-overwrite"):Ps(this.display.cursorDiv,"CodeMirror-overwrite"),Tt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==s()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:mi(function(t,e){Yn(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-We(this)-this.display.barHeight,width:t.scrollWidth-We(this)-this.display.barWidth,clientHeight:Ve(this),clientWidth:He(this)}},scrollIntoView:mi(function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:D(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?Xn(this,t):Zn(this,t.from,t.to,t.margin)}),setSize:mi(function(t,e){var n=this,i=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=i(t)),null!=e&&(this.display.wrapper.style.height=i(e)),this.options.lineWrapping&&tn(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){bi(n,r,"widget");break}++r}),this.curOp.forceUpdate=!0,Tt(this,"refresh",this)}),operation:function(t){return fi(this,t)},startOperation:function(){return oi(this)},endOperation:function(){return si(this)},refresh:mi(function(){var t=this.display.cachedTextHeight;gi(this),this.curOp.forceUpdate=!0,en(this),Yn(this,this.doc.scrollLeft,this.doc.scrollTop),Ei(this),(null==t||Math.abs(t-yn(this.display))>.5)&&On(this),Tt(this,"refresh",this)}),swapDoc:mi(function(t){var e=this.doc;return e.cm=null,Zi(this,t),en(this),this.display.input.reset(),Yn(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,we(this,"swapDoc",this,e),e}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Mt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}(Uo);var el="iter insert remove copy getEditor constructor".split(" ");for(var nl in Ra.prototype)Ra.prototype.hasOwnProperty(nl)&&p(el,nl)<0&&(Uo.prototype[nl]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ra.prototype[nl]));return Mt(Ra),Uo.inputStyles={textarea:tl,contenteditable:$a},Uo.defineMode=function(t){Uo.defaults.mode||"null"==t||(Uo.defaults.mode=t),Ht.apply(this,arguments)},Uo.defineMIME=Vt,Uo.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Uo.defineMIME("text/plain","null"),Uo.defineExtension=function(t,e){Uo.prototype[t]=e},Uo.defineDocExtension=function(t,e){Ra.prototype[t]=e},Uo.fromTextArea=cs,function(t){t.off=kt,t.on=ta,t.wheelEventPixels=ji,t.Doc=Ra,t.splitLines=na,t.countColumn=h,t.findColumn=f,t.isWordChar=w,t.Pass=zs,t.signal=Tt,t.Line=fa,t.changeEnd=Vi,t.scrollbarModel=Sa,t.Pos=D,t.cmpPos=P,t.modes=sa,t.mimeModes=aa,t.resolveMode=zt,t.getMode=Bt,t.modeExtensions=la,t.extendMode=qt,t.copyState=Kt,t.startState=Gt,t.innerMode=Ut,t.commands=za,t.keyMap=Va,t.keyName=uo,t.isModifierKey=ao,t.lookupKey=so,t.normalizeKeyMap=oo,t.StringStream=ua,t.SharedTextMarker=Ea,t.TextMarker=Aa,t.LineWidget=Ia,t.e_preventDefault=At,t.e_stopPropagation=Et,t.e_stop=Rt,t.addClass=a,t.contains=o,t.rmClass=Ps,t.keyNames=ja}(Uo),Uo.version="5.31.0",Uo})},okgN:function(t,e,n){"use strict";var i=n("bKpL"),r=n("pOTC");i.Observable.if=r._if},olOS:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=r.async),o.timestamp(t)(this)}var r=n("IhB/"),o=n("xK8X");e.timestamp=i},olrH:function(t,e,n){"use strict";function i(t,e){return r.concatMapTo(t,e)(this)}var r=n("0mJJ");e.concatMapTo=i},p2gU:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n("nhnq");e.BootstrapModalModule=i.BootstrapModalModule,e.DialogComponent=i.DialogComponent,e.DialogService=i.DialogService},p2y2:function(t,e,n){"use strict";function i(t,e){for(var n=0,i=e.length;n<i;n++)for(var r=e[n],o=Object.getOwnPropertyNames(r.prototype),s=0,a=o.length;s<a;s++){var l=o[s];t.prototype[l]=r.prototype[l]}}e.applyMixins=i},p3bn:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Obns");i.Observable.prototype.debounce=r.debounce},p3u8:function(t,e,n){"use strict";var i=n("bKpL"),r=n("BbOI");i.Observable.bindNodeCallback=r.bindNodeCallback},p4do:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var i=t;return e.lift(new a(i,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.withLatestFrom=i;var a=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.observables,this.project))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.observables=n,this.project=i,this.toRespond=[];var r=n.length;this.values=new Array(r);for(var o=0;o<r;o++)this.toRespond.push(o);for(var o=0;o<r;o++){var a=n[o];this.add(s.subscribeToResult(this,a,a,o))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.OuterSubscriber)},pHO4:function(t,e,n){"use strict";var i=n("bKpL"),r=n("0nG5");i.Observable.prototype.min=r.min},pOTC:function(t,e,n){"use strict";var i=n("S08L");e._if=i.IfObservable.create},pd7P:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(i||(i={}))},pguX:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new s)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.dematerialize=i;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return r(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(o.Subscriber)},pkLr:function(t,e,n){"use strict";var i=n("bKpL"),r=n("PwNK");i.Observable.prototype.audit=r.audit},ptvE:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ki6Z");i.Observable.prototype.exhaust=r.exhaust},"q+5A":function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=s.async),t.call(this),this.period=e,this.scheduler=n,(!r.isNumeric(e)||e<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return i(e,t),e.create=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=s.async),new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.subscriber,i=t.period;n.next(e),n.closed||(t.index+=1,this.schedule(t,i))},e.prototype._subscribe=function(t){var n=this.period,i=this.scheduler;t.add(i.schedule(e.dispatch,n,{index:0,subscriber:t,period:n}))},e}(o.Observable);e.IntervalObservable=a},q07K:function(t,e,n){"use strict";var i=n("bKpL"),r=n("8Jh8");i.Observable.prototype.takeUntil=r.takeUntil},qHrI:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=0),function(n){return n.lift(new o(t,e))}}var r=n("P+lj");e.subscribeOn=i;var o=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new r.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},qIlB:function(t,e,n){"use strict";var i=n("zijX"),r=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function t(e){delete t.instance.tasksByHandle[e]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=function t(){var e=t,n=e.handler,i=e.args;"function"==typeof n?n.apply(void 0,i):new Function(""+n)()};return i.handler=t,i.args=e,i},t.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},t.prototype.createProcessNextTickSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.process.nextTick(e.partiallyApplied(e.runIfPresent,n)),n};return t.instance=this,t},t.prototype.createPostMessageSetImmediate=function(){var t=this.root,e="setImmediate$"+t.Math.random()+"$",n=function n(i){var r=n.instance;i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&r.runIfPresent(+i.data.slice(e.length))};n.instance=this,t.addEventListener("message",n,!1);var i=function t(){var e=t,n=e.messagePrefix,i=e.instance,r=i.addFromSetImmediateArguments(arguments);return i.root.postMessage(n+r,"*"),r};return i.instance=this,i.messagePrefix=e,i},t.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var e=this.tasksByHandle[t];if(e){this.currentlyRunningATask=!0;try{e()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},t.prototype.createMessageChannelSetImmediate=function(){var t=this,e=new this.root.MessageChannel;e.port1.onmessage=function(e){var n=e.data;t.runIfPresent(n)};var n=function t(){var e=t,n=e.channel,i=e.instance,r=i.addFromSetImmediateArguments(arguments);return n.port2.postMessage(r),r};return n.channel=e,n.instance=this,n},t.prototype.createReadyStateChangeSetImmediate=function(){var t=function t(){var e=t.instance,n=e.root,i=n.document,r=i.documentElement,o=e.addFromSetImmediateArguments(arguments),s=i.createElement("script");return s.onreadystatechange=function(){e.runIfPresent(o),s.onreadystatechange=null,r.removeChild(s),s=null},r.appendChild(s),o};return t.instance=this,t},t.prototype.createSetTimeoutSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.setTimeout(e.partiallyApplied(e.runIfPresent,n),0),n};return t.instance=this,t},t}();e.ImmediateDefinition=r,e.Immediate=new r(i.root)},qNQE:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Txt5");i.Observable.prototype.auditTime=r.auditTime},qanz:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.retryWhen=i;var c=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.notifier,this.source))},t}(),h=function(t){function e(e,n,i){t.call(this,e),this.notifier=n,this.source=i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{if(n=new o.Subject,(i=s.tryCatch(this.notifier)(n))===a.errorObject)return t.prototype.error.call(this,a.errorObject.e);r=u.subscribeToResult(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,n=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,i,r){var o=this,s=o.errors,a=o.retries,l=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=l,this.source.subscribe(this)},e}(l.OuterSubscriber)},qbcG:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"a",function(){return r});var r=function(){function t(){this.collapsed=!1}return t}();r.decorators=[{type:i.Directive,args:[{selector:"[ngbCollapse]",exportAs:"ngbCollapse",host:{"[class.collapse]":"true","[class.show]":"!collapsed"}}]}],r.ctorParameters=function(){return[]},r.propDecorators={collapsed:[{type:i.Input,args:["ngbCollapse"]}]}},qbt9:function(t,e,n){"use strict";function i(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(i,n,e,new l.TimeoutError))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("T14+"),l=n("0L2s");e.timeout=i;var u=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=n,this.errorInstance=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),c=function(t){function e(e,n,i,r,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=i,this.scheduler=r,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return r(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(a.Subscriber)},qfkx:function(t,e,n){"use strict";function i(){return function(t){return o.multicast(new r.AsyncSubject)(t)}}var r=n("l6Wf"),o=n("P02W");e.publishLast=i},"qm+V":function(t,e,n){"use strict";var i=n("bKpL"),r=n("CE6k");i.Observable.prototype.share=r.share},"r+/7":function(t,e,n){"use strict";var i=n("bKpL"),r=n("THYR");i.Observable.prototype.every=r.every},r2Rd:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("Io40"),o=n("IqVs"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return i(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(r.AsyncAction);e.AnimationFrameAction=s},r6G9:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&a.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new c(t))}}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return 1===t.length&&a.isArray(t[0])&&(t=t[0]),n=t.shift(),new s.FromObservable(n,null).lift(new c(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("OWbQ"),a=n("NSJx"),l=n("yW9Z"),u=n("ktfo");e.onErrorResumeNext=i,e.onErrorResumeNextStatic=r;var c=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.nextSources))},t}(),h=function(t){function e(e,n){t.call(this,e),this.destination=e,this.nextSources=n}return o(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(u.subscribeToResult(this,t)):this.destination.complete()},e}(l.OuterSubscriber)},rAcl:function(t,e,n){"use strict";var i=n("Qv0T");e.pairs=i.PairsObservable.create},rDIt:function(t,e,n){"use strict";function i(t,e,n){return r.tap(t,e,n)(this)}var r=n("4HZJ");e._do=i},raIJ:function(t,e,n){"use strict";var i=n("/oeL"),r=n("bm2B"),o=n("8Ben"),s=(n.n(o),n("rDIt")),a=(n.n(s),n("zGUx")),l=(n.n(a),n("75Hr")),u=n("c0Tg"),c=n("uJci"),h=n("wM1e"),p=n("0H8/");n.d(e,"a",function(){return v});var f;!function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowDown=40]="ArrowDown"}(f||(f={}));var d={provide:r.NG_VALUE_ACCESSOR,useExisting:n.i(i.forwardRef)(function(){return v}),multi:!0},m=0,v=function(){function t(t,e,r,o,s,h,p){var f=this;this._elementRef=t,this._viewContainerRef=e,this._renderer=r,this._injector=o,this.selectItem=new i.EventEmitter,this.popupId="ngb-typeahead-"+m++,this._onTouched=function(){},this._onChange=function(t){},this.editable=h.editable,this.focusFirst=h.focusFirst,this.showHint=h.showHint,this._valueChanges=n.i(a.fromEvent)(t.nativeElement,"input",function(t){return t.target.value}),this._popupService=new c.a(u.a,o,e,r,s),this._zoneSubscription=p.onStable.subscribe(function(){f.isPopupOpen()&&n.i(l.a)(f._elementRef.nativeElement,f._windowRef.location.nativeElement,"bottom-left")})}return t.prototype.ngOnInit=function(){var t=this,e=s._do.call(this._valueChanges,function(e){t._userInput=e,t.editable&&t._onChange(e)}),n=o.letProto.call(e,this.ngbTypeahead),i=s._do.call(n,function(){t.editable||t._onChange(void 0)});this._subscription=this._subscribeToUserInput(i)},t.prototype.ngOnDestroy=function(){this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.writeValue=function(t){this._writeInputValue(this._formatItemForInput(t))},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype.dismissPopup=function(){this.isPopupOpen()&&(this._closePopup(),this._writeInputValue(this._userInput))},t.prototype.isPopupOpen=function(){return null!=this._windowRef},t.prototype.handleBlur=function(){this._onTouched()},t.prototype.handleKeyDown=function(t){if(this.isPopupOpen()&&f[n.i(h.d)(t.which)])switch(t.which){case f.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case f.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case f.Enter:case f.Tab:var e=this._windowRef.instance.getActive();n.i(h.h)(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup();break;case f.Escape:t.preventDefault(),this.dismissPopup()}},t.prototype._openPopup=function(){var t=this;this.isPopupOpen()||(this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(function(e){return t._selectResultClosePopup(e)}),this._windowRef.instance.activeChangeEvent.subscribe(function(e){return t.activeDescendant=e}))},t.prototype._closePopup=function(){this._popupService.close(),this._windowRef=null,this.activeDescendant=void 0},t.prototype._selectResult=function(t){var e=!1;this.selectItem.emit({item:t,preventDefault:function(){e=!0}}),e||(this.writeValue(t),this._onChange(t))},t.prototype._selectResultClosePopup=function(t){this._selectResult(t),this._closePopup()},t.prototype._showHint=function(){if(this.showHint){var t=this._userInput.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._userInput.length).toLowerCase()?(this._writeInputValue(this._userInput+e.substr(this._userInput.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._userInput.length,e.length])):this.writeValue(this._windowRef.instance.getActive())}},t.prototype._formatItemForInput=function(t){return t&&this.inputFormatter?this.inputFormatter(t):n.i(h.d)(t)},t.prototype._writeInputValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},t.prototype._subscribeToUserInput=function(t){var e=this;return t.subscribe(function(t){t&&0!==t.length?(e._openPopup(),e._windowRef.instance.focusFirst=e.focusFirst,e._windowRef.instance.results=t,e._windowRef.instance.term=e._elementRef.nativeElement.value,e.resultFormatter&&(e._windowRef.instance.formatter=e.resultFormatter),e.resultTemplate&&(e._windowRef.instance.resultTemplate=e.resultTemplate),e._showHint(),e._windowRef.changeDetectorRef.detectChanges()):e._closePopup()})},t.prototype._unsubscribeFromUserInput=function(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null},t}();v.decorators=[{type:i.Directive,args:[{selector:"input[ngbTypeahead]",host:{"(blur)":"handleBlur()","[class.open]":"isPopupOpen()","(document:click)":"dismissPopup()","(keydown)":"handleKeyDown($event)",autocomplete:"off",autocapitalize:"off",autocorrect:"off",role:"combobox","aria-multiline":"false","[attr.aria-autocomplete]":'showHint ? "both" : "list"',"[attr.aria-activedescendant]":"activeDescendant","[attr.aria-owns]":"isPopupOpen() ? popupId : null","[attr.aria-expanded]":"isPopupOpen()"},providers:[d]}]}],v.ctorParameters=function(){return[{type:i.ElementRef},{type:i.ViewContainerRef},{type:i.Renderer2},{type:i.Injector},{type:i.ComponentFactoryResolver},{type:p.a},{type:i.NgZone}]},v.propDecorators={editable:[{type:i.Input}],focusFirst:[{type:i.Input}],inputFormatter:[{type:i.Input}],ngbTypeahead:[{type:i.Input}],resultFormatter:[{type:i.Input}],resultTemplate:[{type:i.Input}],showHint:[{type:i.Input}],selectItem:[{type:i.Output}]}},rhfi:function(t,e,n){"use strict";function i(){return r.switchMap(o.identity)}var r=n("TupL"),o=n("Yuqz");e.switchAll=i},rp90:function(t,e,n){"use strict";var i=n("bKpL"),r=n("IOeT");i.Observable.prototype.combineAll=r.combineAll},ruZE:function(t,e,n){"use strict";var i=n("r2Rd"),r=n("7Obz");e.animationFrame=new r.AnimationFrameScheduler(i.AnimationFrameAction)},s6AU:function(t,e,n){"use strict";function i(t){return r.takeWhile(t)(this)}var r=n("5x23");e.takeWhile=i},sLwK:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=n("MicL"),l=n("6jp4"),u=function(t){function e(e,n,i){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,r.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):a.isScheduler(n)&&(i=n),a.isScheduler(i)||(i=s.async),this.scheduler=i,this.dueTime=l.isDate(e)?+e-this.scheduler.now():e}return i(e,t),e.create=function(t,n,i){return void 0===t&&(t=0),new e(t,n,i)},e.dispatch=function(t){var e=t.index,n=t.period,i=t.subscriber,r=this;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,r.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,i=n.period,r=n.dueTime;return n.scheduler.schedule(e.dispatch,r,{index:0,period:i,subscriber:t})},e}(o.Observable);e.TimerObservable=u},sSYo:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Fi2k");i.Observable.prototype.windowToggle=r.windowToggle},saEi:function(t,e,n){"use strict";function i(t){return r.publishBehavior(t)(this)}var r=n("ASfG");e.publishBehavior=i},sdK6:function(t,e,n){"use strict";function i(t,e,n,i){return new u.DialogService(t,e,n,i)}var r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n("/oeL"),s=n("qbdv"),a=n("3WPo"),l=n("taw3"),u=n("V672");e.dialogServiceFactory=i;var c=h=function(){function t(){}return t.forRoot=function(t){return{ngModule:h,providers:[{provide:u.DialogServiceConfig,useValue:t},{provide:u.DialogService,useFactory:i,deps:[o.ComponentFactoryResolver,o.ApplicationRef,o.Injector,u.DialogServiceConfig]}]}},t}();c=h=r([o.NgModule({declarations:[a.DialogHolderComponent,l.DialogWrapperComponent],providers:[u.DialogService],imports:[s.CommonModule],entryComponents:[a.DialogHolderComponent,l.DialogWrapperComponent]})],c),e.BootstrapModalModule=c;var h},slZm:function(t,e,n){"use strict";var i=n("fcnB");e.empty=i.EmptyObservable.create},srZQ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("RvTY");i.Observable.prototype.flatMapTo=r.mergeMapTo,i.Observable.prototype.mergeMapTo=r.mergeMapTo},svCP:function(t,e,n){"use strict";var i=n("bKpL"),r=n("tl8U");i.Observable.prototype.retryWhen=r.retryWhen},t8nJ:function(t,e,n){"use strict";var i=n("bKpL"),r=n("8pdA");i.Observable.prototype.bufferTime=r.bufferTime},t9cH:function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new u(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("ktfo"),l=n("yW9Z");e.mergeScan=i;var u=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=u;var c=function(t){function e(e,n,i,r){t.call(this,e),this.accumulator=n,this.acc=i,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=o.tryCatch(this.accumulator)(this.acc,t),i=this.destination;n===s.errorObject?i.error(s.errorObject.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(a.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(l.OuterSubscriber);e.MergeScanSubscriber=c},tAjV:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new u(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),l=n("ktfo");e.audit=i;var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=o.tryCatch(this.durationSelector)(t);if(e===s.errorObject)this.destination.error(s.errorObject.e);else{var n=l.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},tBQh:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.delay(t,e)(this)}var r=n("IhB/"),o=n("EUVd");e.delay=i},taw3:function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var o=n("/oeL"),s=n("V672"),a=function(){function t(t,e){this.resolver=t,this.dialogService=e}return t.prototype.addComponent=function(t){var e=this.resolver.resolveComponentFactory(t),n=o.ReflectiveInjector.fromResolvedProviders([],this.element.injector),i=e.create(n);return this.element.insert(i.hostView),this.content=i.instance,this.content.wrapper=this,this.content},t.prototype.closeByClickOutside=function(){var t=this,e=this.container.nativeElement;e.querySelector(".modal-content").addEventListener("click",function(t){t.stopPropagation()}),e.addEventListener("click",function(){t.dialogService.removeDialog(t.content)},!1)},t}();i([o.ViewChild("element",{read:o.ViewContainerRef}),r("design:type",o.ViewContainerRef)],a.prototype,"element",void 0),i([o.ViewChild("container"),r("design:type",Object)],a.prototype,"container",void 0),a=i([o.Component({selector:"dialog-wrapper",template:'\n    <div #container class="modal fade" style="display:block !important;" role="dialog">\n        <template #element></template>\n    </div>\n'}),r("design:paramtypes",[o.ComponentFactoryResolver,s.DialogService])],a),e.DialogWrapperComponent=a},tcot:function(t,e,n){"use strict";var i=n("bKpL"),r=n("F/7+");i.Observable.zip=r.zip},tl8U:function(t,e,n){"use strict";function i(t){return r.retryWhen(t)(this)}var r=n("qanz");e.retryWhen=i},tpuU:function(t,e,n){"use strict";function i(t){return r.zipAll(t)(this)}var r=n("IkMW");e.zipAll=i},uGEk:function(t,e,n){"use strict";var i=n("bKpL"),r=n("2UX5");i.Observable.prototype.timeout=r.timeout},uJci:function(t,e,n){"use strict";var i=n("/oeL");n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o});var r=function(){function t(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}return t}(),o=function(){function t(t,e,n,i,r){this._injector=e,this._viewContainerRef=n,this._renderer=i,this._windowFactory=r.resolveComponentFactory(t)}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._windowFactory,0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null))},t.prototype._getContentRef=function(t,e){if(t){if(t instanceof i.TemplateRef){var n=this._viewContainerRef.createEmbeddedView(t,e);return new r([n.rootNodes],n)}return new r([[this._renderer.createText(""+t)]])}return new r([])},t}()},uYJe:function(t,e,n){"use strict";function i(t){return r.finalize(t)(this)}var r=n("FTnw");e._finally=i},ub06:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ViUi");i.Observable.prototype.merge=r.merge},ufkV:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵand"](0,null,null,0))],null,null)}function r(t){return s["ɵvid"](0,[s["ɵqud"](402653184,1,{element:0}),(t()(),s["ɵand"](16777216,[[1,3],["element",2]],null,0,null,i))],null,null)}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"dialog-holder",[],null,null,null,r,u)),s["ɵdid"](1,49152,null,0,a.DialogHolderComponent,[s.ComponentFactoryResolver],null,null)],null,null)}var s=n("/oeL"),a=n("3WPo");n.n(a);n.d(e,"a",function(){return c});var l=[],u=s["ɵcrt"]({encapsulation:2,styles:l,data:{}}),c=s["ɵccf"]("dialog-holder",a.DialogHolderComponent,o,{},{},[])},uy4m:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,2,"ngb-datepicker-navigation-select",[["class","d-block"]],[[4,"width","rem"]],[[null,"select"]],function(t,e,n){var i=!0,r=t.component;if("select"===e){i=!1!==r.selectDate(n)&&i}return i},a.a,a.b)),s["ɵdid"](1,573440,null,0,l.a,[u.a,c.a],{date:[0,"date"],disabled:[1,"disabled"],maxDate:[2,"maxDate"],minDate:[3,"minDate"]},{select:"select"}),(t()(),s["ɵted"](-1,null,["\n    "]))],function(t,e){var n=e.component;t(e,1,0,n.date,n.disabled,n.maxDate,n.minDate)},function(t,e){t(e,0,0,9*e.component.months)})}function r(t){return s["ɵvid"](0,[(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵeld"](1,0,null,null,3,"button",[["class","btn-link"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!=!!r.doNavigate(r.navigation.PREV)&&i}return i},null,null)),(t()(),s["ɵted"](-1,null,["\n      "])),(t()(),s["ɵeld"](3,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(t()(),s["ɵted"](-1,null,["    \n    "])),(t()(),s["ɵted"](-1,null,["\n    \n    "])),(t()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](7,16384,null,0,p.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),s["ɵted"](-1,null,["\n    \n    "])),(t()(),s["ɵeld"](9,0,null,null,3,"button",[["class","btn-link"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;if("click"===e){i=!1!=!!r.doNavigate(r.navigation.NEXT)&&i}return i},null,null)),(t()(),s["ɵted"](-1,null,["\n      "])),(t()(),s["ɵeld"](11,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron right"]],null,null,null,null,null)),(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵted"](-1,null,["\n  "]))],function(t,e){t(e,7,0,e.component.showSelect)},function(t,e){var n=e.component;t(e,1,0,n.prevDisabled()),t(e,9,0,n.nextDisabled())})}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"ngb-datepicker-navigation",[["class","d-flex justify-content-between"]],[[2,"collapsed",null]],null,null,r,d)),s["ɵdid"](1,49152,null,0,h.a,[u.a,c.a],null,null)],null,function(t,e){t(e,0,0,!s["ɵnov"](e,1).showSelect)})}var s=n("/oeL"),a=n("cviY"),l=n("JNkN"),u=n("CuDZ"),c=n("KSV9"),h=n("Pc3Y"),p=n("qbdv");n.d(e,"b",function(){return d}),e.a=r;var f=["[_nghost-%COMP%] {\n      height: 2rem;\n      line-height: 1.85rem;\n    }\n    .collapsed[_nghost-%COMP%] {\n      margin-bottom: -2rem;        \n    }\n    .ngb-dp-navigation-chevron[_ngcontent-%COMP%]::before {\n      border-style: solid;\n      border-width: 0.2em 0.2em 0 0;\n      content: '';\n      display: inline-block;\n      height: 0.75em;\n      transform: rotate(-135deg);\n      -webkit-transform: rotate(-135deg);\n      -ms-transform: rotate(-135deg);\n      width: 0.75em;\n      margin: 0 0 0 0.5rem;\n    }    \n    .ngb-dp-navigation-chevron.right[_ngcontent-%COMP%]:before {\n      -webkit-transform: rotate(45deg);\n      -ms-transform: rotate(45deg);\n      transform: rotate(45deg);\n      margin: 0 0.5rem 0 0;\n    }\n    .btn-link[_ngcontent-%COMP%] {\n      cursor: pointer;\n      outline: 0;\n    }\n    .btn-link[disabled][_ngcontent-%COMP%] {\n      cursor: not-allowed;\n      opacity: .65;\n    }"],d=s["ɵcrt"]({encapsulation:0,styles:f,data:{}});s["ɵccf"]("ngb-datepicker-navigation",h.a,o,{date:"date",disabled:"disabled",maxDate:"maxDate",minDate:"minDate",months:"months",showSelect:"showSelect",showWeekNumbers:"showWeekNumbers"},{navigate:"navigate",select:"select"},[])},v1IT:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new c(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("xFbG"),s=n("RdI5"),a=n("XRvs"),l=n("yW9Z"),u=n("ktfo");e.bufferWhen=i;var c=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.closingSelector))},t}(),h=function(t){function e(e,n){t.call(this,e),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,i,r){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=s.tryCatch(this.closingSelector)();n===a.errorObject?this.error(a.errorObject.e):(t=new o.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(u.subscribeToResult(this,n)),this.subscribing=!1)},e}(l.OuterSubscriber)},v6xs:function(t,e,n){"use strict";var i=n("bKpL"),r=n("zjlw");i.Observable.prototype.retry=r.retry},"v71/":function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("TpsG");e.single=i;var a=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.predicate,this.source))},t}(),l=function(t){function e(e,n,i){t.call(this,e),this.predicate=n,this.source=i,this.seenValue=!1,this.index=0}return r(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},vJ3t:function(t,e,n){"use strict";var i=n("bKpL"),r=n("6P86");i.Observable.combineLatest=r.combineLatest},"vKg+":function(t,e,n){"use strict";var i=n("bKpL"),r=n("jKKE");i.Observable.prototype.count=r.count},vNV3:function(t,e,n){"use strict";var i=n("bKpL"),r=n("olOS");i.Observable.prototype.timestamp=r.timestamp},vNxK:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(r.concat.apply(void 0,[e].concat(t)))}}var r=n("7kbP");e.concat=i},vfw3:function(t,e,n){"use strict";var i=n("bKpL"),r=n("iDKa");i.Observable.prototype.skip=r.skip},vg2M:function(t,e,n){"use strict";function i(t){var e=t.getFullYear();return e%4==0&&e%100!=0||e%400==0}function r(t,e){return t-e*Math.floor(t/e)}var o=n("SGrN"),s=n("GaSD"),a=n("/oeL"),l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.fromGregorian=function(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),a=1721424.5+365*(n-1)+Math.floor((n-1)/4)+-Math.floor((n-1)/100)+Math.floor((n-1)/400)+Math.floor((367*(r+1)-362)/12+(r+1<=2?0:i(e)?-1:-2)+o);a=Math.floor(a)+.5;var l=a-1948439.5,u=Math.floor((30*l+10646)/10631),c=Math.ceil((l-29-this._getYearStart(u))/29.5);c=Math.min(c,11);var h=Math.ceil(l-this._getMonthStart(u,c))+1;return new s.a(u,c+1,h)},e.prototype.toGregorian=function(t){var e=t.year,n=t.month-1,o=t.day,s=o+Math.ceil(29.5*n)+354*(e-1)+Math.floor((3+11*e)/30)+1948439.5-1,a=Math.floor(s-.5)+.5,l=a-1721425.5,u=Math.floor(l/146097),c=r(l,146097),h=Math.floor(c/36524),p=r(c,36524),f=Math.floor(p/1461),d=r(p,1461),m=Math.floor(d/365),v=400*u+100*h+4*f+m;4!==h&&4!==m&&v++;var g=1721425.5+365*(v-1)+Math.floor((v-1)/4)-Math.floor((v-1)/100)+Math.floor((v-1)/400),b=a-g,y=1721424.5+365*(v-1)+Math.floor((v-1)/4)-Math.floor((v-1)/100)+Math.floor((v-1)/400)+Math.floor(739/12+(i(new Date(v,3,1))?-1:-2)+1),w=a<y?0:i(new Date(v,3,1))?1:2,x=Math.floor((12*(b+w)+373)/367),S=1721424.5+365*(v-1)+Math.floor((v-1)/4)-Math.floor((v-1)/100)+Math.floor((v-1)/400)+Math.floor((367*x-362)/12+(x<=2?0:i(new Date(v,x-1,1))?-1:-2)+1),C=a-S+1;return new Date(v,x-1,C)},e.prototype.getDaysInIslamicMonth=function(t,e){e+=Math.floor(t/13),t=(t-1)%12+1;var n=29+t%2;return 12===t&&this._isIslamicLeapYear(e)&&n++,n},e.prototype.getNext=function(t,e,n){switch(void 0===e&&(e="d"),void 0===n&&(n=1),t=s.a.from(t),e){case"y":return t=this.setYear(t,t.year+n),t.month=1,t.day=1,t;case"m":return t=this.setMonth(t,t.month+n),t.day=1,t;case"d":return this.setDay(t,t.day+n);default:return t}},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=this.toGregorian(t).getDay();return 0===e?7:e},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=(11-e)%7,i=t[n],r=this.toGregorian(i);r.setDate(r.getDate()+4-(r.getDay()||7));var o=r.getTime(),a=this.toGregorian(new s.a(i.year,1,1));return Math.floor(Math.round((o-a.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return this.fromGregorian(new Date)},e}(o.a);u.decorators=[{type:a.Injectable}],u.ctorParameters=function(){return[]}},vioa:function(t,e,n){"use strict";var i=n("sLwK");e.timer=i.TimerObservable.create},vokw:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,r.expand(t,e,n)(this)}var r=n("y23k");e.expand=i},vtHn:function(t,e,n){"use strict";var i=n("bKpL"),r=n("OCM8");i.Observable.prototype.publishLast=r.publishLast},wDL6:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),r.repeat(t)(this)}var r=n("Hg2u");e.repeat=i},wEhC:function(t,e,n){"use strict";var i=n("JCyH"),r=n("HyAm");e.asap=new r.AsapScheduler(i.AsapAction)},wM1e:function(t,e,n){"use strict";function i(t){return parseInt(""+t,10)}function r(t){return void 0!==t&&null!==t?""+t:""}function o(t,e,n){return void 0===n&&(n=0),Math.max(Math.min(t,e),n)}function s(t){return"string"==typeof t}function a(t){return!isNaN(i(t))}function l(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function u(t){return void 0!==t&&null!==t}function c(t){return a(t)?("0"+t).slice(-2):""}function h(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}e.b=i,e.d=r,e.e=o,e.f=s,e.a=a,e.i=l,e.h=u,e.c=c,e.g=h},wQte:function(t,e,n){"use strict";var i=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var n=0;n<this.size;n++)t.call(e,this._values[n],this._keys[n])},t}();e.MapPolyfill=i},wbX9:function(t,e,n){"use strict";function i(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function r(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===d.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===d.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("bKpL"),c=n("RdI5"),h=n("fclq"),p=n("XRvs"),f=n("xFbG"),d=Object.prototype.toString,m=function(t){function e(e,n,i,r){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=i,this.options=r}return l(e,t),e.create=function(t,n,i,r){return h.isFunction(i)&&(r=i,i=void 0),new e(t,n,r,i)},e.setupSubscription=function(t,n,l,u,c){var h;if(o(t)||s(t))for(var p=0,d=t.length;p<d;p++)e.setupSubscription(t[p],n,l,u,c);else if(a(t)){var m=t;t.addEventListener(n,l,c),h=function(){return m.removeEventListener(n,l)}}else if(r(t)){var v=t;t.on(n,l),h=function(){return v.off(n,l)}}else{if(!i(t))throw new TypeError("Invalid event target");var g=t;t.addListener(n,l),h=function(){return g.removeListener(n,l)}}u.add(new f.Subscription(h))},e.prototype._subscribe=function(t){var n=this.sourceObj,i=this.eventName,r=this.options,o=this.selector,s=o?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var i=c.tryCatch(o).apply(void 0,e);i===p.errorObject?t.error(p.errorObject.e):t.next(i)}:function(e){return t.next(e)};e.setupSubscription(n,i,s,t,r)},e}(u.Observable);e.FromEventObservable=m},wcuQ:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return o.map(r(t,n))(e)}}function r(t,e){return function(n){for(var i=n,r=0;r<e;r++){var o=i[t[r]];if(void 0===o)return;i=o}return i}}var o=n("L8VJ");e.pluck=i},weui:function(t,e,n){"use strict";function i(){return function(t){return t.lift(new a)}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.exhaust=i;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return r(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},wsck:function(t,e,n){"use strict";var i=n("wM1e");n.d(e,"a",function(){return r});var r=function(){function t(t,e,r){this.hour=n.i(i.b)(t),this.minute=n.i(i.b)(e),this.second=n.i(i.b)(r)}return t.prototype.changeHour=function(t){void 0===t&&(t=1),this.updateHour((isNaN(this.hour)?0:this.hour)+t)},t.prototype.updateHour=function(t){n.i(i.a)(t)?this.hour=(t<0?24+t:t)%24:this.hour=NaN},t.prototype.changeMinute=function(t){void 0===t&&(t=1),this.updateMinute((isNaN(this.minute)?0:this.minute)+t)},t.prototype.updateMinute=function(t){n.i(i.a)(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN},t.prototype.changeSecond=function(t){void 0===t&&(t=1),this.updateSecond((isNaN(this.second)?0:this.second)+t)},t.prototype.updateSecond=function(t){n.i(i.a)(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN},t.prototype.isValid=function(t){return void 0===t&&(t=!0),n.i(i.a)(this.hour)&&n.i(i.a)(this.minute)&&(!t||n.i(i.a)(this.second))},t.prototype.toString=function(){return(this.hour||0)+":"+(this.minute||0)+":"+(this.second||0)},t}()},xAqS:function(t,e,n){"use strict";function i(t,e){return r.bufferToggle(t,e)(this)}var r=n("6QEA");e.bufferToggle=i},xBEz:function(t,e,n){"use strict";var i=n("/oeL"),r=n("1Dsc"),o=n("AVYa"),s=n("KRwK"),a=n("dN2u");n("C8VA"),n("zGKh");n.d(e,"a",function(){return l});var l=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[a.a,s.a]}},t}();l.decorators=[{type:i.NgModule,args:[{declarations:[r.a,o.a],entryComponents:[r.a,o.a],providers:[a.a]}]}],l.ctorParameters=function(){return[]}},xDpJ:function(t,e,n){"use strict";function i(t){return s["ɵvid"](0,[(t()(),s["ɵand"](0,null,null,0))],null,null)}function r(t){return s["ɵvid"](0,[s["ɵqud"](402653184,1,{element:0}),s["ɵqud"](402653184,2,{container:0}),(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵeld"](3,0,[[2,0],["container",1]],null,3,"div",[["class","modal fade"],["role","dialog"],["style","display:block !important;"]],null,null,null,null,null)),(t()(),s["ɵted"](-1,null,["\n        "])),(t()(),s["ɵand"](16777216,[[1,3],["element",2]],null,0,null,i)),(t()(),s["ɵted"](-1,null,["\n    "])),(t()(),s["ɵted"](-1,null,["\n"]))],null,null)}function o(t){return s["ɵvid"](0,[(t()(),s["ɵeld"](0,0,null,null,1,"dialog-wrapper",[],null,null,null,r,c)),s["ɵdid"](1,49152,null,0,a.DialogWrapperComponent,[s.ComponentFactoryResolver,l.DialogService],null,null)],null,null)}var s=n("/oeL"),a=n("taw3"),l=(n.n(a),n("V672"));n.n(l);n.d(e,"a",function(){return h});var u=[],c=s["ɵcrt"]({encapsulation:2,styles:u,data:{}}),h=s["ɵccf"]("dialog-wrapper",a.DialogWrapperComponent,o,{},{},[])},xJeO:function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("RdI5"),a=n("XRvs");e.sequenceEqual=i;var l=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=l;var u=function(t){function e(e,n,i){t.call(this,e),this.compareTo=n,this.comparor=i,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new c(e,this)))}return r(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,i=t.comparor;e.length>0&&n.length>0;){var r=e.shift(),o=n.shift(),l=!1;i?(l=s.tryCatch(i)(r,o))===a.errorObject&&this.destination.error(a.errorObject.e):l=r===o,l||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(o.Subscriber);e.SequenceEqualSubscriber=u;var c=function(t){function e(e,n){t.call(this,e),this.parent=n}return r(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(o.Subscriber)},xK8X:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=r.async),o.map(function(e){return new s(e,t.now())})}var r=n("IhB/"),o=n("L8VJ");e.timestamp=i;var s=function(){function t(t,e){this.value=t,this.timestamp=e}return t}();e.Timestamp=s},xpf9:function(t,e,n){"use strict";var i=n("bKpL"),r=n("ueUM");i.Observable.prototype.catch=r._catch,i.Observable.prototype._catch=r._catch},"y+rW":function(t,e,n){"use strict";function i(t,e){return function(n){return n.lift(new l(t,e))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo"),a=n("M11L");e.distinct=i;var l=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.keySelector,this.flushes))},t}(),u=function(t){function e(e,n,i){t.call(this,e),this.keySelector=n,this.values=new a.Set,i&&this.add(s.subscribeToResult(this,i))}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(o.OuterSubscriber);e.DistinctSubscriber=u},y23k:function(t,e,n){"use strict";function i(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(i){return i.lift(new u(t,e,n))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),l=n("ktfo");e.expand=i;var u=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=u;var c=function(t){function e(e,n,i,r){t.call(this,e),this.project=n,this.concurrent=i,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(this.buffer=[])}return r(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,i=t.value,r=t.index;e.subscribeToProjection(n,i,r)},e.prototype._next=function(t){var n=this.destination;if(n.closed)return void this._complete();var i=this.index++;if(this.active<this.concurrent){n.next(t);var r=o.tryCatch(this.project)(t,i);if(r===s.errorObject)n.error(s.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:r,value:t,index:i};this.add(this.scheduler.schedule(e.dispatch,0,a))}else this.subscribeToProjection(r,t,i)}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(l.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber);e.ExpandSubscriber=c},y3SI:function(t,e,n){"use strict";function i(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e};return r.reduce(e)}var r=n("JwCl");e.min=i},y3aq:function(t,e,n){"use strict";function i(t){return function(e){return e.lift(new a(t))}}var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.takeUntil=i;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier))},t}(),l=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(s.subscribeToResult(this,n))}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.complete()},e.prototype.notifyComplete=function(){},e}(o.OuterSubscriber)},yIff:function(t,e,n){"use strict";var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=n("rlar"),o=n("T14+"),s=n("bKpL"),a=n("xFbG"),l=n("zijX"),u=n("0imh"),c=n("RdI5"),h=n("XRvs"),p=n("fV3I"),f=function(t){function e(e,n){if(e instanceof s.Observable)t.call(this,n,e);else{if(t.call(this),this.WebSocketCtor=l.root.WebSocket,this._output=new r.Subject,"string"==typeof e?this.url=e:p.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new u.ReplaySubject}}return i(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var n=new e(this,this.destination);return n.operator=t,n},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new u.ReplaySubject),this._output=new r.Subject},e.prototype.multiplex=function(t,e,n){var i=this;return new s.Observable(function(r){var o=c.tryCatch(t)();o===h.errorObject?r.error(h.errorObject.e):i.next(o);var s=i.subscribe(function(t){var e=c.tryCatch(n)(t);e===h.errorObject?r.error(h.errorObject.e):e&&r.next(t)},function(t){return r.error(t)},function(){return r.complete()});return function(){var t=c.tryCatch(e)();t===h.errorObject?r.error(h.errorObject.e):i.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,n=this._output,i=null;try{i=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=i,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(t){return void n.error(t)}var r=new a.Subscription(function(){t.socket=null,i&&1===i.readyState&&i.close()});i.onopen=function(e){var s=t.openObserver;s&&s.next(e);var a=t.destination;t.destination=o.Subscriber.create(function(t){return 1===i.readyState&&i.send(t)},function(e){var r=t.closingObserver;r&&r.next(void 0),e&&e.code?i.close(e.code,e.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),i.close(),t._resetState()}),a&&a instanceof u.ReplaySubject&&r.add(a.subscribe(t.destination))},i.onerror=function(e){t._resetState(),n.error(e)},i.onclose=function(e){t._resetState();var i=t.closeObserver;i&&i.next(e),e.wasClean?n.complete():n.error(e)},i.onmessage=function(e){var i=c.tryCatch(t.resultSelector)(e);i===h.errorObject?n.error(h.errorObject.e):n.next(i)}},e.prototype._subscribe=function(t){var e=this,n=this.source;if(n)return n.subscribe(t);this.socket||this._connectSocket();var i=new a.Subscription;return i.add(this._output.subscribe(t)),i.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),i},e.prototype.unsubscribe=function(){var e=this,n=e.source,i=e.socket;i&&1===i.readyState&&(i.close(),this._resetState()),t.prototype.unsubscribe.call(this),n||(this.destination=new u.ReplaySubject)},e}(r.AnonymousSubject);e.WebSocketSubject=f},yQ6o:function(t,e,n){"use strict";var i=n("T1tZ");e.bindCallback=i.BoundCallbackObservable.create},yR50:function(t,e,n){"use strict";var i=n("Fpv1"),r=n("HHMl");e.queue=new r.QueueScheduler(i.QueueAction)},ykQW:function(t,e,n){"use strict";var i=n("bKpL"),r=n("8Ben");i.Observable.prototype.let=r.letProto,i.Observable.prototype.letBind=r.letProto},ytB7:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=r.async),o.sampleTime(t,e)(this)}var r=n("IhB/"),o=n("60lp");e.sampleTime=i},z69B:function(t,e,n){"use strict";var i=n("bKpL"),r=n("gb+0");i.Observable.prototype.single=r.single},"z8/z":function(t,e,n){"use strict";function i(t,e,n,i){n&&"function"!=typeof n&&(i=n);var s="function"==typeof n?n:void 0,a=new r.ReplaySubject(t,e,i);return function(t){return o.multicast(function(){return a},s)(t)}}var r=n("0imh"),o=n("P02W");e.publishReplay=i},"zBM/":function(t,e,n){"use strict";function i(t){return t?o.multicast(function(){return new r.Subject},t):o.multicast(new r.Subject)}var r=n("rlar"),o=n("P02W");e.publish=i},zGKh:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i;!function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(i||(i={}))},zGUx:function(t,e,n){"use strict";var i=n("wbX9");e.fromEvent=i.FromEventObservable.create},zZnE:function(t,e,n){"use strict";var i=n("bKpL"),r=n("jyAw");i.Observable.prototype.groupBy=r.groupBy},zbre:function(t,e,n){"use strict";function i(t,e){return void 0===e&&(e=null),r.bufferCount(t,e)(this)}var r=n("5NGA");e.bufferCount=i},zc4d:function(t,e,n){"use strict";var i=n("bKpL"),r=n("uYJe");i.Observable.prototype.finally=r._finally,i.Observable.prototype._finally=r._finally},zdWg:function(t,e,n){"use strict";var i=n("bKpL"),r=n("Zfg9");i.Observable.prototype.skipLast=r.skipLast},ziym:function(t,e,n){"use strict";var i=n("HPkd");e.ajax=i.AjaxObservable.create},zjlw:function(t,e,n){"use strict";function i(t){return void 0===t&&(t=-1),r.retry(t)(this)}var r=n("5r3W");e.retry=i}});
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/1.408372ca9caba82cfa85.chunk.js b/Servidor JEE/WebContent/1.408372ca9caba82cfa85.chunk.js
new file mode 100644
index 0000000000000000000000000000000000000000..91083da18dff7281c77262fa378b5b3f7b76c2c5
--- /dev/null
+++ b/Servidor JEE/WebContent/1.408372ca9caba82cfa85.chunk.js	
@@ -0,0 +1 @@
+webpackJsonp([1],{"1F35":function(n,t,e){"use strict";var l=e("sRze");e.d(t,"a",function(){return i});var i=(l.a,function(){function n(){}return n}())},"26LX":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=["#svgHaskell[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%!important;height:100%!important}"]},DVtk:function(n,t,e){"use strict";function l(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,26,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                "])),(n()(),o["ɵeld"](2,0,null,null,23,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵeld"](4,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](6,0,null,null,1,"button",[["class","close"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["×"])),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵeld"](11,0,null,null,4,"div",[["class","modal-body"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](13,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),o["ɵted"](14,null,["",""])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵeld"](17,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](19,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Editar"])),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Cancelar"])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵted"](-1,null,["\n                 "])),(n()(),o["ɵted"](-1,null,["\n              "]))],null,function(n,t){n(t,14,0,t.component.message||"")})}function i(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,l,u)),o["ɵdid"](1,180224,null,0,r.a,[a.DialogService],null,null)],null,null)}var o=e("/oeL"),r=e("UfLB"),a=e("V672");e.n(a);e.d(t,"a",function(){return c});var s=[],u=o["ɵcrt"]({encapsulation:2,styles:s,data:{}}),c=o["ɵccf"]("confirm",r.a,i,{},{},[])},EZ6d:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";n.defineMode("matefun",function(n,t){function e(n,t,e){return t(e),e(n,t)}function l(n,t){if(n.eatWhile(p))return null;var l=n.next();if(m.test(l)){if("{"==l&&n.eat("-")){var r="comment";return n.eat("#")&&(r="meta"),e(n,t,i(r,1))}return null}if("'"==l)return n.eat("\\"),n.next(),n.eat("'")?"string":"string error";if('"'==l)return e(n,t,o);if(s.test(l))return n.eatWhile(d),n.eat(".")?"qualifier":"variable-2";if(a.test(l))return n.eatWhile(d),"variable";if(u.test(l)){if("0"==l){if(n.eat(/[xX]/))return n.eatWhile(c),"integer";if(n.eat(/[oO]/))return n.eatWhile(h),"number"}n.eatWhile(u);var r="number";return n.match(/^\.\d+/)&&(r="number"),n.eat(/[eE]/)&&(r="number",n.eat(/[-+]/),n.eatWhile(u)),r}if("."==l&&n.eat("."))return"keyword";if(f.test(l)){if("-"==l&&n.eat(/-/)&&(n.eatWhile(/-/),!n.eat(f)))return n.skipToEnd(),"comment";var r="variable";return":"==l&&(r="variable-2"),n.eatWhile(f),r}return"error"}function i(n,t){return 0==t?l:function(e,o){for(var r=t;!e.eol();){var a=e.next();if("{"==a&&e.eat("-"))++r;else if("-"==a&&e.eat("}")&&0==--r)return o(l),n}return o(i(n,r)),n}}function o(n,t){for(;!n.eol();){var e=n.next();if('"'==e)return t(l),"string";if("\\"==e){if(n.eol()||n.eat(p))return t(r),"string";n.eat("&")||n.next()}}return t(l),"string error"}function r(n,t){return n.eat("\\")?e(n,t,o):(n.next(),t(l),"error")}var a=/[a-z_]/,s=/[A-Z]/,u=/\d/,c=/[0-9A-Fa-f]/,h=/[0-7]/,d=/[a-z_A-Z0-9'\xa1-\uffff]/,f=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,p=/[ \t\v\f]/,v=function(){function n(n){return function(){for(var t=0;t<arguments.length;t++)e[arguments[t]]=n}}var e={};n("keyword")("incluir","conj","en","si","o","esVacia"),n("keyword")("<-","->"),n("builtin")("-","+","*","/","^","!",":","==","/=","<",">","<=",">=","::","->","X","|"),n("builtin")("Rojo","Verde","Azul","Negro","Blanco","Gris","Amarillo","FigVacia","[]","R","Fig","Color"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var l=t.overrideKeywords;if(l)for(var i in l)l.hasOwnProperty(i)&&(e[i]=l[i]);return e}();return{startState:function(){return{f:l}},copyState:function(n){return{f:n.f}},token:function(n,t){var e=t.f(n,function(n){t.f=n}),l=n.current();return v.hasOwnProperty(l)?v[l]:e},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),n.defineMIME("text/x-matefun","matefun")})},EfLl:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},HXxp:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}();!function(){function n(){}}()},L8b4:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("ppY8"))}(function(n){"use strict";function t(n,t){return"string"==typeof n?n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):n.global||(n=new RegExp(n.source,n.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var e=n.exec(t.string);if(e&&e.index==t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}}function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function l(n){return n.state.search||(n.state.search=new e)}function i(n){return"string"==typeof n&&n==n.toLowerCase()}function o(n,t,e){return n.getSearchCursor(t,e,{caseFold:i(t),multiline:!0})}function r(n,t,e,l,i){n.openDialog(t,l,{value:e,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(n)},onKeyDown:i})}function a(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function s(n,t,e,l){n.openConfirm?n.openConfirm(t,l):confirm(e)&&l[0]()}function u(n){return n.replace(/\\(.)/g,function(n,t){return"n"==t?"\n":"r"==t?"\r":t})}function c(n){var t=n.match(/^\/(.*)\/([a-z]*)$/);if(t)try{n=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else n=u(n);return("string"==typeof n?""==n:n.test(""))&&(n=/x^/),n}function h(n,e,l){e.queryText=l,e.query=c(l),n.removeOverlay(e.overlay,i(e.query)),e.overlay=t(e.query,i(e.query)),n.addOverlay(e.overlay),n.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=n.showMatchesOnScrollbar(e.query,i(e.query)))}function d(t,e,i,o){var s=l(t);if(s.query)return f(t,e);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var c=null,d=function(e,l){n.e_stop(l),e&&(e!=s.queryText&&(h(t,s,e),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),f(t,l.shiftKey,function(n,e){var l;e.line<3&&document.querySelector&&(l=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&l.getBoundingClientRect().bottom-4>t.cursorCoords(e,"window").top&&((c=l).style.opacity=.4)}))};r(t,g,u,d,function(e,i){var o=n.keyName(e),r=t.getOption("extraKeys"),a=r&&r[o]||n.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(n.e_stop(e),h(t,l(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(n.e_stop(e),d(i,e))}),o&&u&&(h(t,s,u),f(t,e))}else a(t,g,"Search for:",u,function(n){n&&!s.query&&t.operation(function(){h(t,s,n),s.posFrom=s.posTo=t.getCursor(),f(t,e)})})}function f(t,e,i){t.operation(function(){var r=l(t),a=o(t,r.query,e?r.posFrom:r.posTo);(a.find(e)||(a=o(t,r.query,e?n.Pos(t.lastLine()):n.Pos(t.firstLine(),0)),a.find(e)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),r.posFrom=a.from(),r.posTo=a.to(),i&&i(a.from(),a.to()))})}function m(n){n.operation(function(){var t=l(n);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,n.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function p(n,t,e){n.operation(function(){for(var l=o(n,t);l.findNext();)if("string"!=typeof t){var i=n.getRange(l.from(),l.to()).match(t);l.replace(e.replace(/\$(\d)/g,function(n,t){return i[t]}))}else l.replace(e)})}function v(n,t){if(!n.getOption("readOnly")){var e=n.getSelection()||l(n).lastQuery,i='<span class="CodeMirror-search-label">'+(t?"Replace all:":"Replace:")+"</span>";a(n,i+b,i,e,function(e){e&&(e=c(e),a(n,y,"Replace with:","",function(l){if(l=u(l),t)p(n,e,l);else{m(n);var i=o(n,e,n.getCursor("from")),r=function(){var t,u=i.from();!(t=i.findNext())&&(i=o(n,e),!(t=i.findNext())||u&&i.from().line==u.line&&i.from().ch==u.ch)||(n.setSelection(i.from(),i.to()),n.scrollIntoView({from:i.from(),to:i.to()}),s(n,C,"Replace?",[function(){a(t)},r,function(){p(n,e,l)}]))},a=function(n){i.replace("string"==typeof e?l:l.replace(/\$(\d)/g,function(t,e){return n[e]})),r()};r()}}))})}}var g='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',b=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',C='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';n.commands.find=function(n){m(n),d(n)},n.commands.findPersistent=function(n){m(n),d(n,!1,!0)},n.commands.findPersistentNext=function(n){d(n,!1,!0,!0)},n.commands.findPersistentPrev=function(n){d(n,!0,!0,!0)},n.commands.findNext=d,n.commands.findPrev=function(n){d(n,!0)},n.commands.clearSearch=m,n.commands.replace=v,n.commands.replaceAll=function(n){v(n,!0)}})},La8y:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n,t){function e(n){clearTimeout(l.doRedraw),l.doRedraw=setTimeout(function(){l.redraw()},n)}this.cm=n,this.options=t,this.buttonHeight=t.scrollButtonHeight||n.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=n.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var l=this;n.on("refresh",this.resizeHandler=function(){clearTimeout(l.doUpdate),l.doUpdate=setTimeout(function(){l.computeScale()&&e(20)},100)}),n.on("markerAdded",this.resizeHandler),n.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&n.on("change",this.changeHandler=function(){e(250)})}n.defineExtension("annotateScrollbar",function(n){return"string"==typeof n&&(n={className:n}),new t(this,n)}),n.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var n=this.cm,t=(n.getWrapperElement().clientHeight-n.display.barHeight-2*this.buttonHeight)/n.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(n){this.annotations=n,this.redraw()},t.prototype.redraw=function(n){function t(n,t){return s!=n.line&&(s=n.line,u=e.getLineHandle(s)),u.widgets&&u.widgets.length||r&&u.height>a?e.charCoords(n,"local")[t?"top":"bottom"]:e.heightAtLine(u,"local")+(t?0:u.height)}!1!==n&&this.computeScale();var e=this.cm,l=this.hScale,i=document.createDocumentFragment(),o=this.annotations,r=e.getOption("lineWrapping"),a=r&&1.5*e.defaultTextHeight(),s=null,u=null,c=e.lastLine();if(e.display.barWidth)for(var h,d=0;d<o.length;d++){var f=o[d];if(!(f.to.line>c)){for(var m=h||t(f.from,!0)*l,p=t(f.to,!1)*l;d<o.length-1&&!(o[d+1].to.line>c)&&!((h=t(o[d+1].from,!0)*l)>p+.9);)f=o[++d],p=t(f.to,!1)*l;if(p!=m){var v=Math.max(p-m,3),g=i.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(m+this.buttonHeight)+"px; height: "+v+"px",g.className=this.options.className,f.id&&g.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}})},OR9o:function(n,t,e){"use strict";function l(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-folder"],["style","margin-right:10px; font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function i(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-file-text"],["style","margin-right:10px;font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function o(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,7,"button",[["class","list-group-item list-group-item-action"],["style","cursor:pointer"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navToDir(n.context.$implicit)&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["\n                                  "])),(n()(),s["ɵand"](16777216,null,null,1,null,l)),s["ɵdid"](3,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](-1,null,["\n                                  "])),(n()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](6,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](7,null,["\n                                 ","\n                             "]))],function(n,t){n(t,3,0,t.context.$implicit.directorio),n(t,6,0,!t.context.$implicit.directorio)},function(n,t){n(t,7,0,t.context.$implicit.nombre)})}function r(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,47,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                "])),(n()(),s["ɵeld"](2,0,null,null,44,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵeld"](4,0,null,null,7,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵeld"](6,0,null,null,1,"h6",[["class","modal-title pull-lefth"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["¿Dónde quieres crear el archivo?"])),(n()(),s["ɵted"](-1,null,[" \n                     "])),(n()(),s["ɵeld"](9,0,null,null,1,"button",[["class","close"],["style","margin-rigth:8px;"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["×"])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵeld"](13,0,null,null,23,"div",[["class","modal-body"],["style","height:350px;overflow-y: scroll;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                       "])),(n()(),s["ɵeld"](15,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                         "])),(n()(),s["ɵeld"](17,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                            "])),(n()(),s["ɵeld"](19,0,null,null,1,"label",[["class","form-control-label"],["for","file-name"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["Nombre:"])),(n()(),s["ɵted"](-1,null,["\n                            "])),(n()(),s["ɵeld"](22,0,null,null,5,"input",[["class","form-control"],["id","file-name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==s["ɵnov"](n,23)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==s["ɵnov"](n,23).onTouched()&&l}if("compositionstart"===t){l=!1!==s["ɵnov"](n,23)._compositionStart()&&l}if("compositionend"===t){l=!1!==s["ɵnov"](n,23)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.nombre=e)&&l}return l},null,null)),s["ɵdid"](23,16384,null,0,h.DefaultValueAccessor,[s.Renderer2,s.ElementRef,[2,h.COMPOSITION_BUFFER_MODE]],null,null),s["ɵprd"](1024,null,h.NG_VALUE_ACCESSOR,function(n){return[n]},[h.DefaultValueAccessor]),s["ɵdid"](25,671744,null,0,h.NgModel,[[8,null],[8,null],[8,null],[2,h.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),s["ɵprd"](2048,null,h.NgControl,null,[h.NgModel]),s["ɵdid"](27,16384,null,0,h.NgControlStatus,[h.NgControl],null,null),(n()(),s["ɵted"](-1,null,["\n                         "])),(n()(),s["ɵted"](-1,null,["\n                         "])),(n()(),s["ɵeld"](30,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                            "])),(n()(),s["ɵand"](16777216,null,null,1,null,o)),s["ɵdid"](33,802816,null,0,u.NgForOf,[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),s["ɵted"](-1,null,["\n                          "])),(n()(),s["ɵted"](-1,null,["\n                        "])),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵeld"](38,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵeld"](40,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navBack()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Atras"])),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵeld"](43,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Crear"])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵted"](-1,null,["\n                 "])),(n()(),s["ɵted"](-1,null,["\n              "]))],function(n,t){var e=t.component;n(t,25,0,e.nombre),n(t,33,0,e.directorioActual.archivos)},function(n,t){n(t,22,0,s["ɵnov"](t,27).ngClassUntouched,s["ɵnov"](t,27).ngClassTouched,s["ɵnov"](t,27).ngClassPristine,s["ɵnov"](t,27).ngClassDirty,s["ɵnov"](t,27).ngClassValid,s["ɵnov"](t,27).ngClassInvalid,s["ɵnov"](t,27).ngClassPending)})}function a(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,r,m)),s["ɵdid"](1,180224,null,0,c.a,[d.DialogService],null,null)],null,null)}var s=e("/oeL"),u=e("qbdv"),c=e("ij+S"),h=e("bm2B"),d=e("V672");e.n(d);e.d(t,"a",function(){return p});var f=[],m=s["ɵcrt"]({encapsulation:2,styles:f,data:{}}),p=s["ɵccf"]("confirm",c.a,a,{},{},[])},OZVu:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n){var t=n.flags;return null!=t?t:(n.ignoreCase?"i":"")+(n.global?"g":"")+(n.multiline?"m":"")}function e(n){return n.global?n:new RegExp(n.source,t(n)+"g")}function l(n){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(n.source)}function i(n,t,l){t=e(t);for(var i=l.line,o=l.ch,r=n.lastLine();i<=r;i++,o=0){t.lastIndex=o;var a=n.getLine(i),s=t.exec(a);if(s)return{from:p(i,s.index),to:p(i,s.index+s[0].length),match:s}}}function o(n,t,o){if(!l(t))return i(n,t,o);t=e(t);for(var r,a=1,s=o.line,u=n.lastLine();s<=u;){for(var c=0;c<a;c++){var h=n.getLine(s++);r=null==r?h:r+"\n"+h}a*=2,t.lastIndex=o.ch;var d=t.exec(r);if(d){var f=r.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=o.line+f.length-1,g=f[f.length-1].length;return{from:p(v,g),to:p(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function r(n,t){for(var e,l=0;;){t.lastIndex=l;var i=t.exec(n);if(!i)return e;if(e=i,(l=e.index+(e[0].length||1))==n.length)return e}}function a(n,t,l){t=e(t);for(var i=l.line,o=l.ch,a=n.firstLine();i>=a;i--,o=-1){var s=n.getLine(i);o>-1&&(s=s.slice(0,o));var u=r(s,t);if(u)return{from:p(i,u.index),to:p(i,u.index+u[0].length),match:u}}}function s(n,t,l){t=e(t);for(var i,o=1,a=l.line,s=n.firstLine();a>=s;){for(var u=0;u<o;u++){var c=n.getLine(a--);i=null==i?c.slice(0,l.ch):c+"\n"+i}o*=2;var h=r(i,t);if(h){var d=i.slice(0,h.index).split("\n"),f=h[0].split("\n"),m=a+d.length,v=d[d.length-1].length;return{from:p(m,v),to:p(m+f.length-1,1==f.length?v+f[0].length:f[f.length-1].length),match:h}}}}function u(n,t,e,l){if(n.length==t.length)return e;for(var i=0,o=e+Math.max(0,n.length-t.length);;){if(i==o)return i;var r=i+o>>1,a=l(n.slice(0,r)).length;if(a==e)return r;a>e?o=r:i=r+1}}function c(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.lastLine()+1-o.length;r<=s;r++,a=0){var c=n.getLine(r).slice(a),h=i(c);if(1==o.length){var d=h.indexOf(o[0]);if(-1==d)continue n;var e=u(c,h,d,i)+a;return{from:p(r,u(c,h,d,i)+a),to:p(r,u(c,h,d+o[0].length,i)+a)}}var v=h.length-o[0].length;if(h.slice(v)==o[0]){for(var g=1;g<o.length-1;g++)if(i(n.getLine(r+g))!=o[g])continue n;var b=n.getLine(r+o.length-1),y=i(b),C=o[o.length-1];if(b.slice(0,C.length)==C)return{from:p(r,u(c,h,v,i)+a),to:p(r+o.length-1,u(b,y,C.length,i))}}}}function h(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.firstLine()-1+o.length;r>=s;r--,a=-1){var c=n.getLine(r);a>-1&&(c=c.slice(0,a));var h=i(c);if(1==o.length){var d=h.lastIndexOf(o[0]);if(-1==d)continue n;return{from:p(r,u(c,h,d,i)),to:p(r,u(c,h,d+o[0].length,i))}}var v=o[o.length-1];if(h.slice(0,v.length)==v){for(var g=1,e=r-o.length+1;g<o.length-1;g++)if(i(n.getLine(e+g))!=o[g])continue n;var b=n.getLine(r+1-o.length),y=i(b);if(y.slice(y.length-o[0].length)==o[0])return{from:p(r+1-o.length,u(b,y,b.length-o[0].length,i)),to:p(r,u(c,h,v.length,i))}}}}function d(n,t,l,r){this.atOccurrence=!1,this.doc=n,l=l?n.clipPos(l):p(0,0),this.pos={from:l,to:l};var u;"object"==typeof r?u=r.caseFold:(u=r,r=null),"string"==typeof t?(null==u&&(u=!1),this.matches=function(e,l){return(e?h:c)(n,t,l,u)}):(t=e(t),r&&!1===r.multiline?this.matches=function(e,l){return(e?a:i)(n,t,l)}:this.matches=function(e,l){return(e?s:o)(n,t,l)})}var f,m,p=n.Pos;String.prototype.normalize?(f=function(n){return n.normalize("NFD").toLowerCase()},m=function(n){return n.normalize("NFD")}):(f=function(n){return n.toLowerCase()},m=function(n){return n}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var e=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));e&&0==n.cmpPos(e.from,e.to);)t?e.from.ch?e.from=p(e.from.line,e.from.ch-1):e=e.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(p(e.from.line-1))):e.to.ch<this.doc.getLine(e.to.line).length?e.to=p(e.to.line,e.to.ch+1):e=e.to.line==this.doc.lastLine()?null:this.matches(t,p(e.to.line+1,0));if(e)return this.pos=e,this.atOccurrence=!0,this.pos.match||!0;var l=p(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:l,to:l},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,e){if(this.atOccurrence){var l=n.splitLines(t);this.doc.replaceRange(l,this.pos.from,this.pos.to,e),this.pos.to=p(this.pos.from.line+l.length-1,l[l.length-1].length+(1==l.length?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(n,t,e){return new d(this.doc,n,t,e)}),n.defineDocExtension("getSearchCursor",function(n,t,e){return new d(this,n,t,e)}),n.defineExtension("selectMatches",function(t,e){for(var l=[],i=this.getSearchCursor(t,this.getCursor("from"),e);i.findNext()&&!(n.cmpPos(i.to(),this.getCursor("to"))>0);)l.push({anchor:i.from(),head:i.to()});l.length&&this.setSelections(l,0)})})},Qdk6:function(n,t,e){!function(n){n(e("oiK7"),e("ppY8"))}(function(n){"use strict";function t(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function e(n,t){var e=Number(t);return/^[-+]/.test(t)?n.getCursor().line+e:e-1}n.commands.jumpToLine=function(n){var l=n.getCursor();t(n,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",l.line+1+":"+l.ch,function(t){if(t){var i;if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))n.setCursor(e(n,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(n.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=l.line+o+1),n.setCursor(o-1,l.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&n.setCursor(e(n,i[1]),l.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})},SVb2:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("/oeL"),i=e("EfLl"),o=e("CVNG"),r=e("IkMs"),a=e("DlWC"),s=e("m0eP"),u=e("MsHi"),c=e("ClIn"),h=e("CU81"),d=e("fXzC"),f=e("ufkV"),m=e("xDpJ"),p=e("DVtk"),v=e("OR9o"),g=e("qbdv"),b=e("bm2B"),y=e("dN2u"),C=e("KRwK"),x=e("V672"),E=(e.n(x),e("BkNc")),k=e("Zz+K"),R=e("wnyu"),S=e("EoP3"),w=e("2waW"),P=e("PY9B"),T=e("IBeK"),M=e("g5gQ"),X=e("xBEz"),Y=e("PuIS"),N=e("U0Tu"),_=e("3rU7"),A=e("Cb36"),O=e("5h8W"),I=e("6ade"),F=e("4HaF"),j=e("DaIH"),L=e("0WLp"),D=e("s6Yw"),V=e("DYHI"),z=e("1F35"),q=e("0vel"),B=(e.n(q),e("sdK6")),Z=(e.n(B),e("sRze"));e.d(t,"MateFunModuleNgFactory",function(){return G});var G=l["ɵcmf"](i.a,[],function(n){return l["ɵmod"]([l["ɵmpd"](512,l.ComponentFactoryResolver,l["ɵCodegenComponentFactoryResolver"],[[8,[o.a,r.a,a.a,s.a,u.a,c.a,h.a,d.a,f.a,m.a,p.a,v.a]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["ɵmpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[l.LOCALE_ID]),l["ɵmpd"](4608,b["ɵi"],b["ɵi"],[]),l["ɵmpd"](4608,y.a,y.a,[l.ComponentFactoryResolver,l.Injector,C.a]),l["ɵmpd"](4608,x.DialogService,x.DialogService,[l.ComponentFactoryResolver,l.ApplicationRef,l.Injector,[2,x.DialogServiceConfig]]),l["ɵmpd"](512,g.CommonModule,g.CommonModule,[]),l["ɵmpd"](512,b["ɵba"],b["ɵba"],[]),l["ɵmpd"](512,b.FormsModule,b.FormsModule,[]),l["ɵmpd"](512,E.x,E.x,[[2,E.k],[2,E.c]]),l["ɵmpd"](512,k.a,k.a,[]),l["ɵmpd"](512,R.a,R.a,[]),l["ɵmpd"](512,S.a,S.a,[]),l["ɵmpd"](512,w.a,w.a,[]),l["ɵmpd"](512,P.a,P.a,[]),l["ɵmpd"](512,T.a,T.a,[]),l["ɵmpd"](512,M.a,M.a,[]),l["ɵmpd"](512,X.a,X.a,[]),l["ɵmpd"](512,Y.a,Y.a,[]),l["ɵmpd"](512,N.a,N.a,[]),l["ɵmpd"](512,_.a,_.a,[]),l["ɵmpd"](512,A.a,A.a,[]),l["ɵmpd"](512,O.a,O.a,[]),l["ɵmpd"](512,I.a,I.a,[]),l["ɵmpd"](512,F.a,F.a,[]),l["ɵmpd"](512,j.a,j.a,[]),l["ɵmpd"](512,L.b,L.b,[]),l["ɵmpd"](512,D.a,D.a,[]),l["ɵmpd"](512,V.a,V.a,[]),l["ɵmpd"](512,z.a,z.a,[]),l["ɵmpd"](512,q.CodemirrorModule,q.CodemirrorModule,[]),l["ɵmpd"](512,B.BootstrapModalModule,B.BootstrapModalModule,[]),l["ɵmpd"](512,i.a,i.a,[]),l["ɵmpd"](1024,E.t,function(){return[[{path:"",component:Z.a}]]},[])])})},UfLB:function(n,t,e){"use strict";var l=e("p2gU");e.n(l);e.d(t,"a",function(){return o});var i=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),o=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.confirm=function(){this.result=!0,this.close()},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},fXzC:function(n,t,e){"use strict";function l(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,5,"input",[["class","nomArchivoInp form-control form-control-sm"],["name","archivo"],["placeholder","nombre del archivo"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==h["ɵnov"](n,1)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,1).onTouched()&&l}if("compositionstart"===t){l=!1!==h["ɵnov"](n,1)._compositionStart()&&l}if("compositionend"===t){l=!1!==h["ɵnov"](n,1)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.archivo.nombre=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},null,null)),h["ɵdid"](1,16384,null,0,d.DefaultValueAccessor,[h.Renderer2,h.ElementRef,[2,d.COMPOSITION_BUFFER_MODE]],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.DefaultValueAccessor]),h["ɵdid"](3,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](5,16384,null,0,d.NgControlStatus,[d.NgControl],null,null)],function(n,t){var e=t.component;n(t,3,0,"archivo",!e.archivo.editable||"Corregido"==e.archivo.estado||"Entregado"==e.archivo.estado,e.archivo.nombre)},function(n,t){n(t,0,0,h["ɵnov"](t,5).ngClassUntouched,h["ɵnov"](t,5).ngClassTouched,h["ɵnov"](t,5).ngClassPristine,h["ɵnov"](t,5).ngClassDirty,h["ɵnov"](t,5).ngClassValid,h["ɵnov"](t,5).ngClassInvalid,h["ɵnov"](t,5).ngClassPending)})}function i(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),h["ɵdid"](1,147456,null,0,d.NgSelectOption,[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),h["ɵdid"](2,147456,null,0,d["ɵq"],[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),h["ɵted"](3,null,["",""]))],function(n,t){n(t,1,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,"")),n(t,2,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,""))},function(n,t){var e=t.component;n(t,0,0,t.context.$implicit==e.configCodeMirror.theme),n(t,3,0,t.context.$implicit)})}function o(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](1,0,null,null,59,"div",[["style","width: 12em"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](3,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](5,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tema:"])),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](8,0,[["selectTheme",1]],null,4,"select",[["class","form-control form-control-sm"],["name","theme"]],null,[[null,"change"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==i.updateConfig(h["ɵnov"](n,8).value)&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵand"](16777216,null,null,1,null,i)),h["ɵdid"](11,802816,null,0,f.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](15,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](17,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tamaño de fuente:"])),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](20,0,null,null,7,"div",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.aumentarFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["A⁺"])),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](25,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.disminuirFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["A⁻"])),(n()(),h["ɵted"](27,null,["\n                                        ","px                                    \n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](30,0,null,null,23,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](32,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](34,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoF"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,35).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,35).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoF=e)&&l}return l},null,null)),h["ɵdid"](35,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](37,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](39,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n                                        Mostrar advertencias de uso de funciones\n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](42,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](44,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](46,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoI"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,47).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,47).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoI=e)&&l}return l},null,null)),h["ɵdid"](47,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](49,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](51,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n                                        Mostrar advertencias de uso de operadores infijos\n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](55,0,null,null,4,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](57,0,null,null,1,"button",[["class","btn btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.saveConfig()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Guardar"])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵted"](-1,null,["\n                        "]))],function(n,t){var e=t.component;n(t,11,0,e.themes);n(t,37,0,"argumentoF",e.argumentoF);n(t,49,0,"argumentoI",e.argumentoI)},function(n,t){n(t,27,0,t.component.configCodeMirror.fontSize),n(t,34,0,h["ɵnov"](t,39).ngClassUntouched,h["ɵnov"](t,39).ngClassTouched,h["ɵnov"](t,39).ngClassPristine,h["ɵnov"](t,39).ngClassDirty,h["ɵnov"](t,39).ngClassValid,h["ɵnov"](t,39).ngClassInvalid,h["ɵnov"](t,39).ngClassPending),n(t,46,0,h["ɵnov"](t,51).ngClassUntouched,h["ɵnov"](t,51).ngClassTouched,h["ɵnov"](t,51).ngClassPristine,h["ɵnov"](t,51).ngClassDirty,h["ɵnov"](t,51).ngClassValid,h["ɵnov"](t,51).ngClassInvalid,h["ɵnov"](t,51).ngClassPending)})}function r(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n\n            "])),(n()(),h["ɵeld"](1,0,null,null,65,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](3,0,null,null,52,"div",[["class","card-header"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵeld"](5,0,null,null,49,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;if("submit"===t){l=!1!==h["ɵnov"](n,7).onSubmit(e)&&l}if("reset"===t){l=!1!==h["ɵnov"](n,7).onReset()&&l}return l},null,null)),h["ɵdid"](6,16384,null,0,d["ɵbf"],[],null,null),h["ɵdid"](7,16384,null,0,d.NgForm,[[8,null],[8,null]],null,null),h["ɵprd"](2048,null,d.ControlContainer,null,[d.NgForm]),h["ɵdid"](9,16384,null,0,d.NgControlStatusGroup,[d.ControlContainer],null,null),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵand"](16777216,null,null,1,null,l)),h["ɵdid"](12,16384,null,0,f.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),h["ɵted"](-1,null,["\n\n                        "])),(n()(),h["ɵeld"](14,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","downloadFileButton"],["ngbPopover","Exportar (Ctrl+E)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["tiggers","click"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.downloadFile()&&l}return l},null,null)),h["ɵdid"](15,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](17,0,null,null,0,"i",[["class","fa fa-download "]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n\n                        "])),(n()(),h["ɵeld"](20,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","margin-left: 10px; float: right;"],["tiggers","click"]],null,null,null,null,null)),h["ɵdid"](21,212992,[[2,4],["popover",4]],0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](26,16777216,null,null,7,"div",[["ngbPopover","Guardar archivo (Ctrl+G)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,null,null,null,null)),h["ɵdid"](27,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](29,0,null,null,3,"button",[["class","btn btn-sm btn-secondary"]],[[8,"disabled",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.guardarArchivo()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-save"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](35,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Reiniciar intérprete (Ctrl+R)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.reiniciarInterprete()&&l}return l},null,null)),h["ɵdid"](36,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](38,0,null,null,0,"i",[["class","fa fa-refresh"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](41,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Cargar programa (Ctrl+P)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.runCode()&&l}return l},null,null)),h["ɵdid"](42,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](44,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](47,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Nuevo archivo (Ctrl+A)"],["placement","bottom"],["style","float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.seleccionarDirectorio()&&l}return l},null,null)),h["ɵdid"](48,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](50,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵand"](0,[["popoverContent",2]],null,0,null,o)),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](57,0,null,null,8,"codemirror",[["class","codemirrorPrograma"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"]],function(n,t,e){var l=!0,i=n.component;if("ngModelChange"===t){l=!1!==(i.archivo.contenido=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},v.a,v.b)),h["ɵdid"](58,278528,null,0,f.NgStyle,[h.KeyValueDiffers,h.ElementRef,h.Renderer],{ngStyle:[0,"ngStyle"]},null),h["ɵpod"](59,{"font-size":0}),h["ɵdid"](60,4374528,[[1,4]],0,g.CodemirrorComponent,[],{config:[0,"config"]},null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[g.CodemirrorComponent]),h["ɵdid"](62,671744,null,0,d.NgModel,[[8,null],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](64,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,["\n\n            "]))],function(n,t){var e=t.component;n(t,12,0,e.archivo);n(t,15,0,"Exportar (Ctrl+E)","bottom","mouseenter:mouseleave");n(t,21,0,h["ɵnov"](t,53),"Configuración","bottom");n(t,27,0,"Guardar archivo (Ctrl+G)","bottom","mouseenter:mouseleave");n(t,36,0,"Reiniciar intérprete (Ctrl+R)","bottom","mouseenter:mouseleave");n(t,42,0,"Cargar programa (Ctrl+P)","bottom","mouseenter:mouseleave");n(t,48,0,"Nuevo archivo (Ctrl+A)","bottom","mouseenter:mouseleave"),n(t,58,0,n(t,59,0,e.configCodeMirror.fontSize+"px")),n(t,60,0,e.configCodeMirror),n(t,62,0,e.archivo.contenido)},function(n,t){var e=t.component;n(t,5,0,h["ɵnov"](t,9).ngClassUntouched,h["ɵnov"](t,9).ngClassTouched,h["ɵnov"](t,9).ngClassPristine,h["ɵnov"](t,9).ngClassDirty,h["ɵnov"](t,9).ngClassValid,h["ɵnov"](t,9).ngClassInvalid,h["ɵnov"](t,9).ngClassPending),n(t,29,0,!e.modificado),n(t,57,0,h["ɵnov"](t,64).ngClassUntouched,h["ɵnov"](t,64).ngClassTouched,h["ɵnov"](t,64).ngClassPristine,h["ɵnov"](t,64).ngClassDirty,h["ɵnov"](t,64).ngClassValid,h["ɵnov"](t,64).ngClassInvalid,h["ɵnov"](t,64).ngClassPending)})}function a(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](1,0,null,null,1,"canvas-component",[],null,[[null,"canvasComp"],["window","resize"],["document","click"]],function(n,t,e){var l=!0,i=n.component;if("window:resize"===t){l=!1!==h["ɵnov"](n,2).onResize(e)&&l}if("document:click"===t){l=!1!==h["ɵnov"](n,2).documentClicked(e)&&l}if("canvasComp"===t){l=!1!==i.canvasC&&l}return l},b.a,b.b)),h["ɵdid"](2,4243456,[[3,4]],0,y.a,[C.a],null,null),(n()(),h["ɵted"](-1,null,["\n                    "]))],null,null)}function s(n){return h["ɵvid"](0,[h["ɵqud"](671088640,1,{codemirror:0}),h["ɵqud"](671088640,2,{popover:0}),h["ɵqud"](671088640,3,{canvasC:0}),(n()(),h["ɵeld"](3,0,null,null,1,"notificacion",[],null,null,null,x.a,x.b)),h["ɵdid"](4,114688,null,0,E.a,[k.a],null,null),(n()(),h["ɵted"](-1,null,[" \n"])),(n()(),h["ɵeld"](6,0,null,null,41,"div",[["class","container-fluid"],["style"," padding-left: 0px; padding-right: 0px; margin-top: -13px; margin-left: -6px; margin-right: -6px;"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n    "])),(n()(),h["ɵeld"](8,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n        "])),(n()(),h["ɵeld"](10,0,null,null,24,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵeld"](12,0,null,null,21,"ngb-tabset",[],null,null,null,R.a,R.b)),h["ɵdid"](13,2146304,null,1,S.a,[w.a],{destroyOnHide:[0,"destroyOnHide"]},null),h["ɵqud"](603979776,4,{tabs:1}),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](16,0,null,null,7,"ngb-tab",[["id","ProgramBtn"],["title","Programa"]],null,null,null,null,null)),h["ɵdid"](17,16384,[[4,4]],2,S.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,5,{contentTpl:0}),h["ɵqud"](335544320,6,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵand"](0,null,null,1,null,r)),h["ɵdid"](22,16384,[[5,4]],0,S.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](25,0,null,null,7,"ngb-tab",[["id","FigurasBtn"],["title","Figuras"]],null,null,null,null,null)),h["ɵdid"](26,16384,[[4,4]],2,S.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,7,{contentTpl:0}),h["ɵqud"](335544320,8,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵand"](0,null,null,1,null,a)),h["ɵdid"](31,16384,[[7,4]],0,S.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,[" \n\n        "])),(n()(),h["ɵted"](-1,null,["\n\n        "])),(n()(),h["ɵeld"](36,0,null,null,9,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,["\n            \n\n\n            "])),(n()(),h["ɵeld"](39,0,null,null,4,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](41,0,null,null,1,"div",[["id","console"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,[" "])),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,["\n           "])),(n()(),h["ɵted"](-1,null,["\n\n        "])),(n()(),h["ɵted"](-1,null,["\n    "])),(n()(),h["ɵted"](-1,null,["\n"])),(n()(),h["ɵted"](-1,null,["\n\n"]))],function(n,t){n(t,4,0);n(t,13,0,!1);n(t,17,0,"ProgramBtn","Programa");n(t,26,0,"FigurasBtn","Figuras")},null)}function u(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,4,"matefun",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==h["ɵnov"](n,4).documentClicked(e)&&l}return l},s,F)),h["ɵprd"](4608,null,P.a,P.a,[]),h["ɵprd"](4608,null,p.a,p.a,[]),h["ɵprd"](512,null,T.a,T.a,[M.i,X.c,Y.a]),h["ɵdid"](4,4308992,null,0,N.a,[_.a,Y.a,C.a,h.ElementRef,k.a,A.a,O.DialogService,T.a],null,null)],function(n,t){n(t,4,0)},null)}var c=e("26LX"),h=e("/oeL"),d=e("bm2B"),f=e("qbdv"),m=e("mQQt"),p=e("7zUS"),v=e("KPCT"),g=e("nfVm"),b=(e.n(g),e("kqFu")),y=e("pB18"),C=e("2qVr"),x=e("hAtc"),E=e("+iRM"),k=e("uiTn"),R=e("Vnhz"),S=e("Hjei"),w=e("+E40"),P=e("qtCd"),T=e("fdEY"),M=e("CPp0"),X=e("BkNc"),Y=e("6akk"),N=e("sRze"),_=e("dh/p"),A=e("h7Ol"),O=e("V672");e.n(O);e.d(t,"a",function(){return j});var I=[c.a],F=h["ɵcrt"]({encapsulation:0,styles:I,data:{}}),j=h["ɵccf"]("matefun",N.a,u,{},{},[])},fdEY:function(n,t,e){"use strict";var l=e("BkNc"),i=e("CPp0"),o=e("bKpL"),r=(e.n(o),e("6akk")),a=e("5v8a"),s=(e.n(a),e("xpf9")),u=(e.n(s),e("5FRs"));e.d(t,"a",function(){return c});var c=function(){function n(n,t,e){this.http=n,this.router=t,this.authService=e}return n.prototype.actualizarConfiguracion=function(n,t){var e=new i.l({"Content-Type":"application/json",Authorization:"Bearer "+this.authService.getToken()}),l=new i.g({headers:e});return this.http.put(u.a+"/servicios/usuario/"+n+"/configuracion",t,l).map(this.extractData).catch(this.handleError)},n.prototype.extractData=function(n){return n.json()||[]},n.prototype.handleError=function(n){401==n.status&&this.router.navigate(["/login"]);var t=n.message?n.message:n.status?n.status+" - "+n.statusText:"Server error";return console.error(t),o.Observable.throw(t)},n.ctorParameters=function(){return[{type:i.i},{type:l.c},{type:r.a}]},n}()},gZxW:function(n,t,e){"use strict";function l(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),r["ɵted"](1,null,["","%"]))],null,function(n,t){n(t,1,0,t.component.getPercentValue())})}function i(n){return r["ɵvid"](2,[(n()(),r["ɵted"](-1,null,["\n    "])),(n()(),r["ɵeld"](1,0,null,null,8,"div",[["class","progress"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n      "])),(n()(),r["ɵeld"](3,0,null,null,5,"div",[["aria-valuemin","0"],["role","progressbar"]],[[8,"className",0],[4,"width","%"],[1,"aria-valuenow",0],[1,"aria-valuemax",0]],null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵand"](16777216,null,null,1,null,l)),r["ɵdid"](6,16384,null,0,a.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),r["ɵncd"](null,0),(n()(),r["ɵted"](-1,null,["\n      "])),(n()(),r["ɵted"](-1,null,["\n    "])),(n()(),r["ɵted"](-1,null,["\n  "]))],function(n,t){n(t,6,0,t.component.showValue)},function(n,t){var e=t.component;n(t,3,0,r["ɵinlineInterpolate"](3,"progress-bar",e.type?" bg-"+e.type:"","",e.animated?" progress-bar-animated":"","",e.striped?" progress-bar-striped":"",""),e.getPercentValue(),e.getValue(),e.max)})}function o(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"ngb-progressbar",[],null,null,null,i,h)),r["ɵdid"](1,49152,null,0,s.a,[u.a],null,null)],null,null)}var r=e("/oeL"),a=e("qbdv"),s=e("n/Gy"),u=e("Wv1e");e.d(t,"b",function(){return h}),t.a=i;var c=[],h=r["ɵcrt"]({encapsulation:2,styles:c,data:{}});r["ɵccf"]("ngb-progressbar",s.a,o,{max:"max",animated:"animated",striped:"striped",showValue:"showValue",type:"type",value:"value"},{},["*"])},"ij+S":function(n,t,e){"use strict";var l=e("p2gU"),i=(e.n(l),e("78g9"));e.d(t,"a",function(){return r});var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),r=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.confirm=function(){var n=this,t=/^[A-Z]/;if(void 0==this.nombre||""==this.nombre)this.parent.notifService.error("Nombre de archivo invalido.");else if(t.test(this.nombre)){var e=new i.b;e.cedulaCreador=this.parent.authService.getUser().cedula,e.contenido="",e.nombre=this.nombre,e.directorio=!1,e.padreId=this.directorioActual.id,e.editable=!0,this.parent.haskellService.crearArchivo(e).subscribe(function(t){n.parent.archivo=t,n.parent.ghciService.loadFile(t.id),n.parent.sessionService.setArchivo(t)},function(t){n.parent.notifService.error(t)}),this.result=!0,this.close()}else this.parent.notifService.error("Nombre de archivo debe iniciar con mayusula.")},t.prototype.navToDir=function(n){n.directorio&&(this.directorioActual=n)},t.prototype.navBack=function(){var n=this.directorioActual.padreId,t=this.parent.sessionService.getArchivosList(),e=t.filter(function(t){return t.id===n})[0];this.directorioActual=e},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},kqFu:function(n,t,e){"use strict";function l(n){return c["ɵvid"](0,[(n()(),c["ɵted"](0,null,["\n\t\t\t","\n\t\t"]))],null,function(n,t){n(t,0,0,t.component.tipoZoomDesc)})}function i(n){return c["ɵvid"](0,[(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵeld"](1,0,null,null,23,"div",[["style","width: 8em"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),c["ɵeld"](3,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](5,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](7,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","evaluacionVertical"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarEvaluacionVertical()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tEvaluacion\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](10,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](12,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](14,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarGrilla"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarGrilla()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tGrilla\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](19,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](21,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarEjes"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarEjes()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tEjes\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t"]))],null,function(n,t){var e=t.component;n(t,7,0,e.evaluacionVertical),n(t,14,0,e.mostrarGrilla),n(t,21,0,e.mostrarEjes)})}function o(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.play()&&l}return l},null,null)),(n()(),c["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null))],null,null)}function r(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.pause()&&l}return l},null,null)),(n()(),c["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-pause"]],null,null,null,null,null))],null,null)}function a(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"ngb-progressbar",[["style","float: none"],["type","info"]],null,null,null,h.a,h.b)),c["ɵdid"](1,49152,null,0,d.a,[f.a],{type:[0,"type"],value:[1,"value"]},null)],function(n,t){var e=t.component;n(t,1,0,"info",(e.frameAnimacion+1)/e.elementosAnimacion.length*100)},null)}function s(n){return c["ɵvid"](0,[c["ɵqud"](402653184,1,{canvasRef:0}),c["ɵqud"](402653184,2,{popover:0}),(n()(),c["ɵeld"](2,0,null,null,54,"div",[["class","card"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n"])),(n()(),c["ɵted"](-1,null,["\n\t"])),(n()(),c["ɵeld"](5,0,null,null,50,"div",[["class","card-block contenedor-canvas"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](7,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["placement","bottom"],["style","float:right; margin-right: 198px; margin-top: -55px"],["triggers","mouseenter:mouseleave:click"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.cambiarTipoZoom()&&l}return l},null,null)),c["ɵdid"](8,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵted"](9,null,["",""])),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](0,[["popoverTipoZoom",2]],null,0,null,l)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](13,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom +"],["style","float:right; margin-right: 165px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMas()&&l}return l},null,null)),c["ɵdid"](14,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](15,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](17,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom -"],["style","float:right; margin-right: 132px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMenos()&&l}return l},null,null)),c["ɵdid"](18,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](19,0,null,null,0,"i",[["class","fa fa-minus"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](21,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Centrar"],["style"," float:right; margin-right: 99px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.centrarCanvas()&&l}return l},null,null)),c["ɵdid"](22,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](25,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Borrar"],["style"," float:right; margin-right: 66px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.limpiarCanvas()&&l}return l},null,null)),c["ɵdid"](26,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](27,0,null,null,0,"i",[["class","fa fa-trash"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\n\t\t"])),(n()(),c["ɵeld"](29,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Descargar PNG"],["style","float:right; margin-right: 33px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.exportImg()&&l}return l},null,null)),c["ɵdid"](30,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-download"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](33,0,null,null,1,"a",[["download","Canvas.png"],["id","dl"],["style","display: none"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["Download Canvas"])),(n()(),c["ɵted"](-1,null,["\n\n\t\t"])),(n()(),c["ɵeld"](36,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","float:right; margin-top: -55px"],["tiggers","click"]],null,null,null,null,null)),c["ɵdid"](37,212992,[[2,4],["popover",4]],0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵeld"](39,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](0,[["popoverCanvas",2]],null,0,null,i)),(n()(),c["ɵted"](-1,null,["\n\t\t\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,o)),c["ɵdid"](45,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,r)),c["ɵdid"](48,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,a)),c["ɵdid"](51,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](53,0,[[1,0],["canvasElement",1]],null,1,"canvas",[["height","2000"],["id","myCanvas"],["style","max-width: 100%;"],["width","2000"]],null,[[null,"mousemove"],[null,"touchmove"],[null,"touchstart"],[null,"touchend"],[null,"mouseleave"],[null,"mousewheel"],[null,"DOMMouseScroll"]],function(n,t,e){var l=!0,i=n.component;if("mousemove"===t){l=!1!==i.moveGraph(e)&&l}if("touchmove"===t){l=!1!==i.moveGraph(e)&&l}if("touchstart"===t){l=!1!==i.moveGraph(e)&&l}if("touchend"===t){l=!1!==i.moveGraph(e)&&l}if("mouseleave"===t){l=!1!==i.leaveCanvas(e)&&l}if("mousewheel"===t){l=!1!==i.zoomGraph(e)&&l}if("DOMMouseScroll"===t){l=!1!==i.zoomGraph(e)&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\n\t"])),(n()(),c["ɵted"](-1,null,["\n"]))],function(n,t){var e=t.component;n(t,8,0,c["ɵnov"](t,11),"bottom","mouseenter:mouseleave:click");n(t,14,0,"Zoom +","bottom","mouseenter:mouseleave");n(t,18,0,"Zoom -","bottom","mouseenter:mouseleave");n(t,22,0,"Centrar","bottom","mouseenter:mouseleave");n(t,26,0,"Borrar","bottom","mouseenter:mouseleave");n(t,30,0,"Descargar PNG","bottom","mouseenter:mouseleave");n(t,37,0,c["ɵnov"](t,42),"Configuración","bottom"),n(t,45,0,!e.animando&&e.elementosAnimacion.length>0),n(t,48,0,e.animando&&e.elementosAnimacion.length>0),n(t,51,0,e.elementosAnimacion.length>0)},function(n,t){n(t,9,0,t.component.tipoZoom)})}function u(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"canvas-component",[],null,[["window","resize"],["document","click"]],function(n,t,e){var l=!0;if("window:resize"===t){l=!1!==c["ɵnov"](n,1).onResize(e)&&l}if("document:click"===t){l=!1!==c["ɵnov"](n,1).documentClicked(e)&&l}return l},s,C)),c["ɵdid"](1,4243456,null,0,m.a,[b.a],null,null)],null,null)}var c=e("/oeL"),h=e("gZxW"),d=e("n/Gy"),f=e("Wv1e"),m=e("pB18"),p=e("mQQt"),v=e("7zUS"),g=e("qbdv"),b=e("2qVr");e.d(t,"b",function(){return C}),t.a=s;var y=[],C=c["ɵcrt"]({encapsulation:2,styles:y,data:{}});c["ɵccf"]("canvas-component",m.a,u,{},{},[])},pB18:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__=__webpack_require__("2qVr");__webpack_require__.d(__webpack_exports__,"a",function(){return CanvasComponent});var CanvasComponent=function(){function CanvasComponent(ghciService){var _this=this;this.ghciService=ghciService,this.animar_=!0,this.objetos=[],this.evaluacionVertical=!0,this.elementosAnimacion=[],this.frameAnimacion=0,this.animando=!0,this.mostrarEjes=!0,this.mostrarGrilla=!0,this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes",this.mostrarOcultarEjes=function(){this.mostrarEjes=!this.mostrarEjes,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarOcultarGrilla=function(){this.mostrarGrilla=!this.mostrarGrilla,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarEvaluacionVertical=function(){this.evaluacionVertical=!this.evaluacionVertical,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.limpiarCanvas=function(){this.animar_=!1,clearTimeout(this.timeOutRef),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context))},this.centrarCanvas=function(){this.maxX=10,this.maxY=10/this.aspectRatio,this.minX=-10,this.minY=-10/this.aspectRatio,this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitsPerTickX=1,this.unitsPerTickY=1,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=-this.minY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.cambiarTipoZoom=function(){"Todo"==this.tipoZoom?(this.tipoZoom="Abscisa",this.tipoZoomDesc="Zoom en abscisa"):"Abscisa"==this.tipoZoom?(this.tipoZoom="Ordenada",this.tipoZoomDesc="Zoom en ordenada"):(this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes")},this.generarFuncion=function(n){for(var t,e="",l=0,i=n.funs;l<i.length;l++){var o=i[l];e="var "+o.fun+" = function("+o.args.join()+"){\n return "+this.generarExpresion(o.bdy)+"}\n"+e,o.fun==n.graph&&(e+="return "+o.fun+"("+o.args.join()+");\n",t=o)}return e="("+t.args.join()+",delta,hayPunto)=>{\n"+e+"}"},this.generarExpresion=function(n){var t=this,e="";return"cnd"==n.kind?e=" ("+this.generarExpresion(n.cond)+"?"+this.generarExpresion(n.exp1)+":"+this.generarExpresion(n.exp2)+") ":"bop"==n.kind?e="=="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && hayPunto() ":"/="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) > delta ||  Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && !hayPunto()  ":"^"==n.op?" Math.pow("+this.generarExpresion(n.exp1)+","+this.generarExpresion(n.exp2)+") ":" ("+this.generarExpresion(n.exp1)+")"+n.op+"("+this.generarExpresion(n.exp2)+") ":"uop"==n.kind?e=" "+n.op+" "+this.generarExpresion(n.exp)+" ":"app"==n.kind?("cos"==n.fun?n.fun="Math.cos":"sen"==n.fun?n.fun="Math.sin":"red"==n.fun&&(n.fun="Math.round"),e=" "+n.fun+"("+n.args.map(function(n){return t.generarExpresion(n)}).join()+") "):e="tup"==n.kind?" ("+n.exps.map(function(n){return t.generarExpresion(n)}).join()+") ":"lit"==n.kind?" "+n.val+" ":"var"==n.kind?" "+n.var+" ":" undefined ",e},this.animar=function(){this.animar_=!0,(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=this.elementosAnimacion[this.frameAnimacion],this.dibujarObjetos(),this.animando&&(this.timeOutRef=setTimeout(function(){this.animando&&(this.frameAnimacion++,this.frameAnimacion>=this.elementosAnimacion.length&&(this.frameAnimacion=0),this.animar_&&this.animar())}.bind(this),1e3))},this.dibujarObjetos=function(){(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context));for(var n=0,t=this.objetos;n<t.length;n++){var e=t[n];"circulo"==e.tipo?this.drawCircle(e.x,e.y,e.r,e.color,e.rotacion):"grafica"==e.tipo?this.drawEquation(e.ecuacion,e.color,e.thickness):"rectangulo"==e.tipo?this.drawRect(e.x,e.y,e.w,e.h,e.color,e.rotacion):"texto"==e.tipo?this.drawText(e.x,e.y,e.text,e.size,e.color,e.rotacion):"poligono"==e.tipo?this.drawPolyline(!0,e.puntos,e.color,e.rotacion):"lineas"==e.tipo&&this.drawPolyline(!1,e.puntos,e.color,e.rotacion)}},this.Graph=function(n){this.config={canvasId:"myCanvas",minX:-10,minY:-10/n,maxX:10,maxY:10/n,unitsPerTickX:1,unitsPerTickY:1},this.aspectRatio=n,this.canvas=this.canvasRef,this.minX=this.config.minX,this.minY=this.config.minY,this.maxX=this.config.maxX,this.maxY=this.config.maxY,this.unitsPerTickX=this.config.unitsPerTickX,this.unitsPerTickY=this.config.unitsPerTickY,this.axisColor="#aaa",this.font="8pt Calibri",this.tickSize=10,this.context=this.canvasRef.nativeElement.getContext("2d"),this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=Math.round(Math.abs(this.minY/this.rangeY)*this.canvasRef.nativeElement.height),this.centerX=Math.round(Math.abs(this.minX/this.rangeX)*this.canvasRef.nativeElement.width),this.precision=1e3,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY},this.drawXAxis=function(n){n.save();var t=this.unitsPerTickX*this.unitX;n.font=this.font,n.textAlign="center",n.textBaseline="top";var e=this.centerX-t,l=-1*this.unitsPerTickX;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l-this.unitsPerTickX).toFixed(2)),e=Math.round(e-t);for(e=this.centerX+t,l=this.unitsPerTickX;e<this.canvas.nativeElement.width;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l+this.unitsPerTickX).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY-5),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY+5),n.stroke()),n.restore()},this.drawYAxis=function(n){n.save();var t=this.unitsPerTickY*this.unitY;n.font=this.font,n.textAlign="right",n.textBaseline="middle";var e=this.centerY-t,l=this.unitsPerTickY;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l+this.unitsPerTickY).toFixed(2)),e=Math.round(e-t);for(e=this.centerY+t,l=-1*this.unitsPerTickY;e<this.canvasRef.nativeElement.height;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l-this.unitsPerTickY).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX+5,12),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX-5,12),n.stroke()),n.restore()},this.transformContext=function(n){n.translate(this.centerX,this.centerY),n.scale(this.scaleX,-this.scaleY)},this.hayGraficas=function(){for(var n=0,t=this.objetos;n<t.length;n++){if("grafica"==t[n].tipo)return!0}return!1},this.verticalLine=function(n,t){if(this.hayGraficas()){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();this.context;this.context.moveTo(n,0),this.context.lineTo(n,this.canvasRef.nativeElement.height);for(var e=-this.centerX/this.scaleX,l=-this.centerY/this.scaleY,i=n/this.canvasRef.nativeElement.width*this.rangeX+e,o=0,r=this.objetos;o<r.length;o++){var a=r[o];if("grafica"==a.tipo){var i=Math.trunc(100*i)/100,s=a.ecuacion(i,this.rangeX/500,function(){return!0}),u=-(s+l)/this.rangeY*this.canvasRef.nativeElement.height;a.color&&(this.context.fillStyle=a.color),this.context.fillText("("+i.toFixed(2)+","+s.toFixed(2)+")",n+10,u),this.context.fillStyle="black",this.context.fillRect(n-2.5,u-2.5,5,5)}}this.context.stroke()}},this.leaveCanvas=function(n){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.moveGraph=function(n){if(1===n.buttons&&"mousemove"==n.type)this.centerX+=n.offsetX-this.lastPositionX,this.centerY+=n.offsetY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if("touchend"==n.type)1==n.touches.length&&(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY);else if("touchmove"==n.type){if(1==n.touches.length)this.centerX+=n.touches[0].clientX-this.lastPositionX,this.centerY+=n.touches[0].clientY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if(this.lastZoom&&n.touches.length>1){this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY;var t=n.touches[1].clientX,e=n.touches[1].clientY,l=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2));Math.abs(l-this.lastZoom)>2&&this.zoom((l-this.lastZoom)/15),this.lastZoom=l}}else if("touchstart"==n.type)if(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,n.touches.length>1){var t=n.touches[1].clientX,e=n.touches[1].clientY;this.lastZoom=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2))}else this.lastZoom=void 0;else this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY;if(this.evaluacionVertical){var t,e,i=this.canvasRef.nativeElement.getBoundingClientRect();n instanceof MouseEvent?(t=n.clientX-i.left,e=n.clientY-i.top):n instanceof TouchEvent&&(t=n.touches[0].clientX-i.left,e=n.touches[0].clientY-i.top),this.verticalLine(t,e)}n instanceof TouchEvent&&n.preventDefault()},this.zoomGraph=function(n){var n=window.event||n,t=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail));return this.zoom(t,n.clientX,n.clientY),!1},this.zoomMas=function(){this.zoom(1)},this.zoomMenos=function(){this.zoom(-1)},this.zoom=function(n,t,e){var l=n*this.rangeX/20,i=n*this.rangeY/20;if(!("Todo"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0||this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0)||"Abscisa"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0)||"Ordenada"==this.tipoZoom&&(this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0))){if(t&&e){var o=this.canvasRef.nativeElement.getBoundingClientRect(),r=t-o.left,a=e-o.top,s=-this.centerX/this.scaleX,u=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),c=r/this.canvasRef.nativeElement.width*this.rangeX+s,h=(1-a/this.canvasRef.nativeElement.height)*this.rangeY+u,d=Math.abs(c-this.minX)/Math.abs(this.maxX-this.minX),f=Math.abs(h-this.minY)/Math.abs(this.maxY-this.minY);"Todo"==this.tipoZoom?(this.maxX-=l*(1-d),this.maxY-=i*(1-f),this.minX+=l*d,this.minY+=i*f):"Abscisa"==this.tipoZoom?(this.maxX-=l*(1-d),this.minX+=l*d):(this.maxY-=i*(1-f),this.minY+=i*f)}else"Todo"==this.tipoZoom?(this.maxX-=l,this.maxY-=i,this.minX+=l,this.minY+=i):"Abscisa"==this.tipoZoom?(this.maxX-=l,this.minX+=l):(this.maxY-=i,this.minY+=i);this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.rangeX>15?this.unitsPerTickX=Math.round(this.rangeX/15):this.rangeX>4?this.unitsPerTickX=1:this.rangeX>1.5?this.unitsPerTickX=Math.round(this.rangeX/15*10)/10:this.rangeX>.4?this.unitsPerTickX=.1:this.rangeX>.15?this.unitsPerTickX=Math.round(this.rangeX/15*100)/100:this.unitsPerTickX=.01,this.rangeY>15?this.unitsPerTickY=Math.round(this.rangeY/15):this.rangeY>4?this.unitsPerTickY=1:this.rangeY>1.5?this.unitsPerTickY=Math.round(this.rangeY/15*10)/10:this.rangeY>.4?this.unitsPerTickY=.1:this.rangeY>.15?this.unitsPerTickY=Math.round(this.rangeY/15*100)/100:this.unitsPerTickY=.01,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=this.maxY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()}},this.drawCircle=function(n,t,e,l,i){var o=this.context;o.save(),o.save(),this.transformContext(o),o.beginPath();try{o.translate(0,0);var r=i*Math.PI/180,a=Math.cos(r)*n-Math.sin(r)*t,s=Math.sin(r)*n+Math.cos(r)*t;o.rotate(-r),this.context.arc(a,s,e,0,2*Math.PI,!1),l&&(o.fillStyle=l,o.fill())}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawText=function(n,t,e,l,i,o){this.context.save();var r=-this.centerX/this.scaleX,a=-this.centerY/this.scaleY,s=-(t+a)/this.rangeY*this.canvasRef.nativeElement.height,u=(n-r)/this.rangeX*this.canvasRef.nativeElement.width;i&&(this.context.fillStyle=i),this.context.translate(u,s);var c=o*Math.PI/180;this.context.rotate(c),this.context.font=100*l/this.rangeX+"pt Arial",this.context.textBaseline="middle",this.context.textAlign="center",this.context.fillText(e,0,0),this.context.restore()},this.drawRect=function(n,t,e,l,i,o){var r=this.context;r.save(),r.save(),this.transformContext(r),r.beginPath();try{r.translate(0,0);var a=o*Math.PI/180,s=Math.cos(a)*n-Math.sin(a)*t,u=Math.sin(a)*n+Math.cos(a)*t;r.rotate(-a),r.rect(s-e/2,u-l/2,e,l),i&&(r.fillStyle=i,r.fill()),r.translate(this.centerX,this.centerY)}catch(n){this.limpiarCanvas()}r.restore(),r.lineJoin="round",r.lineWidth=this.thickness,r.strokeStyle=this.color,r.stroke(),r.restore()},this.drawElipse=function(n,t,e,l,i){var o=this.context;this.color="green",this.thickness=3,o.save(),o.save(),this.transformContext(o),o.beginPath();try{this.context.ellipse(n,t,e,l,i*Math.PI/180,0,2*Math.PI)}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawEquation=function(n,t,e){var l=this.context;l.save(),l.save(),this.transformContext(l),l.beginPath(),l.lineWidth=e;try{var i=n(this.minX);i>1e7?i=1e7:i<-1e7&&(i=-1e7),l.moveTo(this.minX,i);for(var o=!0,r=void 0,a=void 0,s=void 0,u=(this.precision,this.rangeX/this.precision),c=this.rangeX/200,h=this.minX+this.iteration;h<=this.maxX;h+=this.iteration)try{var d=!1,f=function(){return d=!0,!0},m=n(h,u,f);if(d)this.context.fillRect(h-c/2,m-c/2,c,c),o=!0,d=!1;else{if(void 0!=s){var p=Math.tan(Math.atan(s)+Math.PI/8),v=Math.tan(Math.atan(s)-Math.PI/8);s>0&&p<0&&(p=1e20),s<0&&v>0&&(v=-1e20);var g=(h-r)*p-(m-a),b=(h-r)*v-(m-a);(g<0||b>0)&&(o=!0)}r&&(s=(m-a)/(h-r));var y=m;m>1e7?y=1e7:m<-1e7&&(y=-1e7),o?(l.moveTo(h,y),o=!1):l.lineTo(h,y)}r=h,a=m}catch(n){o=!0}}catch(n){this.limpiarCanvas()}l.restore(),l.lineJoin="bevel",l.lineWidth=e,l.strokeStyle=t,l.stroke(),l.restore()},this.drawPolyline=function(n,t,e,l){var i=this.context;i.save(),i.save(),this.transformContext(i),i.beginPath();try{if(t.length>1){var o=t[0];i.moveTo(o[0],o[1]);for(var r=0,a=t;r<a.length;r++){var s=a[r];i.lineTo(s[0],s[1])}n&&i.lineTo(o[0],o[1])}}catch(n){this.limpiarCanvas()}i.restore(),i.lineJoin="round",i.strokeStyle=e,e&&(i.fillStyle=e,i.fill()),i.strokeStyle="black",i.stroke(),i.restore()},ghciService.messages.subscribe(function(canvas){if(_this.limpiarCanvas(),"canvas"==canvas.tipo)_this.objetos=JSON.parse(canvas.resultado),_this.elementosAnimacion=[],_this.frameAnimacion=0,_this.dibujarObjetos();else if("animacion"==canvas.tipo)_this.elementosAnimacion=canvas.resultado.map(function(n){return JSON.parse(n)}),_this.frameAnimacion=0,_this.animando=!0,_this.animar();else if("graph"==canvas.tipo){var jsonCanvas=JSON.parse(canvas.resultado),fun=_this.generarFuncion(jsonCanvas);_this.objetos=[{tipo:"grafica",ecuacion:eval(fun),color:"black",thickness:2}],_this.dibujarObjetos()}},function(n){_this.objetos=[]})}return CanvasComponent.prototype.onResize=function(n){if(this.canvasRef.nativeElement.offsetParent){var t=window.devicePixelRatio||1;t>2?t=2:t<1&&(t=1),this.canvasRef.nativeElement.width=this.canvasRef.nativeElement.offsetParent.offsetWidth*t*.94,this.canvasRef.nativeElement.height=this.canvasRef.nativeElement.offsetParent.offsetHeight*t*.94;var e=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(e),this.dibujarObjetos()}},CanvasComponent.prototype.exportImg=function(){function n(){var n;n=document.getElementById("myCanvas");var t=n.toDataURL("image/png");t=t.replace(/^data:image\/[^;]*/,"data:application/octet-stream"),t=t.replace(/^data:application\/octet-stream/,"data:application/octet-stream;headers=Content-Disposition%3A%20attachment%3B%20filename=Canvas.png"),this.href=t}document.getElementById("dl").addEventListener("click",n,!1),document.getElementById("dl").click()},CanvasComponent.prototype.ngAfterViewInit=function(){this.canvasRef.nativeElement.width=.94*this.canvasRef.nativeElement.offsetParent.offsetWidth,this.canvasRef.nativeElement.height=.94*this.canvasRef.nativeElement.offsetParent.offsetHeight;var n=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(n),this.dibujarObjetos()},CanvasComponent.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},CanvasComponent.prototype.play=function(){this.animando=!0,this.animar()},CanvasComponent.prototype.pause=function(){this.animando=!1},CanvasComponent.ctorParameters=function(){return[{type:__WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__.a}]},CanvasComponent}()},ppY8:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){function t(n,t,e){var l,i=n.getWrapperElement();return l=i.appendChild(document.createElement("div")),l.className=e?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?l.innerHTML=t:l.appendChild(t),l}function e(n,t){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=t}n.defineExtension("openDialog",function(l,i,o){function r(n){if("string"==typeof n)h.value=n;else{if(u)return;u=!0,s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}o||(o={}),e(this,null);var a,s=t(this,l,o.bottom),u=!1,c=this,h=s.getElementsByTagName("input")[0];return h?(h.focus(),o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&n.on(h,"input",function(n){o.onInput(n,h.value,r)}),o.onKeyUp&&n.on(h,"keyup",function(n){o.onKeyUp(n,h.value,r)}),n.on(h,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,h.value,r)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(h.blur(),n.e_stop(t),r()),13==t.keyCode&&i(h.value,t))}),!1!==o.closeOnBlur&&n.on(h,"blur",r)):(a=s.getElementsByTagName("button")[0])&&(n.on(a,"click",function(){r(),c.focus()}),!1!==o.closeOnBlur&&n.on(a,"blur",r),a.focus()),r}),n.defineExtension("openConfirm",function(l,i,o){function r(){u||(u=!0,a.parentNode.removeChild(a),c.focus())}e(this,null);var a=t(this,l,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,c=this,h=1;s[0].focus();for(var d=0;d<s.length;++d){var f=s[d];!function(t){n.on(f,"click",function(e){n.e_preventDefault(e),r(),t&&t(c)})}(i[d]),n.on(f,"blur",function(){--h,setTimeout(function(){h<=0&&r()},200)}),n.on(f,"focus",function(){++h})}}),n.defineExtension("openNotification",function(l,i){function o(){s||(s=!0,clearTimeout(r),a.parentNode.removeChild(a))}e(this,o);var r,a=t(this,l,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;return n.on(a,"click",function(t){n.e_preventDefault(t),o()}),u&&(r=setTimeout(o,u)),o})})},qtCd:function(n,t,e){"use strict";var l=e("Dqrr");e.n(l);e.d(t,"a",function(){return i});var i=function(){function n(){}return n.prototype.connect=function(n){return this.subject||(this.subject=this.create(n),console.log("Successfully connected: "+n)),this.subject},n.prototype.create=function(n){var t=new WebSocket(n),e=l.Observable.create(function(n){return t.onmessage=n.next.bind(n),t.onerror=n.error.bind(n),t.onclose=n.complete.bind(n),t.close.bind(t)}),i={next:function(n){t.readyState===WebSocket.OPEN?t.send(JSON.stringify(n)):console.log("Se perdio la conexion")}};return l.Subject.create(i,e)},n.ctorParameters=function(){return[]},n}()},s6Yw:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},sRze:function(n,t,e){"use strict";var l=e("/oeL"),i=e("dh/p"),o=e("fdEY"),r=e("h7Ol"),a=e("2qVr"),s=e("6akk"),u=e("78g9"),c=e("HXxp"),h=e("UfLB"),d=e("ij+S"),f=e("p2gU"),m=(e.n(f),e("uiTn")),p=e("xpf9"),v=(e.n(p),e("5v8a")),g=(e.n(v),e("WC4F")),b=(e.n(g),e("lDY9")),y=(e.n(b),e("99fb")),C=(e.n(y),e("H6+I")),x=(e.n(C),e("oiK7")),E=(e.n(x),e("L8b4")),k=(e.n(E),e("ppY8")),R=(e.n(k),e("tyH6")),S=(e.n(R),e("Qdk6")),w=(e.n(S),e("EZ6d"));e.n(w);e.d(t,"a",function(){return X});var P,T,M,X=function(){function n(n,t,e,l,i,o,r,a){if(this.haskellService=n,this.authService=t,this.ghciService=e,this.elRef=l,this.notifService=i,this.sessionService=o,this.dialogService=r,this.usuarioService=a,this.consoleDisable=!1,this.consolaVisible=!0,this.cursorLabelInit=!1,this.entrada="",this.modificado=!1,this.argumentoI=!1,this.argumentoF=!1,this.editableLoaded=!1,this.editDialogFired=!1,this.code="",this.configCodeMirror={readOnly:!1,lineNumbers:!0,lineWrapping:!0,extraKeys:{"Ctrl-Space":"autocomplete"},mode:{name:"matefun",globalVars:!0},gutters:["CodeMirror-linenumbers","breakpoints"],theme:"dracula",fontSize:12},this.themes=["3024-day","3024-night","abcdef","ambiance-mobile","ambiance","base16-dark","base16-light","bespin","blackboard","cobalt","colorforth","dracula","duotone-dark","duotone-light","eclipse","elegant","erlang-dark","hopscotch","icecoder","isotope","lesser-dark","liquibyte","material","mbo","mdn-like","midnight","monokai","neat","neo","night","panda-syntax","paraiso-dark","paraiso-light","pastel-on-dark","railscasts","rubyblue","seti","solarized","the-matrix","tomorrow-night-bright","tomorrow-night-eighties","ttcn","twilight","vibrant-ink","xq-dark","xq-light","yeti","zenburn"],this.funcionSTR="Math.sin(x)*x*x-20",this.consola="",this.command="",this.tipo=1,this.onKey=function(n){this.funcionSTR=n,this.archivo.contenido=n},this.writeCommand=function(n){this.command=n.split("\n")[n.split("\n").length-1]},this.selectFunction=function(){this.tipo=1,this.funcionSTR="Math.sin(x)*x*x-20"},this.selectElipse=function(){this.tipo=2,this.funcionSTR="elipse(x,y,radioX, radioY, rotacion_en_grados)"},this.selectCircle=function(){this.tipo=3,this.funcionSTR="circulo(x,y,radio)"},this.elipse=function(n,t,e,l,i){return[n,t,e,l,i]},this.circulo=function(n,t,e){return[n,t,e]},this.archivo=o.getArchivo(),this.archivo&&this.archivo.id||this.newFile(),this.copiaContenidoArchivo=this.archivo.contenido,this.copiaNombreArchivo=this.archivo.nombre,t.getUser().configuracion){var s=t.getUser().configuracion;s.fontSizeEditor<=30&&s.fontSizeEditor>=8&&(this.configCodeMirror.fontSize=s.fontSizeEditor),this.themes.some(function(n){return n==s.themeEditor})&&(this.configCodeMirror.theme=s.themeEditor),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror)),this.argumentoI=s.argumentoI,this.argumentoF=s.argumentoF}this.code="my code"}return n.prototype.updateConfig=function(n){this.configCodeMirror.theme=n,this.codemirror.instance.setOption("theme",n),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror))},n.prototype.lockSaveButton=function(){this.copiaNombreArchivo=this.archivo.nombre,this.copiaContenidoArchivo=this.archivo.contenido,this.modificado=!1},n.prototype.showConfirm=function(){this.dialogService.addDialog(h.a,{title:"Está intentando editar un archivo de solo lectura",message:"Está editando un archivo de solo lectura, desea continuar?"}).subscribe(function(n){n&&(P.options.readOnly=!1,T.editDialogFired=!0)})},n.prototype.makePanel=function(){var n=document.createElement("div");n.id="cursorpos-panel",n.className="panel bottom",this.cursorPanelLabel=n.appendChild(document.createElement("span"));var t=this.codemirror.instance,e=t.getCursor().line,l=t.getCursor().ch;e=(Number(e)+1).toString(),l=(Number(l)+1).toString(),this.cursorPanelLabel.textContent="Posición del cursor: ("+e+","+l+")",this.cursorPanel=this.codemirror.instance.addPanel(n,{position:"bottom",stable:!0});var i=this;this.codemirror.instance.on("cursorActivity",function(n){var t=n.getCursor().line,e=n.getCursor().ch;t=(Number(t)+1).toString(),e=(Number(e)+1).toString(),i.cursorPanel.node.innerText="Posición del cursor: ("+t+","+e+")"}),this.codemirror.instance.on("keyHandled",function(n,t,e){"Digit1"===t.code&&t.ctrlKey&&t.shiftKey?i.seleccionarDirectorio():"Digit2"===t.code&&t.ctrlKey&&t.shiftKey&&i.saveConfig()}),this.codemirror.instance.on("keypress",function(n,t,e){!i.editDialogFired&&"docente"===JSON.parse(sessionStorage.currentUser).tipo&&n.options.readOnly&&(P=i.codemirror.instance,T=i,i.showConfirm())})},n.prototype.saveConfig=function(){var n=this,t=new c.a;t.themeEditor=this.configCodeMirror.theme,t.fontSizeEditor=this.configCodeMirror.fontSize;var e=this.authService.getUserConfig(),l=e.argumentoF!=this.argumentoF||e.argumentoI!=this.argumentoI;t.argumentoF=this.argumentoF,t.argumentoI=this.argumentoI,this.usuarioService.actualizarConfiguracion(this.authService.getUser().cedula,t).subscribe(function(t){n.popover.close(),n.authService.setUserConfig(t),l&&n.reiniciarInterprete()},function(t){n.notifService.error(t),n.popover.close()})},n.prototype.aumentarFuente=function(){this.configCodeMirror.fontSize<30&&this.configCodeMirror.fontSize++},n.prototype.disminuirFuente=function(){this.configCodeMirror.fontSize>8&&this.configCodeMirror.fontSize--},n.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},n.prototype.ngOnInit=function(){function n(n){var t=window.event?event:n;if(90==t.keyCode&&t.ctrlKey,"a"===t.key.toLowerCase()&&t.ctrlKey)return T.seleccionarDirectorio(),!1;if("e"===t.key.toLowerCase()&&t.ctrlKey)return T.downloadFile(),!1;if("r"===t.key.toLowerCase()&&t.ctrlKey)return T.reiniciarInterprete(),!1;if("g"===t.key.toLowerCase()&&t.ctrlKey)return T.guardarArchivo(),!1;if("o"===t.key.toLowerCase()&&t.ctrlKey)return document.getElementById("popover").click(),!1;if(t.ctrlKey&&t.altKey&&"p"===t.key.toLowerCase()){document.getElementById("ProgramBtn").click();var e=T;return setTimeout(function(){e.codemirror.instance.focus()},250),T.codemirror.instance.focus(),M="program",!1}return t.ctrlKey&&t.altKey&&"c"===t.key.toLowerCase()?(T.ghciService.focusConsole(),M="consola",!1):t.ctrlKey&&t.altKey&&"f"===t.key.toLowerCase()?(document.getElementById("FigurasBtn").click(),T.ghciService.focusConsole(),M="graficas",!1):"p"===t.key.toLowerCase()&&t.ctrlKey&&!t.altKey?(T.runCode(),!1):void 0}var t=this;this.ghciService.rendered(),this.haskellService.getArchivos(this.authService.getUser().cedula).subscribe(function(n){t.buildTreeFromList(n)},function(n){return console.log("Error al obtener los archivos del alumno")}),document.onkeydown=n},n.prototype.ngAfterViewInit=function(){if(T=this,null==this.codemirror.instance||this.cursorLabelInit||(this.cursorLabelInit=!0,this.codemirror.instance.setOption("theme",this.configCodeMirror.theme),this.makePanel()),!this.editableLoaded&&null!=this.codemirror.instance&&void 0!==this.sessionService.archivo.editable)try{var n=this.sessionService.archivo.editable&&("Edicion"==this.sessionService.archivo.estado||"Devuelto"==this.sessionService.archivo.estado);this.codemirror.instance.options.readOnly=!n,this.editableLoaded=!0}catch(n){return}},n.prototype.htmlEncode=function(n){return n.replace("Prelude> ","").replace(/&/g,"&amp;").replace(/\s/g,"&nbsp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},n.prototype.inputConsola=function(n){this.entrada=n},n.prototype.newFile=function(){this.archivo=new u.b,this.archivo.cedulaCreador=this.authService.getUser().cedula,this.archivo.contenido="",this.archivo.nombre="",this.copiaNombreArchivo="",this.copiaContenidoArchivo=""},n.prototype.archivoModificado=function(){this.copiaNombreArchivo!=this.archivo.nombre||this.copiaContenidoArchivo!=this.archivo.contenido?this.modificado=!0:this.modificado=!1},n.prototype.guardarArchivo=function(){var n=this,t=/^[A-Z]/;""==this.archivo.nombre.trim()?this.notifService.error("Nombre de archivo sin especificar"):t.test(this.archivo.nombre)?this.archivo.id?this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.notifService.error("Nombre de archivo debe iniciar con mayusula.")},n.prototype.runCode=function(){var n=this;this.ghciService.setCodemirrorRef(this.codemirror.instance),this.ghciService.resetGutters();var t=/^[A-Z]/;if(""==this.archivo.nombre.trim())this.notifService.error("Nombre de archivo sin especificar");else if(t.test(this.archivo.nombre)){var e=this.sessionService.cargarDependencias(this.archivo);if("miss"===e.status)return void this.ghciService.outputConsole("Error: No se encuentra el archivo "+e.nombre+"\n");if(this.archivo.id)if(this.archivo.editable||"docente"==this.authService.getUser().tipo)this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t;var e=n.sessionService.getDependencias(),l=[];for(var i in e)l.push(e[i].id);l.some(function(n){return n==t.id})||l.push(t.id),n.lockSaveButton(),n.ghciService.loadFile(t.id,l)},function(t){n.notifService.error(t)});else{var l=this.sessionService.getDependencias(),i=[];for(var o in l)i.push(l[o].id);i.some(function(t){return t==n.archivo.id})||i.push(this.archivo.id),this.ghciService.loadFile(this.archivo.id,i)}else this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton(),n.ghciService.loadFile(t.id,[])},function(t){n.notifService.error(t)})}else this.notifService.error("Nombre de archivo debe iniciar con mayusula.");this.ghciService.focusConsole()},n.prototype.download=function(n,t){var e=document.createElement("a");e.setAttribute("href","data:application/octet-stream,"+encodeURIComponent(t)),e.setAttribute("download",n+".mf"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},n.prototype.downloadFile=function(){var n=this.archivo.nombre,t=this.archivo.contenido;void 0!=n&&""!=n&&void 0!=t&&""!=t&&this.download(n,t)},n.prototype.reiniciarInterprete=function(){this.ghciService.reiniciarInterprete()},n.prototype.toggleConsole=function(){this.consolaVisible=!this.consolaVisible},n.prototype.seleccionarDirectorio=function(){this.archivosTree=this.sessionService.getArchivos(void 0);this.dialogService.addDialog(d.a,{title:"",message:"",archivos:this.archivosTree,directorioActual:this.archivosTree,nombre:"",parent:this}).subscribe(function(n){})},n.prototype.buildTreeFromList=function(n){this.sessionService.setArchivosList(n);var t;for(var e in n){var l=n[e];-1===l.padreId&&(t=l)}this.idRecorridos=[t.id];var i=n.filter(function(n){return n.id!==t.id}),o=this.buildTree(i,t);this.archivosTree=o,this.sessionService.setArchivosTree(o)},n.prototype.buildTree=function(n,t){t.archivos=this.getArchivos(t.id,n);for(var e in t.archivos)if(t.archivos[e].directorio&&void 0===this.idRecorridos[t.archivos[e].id]){var l=t.archivos[e].id,i=n.filter(function(n){return n.id!==l});t.archivos[e]=this.buildTree(i,t.archivos[e])}return t},n.prototype.getArchivos=function(n,t){return t.filter(function(t){return t.padreId===n})},n.ctorParameters=function(){return[{type:i.a},{type:s.a},{type:a.a},{type:l.ElementRef},{type:m.a},{type:r.a},{type:f.DialogService},{type:o.a}]},n}()},tyH6:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("La8y"))}(function(n){"use strict";function t(n,t,e,l){this.cm=n,this.options=l;var i={listenForChanges:!1};for(var o in l)i[o]=l[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=n.annotateScrollbar(i),this.query=t,this.caseFold=e,this.gap={from:n.firstLine(),to:n.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var r=this;n.on("change",this.changeHandler=function(n,t){r.onChange(t)})}function e(n,t,e){return n<=t?n:Math.max(t,n+e)}n.defineExtension("showMatchesOnScrollbar",function(n,e,l){return"string"==typeof l&&(l={className:l}),l||(l={}),new t(this,n,e,l)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var e=this.matches[t];if(e.from.line>=this.gap.to)break;e.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var l=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),this.caseFold),i=this.options&&this.options.maxMatches||1e3;l.findNext();){var e={from:l.from(),to:l.to()};if(e.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,e),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var l=t.from.line,i=n.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(e(this.gap.from,l,o),t.from.line),this.gap.to=Math.max(e(this.gap.to,l,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var r=0;r<this.matches.length;r++){var a=this.matches[r],s=e(a.from.line,l,o);s!=a.from.line&&(a.from=n.Pos(s,a.from.ch));var u=e(a.to.line,l,o);u!=a.to.line&&(a.to=n.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})}});
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/1.41cb59b8f355e9241f05.chunk.js b/Servidor JEE/WebContent/1.41cb59b8f355e9241f05.chunk.js
deleted file mode 100644
index afad40fa0f9890b94d482c4529f6cb6ca2254f66..0000000000000000000000000000000000000000
--- a/Servidor JEE/WebContent/1.41cb59b8f355e9241f05.chunk.js	
+++ /dev/null
@@ -1 +0,0 @@
-webpackJsonp([1],{"1F35":function(n,t,e){"use strict";var l=e("sRze");e.d(t,"a",function(){return i});var i=(l.a,function(){function n(){}return n}())},"26LX":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=["#svgHaskell[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%!important;height:100%!important}"]},DVtk:function(n,t,e){"use strict";function l(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,26,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                "])),(n()(),o["ɵeld"](2,0,null,null,23,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵeld"](4,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](6,0,null,null,1,"button",[["class","close"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["×"])),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵeld"](11,0,null,null,4,"div",[["class","modal-body"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](13,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),o["ɵted"](14,null,["",""])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵeld"](17,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](19,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Editar"])),(n()(),o["ɵted"](-1,null,["\n                     "])),(n()(),o["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),o["ɵted"](-1,null,["Cancelar"])),(n()(),o["ɵted"](-1,null,["\n                   "])),(n()(),o["ɵted"](-1,null,["\n                 "])),(n()(),o["ɵted"](-1,null,["\n              "]))],null,function(n,t){n(t,14,0,t.component.message||"")})}function i(n){return o["ɵvid"](0,[(n()(),o["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,l,u)),o["ɵdid"](1,180224,null,0,r.a,[a.DialogService],null,null)],null,null)}var o=e("/oeL"),r=e("UfLB"),a=e("V672");e.n(a);e.d(t,"a",function(){return c});var s=[],u=o["ɵcrt"]({encapsulation:2,styles:s,data:{}}),c=o["ɵccf"]("confirm",r.a,i,{},{},[])},EZ6d:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";n.defineMode("matefun",function(n,t){function e(n,t,e){return t(e),e(n,t)}function l(n,t){if(n.eatWhile(p))return null;var l=n.next();if(m.test(l)){if("{"==l&&n.eat("-")){var r="comment";return n.eat("#")&&(r="meta"),e(n,t,i(r,1))}return null}if("'"==l)return n.eat("\\"),n.next(),n.eat("'")?"string":"string error";if('"'==l)return e(n,t,o);if(s.test(l))return n.eatWhile(d),n.eat(".")?"qualifier":"variable-2";if(a.test(l))return n.eatWhile(d),"variable";if(u.test(l)){if("0"==l){if(n.eat(/[xX]/))return n.eatWhile(c),"integer";if(n.eat(/[oO]/))return n.eatWhile(h),"number"}n.eatWhile(u);var r="number";return n.match(/^\.\d+/)&&(r="number"),n.eat(/[eE]/)&&(r="number",n.eat(/[-+]/),n.eatWhile(u)),r}if("."==l&&n.eat("."))return"keyword";if(f.test(l)){if("-"==l&&n.eat(/-/)&&(n.eatWhile(/-/),!n.eat(f)))return n.skipToEnd(),"comment";var r="variable";return":"==l&&(r="variable-2"),n.eatWhile(f),r}return"error"}function i(n,t){return 0==t?l:function(e,o){for(var r=t;!e.eol();){var a=e.next();if("{"==a&&e.eat("-"))++r;else if("-"==a&&e.eat("}")&&0==--r)return o(l),n}return o(i(n,r)),n}}function o(n,t){for(;!n.eol();){var e=n.next();if('"'==e)return t(l),"string";if("\\"==e){if(n.eol()||n.eat(p))return t(r),"string";n.eat("&")||n.next()}}return t(l),"string error"}function r(n,t){return n.eat("\\")?e(n,t,o):(n.next(),t(l),"error")}var a=/[a-z_]/,s=/[A-Z]/,u=/\d/,c=/[0-9A-Fa-f]/,h=/[0-7]/,d=/[a-z_A-Z0-9'\xa1-\uffff]/,f=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,p=/[ \t\v\f]/,v=function(){function n(n){return function(){for(var t=0;t<arguments.length;t++)e[arguments[t]]=n}}var e={};n("keyword")("incluir","conj","en","si","o","esVacia"),n("keyword")("<-","->"),n("builtin")("-","+","*","/","^","!",":","==","/=","<",">","<=",">=","::","->","X","|"),n("builtin")("Rojo","Verde","Azul","Negro","Blanco","Gris","Amarillo","FigVacia","[]","R","Fig","Color"),n("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var l=t.overrideKeywords;if(l)for(var i in l)l.hasOwnProperty(i)&&(e[i]=l[i]);return e}();return{startState:function(){return{f:l}},copyState:function(n){return{f:n.f}},token:function(n,t){var e=t.f(n,function(n){t.f=n}),l=n.current();return v.hasOwnProperty(l)?v[l]:e},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),n.defineMIME("text/x-matefun","matefun")})},EfLl:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},HXxp:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}();!function(){function n(){}}()},L8b4:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("ppY8"))}(function(n){"use strict";function t(n,t){return"string"==typeof n?n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):n.global||(n=new RegExp(n.source,n.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var e=n.exec(t.string);if(e&&e.index==t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}}function e(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function l(n){return n.state.search||(n.state.search=new e)}function i(n){return"string"==typeof n&&n==n.toLowerCase()}function o(n,t,e){return n.getSearchCursor(t,e,{caseFold:i(t),multiline:!0})}function r(n,t,e,l,i){n.openDialog(t,l,{value:e,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(n)},onKeyDown:i})}function a(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function s(n,t,e,l){n.openConfirm?n.openConfirm(t,l):confirm(e)&&l[0]()}function u(n){return n.replace(/\\(.)/g,function(n,t){return"n"==t?"\n":"r"==t?"\r":t})}function c(n){var t=n.match(/^\/(.*)\/([a-z]*)$/);if(t)try{n=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else n=u(n);return("string"==typeof n?""==n:n.test(""))&&(n=/x^/),n}function h(n,e,l){e.queryText=l,e.query=c(l),n.removeOverlay(e.overlay,i(e.query)),e.overlay=t(e.query,i(e.query)),n.addOverlay(e.overlay),n.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=n.showMatchesOnScrollbar(e.query,i(e.query)))}function d(t,e,i,o){var s=l(t);if(s.query)return f(t,e);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var c=null,d=function(e,l){n.e_stop(l),e&&(e!=s.queryText&&(h(t,s,e),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),f(t,l.shiftKey,function(n,e){var l;e.line<3&&document.querySelector&&(l=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&l.getBoundingClientRect().bottom-4>t.cursorCoords(e,"window").top&&((c=l).style.opacity=.4)}))};r(t,g,u,d,function(e,i){var o=n.keyName(e),r=t.getOption("extraKeys"),a=r&&r[o]||n.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(n.e_stop(e),h(t,l(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(n.e_stop(e),d(i,e))}),o&&u&&(h(t,s,u),f(t,e))}else a(t,g,"Search for:",u,function(n){n&&!s.query&&t.operation(function(){h(t,s,n),s.posFrom=s.posTo=t.getCursor(),f(t,e)})})}function f(t,e,i){t.operation(function(){var r=l(t),a=o(t,r.query,e?r.posFrom:r.posTo);(a.find(e)||(a=o(t,r.query,e?n.Pos(t.lastLine()):n.Pos(t.firstLine(),0)),a.find(e)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),r.posFrom=a.from(),r.posTo=a.to(),i&&i(a.from(),a.to()))})}function m(n){n.operation(function(){var t=l(n);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,n.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function p(n,t,e){n.operation(function(){for(var l=o(n,t);l.findNext();)if("string"!=typeof t){var i=n.getRange(l.from(),l.to()).match(t);l.replace(e.replace(/\$(\d)/g,function(n,t){return i[t]}))}else l.replace(e)})}function v(n,t){if(!n.getOption("readOnly")){var e=n.getSelection()||l(n).lastQuery,i='<span class="CodeMirror-search-label">'+(t?"Replace all:":"Replace:")+"</span>";a(n,i+b,i,e,function(e){e&&(e=c(e),a(n,y,"Replace with:","",function(l){if(l=u(l),t)p(n,e,l);else{m(n);var i=o(n,e,n.getCursor("from")),r=function(){var t,u=i.from();!(t=i.findNext())&&(i=o(n,e),!(t=i.findNext())||u&&i.from().line==u.line&&i.from().ch==u.ch)||(n.setSelection(i.from(),i.to()),n.scrollIntoView({from:i.from(),to:i.to()}),s(n,C,"Replace?",[function(){a(t)},r,function(){p(n,e,l)}]))},a=function(n){i.replace("string"==typeof e?l:l.replace(/\$(\d)/g,function(t,e){return n[e]})),r()};r()}}))})}}var g='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',b=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',C='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';n.commands.find=function(n){m(n),d(n)},n.commands.findPersistent=function(n){m(n),d(n,!1,!0)},n.commands.findPersistentNext=function(n){d(n,!1,!0,!0)},n.commands.findPersistentPrev=function(n){d(n,!0,!0,!0)},n.commands.findNext=d,n.commands.findPrev=function(n){d(n,!0)},n.commands.clearSearch=m,n.commands.replace=v,n.commands.replaceAll=function(n){v(n,!0)}})},La8y:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n,t){function e(n){clearTimeout(l.doRedraw),l.doRedraw=setTimeout(function(){l.redraw()},n)}this.cm=n,this.options=t,this.buttonHeight=t.scrollButtonHeight||n.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=n.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var l=this;n.on("refresh",this.resizeHandler=function(){clearTimeout(l.doUpdate),l.doUpdate=setTimeout(function(){l.computeScale()&&e(20)},100)}),n.on("markerAdded",this.resizeHandler),n.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&n.on("change",this.changeHandler=function(){e(250)})}n.defineExtension("annotateScrollbar",function(n){return"string"==typeof n&&(n={className:n}),new t(this,n)}),n.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var n=this.cm,t=(n.getWrapperElement().clientHeight-n.display.barHeight-2*this.buttonHeight)/n.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(n){this.annotations=n,this.redraw()},t.prototype.redraw=function(n){function t(n,t){return s!=n.line&&(s=n.line,u=e.getLineHandle(s)),u.widgets&&u.widgets.length||r&&u.height>a?e.charCoords(n,"local")[t?"top":"bottom"]:e.heightAtLine(u,"local")+(t?0:u.height)}!1!==n&&this.computeScale();var e=this.cm,l=this.hScale,i=document.createDocumentFragment(),o=this.annotations,r=e.getOption("lineWrapping"),a=r&&1.5*e.defaultTextHeight(),s=null,u=null,c=e.lastLine();if(e.display.barWidth)for(var h,d=0;d<o.length;d++){var f=o[d];if(!(f.to.line>c)){for(var m=h||t(f.from,!0)*l,p=t(f.to,!1)*l;d<o.length-1&&!(o[d+1].to.line>c)&&!((h=t(o[d+1].from,!0)*l)>p+.9);)f=o[++d],p=t(f.to,!1)*l;if(p!=m){var v=Math.max(p-m,3),g=i.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(m+this.buttonHeight)+"px; height: "+v+"px",g.className=this.options.className,f.id&&g.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}})},OR9o:function(n,t,e){"use strict";function l(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-folder"],["style","margin-right:10px; font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function i(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-file-text"],["style","margin-right:10px;font-size: 3em; cursor: pointer;"]],null,null,null,null,null))],null,null)}function o(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,7,"button",[["class","list-group-item list-group-item-action"],["style","cursor:pointer"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navToDir(n.context.$implicit)&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["\n                                  "])),(n()(),s["ɵand"](16777216,null,null,1,null,l)),s["ɵdid"](3,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](-1,null,["\n                                  "])),(n()(),s["ɵand"](16777216,null,null,1,null,i)),s["ɵdid"](6,16384,null,0,u.NgIf,[s.ViewContainerRef,s.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),s["ɵted"](7,null,["\n                                 ","\n                             "]))],function(n,t){n(t,3,0,t.context.$implicit.directorio),n(t,6,0,!t.context.$implicit.directorio)},function(n,t){n(t,7,0,t.context.$implicit.nombre)})}function r(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,47,"div",[["class","modal-dialog"],["style","margin-top:100px;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                "])),(n()(),s["ɵeld"](2,0,null,null,44,"div",[["class","modal-content"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵeld"](4,0,null,null,7,"div",[["class","modal-header"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵeld"](6,0,null,null,1,"h6",[["class","modal-title pull-lefth"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["¿Dónde quieres crear el archivo?"])),(n()(),s["ɵted"](-1,null,[" \n                     "])),(n()(),s["ɵeld"](9,0,null,null,1,"button",[["class","close"],["style","margin-rigth:8px;"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.close()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["×"])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵeld"](13,0,null,null,23,"div",[["class","modal-body"],["style","height:350px;overflow-y: scroll;"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                       "])),(n()(),s["ɵeld"](15,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                         "])),(n()(),s["ɵeld"](17,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                            "])),(n()(),s["ɵeld"](19,0,null,null,1,"label",[["class","form-control-label"],["for","file-name"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["Nombre:"])),(n()(),s["ɵted"](-1,null,["\n                            "])),(n()(),s["ɵeld"](22,0,null,null,5,"input",[["class","form-control"],["id","file-name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==s["ɵnov"](n,23)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==s["ɵnov"](n,23).onTouched()&&l}if("compositionstart"===t){l=!1!==s["ɵnov"](n,23)._compositionStart()&&l}if("compositionend"===t){l=!1!==s["ɵnov"](n,23)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.nombre=e)&&l}return l},null,null)),s["ɵdid"](23,16384,null,0,h.DefaultValueAccessor,[s.Renderer2,s.ElementRef,[2,h.COMPOSITION_BUFFER_MODE]],null,null),s["ɵprd"](1024,null,h.NG_VALUE_ACCESSOR,function(n){return[n]},[h.DefaultValueAccessor]),s["ɵdid"](25,671744,null,0,h.NgModel,[[8,null],[8,null],[8,null],[2,h.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),s["ɵprd"](2048,null,h.NgControl,null,[h.NgModel]),s["ɵdid"](27,16384,null,0,h.NgControlStatus,[h.NgControl],null,null),(n()(),s["ɵted"](-1,null,["\n                         "])),(n()(),s["ɵted"](-1,null,["\n                         "])),(n()(),s["ɵeld"](30,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                            "])),(n()(),s["ɵand"](16777216,null,null,1,null,o)),s["ɵdid"](33,802816,null,0,u.NgForOf,[s.ViewContainerRef,s.TemplateRef,s.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),s["ɵted"](-1,null,["\n                          "])),(n()(),s["ɵted"](-1,null,["\n                        "])),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵeld"](38,0,null,null,7,"div",[["class","modal-footer"]],null,null,null,null,null)),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵeld"](40,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.navBack()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Atras"])),(n()(),s["ɵted"](-1,null,["\n                     "])),(n()(),s["ɵeld"](43,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.confirm()&&l}return l},null,null)),(n()(),s["ɵted"](-1,null,["Crear"])),(n()(),s["ɵted"](-1,null,["\n                   "])),(n()(),s["ɵted"](-1,null,["\n                 "])),(n()(),s["ɵted"](-1,null,["\n              "]))],function(n,t){var e=t.component;n(t,25,0,e.nombre),n(t,33,0,e.directorioActual.archivos)},function(n,t){n(t,22,0,s["ɵnov"](t,27).ngClassUntouched,s["ɵnov"](t,27).ngClassTouched,s["ɵnov"](t,27).ngClassPristine,s["ɵnov"](t,27).ngClassDirty,s["ɵnov"](t,27).ngClassValid,s["ɵnov"](t,27).ngClassInvalid,s["ɵnov"](t,27).ngClassPending)})}function a(n){return s["ɵvid"](0,[(n()(),s["ɵeld"](0,0,null,null,1,"confirm",[],null,null,null,r,m)),s["ɵdid"](1,180224,null,0,c.a,[d.DialogService],null,null)],null,null)}var s=e("/oeL"),u=e("qbdv"),c=e("ij+S"),h=e("bm2B"),d=e("V672");e.n(d);e.d(t,"a",function(){return p});var f=[],m=s["ɵcrt"]({encapsulation:2,styles:f,data:{}}),p=s["ɵccf"]("confirm",c.a,a,{},{},[])},OZVu:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){"use strict";function t(n){var t=n.flags;return null!=t?t:(n.ignoreCase?"i":"")+(n.global?"g":"")+(n.multiline?"m":"")}function e(n){return n.global?n:new RegExp(n.source,t(n)+"g")}function l(n){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(n.source)}function i(n,t,l){t=e(t);for(var i=l.line,o=l.ch,r=n.lastLine();i<=r;i++,o=0){t.lastIndex=o;var a=n.getLine(i),s=t.exec(a);if(s)return{from:p(i,s.index),to:p(i,s.index+s[0].length),match:s}}}function o(n,t,o){if(!l(t))return i(n,t,o);t=e(t);for(var r,a=1,s=o.line,u=n.lastLine();s<=u;){for(var c=0;c<a;c++){var h=n.getLine(s++);r=null==r?h:r+"\n"+h}a*=2,t.lastIndex=o.ch;var d=t.exec(r);if(d){var f=r.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=o.line+f.length-1,g=f[f.length-1].length;return{from:p(v,g),to:p(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function r(n,t){for(var e,l=0;;){t.lastIndex=l;var i=t.exec(n);if(!i)return e;if(e=i,(l=e.index+(e[0].length||1))==n.length)return e}}function a(n,t,l){t=e(t);for(var i=l.line,o=l.ch,a=n.firstLine();i>=a;i--,o=-1){var s=n.getLine(i);o>-1&&(s=s.slice(0,o));var u=r(s,t);if(u)return{from:p(i,u.index),to:p(i,u.index+u[0].length),match:u}}}function s(n,t,l){t=e(t);for(var i,o=1,a=l.line,s=n.firstLine();a>=s;){for(var u=0;u<o;u++){var c=n.getLine(a--);i=null==i?c.slice(0,l.ch):c+"\n"+i}o*=2;var h=r(i,t);if(h){var d=i.slice(0,h.index).split("\n"),f=h[0].split("\n"),m=a+d.length,v=d[d.length-1].length;return{from:p(m,v),to:p(m+f.length-1,1==f.length?v+f[0].length:f[f.length-1].length),match:h}}}}function u(n,t,e,l){if(n.length==t.length)return e;for(var i=0,o=e+Math.max(0,n.length-t.length);;){if(i==o)return i;var r=i+o>>1,a=l(n.slice(0,r)).length;if(a==e)return r;a>e?o=r:i=r+1}}function c(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.lastLine()+1-o.length;r<=s;r++,a=0){var c=n.getLine(r).slice(a),h=i(c);if(1==o.length){var d=h.indexOf(o[0]);if(-1==d)continue n;var e=u(c,h,d,i)+a;return{from:p(r,u(c,h,d,i)+a),to:p(r,u(c,h,d+o[0].length,i)+a)}}var v=h.length-o[0].length;if(h.slice(v)==o[0]){for(var g=1;g<o.length-1;g++)if(i(n.getLine(r+g))!=o[g])continue n;var b=n.getLine(r+o.length-1),y=i(b),C=o[o.length-1];if(b.slice(0,C.length)==C)return{from:p(r,u(c,h,v,i)+a),to:p(r+o.length-1,u(b,y,C.length,i))}}}}function h(n,t,e,l){if(!t.length)return null;var i=l?f:m,o=i(t).split(/\r|\n\r?/);n:for(var r=e.line,a=e.ch,s=n.firstLine()-1+o.length;r>=s;r--,a=-1){var c=n.getLine(r);a>-1&&(c=c.slice(0,a));var h=i(c);if(1==o.length){var d=h.lastIndexOf(o[0]);if(-1==d)continue n;return{from:p(r,u(c,h,d,i)),to:p(r,u(c,h,d+o[0].length,i))}}var v=o[o.length-1];if(h.slice(0,v.length)==v){for(var g=1,e=r-o.length+1;g<o.length-1;g++)if(i(n.getLine(e+g))!=o[g])continue n;var b=n.getLine(r+1-o.length),y=i(b);if(y.slice(y.length-o[0].length)==o[0])return{from:p(r+1-o.length,u(b,y,b.length-o[0].length,i)),to:p(r,u(c,h,v.length,i))}}}}function d(n,t,l,r){this.atOccurrence=!1,this.doc=n,l=l?n.clipPos(l):p(0,0),this.pos={from:l,to:l};var u;"object"==typeof r?u=r.caseFold:(u=r,r=null),"string"==typeof t?(null==u&&(u=!1),this.matches=function(e,l){return(e?h:c)(n,t,l,u)}):(t=e(t),r&&!1===r.multiline?this.matches=function(e,l){return(e?a:i)(n,t,l)}:this.matches=function(e,l){return(e?s:o)(n,t,l)})}var f,m,p=n.Pos;String.prototype.normalize?(f=function(n){return n.normalize("NFD").toLowerCase()},m=function(n){return n.normalize("NFD")}):(f=function(n){return n.toLowerCase()},m=function(n){return n}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var e=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));e&&0==n.cmpPos(e.from,e.to);)t?e.from.ch?e.from=p(e.from.line,e.from.ch-1):e=e.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(p(e.from.line-1))):e.to.ch<this.doc.getLine(e.to.line).length?e.to=p(e.to.line,e.to.ch+1):e=e.to.line==this.doc.lastLine()?null:this.matches(t,p(e.to.line+1,0));if(e)return this.pos=e,this.atOccurrence=!0,this.pos.match||!0;var l=p(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:l,to:l},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,e){if(this.atOccurrence){var l=n.splitLines(t);this.doc.replaceRange(l,this.pos.from,this.pos.to,e),this.pos.to=p(this.pos.from.line+l.length-1,l[l.length-1].length+(1==l.length?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(n,t,e){return new d(this.doc,n,t,e)}),n.defineDocExtension("getSearchCursor",function(n,t,e){return new d(this,n,t,e)}),n.defineExtension("selectMatches",function(t,e){for(var l=[],i=this.getSearchCursor(t,this.getCursor("from"),e);i.findNext()&&!(n.cmpPos(i.to(),this.getCursor("to"))>0);)l.push({anchor:i.from(),head:i.to()});l.length&&this.setSelections(l,0)})})},Qdk6:function(n,t,e){!function(n){n(e("oiK7"),e("ppY8"))}(function(n){"use strict";function t(n,t,e,l,i){n.openDialog?n.openDialog(t,i,{value:l,selectValueOnOpen:!0}):i(prompt(e,l))}function e(n,t){var e=Number(t);return/^[-+]/.test(t)?n.getCursor().line+e:e-1}n.commands.jumpToLine=function(n){var l=n.getCursor();t(n,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",l.line+1+":"+l.ch,function(t){if(t){var i;if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))n.setCursor(e(n,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(n.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=l.line+o+1),n.setCursor(o-1,l.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&n.setCursor(e(n,i[1]),l.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})},SVb2:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("/oeL"),i=e("EfLl"),o=e("CVNG"),r=e("IkMs"),a=e("DlWC"),s=e("m0eP"),u=e("MsHi"),c=e("ClIn"),h=e("CU81"),d=e("fXzC"),f=e("ufkV"),m=e("xDpJ"),p=e("DVtk"),v=e("OR9o"),g=e("qbdv"),b=e("bm2B"),y=e("dN2u"),C=e("KRwK"),x=e("V672"),E=(e.n(x),e("BkNc")),k=e("Zz+K"),R=e("wnyu"),w=e("EoP3"),S=e("2waW"),P=e("PY9B"),T=e("IBeK"),M=e("g5gQ"),X=e("xBEz"),Y=e("PuIS"),N=e("U0Tu"),_=e("3rU7"),O=e("Cb36"),A=e("5h8W"),I=e("6ade"),F=e("4HaF"),j=e("DaIH"),L=e("0WLp"),D=e("s6Yw"),V=e("DYHI"),z=e("1F35"),q=e("0vel"),Z=(e.n(q),e("sdK6")),B=(e.n(Z),e("sRze"));e.d(t,"MateFunModuleNgFactory",function(){return G});var G=l["ɵcmf"](i.a,[],function(n){return l["ɵmod"]([l["ɵmpd"](512,l.ComponentFactoryResolver,l["ɵCodegenComponentFactoryResolver"],[[8,[o.a,r.a,a.a,s.a,u.a,c.a,h.a,d.a,f.a,m.a,p.a,v.a]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["ɵmpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[l.LOCALE_ID]),l["ɵmpd"](4608,b["ɵi"],b["ɵi"],[]),l["ɵmpd"](4608,y.a,y.a,[l.ComponentFactoryResolver,l.Injector,C.a]),l["ɵmpd"](4608,x.DialogService,x.DialogService,[l.ComponentFactoryResolver,l.ApplicationRef,l.Injector,[2,x.DialogServiceConfig]]),l["ɵmpd"](512,g.CommonModule,g.CommonModule,[]),l["ɵmpd"](512,b["ɵba"],b["ɵba"],[]),l["ɵmpd"](512,b.FormsModule,b.FormsModule,[]),l["ɵmpd"](512,E.x,E.x,[[2,E.k],[2,E.c]]),l["ɵmpd"](512,k.a,k.a,[]),l["ɵmpd"](512,R.a,R.a,[]),l["ɵmpd"](512,w.a,w.a,[]),l["ɵmpd"](512,S.a,S.a,[]),l["ɵmpd"](512,P.a,P.a,[]),l["ɵmpd"](512,T.a,T.a,[]),l["ɵmpd"](512,M.a,M.a,[]),l["ɵmpd"](512,X.a,X.a,[]),l["ɵmpd"](512,Y.a,Y.a,[]),l["ɵmpd"](512,N.a,N.a,[]),l["ɵmpd"](512,_.a,_.a,[]),l["ɵmpd"](512,O.a,O.a,[]),l["ɵmpd"](512,A.a,A.a,[]),l["ɵmpd"](512,I.a,I.a,[]),l["ɵmpd"](512,F.a,F.a,[]),l["ɵmpd"](512,j.a,j.a,[]),l["ɵmpd"](512,L.b,L.b,[]),l["ɵmpd"](512,D.a,D.a,[]),l["ɵmpd"](512,V.a,V.a,[]),l["ɵmpd"](512,z.a,z.a,[]),l["ɵmpd"](512,q.CodemirrorModule,q.CodemirrorModule,[]),l["ɵmpd"](512,Z.BootstrapModalModule,Z.BootstrapModalModule,[]),l["ɵmpd"](512,i.a,i.a,[]),l["ɵmpd"](1024,E.t,function(){return[[{path:"",component:B.a}]]},[])])})},UfLB:function(n,t,e){"use strict";var l=e("p2gU");e.n(l);e.d(t,"a",function(){return o});var i=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),o=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.confirm=function(){this.result=!0,this.close()},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},fXzC:function(n,t,e){"use strict";function l(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,5,"input",[["class","nomArchivoInp form-control form-control-sm"],["name","archivo"],["placeholder","nombre del archivo"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,t,e){var l=!0,i=n.component;if("input"===t){l=!1!==h["ɵnov"](n,1)._handleInput(e.target.value)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,1).onTouched()&&l}if("compositionstart"===t){l=!1!==h["ɵnov"](n,1)._compositionStart()&&l}if("compositionend"===t){l=!1!==h["ɵnov"](n,1)._compositionEnd(e.target.value)&&l}if("ngModelChange"===t){l=!1!==(i.archivo.nombre=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},null,null)),h["ɵdid"](1,16384,null,0,d.DefaultValueAccessor,[h.Renderer2,h.ElementRef,[2,d.COMPOSITION_BUFFER_MODE]],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.DefaultValueAccessor]),h["ɵdid"](3,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](5,16384,null,0,d.NgControlStatus,[d.NgControl],null,null)],function(n,t){var e=t.component;n(t,3,0,"archivo",!e.archivo.editable||"Corregido"==e.archivo.estado||"Entregado"==e.archivo.estado,e.archivo.nombre)},function(n,t){n(t,0,0,h["ɵnov"](t,5).ngClassUntouched,h["ɵnov"](t,5).ngClassTouched,h["ɵnov"](t,5).ngClassPristine,h["ɵnov"](t,5).ngClassDirty,h["ɵnov"](t,5).ngClassValid,h["ɵnov"](t,5).ngClassInvalid,h["ɵnov"](t,5).ngClassPending)})}function i(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),h["ɵdid"](1,147456,null,0,d.NgSelectOption,[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),h["ɵdid"](2,147456,null,0,d["ɵq"],[h.ElementRef,h.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),h["ɵted"](3,null,["",""]))],function(n,t){n(t,1,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,"")),n(t,2,0,h["ɵinlineInterpolate"](1,"",t.context.$implicit,""))},function(n,t){var e=t.component;n(t,0,0,t.context.$implicit==e.configCodeMirror.theme),n(t,3,0,t.context.$implicit)})}function o(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](1,0,null,null,59,"div",[["style","width: 12em"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](3,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](5,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tema:"])),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](8,0,[["selectTheme",1]],null,4,"select",[["class","form-control form-control-sm"],["name","theme"]],null,[[null,"change"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==i.updateConfig(h["ɵnov"](n,8).value)&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵand"](16777216,null,null,1,null,i)),h["ɵdid"](11,802816,null,0,f.NgForOf,[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](15,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](17,0,null,null,1,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["Tamaño de fuente:"])),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](20,0,null,null,7,"div",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](22,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.aumentarFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["A⁺"])),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](25,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.disminuirFuente()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["A⁻"])),(n()(),h["ɵted"](27,null,["\n                                        ","px                                    \n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](30,0,null,null,23,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](32,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](34,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoF"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,35).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,35).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoF=e)&&l}return l},null,null)),h["ɵdid"](35,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](37,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](39,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n                                        Mostrar advertencias de uso de funciones\n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](42,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](44,0,null,null,8,"label",[],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                        "])),(n()(),h["ɵeld"](46,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","argumentoI"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,t,e){var l=!0,i=n.component;if("change"===t){l=!1!==h["ɵnov"](n,47).onChange(e.target.checked)&&l}if("blur"===t){l=!1!==h["ɵnov"](n,47).onTouched()&&l}if("ngModelChange"===t){l=!1!==(i.argumentoI=e)&&l}return l},null,null)),h["ɵdid"](47,16384,null,0,d.CheckboxControlValueAccessor,[h.Renderer2,h.ElementRef],null,null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[d.CheckboxControlValueAccessor]),h["ɵdid"](49,671744,null,0,d.NgModel,[[2,d.ControlContainer],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](51,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n                                        Mostrar advertencias de uso de operadores infijos\n                                    "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](55,0,null,null,4,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                                    "])),(n()(),h["ɵeld"](57,0,null,null,1,"button",[["class","btn btn-secondary"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.saveConfig()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["Guardar"])),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵted"](-1,null,["\n                        "]))],function(n,t){var e=t.component;n(t,11,0,e.themes);n(t,37,0,"argumentoF",e.argumentoF);n(t,49,0,"argumentoI",e.argumentoI)},function(n,t){n(t,27,0,t.component.configCodeMirror.fontSize),n(t,34,0,h["ɵnov"](t,39).ngClassUntouched,h["ɵnov"](t,39).ngClassTouched,h["ɵnov"](t,39).ngClassPristine,h["ɵnov"](t,39).ngClassDirty,h["ɵnov"](t,39).ngClassValid,h["ɵnov"](t,39).ngClassInvalid,h["ɵnov"](t,39).ngClassPending),n(t,46,0,h["ɵnov"](t,51).ngClassUntouched,h["ɵnov"](t,51).ngClassTouched,h["ɵnov"](t,51).ngClassPristine,h["ɵnov"](t,51).ngClassDirty,h["ɵnov"](t,51).ngClassValid,h["ɵnov"](t,51).ngClassInvalid,h["ɵnov"](t,51).ngClassPending)})}function r(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n\n            "])),(n()(),h["ɵeld"](1,0,null,null,65,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](3,0,null,null,52,"div",[["class","card-header"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵeld"](5,0,null,null,49,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,t,e){var l=!0;if("submit"===t){l=!1!==h["ɵnov"](n,7).onSubmit(e)&&l}if("reset"===t){l=!1!==h["ɵnov"](n,7).onReset()&&l}return l},null,null)),h["ɵdid"](6,16384,null,0,d["ɵbf"],[],null,null),h["ɵdid"](7,16384,null,0,d.NgForm,[[8,null],[8,null]],null,null),h["ɵprd"](2048,null,d.ControlContainer,null,[d.NgForm]),h["ɵdid"](9,16384,null,0,d.NgControlStatusGroup,[d.ControlContainer],null,null),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵand"](16777216,null,null,1,null,l)),h["ɵdid"](12,16384,null,0,f.NgIf,[h.ViewContainerRef,h.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),h["ɵted"](-1,null,["\n\n                        "])),(n()(),h["ɵeld"](14,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","downloadFileButton"],["ngbPopover","Exportar (Ctrl+E)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["tiggers","click"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.downloadFile()&&l}return l},null,null)),h["ɵdid"](15,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](17,0,null,null,0,"i",[["class","fa fa-download "]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n\n                        "])),(n()(),h["ɵeld"](20,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","margin-left: 10px; float: right;"],["tiggers","click"]],null,null,null,null,null)),h["ɵdid"](21,212992,[[2,4],["popover",4]],0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](26,16777216,null,null,7,"div",[["ngbPopover","Guardar archivo (Ctrl+G)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,null,null,null,null)),h["ɵdid"](27,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](29,0,null,null,3,"button",[["class","btn btn-sm btn-secondary"]],[[8,"disabled",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.guardarArchivo()&&l}return l},null,null)),(n()(),h["ɵted"](-1,null,["\n                                "])),(n()(),h["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-save"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](35,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Reiniciar intérprete (Ctrl+R)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.reiniciarInterprete()&&l}return l},null,null)),h["ɵdid"](36,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](38,0,null,null,0,"i",[["class","fa fa-refresh"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](41,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Cargar programa (Ctrl+P)"],["placement","bottom"],["style","margin-left: 10px; float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.runCode()&&l}return l},null,null)),h["ɵdid"](42,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](44,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](47,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["ngbPopover","Nuevo archivo (Ctrl+A)"],["placement","bottom"],["style","float: right;"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.seleccionarDirectorio()&&l}return l},null,null)),h["ɵdid"](48,212992,null,0,m.a,[h.ElementRef,h.Renderer2,h.Injector,h.ComponentFactoryResolver,h.ViewContainerRef,p.a,h.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),h["ɵted"](-1,null,["\n                            "])),(n()(),h["ɵeld"](50,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵand"](0,[["popoverContent",2]],null,0,null,o)),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](57,0,null,null,8,"codemirror",[["class","codemirrorPrograma"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"]],function(n,t,e){var l=!0,i=n.component;if("ngModelChange"===t){l=!1!==(i.archivo.contenido=e)&&l}if("keyup"===t){l=!1!==i.archivoModificado()&&l}return l},v.a,v.b)),h["ɵdid"](58,278528,null,0,f.NgStyle,[h.KeyValueDiffers,h.ElementRef,h.Renderer],{ngStyle:[0,"ngStyle"]},null),h["ɵpod"](59,{"font-size":0}),h["ɵdid"](60,4374528,[[1,4]],0,g.CodemirrorComponent,[],{config:[0,"config"]},null),h["ɵprd"](1024,null,d.NG_VALUE_ACCESSOR,function(n){return[n]},[g.CodemirrorComponent]),h["ɵdid"](62,671744,null,0,d.NgModel,[[8,null],[8,null],[8,null],[2,d.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),h["ɵprd"](2048,null,d.NgControl,null,[d.NgModel]),h["ɵdid"](64,16384,null,0,d.NgControlStatus,[d.NgControl],null,null),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,["\n\n            "]))],function(n,t){var e=t.component;n(t,12,0,e.archivo);n(t,15,0,"Exportar (Ctrl+E)","bottom","mouseenter:mouseleave");n(t,21,0,h["ɵnov"](t,53),"Configuración","bottom");n(t,27,0,"Guardar archivo (Ctrl+G)","bottom","mouseenter:mouseleave");n(t,36,0,"Reiniciar intérprete (Ctrl+R)","bottom","mouseenter:mouseleave");n(t,42,0,"Cargar programa (Ctrl+P)","bottom","mouseenter:mouseleave");n(t,48,0,"Nuevo archivo (Ctrl+A)","bottom","mouseenter:mouseleave"),n(t,58,0,n(t,59,0,e.configCodeMirror.fontSize+"px")),n(t,60,0,e.configCodeMirror),n(t,62,0,e.archivo.contenido)},function(n,t){var e=t.component;n(t,5,0,h["ɵnov"](t,9).ngClassUntouched,h["ɵnov"](t,9).ngClassTouched,h["ɵnov"](t,9).ngClassPristine,h["ɵnov"](t,9).ngClassDirty,h["ɵnov"](t,9).ngClassValid,h["ɵnov"](t,9).ngClassInvalid,h["ɵnov"](t,9).ngClassPending),n(t,29,0,!e.modificado),n(t,57,0,h["ɵnov"](t,64).ngClassUntouched,h["ɵnov"](t,64).ngClassTouched,h["ɵnov"](t,64).ngClassPristine,h["ɵnov"](t,64).ngClassDirty,h["ɵnov"](t,64).ngClassValid,h["ɵnov"](t,64).ngClassInvalid,h["ɵnov"](t,64).ngClassPending)})}function a(n){return h["ɵvid"](0,[(n()(),h["ɵted"](-1,null,["\n                        "])),(n()(),h["ɵeld"](1,0,null,null,1,"canvas-component",[],null,[[null,"canvasComp"],["window","resize"],["document","click"]],function(n,t,e){var l=!0,i=n.component;if("window:resize"===t){l=!1!==h["ɵnov"](n,2).onResize(e)&&l}if("document:click"===t){l=!1!==h["ɵnov"](n,2).documentClicked(e)&&l}if("canvasComp"===t){l=!1!==i.canvasC&&l}return l},b.a,b.b)),h["ɵdid"](2,4243456,[[3,4]],0,y.a,[C.a],null,null),(n()(),h["ɵted"](-1,null,["\n                    "]))],null,null)}function s(n){return h["ɵvid"](0,[h["ɵqud"](671088640,1,{codemirror:0}),h["ɵqud"](671088640,2,{popover:0}),h["ɵqud"](671088640,3,{canvasC:0}),(n()(),h["ɵeld"](3,0,null,null,1,"notificacion",[],null,null,null,x.a,x.b)),h["ɵdid"](4,114688,null,0,E.a,[k.a],null,null),(n()(),h["ɵted"](-1,null,[" \n"])),(n()(),h["ɵeld"](6,0,null,null,41,"div",[["class","container-fluid"],["style"," padding-left: 0px; padding-right: 0px; margin-top: -13px; margin-left: -6px; margin-right: -6px;"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n    "])),(n()(),h["ɵeld"](8,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n        "])),(n()(),h["ɵeld"](10,0,null,null,24,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵeld"](12,0,null,null,21,"ngb-tabset",[],null,null,null,R.a,R.b)),h["ɵdid"](13,2146304,null,1,w.a,[S.a],{destroyOnHide:[0,"destroyOnHide"]},null),h["ɵqud"](603979776,4,{tabs:1}),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](16,0,null,null,7,"ngb-tab",[["id","ProgramBtn"],["title","Programa"]],null,null,null,null,null)),h["ɵdid"](17,16384,[[4,4]],2,w.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,5,{contentTpl:0}),h["ɵqud"](335544320,6,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵand"](0,null,null,1,null,r)),h["ɵdid"](22,16384,[[5,4]],0,w.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](25,0,null,null,7,"ngb-tab",[["id","FigurasBtn"],["title","Figuras"]],null,null,null,null,null)),h["ɵdid"](26,16384,[[4,4]],2,w.b,[],{id:[0,"id"],title:[1,"title"]},null),h["ɵqud"](335544320,7,{contentTpl:0}),h["ɵqud"](335544320,8,{titleTpl:0}),(n()(),h["ɵted"](-1,null,["\n                    "])),(n()(),h["ɵand"](0,null,null,1,null,a)),h["ɵdid"](31,16384,[[7,4]],0,w.c,[h.TemplateRef],null,null),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,[" \n\n        "])),(n()(),h["ɵted"](-1,null,["\n\n        "])),(n()(),h["ɵeld"](36,0,null,null,9,"div",[["class","col-md-6"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,["\n            \n\n\n            "])),(n()(),h["ɵeld"](39,0,null,null,4,"div",[["class","card"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,["\n                "])),(n()(),h["ɵeld"](41,0,null,null,1,"div",[["id","console"]],null,null,null,null,null)),(n()(),h["ɵted"](-1,null,[" "])),(n()(),h["ɵted"](-1,null,["\n            "])),(n()(),h["ɵted"](-1,null,["\n           "])),(n()(),h["ɵted"](-1,null,["\n\n        "])),(n()(),h["ɵted"](-1,null,["\n    "])),(n()(),h["ɵted"](-1,null,["\n"])),(n()(),h["ɵted"](-1,null,["\n\n"]))],function(n,t){n(t,4,0);n(t,13,0,!1);n(t,17,0,"ProgramBtn","Programa");n(t,26,0,"FigurasBtn","Figuras")},null)}function u(n){return h["ɵvid"](0,[(n()(),h["ɵeld"](0,0,null,null,4,"matefun",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==h["ɵnov"](n,4).documentClicked(e)&&l}return l},s,I)),h["ɵprd"](4608,null,P.a,P.a,[]),h["ɵprd"](4608,null,p.a,p.a,[]),h["ɵprd"](512,null,T.a,T.a,[M.i]),h["ɵdid"](4,4308992,null,0,X.a,[Y.a,N.a,C.a,h.ElementRef,k.a,_.a,O.DialogService,T.a],null,null)],function(n,t){n(t,4,0)},null)}var c=e("26LX"),h=e("/oeL"),d=e("bm2B"),f=e("qbdv"),m=e("mQQt"),p=e("7zUS"),v=e("KPCT"),g=e("nfVm"),b=(e.n(g),e("kqFu")),y=e("pB18"),C=e("2qVr"),x=e("hAtc"),E=e("+iRM"),k=e("uiTn"),R=e("Vnhz"),w=e("Hjei"),S=e("+E40"),P=e("qtCd"),T=e("fdEY"),M=e("CPp0"),X=e("sRze"),Y=e("dh/p"),N=e("6akk"),_=e("h7Ol"),O=e("V672");e.n(O);e.d(t,"a",function(){return F});var A=[c.a],I=h["ɵcrt"]({encapsulation:0,styles:A,data:{}}),F=h["ɵccf"]("matefun",X.a,u,{},{},[])},fdEY:function(n,t,e){"use strict";var l=e("CPp0"),i=e("bKpL"),o=(e.n(i),e("5v8a")),r=(e.n(o),e("xpf9")),a=(e.n(r),e("5FRs"));e.d(t,"a",function(){return s});var s=function(){function n(n){this.http=n}return n.prototype.actualizarConfiguracion=function(n,t){var e=new l.l({"Content-Type":"application/json"}),i=new l.g({headers:e});return this.http.put(a.a+"/servicios/usuario/"+n+"/configuracion",t,i).map(this.extractData).catch(this.handleError)},n.prototype.extractData=function(n){return n.json()||[]},n.prototype.handleError=function(n){var t=n.message?n.message:n.status?n.status+" - "+n.statusText:"Server error";return console.error(t),i.Observable.throw(t)},n.ctorParameters=function(){return[{type:l.i}]},n}()},gZxW:function(n,t,e){"use strict";function l(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),r["ɵted"](1,null,["","%"]))],null,function(n,t){n(t,1,0,t.component.getPercentValue())})}function i(n){return r["ɵvid"](2,[(n()(),r["ɵted"](-1,null,["\n    "])),(n()(),r["ɵeld"](1,0,null,null,8,"div",[["class","progress"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n      "])),(n()(),r["ɵeld"](3,0,null,null,5,"div",[["aria-valuemin","0"],["role","progressbar"]],[[8,"className",0],[4,"width","%"],[1,"aria-valuenow",0],[1,"aria-valuemax",0]],null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵand"](16777216,null,null,1,null,l)),r["ɵdid"](6,16384,null,0,a.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),r["ɵncd"](null,0),(n()(),r["ɵted"](-1,null,["\n      "])),(n()(),r["ɵted"](-1,null,["\n    "])),(n()(),r["ɵted"](-1,null,["\n  "]))],function(n,t){n(t,6,0,t.component.showValue)},function(n,t){var e=t.component;n(t,3,0,r["ɵinlineInterpolate"](3,"progress-bar",e.type?" bg-"+e.type:"","",e.animated?" progress-bar-animated":"","",e.striped?" progress-bar-striped":"",""),e.getPercentValue(),e.getValue(),e.max)})}function o(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"ngb-progressbar",[],null,null,null,i,h)),r["ɵdid"](1,49152,null,0,s.a,[u.a],null,null)],null,null)}var r=e("/oeL"),a=e("qbdv"),s=e("n/Gy"),u=e("Wv1e");e.d(t,"b",function(){return h}),t.a=i;var c=[],h=r["ɵcrt"]({encapsulation:2,styles:c,data:{}});r["ɵccf"]("ngb-progressbar",s.a,o,{max:"max",animated:"animated",striped:"striped",showValue:"showValue",type:"type",value:"value"},{},["*"])},"ij+S":function(n,t,e){"use strict";var l=e("p2gU"),i=(e.n(l),e("78g9"));e.d(t,"a",function(){return r});var o=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function l(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(l.prototype=e.prototype,new l)}}(),r=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.confirm=function(){var n=this,t=/^[A-Z]/;if(void 0==this.nombre||""==this.nombre)this.parent.notifService.error("Nombre de archivo invalido.");else if(t.test(this.nombre)){var e=new i.b;e.cedulaCreador=this.parent.authService.getUser().cedula,e.contenido="",e.nombre=this.nombre,e.directorio=!1,e.padreId=this.directorioActual.id,e.editable=!0,this.parent.haskellService.crearArchivo(e).subscribe(function(t){n.parent.archivo=t,n.parent.ghciService.loadFile(t.id),n.parent.sessionService.setArchivo(t)},function(t){n.parent.notifService.error(t)}),this.result=!0,this.close()}else this.parent.notifService.error("Nombre de archivo debe iniciar con mayusula.")},t.prototype.navToDir=function(n){n.directorio&&(this.directorioActual=n)},t.prototype.navBack=function(){var n=this.directorioActual.padreId,t=this.parent.sessionService.getArchivosList(),e=t.filter(function(t){return t.id===n})[0];this.directorioActual=e},t.ctorParameters=function(){return[{type:l.DialogService}]},t}(l.DialogComponent)},kqFu:function(n,t,e){"use strict";function l(n){return c["ɵvid"](0,[(n()(),c["ɵted"](0,null,["\n\t\t\t","\n\t\t"]))],null,function(n,t){n(t,0,0,t.component.tipoZoomDesc)})}function i(n){return c["ɵvid"](0,[(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵeld"](1,0,null,null,23,"div",[["style","width: 8em"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),c["ɵeld"](3,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](5,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](7,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","evaluacionVertical"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarEvaluacionVertical()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tEvaluacion\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](10,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](12,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](14,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarGrilla"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarGrilla()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tGrilla\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t"])),(n()(),c["ɵeld"](19,0,null,null,3,"label",[],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\t"])),(n()(),c["ɵeld"](21,0,null,null,0,"input",[["class","form-control form-control-sm"],["name","mostrarEjes"],["style","width: 15px; display: inline-block;"],["type","checkbox"]],[[8,"checked",0]],[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.mostrarOcultarEjes()&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t\t\tEjes\n\t\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t"]))],null,function(n,t){var e=t.component;n(t,7,0,e.evaluacionVertical),n(t,14,0,e.mostrarGrilla),n(t,21,0,e.mostrarEjes)})}function o(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.play()&&l}return l},null,null)),(n()(),c["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null))],null,null)}function r(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["style"," float:left; margin-top: -5px; margin-right: 5px"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.pause()&&l}return l},null,null)),(n()(),c["ɵeld"](1,0,null,null,0,"i",[["class","fa fa-pause"]],null,null,null,null,null))],null,null)}function a(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"ngb-progressbar",[["style","float: none"],["type","info"]],null,null,null,h.a,h.b)),c["ɵdid"](1,49152,null,0,d.a,[f.a],{type:[0,"type"],value:[1,"value"]},null)],function(n,t){var e=t.component;n(t,1,0,"info",(e.frameAnimacion+1)/e.elementosAnimacion.length*100)},null)}function s(n){return c["ɵvid"](0,[c["ɵqud"](402653184,1,{canvasRef:0}),c["ɵqud"](402653184,2,{popover:0}),(n()(),c["ɵeld"](2,0,null,null,54,"div",[["class","card"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n"])),(n()(),c["ɵted"](-1,null,["\n\t"])),(n()(),c["ɵeld"](5,0,null,null,50,"div",[["class","card-block contenedor-canvas"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](7,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["placement","bottom"],["style","float:right; margin-right: 198px; margin-top: -55px"],["triggers","mouseenter:mouseleave:click"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.cambiarTipoZoom()&&l}return l},null,null)),c["ɵdid"](8,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵted"](9,null,["",""])),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](0,[["popoverTipoZoom",2]],null,0,null,l)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](13,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom +"],["style","float:right; margin-right: 165px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMas()&&l}return l},null,null)),c["ɵdid"](14,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](15,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](17,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Zoom -"],["style","float:right; margin-right: 132px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.zoomMenos()&&l}return l},null,null)),c["ɵdid"](18,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](19,0,null,null,0,"i",[["class","fa fa-minus"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](21,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Centrar"],["style"," float:right; margin-right: 99px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.centrarCanvas()&&l}return l},null,null)),c["ɵdid"](22,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](23,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](25,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Borrar"],["style"," float:right; margin-right: 66px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.limpiarCanvas()&&l}return l},null,null)),c["ɵdid"](26,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](27,0,null,null,0,"i",[["class","fa fa-trash"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\n\t\t"])),(n()(),c["ɵeld"](29,16777216,null,null,2,"button",[["class","btn btn-sm btn-secondary"],["data-placement","bottom"],["ngbPopover","Descargar PNG"],["style","float:right; margin-right: 33px; margin-top: -55px"],["triggers","mouseenter:mouseleave"]],null,[[null,"click"]],function(n,t,e){var l=!0,i=n.component;if("click"===t){l=!1!==i.exportImg()&&l}return l},null,null)),c["ɵdid"](30,212992,null,0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],placement:[1,"placement"],triggers:[2,"triggers"]},null),(n()(),c["ɵeld"](31,0,null,null,0,"i",[["class","fa fa-download"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](33,0,null,null,1,"a",[["download","Canvas.png"],["id","dl"],["style","display: none"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["Download Canvas"])),(n()(),c["ɵted"](-1,null,["\n\n\t\t"])),(n()(),c["ɵeld"](36,16777216,null,null,4,"button",[["class","btn btn-sm btn-secondary"],["id","popover"],["placement","bottom"],["popoverTitle","Configuración"],["style","float:right; margin-top: -55px"],["tiggers","click"]],null,null,null,null,null)),c["ɵdid"](37,212992,[[2,4],["popover",4]],0,p.a,[c.ElementRef,c.Renderer2,c.Injector,c.ComponentFactoryResolver,c.ViewContainerRef,v.a,c.NgZone],{ngbPopover:[0,"ngbPopover"],popoverTitle:[1,"popoverTitle"],placement:[2,"placement"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t\t"])),(n()(),c["ɵeld"](39,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](0,[["popoverCanvas",2]],null,0,null,i)),(n()(),c["ɵted"](-1,null,["\n\t\t\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,o)),c["ɵdid"](45,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,r)),c["ɵdid"](48,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵand"](16777216,null,null,1,null,a)),c["ɵdid"](51,16384,null,0,g.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵeld"](53,0,[[1,0],["canvasElement",1]],null,1,"canvas",[["height","2000"],["id","myCanvas"],["style","max-width: 100%;"],["width","2000"]],null,[[null,"mousemove"],[null,"touchmove"],[null,"touchstart"],[null,"touchend"],[null,"mouseleave"],[null,"mousewheel"],[null,"DOMMouseScroll"]],function(n,t,e){var l=!0,i=n.component;if("mousemove"===t){l=!1!==i.moveGraph(e)&&l}if("touchmove"===t){l=!1!==i.moveGraph(e)&&l}if("touchstart"===t){l=!1!==i.moveGraph(e)&&l}if("touchend"===t){l=!1!==i.moveGraph(e)&&l}if("mouseleave"===t){l=!1!==i.leaveCanvas(e)&&l}if("mousewheel"===t){l=!1!==i.zoomGraph(e)&&l}if("DOMMouseScroll"===t){l=!1!==i.zoomGraph(e)&&l}return l},null,null)),(n()(),c["ɵted"](-1,null,["\n\t\t"])),(n()(),c["ɵted"](-1,null,["\n\t\t\n\t"])),(n()(),c["ɵted"](-1,null,["\n"]))],function(n,t){var e=t.component;n(t,8,0,c["ɵnov"](t,11),"bottom","mouseenter:mouseleave:click");n(t,14,0,"Zoom +","bottom","mouseenter:mouseleave");n(t,18,0,"Zoom -","bottom","mouseenter:mouseleave");n(t,22,0,"Centrar","bottom","mouseenter:mouseleave");n(t,26,0,"Borrar","bottom","mouseenter:mouseleave");n(t,30,0,"Descargar PNG","bottom","mouseenter:mouseleave");n(t,37,0,c["ɵnov"](t,42),"Configuración","bottom"),n(t,45,0,!e.animando&&e.elementosAnimacion.length>0),n(t,48,0,e.animando&&e.elementosAnimacion.length>0),n(t,51,0,e.elementosAnimacion.length>0)},function(n,t){n(t,9,0,t.component.tipoZoom)})}function u(n){return c["ɵvid"](0,[(n()(),c["ɵeld"](0,0,null,null,1,"canvas-component",[],null,[["window","resize"],["document","click"]],function(n,t,e){var l=!0;if("window:resize"===t){l=!1!==c["ɵnov"](n,1).onResize(e)&&l}if("document:click"===t){l=!1!==c["ɵnov"](n,1).documentClicked(e)&&l}return l},s,C)),c["ɵdid"](1,4243456,null,0,m.a,[b.a],null,null)],null,null)}var c=e("/oeL"),h=e("gZxW"),d=e("n/Gy"),f=e("Wv1e"),m=e("pB18"),p=e("mQQt"),v=e("7zUS"),g=e("qbdv"),b=e("2qVr");e.d(t,"b",function(){return C}),t.a=s;var y=[],C=c["ɵcrt"]({encapsulation:2,styles:y,data:{}});c["ɵccf"]("canvas-component",m.a,u,{},{},[])},pB18:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__=__webpack_require__("2qVr");__webpack_require__.d(__webpack_exports__,"a",function(){return CanvasComponent});var CanvasComponent=function(){function CanvasComponent(ghciService){var _this=this;this.ghciService=ghciService,this.animar_=!0,this.objetos=[],this.evaluacionVertical=!0,this.elementosAnimacion=[],this.frameAnimacion=0,this.animando=!0,this.mostrarEjes=!0,this.mostrarGrilla=!0,this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes",this.mostrarOcultarEjes=function(){this.mostrarEjes=!this.mostrarEjes,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarOcultarGrilla=function(){this.mostrarGrilla=!this.mostrarGrilla,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.mostrarEvaluacionVertical=function(){this.evaluacionVertical=!this.evaluacionVertical,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.limpiarCanvas=function(){this.animar_=!1,clearTimeout(this.timeOutRef),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context))},this.centrarCanvas=function(){this.maxX=10,this.maxY=10/this.aspectRatio,this.minX=-10,this.minY=-10/this.aspectRatio,this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitsPerTickX=1,this.unitsPerTickY=1,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=-this.minY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.cambiarTipoZoom=function(){"Todo"==this.tipoZoom?(this.tipoZoom="Abscisa",this.tipoZoomDesc="Zoom en abscisa"):"Abscisa"==this.tipoZoom?(this.tipoZoom="Ordenada",this.tipoZoomDesc="Zoom en ordenada"):(this.tipoZoom="Todo",this.tipoZoomDesc="Zoom en ambos ejes")},this.generarFuncion=function(n){for(var t,e="",l=0,i=n.funs;l<i.length;l++){var o=i[l];e="var "+o.fun+" = function("+o.args.join()+"){\n return "+this.generarExpresion(o.bdy)+"}\n"+e,o.fun==n.graph&&(e+="return "+o.fun+"("+o.args.join()+");\n",t=o)}return e="("+t.args.join()+",delta,hayPunto)=>{\n"+e+"}"},this.generarExpresion=function(n){var t=this,e="";return"cnd"==n.kind?e=" ("+this.generarExpresion(n.cond)+"?"+this.generarExpresion(n.exp1)+":"+this.generarExpresion(n.exp2)+") ":"bop"==n.kind?e="=="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && hayPunto() ":"/="==n.op?" Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) > delta ||  Math.abs(("+this.generarExpresion(n.exp1)+") - ("+this.generarExpresion(n.exp2)+")) < delta && !hayPunto()  ":"^"==n.op?" Math.pow("+this.generarExpresion(n.exp1)+","+this.generarExpresion(n.exp2)+") ":" ("+this.generarExpresion(n.exp1)+")"+n.op+"("+this.generarExpresion(n.exp2)+") ":"uop"==n.kind?e=" "+n.op+" "+this.generarExpresion(n.exp)+" ":"app"==n.kind?("cos"==n.fun?n.fun="Math.cos":"sen"==n.fun?n.fun="Math.sin":"red"==n.fun&&(n.fun="Math.round"),e=" "+n.fun+"("+n.args.map(function(n){return t.generarExpresion(n)}).join()+") "):e="tup"==n.kind?" ("+n.exps.map(function(n){return t.generarExpresion(n)}).join()+") ":"lit"==n.kind?" "+n.val+" ":"var"==n.kind?" "+n.var+" ":" undefined ",e},this.animar=function(){this.animar_=!0,(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=[],this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context)),this.objetos=this.elementosAnimacion[this.frameAnimacion],this.dibujarObjetos(),this.animando&&(this.timeOutRef=setTimeout(function(){this.animando&&(this.frameAnimacion++,this.frameAnimacion>=this.elementosAnimacion.length&&(this.frameAnimacion=0),this.animar_&&this.animar())}.bind(this),1e3))},this.dibujarObjetos=function(){(this.mostrarEjes||this.mostrarGrilla)&&(this.drawXAxis(this.context),this.drawYAxis(this.context));for(var n=0,t=this.objetos;n<t.length;n++){var e=t[n];"circulo"==e.tipo?this.drawCircle(e.x,e.y,e.r,e.color,e.rotacion):"grafica"==e.tipo?this.drawEquation(e.ecuacion,e.color,e.thickness):"rectangulo"==e.tipo?this.drawRect(e.x,e.y,e.w,e.h,e.color,e.rotacion):"texto"==e.tipo?this.drawText(e.x,e.y,e.text,e.size,e.color,e.rotacion):"poligono"==e.tipo?this.drawPolyline(!0,e.puntos,e.color,e.rotacion):"lineas"==e.tipo&&this.drawPolyline(!1,e.puntos,e.color,e.rotacion)}},this.Graph=function(n){this.config={canvasId:"myCanvas",minX:-10,minY:-10/n,maxX:10,maxY:10/n,unitsPerTickX:1,unitsPerTickY:1},this.aspectRatio=n,this.canvas=this.canvasRef,this.minX=this.config.minX,this.minY=this.config.minY,this.maxX=this.config.maxX,this.maxY=this.config.maxY,this.unitsPerTickX=this.config.unitsPerTickX,this.unitsPerTickY=this.config.unitsPerTickY,this.axisColor="#aaa",this.font="8pt Calibri",this.tickSize=10,this.context=this.canvasRef.nativeElement.getContext("2d"),this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=Math.round(Math.abs(this.minY/this.rangeY)*this.canvasRef.nativeElement.height),this.centerX=Math.round(Math.abs(this.minX/this.rangeX)*this.canvasRef.nativeElement.width),this.precision=1e3,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY},this.drawXAxis=function(n){n.save();var t=this.unitsPerTickX*this.unitX;n.font=this.font,n.textAlign="center",n.textBaseline="top";var e=this.centerX-t,l=-1*this.unitsPerTickX;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l-this.unitsPerTickX).toFixed(2)),e=Math.round(e-t);for(e=this.centerX+t,l=this.unitsPerTickX;e<this.canvas.nativeElement.width;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(e,0),n.lineTo(e,this.canvasRef.nativeElement.height),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(e,this.centerY-this.tickSize/2),n.lineTo(e,this.centerY+this.tickSize/2),n.stroke(),n.fillText(l+"",e,this.centerY+this.tickSize/2+3)),l=parseFloat((l+this.unitsPerTickX).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY-5),n.stroke(),n.moveTo(this.canvasRef.nativeElement.width,this.centerY),n.lineTo(this.canvasRef.nativeElement.width-12,this.centerY+5),n.stroke()),n.restore()},this.drawYAxis=function(n){n.save();var t=this.unitsPerTickY*this.unitY;n.font=this.font,n.textAlign="right",n.textBaseline="middle";var e=this.centerY-t,l=this.unitsPerTickY;for(this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,this.centerY),n.lineTo(this.canvasRef.nativeElement.width,this.centerY),n.stroke());e>0;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l+this.unitsPerTickY).toFixed(2)),e=Math.round(e-t);for(e=this.centerY+t,l=-1*this.unitsPerTickY;e<this.canvasRef.nativeElement.height;)this.mostrarGrilla&&(n.beginPath(),n.strokeStyle="#EEEEEE",n.lineWidth=1,n.moveTo(0,e),n.lineTo(this.canvasRef.nativeElement.width,e),n.stroke()),this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX-this.tickSize/2,e),n.lineTo(this.centerX+this.tickSize/2,e),n.stroke(),n.fillText(l,this.centerX-this.tickSize/2-3,e)),l=parseFloat((l-this.unitsPerTickY).toFixed(2)),e=Math.round(e+t);this.mostrarEjes&&(n.beginPath(),n.strokeStyle=this.axisColor,n.lineWidth=2,n.moveTo(this.centerX,0),n.lineTo(this.centerX,this.canvasRef.nativeElement.height),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX+5,12),n.stroke(),n.moveTo(this.centerX,0),n.lineTo(this.centerX-5,12),n.stroke()),n.restore()},this.transformContext=function(n){n.translate(this.centerX,this.centerY),n.scale(this.scaleX,-this.scaleY)},this.hayGraficas=function(){for(var n=0,t=this.objetos;n<t.length;n++){if("grafica"==t[n].tipo)return!0}return!1},this.verticalLine=function(n,t){if(this.hayGraficas()){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();this.context;this.context.moveTo(n,0),this.context.lineTo(n,this.canvasRef.nativeElement.height);for(var e=-this.centerX/this.scaleX,l=-this.centerY/this.scaleY,i=n/this.canvasRef.nativeElement.width*this.rangeX+e,o=0,r=this.objetos;o<r.length;o++){var a=r[o];if("grafica"==a.tipo){var i=Math.trunc(100*i)/100,s=a.ecuacion(i,this.rangeX/500,function(){return!0}),u=-(s+l)/this.rangeY*this.canvasRef.nativeElement.height;a.color&&(this.context.fillStyle=a.color),this.context.fillText("("+i.toFixed(2)+","+s.toFixed(2)+")",n+10,u),this.context.fillStyle="black",this.context.fillRect(n-2.5,u-2.5,5,5)}}this.context.stroke()}},this.leaveCanvas=function(n){this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()},this.moveGraph=function(n){if(1===n.buttons&&"mousemove"==n.type)this.centerX+=n.offsetX-this.lastPositionX,this.centerY+=n.offsetY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if("touchend"==n.type)1==n.touches.length&&(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY);else if("touchmove"==n.type){if(1==n.touches.length)this.centerX+=n.touches[0].clientX-this.lastPositionX,this.centerY+=n.touches[0].clientY-this.lastPositionY,this.minX=-this.centerX/this.scaleX,this.maxY=this.centerY/this.scaleY,this.maxX=this.canvasRef.nativeElement.width/this.scaleX-this.centerX/this.scaleX,this.minY=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos();else if(this.lastZoom&&n.touches.length>1){this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY;var t=n.touches[1].clientX,e=n.touches[1].clientY,l=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2));Math.abs(l-this.lastZoom)>2&&this.zoom((l-this.lastZoom)/15),this.lastZoom=l}}else if("touchstart"==n.type)if(this.lastPositionX=n.touches[0].clientX,this.lastPositionY=n.touches[0].clientY,n.touches.length>1){var t=n.touches[1].clientX,e=n.touches[1].clientY;this.lastZoom=Math.sqrt(Math.pow(this.lastPositionX-t,2)+Math.pow(this.lastPositionY-e,2))}else this.lastZoom=void 0;else this.lastPositionX=n.offsetX,this.lastPositionY=n.offsetY;if(this.evaluacionVertical){var t,e,i=this.canvasRef.nativeElement.getBoundingClientRect();n instanceof MouseEvent?(t=n.clientX-i.left,e=n.clientY-i.top):n instanceof TouchEvent&&(t=n.touches[0].clientX-i.left,e=n.touches[0].clientY-i.top),this.verticalLine(t,e)}n instanceof TouchEvent&&n.preventDefault()},this.zoomGraph=function(n){var n=window.event||n,t=Math.max(-1,Math.min(1,n.wheelDelta||-n.detail));return this.zoom(t,n.clientX,n.clientY),!1},this.zoomMas=function(){this.zoom(1)},this.zoomMenos=function(){this.zoom(-1)},this.zoom=function(n,t,e){var l=n*this.rangeX/20,i=n*this.rangeY/20;if(!("Todo"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0||this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0)||"Abscisa"==this.tipoZoom&&(this.rangeX<.1&&l>0||this.rangeX>1e4&&l<0)||"Ordenada"==this.tipoZoom&&(this.rangeY<.1&&i>0||this.rangeY>1e4&&i<0))){if(t&&e){var o=this.canvasRef.nativeElement.getBoundingClientRect(),r=t-o.left,a=e-o.top,s=-this.centerX/this.scaleX,u=-(this.canvasRef.nativeElement.height/this.scaleY-this.centerY/this.scaleY),c=r/this.canvasRef.nativeElement.width*this.rangeX+s,h=(1-a/this.canvasRef.nativeElement.height)*this.rangeY+u,d=Math.abs(c-this.minX)/Math.abs(this.maxX-this.minX),f=Math.abs(h-this.minY)/Math.abs(this.maxY-this.minY);"Todo"==this.tipoZoom?(this.maxX-=l*(1-d),this.maxY-=i*(1-f),this.minX+=l*d,this.minY+=i*f):"Abscisa"==this.tipoZoom?(this.maxX-=l*(1-d),this.minX+=l*d):(this.maxY-=i*(1-f),this.minY+=i*f)}else"Todo"==this.tipoZoom?(this.maxX-=l,this.maxY-=i,this.minX+=l,this.minY+=i):"Abscisa"==this.tipoZoom?(this.maxX-=l,this.minX+=l):(this.maxY-=i,this.minY+=i);this.rangeX=this.maxX-this.minX,this.rangeY=this.maxY-this.minY,this.rangeX>15?this.unitsPerTickX=Math.round(this.rangeX/15):this.rangeX>4?this.unitsPerTickX=1:this.rangeX>1.5?this.unitsPerTickX=Math.round(this.rangeX/15*10)/10:this.rangeX>.4?this.unitsPerTickX=.1:this.rangeX>.15?this.unitsPerTickX=Math.round(this.rangeX/15*100)/100:this.unitsPerTickX=.01,this.rangeY>15?this.unitsPerTickY=Math.round(this.rangeY/15):this.rangeY>4?this.unitsPerTickY=1:this.rangeY>1.5?this.unitsPerTickY=Math.round(this.rangeY/15*10)/10:this.rangeY>.4?this.unitsPerTickY=.1:this.rangeY>.15?this.unitsPerTickY=Math.round(this.rangeY/15*100)/100:this.unitsPerTickY=.01,this.unitX=this.canvasRef.nativeElement.width/this.rangeX,this.unitY=this.canvasRef.nativeElement.height/this.rangeY,this.centerY=this.maxY/this.rangeY*this.canvasRef.nativeElement.height,this.centerX=-this.minX/this.rangeX*this.canvasRef.nativeElement.width,this.iteration=(this.maxX-this.minX)/this.precision,this.scaleX=this.canvasRef.nativeElement.width/this.rangeX,this.scaleY=this.canvasRef.nativeElement.height/this.rangeY,this.context.clearRect(0,0,this.canvasRef.nativeElement.width,this.canvasRef.nativeElement.height),this.dibujarObjetos()}},this.drawCircle=function(n,t,e,l,i){var o=this.context;o.save(),o.save(),this.transformContext(o),o.beginPath();try{o.translate(0,0);var r=i*Math.PI/180,a=Math.cos(r)*n-Math.sin(r)*t,s=Math.sin(r)*n+Math.cos(r)*t;o.rotate(-r),this.context.arc(a,s,e,0,2*Math.PI,!1),l&&(o.fillStyle=l,o.fill())}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawText=function(n,t,e,l,i,o){this.context.save();var r=-this.centerX/this.scaleX,a=-this.centerY/this.scaleY,s=-(t+a)/this.rangeY*this.canvasRef.nativeElement.height,u=(n-r)/this.rangeX*this.canvasRef.nativeElement.width;i&&(this.context.fillStyle=i),this.context.translate(u,s);var c=o*Math.PI/180;this.context.rotate(c),this.context.font=100*l/this.rangeX+"pt Arial",this.context.textBaseline="middle",this.context.textAlign="center",this.context.fillText(e,0,0),this.context.restore()},this.drawRect=function(n,t,e,l,i,o){var r=this.context;r.save(),r.save(),this.transformContext(r),r.beginPath();try{r.translate(0,0);var a=o*Math.PI/180,s=Math.cos(a)*n-Math.sin(a)*t,u=Math.sin(a)*n+Math.cos(a)*t;r.rotate(-a),r.rect(s-e/2,u-l/2,e,l),i&&(r.fillStyle=i,r.fill()),r.translate(this.centerX,this.centerY)}catch(n){this.limpiarCanvas()}r.restore(),r.lineJoin="round",r.lineWidth=this.thickness,r.strokeStyle=this.color,r.stroke(),r.restore()},this.drawElipse=function(n,t,e,l,i){var o=this.context;this.color="green",this.thickness=3,o.save(),o.save(),this.transformContext(o),o.beginPath();try{this.context.ellipse(n,t,e,l,i*Math.PI/180,0,2*Math.PI)}catch(n){this.limpiarCanvas()}o.restore(),o.lineJoin="round",o.lineWidth=this.thickness,o.strokeStyle=this.color,o.stroke(),o.restore()},this.drawEquation=function(n,t,e){var l=this.context;l.save(),l.save(),this.transformContext(l),l.beginPath(),l.lineWidth=e;try{var i=n(this.minX);i>1e7?i=1e7:i<-1e7&&(i=-1e7),l.moveTo(this.minX,i);for(var o=!0,r=void 0,a=void 0,s=void 0,u=(this.precision,this.rangeX/this.precision),c=this.rangeX/200,h=this.minX+this.iteration;h<=this.maxX;h+=this.iteration)try{var d=!1,f=function(){return d=!0,!0},m=n(h,u,f);if(d)this.context.fillRect(h-c/2,m-c/2,c,c),o=!0,d=!1;else{if(void 0!=s){var p=Math.tan(Math.atan(s)+Math.PI/8),v=Math.tan(Math.atan(s)-Math.PI/8);s>0&&p<0&&(p=1e20),s<0&&v>0&&(v=-1e20);var g=(h-r)*p-(m-a),b=(h-r)*v-(m-a);(g<0||b>0)&&(o=!0)}r&&(s=(m-a)/(h-r));var y=m;m>1e7?y=1e7:m<-1e7&&(y=-1e7),o?(l.moveTo(h,y),o=!1):l.lineTo(h,y)}r=h,a=m}catch(n){o=!0}}catch(n){this.limpiarCanvas()}l.restore(),l.lineJoin="bevel",l.lineWidth=e,l.strokeStyle=t,l.stroke(),l.restore()},this.drawPolyline=function(n,t,e,l){var i=this.context;i.save(),i.save(),this.transformContext(i),i.beginPath();try{if(t.length>1){var o=t[0];i.moveTo(o[0],o[1]);for(var r=0,a=t;r<a.length;r++){var s=a[r];i.lineTo(s[0],s[1])}n&&i.lineTo(o[0],o[1])}}catch(n){this.limpiarCanvas()}i.restore(),i.lineJoin="round",i.strokeStyle=e,e&&(i.fillStyle=e,i.fill()),i.strokeStyle="black",i.stroke(),i.restore()},ghciService.messages.subscribe(function(canvas){if(_this.limpiarCanvas(),"canvas"==canvas.tipo)_this.objetos=JSON.parse(canvas.resultado),_this.elementosAnimacion=[],_this.frameAnimacion=0,_this.dibujarObjetos();else if("animacion"==canvas.tipo)_this.elementosAnimacion=canvas.resultado.map(function(n){return JSON.parse(n)}),_this.frameAnimacion=0,_this.animando=!0,_this.animar();else if("graph"==canvas.tipo){var jsonCanvas=JSON.parse(canvas.resultado),fun=_this.generarFuncion(jsonCanvas);_this.objetos=[{tipo:"grafica",ecuacion:eval(fun),color:"black",thickness:2}],_this.dibujarObjetos()}},function(n){_this.objetos=[]})}return CanvasComponent.prototype.onResize=function(n){if(this.canvasRef.nativeElement.offsetParent){var t=window.devicePixelRatio||1;t>2?t=2:t<1&&(t=1),this.canvasRef.nativeElement.width=this.canvasRef.nativeElement.offsetParent.offsetWidth*t*.94,this.canvasRef.nativeElement.height=this.canvasRef.nativeElement.offsetParent.offsetHeight*t*.94;var e=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(e),this.dibujarObjetos()}},CanvasComponent.prototype.exportImg=function(){function n(){var n;n=document.getElementById("myCanvas");var t=n.toDataURL("image/png");t=t.replace(/^data:image\/[^;]*/,"data:application/octet-stream"),t=t.replace(/^data:application\/octet-stream/,"data:application/octet-stream;headers=Content-Disposition%3A%20attachment%3B%20filename=Canvas.png"),this.href=t}document.getElementById("dl").addEventListener("click",n,!1),document.getElementById("dl").click()},CanvasComponent.prototype.ngAfterViewInit=function(){this.canvasRef.nativeElement.width=.94*this.canvasRef.nativeElement.offsetParent.offsetWidth,this.canvasRef.nativeElement.height=.94*this.canvasRef.nativeElement.offsetParent.offsetHeight;var n=this.canvasRef.nativeElement.width/this.canvasRef.nativeElement.height;this.Graph(n),this.dibujarObjetos()},CanvasComponent.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},CanvasComponent.prototype.play=function(){this.animando=!0,this.animar()},CanvasComponent.prototype.pause=function(){this.animando=!1},CanvasComponent.ctorParameters=function(){return[{type:__WEBPACK_IMPORTED_MODULE_0__shared_services_ghci_service__.a}]},CanvasComponent}()},ppY8:function(n,t,e){!function(n){n(e("oiK7"))}(function(n){function t(n,t,e){var l,i=n.getWrapperElement();return l=i.appendChild(document.createElement("div")),l.className=e?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?l.innerHTML=t:l.appendChild(t),l}function e(n,t){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=t}n.defineExtension("openDialog",function(l,i,o){function r(n){if("string"==typeof n)h.value=n;else{if(u)return;u=!0,s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}o||(o={}),e(this,null);var a,s=t(this,l,o.bottom),u=!1,c=this,h=s.getElementsByTagName("input")[0];return h?(h.focus(),o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&n.on(h,"input",function(n){o.onInput(n,h.value,r)}),o.onKeyUp&&n.on(h,"keyup",function(n){o.onKeyUp(n,h.value,r)}),n.on(h,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,h.value,r)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(h.blur(),n.e_stop(t),r()),13==t.keyCode&&i(h.value,t))}),!1!==o.closeOnBlur&&n.on(h,"blur",r)):(a=s.getElementsByTagName("button")[0])&&(n.on(a,"click",function(){r(),c.focus()}),!1!==o.closeOnBlur&&n.on(a,"blur",r),a.focus()),r}),n.defineExtension("openConfirm",function(l,i,o){function r(){u||(u=!0,a.parentNode.removeChild(a),c.focus())}e(this,null);var a=t(this,l,o&&o.bottom),s=a.getElementsByTagName("button"),u=!1,c=this,h=1;s[0].focus();for(var d=0;d<s.length;++d){var f=s[d];!function(t){n.on(f,"click",function(e){n.e_preventDefault(e),r(),t&&t(c)})}(i[d]),n.on(f,"blur",function(){--h,setTimeout(function(){h<=0&&r()},200)}),n.on(f,"focus",function(){++h})}}),n.defineExtension("openNotification",function(l,i){function o(){s||(s=!0,clearTimeout(r),a.parentNode.removeChild(a))}e(this,o);var r,a=t(this,l,i&&i.bottom),s=!1,u=i&&void 0!==i.duration?i.duration:5e3;return n.on(a,"click",function(t){n.e_preventDefault(t),o()}),u&&(r=setTimeout(o,u)),o})})},qtCd:function(n,t,e){"use strict";var l=e("Dqrr");e.n(l);e.d(t,"a",function(){return i});var i=function(){function n(){}return n.prototype.connect=function(n){return this.subject||(this.subject=this.create(n),console.log("Successfully connected: "+n)),this.subject},n.prototype.create=function(n){var t=new WebSocket(n),e=l.Observable.create(function(n){return t.onmessage=n.next.bind(n),t.onerror=n.error.bind(n),t.onclose=n.complete.bind(n),t.close.bind(t)}),i={next:function(n){t.readyState===WebSocket.OPEN?t.send(JSON.stringify(n)):console.log("Se perdio la conexion")}};return l.Subject.create(i,e)},n.ctorParameters=function(){return[]},n}()},s6Yw:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},sRze:function(n,t,e){"use strict";var l=e("/oeL"),i=e("dh/p"),o=e("fdEY"),r=e("h7Ol"),a=e("2qVr"),s=e("6akk"),u=e("78g9"),c=e("HXxp"),h=e("UfLB"),d=e("ij+S"),f=e("p2gU"),m=(e.n(f),e("uiTn")),p=e("xpf9"),v=(e.n(p),e("5v8a")),g=(e.n(v),e("WC4F")),b=(e.n(g),e("lDY9")),y=(e.n(b),e("99fb")),C=(e.n(y),e("H6+I")),x=(e.n(C),e("oiK7")),E=(e.n(x),e("L8b4")),k=(e.n(E),e("ppY8")),R=(e.n(k),e("tyH6")),w=(e.n(R),e("Qdk6")),S=(e.n(w),e("EZ6d"));e.n(S);e.d(t,"a",function(){return X});var P,T,M,X=function(){function n(n,t,e,l,i,o,r,a){if(this.haskellService=n,this.authService=t,this.ghciService=e,this.elRef=l,this.notifService=i,this.sessionService=o,this.dialogService=r,this.usuarioService=a,this.consoleDisable=!1,this.consolaVisible=!0,this.cursorLabelInit=!1,this.entrada="",this.modificado=!1,this.argumentoI=!1,this.argumentoF=!1,this.editableLoaded=!1,this.editDialogFired=!1,this.code="",this.configCodeMirror={readOnly:!1,lineNumbers:!0,lineWrapping:!0,extraKeys:{"Ctrl-Space":"autocomplete"},mode:{name:"matefun",globalVars:!0},gutters:["CodeMirror-linenumbers","breakpoints"],theme:"dracula",fontSize:12},this.themes=["3024-day","3024-night","abcdef","ambiance-mobile","ambiance","base16-dark","base16-light","bespin","blackboard","cobalt","colorforth","dracula","duotone-dark","duotone-light","eclipse","elegant","erlang-dark","hopscotch","icecoder","isotope","lesser-dark","liquibyte","material","mbo","mdn-like","midnight","monokai","neat","neo","night","panda-syntax","paraiso-dark","paraiso-light","pastel-on-dark","railscasts","rubyblue","seti","solarized","the-matrix","tomorrow-night-bright","tomorrow-night-eighties","ttcn","twilight","vibrant-ink","xq-dark","xq-light","yeti","zenburn"],this.funcionSTR="Math.sin(x)*x*x-20",this.consola="",this.command="",this.tipo=1,this.onKey=function(n){this.funcionSTR=n,this.archivo.contenido=n},this.writeCommand=function(n){this.command=n.split("\n")[n.split("\n").length-1]},this.selectFunction=function(){this.tipo=1,this.funcionSTR="Math.sin(x)*x*x-20"},this.selectElipse=function(){this.tipo=2,this.funcionSTR="elipse(x,y,radioX, radioY, rotacion_en_grados)"},this.selectCircle=function(){this.tipo=3,this.funcionSTR="circulo(x,y,radio)"},this.elipse=function(n,t,e,l,i){return[n,t,e,l,i]},this.circulo=function(n,t,e){return[n,t,e]},this.archivo=o.getArchivo(),this.archivo&&this.archivo.id||this.newFile(),this.copiaContenidoArchivo=this.archivo.contenido,this.copiaNombreArchivo=this.archivo.nombre,t.getUser().configuracion){var s=t.getUser().configuracion;s.fontSizeEditor<=30&&s.fontSizeEditor>=8&&(this.configCodeMirror.fontSize=s.fontSizeEditor),this.themes.some(function(n){return n==s.themeEditor})&&(this.configCodeMirror.theme=s.themeEditor),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror)),this.argumentoI=s.argumentoI,this.argumentoF=s.argumentoF}this.code="my code"}return n.prototype.updateConfig=function(n){this.configCodeMirror.theme=n,this.codemirror.instance.setOption("theme",n),sessionStorage.setItem("codeMirrorConfig",JSON.stringify(this.configCodeMirror))},n.prototype.lockSaveButton=function(){this.copiaNombreArchivo=this.archivo.nombre,this.copiaContenidoArchivo=this.archivo.contenido,this.modificado=!1},n.prototype.showConfirm=function(){this.dialogService.addDialog(h.a,{title:"Está intentando editar un archivo de solo lectura",message:"Está editando un archivo de solo lectura, desea continuar?"}).subscribe(function(n){n&&(P.options.readOnly=!1,T.editDialogFired=!0)})},n.prototype.makePanel=function(){var n=document.createElement("div");n.id="cursorpos-panel",n.className="panel bottom",this.cursorPanelLabel=n.appendChild(document.createElement("span"));var t=this.codemirror.instance,e=t.getCursor().line,l=t.getCursor().ch;e=(Number(e)+1).toString(),l=(Number(l)+1).toString(),this.cursorPanelLabel.textContent="Posición del cursor: ("+e+","+l+")",this.cursorPanel=this.codemirror.instance.addPanel(n,{position:"bottom",stable:!0});var i=this;this.codemirror.instance.on("cursorActivity",function(n){var t=n.getCursor().line,e=n.getCursor().ch;t=(Number(t)+1).toString(),e=(Number(e)+1).toString(),i.cursorPanel.node.innerText="Posición del cursor: ("+t+","+e+")"}),this.codemirror.instance.on("keyHandled",function(n,t,e){"Digit1"===t.code&&t.ctrlKey&&t.shiftKey?i.seleccionarDirectorio():"Digit2"===t.code&&t.ctrlKey&&t.shiftKey&&i.saveConfig()}),this.codemirror.instance.on("keypress",function(n,t,e){!i.editDialogFired&&"docente"===JSON.parse(sessionStorage.currentUser).tipo&&n.options.readOnly&&(P=i.codemirror.instance,T=i,i.showConfirm())})},n.prototype.saveConfig=function(){var n=this,t=new c.a;t.themeEditor=this.configCodeMirror.theme,t.fontSizeEditor=this.configCodeMirror.fontSize;var e=this.authService.getUserConfig(),l=e.argumentoF!=this.argumentoF||e.argumentoI!=this.argumentoI;t.argumentoF=this.argumentoF,t.argumentoI=this.argumentoI,this.usuarioService.actualizarConfiguracion(this.authService.getUser().cedula,t).subscribe(function(t){n.popover.close(),n.authService.setUserConfig(t),l&&n.reiniciarInterprete()},function(t){n.notifService.error(t),n.popover.close()})},n.prototype.aumentarFuente=function(){this.configCodeMirror.fontSize<30&&this.configCodeMirror.fontSize++},n.prototype.disminuirFuente=function(){this.configCodeMirror.fontSize>8&&this.configCodeMirror.fontSize--},n.prototype.documentClicked=function(n){if(this.popover&&this.popover.isOpen()&&!this.popover._elementRef.nativeElement.contains(n.target)){this.popover._windowRef.location.nativeElement.contains(n.target)||this.popover.close()}},n.prototype.ngOnInit=function(){function n(n){var t=window.event?event:n;if(90==t.keyCode&&t.ctrlKey,"a"===t.key.toLowerCase()&&t.ctrlKey)return T.seleccionarDirectorio(),!1;if("e"===t.key.toLowerCase()&&t.ctrlKey)return T.downloadFile(),!1;if("r"===t.key.toLowerCase()&&t.ctrlKey)return T.reiniciarInterprete(),!1;if("g"===t.key.toLowerCase()&&t.ctrlKey)return T.guardarArchivo(),!1;if("o"===t.key.toLowerCase()&&t.ctrlKey)return document.getElementById("popover").click(),!1;if(t.ctrlKey&&t.altKey&&"p"===t.key.toLowerCase()){document.getElementById("ProgramBtn").click();var e=T;return setTimeout(function(){e.codemirror.instance.focus()},250),T.codemirror.instance.focus(),M="program",!1}return t.ctrlKey&&t.altKey&&"c"===t.key.toLowerCase()?(T.ghciService.focusConsole(),M="consola",!1):t.ctrlKey&&t.altKey&&"f"===t.key.toLowerCase()?(document.getElementById("FigurasBtn").click(),T.ghciService.focusConsole(),M="graficas",!1):"p"===t.key.toLowerCase()&&t.ctrlKey&&!t.altKey?(T.runCode(),!1):void 0}var t=this;this.ghciService.rendered(),this.haskellService.getArchivos(this.authService.getUser().cedula).subscribe(function(n){t.buildTreeFromList(n)},function(n){return console.log("Error al obtener los archivos del alumno")}),document.onkeydown=n},n.prototype.ngAfterViewInit=function(){if(T=this,null==this.codemirror.instance||this.cursorLabelInit||(this.cursorLabelInit=!0,this.codemirror.instance.setOption("theme",this.configCodeMirror.theme),this.makePanel()),!this.editableLoaded&&null!=this.codemirror.instance&&void 0!==this.sessionService.archivo.editable)try{var n=this.sessionService.archivo.editable&&("Edicion"==this.sessionService.archivo.estado||"Devuelto"==this.sessionService.archivo.estado);this.codemirror.instance.options.readOnly=!n,this.editableLoaded=!0}catch(n){return}},n.prototype.htmlEncode=function(n){return n.replace("Prelude> ","").replace(/&/g,"&amp;").replace(/\s/g,"&nbsp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},n.prototype.inputConsola=function(n){this.entrada=n},n.prototype.newFile=function(){this.archivo=new u.b,this.archivo.cedulaCreador=this.authService.getUser().cedula,this.archivo.contenido="",this.archivo.nombre="",this.copiaNombreArchivo="",this.copiaContenidoArchivo=""},n.prototype.archivoModificado=function(){this.copiaNombreArchivo!=this.archivo.nombre||this.copiaContenidoArchivo!=this.archivo.contenido?this.modificado=!0:this.modificado=!1},n.prototype.guardarArchivo=function(){var n=this,t=/^[A-Z]/;""==this.archivo.nombre.trim()?this.notifService.error("Nombre de archivo sin especificar"):t.test(this.archivo.nombre)?this.archivo.id?this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton()},function(t){n.notifService.error(t)}):this.notifService.error("Nombre de archivo debe iniciar con mayusula.")},n.prototype.runCode=function(){var n=this;this.ghciService.setCodemirrorRef(this.codemirror.instance),this.ghciService.resetGutters();var t=/^[A-Z]/;if(""==this.archivo.nombre.trim())this.notifService.error("Nombre de archivo sin especificar");else if(t.test(this.archivo.nombre)){var e=this.sessionService.cargarDependencias(this.archivo);if("miss"===e.status)return void this.ghciService.outputConsole("Error: No se encuentra el archivo "+e.nombre+"\n");if(this.archivo.id)if(this.archivo.editable||"docente"==this.authService.getUser().tipo)this.haskellService.editarArchivo(this.archivo.id,this.archivo).subscribe(function(t){n.archivo=t;var e=n.sessionService.getDependencias(),l=[];for(var i in e)l.push(e[i].id);l.some(function(n){return n==t.id})||l.push(t.id),n.lockSaveButton(),n.ghciService.loadFile(t.id,l)},function(t){n.notifService.error(t)});else{var l=this.sessionService.getDependencias(),i=[];for(var o in l)i.push(l[o].id);i.some(function(t){return t==n.archivo.id})||i.push(this.archivo.id),this.ghciService.loadFile(this.archivo.id,i)}else this.haskellService.crearArchivo(this.archivo).subscribe(function(t){n.archivo=t,n.lockSaveButton(),n.ghciService.loadFile(t.id,[])},function(t){n.notifService.error(t)})}else this.notifService.error("Nombre de archivo debe iniciar con mayusula.");this.ghciService.focusConsole()},n.prototype.download=function(n,t){var e=document.createElement("a");e.setAttribute("href","data:application/octet-stream,"+encodeURIComponent(t)),e.setAttribute("download",n+".mf"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},n.prototype.downloadFile=function(){var n=this.archivo.nombre,t=this.archivo.contenido;void 0!=n&&""!=n&&void 0!=t&&""!=t&&this.download(n,t)},n.prototype.reiniciarInterprete=function(){this.ghciService.reiniciarInterprete()},n.prototype.toggleConsole=function(){this.consolaVisible=!this.consolaVisible},n.prototype.seleccionarDirectorio=function(){this.archivosTree=this.sessionService.getArchivos(void 0);this.dialogService.addDialog(d.a,{title:"",message:"",archivos:this.archivosTree,directorioActual:this.archivosTree,nombre:"",parent:this}).subscribe(function(n){})},n.prototype.buildTreeFromList=function(n){this.sessionService.setArchivosList(n);var t;for(var e in n){var l=n[e];-1===l.padreId&&(t=l)}this.idRecorridos=[t.id];var i=n.filter(function(n){return n.id!==t.id}),o=this.buildTree(i,t);this.archivosTree=o,this.sessionService.setArchivosTree(o)},n.prototype.buildTree=function(n,t){t.archivos=this.getArchivos(t.id,n);for(var e in t.archivos)if(t.archivos[e].directorio&&void 0===this.idRecorridos[t.archivos[e].id]){var l=t.archivos[e].id,i=n.filter(function(n){return n.id!==l});t.archivos[e]=this.buildTree(i,t.archivos[e])}return t},n.prototype.getArchivos=function(n,t){return t.filter(function(t){return t.padreId===n})},n.ctorParameters=function(){return[{type:i.a},{type:s.a},{type:a.a},{type:l.ElementRef},{type:m.a},{type:r.a},{type:f.DialogService},{type:o.a}]},n}()},tyH6:function(n,t,e){!function(n){n(e("oiK7"),e("OZVu"),e("La8y"))}(function(n){"use strict";function t(n,t,e,l){this.cm=n,this.options=l;var i={listenForChanges:!1};for(var o in l)i[o]=l[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=n.annotateScrollbar(i),this.query=t,this.caseFold=e,this.gap={from:n.firstLine(),to:n.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var r=this;n.on("change",this.changeHandler=function(n,t){r.onChange(t)})}function e(n,t,e){return n<=t?n:Math.max(t,n+e)}n.defineExtension("showMatchesOnScrollbar",function(n,e,l){return"string"==typeof l&&(l={className:l}),l||(l={}),new t(this,n,e,l)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){var e=this.matches[t];if(e.from.line>=this.gap.to)break;e.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var l=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),this.caseFold),i=this.options&&this.options.maxMatches||1e3;l.findNext();){var e={from:l.from(),to:l.to()};if(e.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,e),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var l=t.from.line,i=n.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(e(this.gap.from,l,o),t.from.line),this.gap.to=Math.max(e(this.gap.to,l,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var r=0;r<this.matches.length;r++){var a=this.matches[r],s=e(a.from.line,l,o);s!=a.from.line&&(a.from=n.Pos(s,a.from.ch));var u=e(a.to.line,l,o);u!=a.to.line&&(a.to=n.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})}});
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/3.75985c86a9a9f51d170e.chunk.js b/Servidor JEE/WebContent/3.75985c86a9a9f51d170e.chunk.js
new file mode 100644
index 0000000000000000000000000000000000000000..aa0ec37f218f19d57f81536ad6839abbe52b1f32
--- /dev/null
+++ b/Servidor JEE/WebContent/3.75985c86a9a9f51d170e.chunk.js	
@@ -0,0 +1 @@
+webpackJsonp([3],{"65aF":function(n,t,e){"use strict";function l(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,1,"app-header",[],null,null,null,r.a,r.b)),u["ɵdid"](1,114688,null,0,i.a,[d.a,c.c,s.a,p.a],null,null),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵeld"](3,0,null,null,1,"app-sidebar",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==u["ɵnov"](n,4).documentClicked(e)&&l}return l},g.a,g.b)),u["ɵdid"](4,49152,null,0,m.a,[d.a],null,null),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵeld"](6,0,null,null,4,"section",[["class","main-container"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n    "])),(n()(),u["ɵeld"](8,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),u["ɵdid"](9,212992,null,0,c.z,[c.q,u.ViewContainerRef,u.ComponentFactoryResolver,[8,null],u.ChangeDetectorRef],null,null),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵted"](-1,null,["\n"]))],function(n,t){n(t,1,0),n(t,9,0)},null)}function o(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,2,"app-layout",[],null,null,null,l,v)),u["ɵprd"](4608,null,p.a,p.a,[d.a,c.c]),u["ɵdid"](2,114688,null,0,f.a,[c.c],null,null)],function(n,t){n(t,2,0)},null)}var a=e("sSX1"),u=e("/oeL"),r=e("TtRf"),i=e("o+mL"),d=e("6akk"),c=e("BkNc"),s=e("h7Ol"),p=e("2qVr"),g=e("dG/l"),m=e("aoCP"),f=e("h7nR");e.d(t,"a",function(){return b});var C=[a.a],v=u["ɵcrt"]({encapsulation:0,styles:C,data:{}}),b=u["ɵccf"]("app-layout",f.a,o,{},{},[])},"7fD3":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("/oeL"),o=e("eRLv"),a=e("CVNG"),u=e("ClIn"),r=e("CU81"),i=e("IkMs"),d=e("DlWC"),c=e("m0eP"),s=e("MsHi"),p=e("65aF"),g=e("qbdv"),m=e("bm2B"),f=e("KRwK"),C=e("dN2u"),v=e("nVXb"),b=e("Wv1e"),M=e("QGDq"),P=e("0H8/"),O=e("5FV4"),_=e("f1rf"),h=e("KSV9"),k=e("CuDZ"),y=e("lA7/"),w=e("HRzg"),x=e("Qyse"),L=e("NmeZ"),R=e("7zUS"),S=e("59zy"),A=e("+E40"),D=e("V6Dl"),F=e("6akk"),q=e("CPp0"),N=e("dh/p"),z=e("BkNc"),I=e("wnyu"),K=e("EoP3"),E=e("PY9B"),H=e("3rU7"),V=e("4HaF"),B=e("DaIH"),W=e("Zz+K"),G=e("2waW"),Q=e("IBeK"),T=e("g5gQ"),U=e("xBEz"),j=e("PuIS"),J=e("U0Tu"),X=e("Cb36"),Y=e("5h8W"),Z=e("6ade"),$=e("0WLp"),nn=e("p7G+"),tn=e("0vel"),en=(e.n(tn),e("DYHI")),ln=e("h7nR");e.d(t,"LayoutModuleNgFactory",function(){return on});var on=l["ɵcmf"](o.a,[],function(n){return l["ɵmod"]([l["ɵmpd"](512,l.ComponentFactoryResolver,l["ɵCodegenComponentFactoryResolver"],[[8,[a.a,u.a,r.a,i.a,d.a,c.a,s.a,p.a]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["ɵmpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[l.LOCALE_ID]),l["ɵmpd"](4608,m["ɵi"],m["ɵi"],[]),l["ɵmpd"](4608,f.a,f.a,[l.ApplicationRef,l.Injector,l.ComponentFactoryResolver]),l["ɵmpd"](4608,C.a,C.a,[l.ComponentFactoryResolver,l.Injector,f.a]),l["ɵmpd"](4608,v.a,v.a,[]),l["ɵmpd"](4608,b.a,b.a,[]),l["ɵmpd"](4608,M.a,M.a,[]),l["ɵmpd"](4608,P.a,P.a,[]),l["ɵmpd"](4608,O.a,O.a,[]),l["ɵmpd"](4608,_.a,_.a,[]),l["ɵmpd"](4608,h.a,h.b,[]),l["ɵmpd"](4608,k.a,k.b,[]),l["ɵmpd"](4608,y.a,y.b,[]),l["ɵmpd"](4608,w.a,w.a,[]),l["ɵmpd"](4608,x.a,x.a,[]),l["ɵmpd"](4608,L.a,L.a,[]),l["ɵmpd"](4608,R.a,R.a,[]),l["ɵmpd"](4608,S.a,S.a,[]),l["ɵmpd"](4608,A.a,A.a,[]),l["ɵmpd"](4608,D.a,D.a,[]),l["ɵmpd"](4608,F.a,F.a,[q.i]),l["ɵmpd"](4608,N.a,N.a,[q.i,z.c,F.a]),l["ɵmpd"](512,g.CommonModule,g.CommonModule,[]),l["ɵmpd"](512,m["ɵba"],m["ɵba"],[]),l["ɵmpd"](512,m.FormsModule,m.FormsModule,[]),l["ɵmpd"](512,I.a,I.a,[]),l["ɵmpd"](512,K.a,K.a,[]),l["ɵmpd"](512,E.a,E.a,[]),l["ɵmpd"](512,H.a,H.a,[]),l["ɵmpd"](512,V.a,V.a,[]),l["ɵmpd"](512,B.a,B.a,[]),l["ɵmpd"](512,W.a,W.a,[]),l["ɵmpd"](512,G.a,G.a,[]),l["ɵmpd"](512,Q.a,Q.a,[]),l["ɵmpd"](512,T.a,T.a,[]),l["ɵmpd"](512,U.a,U.a,[]),l["ɵmpd"](512,j.a,j.a,[]),l["ɵmpd"](512,J.a,J.a,[]),l["ɵmpd"](512,X.a,X.a,[]),l["ɵmpd"](512,Y.a,Y.a,[]),l["ɵmpd"](512,Z.a,Z.a,[]),l["ɵmpd"](512,$.a,$.a,[]),l["ɵmpd"](512,z.x,z.x,[[2,z.k],[2,z.c]]),l["ɵmpd"](512,nn.a,nn.a,[]),l["ɵmpd"](512,tn.CodemirrorModule,tn.CodemirrorModule,[]),l["ɵmpd"](512,en.a,en.a,[]),l["ɵmpd"](512,o.a,o.a,[]),l["ɵmpd"](1024,z.t,function(){return[[{path:"",component:ln.a,children:[{path:"matefun",loadChildren:"./matefun/matefun.module#MateFunModule"},{path:"archivos",loadChildren:"./archivos/archivos.module#ArchivosModule"},{path:"grupos",loadChildren:"./grupos/grupos.module#GruposModule"}]}]]},[])])})},OirF:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=[".sidebar[_ngcontent-%COMP%]{position:fixed;z-index:1000;top:55px;left:235px;width:235px;margin-left:-235px;border:none;border-radius:0;overflow-y:auto;background-color:#036b9a;bottom:0;overflow-x:hidden;padding-bottom:40px;transition:all .2s ease-in-out}.sidebar[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]   a.list-group-item[_ngcontent-%COMP%]{background:#036b9a;border:0;border-radius:0;color:#999;text-decoration:none}.sidebar[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]   a.router-link-active[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background:#035a81;color:#fff}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:focus{border-radius:none;border:none}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]{font-size:1rem;height:50px;margin-bottom:0}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#999;text-decoration:none;font-weight:400;background:#036b9a}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;display:block;padding:.75rem 1.5rem;padding-top:1rem}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff;outline:none;outline-offset:-2px}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]:hover{background:#035a81}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]{border-radious:0;border:none}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]{border-radius:0;background-color:#036b9a;border:0 solid transparent}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#999}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]:hover{background:#035a81}.nested-menu[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]{cursor:pointer}.nested-menu[_ngcontent-%COMP%]   .nested[_ngcontent-%COMP%]{list-style-type:none}.nested-menu[_ngcontent-%COMP%]   ul.submenu[_ngcontent-%COMP%]{display:none;height:0}.nested-menu[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   ul.submenu[_ngcontent-%COMP%]{display:block;list-style-type:none;height:auto}.nested-menu[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   ul.submenu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;padding:10px;display:block}.sidebar[_ngcontent-%COMP%]{top:54px;left:0}"]},QwHJ:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=[".topnav[_ngcontent-%COMP%]{background:linear-gradient(#0085ff,#31dc7d);background:linear-gradient(90deg,#0085ff,#5f0000)!important;border-radius:0;background-color:#222;padding:6px;z-index:2}.topnav[_ngcontent-%COMP%]   .text-center[_ngcontent-%COMP%]{text-align:center;padding-left:0;cursor:pointer}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .buy-now[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#999}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{top:40px;right:-5px;left:auto}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .message-preview[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   .media-heading[_ngcontent-%COMP%]{font-size:14px;font-weight:700;margin-bottom:0}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .message-preview[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .message-preview[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   p.last[_ngcontent-%COMP%]{font-size:13px;margin-bottom:0}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:4px}.messages[_ngcontent-%COMP%]{width:300px}.messages[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{border-bottom:1px solid #ddd;padding:5px 10px}.messages[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]:last-child{border-bottom:none}.messages[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:13px;font-weight:600}.messages[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   .small[_ngcontent-%COMP%]{margin:0}.messages[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   .last[_ngcontent-%COMP%]{font-size:12px;margin:0}.header[_ngcontent-%COMP%]   .navbar[_ngcontent-%COMP%]{background:#222!important}"]},TtRf:function(n,t,e){"use strict";function l(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,37,"div",[["class","pos-f-t fixed-top header"],["style","z-index: 1100;"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n    "])),(n()(),u["ɵeld"](2,0,null,null,34,"nav",[["class","navbar navbar-inverse bg-inverse navbar-toggleable-md"],["style","background: #0278AE !important;"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵeld"](4,0,null,null,3,"button",[["class","navbar-toggler navbar-toggler-left"],["style","display: block;"]],null,[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==o.toggleSidebar(e)&&l}return l},null,null)),(n()(),u["ɵted"](-1,null,["\n            "])),(n()(),u["ɵeld"](6,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵeld"](9,0,null,null,1,"a",[["class","navbar-brand"],["href","#/matefun"],["style","margin-left: 3.5em; width: 5em"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["MateFun"])),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵeld"](12,0,null,null,23,"div",[["class","collapse navbar-collapse"],["id","navbarTogglerDemo02"],["style","position: absolute; right: 10px; display: block; width: 15em; text-align: right;"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n            "])),(n()(),u["ɵeld"](14,0,null,null,20,"ul",[["class","navbar-nav ml-auto mt-2 mt-md-0"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n                "])),(n()(),u["ɵeld"](16,0,null,null,17,"div",[["class","nav-item dropdown"],["ngbDropdown",""]],[[2,"dropdown",null],[2,"dropup",null],[2,"show",null]],[[null,"keyup.esc"],["document","click"]],function(n,t,e){var l=!0;if("keyup.esc"===t){l=!1!==u["ɵnov"](n,17).closeFromOutsideEsc()&&l}if("document:click"===t){l=!1!==u["ɵnov"](n,17).closeFromOutsideClick(e)&&l}return l},null,null)),u["ɵdid"](17,16384,null,0,i.b,[d.a],null,null),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵeld"](19,0,null,null,6,"a",[["aria-haspopup","true"],["class","nav-link dropdown-toggle"],["href","javascript:void(0)"],["ngbDropdownToggle",""]],[[1,"aria-expanded",0]],[[null,"click"]],function(n,t,e){var l=!0;if("click"===t){l=!1!==u["ɵnov"](n,20).toggleOpen()&&l}return l},null,null)),u["ɵdid"](20,16384,null,0,i.a,[i.b,u.ElementRef],null,null),(n()(),u["ɵted"](-1,null,["\n                        "])),(n()(),u["ɵeld"](22,0,null,null,0,"i",[["class","fa fa-user"]],null,null,null,null,null)),(n()(),u["ɵted"](23,null,[" ",""])),(n()(),u["ɵeld"](24,0,null,null,0,"b",[["class","caret"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵeld"](27,0,null,null,5,"div",[["class","dropdown-menu dropdown-menu-right"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n                        "])),(n()(),u["ɵeld"](29,0,null,null,2,"a",[["class","dropdown-item"],["style","cursor: pointer;"]],null,[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==o.logout()&&l}return l},null,null)),(n()(),u["ɵeld"](30,0,null,null,0,"i",[["class","fa fa-fw fa-power-off"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,[" Salir"])),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵted"](-1,null,["\n                "])),(n()(),u["ɵted"](-1,null,["\n            "])),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵted"](-1,null,["\n    "])),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵted"](-1,null,["\n"]))],null,function(n,t){var e=t.component;n(t,16,0,!u["ɵnov"](t,17).up,u["ɵnov"](t,17).up,u["ɵnov"](t,17).isOpen()),n(t,19,0,u["ɵnov"](t,20).dropdown.isOpen()),n(t,23,0,e.usuario.nombre+" "+e.usuario.apellido)})}function o(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,1,"app-header",[],null,null,null,l,f)),u["ɵdid"](1,114688,null,0,r.a,[c.a,s.c,p.a,g.a],null,null)],function(n,t){n(t,1,0)},null)}var a=e("QwHJ"),u=e("/oeL"),r=e("o+mL"),i=e("fxWY"),d=e("Qyse"),c=e("6akk"),s=e("BkNc"),p=e("h7Ol"),g=e("2qVr");e.d(t,"b",function(){return f}),t.a=l;var m=[a.a],f=u["ɵcrt"]({encapsulation:0,styles:m,data:{}});u["ɵccf"]("app-header",r.a,o,{},{},[])},aoCP:function(n,t,e){"use strict";var l=e("6akk");e.d(t,"a",function(){return o});var o=function(){function n(n){this.authService=n,this.isActive=!1,this.showMenu="",this.usuario=n.getUser()}return n.prototype.eventCalled=function(){this.isActive=!this.isActive},n.prototype.addExpandClass=function(n){n===this.showMenu?this.showMenu="0":this.showMenu=n},n.prototype.toggleSidebar=function(){document.querySelector("body").classList.toggle("push-right")},n.prototype.esAlumno=function(){return"alumno"==this.usuario.tipo},n.prototype.esDocente=function(){return"docente"==this.usuario.tipo},n.prototype.documentClicked=function(n){var t=document.querySelector("body");t.classList.contains("push-right")&&(this.sidebarNav.nativeElement.contains(n.target)||t.classList.remove("push-right"))},n.ctorParameters=function(){return[{type:l.a}]},n}()},"dG/l":function(n,t,e){"use strict";function l(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,9,"a",[["class","list-group-item"],["style","color: white;"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==r["ɵnov"](n,1).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l}if("click"===t){l=!1!==o.toggleSidebar()&&l}return l},null,null)),r["ɵdid"](1,671744,[[7,4]],0,i.y,[i.c,i.a,d.LocationStrategy],{routerLink:[0,"routerLink"]},null),r["ɵpad"](2,1),r["ɵdid"](3,1720320,null,2,i.A,[i.c,r.ElementRef,r.Renderer2,r.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),r["ɵqud"](603979776,6,{links:1}),r["ɵqud"](603979776,7,{linksWithHrefs:1}),r["ɵpad"](6,1),(n()(),r["ɵted"](-1,null,["\n            "])),(n()(),r["ɵeld"](8,0,null,null,0,"i",[["class","fa fa-fw fa-users"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,[" Grupos\n        "]))],function(n,t){n(t,1,0,n(t,2,0,"/grupos")),n(t,3,0,n(t,6,0,"router-link-active"))},function(n,t){n(t,0,0,r["ɵnov"](t,1).target,r["ɵnov"](t,1).href)})}function o(n){return r["ɵvid"](0,[r["ɵqud"](402653184,1,{sidebarNav:0}),(n()(),r["ɵted"](-1,null,[" "])),(n()(),r["ɵeld"](2,0,[[1,0],["sidebarNav",1]],null,31,"nav",[["class","sidebar"],["style","background: #036b9a !important;"]],null,null,null,null,null)),r["ɵdid"](3,278528,null,0,d.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r["ɵpod"](4,{sidebarPushRight:0}),(n()(),r["ɵted"](-1,null,["\n    "])),(n()(),r["ɵeld"](6,0,null,null,26,"ul",[["class","list-group"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵeld"](8,0,null,null,9,"a",[["class","list-group-item"],["style","color: white;"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==r["ɵnov"](n,9).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l}if("click"===t){l=!1!==o.toggleSidebar()&&l}return l},null,null)),r["ɵdid"](9,671744,[[3,4]],0,i.y,[i.c,i.a,d.LocationStrategy],{routerLink:[0,"routerLink"]},null),r["ɵpad"](10,1),r["ɵdid"](11,1720320,null,2,i.A,[i.c,r.ElementRef,r.Renderer2,r.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),r["ɵqud"](603979776,2,{links:1}),r["ɵqud"](603979776,3,{linksWithHrefs:1}),r["ɵpad"](14,1),(n()(),r["ɵted"](-1,null,["\n            "])),(n()(),r["ɵeld"](16,0,null,null,0,"i",[["class","fa fa-fw fa-desktop"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,[" Programa\n        "])),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵeld"](19,0,null,null,9,"a",[["class","list-group-item"],["style","color: white;"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==r["ɵnov"](n,20).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l}if("click"===t){l=!1!==o.toggleSidebar()&&l}return l},null,null)),r["ɵdid"](20,671744,[[5,4]],0,i.y,[i.c,i.a,d.LocationStrategy],{routerLink:[0,"routerLink"]},null),r["ɵpad"](21,1),r["ɵdid"](22,1720320,null,2,i.A,[i.c,r.ElementRef,r.Renderer2,r.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),r["ɵqud"](603979776,4,{links:1}),r["ɵqud"](603979776,5,{linksWithHrefs:1}),r["ɵpad"](25,1),(n()(),r["ɵted"](-1,null,["\n            "])),(n()(),r["ɵeld"](27,0,null,null,0,"i",[["class","fa fa-fw fa-file-o"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,[" Archivos\n        "])),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵand"](16777216,null,null,1,null,l)),r["ɵdid"](31,16384,null,0,d.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),r["ɵted"](-1,null,["\n        \n    "])),(n()(),r["ɵted"](-1,null,["\n"])),(n()(),r["ɵted"](-1,null,["\n"]))],function(n,t){var e=t.component;n(t,3,0,"sidebar",n(t,4,0,e.isActive)),n(t,9,0,n(t,10,0,"/matefun")),n(t,11,0,n(t,14,0,"router-link-active")),n(t,20,0,n(t,21,0,"/archivos")),n(t,22,0,n(t,25,0,"router-link-active")),n(t,31,0,e.esDocente())},function(n,t){n(t,8,0,r["ɵnov"](t,9).target,r["ɵnov"](t,9).href),n(t,19,0,r["ɵnov"](t,20).target,r["ɵnov"](t,20).href)})}function a(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"app-sidebar",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==r["ɵnov"](n,1).documentClicked(e)&&l}return l},o,g)),r["ɵdid"](1,49152,null,0,c.a,[s.a],null,null)],null,null)}var u=e("OirF"),r=e("/oeL"),i=e("BkNc"),d=e("qbdv"),c=e("aoCP"),s=e("6akk");e.d(t,"b",function(){return g}),t.a=o;var p=[u.a],g=r["ɵcrt"]({encapsulation:0,styles:p,data:{}});r["ɵccf"]("app-sidebar",c.a,a,{},{},[])},eRLv:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},h7nR:function(n,t,e){"use strict";var l=e("BkNc");e.d(t,"a",function(){return o});var o=function(){function n(n){this.router=n}return n.prototype.ngOnInit=function(){"/"===this.router.url&&this.router.navigate(["/login"])},n.ctorParameters=function(){return[{type:l.c}]},n}()},"o+mL":function(n,t,e){"use strict";var l=e("BkNc"),o=e("6akk"),a=e("h7Ol"),u=e("2qVr");e.d(t,"a",function(){return r});var r=function(){function n(n,t,e,l){this.authService=n,this.router=t,this.sessionService=e,this.ghciService=l,this.usuario=n.getUser()}return n.prototype.ngOnInit=function(){},n.prototype.toggleSidebar=function(n){n.stopPropagation(),document.querySelector("body").classList.toggle("push-right")},n.prototype.rltAndLtr=function(){document.querySelector("body").classList.toggle("rtl")},n.prototype.logout=function(){this.sessionService.reset(),this.ghciService.desconectarWS(),this.router.navigate(["/login"])},n.ctorParameters=function(){return[{type:o.a},{type:l.c},{type:a.a},{type:u.a}]},n}()},"p7G+":function(n,t,e){"use strict";var l=e("h7nR");e.d(t,"a",function(){return o});var o=(l.a,function(){function n(){}return n}())},sSX1:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=[".main-container[_ngcontent-%COMP%]{margin-top:60px;margin-left:235px;padding:15px;-ms-overflow-x:hidden;overflow-x:hidden;overflow-y:scroll;position:relative;overflow:hidden;margin-left:0!important}"]}});
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/3.cf1c44ac5f53ac78dbc0.chunk.js b/Servidor JEE/WebContent/3.cf1c44ac5f53ac78dbc0.chunk.js
deleted file mode 100644
index b41282e196f04201c372579373e48a390fa51b1e..0000000000000000000000000000000000000000
--- a/Servidor JEE/WebContent/3.cf1c44ac5f53ac78dbc0.chunk.js	
+++ /dev/null
@@ -1 +0,0 @@
-webpackJsonp([3],{"65aF":function(n,t,e){"use strict";function l(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,1,"app-header",[],null,null,null,r.a,r.b)),u["ɵdid"](1,114688,null,0,i.a,[d.a,c.c,s.a,p.a],null,null),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵeld"](3,0,null,null,1,"app-sidebar",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==u["ɵnov"](n,4).documentClicked(e)&&l}return l},g.a,g.b)),u["ɵdid"](4,49152,null,0,m.a,[d.a],null,null),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵeld"](6,0,null,null,4,"section",[["class","main-container"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n    "])),(n()(),u["ɵeld"](8,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),u["ɵdid"](9,212992,null,0,c.z,[c.q,u.ViewContainerRef,u.ComponentFactoryResolver,[8,null],u.ChangeDetectorRef],null,null),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵted"](-1,null,["\n"]))],function(n,t){n(t,1,0),n(t,9,0)},null)}function o(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,2,"app-layout",[],null,null,null,l,v)),u["ɵprd"](4608,null,p.a,p.a,[d.a]),u["ɵdid"](2,114688,null,0,f.a,[c.c],null,null)],function(n,t){n(t,2,0)},null)}var a=e("sSX1"),u=e("/oeL"),r=e("TtRf"),i=e("o+mL"),d=e("6akk"),c=e("BkNc"),s=e("h7Ol"),p=e("2qVr"),g=e("dG/l"),m=e("aoCP"),f=e("h7nR");e.d(t,"a",function(){return b});var C=[a.a],v=u["ɵcrt"]({encapsulation:0,styles:C,data:{}}),b=u["ɵccf"]("app-layout",f.a,o,{},{},[])},"7fD3":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("/oeL"),o=e("eRLv"),a=e("CVNG"),u=e("ClIn"),r=e("CU81"),i=e("IkMs"),d=e("DlWC"),c=e("m0eP"),s=e("MsHi"),p=e("65aF"),g=e("qbdv"),m=e("bm2B"),f=e("KRwK"),C=e("dN2u"),v=e("nVXb"),b=e("Wv1e"),M=e("QGDq"),P=e("0H8/"),O=e("5FV4"),_=e("f1rf"),h=e("KSV9"),k=e("CuDZ"),y=e("lA7/"),w=e("HRzg"),x=e("Qyse"),L=e("NmeZ"),R=e("7zUS"),S=e("59zy"),A=e("+E40"),D=e("V6Dl"),F=e("6akk"),q=e("CPp0"),N=e("dh/p"),z=e("wnyu"),I=e("EoP3"),K=e("PY9B"),E=e("3rU7"),H=e("4HaF"),V=e("DaIH"),B=e("Zz+K"),W=e("2waW"),G=e("IBeK"),Q=e("g5gQ"),T=e("xBEz"),U=e("PuIS"),j=e("U0Tu"),J=e("Cb36"),X=e("5h8W"),Y=e("6ade"),Z=e("0WLp"),$=e("BkNc"),nn=e("p7G+"),tn=e("0vel"),en=(e.n(tn),e("DYHI")),ln=e("h7nR");e.d(t,"LayoutModuleNgFactory",function(){return on});var on=l["ɵcmf"](o.a,[],function(n){return l["ɵmod"]([l["ɵmpd"](512,l.ComponentFactoryResolver,l["ɵCodegenComponentFactoryResolver"],[[8,[a.a,u.a,r.a,i.a,d.a,c.a,s.a,p.a]],[3,l.ComponentFactoryResolver],l.NgModuleRef]),l["ɵmpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[l.LOCALE_ID]),l["ɵmpd"](4608,m["ɵi"],m["ɵi"],[]),l["ɵmpd"](4608,f.a,f.a,[l.ApplicationRef,l.Injector,l.ComponentFactoryResolver]),l["ɵmpd"](4608,C.a,C.a,[l.ComponentFactoryResolver,l.Injector,f.a]),l["ɵmpd"](4608,v.a,v.a,[]),l["ɵmpd"](4608,b.a,b.a,[]),l["ɵmpd"](4608,M.a,M.a,[]),l["ɵmpd"](4608,P.a,P.a,[]),l["ɵmpd"](4608,O.a,O.a,[]),l["ɵmpd"](4608,_.a,_.a,[]),l["ɵmpd"](4608,h.a,h.b,[]),l["ɵmpd"](4608,k.a,k.b,[]),l["ɵmpd"](4608,y.a,y.b,[]),l["ɵmpd"](4608,w.a,w.a,[]),l["ɵmpd"](4608,x.a,x.a,[]),l["ɵmpd"](4608,L.a,L.a,[]),l["ɵmpd"](4608,R.a,R.a,[]),l["ɵmpd"](4608,S.a,S.a,[]),l["ɵmpd"](4608,A.a,A.a,[]),l["ɵmpd"](4608,D.a,D.a,[]),l["ɵmpd"](4608,F.a,F.a,[q.i]),l["ɵmpd"](4608,N.a,N.a,[q.i,F.a]),l["ɵmpd"](512,g.CommonModule,g.CommonModule,[]),l["ɵmpd"](512,m["ɵba"],m["ɵba"],[]),l["ɵmpd"](512,m.FormsModule,m.FormsModule,[]),l["ɵmpd"](512,z.a,z.a,[]),l["ɵmpd"](512,I.a,I.a,[]),l["ɵmpd"](512,K.a,K.a,[]),l["ɵmpd"](512,E.a,E.a,[]),l["ɵmpd"](512,H.a,H.a,[]),l["ɵmpd"](512,V.a,V.a,[]),l["ɵmpd"](512,B.a,B.a,[]),l["ɵmpd"](512,W.a,W.a,[]),l["ɵmpd"](512,G.a,G.a,[]),l["ɵmpd"](512,Q.a,Q.a,[]),l["ɵmpd"](512,T.a,T.a,[]),l["ɵmpd"](512,U.a,U.a,[]),l["ɵmpd"](512,j.a,j.a,[]),l["ɵmpd"](512,J.a,J.a,[]),l["ɵmpd"](512,X.a,X.a,[]),l["ɵmpd"](512,Y.a,Y.a,[]),l["ɵmpd"](512,Z.a,Z.a,[]),l["ɵmpd"](512,$.x,$.x,[[2,$.k],[2,$.c]]),l["ɵmpd"](512,nn.a,nn.a,[]),l["ɵmpd"](512,tn.CodemirrorModule,tn.CodemirrorModule,[]),l["ɵmpd"](512,en.a,en.a,[]),l["ɵmpd"](512,o.a,o.a,[]),l["ɵmpd"](1024,$.t,function(){return[[{path:"",component:ln.a,children:[{path:"matefun",loadChildren:"./matefun/matefun.module#MateFunModule"},{path:"archivos",loadChildren:"./archivos/archivos.module#ArchivosModule"},{path:"grupos",loadChildren:"./grupos/grupos.module#GruposModule"}]}]]},[])])})},OirF:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=[".sidebar[_ngcontent-%COMP%]{position:fixed;z-index:1000;top:55px;left:235px;width:235px;margin-left:-235px;border:none;border-radius:0;overflow-y:auto;background-color:#036b9a;bottom:0;overflow-x:hidden;padding-bottom:40px;transition:all .2s ease-in-out}.sidebar[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]   a.list-group-item[_ngcontent-%COMP%]{background:#036b9a;border:0;border-radius:0;color:#999;text-decoration:none}.sidebar[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]   a.router-link-active[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background:#035a81;color:#fff}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:focus{border-radius:none;border:none}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]{font-size:1rem;height:50px;margin-bottom:0}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#999;text-decoration:none;font-weight:400;background:#036b9a}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;display:block;padding:.75rem 1.5rem;padding-top:1rem}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff;outline:none;outline-offset:-2px}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]:hover{background:#035a81}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]{border-radious:0;border:none}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]{border-radius:0;background-color:#036b9a;border:0 solid transparent}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#999}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.sidebar[_ngcontent-%COMP%]   .sidebar-dropdown[_ngcontent-%COMP%]   .panel-collapse[_ngcontent-%COMP%]   .panel-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]:hover{background:#035a81}.nested-menu[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]{cursor:pointer}.nested-menu[_ngcontent-%COMP%]   .nested[_ngcontent-%COMP%]{list-style-type:none}.nested-menu[_ngcontent-%COMP%]   ul.submenu[_ngcontent-%COMP%]{display:none;height:0}.nested-menu[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   ul.submenu[_ngcontent-%COMP%]{display:block;list-style-type:none;height:auto}.nested-menu[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   ul.submenu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;padding:10px;display:block}.sidebar[_ngcontent-%COMP%]{top:54px;left:0}"]},QwHJ:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=[".topnav[_ngcontent-%COMP%]{background:linear-gradient(#0085ff,#31dc7d);background:linear-gradient(90deg,#0085ff,#5f0000)!important;border-radius:0;background-color:#222;padding:6px;z-index:2}.topnav[_ngcontent-%COMP%]   .text-center[_ngcontent-%COMP%]{text-align:center;padding-left:0;cursor:pointer}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .buy-now[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#999}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{top:40px;right:-5px;left:auto}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .message-preview[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   .media-heading[_ngcontent-%COMP%]{font-size:14px;font-weight:700;margin-bottom:0}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .message-preview[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .message-preview[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   p.last[_ngcontent-%COMP%]{font-size:13px;margin-bottom:0}.topnav[_ngcontent-%COMP%]   .top-right-nav[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:4px}.messages[_ngcontent-%COMP%]{width:300px}.messages[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{border-bottom:1px solid #ddd;padding:5px 10px}.messages[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]:last-child{border-bottom:none}.messages[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:13px;font-weight:600}.messages[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   .small[_ngcontent-%COMP%]{margin:0}.messages[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]   .last[_ngcontent-%COMP%]{font-size:12px;margin:0}.header[_ngcontent-%COMP%]   .navbar[_ngcontent-%COMP%]{background:#222!important}"]},TtRf:function(n,t,e){"use strict";function l(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,37,"div",[["class","pos-f-t fixed-top header"],["style","z-index: 1100;"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n    "])),(n()(),u["ɵeld"](2,0,null,null,34,"nav",[["class","navbar navbar-inverse bg-inverse navbar-toggleable-md"],["style","background: #0278AE !important;"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵeld"](4,0,null,null,3,"button",[["class","navbar-toggler navbar-toggler-left"],["style","display: block;"]],null,[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==o.toggleSidebar(e)&&l}return l},null,null)),(n()(),u["ɵted"](-1,null,["\n            "])),(n()(),u["ɵeld"](6,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵeld"](9,0,null,null,1,"a",[["class","navbar-brand"],["href","#/matefun"],["style","margin-left: 3.5em; width: 5em"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["MateFun"])),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵeld"](12,0,null,null,23,"div",[["class","collapse navbar-collapse"],["id","navbarTogglerDemo02"],["style","position: absolute; right: 10px; display: block; width: 15em; text-align: right;"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n            "])),(n()(),u["ɵeld"](14,0,null,null,20,"ul",[["class","navbar-nav ml-auto mt-2 mt-md-0"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n                "])),(n()(),u["ɵeld"](16,0,null,null,17,"div",[["class","nav-item dropdown"],["ngbDropdown",""]],[[2,"dropdown",null],[2,"dropup",null],[2,"show",null]],[[null,"keyup.esc"],["document","click"]],function(n,t,e){var l=!0;if("keyup.esc"===t){l=!1!==u["ɵnov"](n,17).closeFromOutsideEsc()&&l}if("document:click"===t){l=!1!==u["ɵnov"](n,17).closeFromOutsideClick(e)&&l}return l},null,null)),u["ɵdid"](17,16384,null,0,i.b,[d.a],null,null),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵeld"](19,0,null,null,6,"a",[["aria-haspopup","true"],["class","nav-link dropdown-toggle"],["href","javascript:void(0)"],["ngbDropdownToggle",""]],[[1,"aria-expanded",0]],[[null,"click"]],function(n,t,e){var l=!0;if("click"===t){l=!1!==u["ɵnov"](n,20).toggleOpen()&&l}return l},null,null)),u["ɵdid"](20,16384,null,0,i.a,[i.b,u.ElementRef],null,null),(n()(),u["ɵted"](-1,null,["\n                        "])),(n()(),u["ɵeld"](22,0,null,null,0,"i",[["class","fa fa-user"]],null,null,null,null,null)),(n()(),u["ɵted"](23,null,[" ",""])),(n()(),u["ɵeld"](24,0,null,null,0,"b",[["class","caret"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵeld"](27,0,null,null,5,"div",[["class","dropdown-menu dropdown-menu-right"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,["\n                        "])),(n()(),u["ɵeld"](29,0,null,null,2,"a",[["class","dropdown-item"],["style","cursor: pointer;"]],null,[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==o.logout()&&l}return l},null,null)),(n()(),u["ɵeld"](30,0,null,null,0,"i",[["class","fa fa-fw fa-power-off"]],null,null,null,null,null)),(n()(),u["ɵted"](-1,null,[" Salir"])),(n()(),u["ɵted"](-1,null,["\n                    "])),(n()(),u["ɵted"](-1,null,["\n                "])),(n()(),u["ɵted"](-1,null,["\n            "])),(n()(),u["ɵted"](-1,null,["\n        "])),(n()(),u["ɵted"](-1,null,["\n    "])),(n()(),u["ɵted"](-1,null,["\n"])),(n()(),u["ɵted"](-1,null,["\n"]))],null,function(n,t){var e=t.component;n(t,16,0,!u["ɵnov"](t,17).up,u["ɵnov"](t,17).up,u["ɵnov"](t,17).isOpen()),n(t,19,0,u["ɵnov"](t,20).dropdown.isOpen()),n(t,23,0,e.usuario.nombre+" "+e.usuario.apellido)})}function o(n){return u["ɵvid"](0,[(n()(),u["ɵeld"](0,0,null,null,1,"app-header",[],null,null,null,l,f)),u["ɵdid"](1,114688,null,0,r.a,[c.a,s.c,p.a,g.a],null,null)],function(n,t){n(t,1,0)},null)}var a=e("QwHJ"),u=e("/oeL"),r=e("o+mL"),i=e("fxWY"),d=e("Qyse"),c=e("6akk"),s=e("BkNc"),p=e("h7Ol"),g=e("2qVr");e.d(t,"b",function(){return f}),t.a=l;var m=[a.a],f=u["ɵcrt"]({encapsulation:0,styles:m,data:{}});u["ɵccf"]("app-header",r.a,o,{},{},[])},aoCP:function(n,t,e){"use strict";var l=e("6akk");e.d(t,"a",function(){return o});var o=function(){function n(n){this.authService=n,this.isActive=!1,this.showMenu="",this.usuario=n.getUser()}return n.prototype.eventCalled=function(){this.isActive=!this.isActive},n.prototype.addExpandClass=function(n){n===this.showMenu?this.showMenu="0":this.showMenu=n},n.prototype.toggleSidebar=function(){document.querySelector("body").classList.toggle("push-right")},n.prototype.esAlumno=function(){return"alumno"==this.usuario.tipo},n.prototype.esDocente=function(){return"docente"==this.usuario.tipo},n.prototype.documentClicked=function(n){var t=document.querySelector("body");t.classList.contains("push-right")&&(this.sidebarNav.nativeElement.contains(n.target)||t.classList.remove("push-right"))},n.ctorParameters=function(){return[{type:l.a}]},n}()},"dG/l":function(n,t,e){"use strict";function l(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,9,"a",[["class","list-group-item"],["style","color: white;"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==r["ɵnov"](n,1).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l}if("click"===t){l=!1!==o.toggleSidebar()&&l}return l},null,null)),r["ɵdid"](1,671744,[[7,4]],0,i.y,[i.c,i.a,d.LocationStrategy],{routerLink:[0,"routerLink"]},null),r["ɵpad"](2,1),r["ɵdid"](3,1720320,null,2,i.A,[i.c,r.ElementRef,r.Renderer2,r.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),r["ɵqud"](603979776,6,{links:1}),r["ɵqud"](603979776,7,{linksWithHrefs:1}),r["ɵpad"](6,1),(n()(),r["ɵted"](-1,null,["\n            "])),(n()(),r["ɵeld"](8,0,null,null,0,"i",[["class","fa fa-fw fa-users"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,[" Grupos\n        "]))],function(n,t){n(t,1,0,n(t,2,0,"/grupos")),n(t,3,0,n(t,6,0,"router-link-active"))},function(n,t){n(t,0,0,r["ɵnov"](t,1).target,r["ɵnov"](t,1).href)})}function o(n){return r["ɵvid"](0,[r["ɵqud"](402653184,1,{sidebarNav:0}),(n()(),r["ɵted"](-1,null,[" "])),(n()(),r["ɵeld"](2,0,[[1,0],["sidebarNav",1]],null,31,"nav",[["class","sidebar"],["style","background: #036b9a !important;"]],null,null,null,null,null)),r["ɵdid"](3,278528,null,0,d.NgClass,[r.IterableDiffers,r.KeyValueDiffers,r.ElementRef,r.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r["ɵpod"](4,{sidebarPushRight:0}),(n()(),r["ɵted"](-1,null,["\n    "])),(n()(),r["ɵeld"](6,0,null,null,26,"ul",[["class","list-group"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵeld"](8,0,null,null,9,"a",[["class","list-group-item"],["style","color: white;"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==r["ɵnov"](n,9).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l}if("click"===t){l=!1!==o.toggleSidebar()&&l}return l},null,null)),r["ɵdid"](9,671744,[[3,4]],0,i.y,[i.c,i.a,d.LocationStrategy],{routerLink:[0,"routerLink"]},null),r["ɵpad"](10,1),r["ɵdid"](11,1720320,null,2,i.A,[i.c,r.ElementRef,r.Renderer2,r.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),r["ɵqud"](603979776,2,{links:1}),r["ɵqud"](603979776,3,{linksWithHrefs:1}),r["ɵpad"](14,1),(n()(),r["ɵted"](-1,null,["\n            "])),(n()(),r["ɵeld"](16,0,null,null,0,"i",[["class","fa fa-fw fa-desktop"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,[" Programa\n        "])),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵeld"](19,0,null,null,9,"a",[["class","list-group-item"],["style","color: white;"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var l=!0,o=n.component;if("click"===t){l=!1!==r["ɵnov"](n,20).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&l}if("click"===t){l=!1!==o.toggleSidebar()&&l}return l},null,null)),r["ɵdid"](20,671744,[[5,4]],0,i.y,[i.c,i.a,d.LocationStrategy],{routerLink:[0,"routerLink"]},null),r["ɵpad"](21,1),r["ɵdid"](22,1720320,null,2,i.A,[i.c,r.ElementRef,r.Renderer2,r.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),r["ɵqud"](603979776,4,{links:1}),r["ɵqud"](603979776,5,{linksWithHrefs:1}),r["ɵpad"](25,1),(n()(),r["ɵted"](-1,null,["\n            "])),(n()(),r["ɵeld"](27,0,null,null,0,"i",[["class","fa fa-fw fa-file-o"]],null,null,null,null,null)),(n()(),r["ɵted"](-1,null,[" Archivos\n        "])),(n()(),r["ɵted"](-1,null,["\n        "])),(n()(),r["ɵand"](16777216,null,null,1,null,l)),r["ɵdid"](31,16384,null,0,d.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),r["ɵted"](-1,null,["\n        \n    "])),(n()(),r["ɵted"](-1,null,["\n"])),(n()(),r["ɵted"](-1,null,["\n"]))],function(n,t){var e=t.component;n(t,3,0,"sidebar",n(t,4,0,e.isActive)),n(t,9,0,n(t,10,0,"/matefun")),n(t,11,0,n(t,14,0,"router-link-active")),n(t,20,0,n(t,21,0,"/archivos")),n(t,22,0,n(t,25,0,"router-link-active")),n(t,31,0,e.esDocente())},function(n,t){n(t,8,0,r["ɵnov"](t,9).target,r["ɵnov"](t,9).href),n(t,19,0,r["ɵnov"](t,20).target,r["ɵnov"](t,20).href)})}function a(n){return r["ɵvid"](0,[(n()(),r["ɵeld"](0,0,null,null,1,"app-sidebar",[],null,[["document","click"]],function(n,t,e){var l=!0;if("document:click"===t){l=!1!==r["ɵnov"](n,1).documentClicked(e)&&l}return l},o,g)),r["ɵdid"](1,49152,null,0,c.a,[s.a],null,null)],null,null)}var u=e("OirF"),r=e("/oeL"),i=e("BkNc"),d=e("qbdv"),c=e("aoCP"),s=e("6akk");e.d(t,"b",function(){return g}),t.a=o;var p=[u.a],g=r["ɵcrt"]({encapsulation:0,styles:p,data:{}});r["ɵccf"]("app-sidebar",c.a,a,{},{},[])},eRLv:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=function(){function n(){}return n}()},h7nR:function(n,t,e){"use strict";var l=e("BkNc");e.d(t,"a",function(){return o});var o=function(){function n(n){this.router=n}return n.prototype.ngOnInit=function(){"/"===this.router.url&&this.router.navigate(["/login"])},n.ctorParameters=function(){return[{type:l.c}]},n}()},"o+mL":function(n,t,e){"use strict";var l=e("BkNc"),o=e("6akk"),a=e("h7Ol"),u=e("2qVr");e.d(t,"a",function(){return r});var r=function(){function n(n,t,e,l){this.authService=n,this.router=t,this.sessionService=e,this.ghciService=l,this.usuario=n.getUser()}return n.prototype.ngOnInit=function(){},n.prototype.toggleSidebar=function(n){n.stopPropagation(),document.querySelector("body").classList.toggle("push-right")},n.prototype.rltAndLtr=function(){document.querySelector("body").classList.toggle("rtl")},n.prototype.logout=function(){this.sessionService.reset(),this.ghciService.desconectarWS(),this.router.navigate(["/login"])},n.ctorParameters=function(){return[{type:o.a},{type:l.c},{type:a.a},{type:u.a}]},n}()},"p7G+":function(n,t,e){"use strict";var l=e("h7nR");e.d(t,"a",function(){return o});var o=(l.a,function(){function n(){}return n}())},sSX1:function(n,t,e){"use strict";e.d(t,"a",function(){return l});var l=[".main-container[_ngcontent-%COMP%]{margin-top:60px;margin-left:235px;padding:15px;-ms-overflow-x:hidden;overflow-x:hidden;overflow-y:scroll;position:relative;overflow:hidden;margin-left:0!important}"]}});
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/index.html b/Servidor JEE/WebContent/index.html
index cdbd32ad713153dd94be4c597850d1b2644b9f00..489fce1282040f55d57a11963abb4f69fc712d08 100644
--- a/Servidor JEE/WebContent/index.html	
+++ b/Servidor JEE/WebContent/index.html	
@@ -1 +1 @@
-<!doctype html><html><head><meta charset="utf-8"><title>Proyecto MateFun</title><base href="/"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><!-- despues lo saco de aca --><!-- <link rel="stylesheet" type="text/css" href="node_modules/codemirror/addon/hint/show-hint.css">  --><script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script><link href="styles.aedd881417e13b7e91de.bundle.css" rel="stylesheet"/></head><body><app-root><div class="loading"><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div></div></app-root><script type="text/javascript" src="inline.913a63f4ac14aae85d5b.bundle.js"></script><script type="text/javascript" src="polyfills.0ae3b4f3e37e6249952f.bundle.js"></script><script type="text/javascript" src="scripts.efaaeb35620859890388.bundle.js"></script><script type="text/javascript" src="vendor.28df4c379f8c8b804b36.bundle.js"></script><script type="text/javascript" src="main.b97df27904c57669405d.bundle.js"></script></body></html>
\ No newline at end of file
+<!doctype html><html><head><meta charset="utf-8"><title>Proyecto MateFun</title><base href="/"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><!-- despues lo saco de aca --><!-- <link rel="stylesheet" type="text/css" href="node_modules/codemirror/addon/hint/show-hint.css">  --><script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script><link href="styles.aedd881417e13b7e91de.bundle.css" rel="stylesheet"/></head><body><app-root><div class="loading"><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div><div class="loading-bar"></div></div></app-root><script type="text/javascript" src="inline.02de299abe63337e65f5.bundle.js"></script><script type="text/javascript" src="polyfills.0ae3b4f3e37e6249952f.bundle.js"></script><script type="text/javascript" src="scripts.efaaeb35620859890388.bundle.js"></script><script type="text/javascript" src="vendor.28df4c379f8c8b804b36.bundle.js"></script><script type="text/javascript" src="main.b97df27904c57669405d.bundle.js"></script></body></html>
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/inline.02de299abe63337e65f5.bundle.js b/Servidor JEE/WebContent/inline.02de299abe63337e65f5.bundle.js
new file mode 100644
index 0000000000000000000000000000000000000000..861a211d3f03de68943a98e7076866108a36218b
--- /dev/null
+++ b/Servidor JEE/WebContent/inline.02de299abe63337e65f5.bundle.js	
@@ -0,0 +1 @@
+!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,f,i,d=0,l=[];d<t.length;d++)f=t[d],o[f]&&l.push(o[f][0]),o[f]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);l.length;)l.shift()();if(c)for(d=0;d<c.length;d++)i=r(r.s=c[d]);return i};var t={},o={12:0};r.e=function(e){function n(){c.onerror=c.onload=null,clearTimeout(u);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=new Promise(function(r,n){o[e]=[r,n]});o[e][2]=t;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,r.nc&&c.setAttribute("nonce",r.nc),c.src=r.p+""+e+"."+{0:"a2834ddcf91edfd3595a",1:"408372ca9caba82cfa85",2:"b856a7489ad17cab0edc",3:"75985c86a9a9f51d170e",4:"944819365f9d2d51724d",5:"59cc434c85d03332d50a",6:"bb496a10043de2a02b50",7:"0ae3b4f3e37e6249952f",8:"b97df27904c57669405d",9:"60839f966270b27d9f76",10:"efaaeb35620859890388"}[e]+".chunk.js";var u=setTimeout(n,12e4);return c.onerror=c.onload=n,a.appendChild(c),t},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
diff --git a/Servidor JEE/WebContent/inline.913a63f4ac14aae85d5b.bundle.js b/Servidor JEE/WebContent/inline.913a63f4ac14aae85d5b.bundle.js
deleted file mode 100644
index db6936d2af2663194099ee871623188d0c968021..0000000000000000000000000000000000000000
--- a/Servidor JEE/WebContent/inline.913a63f4ac14aae85d5b.bundle.js	
+++ /dev/null
@@ -1 +0,0 @@
-!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var f,u,i,d=0,l=[];d<t.length;d++)u=t[d],o[u]&&l.push(o[u][0]),o[u]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(t,c,a);l.length;)l.shift()();if(a)for(d=0;d<a.length;d++)i=r(r.s=a[d]);return i};var t={},o={12:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(f);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=new Promise(function(r,n){o[e]=[r,n]});o[e][2]=t;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+""+e+"."+{0:"1cf3c981b4810009465b",1:"41cb59b8f355e9241f05",2:"b856a7489ad17cab0edc",3:"cf1c44ac5f53ac78dbc0",4:"944819365f9d2d51724d",5:"59cc434c85d03332d50a",6:"bb496a10043de2a02b50",7:"0ae3b4f3e37e6249952f",8:"b97df27904c57669405d",9:"60839f966270b27d9f76",10:"efaaeb35620859890388"}[e]+".chunk.js";var f=setTimeout(n,12e4);return a.onerror=a.onload=n,c.appendChild(a),t},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
diff --git a/Servidor JEE/src/main/java/edu/proygrado/matefun/AuthenticationFilter.java b/Servidor JEE/src/main/java/edu/proygrado/matefun/AuthenticationFilter.java
index e8eb3aeca897a8580602a5ef1ac5a1495b7a2458..55a97d0c415caa274b5a61ef3dbc3182f837fd41 100644
--- a/Servidor JEE/src/main/java/edu/proygrado/matefun/AuthenticationFilter.java	
+++ b/Servidor JEE/src/main/java/edu/proygrado/matefun/AuthenticationFilter.java	
@@ -7,8 +7,6 @@ import javax.inject.Inject;
 import javax.ws.rs.Priorities;
 import javax.ws.rs.container.ContainerRequestContext;
 import javax.ws.rs.container.ContainerRequestFilter;
-import javax.ws.rs.container.ResourceInfo;
-import javax.ws.rs.core.Context;
 import javax.ws.rs.core.HttpHeaders;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
@@ -26,7 +24,7 @@ public class AuthenticationFilter implements ContainerRequestFilter {
 	@Override
 	public void filter(ContainerRequestContext context) throws IOException {
 		String path = context.getUriInfo().getPath();
-		if(path.equals("/login")){
+		if(path.contains("login")){
 			return;
 		}
 		
diff --git a/Servidor JEE/src/main/resources/META-INF/persistence.xml b/Servidor JEE/src/main/resources/META-INF/persistence.xml
index def388faad41ec461bf1a04851ccdf78b4a5d107..98fed92e6c137dc4bc2159e39818faa1c0d30e98 100644
--- a/Servidor JEE/src/main/resources/META-INF/persistence.xml	
+++ b/Servidor JEE/src/main/resources/META-INF/persistence.xml	
@@ -36,9 +36,9 @@
 <!-- 	<class>edu.proygrado.modelo.Liceo</class> -->
 <!-- 	<class>edu.proygrado.modelo.LiceoPK</class> -->
 <!-- 	<class>edu.proygrado.modelo.Usuario</class> -->
+<!-- 	<class>edu.proygrado.modelo.Sesion</class> -->
 <!-- 	<properties> -->
-<!-- 	<property name="javax.persistence.schema-generation.database.action"  -->
-<!-- 		value="none" /> -->
+<!-- 	<property name="javax.persistence.schema-generation.database.action" value="none" /> -->
 <!-- 	<property name="hibernate.transaction.jta.platform" value="org.hibernate.engine.transaction.jta.platform.internal.WebSphereExtendedJtaPlatform"/> -->
 <!-- 	</properties> -->
 <!-- 	</persistence-unit> -->
diff --git a/matefun.war b/matefun.war
index f114269b665173b92e855644a3050af549e5ee97..734936731b86b8f400251dbdd19e023d6315ed8c 100644
Binary files a/matefun.war and b/matefun.war differ