(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+ng6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r,o=n("PSD3"),i=n.n(o);!function(t){t.ok=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),new Promise((function(n){i.a.fire({icon:"success",title:t,text:e}).then((function(t){n(!0)}))}))},t.warning=function(t){return void 0===t&&(t=""),new Promise((function(e,n){i.a.fire({icon:"warning",title:"Advertencia",confirmButtonText:"Aceptar",allowOutsideClick:!1,text:t}).then((function(){e(!0)})).catch((function(){n()}))}))},t.loading=function(t,e){i.a.fire({title:t,text:e,allowOutsideClick:!1,onBeforeOpen:function(){i.a.showLoading()}})},t.closeLoading=function(){try{i.a.close()}catch(t){console.log(t)}},t.question=function(t,e,n,r){return void 0===n&&(n="S\xed"),void 0===r&&(r="No"),new Promise((function(o,a){i.a.fire({title:t,text:e,icon:"success",showCancelButton:!0,cancelButtonColor:"#d33",confirmButtonColor:"#5e72e4",confirmButtonText:' '+n,cancelButtonText:""+r,allowOutsideClick:!1}).then((function(t){t.value?o(!0):a()})).catch((function(){}))}))},t.Toas=function(t,e){void 0===e&&(e="success"),i.a.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,onOpen:function(t){t.addEventListener("mouseenter",i.a.stopTimer),t.addEventListener("mouseleave",i.a.resumeTimer)}}).fire({icon:e,title:t})},t.Toast=function(t,e,n){void 0===e&&(e="success"),i.a.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:n,timerProgressBar:!0,onOpen:function(t){t.addEventListener("mouseenter",i.a.stopTimer),t.addEventListener("mouseleave",i.a.resumeTimer)}}).fire({icon:e,title:t})}}(r||(r={}))},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("bHdf");function o(){return Object(r.a)(1)}},"1OyB":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},"1kSV":function(t,e,n){"use strict";n.d(e,"a",(function(){return Re})),n.d(e,"b",(function(){return ze})),n.d(e,"c",(function(){return on})),n.d(e,"d",(function(){return tn})),n.d(e,"e",(function(){return en})),n.d(e,"f",(function(){return rn})),n.d(e,"g",(function(){return bn})),n.d(e,"h",(function(){return zn})),n.d(e,"i",(function(){return Ze})),n.d(e,"j",(function(){return Mn})),n.d(e,"k",(function(){return Nn})),n.d(e,"l",(function(){return Ie})),n("ReuC"),n("foSv");var r=n("uFwe"),o=n("Ji7U"),i=n("LK+K"),a=n("ODXe"),s=n("vuIU"),c=n("1OyB");function u(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var l=n("fXoL"),f=n("ofXK"),h=n("3Pt+"),d=n("XNiG"),p=n("2Vo4"),g=n("itXk"),v=n("HDdC"),b=n("D0XW"),m=n("DH7j");function y(t){return!Object(m.a)(t)&&t-parseFloat(t)+1>=0}var _=n("z+Ro");function w(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var O=n("KqfI"),C=new v.a(O.a),k=n("xgIS"),P=(n("VRyK"),n("yCtX")),S=n("l7GE"),M=n("ZUHj"),x=function(){function t(){Object(c.a)(this,t)}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new j(t))}}]),t}(),j=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(t){var r;return Object(c.a)(this,n),(r=e.call(this,t)).hasFirst=!1,r.observables=[],r.subscriptions=[],r}return Object(s.a)(n,[{key:"_next",value:function(t){this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(t){if(0===this.toRespond.length){var e=[t].concat(Object(H.a)(this.values));this.project?this._tryProject(e):this.destination.next(e)}}},{key:"_tryProject",value:function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(S.a);function J(t){return t instanceof Date&&!isNaN(+t)}var $=n("EY2u"),Y=n("LRne"),Q=n("z6cu"),X=function(){var t=function(){function t(e,n,r){Object(c.a)(this,t),this.kind=e,this.value=n,this.error=r,this.hasValue="N"===e}return Object(s.a)(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(Y.a)(this.value);case"E":return Object(Q.a)(this.error);case"C":return Object($.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Z=function(){function t(e,n){Object(c.a)(this,t),this.delay=e,this.scheduler=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new tt(t,this.delay,this.scheduler))}}]),t}(),tt=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(t,r,o){var i;return Object(c.a)(this,n),(i=e.call(this,t)).delay=r,i.scheduler=o,i.queue=[],i.active=!1,i.errored=!1,i}return Object(s.a)(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new et(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(X.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(X.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,r=t.scheduler,o=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1}}]),n}(E.a),et=function t(e,n){Object(c.a)(this,t),this.time=e,this.notification=n};function nt(){var t=u([":@@ngb.toast.close-aria\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return nt=function(){return t},t}function rt(){var t=u([":@@ngb.timepicker.AM\u241f69a1f176a93998876952adac57c3bc3863b6105e\u241f4592818992509942761:",":INTERPOLATION:"]);return rt=function(){return t},t}function ot(){var t=u([":@@ngb.timepicker.PM\u241f8d6e691e10306c1b34c6b26805151aaea320ef7f\u241f3564199131264287502:",":INTERPOLATION:"]);return ot=function(){return t},t}function it(){var t=u([":@@ngb.timepicker.decrement-seconds\u241f5db47ac104294243a70eb9124fbea9d0004ddf69\u241f753633511487974857:Decrement seconds"]);return it=function(){return t},t}function at(){var t=u([":@@ngb.timepicker.increment-seconds\u241f912322ecee7d659d04dcf494a70e22e49d334b26\u241f5364772110539092174:Increment seconds"]);return at=function(){return t},t}function st(){var t=u([":@@ngb.timepicker.seconds\u241f4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c\u241f8874012390997067175:Seconds"]);return st=function(){return t},t}function ct(){var t=u([":@@ngb.timepicker.SS\u241febe38d36a40a2383c5fefa9b4608ffbda08bd4a3\u241f3628127143071124194:SS"]);return ct=function(){return t},t}function ut(){var t=u([":@@ngb.timepicker.decrement-minutes\u241fc1a6899e529c096da5b660385d4e77fe1f7ad271\u241f7447789825403243588:Decrement minutes"]);return ut=function(){return t},t}function lt(){var t=u([":@@ngb.timepicker.increment-minutes\u241ff5a4a3bc05e053f6732475d0e74875ec01c3a348\u241f180147720391025024:Increment minutes"]);return lt=function(){return t},t}function ft(){var t=u([":@@ngb.timepicker.decrement-hours\u241f147c7a19429da7d999e247d22e33fee370b1691b\u241f3651829882940481818:Decrement hours"]);return ft=function(){return t},t}function ht(){var t=u([":@@ngb.timepicker.increment-hours\u241fcb74bc1d625a6c1742f0d7d47306cf495780c218\u241f5939278348542933629:Increment hours"]);return ht=function(){return t},t}function dt(){var t=u([":@@ngb.timepicker.minutes\u241f41e62daa962947c0d23ded0981975d1bddf0bf38\u241f5531237363767747080:Minutes"]);return dt=function(){return t},t}function pt(){var t=u([":@@ngb.timepicker.MM\u241f72c8edf6a50068a05bde70991e36b1e881f4ca54\u241f1647282246509919852:MM"]);return pt=function(){return t},t}function gt(){var t=u([":@@ngb.timepicker.hours\u241f3bbce5fef7e1151da052a4e529453edb340e3912\u241f8070396816726827304:Hours"]);return gt=function(){return t},t}function vt(){var t=u([":@@ngb.timepicker.HH\u241fce676ab1d6d98f85c836381cf100a4a91ef95a1f\u241f4043638465245303811:HH"]);return vt=function(){return t},t}function bt(){var t=u([":@@ngb.progressbar.value\u241ff8e9a947b9db4252c0e9905765338712f2fd032f\u241f3720830768741091151:",":INTERPOLATION:"]);return bt=function(){return t},t}function mt(){var t=u([":@@ngb.pagination.last-aria\u241f5c729788ba138508aca1bec050b610f7bf81db3e\u241f4882268002141858767:Last"]);return mt=function(){return t},t}function yt(){var t=u([":@@ngb.pagination.next-aria\u241ff732c304c7433e5a83ffcd862c3dce709a0f4982\u241f3885497195825665706:Next"]);return yt=function(){return t},t}function _t(){var t=u([":@@ngb.pagination.previous-aria\u241f680d5c75b7fd8d37961083608b9fcdc4167b4c43\u241f4452427314943113135:Previous"]);return _t=function(){return t},t}function wt(){var t=u([":@@ngb.pagination.first-aria\u241ff2f852318759c6396b5d3d17031d53817d7b38cc\u241f2241508602425256033:First"]);return wt=function(){return t},t}function Ot(){var t=u([":@@ngb.pagination.last\u241f49f27a460bc97e7e00be5b37098bfa79884fc7d9\u241f5277020320267646988:\xbb\xbb"]);return Ot=function(){return t},t}function Ct(){var t=u([":@@ngb.pagination.next\u241fba9cbb4ff311464308a3627e4f1c3345d9fe6d7d\u241f5458177150283468089:\xbb"]);return Ct=function(){return t},t}function kt(){var t=u([":@@ngb.pagination.previous\u241f6e52b6ee77a4848d899dd21b591c6fd499e3aef3\u241f6479320895410098858:\xab"]);return kt=function(){return t},t}function Pt(){var t=u([":@@ngb.pagination.first\u241f656506dfd46380956a655f919f1498d018f75ca0\u241f6867721956102594380:\xab\xab"]);return Pt=function(){return t},t}function St(){var t=u([":@@ngb.datepicker.select-year\u241f8ceb09d002bf0c5d1cac171dfbffe1805d2b3962\u241f8852264961585484321:Select year"]);return St=function(){return t},t}function Mt(){var t=u([":@@ngb.datepicker.select-year\u241f8ceb09d002bf0c5d1cac171dfbffe1805d2b3962\u241f8852264961585484321:Select year"]);return Mt=function(){return t},t}function xt(){var t=u([":@@ngb.datepicker.select-month\u241f1dbc84807f35518112f62e5775d1daebd3d8462b\u241f2253869508135064750:Select month"]);return xt=function(){return t},t}function jt(){var t=u([":@@ngb.datepicker.select-month\u241f1dbc84807f35518112f62e5775d1daebd3d8462b\u241f2253869508135064750:Select month"]);return jt=function(){return t},t}function At(){var t=u([":@@ngb.datepicker.next-month\u241f4bd046985cfe13040d5ef0cd881edce0968a111a\u241f3628374603023447227:Next month"]);return At=function(){return t},t}function Nt(){var t=u([":@@ngb.datepicker.next-month\u241f4bd046985cfe13040d5ef0cd881edce0968a111a\u241f3628374603023447227:Next month"]);return Nt=function(){return t},t}function Et(){var t=u([":@@ngb.datepicker.previous-month\u241fc3b08b07b5ab98e7cdcf18df39355690ab7d3884\u241f8586908745456864217:Previous month"]);return Et=function(){return t},t}function Lt(){var t=u([":@@ngb.datepicker.previous-month\u241fc3b08b07b5ab98e7cdcf18df39355690ab7d3884\u241f8586908745456864217:Previous month"]);return Lt=function(){return t},t}function Tt(){var t=u([":@@ngb.carousel.next\u241ff732c304c7433e5a83ffcd862c3dce709a0f4982\u241f3885497195825665706:Next"]);return Tt=function(){return t},t}function It(){var t=u([":@@ngb.carousel.previous\u241f680d5c75b7fd8d37961083608b9fcdc4167b4c43\u241f4452427314943113135:Previous"]);return It=function(){return t},t}function Rt(){var t=u([":@@ngb.alert.close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return Rt=function(){return t},t}n("w1tV"),$localize(Rt());var Dt,Ft,Bt=["*"];function zt(t,e){if(1&t){var n=l.Tb();l.Sb(0,"li",7),l.dc("click",(function(){l.zc(n);var t=e.$implicit,r=l.hc(2);return r.select(t.id,r.NgbSlideEventSource.INDICATOR)})),l.Rb()}if(2&t){var r=e.$implicit,o=l.hc(2);l.Eb("active",r.id===o.activeId),l.oc("id",r.id)}}function qt(t,e){if(1&t&&(l.Sb(0,"ol",5),l.Gc(1,zt,1,3,"li",6),l.Rb()),2&t){var n=l.hc();l.zb(1),l.oc("ngForOf",n.slides)}}function Ut(t,e){}function Ht(t,e){if(1&t&&(l.Sb(0,"div",8),l.Gc(1,Ut,0,0,"ng-template",9),l.Rb()),2&t){var n=e.$implicit,r=l.hc();l.Eb("active",n.id===r.activeId),l.zb(1),l.oc("ngTemplateOutlet",n.tplRef)}}function Vt(t,e){if(1&t){var n=l.Tb();l.Sb(0,"a",10),l.dc("click",(function(){l.zc(n);var t=l.hc();return t.prev(t.NgbSlideEventSource.ARROW_LEFT)})),l.Nb(1,"span",11),l.Sb(2,"span",12),l.Wb(3,Dt),l.Rb(),l.Rb()}}function Gt(t,e){if(1&t){var n=l.Tb();l.Sb(0,"a",13),l.dc("click",(function(){l.zc(n);var t=l.hc();return t.next(t.NgbSlideEventSource.ARROW_RIGHT)})),l.Nb(1,"span",14),l.Sb(2,"span",12),l.Wb(3,Ft),l.Rb(),l.Rb()}}Dt=$localize(It()),Ft=$localize(Tt()),$localize(Lt()),$localize(Et()),$localize(Nt()),$localize(At()),$localize(jt()),$localize(xt()),$localize(Mt()),$localize(St());var Wt,Kt,Jt,$t,Yt=["dialog"];function Qt(t,e){1&t&&(l.Sb(0,"span",8),l.Wb(1,Wt),l.Rb())}function Xt(t,e){1&t&&(l.Sb(0,"span",8),l.Wb(1,Kt),l.Rb())}function Zt(t,e){1&t&&(l.Sb(0,"span",8),l.Wb(1,Jt),l.Rb())}function te(t,e){1&t&&(l.Sb(0,"span",8),l.Wb(1,$t),l.Rb())}function ee(t,e){1&t&&l.Ic(0,"...")}function ne(t,e){1&t&&(l.Sb(0,"span",10),l.Ic(1,"(current)"),l.Rb())}function re(t,e){if(1&t&&(l.Ic(0),l.Gc(1,ne,2,0,"span",9)),2&t){var n=e.$implicit,r=e.currentPage;l.Kc(" ",n," "),l.zb(1),l.oc("ngIf",n===r)}}Wt=$localize(Pt()),Kt=$localize(kt()),Jt=$localize(Ct()),$t=$localize(Ot());var oe=["aria-label",$localize(wt())];function ie(t,e){}var ae=function(t,e){return{disabled:t,currentPage:e}};function se(t,e){if(1&t){var n=l.Tb();l.Sb(0,"li",11),l.Sb(1,"a",12),l.Yb(2,oe),l.dc("click",(function(t){return l.zc(n),l.hc().selectPage(1),t.preventDefault()})),l.Gc(3,ie,0,0,"ng-template",13),l.Rb(),l.Rb()}if(2&t){var r=l.hc(),o=l.wc(1);l.Eb("disabled",r.previousDisabled()),l.zb(1),l.Ab("tabindex",r.previousDisabled()?"-1":null)("aria-disabled",r.previousDisabled()?"true":null),l.zb(2),l.oc("ngTemplateOutlet",(null==r.tplFirst?null:r.tplFirst.templateRef)||o)("ngTemplateOutletContext",l.tc(6,ae,r.previousDisabled(),r.page))}}var ce=["aria-label",$localize(_t())];function ue(t,e){}var le=function(t){return{disabled:t}};function fe(t,e){if(1&t){var n=l.Tb();l.Sb(0,"li",11),l.Sb(1,"a",12),l.Yb(2,ce),l.dc("click",(function(t){l.zc(n);var e=l.hc();return e.selectPage(e.page-1),t.preventDefault()})),l.Gc(3,ue,0,0,"ng-template",13),l.Rb(),l.Rb()}if(2&t){var r=l.hc(),o=l.wc(3);l.Eb("disabled",r.previousDisabled()),l.zb(1),l.Ab("tabindex",r.previousDisabled()?"-1":null)("aria-disabled",r.previousDisabled()?"true":null),l.zb(2),l.oc("ngTemplateOutlet",(null==r.tplPrevious?null:r.tplPrevious.templateRef)||o)("ngTemplateOutletContext",l.sc(6,le,r.previousDisabled()))}}function he(t,e){}var de=function(t){return{disabled:!0,currentPage:t}};function pe(t,e){if(1&t&&(l.Sb(0,"a",16),l.Gc(1,he,0,0,"ng-template",13),l.Rb()),2&t){var n=l.hc(2),r=l.wc(9);l.zb(1),l.oc("ngTemplateOutlet",(null==n.tplEllipsis?null:n.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",l.sc(2,de,n.page))}}function ge(t,e){}var ve=function(t,e,n){return{disabled:t,$implicit:e,currentPage:n}};function be(t,e){if(1&t){var n=l.Tb();l.Sb(0,"a",17),l.dc("click",(function(t){l.zc(n);var e=l.hc().$implicit;return l.hc().selectPage(e),t.preventDefault()})),l.Gc(1,ge,0,0,"ng-template",13),l.Rb()}if(2&t){var r=l.hc().$implicit,o=l.hc(),i=l.wc(11);l.Ab("tabindex",o.disabled?"-1":null)("aria-disabled",o.disabled?"true":null),l.zb(1),l.oc("ngTemplateOutlet",(null==o.tplNumber?null:o.tplNumber.templateRef)||i)("ngTemplateOutletContext",l.uc(4,ve,o.disabled,r,o.page))}}function me(t,e){if(1&t&&(l.Sb(0,"li",11),l.Gc(1,pe,2,4,"a",14),l.Gc(2,be,2,8,"a",15),l.Rb()),2&t){var n=e.$implicit,r=l.hc();l.Eb("active",n===r.page)("disabled",r.isEllipsis(n)||r.disabled),l.Ab("aria-current",n===r.page?"page":null),l.zb(1),l.oc("ngIf",r.isEllipsis(n)),l.zb(1),l.oc("ngIf",!r.isEllipsis(n))}}var ye=["aria-label",$localize(yt())];function _e(t,e){}function we(t,e){if(1&t){var n=l.Tb();l.Sb(0,"li",11),l.Sb(1,"a",12),l.Yb(2,ye),l.dc("click",(function(t){l.zc(n);var e=l.hc();return e.selectPage(e.page+1),t.preventDefault()})),l.Gc(3,_e,0,0,"ng-template",13),l.Rb(),l.Rb()}if(2&t){var r=l.hc(),o=l.wc(5);l.Eb("disabled",r.nextDisabled()),l.zb(1),l.Ab("tabindex",r.nextDisabled()?"-1":null)("aria-disabled",r.nextDisabled()?"true":null),l.zb(2),l.oc("ngTemplateOutlet",(null==r.tplNext?null:r.tplNext.templateRef)||o)("ngTemplateOutletContext",l.tc(6,ae,r.nextDisabled(),r.page))}}var Oe,Ce=["aria-label",$localize(mt())];function ke(t,e){}function Pe(t,e){if(1&t){var n=l.Tb();l.Sb(0,"li",11),l.Sb(1,"a",12),l.Yb(2,Ce),l.dc("click",(function(t){l.zc(n);var e=l.hc();return e.selectPage(e.pageCount),t.preventDefault()})),l.Gc(3,ke,0,0,"ng-template",13),l.Rb(),l.Rb()}if(2&t){var r=l.hc(),o=l.wc(7);l.Eb("disabled",r.nextDisabled()),l.zb(1),l.Ab("tabindex",r.nextDisabled()?"-1":null)("aria-disabled",r.nextDisabled()?"true":null),l.zb(2),l.oc("ngTemplateOutlet",(null==r.tplLast?null:r.tplLast.templateRef)||o)("ngTemplateOutletContext",l.tc(6,ae,r.nextDisabled(),r.page))}}function Se(t,e){if(1&t&&(l.Sb(0,"span"),l.Wb(1,Oe),l.ic(2,"percent"),l.Rb()),2&t){var n=l.hc();l.zb(2),l.Zb(l.jc(2,1,n.getValue()/n.max)),l.Xb(1)}}function Me(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(Math.min(t,e),n)}function xe(t){return!isNaN(function(t){return parseInt("".concat(t),10)}(t))}function je(t){return null!=t}Oe=$localize(bt(),"\ufffd0\ufffd"),$localize(vt()),$localize(gt()),$localize(pt()),$localize(dt()),$localize(ht()),$localize(ft()),$localize(lt()),$localize(ut()),$localize(ct()),$localize(st()),$localize(at()),$localize(it()),$localize(ot(),"\ufffd0\ufffd"),$localize(rt(),"\ufffd0\ufffd"),$localize(nt()),"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var Ae=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Ne=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Ee=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)}}),t}(),Le=function(){var t=function t(){Object(c.a)(this,t),this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Te=0,Ie=function(){var t=function t(e){Object(c.a)(this,t),this.tplRef=e,this.id="ngb-slide-".concat(Te++)};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"}}),t}(),Re=function(){var t=function(){function t(e,n,r,o){Object(c.a)(this,t),this._platformId=n,this._ngZone=r,this._cd=o,this.NgbSlideEventSource=Fe,this._destroy$=new d.a,this._interval$=new p.a(0),this._mouseHover$=new p.a(!1),this._pauseOnHover$=new p.a(!1),this._pause$=new p.a(!1),this._wrap$=new p.a(!1),this.slide=new l.n,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}return Object(s.a)(t,[{key:"mouseEnter",value:function(){this._mouseHover$.next(!0)}},{key:"mouseLeave",value:function(){this._mouseHover$.next(!1)}},{key:"ngAfterContentInit",value:function(){var t=this;Object(f.y)(this._platformId)&&this._ngZone.runOutsideAngular((function(){var e=Object(g.a)([t.slide.pipe(Object(A.a)((function(t){return t.current})),Object(N.a)(t.activeId)),t._wrap$,t.slides.changes.pipe(Object(N.a)(null))]).pipe(Object(A.a)((function(e){var n=Object(a.a)(e,2),r=n[0],o=n[1],i=t.slides.toArray(),s=t._getSlideIdxById(r);return o?i.length>1:s0?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return y(e)?r=Number(e)<1?1:Number(e):Object(_.a)(e)&&(n=e),Object(_.a)(n)||(n=b.a),new v.a((function(e){var o=y(t)?t:+t-n.now();return n.schedule(w,o,{index:0,period:r,subscriber:e})}))}(t,t):C})),D(t._destroy$)).subscribe((function(){return t._ngZone.run((function(){return t.next(Fe.TIMER)}))}))})),this.slides.changes.pipe(D(this._destroy$)).subscribe((function(){return t._cd.markForCheck()}))}},{key:"ngAfterContentChecked",value:function(){var t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:""}},{key:"ngOnDestroy",value:function(){this._destroy$.next()}},{key:"select",value:function(t,e){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t),e)}},{key:"prev",value:function(t){this._cycleToSelected(this._getPrevSlide(this.activeId),De.RIGHT,t)}},{key:"next",value:function(t){this._cycleToSelected(this._getNextSlide(this.activeId),De.LEFT,t)}},{key:"pause",value:function(){this._pause$.next(!0)}},{key:"cycle",value:function(){this._pause$.next(!1)}},{key:"_cycleToSelected",value:function(t,e,n){var r=this._getSlideById(t);r&&r.id!==this.activeId&&(this.slide.emit({prev:this.activeId,current:r.id,direction:e,paused:this._pause$.value,source:n}),this.activeId=r.id),this._cd.markForCheck()}},{key:"_getSlideEventDirection",value:function(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?De.RIGHT:De.LEFT}},{key:"_getSlideById",value:function(t){return this.slides.find((function(e){return e.id===t}))||null}},{key:"_getSlideIdxById",value:function(t){var e=this._getSlideById(t);return null!=e?this.slides.toArray().indexOf(e):-1}},{key:"_getNextSlide",value: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}},{key:"_getPrevSlide",value: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}},{key:"interval",set:function(t){this._interval$.next(t)},get:function(){return this._interval$.value}},{key:"wrap",set:function(t){this._wrap$.next(t)},get:function(){return this._wrap$.value}},{key:"pauseOnHover",set:function(t){this._pauseOnHover$.next(t)},get:function(){return this._pauseOnHover$.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(Le),l.Mb(l.B),l.Mb(l.z),l.Mb(l.h))},t.\u0275cmp=l.Gb({type:t,selectors:[["ngb-carousel"]],contentQueries:function(t,e,n){var r;1&t&&l.Fb(n,Ie,!1),2&t&&l.vc(r=l.ec())&&(e.slides=r)},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:2,hostBindings:function(t,e){1&t&&l.dc("keydown.arrowLeft",(function(){return e.keyboard&&e.prev(e.NgbSlideEventSource.ARROW_LEFT)}))("keydown.arrowRight",(function(){return e.keyboard&&e.next(e.NgbSlideEventSource.ARROW_RIGHT)}))("mouseenter",(function(){return e.mouseEnter()}))("mouseleave",(function(){return e.mouseLeave()})),2&t&&l.Fc("display","block")},inputs:{interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators",activeId:"activeId"},outputs:{slide:"slide"},exportAs:["ngbCarousel"],decls:5,vars:4,consts:[["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner"],["class","carousel-item",3,"active",4,"ngFor","ngForOf"],["class","carousel-control-prev","role","button",3,"click",4,"ngIf"],["class","carousel-control-next","role","button",3,"click",4,"ngIf"],[1,"carousel-indicators"],[3,"id","active","click",4,"ngFor","ngForOf"],[3,"id","click"],[1,"carousel-item"],[3,"ngTemplateOutlet"],["role","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"sr-only"],["role","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"]],template:function(t,e){1&t&&(l.Gc(0,qt,2,1,"ol",0),l.Sb(1,"div",1),l.Gc(2,Ht,2,3,"div",2),l.Rb(),l.Gc(3,Vt,4,0,"a",3),l.Gc(4,Gt,4,0,"a",4)),2&t&&(l.oc("ngIf",e.showNavigationIndicators),l.zb(2),l.oc("ngForOf",e.slides),l.zb(1),l.oc("ngIf",e.showNavigationArrows),l.zb(1),l.oc("ngIf",e.showNavigationArrows))},directives:[f.n,f.m,f.o],encapsulation:2,changeDetection:0}),t}(),De=function(t){return t[t.LEFT="left"]="LEFT",t[t.RIGHT="right"]="RIGHT",t}({}),Fe=function(t){return t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator",t}({}),Be=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),ze=function(){var t=function t(){Object(c.a)(this,t),this.collapsed=!1};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["","ngbCollapse",""]],hostVars:4,hostBindings:function(t,e){2&t&&l.Eb("collapse",!0)("show",!e.collapsed)},inputs:{collapsed:["ngbCollapse","collapsed"]},exportAs:["ngbCollapse"]}),t}(),qe=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)}}),t}(),Ue=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",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",t}({}),He=function(t,e){return!!e&&e.some((function(e){return e.contains(t)}))},Ve=function(t,e){return!e||null!=function(t,e){return e?void 0===t.closest?null:t.closest(e):null}(t,e)},Ge=function(){return"undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent))}();var We=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Ke(t){var e=Array.from(t.querySelectorAll(We)).filter((function(t){return-1!==t.tabIndex}));return[e[0],e[e.length-1]]}var Je,$e=/\s+/,Ye=new(function(){function t(){Object(c.a)(this,t)}return Object(s.a)(t,[{key:"getAllStyles",value:function(t){return window.getComputedStyle(t)}},{key:"getStyle",value:function(t,e){return this.getAllStyles(t)[e]}},{key:"isStaticPositioned",value:function(t){return"static"===(this.getStyle(t,"position")||"static")}},{key:"offsetParent",value:function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}},{key:"position",value:function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))e={top:(e=t.getBoundingClientRect()).top,bottom:e.bottom,left:e.left,right:e.right,height:e.height,width:e.width};else{var o=this.offsetParent(t);e=this.offset(t,!1),o!==document.documentElement&&(r=this.offset(o,!1)),r.top+=o.clientTop,r.left+=o.clientLeft}return e.top-=r.top,e.bottom-=r.top,e.left-=r.left,e.right-=r.left,n&&(e.top=Math.round(e.top),e.bottom=Math.round(e.bottom),e.left=Math.round(e.left),e.right=Math.round(e.right)),e}},{key:"offset",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.getBoundingClientRect(),r={top:window.pageYOffset-document.documentElement.clientTop,left:window.pageXOffset-document.documentElement.clientLeft},o={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r.top,bottom:n.bottom+r.top,left:n.left+r.left,right:n.right+r.left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}},{key:"positionElements",value:function(t,e,n,r){var o=n.split("-"),i=Object(a.a)(o,2),s=i[0],c=void 0===s?"top":s,u=i[1],l=void 0===u?"center":u,f=r?this.offset(t,!1):this.position(t,!1),h=this.getAllStyles(e),d=parseFloat(h.marginTop),p=parseFloat(h.marginBottom),g=parseFloat(h.marginLeft),v=parseFloat(h.marginRight),b=0,m=0;switch(c){case"top":b=f.top-(e.offsetHeight+d+p);break;case"bottom":b=f.top+f.height;break;case"left":m=f.left-(e.offsetWidth+g+v);break;case"right":m=f.left+f.width}switch(l){case"top":b=f.top;break;case"bottom":b=f.top+f.height-e.offsetHeight;break;case"left":m=f.left;break;case"right":m=f.left+f.width-e.offsetWidth;break;case"center":"top"===c||"bottom"===c?m=f.left+f.width/2-e.offsetWidth/2:b=f.top+f.height/2-e.offsetHeight/2}e.style.transform="translate(".concat(Math.round(m),"px, ").concat(Math.round(b),"px)");var y=e.getBoundingClientRect(),_=document.documentElement,w=window.innerHeight||_.clientHeight,O=window.innerWidth||_.clientWidth;return y.left>=0&&y.top>=0&&y.right<=O&&y.bottom<=w}}]),t}()),Qe=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b,h.h]]}),t}(),Xe=function(){var t=function t(){Object(c.a)(this,t),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Ze=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["",8,"navbar"]]}),t}(),tn=function(){var t=function(){function t(e){Object(c.a)(this,t),this.elementRef=e,this._disabled=!1}return Object(s.a)(t,[{key:"disabled",set:function(t){this._disabled=""===t||!0===t},get:function(){return this._disabled}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.l))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("disabled",e.disabled)},inputs:{disabled:"disabled"}}),t}(),en=function(){var t=function t(e,n){Object(c.a)(this,t),this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=n.nativeElement};return t.\u0275fac=function(e){return new(e||t)(l.Mb(Object(l.T)((function(){return on}))),l.Mb(l.l))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(t,e,n){var r;1&t&&l.Fb(n,tn,!1),2&t&&l.vc(r=l.ec())&&(e.menuItems=r)},hostVars:5,hostBindings:function(t,e){1&t&&l.dc("keydown.ArrowUp",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.ArrowDown",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Home",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.End",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Enter",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Space",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Tab",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Shift.Tab",(function(t){return e.dropdown.onKeyDown(t)})),2&t&&(l.Ab("x-placement",e.placement),l.Eb("dropdown-menu",!0)("show",e.dropdown.isOpen()))}}),t}(),nn=function(){var t=function t(e,n){Object(c.a)(this,t),this.dropdown=e,this.nativeElement=n.nativeElement};return t.\u0275fac=function(e){return new(e||t)(l.Mb(Object(l.T)((function(){return on}))),l.Mb(l.l))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){2&t&&l.Ab("aria-expanded",e.dropdown.isOpen())}}),t}(),rn=function(){var t=Je=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(t,r){return Object(c.a)(this,n),e.call(this,t,r)}return n}(nn);return t.\u0275fac=function(e){return new(e||t)(l.Mb(Object(l.T)((function(){return on}))),l.Mb(l.l))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){1&t&&l.dc("click",(function(){return e.dropdown.toggle()}))("keydown.ArrowUp",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.ArrowDown",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Home",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.End",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Tab",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Shift.Tab",(function(t){return e.dropdown.onKeyDown(t)})),2&t&&l.Ab("aria-expanded",e.dropdown.isOpen())},features:[l.yb([{provide:nn,useExisting:Object(l.T)((function(){return Je}))}]),l.wb]}),t}(),on=function(){var t=function(){function t(e,n,r,o,i,a,s){var u=this;Object(c.a)(this,t),this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=i,this._renderer=a,this._closed$=new d.a,this._bodyContainer=null,this._open=!1,this.openChange=new l.n,this.placement=n.placement,this.container=n.container,this.autoClose=n.autoClose,this.display=s?"static":"dynamic",this._zoneSubscription=o.onStable.subscribe((function(){u._positionMenu()}))}return Object(s.a)(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._ngZone.onStable.pipe(Object(q.a)(1)).subscribe((function(){t._applyPlacementClasses(),t._open&&t._setCloseHandlers()}))}},{key:"ngOnChanges",value:function(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()}},{key:"isOpen",value:function(){return this._open}},{key:"open",value:function(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}},{key:"_setCloseHandlers",value:function(){var t=this;!function(t,e,n,r,o,i,s,c){var u;n&&t.runOutsideAngular((u=function(){var u=Object(k.a)(e,"keydown").pipe(D(o),Object(z.a)((function(t){return t.which===Ue.Escape})),Object(U.a)((function(t){return t.preventDefault()}))),l=Object(k.a)(e,"mousedown").pipe(Object(A.a)((function(t){var e=t.target;return 2!==t.button&&!He(e,s)&&("inside"===n?He(e,i)&&Ve(e,c):"outside"===n?!He(e,i):Ve(e,c)||!He(e,i))})),D(o)),f=Object(k.a)(e,"mouseup").pipe(G(l),Object(z.a)((function(t){return Object(a.a)(t,2)[1]})),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.a,n=J(t),r=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new Z(r,e))}}(0),D(o));(function(){for(var t=arguments.length,e=new Array(t),n=0;n=0&&c.forEach((function(t){null==s.find((function(e){return-1!==e.search("^"+t)}))&&s.splice(l++,1,t)}));var f=e.style;f.position="absolute",f.top="0",f.left="0",f["will-change"]="transform";var h,d=null,p=!1,g=Object(r.a)(s);try{for(g.s();!(h=g.n()).done;){u(d=h.value);if(Ye.positionElements(t,e,d,o)){p=!0;break}}}catch(v){g.e(v)}finally{g.f()}return p||(u(d=s[0]),Ye.positionElements(t,e,d,o)),d}(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}},{key:"_getFirstPlacement",value:function(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}},{key:"_resetContainer",value:function(){var t=this._renderer;if(this._menu){var e=this._menu.nativeElement;t.appendChild(this._elementRef.nativeElement,e),t.removeStyle(e,"position"),t.removeStyle(e,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}},{key:"_applyContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._resetContainer(),"body"===t){var e=this._renderer,n=this._menu.nativeElement,r=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(r,"position","absolute"),e.setStyle(n,"position","static"),e.setStyle(r,"z-index","1050"),e.appendChild(r,n),e.appendChild(this._document.body,r)}}},{key:"_applyPlacementClasses",value:function(t){var e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));var n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),e.placement="static"===this.display?null:t;var o=-1!==t.search("^top")?"dropup":"dropdown";n.addClass(r,o);var i=this._bodyContainer;i&&(n.removeClass(i,"dropup"),n.removeClass(i,"dropdown"),n.addClass(i,o))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.h),l.Mb(Xe),l.Mb(f.d),l.Mb(l.z),l.Mb(l.l),l.Mb(l.D),l.Mb(Ze,8))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(t,e,n){var r;1&t&&(l.Fb(n,en,!0),l.Fb(n,nn,!0)),2&t&&(l.vc(r=l.ec())&&(e._menu=r.first),l.vc(r=l.ec())&&(e._anchor=r.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.Eb("show",e.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[l.xb]}),t}(),an=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)}}),t}(),sn=function(){var t=function t(){Object(c.a)(this,t),this.backdrop=!0,this.keyboard=!0};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),cn=function t(e,n,r){Object(c.a)(this,t),this.nodes=e,this.viewRef=n,this.componentRef=r},un=function(){},ln=function(){var t=function(){function t(e){Object(c.a)(this,t),this._document=e}return Object(s.a)(t,[{key:"compensate",value:function(){var t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):un}},{key:"_adjustBody",value:function(t){var e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]="".concat(r+t,"px"),function(){return e.style["padding-right"]=n}}},{key:"_isPresent",value:function(t){var e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}},{key:"_getWidth",value:function(){var t=this._document.createElement("div");t.className="modal-scrollbar-measure";var e=this._document.body;e.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.ac(f.d))},t.\u0275prov=Object(l.Ib)({factory:function(){return new t(Object(l.ac)(f.d))},token:t,providedIn:"root"}),t}(),fn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=l.Gb({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(t,e){2&t&&l.Bb("modal-backdrop fade show"+(e.backdropClass?" "+e.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}(),hn=function(){function t(){Object(c.a)(this,t)}return Object(s.a)(t,[{key:"close",value:function(t){}},{key:"dismiss",value:function(t){}}]),t}(),dn=function(){function t(e,n,r,o){var i=this;Object(c.a)(this,t),this._windowCmptRef=e,this._contentRef=n,this._backdropCmptRef=r,this._beforeDismiss=o,e.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(s.a)(t,[{key:"close",value:function(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}},{key:"_dismiss",value:function(t){this._reject(t),this._removeModalElements()}},{key:"dismiss",value:function(t){var e=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then((function(n){!1!==n&&e._dismiss(t)}),(function(){})):!1!==n&&this._dismiss(t)}else this._dismiss(t)}},{key:"_removeModalElements",value: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}},{key:"componentInstance",get:function(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}}]),t}(),pn=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({}),gn=function(){var t=function(){function t(e,n,r){Object(c.a)(this,t),this._document=e,this._elRef=n,this._zone=r,this._closed$=new d.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new l.n}return Object(s.a)(t,[{key:"dismiss",value:function(t){this.dismissEvent.emit(t)}},{key:"ngOnInit",value:function(){this._elWithFocus=this._document.activeElement}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._elRef.nativeElement;if(this._zone.runOutsideAngular((function(){Object(k.a)(e,"keydown").pipe(D(t._closed$),Object(z.a)((function(e){return e.which===Ue.Escape&&t.keyboard}))).subscribe((function(e){return requestAnimationFrame((function(){e.defaultPrevented||t._zone.run((function(){return t.dismiss(pn.ESC)}))}))}));var n=!1;Object(k.a)(t._dialogEl.nativeElement,"mousedown").pipe(D(t._closed$),Object(U.a)((function(){return n=!1})),Object(R.a)((function(){return Object(k.a)(e,"mouseup").pipe(D(t._closed$),Object(q.a)(1))})),Object(z.a)((function(t){return e===t.target}))).subscribe((function(){n=!0})),Object(k.a)(e,"click").pipe(D(t._closed$)).subscribe((function(r){!0!==t.backdrop||e!==r.target||n||t._zone.run((function(){return t.dismiss(pn.BACKDROP_CLICK)})),n=!1}))})),!e.contains(document.activeElement)){var n=e.querySelector("[ngbAutofocus]"),r=Ke(e)[0];(n||r||e).focus()}}},{key:"ngOnDestroy",value:function(){var t,e=this,n=this._document.body,r=this._elWithFocus;t=r&&r.focus&&n.contains(r)?r:n,this._zone.runOutsideAngular((function(){setTimeout((function(){return t.focus()})),e._elWithFocus=null})),this._closed$.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(f.d),l.Mb(l.l),l.Mb(l.z))},t.\u0275cmp=l.Gb({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var n;1&t&&l.Ec(Yt,!0),2&t&&l.vc(n=l.ec())&&(e._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(t,e){2&t&&(l.Ab("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),l.Bb("modal fade show d-block"+(e.windowClass?" "+e.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Bt,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(l.nc(),l.Sb(0,"div",0,1),l.Sb(2,"div",2),l.mc(3),l.Rb(),l.Rb()),2&t&&l.Bb("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),t}(),vn=function(){var t=function(){function t(e,n,r,o,i,s){var u=this;Object(c.a)(this,t),this._applicationRef=e,this._injector=n,this._document=r,this._scrollBar=o,this._rendererFactory=i,this._ngZone=s,this._activeWindowCmptHasChanged=new d.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new l.n,this._activeWindowCmptHasChanged.subscribe((function(){if(u._windowCmpts.length){var t=u._windowCmpts[u._windowCmpts.length-1];(function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.runOutsideAngular((function(){var t=Object(k.a)(e,"focusin").pipe(D(n),Object(A.a)((function(t){return t.target})));Object(k.a)(e,"keydown").pipe(D(n),Object(z.a)((function(t){return t.which===Ue.Tab})),G(t)).subscribe((function(t){var n=Object(a.a)(t,2),r=n[0],o=n[1],i=Ke(e),s=Object(a.a)(i,2),c=s[0],u=s[1];o!==c&&o!==e||!r.shiftKey||(u.focus(),r.preventDefault()),o!==u||r.shiftKey||(c.focus(),r.preventDefault())})),r&&Object(k.a)(e,"click").pipe(D(n),G(t),Object(A.a)((function(t){return t[1]}))).subscribe((function(t){return t.focus()}))}))})(u._ngZone,t.location.nativeElement,u._activeWindowCmptHasChanged),u._revertAriaHidden(),u._setAriaHidden(t.location.nativeElement)}}))}return Object(s.a)(t,[{key:"open",value:function(t,e,n,r){var o=this,i=r.container instanceof HTMLElement?r.container:je(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),c=function(){o._modalRefs.length||(a.removeClass(o._document.body,"modal-open"),o._revertAriaHidden())};if(!i)throw new Error('The specified modal container "'.concat(r.container||"body",'" was not found in the DOM.'));var u=new hn,l=this._getContentRef(t,r.injector||e,n,u,r),f=!1!==r.backdrop?this._attachBackdrop(t,i):void 0,h=this._attachWindowComponent(t,i,l),d=new dn(h,l,f,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(s,s),d.result.then(c,c),u.close=function(t){d.close(t)},u.dismiss=function(t){d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),f&&f.instance&&this._applyBackdropOptions(f.instance,r),d}},{key:"dismissAll",value:function(t){this._modalRefs.forEach((function(e){return e.dismiss(t)}))}},{key:"hasOpenModals",value:function(){return this._modalRefs.length>0}},{key:"_attachBackdrop",value:function(t,e){var n=t.resolveComponentFactory(fn).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}},{key:"_attachWindowComponent",value:function(t,e,n){var r=t.resolveComponentFactory(gn).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}},{key:"_applyWindowOptions",value:function(t,e){this._windowAttributes.forEach((function(n){je(e[n])&&(t[n]=e[n])}))}},{key:"_applyBackdropOptions",value:function(t,e){this._backdropAttributes.forEach((function(n){je(e[n])&&(t[n]=e[n])}))}},{key:"_getContentRef",value:function(t,e,n,r,o){return n?n instanceof l.K?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,r,o):new cn([])}},{key:"_createFromTemplateRef",value:function(t,e){var n=t.createEmbeddedView({$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new cn([n.rootNodes],n)}},{key:"_createFromString",value:function(t){var e=this._document.createTextNode("".concat(t));return new cn([[e]])}},{key:"_createFromComponent",value:function(t,e,n,r,o){var i=t.resolveComponentFactory(n),a=l.r.create({providers:[{provide:hn,useValue:r}],parent:e}),s=i.create(a),c=s.location.nativeElement;return o.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(s.hostView),new cn([[c]],s.hostView,s)}},{key:"_setAriaHidden",value:function(t){var e=this,n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach((function(n){n!==t&&"SCRIPT"!==n.nodeName&&(e._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))})),this._setAriaHidden(n))}},{key:"_revertAriaHidden",value:function(){this._ariaHiddenValues.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenValues.clear()}},{key:"_registerModalRef",value:function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&(e._modalRefs.splice(n,1),e._activeInstances.emit(e._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(n,n)}},{key:"_registerWindowCmpt",value:function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy((function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())}))}},{key:"activeInstances",get:function(){return this._activeInstances}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.ac(l.g),l.ac(l.r),l.ac(f.d),l.ac(ln),l.ac(l.E),l.ac(l.z))},t.\u0275prov=Object(l.Ib)({factory:function(){return new t(Object(l.ac)(l.g),Object(l.ac)(l.o),Object(l.ac)(f.d),Object(l.ac)(ln),Object(l.ac)(l.E),Object(l.ac)(l.z))},token:t,providedIn:"root"}),t}(),bn=function(){var t=function(){function t(e,n,r,o){Object(c.a)(this,t),this._moduleCFR=e,this._injector=n,this._modalStack=r,this._config=o}return Object(s.a)(t,[{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}},{key:"dismissAll",value:function(t){this._modalStack.dismissAll(t)}},{key:"hasOpenModals",value:function(){return this._modalStack.hasOpenModals()}},{key:"activeInstances",get:function(){return this._modalStack.activeInstances}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.ac(l.j),l.ac(l.r),l.ac(vn),l.ac(sn))},t.\u0275prov=Object(l.Ib)({factory:function(){return new t(Object(l.ac)(l.j),Object(l.ac)(l.o),Object(l.ac)(vn),Object(l.ac)(sn))},token:t,providedIn:"root"}),t}(),mn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},providers:[bn]}),t}(),yn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),_n=function(){var t=function t(){Object(c.a)(this,t),this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),wn=function(){var t=function t(e){Object(c.a)(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),t}(),On=function(){var t=function t(e){Object(c.a)(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbPaginationFirst",""]]}),t}(),Cn=function(){var t=function t(e){Object(c.a)(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbPaginationLast",""]]}),t}(),kn=function(){var t=function t(e){Object(c.a)(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbPaginationNext",""]]}),t}(),Pn=function(){var t=function t(e){Object(c.a)(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbPaginationNumber",""]]}),t}(),Sn=function(){var t=function t(e){Object(c.a)(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.K))},t.\u0275dir=l.Hb({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]]}),t}(),Mn=function(){var t=function(){function t(e){Object(c.a)(this,t),this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new l.n(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}return Object(s.a)(t,[{key:"hasPrevious",value:function(){return this.page>1}},{key:"hasNext",value:function(){return this.page0&&(t>2?this.pages.unshift(-1):2===t&&this.pages.unshift(2),this.pages.unshift(1)),e0&&this.pageCount>this.maxSize){var n=0,r=this.pageCount;if(this.rotate){var o=this._applyRotation(),i=Object(a.a)(o,2);n=i[0],r=i[1]}else{var s=this._applyPagination(),c=Object(a.a)(s,2);n=c[0],r=c[1]}this.pages=this.pages.slice(n,r),this._applyEllipses(n,r)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(_n))},t.\u0275cmp=l.Gb({type:t,selectors:[["ngb-pagination"]],contentQueries:function(t,e,n){var r;1&t&&(l.Fb(n,wn,!0),l.Fb(n,On,!0),l.Fb(n,Cn,!0),l.Fb(n,kn,!0),l.Fb(n,Pn,!0),l.Fb(n,Sn,!0)),2&t&&(l.vc(r=l.ec())&&(e.tplEllipsis=r.first),l.vc(r=l.ec())&&(e.tplFirst=r.first),l.vc(r=l.ec())&&(e.tplLast=r.first),l.vc(r=l.ec())&&(e.tplNext=r.first),l.vc(r=l.ec())&&(e.tplNumber=r.first),l.vc(r=l.ec())&&(e.tplPrevious=r.first))},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[l.xb],decls:18,vars:7,consts:[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["class","page-item",3,"disabled",4,"ngIf"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],["aria-hidden","true"],["class","sr-only",4,"ngIf"],[1,"sr-only"],[1,"page-item"],["href","",1,"page-link",3,"click",6,"aria-label"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"]],template:function(t,e){1&t&&(l.Gc(0,Qt,2,0,"ng-template",null,0,l.Hc),l.Gc(2,Xt,2,0,"ng-template",null,1,l.Hc),l.Gc(4,Zt,2,0,"ng-template",null,2,l.Hc),l.Gc(6,te,2,0,"ng-template",null,3,l.Hc),l.Gc(8,ee,1,0,"ng-template",null,4,l.Hc),l.Gc(10,re,2,2,"ng-template",null,5,l.Hc),l.Sb(12,"ul"),l.Gc(13,se,4,9,"li",6),l.Gc(14,fe,4,8,"li",6),l.Gc(15,me,3,7,"li",7),l.Gc(16,we,4,9,"li",6),l.Gc(17,Pe,4,9,"li",6),l.Rb()),2&t&&(l.zb(12),l.Bb("pagination"+(e.size?" pagination-"+e.size:"")),l.zb(1),l.oc("ngIf",e.boundaryLinks),l.zb(1),l.oc("ngIf",e.directionLinks),l.zb(1),l.oc("ngForOf",e.pages),l.zb(1),l.oc("ngIf",e.directionLinks),l.zb(1),l.oc("ngIf",e.boundaryLinks))},directives:[f.n,f.m,f.o],encapsulation:2,changeDetection:0}),t}(),xn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),jn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),An=function(){var t=function t(){Object(c.a)(this,t),this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Nn=function(){var t=function(){function t(e){Object(c.a)(this,t),this.value=0,this.max=e.max,this.animated=e.animated,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}return Object(s.a)(t,[{key:"getValue",value:function(){return Me(this.value,this.max)}},{key:"getPercentValue",value:function(){return 100*this.getValue()/this.max}},{key:"max",set:function(t){this._max=!xe(t)||t<=0?100:t},get:function(){return this._max}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(An))},t.\u0275cmp=l.Gb({type:t,selectors:[["ngb-progressbar"]],inputs:{value:"value",max:"max",animated:"animated",striped:"striped",textType:"textType",type:"type",showValue:"showValue",height:"height"},ngContentSelectors:Bt,decls:4,vars:13,consts:[[1,"progress"],["role","progressbar","aria-valuemin","0"],[4,"ngIf"]],template:function(t,e){1&t&&(l.nc(),l.Sb(0,"div",0),l.Sb(1,"div",1),l.Gc(2,Se,3,3,"span",2),l.mc(3),l.Rb(),l.Rb()),2&t&&(l.Fc("height",e.height),l.zb(1),l.Db("progress-bar",e.type?" bg-"+e.type:"","",e.textType?" text-"+e.textType:"","\n ",e.animated?" progress-bar-animated":"","",e.striped?" progress-bar-striped":"",""),l.Fc("width",e.getPercentValue(),"%"),l.Ab("aria-valuenow",e.getValue())("aria-valuemax",e.max),l.zb(1),l.oc("ngIf",e.showValue))},directives:[f.n],pipes:[f.q],encapsulation:2,changeDetection:0}),t}(),En=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Ln=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Tn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),In=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Rn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Dn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)}}),t}(),Fn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[f.b]]}),t}(),Bn=[Ae,Ne,Ee,Be,qe,Qe,an,mn,yn,xn,jn,En,Ln,In,Rn,Dn,Fn,Tn],zn=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[Bn,Ae,Ne,Ee,Be,qe,Qe,an,mn,yn,xn,jn,En,Ln,In,Rn,Dn,Fn,Tn]}),t}()},"25BE":function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("1OyB"),o=n("vuIU"),i=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=n("XNiG"),l=n("9ppp"),f=function(t){Object(s.a)(n,t);var e=Object(c.a)(n);function n(t){var o;return Object(r.a)(this,n),(o=e.call(this))._value=t,o}return Object(o.a)(n,[{key:"_subscribe",value:function(t){var e=Object(i.a)(Object(a.a)(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.a;return this._value}},{key:"next",value:function(t){Object(i.a)(Object(a.a)(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(u.a)},"2WcH":function(t,e,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}n.d(e,"a",(function(){return r}))},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return C})),n.d(e,"c",(function(){return te})),n.d(e,"d",(function(){return Pt})),n.d(e,"e",(function(){return $t})),n.d(e,"f",(function(){return St})),n.d(e,"g",(function(){return Ut})),n.d(e,"h",(function(){return ee})),n.d(e,"i",(function(){return T})),n.d(e,"j",(function(){return m})),n.d(e,"k",(function(){return A})),n.d(e,"l",(function(){return N})),n.d(e,"m",(function(){return At})),n.d(e,"n",(function(){return Ft})),n.d(e,"o",(function(){return rt})),n.d(e,"p",(function(){return V})),n.d(e,"q",(function(){return Qt})),n.d(e,"r",(function(){return ne})),n.d(e,"s",(function(){return nt})),n.d(e,"t",(function(){return D})),n.d(e,"u",(function(){return st})),n.d(e,"v",(function(){return Bt}));var r=n("JX7q"),o=n("uFwe"),i=n("KQm4"),a=n("Ji7U"),s=n("LK+K"),c=n("1OyB"),u=n("vuIU"),l=n("fXoL"),f=n("ofXK"),h=n("HDdC"),d=n("DH7j"),p=n("lJxs"),g=n("XoHu"),v=n("Cfvw");function b(t,e){return new h.a((function(n){var r=t.length;if(0!==r)for(var o=new Array(r),i=0,a=0,s=function(s){var c=Object(v.a)(t[s]),u=!1;n.add(c.subscribe({next:function(t){u||(u=!0,a++),o[s]=t},error:function(t){return n.error(t)},complete:function(){++i!==r&&u||(a===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=o[n],t}),{}):o),n.complete())}}))},c=0;c0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Hb({type:t}),t}(),P=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(){return Object(c.a)(this,n),e.apply(this,arguments)}return Object(u.a)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(k);return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=l.Hb({type:t,features:[l.wb]}),t}(),S=l.Ub(P);function M(){throw new Error("unimplemented")}var x=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(){var t;return Object(c.a)(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(u.a)(n,[{key:"validator",get:function(){return M()}},{key:"asyncValidator",get:function(){return M()}}]),n}(k),j=function(){function t(e){Object(c.a)(this,t),this._cd=e}return Object(u.a)(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),A=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t){return Object(c.a)(this,n),e.call(this,t)}return n}(j);return t.\u0275fac=function(e){return new(e||t)(l.Mb(x,2))},t.\u0275dir=l.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&l.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[l.wb]}),t}(),N=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t){return Object(c.a)(this,n),e.call(this,t)}return n}(j);return t.\u0275fac=function(e){return new(e||t)(l.Mb(P,2))},t.\u0275dir=l.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&l.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[l.wb]}),t}();function E(t){return null==t||0===t.length}function L(t){return null!=t&&"number"==typeof t.length}var T=new l.q("NgValidators"),I=new l.q("NgAsyncValidators"),R=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,D=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,null,[{key:"min",value:function(t){return function(e){if(E(e.value)||E(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return E(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return E(t.value)||R.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return E(e.value)||!L(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(E(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(F);return 0==e.length?null:function(t){return z(q(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(F);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Ib({token:t,factory:t.\u0275fac}),t}(),K=function(){var t=function(){function t(e,n,r,o){Object(c.a)(this,t),this._renderer=e,this._elementRef=n,this._registry=r,this._injector=o,this.onChange=function(){},this.onTouched=function(){}}return Object(u.a)(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(x),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.D),l.Mb(l.l),l.Mb(W),l.Mb(l.r))},t.\u0275dir=l.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&l.dc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[l.yb([G])]}),t}(),J={provide:m,useExisting:Object(l.T)((function(){return $})),multi:!0},$=function(){var t=function(){function t(e,n){Object(c.a)(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return Object(u.a)(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Mb(l.D),l.Mb(l.l))},t.\u0275dir=l.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&l.dc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[l.yb([J])]}),t}(),Y='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Q='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',X='\n
\n
\n \n
\n
',Z=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Y))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(Q,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(X))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(Y))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Q))}},{key:"arrayParentException",value:function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat('\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });'))}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(t,".\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),tt={provide:m,useExisting:Object(l.T)((function(){return nt})),multi:!0};function et(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var nt=function(){var t=function(){function t(e,n){Object(c.a)(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return Object(u.a)(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=et(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var o=n.selectedOptions,i=0;i1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function pt(t){return null!=t?D.compose(U(t)):null}function gt(t){return null!=t?D.composeAsync(U(t)):null}function vt(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}var bt=[_,$,V,nt,at,K];function mt(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function yt(t,e){if(!e)return null;Array.isArray(e)||dt(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach((function(e){var i;e.constructor===C?n=e:(i=e,bt.some((function(t){return i.constructor===t}))?(r&&dt(t,"More than one built-in value accessor matches form control with"),r=e):(o&&dt(t,"More than one custom value accessor matches form control with"),o=e))})),o||r||n||(dt(t,"No valid value accessor for form control with"),null)}function _t(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function wt(t){var e=Ct(t)?t.validators:t;return Array.isArray(e)?pt(e):e||null}function Ot(t,e){var n=Ct(e)?e.asyncValidators:t;return Array.isArray(n)?gt(n):n||null}function Ct(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var kt=function(){function t(e,n){Object(c.a)(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object(u.a)(t,[{key:"setValidators",value:function(t){this.validator=wt(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=Ot(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=B(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach((function(t){r=r instanceof St?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Mt&&r.at(t)||null})),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new l.n,this.statusChanges=new l.n}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Ct(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),Pt=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return Object(c.a)(this,n),(t=e.call(this,wt(o),Ot(i,o)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(o),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return Object(u.a)(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(kt),St=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r,o){var i;return Object(c.a)(this,n),(i=e.call(this,wt(r),Ot(o,r))).controls=t,i._initObservables(),i._setUpdateStrategy(r),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(u.a)(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof Pt?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(kt),Mt=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r,o){var i;return Object(c.a)(this,n),(i=e.call(this,wt(r),Ot(o,r))).controls=t,i._initObservables(),i._setUpdateStrategy(r),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(u.a)(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof Pt?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=Object(o.a)(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(kt),xt={provide:P,useExisting:Object(l.T)((function(){return At}))},jt=function(){return Promise.resolve(null)}(),At=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r){var o;return Object(c.a)(this,n),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new l.n,o.form=new St({},pt(t),gt(r)),o}return Object(u.a)(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;jt.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ut(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;jt.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),_t(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;jt.then((function(){var n=e._findContainer(t.path),r=new St({});ft(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;jt.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;jt.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,mt(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(P);return t.\u0275fac=function(e){return new(e||t)(l.Mb(T,10),l.Mb(I,10))},t.\u0275dir=l.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&l.dc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l.yb([xt]),l.wb]}),t}(),Nt=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(){return Object(c.a)(this,n),e.apply(this,arguments)}return Object(u.a)(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return ct(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return pt(this._validators)}},{key:"asyncValidator",get:function(){return gt(this._asyncValidators)}}]),n}(P);return t.\u0275fac=function(e){return Et(e||t)},t.\u0275dir=l.Hb({type:t,features:[l.wb]}),t}(),Et=l.Ub(Nt),Lt=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(Y,"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ").concat('\n
\n \n \n
\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(Q,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(X))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(Q,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(X))}}]),t}(),Tt={provide:P,useExisting:Object(l.T)((function(){return It}))},It=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r,o){var i;return Object(c.a)(this,n),(i=e.call(this))._parent=t,i._validators=r,i._asyncValidators=o,i}return Object(u.a)(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof At||Lt.modelGroupParentException()}}]),n}(Nt);return t.\u0275fac=function(e){return new(e||t)(l.Mb(P,5),l.Mb(T,10),l.Mb(I,10))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[l.yb([Tt]),l.wb]}),t}(),Rt={provide:x,useExisting:Object(l.T)((function(){return Ft}))},Dt=function(){return Promise.resolve(null)}(),Ft=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,o,i,a){var s;return Object(c.a)(this,n),(s=e.call(this)).control=new Pt,s._registered=!1,s.update=new l.n,s._parent=t,s._rawValidators=o||[],s._rawAsyncValidators=i||[],s.valueAccessor=yt(Object(r.a)(s),a),s}return Object(u.a)(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),vt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ut(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof It)&&this._parent instanceof Nt?Lt.formGroupNameException():this._parent instanceof It||this._parent instanceof At||Lt.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Lt.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;Dt.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Dt.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?ct(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return pt(this._rawValidators)}},{key:"asyncValidator",get:function(){return gt(this._rawAsyncValidators)}}]),n}(x);return t.\u0275fac=function(e){return new(e||t)(l.Mb(P,9),l.Mb(T,10),l.Mb(I,10),l.Mb(m,10))},t.\u0275dir=l.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l.yb([Rt]),l.wb,l.xb]}),t}(),Bt=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),zt=new l.q("NgModelWithFormControlWarning"),qt={provide:P,useExisting:Object(l.T)((function(){return Ut}))},Ut=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r){var o;return Object(c.a)(this,n),(o=e.call(this))._validators=t,o._asyncValidators=r,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new l.n,o}return Object(u.a)(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return ut(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){_t(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);ft(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);ft(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,mt(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return ht(e)})),e.valueAccessor.registerOnTouched((function(){return ht(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&ut(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=pt(this._validators);this.form.validator=D.compose([this.form.validator,t]);var e=gt(this._asyncValidators);this.form.asyncValidator=D.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||Z.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(P);return t.\u0275fac=function(e){return new(e||t)(l.Mb(T,10),l.Mb(I,10))},t.\u0275dir=l.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&l.dc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l.yb([qt]),l.wb,l.xb]}),t}(),Ht={provide:P,useExisting:Object(l.T)((function(){return Vt}))},Vt=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r,o){var i;return Object(c.a)(this,n),(i=e.call(this))._parent=t,i._validators=r,i._asyncValidators=o,i}return Object(u.a)(n,[{key:"_checkParentType",value:function(){Kt(this._parent)&&Z.groupParentException()}}]),n}(Nt);return t.\u0275fac=function(e){return new(e||t)(l.Mb(P,13),l.Mb(T,10),l.Mb(I,10))},t.\u0275dir=l.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[l.yb([Ht]),l.wb]}),t}(),Gt={provide:P,useExisting:Object(l.T)((function(){return Wt}))},Wt=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,r,o){var i;return Object(c.a)(this,n),(i=e.call(this))._parent=t,i._validators=r,i._asyncValidators=o,i}return Object(u.a)(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Kt(this._parent)&&Z.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return ct(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return pt(this._validators)}},{key:"asyncValidator",get:function(){return gt(this._asyncValidators)}}]),n}(P);return t.\u0275fac=function(e){return new(e||t)(l.Mb(P,13),l.Mb(T,10),l.Mb(I,10))},t.\u0275dir=l.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[l.yb([Gt]),l.wb]}),t}();function Kt(t){return!(t instanceof Vt||t instanceof Ut||t instanceof Wt)}var Jt={provide:x,useExisting:Object(l.T)((function(){return $t}))},$t=function(){var t=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t,o,i,a,s){var u;return Object(c.a)(this,n),(u=e.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new l.n,u._ngModelWarningSent=!1,u._parent=t,u._rawValidators=o||[],u._rawAsyncValidators=i||[],u.valueAccessor=yt(Object(r.a)(u),a),u}return Object(u.a)(n,[{key:"ngOnChanges",value:function(t){var e,r,o;this._added||this._setUpControl(),vt(t,this.viewModel)&&(e=n,r=this,o=this._ngModelWarningConfig,Object(l.V)()&&"never"!==o&&((null!==o&&"once"!==o||e._ngModelWarningSentOnce)&&("always"!==o||r._ngModelWarningSent)||(Z.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,r._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof Vt)&&this._parent instanceof Nt?Z.ngModelGroupException():this._parent instanceof Vt||this._parent instanceof Ut||this._parent instanceof Wt||Z.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){Z.disabledAttrWarning()}},{key:"path",get:function(){return ct(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return pt(this._rawValidators)}},{key:"asyncValidator",get:function(){return gt(this._rawAsyncValidators)}}]),n}(x);return t.\u0275fac=function(e){return new(e||t)(l.Mb(P,13),l.Mb(T,10),l.Mb(I,10),l.Mb(m,10),l.Mb(zt,8))},t.\u0275dir=l.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[l.yb([Jt]),l.wb,l.xb]}),t._ngModelWarningSentOnce=!1,t}(),Yt={provide:T,useExisting:Object(l.T)((function(){return Qt})),multi:!0},Qt=function(){var t=function(){function t(){Object(c.a)(this,t),this._validator=D.nullValidator}return Object(u.a)(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=D.pattern(this.pattern)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Hb({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Ab("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[l.yb([Yt]),l.xb]}),t}(),Xt=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)}}),t}();function Zt(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var te=function(){var t=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,o=null,i=void 0;return null!=e&&(Zt(e)?(r=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new St(n,{asyncValidators:o,updateOn:i,validators:r})}},{key:"control",value:function(t,e,n){return new Pt(t,e,n)}},{key:"array",value:function(t,e,n){var r=this,o=t.map((function(t){return r._createControl(t)}));return new Mt(o,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(r){n[r]=e._createControl(t[r])})),n}},{key:"_createControl",value:function(t){return t instanceof Pt||t instanceof St||t instanceof Mt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Ib({token:t,factory:t.\u0275fac}),t}(),ee=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},providers:[W],imports:[Xt]}),t}(),ne=function(){var t=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:zt,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},providers:[te,W],imports:[Xt]}),t}()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("Ji7U"),o=n("LK+K"),i=n("1OyB"),a=n("vuIU"),s=n("ZUHj"),c=n("l7GE"),u=n("51Dv"),l=n("lJxs"),f=n("Cfvw");function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(h((function(n,r){return Object(f.a)(t(n,r)).pipe(Object(l.a)((function(t,o){return e(n,t,r,o)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new d(t,n))})}var d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(i.a)(this,t),this.project=e,this.concurrent=n}return Object(a.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new p(t,this.project,this.concurrent))}}]),t}(),p=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(t,r){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(i.a)(this,n),(o=e.call(this,t)).project=r,o.concurrent=a,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return Object(a.a)(n,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(c.a)},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("1OyB"),o=n("vuIU"),i=n("Ji7U"),a=n("LK+K"),s=function(t){Object(i.a)(n,t);var e=Object(a.a)(n);function n(t,o,i){var a;return Object(r.a)(this,n),(a=e.call(this)).parent=t,a.outerValue=o,a.outerIndex=i,a.index=0,a}return Object(o.a)(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"5RHE":function(t,e,n){var r,o;r=function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){if("object"!==r(t.console)){t.console={};for(var e,n,o=t.console,i=function(){},a=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=a.pop();)o[e]||(o[e]={});for(;n=s.pop();)o[n]||(o[n]=i)}var c,u,l,f,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var e,n,r,o,i,a=0,s=0,c="",u=[];if(!t)return t;for(;e=(i=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=i>>12&63,r=i>>6&63,o=63&i,u[s++]=h.charAt(e)+h.charAt(n)+h.charAt(r)+h.charAt(o),a>16&255,n=a>>8&255,r=255&a,u[c++]=64==o?String.fromCharCode(e):64==i?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s>>0,r=new Array(n),o=1>>0,o=0;o>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o>16&255,o=u>>8&255,i=255&u}if(void 0===o||void 0===a&&n===o&&o===i)if("string"==typeof n)e=n+" "+s[0];else switch(t.precision){case 2:e=y(n/255)+" "+s[0];break;case 3:default:e=_(n/255)+" "+s[0]}else if(void 0===a||"object"===r(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof n)e=[n,o,i,s[1]].join(" ");else switch(t.precision){case 2:e=[y(n/255),y(o/255),y(i/255),s[1]].join(" ");break;default:case 3:e=[_(n/255),_(o/255),_(i/255),s[1]].join(" ")}}else if("string"==typeof n)e=[n,o,i,a,s[2]].join(" ");else switch(t.precision){case 2:e=[y(n/255),y(o/255),y(i/255),y(a/255),s[2]].join(" ");break;case 3:default:e=[_(n/255),_(o/255),_(i/255),_(a/255),s[2]].join(" ")}return e},gt=d.__private__.getFilters=function(){return u},vt=d.__private__.putStream=function(t){var e,n=(t=t||{}).data||"",r=t.filters||gt(),o=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=n.length;!0===r&&(r=["FlateEncode"]);var c=t.additionalKeyValues||[],u=(e=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(n,r):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(o)?o.join(" "):o.toString());0!==e.data.length&&(c.push({key:"Length",value:e.data.length}),!0===i&&c.push({key:"Length1",value:a})),0!=u.length&&(u.split("/").length-1==1?c.push({key:"Filter",value:u}):c.push({key:"Filter",value:"["+u+"]"})),q("<<");for(var l=0;l>"),0!==e.data.length&&(q("stream"),q(e.data),q("endstream"))},bt=d.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,o=t.contentsObjId;ut(r,!0),q("<>"),q("endobj");var i=n.join("\n");return ut(o,!0),vt({data:i,filters:gt()}),q("endobj"),r},mt=d.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=nt;t++)rt[t].objId=ct(),rt[t].contentsObjId=ct();for(t=1;t<=nt;t++)n.push(bt({number:t,data:F[t],objId:rt[t].objId,contentsObjId:rt[t].contentsObjId,mediaBox:rt[t].mediaBox,cropBox:rt[t].cropBox,bleedBox:rt[t].bleedBox,trimBox:rt[t].trimBox,artBox:rt[t].artBox,userUnit:rt[t].userUnit,rootDictionaryObjId:ft,resourceDictionaryObjId:ht}));ut(ft,!0),q("<>"),q("endobj"),it.publish("postPutPages")},yt=function(t,e,n){et.hasOwnProperty(e)||(et[e]={}),et[e][n]=t},_t=function(t,e,n,r,o){o=o||!1;var i="F"+(Object.keys(tt).length+1).toString(10),a={id:i,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:o,metadata:{}};return it.publish("addFont",{font:a,instance:this}),void 0!==i&&(tt[i]=a,yt(i,e,n)),i},wt=d.__private__.pdfEscape=d.pdfEscape=function(t,e){return function(t,e){var n,r,o,i,a,s,c,u,l;if(o=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&tt[L].metadata&&tt[L].metadata[o]&&tt[L].metadata[o].encoding&&(i=tt[L].metadata[o].encoding,!a&&tt[L].encoding&&(a=tt[L].encoding),!a&&i.codePages&&(a=i.codePages[0]),"string"==typeof a&&(a=i[a]),a)){for(c=!1,s=[],n=0,r=t.length;n>8&&(c=!0);t=s.join("")}for(n=t.length;void 0===c&&0!==n;)t.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ot=d.__private__.beginPage=function(t,e){var r,o="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(r=b(t.toLowerCase()))&&(t=r[0],e=r[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=n[0],e=n[1]),o){switch(o.substr(0,1)){case"l":t>"),q("endobj")},jt=d.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||ft;switch(st(),q("<<"),q("/Type /Catalog"),q("/Pages "+e+" 0 R"),A||(A="fullwidth"),A){case"fullwidth":q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":q("/OpenAction [3 0 R /Fit]");break;case"original":q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+A;"%"===n.substr(n.length-1)&&(A=parseInt(A)/100),"number"==typeof A&&q("/OpenAction [3 0 R /XYZ null null "+y(A)+"]")}switch(E||(E="continuous"),E){case"continuous":q("/PageLayout /OneColumn");break;case"single":q("/PageLayout /SinglePage");break;case"two":case"twoleft":q("/PageLayout /TwoColumnLeft");break;case"tworight":q("/PageLayout /TwoColumnRight")}N&&q("/PageMode /"+N),it.publish("putCatalog"),q(">>"),q("endobj")},At=d.__private__.putTrailer=function(){q("trailer"),q("<<"),q("/Size "+(X+1)),q("/Root "+X+" 0 R"),q("/Info "+(X-1)+" 0 R"),q("/ID [ <"+w+"> <"+w+"> ]"),q(">>")},Nt=d.__private__.putHeader=function(){q("%PDF-"+p),q("%\xba\xdf\xac\xe0")},Et=d.__private__.putXRef=function(){var t=1,e="0000000000";for(q("xref"),q("0 "+(X+1)),q("0000000000 65535 f "),t=1;t<=X;t++)q("function"==typeof Z[t]?(e+Z[t]()).slice(-10)+" 00000 n ":void 0!==Z[t]?(e+Z[t]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},Lt=d.__private__.buildDocument=function(){D=!1,z=X=0,B=[],Z=[],ot=[],ft=ct(),ht=ct(),it.publish("buildDocument"),Nt(),mt(),function(){it.publish("putAdditionalObjects");for(var t=0;t>"),q("endobj")));var e}(),it.publish("putResources"),ut(ht,!0),q("<<"),function(){for(var t in q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),q("/Font <<"),tt)tt.hasOwnProperty(t)&&(!1===f||!0===f&&h.hasOwnProperty(t))&&q("/"+t+" "+tt[t].objectNumber+" 0 R");q(">>"),q("/XObject <<"),it.publish("putXobjectDict"),q(">>")}(),q(">>"),q("endobj"),it.publish("postPutResources"),Mt(),jt();var t=z;return Et(),At(),q("startxref"),q(""+t),q("%%EOF"),D=!0,B.join("\n")},Tt=d.__private__.getBlob=function(t){return new Blob([H(t)],{type:"application/pdf"})},It=d.output=d.__private__.output=((I=function(t,e){e=e||{};var n=Lt();switch("string"==typeof e?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return n;case"save":d.save(e.filename);break;case"arraybuffer":return H(n);case"blob":return Tt(n);case"bloburi":case"bloburl":if(void 0!==i.URL&&"function"==typeof i.URL.createObjectURL)return i.URL&&i.URL.createObjectURL(Tt(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+e.filename+";base64,"+btoa(n);case"dataurlnewwindow":var r='',o=i.open();if(null!==o&&o.document.write(r),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return i.document.location.href="data:application/pdf;filename="+e.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return I.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!i.console)throw new Error(n);i.console.error(n,t),i.alert&&alert(n)}},(I.foo.bar=I).foo),Rt=function(t){return!0===Array.isArray(at)&&-1":")"),et=1):(Q=Jt(e),X=$t(n),Z=(u?"<":"(")+O[Y]+(u?">":")")),void 0!==H&&void 0!==H[Y]&&(nt=H[Y]+" Tw\n"),t.push(0!==j.length&&0===Y?nt+j.join(" ")+" "+Q.toFixed(2)+" "+X.toFixed(2)+" Tm\n"+Z:1===et||0===et&&0===Y?nt+Q.toFixed(2)+" "+X.toFixed(2)+" Td\n"+Z:nt+Z);t=t.join(0===et?" Tj\nT* ":" Tj\n"),t+=" Tj\n";var rt="BT\n/"+L+" "+G+" Tf\n"+(G*f).toFixed(2)+" TL\n"+te+"\n";return rt+=l,rt+=t,q(rt+="ET"),h[L]=!0,d},d.__private__.lstext=d.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},d.__private__.clip=d.clip=function(t){q("evenodd"===t?"W*":"W"),q("n")},d.__private__.clip_fixed=d.clip_fixed=function(t){console.log("clip_fixed is deprecated"),d.clip(t)};var zt=d.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},qt=d.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};d.__private__.line=d.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},d.__private__.lines=d.lines=function(t,e,n,r,o,i){var a,s,c,u,l,f,h,d,p,g,v,b;if("number"==typeof t&&(b=n,n=e,e=t,t=b),r=r||[1,1],i=i||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!zt(o)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(q(_(Jt(e))+" "+_($t(n))+" m "),a=r[0],s=r[1],u=t.length,g=e,v=n,c=0;c=a.length-1;if(k&&!P){y+=" ";continue}if(k||P){if(P)b=C;else if(t.multiline&&u<(h+2)*(_+2)+2)continue t}else{if(!t.multiline)continue t;if(u<(h+2)*(_+2)+2)continue t;b=C}for(var S="",M=v;M<=b;M++)S+=a[M]+" ";switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,m=O(S,t,c).width,t.textAlign){case"right":p=l-m-2;break;case"center":p=(l-m)/2;break;case"left":default:p=2}e+=s(p)+" "+s(g)+" Td\n",e+="("+i(S)+") Tj\n",e+=-s(p)+" 0 Td\n",g=-(c+2),m=0,v=b+1,_++,y=""}break}return o.text=e,o.fontSize=c,o},O=function(t,e,r){var o=n.internal.getFont(e.fontName,e.fontStyle),i=n.getStringUnitWidth(t,{font:o,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:n.getStringUnitWidth("3",{font:o,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},C={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},k=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&P.call(n,r)}},P=function(t){var e={type:"reference",object:t};void 0===n.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===e.type&&t.object===e.object}))&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},S=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},M=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},x=function(t){var e=!t;for(var o in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(o)){var i=t[o],a=[],s=i.Rect;if(i.Rect&&(i.Rect=y.call(this,i.Rect)),n.internal.newObjectDeferredBegin(i.objId,!0),i.DA=J.createDefaultAppearanceStream(i),"object"===r(i)&&"function"==typeof i.getKeyValueListForStream&&(a=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var c=_.call(this,i);a.push({key:"AP",value:"<>"}),n.internal.acroformPlugin.xForms.push(c)}if(i.appearanceStreamContent){var u="";for(var l in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(l)){var f=i.appearanceStreamContent[l];if(u+="/"+l+" ",u+="<<",1<=Object.keys(f).length||Array.isArray(f))for(var o in f){var h;f.hasOwnProperty(o)&&("function"==typeof(h=f[o])&&(h=h.call(this,i)),u+="/"+o+" "+h+" ",0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h))}else"function"==typeof(h=f)&&(h=h.call(this,i)),u+="/"+o+" "+h,0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h);u+=">>"}a.push({key:"AP",value:"<<\n"+u+">>"})}n.internal.putStream({additionalKeyValues:a}),n.internal.out("endobj")}e&&j.call(this,n.internal.acroformPlugin.xForms)},j=function(t){for(var e in t)if(t.hasOwnProperty(e)){var o=e,i=t[e];n.internal.newObjectDeferredBegin(i&&i.objId,!0),"object"===r(i)&&"function"==typeof i.putStream&&i.putStream(),delete t[o]}},A=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,R.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(C)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");o=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new I,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",M),n.internal.events.subscribe("buildDocument",k),n.internal.events.subscribe("putCatalog",S),n.internal.events.subscribe("postPutPages",x),n.internal.acroformPlugin.isInitialized=!0}},N=t.__acroform__.arrayToPdfArray=function(t){if(Array.isArray(t)){for(var e="[",n=0;n>"),n.join("\n")}},set:function(t){"object"===r(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};u(q,R);var U=function(){q.call(this),this.pushButton=!0};u(U,q);var H=function(){q.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};u(H,q);var V=function(){var t,e;R.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t,e=[];for(t in e.push("<<"),o)e.push("/"+t+" ("+o[t]+")");return e.push(">>"),e.join("\n")},set:function(t){"object"===r(t)&&(o=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(t){"string"==typeof t&&(o.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=J.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};u(V,R),H.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},H.prototype.createOption=function(t){var e=new V;return e.Parent=this,e.optionName=t,this.Kids.push(e),$.call(this,e),e};var G=function(){q.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=J.CheckBox.createAppearanceStream()};u(G,q);var W=function(){R.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,13))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,13):m(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,21))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,21):m(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,23))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,23):m(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,24))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,24):m(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,25))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,25):m(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,26))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,26):m(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};u(W,R);var K=function(){W.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(v(this.Ff,14))},set:function(t){this.Ff=!0===Boolean(t)?b(this.Ff,14):m(this.Ff,14)}}),this.password=!0};u(K,W);var J={CheckBox:{createAppearanceStream:function(){return{N:{On:J.CheckBox.YesNormal},D:{On:J.CheckBox.YesPushDown,Off:J.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=h(t),r=[],o=n.internal.getFont(t.fontName,t.fontStyle).id,i=n.__private__.encodeColorString(t.color),a=w(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+o+" "+s(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=h(t),r=n.internal.getFont(t.fontName,t.fontStyle).id,o=n.__private__.encodeColorString(t.color),i=[],a=J.internal.getHeight(t),c=J.internal.getWidth(t),u=w(t,t.caption);return i.push("1 g"),i.push("0 0 "+s(c)+" "+s(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+s(c-1)+" "+s(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+s(u.fontSize)+" Tf "+o),i.push(u.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:J.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=J.RadioButton.Circle.YesNormal,e.D[t]=J.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=h(t),n=[],r=J.internal.getWidth(t)<=J.internal.getHeight(t)?J.internal.getWidth(t)/4:J.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var o=Number((r*J.internal.Bezier_C).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+c(J.internal.getWidth(t)/2)+" "+c(J.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=h(t),n=[],r=J.internal.getWidth(t)<=J.internal.getHeight(t)?J.internal.getWidth(t)/4:J.internal.getHeight(t)/4,o=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),i=Number((o*J.internal.Bezier_C).toFixed(5)),a=Number((r*J.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+c(J.internal.getWidth(t)/2)+" "+c(J.internal.getHeight(t)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+c(J.internal.getWidth(t)/2)+" "+c(J.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[],r=J.internal.getWidth(t)<=J.internal.getHeight(t)?J.internal.getWidth(t)/4:J.internal.getHeight(t)/4,o=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),i=Number((o*J.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+c(J.internal.getWidth(t)/2)+" "+c(J.internal.getHeight(t)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:J.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=J.RadioButton.Cross.YesNormal,e.D[t]=J.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=h(t),n=[],r=J.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+s(J.internal.getWidth(t)-2)+" "+s(J.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=h(t),n=J.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(J.internal.getWidth(t)-2)+" "+s(J.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(J.internal.getWidth(t))+" "+s(J.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=n.internal.getFont(t.fontName,t.fontStyle).id,r=n.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};J.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=J.internal.getWidth(t),n=J.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},J.internal.getWidth=function(t){var e=0;return"object"===r(t)&&(e=l(t.Rect[2])),e},J.internal.getHeight=function(t){var e=0;return"object"===r(t)&&(e=l(t.Rect[3])),e};var $=t.addField=function(t){if(A.call(this),!(t instanceof R))throw new Error("Invalid argument passed to jsPDF.addField.");return(function(t){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||A.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}).call(this,t),t.page=n.internal.getCurrentPageInfo().pageNumber,this};t.addButton=function(t){if(t instanceof q==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return $.call(this,t)},t.addTextField=function(t){if(t instanceof W==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return $.call(this,t)},t.addChoiceField=function(t){if(t instanceof D==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return $.call(this,t)},"object"==r(e)&&void 0===e.ChoiceField&&void 0===e.ListBox&&void 0===e.ComboBox&&void 0===e.EditBox&&void 0===e.Button&&void 0===e.PushButton&&void 0===e.RadioButton&&void 0===e.CheckBox&&void 0===e.TextField&&void 0===e.PasswordField?(e.ChoiceField=D,e.ListBox=F,e.ComboBox=B,e.EditBox=z,e.Button=q,e.PushButton=U,e.RadioButton=H,e.CheckBox=G,e.TextField=W,e.PasswordField=K,e.AcroForm={Appearance:J}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),t.AcroFormChoiceField=D,t.AcroFormListBox=F,t.AcroFormComboBox=B,t.AcroFormEditBox=z,t.AcroFormButton=q,t.AcroFormPushButton=U,t.AcroFormRadioButton=H,t.AcroFormCheckBox=G,t.AcroFormTextField=W,t.AcroFormPasswordField=K,t.AcroFormAppearance=J,t.AcroForm={ChoiceField:D,ListBox:F,ComboBox:B,EditBox:z,Button:q,PushButton:U,RadioButton:H,CheckBox:G,TextField:W,PasswordField:K,Appearance:J}})((window.tmp=ht).API,"undefined"!=typeof window&&window||"undefined"!=typeof global&&global),function(t){var e="addImage_",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=t.getImageFileTypeByImageData=function(e,r){var o,i;r=r||"UNKNOWN";var a,s,c,u="UNKNOWN";for(c in t.isArrayBufferView(e)&&(e=t.arrayBufferToBinaryString(e)),n)for(a=n[c],o=0;o>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",c=0,u=e.trns.length;c>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=o[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=o[s]<<8|o[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},t.createImageInfo=function(t,e,n,r,o,i,a,s,c,u,l,f,h){var d={alias:s,w:e,h:n,cs:r,bpc:o,i:a,data:t};return i&&(d.f=i),c&&(d.dp=c),u&&(d.trns=u),l&&(d.pal=l),f&&(d.smask=f),h&&(d.p=h),d},t.addImage=function(n,o,i,h,d,p,g,v,b){var m="";if("string"!=typeof o){var y=p;p=d,d=h,h=i,i=o,o=y}if("object"===r(n)&&!u(n)&&"imageData"in n){var _=n;n=_.imageData,o=_.format||o||"UNKNOWN",i=_.x||i||0,h=_.y||h||0,d=_.w||d,p=_.h||p,g=_.alias||g,v=_.compression||v,b=_.rotation||_.angle||b}var w=this.internal.getFilters();if(void 0===v&&-1!==w.indexOf("FlateEncode")&&(v="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(i)||isNaN(h))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var O,C,k,P,S,M,x,j=(function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s)),t}).call(this);if(!((O=f(n,j))||(u(n)&&(n=l(n,o)),(null==(x=g)||0===x.length)&&(g="string"==typeof(M=n)?t.sHashCode(M):t.isArrayBufferView(M)?t.sHashCode(t.arrayBufferToBinaryString(M)):null),O=f(g,j)))){if(this.isString(n)&&(""!==(m=this.convertStringToImageData(n))||void 0!==(m=t.loadFile(n)))&&(n=m),o=this.getImageFileTypeByImageData(n,o),!c(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(C=n,n=this.binaryStringToUint8Array(n))),!(O=this["process"+o.toUpperCase()](n,(S=0,(P=j)&&(S=Object.keys?Object.keys(P).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(P)),S),g,((k=v)&&"string"==typeof k&&(k=k.toUpperCase()),k in t.image_compression?k:t.image_compression.NONE),C)))throw new Error("An unknown error occurred whilst processing the image")}return(function(t,e,n,r,o,i,a,s){var c=(function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}).call(this,n,r,o),u=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(n=c[0],r=c[1],a[i]=o,s){s*=Math.PI/180;var f=Math.cos(s),h=Math.sin(s),d=function(t){return t.toFixed(4)},p=[d(f),d(h),d(-1*h),d(f),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,u(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([u(n),"0","0",u(r),"0","0","cm"].join(" "))):this.internal.write([u(n),"0","0",u(r),u(t),l(e+r),"cm"].join(" ")),this.internal.write("/I"+o.i+" Do"),this.internal.write("Q")}).call(this,i,h,d,p,O,O.i,j,b),this},t.convertStringToImageData=function(e){var n,r="";if(this.isString(e)){var o;n=null!==(o=this.extractImageFromDataUrl(e))?o.data:e;try{r=atob(n)}catch(e){throw t.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var h=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,n,r,i,a){var s,c=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if("JPEG"!==o(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,i=t.length;r>";var h=u.objId+" 0 R";g="<>",this.internal.write(u.objId,"0 R",l.objId,"0 R");break;case"freetext":var d="/Rect ["+a(c.bounds.x)+" "+s(c.bounds.y)+" "+a(c.bounds.x+c.bounds.w)+" "+s(c.bounds.y+c.bounds.h)+"] ";g="<>";else if(c.options.pageNumber)switch(g="<>")}}this.internal.write("]")}}]),i.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},i.link=function(t,e,n,r,o){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:o,type:"link"})},i.textWithLink=function(t,e,n,r){var o=this.getTextWidth(t),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),this.link(e,(n+=.2*i)-i,o,i,r),o},i.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&i(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&0<=o.indexOf(t.charCodeAt(0))},u=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&i(t)&&1<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&i(t)&&2<=e[t.charCodeAt(0)].length}),l=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&i(t)&&3<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&i(t)&&4==e[t.charCodeAt(0)].length}),f=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,o=0,i="",a=0;for(e=0;e>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this},a=ht.API,(s=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(t){o=t}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},s.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},a.events.push(["initialized",function(){this.canvas=new s,this.canvas.pdf=this}]),l={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,h=function(t,e,n,r,o){l={x:t,y:e,w:n,h:r,ln:o}},d=function(){return l},p={left:0,top:0,bottom:0},(c=ht.API).setHeaderFunction=function(t){u=t},c.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont(),(e=e||{}).scaleFactor||this.internal.scaleFactor),o=0,i=0,a=0;if("string"==typeof t)0!=(o=this.getStringUnitWidth(t)*n)&&(i=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s=this.internal.pageSize.getHeight()-u.bottom&&(this.cellAddPage(),c=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),e=d().y+d().h,c&&(e=23)}if(void 0!==o[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){o instanceof Array||(o=[o]);for(var l=0;l=2*Math.PI&&(r=0,o=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:o,counterclockwise:i})},u.prototype.arcTo=function(t,e,n,r,o){throw new Error("arcTo not implemented.")},u.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},u.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var o={};"butt"!==this.lineCap&&(o.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(o.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),o.hasOwnProperty("lineCap")&&(this.lineCap=o.lineCap),o.hasOwnProperty("lineJoin")&&(this.lineJoin=o.lineJoin)}},u.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");h.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},u.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},u.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n"},b=function(t){var e,n,r,o,i,a=String,s="length",c="charCodeAt",u="slice",l="replace";for(t[u](-2),t=t[u](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),r=[],o=0,i=(t+=e="uuuuu"[u](t[s]%5||5))[s];o>24,255&n>>16,255&n>>8,255&n);return function(t,n){for(var r=e[s];0"},y=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r>8&255,n>>16&255,n>>24&255]),t.length+2),String.fromCharCode.apply(null,o)},(g=ht.API).processDataByFilters=function(t,e){var n=0,r=t||"",o=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n>"),this.internal.out("endobj"),x=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+j+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==M&&void 0!==x&&this.internal.out("/Names <>")})),this},(A=ht.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0> endobj")}var l=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+l+" 0 R"),t.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){0> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n>>24&255,h[f++]=s>>>16&255,h[f++]=s>>>8&255,h[f++]=255&s,N.arrayBufferToBinaryString(h)},T=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},I=function(t,e){for(var n,r=1,o=0,i=t.length,a=0;0>>0},R=function(t,e,n,r){for(var o,i,a,s=t.length/e,c=new Uint8Array(t.length+s),u=H(),l=0;l>>1)&255;return r},q=function(t,e,n){var r,o=[],i=0,a=t.length;for(o[0]=4;i>>p&255,p+=i.bits;b[y]=w>>>p&255}if(16===i.bits){g=(S=new Uint32Array(i.decodePixels().buffer)).length,v=new Uint8Array(g*(32/i.pixelBitlength)*i.colors),b=new Uint8Array(g*(32/i.pixelBitlength));for(var w,O=1>>0&255,O&&(v[_++]=w>>>16&255,w=S[y++],v[_++]=w>>>0&255),b[C++]=w>>>16&255;d=8}r!==N.image_compression.NONE&&E()?(t=L(v,i.width*i.colors,i.colors,r),l=L(b,i.width,1,r)):(t=v,l=b,h=null)}if(3===i.colorType&&(f=this.color_spaces.INDEXED,u=i.palette,i.transparency.indexed)){var k=i.transparency.indexed,P=0;for(y=0,g=k.length;yr&&(o.push(t.slice(c,i)),s=0,c=i),s+=e[i],i++;return c!==i&&o.push(t.slice(c,i)),o},Z=function(t,e,n){n||(n={});var r,o,i,a,s,c,u=[],l=[u],f=n.textIndent||0,h=0,d=0,p=t.split(" "),g=$.apply(this,[" ",n])[0];if(c=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var v=Array(c).join(" "),b=[];p.map((function(t){1<(t=t.split(/\s*\n/)).length?b=b.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):b.push(t[0])})),p=b,c=Q.apply(this,[v,n])}for(i=0,a=p.length;i>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},ut=ct=st="",ht.API.addMetadata=function(t,e){return ct=e||"http://jspdf.default.namespaceuri/",st=t,this.internal.events.subscribe("postPutResources",(function(){if(st){var t='',e=unescape(encodeURIComponent('')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(st)),o=unescape(encodeURIComponent("")),i=unescape(encodeURIComponent("")),a=n.length+r.length+o.length+e.length+i.length;ut=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+o+i),this.internal.write("endstream"),this.internal.write("endobj")}else ut=""})),this.internal.events.subscribe("putCatalog",(function(){ut&&this.internal.write("/Metadata "+ut+" 0 R")})),this},function(t,e){var n=t.API,r=n.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,o=["","0","00","000","0000"],i=[""],a=0,s=t.length;a<"+o+">");return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(e){!function(e,n,r,i){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,s=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),c="",u=0;u>"),n("endobj");var d=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+e.fontName),n("/FontDescriptor "+h+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+f+" 0 R"),n("/BaseFont /"+e.fontName),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]),n.events.push(["putFont",function(e){!function(e,n,r,i){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){for(var a=e.metadata.rawData,s="",c=0;c>"),n("endobj"),e.objectNumber=r(),c=0;c>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]);var i=function(t){var e,n,o=t.text||"",i=t.x,a=t.y,s=t.options||{},c=t.mutex||{},u=c.pdfEscape,l=c.activeFontKey,f=c.fonts,h="",d=0,p="",g=f[n=l].encoding;if("Identity-H"!==f[n].encoding)return{text:o,x:i,y:a,options:s,mutex:c};for(p=o,n=l,"[object Array]"===Object.prototype.toString.call(o)&&(p=o[0]),d=0;dc-u.top-u.bottom&&r.pagesplit){var p=function(t,e,n,o,i){var a=document.createElement("canvas");a.height=i,a.width=o;var s=a.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,o,i),s.drawImage(t,e,n,o,i,0,0,o,i),a},g=(function(){for(var r,i,l=0,g=0,v={},b=!1;;){var m;if(g=0,v.top=0!==l?u.top:n,v.left=0!==l?u.left:e,b=(s-u.left-u.right)*a=t.width)break;this.addPage()}else y=[m=p(t,0,l,r,i),v.left,v.top,m.width/a,m.height/a,h,null,d],this.addImage.apply(this,y);if((l+=i)>=t.height)break;this.addPage()}o(f,l,null,y)}).bind(this);if("CANVAS"===t.nodeName){var v=new Image;v.onload=g,v.src=t.toDataURL("image/png"),t=v}else g()}else{var b=Math.random().toString(35),m=[t,e,n,f,l,h,b,d];this.addImage.apply(this,m),o(f,l,b,m)}}).bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"==typeof rasterizeHTML)return null;var u="drawDocument";return"string"==typeof t&&(u=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[u](t,void 0,r).then((function(t){r.onrendered(t.image)}),(function(t){o(null,t)}))},function(t){var e,n,o,i,a,s,c,u,l,f,h,d,p,g,v,b,m,y,_,w;e=function(){return function(e){return t.prototype=e,new t};function t(){}}(),f=function(t){var e,n,r,o,i,a,s;for(n=0,r=t.length,e=void 0,a=o=!1;!o&&n!==r;)(e=t[n]=t[n].trimLeft())&&(o=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(i=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=i.test(e)),t[n]=e),n++;return t},d=function(t){var e,n,r;for(e=void 0,n=(r=t.split(",")).shift();!e&&n;)e=o[n.trim().toLowerCase()],n=r.shift();return e},p=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1o.pdf.margins_doc.top&&(o.pdf.addPage(),o.y=o.pdf.margins_doc.top,o.executeWatchFunctions(a));var j=l(a),A=o.x,N=12/o.pdf.internal.scaleFactor,E=(j["margin-left"]+j["padding-left"])*N,L=(j["margin-right"]+j["padding-right"])*N,T=(j["margin-top"]+j["padding-top"])*N,I=(j["margin-bottom"]+j["padding-bottom"])*N;o.pdf.addImage(M,A+=void 0!==j.float&&"right"===j.float?o.settings.width-a.width-L:E,o.y+T,a.width,a.height),M=void 0,"right"===j.float||"left"===j.float?(o.watchFunctions.push((function(t,e,n,r){return o.y>=e?(o.x+=t,o.settings.width+=n,!0):!!(r&&1===r.nodeType&&!O[r.nodeName]&&o.x+r.width>o.pdf.margins_doc.left+o.pdf.margins_doc.width)&&(o.x+=t,o.y=e,o.settings.width+=n,!0)}).bind(this,"left"===j.float?-a.width-E-L:0,o.y+a.height+T+I,a.width)),o.watchFunctions.push((function(t,e,n){return!(o.y]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(u=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",u.innerHTML='