define(["require","exports","css:/base.css","css:/style-web.css","css:/header-web.css","./edu-vendor","inline-views:/header-tpl","systemjs","npm:tablesort/dist/tablesort.min.js","css:/icons-social.css","npm:zenscroll/zenscroll.js","npm:dompurify/dist/purify.js"],function(e,t,n,i,r,o,a,s,l,c,u,h){"use strict";function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var v,y="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign,b=["","webkit","Moz","MS","ms","o"],_="undefined"==typeof document?{style:{}}:document.createElement("div"),S="function",w=Math.round,E=Math.abs,k=Date.now;function x(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o<b.length;){if((i=(n=b[o])?n+r:t)in e)return i;o++}}v="undefined"==typeof window?{}:window;var P=x(_.style,"touchAction"),O=void 0!==P;var T="auto",C="manipulation",N="none",I="pan-x",F="pan-y",A=function(){if(!O)return!1;var e={},t=v.CSS&&v.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return e[n]=!t||v.CSS.supports("touch-action",n)}),e}(),L="ontouchstart"in v,V=void 0!==x(v,"PointerEvent"),D=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M="touch",z="mouse",R=25,B=1,j=2,U=4,W=8,H=1,G=2,q=4,K=8,$=16,Z=G|q,Q=K|$,Y=Z|Q,J=["x","y"],X=["clientX","clientY"];function ee(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function te(e,t){return m(e)===S?e.apply(t&&t[0]||void 0,t):e}function ne(e,t){return e.indexOf(t)>-1}var ie=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){"compute"===e&&(e=this.compute()),O&&this.manager.element.style&&A[e]&&(this.manager.element.style[P]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return ee(this.manager.recognizers,function(t){te(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(ne(e,N))return N;var t=ne(e,I),n=ne(e,F);return t&&n?N:t||n?t?I:F:ne(e,C)?C:T}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=ne(i,N)&&!A[N],o=ne(i,F)&&!A[F],a=ne(i,I)&&!A[I];if(r){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return r||o&&n&Z||a&&n&Q?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function re(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function oe(e){var t=e.length;if(1===t)return{x:w(e[0].clientX),y:w(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:w(n/t),y:w(i/t)}}function ae(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:w(e.pointers[n].clientX),clientY:w(e.pointers[n].clientY)},n++;return{timeStamp:k(),pointers:t,center:oe(t),deltaX:e.deltaX,deltaY:e.deltaY}}function se(e,t,n){n||(n=J);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function le(e,t,n){n||(n=J);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function ce(e,t){return e===t?H:E(e)>=E(t)?e<0?G:q:t<0?K:$}function ue(e,t,n){return{x:t/e||0,y:n/e||0}}function he(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=ae(t)),r>1&&!n.firstMultiple?n.firstMultiple=ae(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=oe(i);t.timeStamp=k(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=le(s,l),t.distance=se(s,l),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==B&&o.eventType!==U||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=ce(t.deltaX,t.deltaY);var c,u,h=ue(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=E(h.x)>E(h.y)?h.x:h.y,t.scale=a?(c=a.pointers,se((u=i)[0],u[1],X)/se(c[0],c[1],X)):1,t.rotation=a?function(e,t){return le(t[1],t[0],X)+le(e[1],e[0],X)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(t.eventType!==W&&(s>R||void 0===a.velocity)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,u=ue(s,l,c);i=u.x,r=u.y,n=E(u.x)>E(u.y)?u.x:u.y,o=ce(l,c),e.lastInterval=t}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}(n,t);var d,m=e.element,p=t.srcEvent;re(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,m)&&(m=d),t.target=m}function de(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,o=t&B&&i-r==0,a=t&(U|W)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,he(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function me(e){return e.trim().split(/\s+/g)}function pe(e,t,n){ee(me(t),function(t){e.addEventListener(t,n,!1)})}function fe(e,t,n){ee(me(t),function(t){e.removeEventListener(t,n,!1)})}function ge(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var ve=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){te(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&pe(this.element,this.evEl,this.domHandler),this.evTarget&&pe(this.target,this.evTarget,this.domHandler),this.evWin&&pe(ge(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&fe(this.element,this.evEl,this.domHandler),this.evTarget&&fe(this.target,this.evTarget,this.domHandler),this.evWin&&fe(ge(this.element),this.evWin,this.domHandler)},e}();function ye(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}var be={pointerdown:B,pointermove:j,pointerup:U,pointercancel:W,pointerout:W},_e={2:M,3:"pen",4:z,5:"kinect"},Se="pointerdown",we="pointermove pointerup pointercancel";v.MSPointerEvent&&!v.PointerEvent&&(Se="MSPointerDown",we="MSPointerMove MSPointerUp MSPointerCancel");var Ee=function(e){function t(){var n,i=t.prototype;return i.evEl=Se,i.evWin=we,(n=e.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return f(t,e),t.prototype.handler=function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=be[i],o=_e[e.pointerType]||e.pointerType,a=o===M,s=ye(t,e.pointerId,"pointerId");r&B&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):r&(U|W)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))},t}(ve);function ke(e){return Array.prototype.slice.call(e,0)}function xe(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];ye(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}var Pe={touchstart:B,touchmove:j,touchend:U,touchcancel:W},Oe="touchstart touchmove touchend touchcancel",Te=function(e){function t(){var n;return t.prototype.evTarget=Oe,(n=e.apply(this,arguments)||this).targetIds={},n}return f(t,e),t.prototype.handler=function(e){var t=Pe[e.type],n=function(e,t){var n,i,r=ke(e.touches),o=this.targetIds;if(t&(B|j)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var a=ke(e.changedTouches),s=[],l=this.target;if(i=r.filter(function(e){return re(e.target,l)}),t===B)for(n=0;n<i.length;)o[i[n].identifier]=!0,n++;n=0;for(;n<a.length;)o[a[n].identifier]&&s.push(a[n]),t&(U|W)&&delete o[a[n].identifier],n++;if(!s.length)return;return[xe(i.concat(s),"identifier",!0),s]}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:M,srcEvent:e})},t}(ve);var Ce={mousedown:B,mousemove:j,mouseup:U},Ne="mousedown",Ie="mousemove mouseup",Fe=function(e){function t(){var n,i=t.prototype;return i.evEl=Ne,i.evWin=Ie,(n=e.apply(this,arguments)||this).pressed=!1,n}return f(t,e),t.prototype.handler=function(e){var t=Ce[e.type];t&B&&0===e.button&&(this.pressed=!0),t&j&&1!==e.which&&(t=U),this.pressed&&(t&U&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:z,srcEvent:e}))},t}(ve),Ae=2500,Le=25;function Ve(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)},Ae)}}var De=function(){return function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handler=function(e,t,n){var r=n.pointerType===M,o=n.pointerType===z;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)(function(e,t){e&B?(this.primaryTouch=t.changedPointers[0].identifier,Ve.call(this,t)):e&(U|W)&&Ve.call(this,t)}).call(g(g(i)),t,n);else if(o&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(o<=Le&&a<=Le)return!0}return!1}.call(g(g(i)),n))return;i.callback(e,t,n)}},i.touch=new Te(i.manager,i.handler),i.mouse=new Fe(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return f(t,e),t.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(ve)}();function Me(e,t,n){return!!Array.isArray(e)&&(ee(e,n[t],n),!0)}var ze=1,Re=2,Be=4,je=8,Ue=je,We=16,He=1;function Ge(e,t){var n=t.manager;return n?n.get(e):e}function qe(e){return e&We?"cancel":e&je?"end":e&Be?"move":e&Re?"start":""}var Ke=function(){function e(e){void 0===e&&(e={}),this.options=p({enable:!0},e),this.id=He++,this.manager=null,this.state=ze,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(e){return y(this.options,e),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(e){if(Me(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ge(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},t.dropRecognizeWith=function(e){return Me(e,"dropRecognizeWith",this)?this:(e=Ge(e,this),delete this.simultaneous[e.id],this)},t.requireFailure=function(e){if(Me(e,"requireFailure",this))return this;var t=this.requireFail;return-1===ye(t,e=Ge(e,this))&&(t.push(e),e.requireFailure(this)),this},t.dropRequireFailure=function(e){if(Me(e,"dropRequireFailure",this))return this;e=Ge(e,this);var t=ye(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<je&&i(t.options.event+qe(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=je&&i(t.options.event+qe(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=32},t.canEmit=function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|ze)))return!1;e++}return!0},t.recognize=function(e){var t=y({},e);if(!te(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(Ue|We|32)&&(this.state=ze),this.state=this.process(t),this.state&(Re|Be|je|We)&&this.tryEmit(t)},t.process=function(e){},t.getTouchAction=function(){},t.reset=function(){},e}(),$e=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,p({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}f(t,e);var n=t.prototype;return n.getTouchAction=function(){return[C]},n.process=function(e){var t=this,n=this.options,i=e.pointers.length===n.pointers,r=e.distance<n.threshold,o=e.deltaTime<n.time;if(this.reset(),e.eventType&B&&0===this.count)return this.failTimeout();if(r&&o&&i){if(e.eventType!==U)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<n.interval,s=!this.pCenter||se(this.pCenter,e.center)<n.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&a?this.count+=1:this.count=1,this._input=e,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){t.state=Ue,t.tryEmit()},n.interval),Re):Ue}return 32},n.failTimeout=function(){var e=this;return this._timer=setTimeout(function(){e.state=32},this.options.interval),32},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){this.state===Ue&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Ke),Ze=function(e){function t(t){return void 0===t&&(t={}),e.call(this,p({pointers:1},t))||this}f(t,e);var n=t.prototype;return n.attrTest=function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},n.process=function(e){var t=this.state,n=e.eventType,i=t&(Re|Be),r=this.attrTest(e);return i&&(n&W||!r)?t|We:i||r?n&U?t|je:t&Re?t|Be:Re:32},t}(Ke);function Qe(e){return e===$?"down":e===K?"up":e===G?"left":e===q?"right":""}var Ye=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,p({event:"pan",threshold:10,pointers:1,direction:Y},t))||this).pX=null,n.pY=null,n}f(t,e);var n=t.prototype;return n.getTouchAction=function(){var e=this.options.direction,t=[];return e&Z&&t.push(F),e&Q&&t.push(I),t},n.directionTest=function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(t.direction&Z?(r=0===o?H:o<0?G:q,n=o!==this.pX,i=Math.abs(e.deltaX)):(r=0===a?H:a<0?K:$,n=a!==this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},n.attrTest=function(e){return Ze.prototype.attrTest.call(this,e)&&(this.state&Re||!(this.state&Re)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=Qe(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}(Ze),Je=function(e){function t(t){return void 0===t&&(t={}),e.call(this,p({event:"swipe",threshold:10,velocity:.3,direction:Z|Q,pointers:1},t))||this}f(t,e);var n=t.prototype;return n.getTouchAction=function(){return Ye.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n,i=this.options.direction;return i&(Z|Q)?n=t.overallVelocity:i&Z?n=t.overallVelocityX:i&Q&&(n=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&E(n)>this.options.velocity&&t.eventType&U},n.emit=function(e){var t=Qe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(Ze),Xe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,p({event:"pinch",threshold:0,pointers:2},t))||this}f(t,e);var n=t.prototype;return n.getTouchAction=function(){return[N]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Re)},n.emit=function(t){if(1!==t.scale){var n=t.scale<1?"in":"out";t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}(Ze),et=function(e){function t(t){return void 0===t&&(t={}),e.call(this,p({event:"rotate",threshold:0,pointers:2},t))||this}f(t,e);var n=t.prototype;return n.getTouchAction=function(){return[N]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Re)},t}(Ze),tt=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,p({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,n._input=null,n}f(t,e);var n=t.prototype;return n.getTouchAction=function(){return[T]},n.process=function(e){var t=this,n=this.options,i=e.pointers.length===n.pointers,r=e.distance<n.threshold,o=e.deltaTime>n.time;if(this._input=e,!r||!i||e.eventType&(U|W)&&!o)this.reset();else if(e.eventType&B)this.reset(),this._timer=setTimeout(function(){t.state=Ue,t.tryEmit()},n.time);else if(e.eventType&U)return Ue;return 32},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){this.state===Ue&&(e&&e.eventType&U?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=k(),this.manager.emit(this.options.event,this._input)))},t}(Ke),nt={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},it=[[et,{enable:!1}],[Xe,{enable:!1},["rotate"]],[Je,{direction:Z}],[Ye,{direction:Z},["swipe"]],[$e],[$e,{event:"doubletap",taps:2},["tap"]],[tt]];function rt(e,t){var n,i=e.element;i.style&&(ee(e.options.cssProps,function(r,o){n=x(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}var ot=function(){function e(e,t){var n,i=this;this.options=y({},nt,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(V?Ee:D?Te:L?De:Fe))(n,de),this.touchAction=new ie(this,this.options.touchAction),rt(this,!0),ee(this.options.recognizers,function(e){var t=i.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}var t=e.prototype;return t.set=function(e){return y(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&Ue)&&(t.curRecognizer=null,r=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&n.state&(Re|Be|je)&&(t.curRecognizer=n,r=n),o++}},t.get=function(e){if(e instanceof Ke)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event===e)return t[n];return null},t.add=function(e){if(Me(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},t.remove=function(e){if(Me(e,"remove",this))return this;var t=this.get(e);if(e){var n=this.recognizers,i=ye(n,t);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},t.on=function(e,t){if(void 0===e||void 0===t)return this;var n=this.handlers;return ee(me(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this},t.off=function(e,t){if(void 0===e)return this;var n=this.handlers;return ee(me(e),function(e){t?n[e]&&n[e].splice(ye(n[e],t),1):delete n[e]}),this},t.emit=function(e,t){this.options.domEvents&&function(e,t){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},t.destroy=function(){this.element&&rt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),at={touchstart:B,touchmove:j,touchend:U,touchcancel:W},st="touchstart",lt="touchstart touchmove touchend touchcancel",ct=function(e){function t(){var n,i=t.prototype;return i.evTarget=st,i.evWin=lt,(n=e.apply(this,arguments)||this).started=!1,n}return f(t,e),t.prototype.handler=function(e){var t=at[e.type];if(t===B&&(this.started=!0),this.started){var n=function(e,t){var n=ke(e.touches),i=ke(e.changedTouches);t&(U|W)&&(n=xe(n.concat(i),"identifier",!0));return[n,i]}.call(this,e,t);t&(U|W)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:M,srcEvent:e})}},t}(ve);function ut(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),e.apply(this,arguments)}}var ht=ut(function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&void 0===e[i[r]])&&(e[i[r]]=t[i[r]]),r++;return e},"extend","Use `assign`."),dt=ut(function(e,t){return ht(e,t,!0)},"merge","Use `assign`.");function mt(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&y(i,n)}function pt(e,t){return function(){return e.apply(t,arguments)}}var ft=function(){var e=function(e,t){return void 0===t&&(t={}),new ot(e,p({recognizers:it.concat()},t))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=Y,e.DIRECTION_DOWN=$,e.DIRECTION_LEFT=G,e.DIRECTION_RIGHT=q,e.DIRECTION_UP=K,e.DIRECTION_HORIZONTAL=Z,e.DIRECTION_VERTICAL=Q,e.DIRECTION_NONE=H,e.DIRECTION_DOWN=$,e.INPUT_START=B,e.INPUT_MOVE=j,e.INPUT_END=U,e.INPUT_CANCEL=W,e.STATE_POSSIBLE=ze,e.STATE_BEGAN=Re,e.STATE_CHANGED=Be,e.STATE_ENDED=je,e.STATE_RECOGNIZED=Ue,e.STATE_CANCELLED=We,e.STATE_FAILED=32,e.Manager=ot,e.Input=ve,e.TouchAction=ie,e.TouchInput=Te,e.MouseInput=Fe,e.PointerEventInput=Ee,e.TouchMouseInput=De,e.SingleTouchInput=ct,e.Recognizer=Ke,e.AttrRecognizer=Ze,e.Tap=$e,e.Pan=Ye,e.Swipe=Je,e.Pinch=Xe,e.Rotate=et,e.Press=tt,e.on=pe,e.off=fe,e.each=ee,e.merge=dt,e.extend=ht,e.bindFn=pt,e.assign=y,e.inherit=mt,e.bindFn=pt,e.prefixed=x,e.toArray=ke,e.inArray=ye,e.uniqueArray=xe,e.splitStr=me,e.boolOrFn=te,e.hasParent=re,e.addEventListeners=pe,e.removeEventListeners=fe,e.defaults=y({},nt,{preset:it}),e}(),gt=ft.defaults,vt=ft,yt=Object.freeze({__proto__:null,default:vt,INPUT_START:B,INPUT_MOVE:j,INPUT_END:U,INPUT_CANCEL:W,STATE_POSSIBLE:ze,STATE_BEGAN:Re,STATE_CHANGED:Be,STATE_ENDED:je,STATE_RECOGNIZED:Ue,STATE_CANCELLED:We,STATE_FAILED:32,DIRECTION_NONE:H,DIRECTION_LEFT:G,DIRECTION_RIGHT:q,DIRECTION_UP:K,DIRECTION_DOWN:$,DIRECTION_HORIZONTAL:Z,DIRECTION_VERTICAL:Q,DIRECTION_ALL:Y,Manager:ot,Input:ve,TouchAction:ie,TouchInput:Te,MouseInput:Fe,PointerEventInput:Ee,TouchMouseInput:De,SingleTouchInput:ct,Recognizer:Ke,AttrRecognizer:Ze,Tap:$e,Pan:Ye,Swipe:Je,Pinch:Xe,Rotate:et,Press:tt,on:pe,off:fe,each:ee,merge:dt,extend:ht,assign:y,inherit:mt,bindFn:pt,prefixed:x,toArray:ke,inArray:ye,uniqueArray:xe,splitStr:me,boolOrFn:te,hasParent:re,addEventListeners:pe,removeEventListeners:fe,defaults:gt}),bt=null;function _t(e,t){var n=t||{preventDefault:!1};if(e.Manager){var i=e,r=function(e,t){var r=Object.create(n);return t&&i.assign(r,t),_t(new i(e,r),r)};return i.assign(r,i),r.Manager=function(e,t){var r=Object.create(n);return t&&i.assign(r,t),_t(new i.Manager(e,r),r)},r}var o=Object.create(e),a=e.element;function s(e){return e.match(/[^ ]+/g)}function l(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=bt;for(var i=bt;i&&!t;){var r=i.hammer;if(r)for(var o,a=0;a<r.length;a++)if(o=r[a]._handlers[e.type])for(var s=0;s<o.length&&!t;s++)o[s](e);i=i.parentNode}}return a.hammer||(a.hammer=[]),a.hammer.push(o),e.on("hammer.input",function(e){!0!==n.preventDefault&&n.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(bt=e.target)}),o._handlers={},o.on=function(t,n){return s(t).forEach(function(t){var i=o._handlers[t];i||(o._handlers[t]=i=[],e.on(t,l)),i.push(n)}),o},o.off=function(t,n){return s(t).forEach(function(t){var i=o._handlers[t];i&&((i=n?i.filter(function(e){return e!==n}):[]).length>0?o._handlers[t]=i:(e.off(t,l),delete o._handlers[t]))}),o},o.emit=function(t,n){bt=n.target,e.emit(t,n)},o.destroy=function(){var t=e.element.hammer,n=t.indexOf(o);-1!==n&&t.splice(n,1),t.length||delete e.element.hammer,o._handlers={},e.destroy()},o}var St=Object.freeze({__proto__:null,default:_t});function wt(){var e=!1;try{e="undefined"!=typeof document&&"undefined"!=typeof window}catch(e){}return e&&!kt()}function Et(){return"DEV"==nn.getEnv()&&((wt()||kt())&&window.isLocalEv||Pt()&&global.isLOCAL)}function kt(){var e=!1;try{e=window.cordova&&window.cordova.platformId}catch(e){}return e}var xt=function(){if(!wt())return!1;var e=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone;return e||(e=window.Windows&&window.Windows.Devices),e}();function Pt(){var e=!1;try{e="undefined"!=typeof document&&"undefined"!=typeof window}catch(e){}return!e}var Ot=function(){var e=!1;try{(e="undefined"!=typeof document&&"undefined"!=typeof window)&&(e=window&&window.JSTESTING)}catch(e){}return e}();function Tt(){return Ot}function Ct(){return"DEV"==nn.getEnv()}function Nt(e){return String.prototype.trim?String.prototype.trim.call(e):e.replace(/^\s+|\s+$/gm,"")}function It(e,t){return e.replace(/\{(\d+)\}/g,function(e,n){return void 0!==t[n]?t[n]:e})}function Ft(e){return"string"==typeof e}function At(e){if(!Ft(e))throw new TypeError("stringGetDigits called on a non-string. The given value is "+typeof e);return Nt(e).replace(/[^0-9]/g,"")}function Lt(e,t){return"number"==typeof e&&(t&&isNaN(e)||isFinite(e))}function Vt(e){if(Ft(e)){var t=e.trim(),n=t.replace(/[^0-9.]/g,"");0==t.indexOf("-")&&(n="-"+n);var i=parseFloat(n);return Lt(i)?i:null}return Lt(e)?e:null}function Dt(e,t,n,i,r){void 0===t&&(t=1),void 0===n&&(n="$"),void 0===i&&(i=","),void 0===r&&(r="."),t=!isNaN(t=Math.abs(t))&&t>0?Math.pow(10,t):1,n=void 0!==n?n:"$",i=i||",",r=r||".";var o=e<0?"-":"",a=parseInt(e=Math.round(Math.abs(+e||0)*t)/t,10)+"",s=(s=a.length)>3?s%3:0,l=o+n+(s?a.substr(0,s)+i:"")+a.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+i);return t>1&&Math.abs(e-a)>0&&(l+=r+(Math.round(Math.abs(e-a)*t)/t).toString().substring(2)),l}function Mt(e){return Array.isArray?Array.isArray(e):e&&"[object Array]"===Object.prototype.toString.call(e)}function zt(e,t,n){if(void 0===n&&(n=e),!Mt(e))throw new TypeError("forEach called on a non-array type value. The given value is "+typeof e);var i;n||(n=e);for(var r=0,o=e.length;r<o&&("boolean"!=typeof(i=t.call(n,e[r],r,e))||i);)r++}function Rt(e){return"function"==typeof e}function Bt(e){return null!==e&&"object"==typeof e&&!Mt(e)}function jt(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=Object.keys(e),r=[];return zt(i,function(i){n&&null===e[i]||r.push(encodeURIComponent(i)+"="+(t?encodeURIComponent(e[i]):e[i]))}),r.join("&")}function Ut(e,t,n){void 0===n&&(n=e);var i,r=n||e;if(!Bt(e))throw new TypeError("Object.forEach called on non-object. The given value is "+typeof e);if(!Rt(t))throw new TypeError("The given iterator is not a function");for(var o in e)if(e.hasOwnProperty(o)&&"boolean"==typeof(i=t.apply(r,[e[o],o]))&&!i)break}function Wt(e){if(!Bt(e)&&!Mt(e))return e;var t=!Mt(e),n=t?{}:[],i=0,r=0;if(t){var o=Object.keys(e);for(i=0,r=o.length;i<r;i++){var a=o[i];n[a]=Wt(e[a])}}else for(i=0,r=e.length;i<r;i++)n[i]=Wt(e[i]);return n}function Ht(e,t,n){if(void 0===n&&(n=!1),!Bt(e)||!Bt(t))throw new TypeError("First or second argument is not an json object");return function e(t,n,i){if(void 0===i&&(i=!1),!Bt(n)&&!Mt(n))return n;var r,o=!Mt(n),a=0,s=0;if(r=i?Wt(t):t,!o){for(Mt(r)||(r=[]),a=0,s=n.length;a<s;a++)r[c=n[a]]=e(r[c],n[c]);return n}var l=Object.keys(n);for(a=0,s=l.length;a<s;a++){var c;r[c=l[a]]=e(r[c]||{},n[c])}return r}(e,t,n)}function Gt(e){if(!Bt(e)&&!Mt(e))throw new TypeError("Object.copy called on non-object. The given value is "+typeof e);return Wt(e)}function qt(e,t){var n=!1;return zt(t,function(t){if(e===t)return n=!0,!1}),n}function Kt(e){return null==e||void 0===e}var $t={};function Zt(e,t){var n;void 0===e&&(e="");var i=function(e,t){return t<(e=parseInt(e,10).toString(16)).length?e.slice(e.length-t):t>e.length?Array(t-e.length+1).join("0")+e:e};return $t||($t={}),$t.uniqidSeed||($t.uniqidSeed=Math.floor(123456789*Math.random())),$t.uniqidSeed++,n=e,n+=i(parseInt(((new Date).getTime()/1e3).toString(),10),8),n+=i($t.uniqidSeed,5),t&&(n+=(10*Math.random()).toFixed(8).toString()),n}var Qt,Yt,Jt,Xt,en=function(){var e;if("undefined"!=typeof window){if(window.requestAnimationFrame)return function(e,t){return window.requestAnimationFrame.apply(window,[e,t])};var t=0;e=function(e){var n=(new Date).getTime(),i=Math.max(0,16-(n-t)),r=window.setTimeout(function(){e(n+i)},i);return t=n+i,r}}else e=function(e){e()};return e}(),tn=(Qt=null,function(){if(Pt())return!1;if(null!==Qt)return Qt;Qt=!1;try{var e=function(){window.removeEventListener("test",e)},t=Object.defineProperty({},"passive",{get:function(){Qt=!0}});window.addEventListener("test",e,t)}catch(e){}return Qt}),nn={getEnv:function(){return Yt},setEnv:function(e){Yt=e}},rn=e("systemjs"),on=!1,an=_t||St,sn=vt||yt;function ln(){return new Promise(function(e,t){kt()?rn.import("utils:/material-ripple").then(function(t){e(t.default)},function(){t()}):t()})}!function(){function e(e,t){this.el=e,this._zone=t,this.ripple=!1}e.prototype.CloseMobKeyboard=function(e){if(e.target!=document.activeElement&&(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement)){if(document.activeElement.hasAttribute&&document.activeElement.hasAttribute("keep-focus"))return;document.activeElement.blur()}},e.prototype.ngOnInit=function(){var e=this.ripple;on=e,Pt()||Tt()||ln().then(function(){},function(){}),this.CloseMobKeyboard=this.CloseMobKeyboard.bind(this),Pt()||Tt()||((Jt=an(new sn(this.el.nativeElement,{touchAction:"pinch"}))).on("tap",this.CloseMobKeyboard),Xt=tn())},e.prototype.ngAfterViewInit=function(){var e=this;Pt()||Tt()||ln().then(function(t){var n=e.ripple;e._rippleJs=t,e._zone.runOutsideAngular(function(){n&&e.el&&e._rippleJs.enable(e.el.nativeElement)})},function(){e.ripple=!1,on=!1})},e.prototype.ngOnDestroy=function(){Pt()||Tt()||this.el.nativeElement&&(this._rippleJs.disable(),Jt.off("tap",this.CloseMobKeyboard))},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","zing-region",""]],inputs:{ripple:["zing-ripple","ripple"]}})}();var cn,un,hn=function(){function e(e,t){this.el=e,this._zone=t,this.onTap=new o.EventEmitter,this.onTapHover=new o.EventEmitter,this.onTapOutside=new o.EventEmitter,this.onTapHoverOutside=new o.EventEmitter,this.onTapDoc=new o.EventEmitter,this.onSwipeLeft=new o.EventEmitter,this.onTapUrl=new o.EventEmitter,this.onClick=new o.EventEmitter,this.zingToggle=!1,this.zingFocus=!1,this.zingSlider=!1,this.zingUrl=!1,this.zingUrlContainer=!1,this.zingUrlContainerTarget=null,this.zingUrlFeedback=!1,this.zingNoTouch=!1,this.zingTapDelay=0,this._eventsDestroyCallbacks=[]}return e.prototype._eventsDestroyCallbacksTrigger=function(){this._eventsDestroyCallbacks.forEach(function(e){e()}),this._eventsDestroyCallbacks=[]},e.prototype.specialEventsDestroy=function(e){this._eventsDestroyCallbacks.indexOf(e)<0&&this._eventsDestroyCallbacks.push(e)},e.prototype.addTouchFeed=function(){var e=this,t=function(){e.el.nativeElement.classList.add("mob"),e.el.nativeElement.classList.add("touch")},n=function(){e.el.nativeElement.classList.remove("touch")};Xt?(this.el.nativeElement.addEventListener("touchstart",t,{passive:!0}),this.el.nativeElement.addEventListener("pointerstart",t,{passive:!0})):sn.on(this.el.nativeElement,"touchstart pointerstart",t),sn.on(this.el.nativeElement,"touchend touchcancel pointerend pointercancel",n),on&&ln().then(function(){e.el.nativeElement.classList.add("waves-effect")},function(){}),this.specialEventsDestroy(function(){sn.off(e.el.nativeElement,"touchend touchcancel pointerend pointercancel",n),Xt?(e.el.nativeElement.removeEventListener("touchstart",t),e.el.nativeElement.removeEventListener("pointerstart",t)):sn.off(e.el.nativeElement,"touchstart pointerstart",t),on&&ln().then(function(){e.el.nativeElement.classList.remove("waves-effect")},function(){})})},e.prototype.sliderSetup=function(){var e=this;this.the_slider=this.el.nativeElement.querySelector("input");var t=this.el.nativeElement.querySelector("i"),n=function(){var n,i;t.style.width=100*(n=parseInt(e.the_slider.min,10),i=parseInt(e.the_slider.max,10)-n,~~(parseInt(e.the_slider.clientWidth,10)*(parseInt(e.the_slider.value,10)-n)/i))/e.the_slider.clientWidth+"%"};n(),sn.on(this.the_slider,"input",n);var i=function(e){e.stopPropagation()};sn.on(this.el.nativeElement,"touchmove mousemove pointermove",i),this.specialEventsDestroy(function(){e.the_slider&&e.el&&e.el.nativeElement&&(sn.off(e.the_slider,"input",n),sn.off(e.el.nativeElement,"touchmove mousemove pointermove",i))})},e.prototype._genericHammerEl=function(){var e=this;this.hmEl&&this.hmEl.destroy(),this._zone.runOutsideAngular(function(){e.hmEl=an(new sn.Manager(e.el.nativeElement,{recognizers:[[sn.Tap,{threshold:10,time:400,interval:450}],[sn.Pinch,{enable:!1}],[sn.Rotate,{enable:!1}],[sn.Press,{enable:!1}],[sn.Pan,{enable:!1}],[sn.Swipe,{enable:!1}]]}))})},e.prototype.ngAfterViewInit=function(){var t=this;if(!Pt()&&!Tt()){e.hmDoc||(e.hmDoc=Jt||an(new sn.Manager(document.getElementsByTagName("body")[0])));var n,i,r=this.onTap.observers.length>0;if(r)this._genericHammerEl(),(o=this.onTapOutside.observers.length>0)?"force"==this.zingNoTouch&&this._zone.runOutsideAngular(function(){t.addTouchFeed()}):this._zone.runOutsideAngular(function(){t.hmEl.on("tap",function(e){var n=function(){t._zone.run(function(){t.onTap.emit(e)})};t.zingTapDelay?setTimeout(n,t.zingTapDelay):n()}),t.zingNoTouch||t.addTouchFeed()}),o&&(n=function(n){t._zone.run(function(){t.onTap.emit(n)}),n.stopPropagation(),e.hmDoc.off("tap",i),setTimeout(function(){e.hmDoc.on("tap",i)})},i=function(n){setTimeout(function(){t._zone.run(function(){t.onTapOutside.emit(n)})}),e.hmDoc.off("tap",i)},t._zone.runOutsideAngular(function(){t.hmEl.on("tap",n),setTimeout(function(){e.hmDoc.on("tap",i)})}),t.specialEventsDestroy(function(){t.hmEl&&t.hmEl.off("tap",n),e.hmDoc.off("tap",i)}));if(this.onTapHover.observers.length>0){var o,a=!1;this._genericHammerEl(),(o=this.onTapHoverOutside.observers.length>0)||this._zone.runOutsideAngular(function(){t.hmEl.on("tap",function(e){a=!0,t._zone.run(function(){t.onTapHover.emit(e)})})});var s=function(e){a?a=!1:t._zone.run(function(){t.onTapHover.emit(e)})};if(this._zone.runOutsideAngular(function(){sn.on(t.el.nativeElement,"mouseenter",s)}),o){var l=!1;!function(){var n=function(n){a=!0,t._zone.run(function(){t.onTapHover.emit(n)}),n.stopPropagation(),e.hmDoc.off("tap",i),setTimeout(function(){e.hmDoc.on("tap",i)})},i=function(n){l=!0,t._zone.run(function(){t.onTapHoverOutside.emit(n)}),e.hmDoc.off("tap",i)},r=function(n){l?l=!1:(t.onTapHoverOutside.emit(n),e.hmDoc.off("tap",i))};t._zone.runOutsideAngular(function(){sn.on(t.el.nativeElement,"mouseleave",r),t.hmEl.on("tap",n)}),t.specialEventsDestroy(function(){t.hmEl&&t.hmEl.off("tap",n),e.hmDoc.off("tap",i),t.el&&t.el.nativeElement&&(sn.off(t.el.nativeElement,"mouseleave",r),sn.off(t.el.nativeElement,"mouseenter",s))})}()}}if(this.onTapDoc.observers.length>0&&this.onTapHoverOutside.observers.length<1&&this.onTapOutside.observers.length<1&&(r||this._genericHammerEl(),this._zone.runOutsideAngular(function(){var n=function(e){e.stopPropagation()};t.hmEl.on("tap",n);var i=function(e){setTimeout(function(){t._zone.run(function(){t.onTapDoc.emit(e)})})};e.hmDoc.on("tap",i),t.specialEventsDestroy(function(){t.hmEl&&t.hmEl.off("tap",n),e.hmDoc.off("tap",i)})})),this.onClick.observers.length>0){var c=function(e){t.onClick.emit(e)};sn.on(this.el.nativeElement,"click",c),this.specialEventsDestroy(function(){sn.off(t.el.nativeElement,"click",c)})}if(this.zingToggle){this.hmEl?this.hmEl.off("tap"):this._genericHammerEl(),this._zone.runOutsideAngular(function(){t.hmEl.on("tap",function(e){e.pointerType.indexOf("touch")>-1&&setTimeout(function(){t._zone.run(function(){t.el.nativeElement.click()})})})});var u=function(e){try{e.preventDefault()}catch(e){}};this._zone.runOutsideAngular(function(){sn.on(t.el.nativeElement,"touchend pointerup touchcancel pointercancel",u)}),this.specialEventsDestroy(function(){t.el&&sn.off(t.el.nativeElement,"touchend pointerup touchcancel pointercancel",u)})}this.zingFocus&&(this.hmEl&&this.hmEl.destroy(),this.hmEl=new sn(this.el.nativeElement,{domEvents:!1}),this._zone.runOutsideAngular(function(){t.hmEl.on("tap",function(e){e.preventDefault(),t.el.nativeElement.focus()})})),this.zingSlider&&this.sliderSetup(),this.onSwipeLeft.observers.length>0&&(this.hmEl&&this.hmEl.destroy(),this.hmEl=new sn.Manager(this.el.nativeElement,{recognizers:[[sn.Swipe,{velocity:.15,threshold:8,direction:sn.DIRECTION_LEFT}],[sn.Pinch,{enable:!1}],[sn.Rotate,{enable:!1}],[sn.Press,{enable:!1}],[sn.Pan,{enable:!1}],[sn.Tap,{enable:!1}]]}),this._zone.runOutsideAngular(function(){t.hmEl.on("swipeleft",function(e){t._zone.run(function(){t.onSwipeLeft.emit(e)})})})),this.zingAllow&&this.el.nativeElement&&(this.el.nativeElement.style.touchAction=this.zingAllow),(this.zingUrl||this.zingUrlContainer)&&(this._eventsDestroyCallbacksTrigger(),this.hmEl?this.hmEl.off("tap"):this._genericHammerEl(),this._zone.runOutsideAngular(function(){var e=function(e){var n=t.el.nativeElement;if(t.zingUrlContainer){n=null;var i=e.target;if("a"==i.tagName.toLowerCase())n=i;else for(var r=i.parentNode;r&&"body"!=i.tagName.toLowerCase()&&r!=t.el.nativeElement;){if(r&&r.tagName&&"a"==r.tagName.toLowerCase()){n=r;break}r&&(r=r.parentNode)}}else t.zingUrlFeedback&&t._zone.runOutsideAngular(function(){t.addTouchFeed()});if(!n)return!0;var o=n.getAttribute("href"),a=n.getAttribute("target");t.zingUrlContainerTarget&&!a&&(a=t.zingUrlContainerTarget),xt?a="_parent":kt()&&(a="_blank"),t.onTapUrl.emit(o),window.open(o,a||"_parent")},n=function(e){e.preventDefault()};t.hmEl.on("tap",e),sn.on(t.el.nativeElement,"click",n),t.specialEventsDestroy(function(){t.hmEl&&(t.hmEl.off("tap",e),sn.off(t.el.nativeElement,"click",n))})}))}},e.prototype.ngOnDestroy=function(){Pt()||Tt()||this.hmEl&&(this.hmEl.destroy(),this.the_slider&&(this.the_slider=!1),this._eventsDestroyCallbacksTrigger(),this.hmEl=!1)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","zing-touch",""]],inputs:{zingToggle:"zingToggle",zingFocus:"zingFocus",zingSlider:"zingSlider",zingUrl:["zing-url","zingUrl"],zingUrlContainer:["zing-url-container","zingUrlContainer"],zingUrlContainerTarget:["zing-url-container-target","zingUrlContainerTarget"],zingUrlFeedback:["zing-url-feedback","zingUrlFeedback"],zingNoTouch:["zing-no-touch","zingNoTouch"],zingAllow:["zing-allow-action","zingAllow"],zingTapDelay:["zing-tap-delay","zingTapDelay"]},outputs:{onTap:"onTap",onTapHover:"onTapHover",onTapOutside:"onTapOutside",onTapHoverOutside:"onTapHoverOutside",onTapDoc:"onTapDoc",onSwipeLeft:"onSwipeLeft",onTapUrl:"onTapUrl",onClick:"onClick"}}),e}(),dn=function(){function e(){}return Object.defineProperty(e,"TouchGestures",{get:function(){return hn},enumerable:!1,configurable:!0}),e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({}),e}(),mn=["pageScrollEl"],pn=e("npm:zenscroll/zenscroll.js");var fn={_isScrollable:new o.BehaviorSubject(!0),_scrollTo:new o.Subject,_onScroll:new o.ReplaySubject(1),_zenScrollRegionResolve:null,_zenScrollRegionReject:null,_zenScrollRegionGet:null};fn._zenScrollRegionGet=new Promise(function(e,t){fn._zenScrollRegionResolve=e,fn._zenScrollRegionReject=t});var gn=function(){function e(){this.onScroll=fn._onScroll}return e.prototype.scrollTo=function(e){var t={timing:300,offset:0};return Object.assign(t,e),new Promise(function(e){t.onDone=e,fn._scrollTo.next(t)})},e.prototype.canScroll=function(e){fn._isScrollable.next(e)},e.prototype.UseBodyScroll=function(){this._use_body=!0},Object.defineProperty(e.prototype,"element",{get:function(){return cn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overwrite_to_body",{get:function(){return this._use_body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollable",{get:function(){return fn._isScrollable.getValue()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){fn._isScrollable.complete(),fn._onScroll.complete(),fn._scrollTo.complete()},e.ɵfac=function(t){return new(t||e)},e.ɵprov=o.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e}(),vn=function(){function e(e,t,n,i){this.el=e,this._zone=t,this._render=n,this._service=i,this.useZen=!1,this.use_body=!1,this.main_header_offset="",this._selfoffset=!1,this._subscriptions=[],this._onScroll=this._onScroll.bind(this),this._service.overwrite_to_body&&(this.use_body=!0)}return Object.defineProperty(e.prototype,"noScroll",{get:function(){return this._noscroll},set:function(e){this._noscroll=e,this._service.element&&(e?(this._render.addClass(this._service.element,"no-scroll"),this.use_body||this._render.setStyle(this._service.element,"overflow","hidden")):(this._render.removeClass(this._service.element,"no-scroll"),this.use_body||this._render.setStyle(this._service.element,"overflow","")))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfoffset",{set:function(e){this._selfoffset=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sefoffset",{get:function(){return this._selfoffset},enumerable:!1,configurable:!0}),e.prototype._bodyFallbackTarget=function(e,t){void 0===t&&(t=0);var n=e.getBoundingClientRect().top,i=cn.scrollTop,r=0;r=n>=t?n-t:-1*(t-n),cn.scrollTop=i+r},e.prototype._bodyFallbackPosition=function(e){cn.scrollTop=e},e.prototype._onScroll=function(e){var t=this;this._zone.run(function(){var e=cn.scrollTop,n=t.use_body?1/0:cn.scrollHeight-cn.clientHeight;e<0?e=0:e>n&&(e=n),fn._onScroll.next(e)})},e.prototype.ngOnInit=function(){var e=this;if(Pt())this._render.removeAttribute(this.el.nativeElement,"scroll-region");else{cn=this.el.nativeElement,this.use_body&&this._service.UseBodyScroll();var t=0;this._subscriptions.push(fn._isScrollable.subscribe(function(n){n?t--:t++,t<0&&(t=0),e._zone.run(function(){e.noScroll=!(0===t)})})),this.use_body?(cn=document.scrollingElement||document.documentElement,"scrollRestoration"in history&&(history.scrollRestoration="manual")):document.querySelector("html").removeAttribute("scroll-region"),(this.use_body?document.querySelector("html"):cn).setAttribute("scroll-region","active"),this._subscriptions.push(fn._scrollTo.subscribe(function(t){!t.nozen&&un?fn._zenScrollRegionGet.then(function(n){var i,r=cn.getBoundingClientRect(),o=function(t){e._sticky_header&&(un.getY()-t>25&&(t-=e._sticky_header.offsetHeight));return t},a=function(){Rt(t.onDone)&&t.onDone()};if(i=e._selfoffset?r.top:0,n.setup(null,i),t.target){for(var s=t.target.offsetTop,l=t.target.offsetParent;l&&l!=cn;)s+=l.offsetTop,l=l.offsetParent;if(t.inview){var c=t.target.offsetHeight,u=window.innerHeight,h=c+s-u,d=cn.scrollTop;if(h>d){var m=h+10;t.timing=300*Math.min(100,m-100*d/500)/100,s=m}else if(s<=d+u)return}s=o(s),s+=t.offset||0,un.toY(s,t.timing,a)}else t.position+=t.offset||0,t.position=o(t.position),un.toY(t.position,t.timing,a)}):(t.target?e._bodyFallbackTarget(t.target,t.offset||0):e._bodyFallbackPosition(t.position),Rt(t.onDone)&&t.onDone())}))}if(fn._zenScrollRegionGet.catch(function(){}),this.useZen&&!Pt()){this._zone.runOutsideAngular(function(){un=pn.createScroller(cn,300,0),fn._zenScrollRegionResolve(pn)});var n=!!tn()&&{passive:!0};(this.use_body?window:cn).addEventListener("scroll",this._onScroll,n),this._onScroll(cn.scrollTop)}else fn._zenScrollRegionReject()},e.prototype.ngOnDestroy=function(){var e=this;try{(this.use_body?window:cn).removeEventListener("scroll",this._onScroll)}catch(e){}Pt()||((this.use_body?document.querySelector("html"):cn).removeAttribute("scroll-region"),this._zone.run(function(){e.noScroll=!1})),cn=null,un=null,this._subscriptions.forEach(function(e){try{e.unsubscribe()}catch(e){}}),cn=null,un=null,this._subscriptions.forEach(function(e){try{e.unsubscribe()}catch(e){}})},e.prototype.ngAfterViewInit=function(){if(this.main_header_offset&&!Pt())try{this._sticky_header=document.querySelector(this.main_header_offset)}catch(e){}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(o.Renderer2),o.ɵɵdirectiveInject(gn))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","scroll-region",""]],inputs:{useZen:["usezen","useZen"],use_body:["scroll-region-viewport","use_body"],main_header_offset:["scroll-region-viewport-sticky-header","main_header_offset"],selfoffset:["scroll-region-offset","selfoffset"]}}),e}(),yn=function(){function e(e,t,n){this._zone=t,this._service=n,this.useZen=!0,this.zenSpeed=350,this.offset=0,this.scrolled=new o.EventEmitter,this._to_me=!1,this._target=e.nativeElement}return e.prototype._scrollNotify=function(){var e=this;this._zone.run(function(){e.scrolled.emit(e._target.offsetTop-e.offset)})},Object.defineProperty(e.prototype,"scrollToMe",{get:function(){return this._to_me},set:function(e){Pt()||Tt()||this._to_me===e||!e||this._scrollExecute(),this._to_me=e},enumerable:!1,configurable:!0}),e.prototype._scrollExecute=function(){var e=this;this._zone.runOutsideAngular(function(){e._scrollArea?e._target.scrollIntoView(!0):e._service.scrollTo({target:e._target,timing:e.zenSpeed,nozen:!e.useZen,offset:e.offset}).then(function(){e._scrollNotify()})})},e.prototype.ngAfterViewInit=function(){!Pt()&&Ft(this._scrollParent)&&(this._scrollArea=document.querySelector(this._scrollParent),this._scrollArea&&(this._scrollArea.style.scrollBehavior="smooth"))},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(gn))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","scroll-to",""]],inputs:{useZen:["usezen","useZen"],zenSpeed:["zenspeed","zenSpeed"],offset:["scrolloffset","offset"],_scrollParent:["scroll-parent","_scrollParent"],scrollToMe:["scroll-to","scrollToMe"]},outputs:{scrolled:"scrolled"}}),e}(),bn=(function(){function e(e){this._el=e}e.prototype._lockScroll=function(e){e.preventDefault()},e.prototype.ngOnInit=function(){Pt()||(this._el.nativeElement.addEventListener("touchstart",this._lockScroll),this._el.nativeElement.addEventListener("touchmove",this._lockScroll))},e.prototype.ngOnDestroy=function(){if(!Pt()&&this._el&&this._el.nativeElement){var e=this._el.nativeElement;e.removeEventListener("touchstart",this._lockScroll),e.removeEventListener("touchmove",this._lockScroll)}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","prevent-body-scroll",""]]})}(),function(){function e(e){this._service=e,this.offset=0,this.btthr=50,this.disabled=!1,this._watchers=[],this.onView=new o.EventEmitter}e.prototype.ngOnInit=function(){var e=this;if(!Pt()&&!Tt()){var t=0,n={idx:null,pos:null};this._watchers.push(this._service.onScroll.subscribe(function(i){e.disabled||en(function(){var r=window.innerHeight;e.pages.forEach(function(o,a){var s=o.nativeElement.getBoundingClientRect(),l=s.top+(e.offset||0),c=s.bottom+(e.offset||0)-(e.btthr||0);if(i>=t)n=null,l<=0&&c>0&&e.onView.emit(a);else if(c>0&&c<=r){if(null==n)n={idx:a,pos:l};else{if(a!==n.idx&&l>=n.pos)return;n={idx:a,pos:l}}e.onView.emit(a)}else n&&n.idx==a&&(n={idx:a,pos:l})}),t=i})}))}},e.prototype.ngOnDestroy=function(){Pt()||Tt()||this._watchers.length>0&&this._watchers.forEach(function(e){e.unsubscribe()})},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(gn))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","page-scrolling-container",""]],contentQueries:function(e,t,n){if(1&e&&o.ɵɵcontentQuery(n,mn,5),2&e){var i;o.ɵɵqueryRefresh(i=o.ɵɵloadQuery())&&(t.pages=i)}},inputs:{offset:["scrolloffset","offset"],btthr:["bottom-threshold","btthr"],disabled:["pg-sc-container-disabled","disabled"]},outputs:{onView:"onView"}})}(),function(){function e(){}e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule]]})}(),e("npm:dompurify/dist/purify.js")),_n={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target"]};function Sn(e,t){void 0===t&&(t=_n);var n=Object.assign(Gt(_n),t);return Pt()?e:bn.sanitize(e,n)}var wn,En=function(){function e(e,t){this.el=e,this.renderer=t,this._hidden=!1,this.onHide=new o.EventEmitter}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){var t=this;this.el.nativeElement,e?this.renderer.setAttribute(this.el.nativeElement,"hidden","true"):this.renderer.removeAttribute(this.el.nativeElement,"hidden"),this._hidden=e,Pt()||en(function(){t.onHide.emit(e)})},enumerable:!1,configurable:!0}),e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-hidden",""]],inputs:{hidden:["ng-hidden","hidden"]},outputs:{onHide:"onHide"}}),e}(),kn=function(){function e(e,t){this._el=e,this._renderer=t,this._ready=!1}return Object.defineProperty(e.prototype,"cond",{get:function(){return this._cond},set:function(e){this._cond=e,this._ready&&this._SetAttr()},enumerable:!1,configurable:!0}),e.prototype._SetAttr=function(){var e=this;Mt(this.attributes)?this._cond?this.attributes.forEach(function(t){e._renderer.setAttribute(e._el.nativeElement,t.attribute,t.value)}):this.attributes.forEach(function(t){e._renderer.removeAttribute(e._el.nativeElement,t.attribute)}):Bt(this.attributes)&&Ut(this.attributes,function(t,n){e._cond?e._renderer.setAttribute(e._el.nativeElement,n,t):e._renderer.removeAttribute(e._el.nativeElement,n)})},e.prototype.ngOnInit=function(){this._SetAttr(),this._ready=!0},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-attribute",""]],inputs:{attributes:["ng-attribute","attributes"],cond:["ng-attribute-when","cond"]}}),e}(),xn=(function(){function e(){}e.prototype.transform=function(e,t,n,i){void 0===t&&(t=""),void 0===n&&(n=0),void 0===i&&(i=!1);var r=Vt(e);return Lt(r)?Dt(r,n,t):i?"N/A":""},e.ɵfac=function(t){return new(t||e)},e.ɵpipe=o.ɵɵdefinePipe({name:"moneyformat",type:e,pure:!0})}(),function(){function e(){}e.prototype.transform=function(e){return((t=e)?At(t.toString()):"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");var t},e.ɵfac=function(t){return new(t||e)},e.ɵpipe=o.ɵɵdefinePipe({name:"phoneformat",type:e,pure:!0})}(),function(){function e(e,t){this._el=e,this._renderer=t,this.settings=_n,this._initiated=!1}return e.prototype._bindHTML=function(e){this._html=Sn(e,this.settings),this._renderer.setProperty(this._el.nativeElement,"innerHTML",this._html)},Object.defineProperty(e.prototype,"cleanHTML",{get:function(){return this._html},set:function(e){this._initiated?this._bindHTML(e):this._html=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._html&&this._bindHTML(this._html),this._initiated=!0},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","cleanHTML",""]],inputs:{settings:["cleanHTML-sett","settings"],cleanHTML:"cleanHTML"}}),e}()),Pn=function(){function e(e,t,n){this._sanitizer=e,this._el=t,this._renderer=n}return Object.defineProperty(e.prototype,"ngcontext",{set:function(e){if(Pt())this._renderer.setProperty(this._el.nativeElement,"innerHTML",Sn(e));else{var t=this._sanitizer.sanitize(o.SecurityContext.HTML,(e||"").toString());this._el.nativeElement.innerHTML=t,this._el.nativeElement.innerHTML=this._el.nativeElement.textContent}},enumerable:!1,configurable:!0}),e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.DomSanitizer),o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-context",""]],inputs:{ngcontext:["ng-context","ngcontext"]}}),e}(),On=(function(){function e(e,t){this._el=e,this._renderer=t}Object.defineProperty(e.prototype,"ng_svg",{get:function(){return this._svg_attrs},set:function(e){var t=this;if(this._svg_attrs=e,this._el&&this._el.nativeElement){var n=this._el.nativeElement;Ut(e,function(e,i){e?t._renderer.setAttribute(n,i,e):t._renderer.removeAttribute(n,i)})}},enumerable:!1,configurable:!0}),e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-svg-attr",""]],inputs:{ng_svg:["ng-svg-attr","ng_svg"]}})}(),function(){function e(){}e.prototype.transform=function(e,t,n){return void 0===t&&(t=1),void 0===n&&(n=!1),function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);var i=!1,r="";return e<0&&(i=!0),r=(e=Math.abs(e))>=1e9?n?(Math.floor(e/1e8)/10).toString().replace(/\.0$/,"")+"g":(e/1e9).toFixed(t).replace(/\.0$/,"")+"g":e>=1e6?n?(Math.floor(e/1e5)/10).toString().replace(/\.0$/,"")+"m":(e/1e6).toFixed(t).replace(/\.0$/,"")+"m":e>=1e3?n?(Math.floor(e/100)/10).toString().replace(/\.0$/,"")+"k":(e/1e3).toFixed(t).replace(/\.0$/,"")+"k":e.toString(),i&&(r="-"+r),r}(e,t,n)},e.ɵfac=function(t){return new(t||e)},e.ɵpipe=o.ɵɵdefinePipe({name:"formatnr",type:e,pure:!0})}(),function(){function e(e,t){this.el=e,this.renderer=t,this._hidden=!1,this.onHide=new o.EventEmitter,this.tabindex="0"}return Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){var t=this,n=this.el.nativeElement;e?(this.renderer.setAttribute(n,"aria-hidden","true"),this.renderer.setAttribute(n,"tabindex","-1")):(this.renderer.removeAttribute(n,"aria-hidden"),this.notab?this.renderer.removeAttribute(n,"tabindex"):this.renderer.setAttribute(n,"tabindex",this.tabindex)),this._hidden=e,Pt()||en(function(){t.onHide.emit(e)})},enumerable:!1,configurable:!0}),e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-aria-hidden",""]],inputs:{tabindex:"tabindex",notab:["no-tab","notab"],hidden:["ng-aria-hidden","hidden"]},outputs:{onHide:"onHide"}}),e}()),Tn=function(){function e(e,t){this._el=e,this._renderer=t,this.type="self"}return e.prototype.ngAfterViewChecked=function(){if(!Pt()){var e=[],t=this._el.nativeElement;if(this.type){for(var n=0,i=t.childNodes.length;n<i;n++){var r=t.childNodes[n],o="";1==r.nodeType?o=r.hasAttribute("aria-label")?Nt(r.getAttribute("aria-label")):Nt(r.innerText):3==r.nodeType&&(o=Nt(r.wholeText)),o&&e.push(o)}this._renderer.setAttribute(this._el.nativeElement,"aria-label",e.join("self"==this.type?" ":". "))}}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-aria-label-self",""]],inputs:{type:["ng-aria-label-self","type"]}}),e}(),Cn=(function(){function e(e,t){this._el=e,this._renderer=t,this._speak="header",this.ngSpeakTabindex=0,this._ready=!1,Pt()||(this._isIOS=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream)}Object.defineProperty(e.prototype,"cond",{get:function(){return this._cond},set:function(e){this._cond=e,this._ready&&this._iFocus()},enumerable:!1,configurable:!0}),e.prototype._iFocus=function(){var e=this;if(!Pt()){var t=this._speak,n=0==t||"header"==t?0:t,i=Lt(n)?n:1,r=this._el.nativeElement,o=this.ngSpeakTabindex.toString();"header"==t?this._isIOS?(document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),r.blur(),this._renderer.setAttribute(r,"tabindex","1"),r.focus(),setTimeout(function(){r.focus(),e._renderer.setAttribute(r,"tabindex",o)},300)):(this._renderer.setAttribute(r,"tabindex",o),setTimeout(function(){r.focus()},300)):0==i||1==i?(this._isIOS&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),this._renderer.setAttribute(r,"tabindex",o),r.focus(),setTimeout(function(){r.focus()})):this._renderer.setAttribute(r,"tabindex",o)}},e.prototype.ngOnInit=function(){this._iFocus(),this._ready=!0},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-speak",""]],inputs:{_speak:["ng-speak","_speak"],ngSpeakTabindex:["ng-speak-tab-index","ngSpeakTabindex"],cond:["ng-speak-when","cond"]}})}(),function(){function e(e,t,n){this._el=e,this._zone=t,this._renderer=n,this._timer=null,this.is_android=!1,this.type="assertive"}return Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){var t=this;this._text=e,Pt()||Tt()||this._el&&this._el.nativeElement&&this._zone.runOutsideAngular(function(){clearTimeout(t._timer),t._timer=setTimeout(function(){t._renderer.setProperty(t._el.nativeElement,"innerHTML",t.text),t.is_android?t._renderer.setAttribute(t._el.nativeElement,"aria-label",t.text):(t._renderer.setAttribute(t._el.nativeElement,"tabindex","-1"),t._renderer.setStyle(t._el.nativeElement,"display","none"),t._renderer.setStyle(t._el.nativeElement,"display","inline"))})})},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){Pt()||(this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))},e.prototype.ngAfterViewInit=function(){this._renderer.setAttribute(this._el.nativeElement,"aria-live",this.type),this._renderer.setAttribute(this._el.nativeElement,"aria-atomic","true"),this._renderer.setAttribute(this._el.nativeElement,"role","status"),Pt()||this.is_android&&(this._renderer.setAttribute(this._el.nativeElement,"aria-hidden","true"),this._renderer.setAttribute(this._el.nativeElement,"tabindex","-1"))},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-aria-live",""]],hostVars:2,hostBindings:function(e,t){2&e&&o.ɵɵclassProp("a11y-visually-hidden",!0)},inputs:{type:["live-type","type"],text:["ng-aria-live","text"]}}),e}()),Nn=(function(){function e(e,t){this._el=e,this._render=t,this._txt=""}Object.defineProperty(e.prototype,"aria_text",{get:function(){return this._txt},set:function(e){this._txt=e,this._el&&this._el.nativeElement&&this._render.setAttribute(this._el.nativeElement,"aria-label",this._txt)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._render.setAttribute(this._el.nativeElement,"role","text")},e.prototype.ngAfterViewInit=function(){this._txt&&this._render.setAttribute(this._el.nativeElement,"aria-label",this._txt)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-aria-text",""]],inputs:{aria_text:["ng-aria-text","aria_text"]}})}(),function(){function e(e){this._injector=e}return e.forRoot=function(){return{ngModule:e,providers:[gn]}},e.ɵfac=function(t){return new(t||e)(o.ɵɵinject(o.Injector))},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,dn],dn]}),e}()),In={method:"POST",url:null,retry:0,needs_session:!1,expectedType:"json",data:{},query:{},headers:{"Content-Type":"application/json;charset=UTF-8"},events:!0,id:null,xsrf:!0,silent:!1},Fn={dev:"efdevhub.info",prod:"wallethub.com",web:"/",local:"wallethub.local",get internet_base(){return"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/6.0.0/sanitize.min.css"},get internet(){return Fn.internet_base+"?stamp="+Zt()},sentry:{dev:"https://eeb775119fdf4577a985f96e2f32e179@sentry.io/102345",prod:"https://0f1e5e9c3adc406e90a1e140f0702d09@sentry.io/102350"},updates:{dev:"https://cfdevcdn.s3.amazonaws.com/wallethub-ng2/updates.json?stamp="+Zt(),prod:"https://efstatic.s3.amazonaws.com/wallethub-ng2/updates.json?stamp="+Zt(),get backup(){return Ln()+"wp-content/uploads/app-ng2/updates.json?stamp="+Zt()}}},An=new RegExp("^(?:[a-z]+:)?//","i");function Ln(e){return e&&(wn=e,An.test(wn)||wn===Fn.web||(wn="https://"+wn)),wn}var Vn="home/rpc";function Dn(e){return e&&(Vn=e),Ln()+"/"+Vn}var Mn="ajax.php";function zn(e){return e&&(Mn=e),Ln()+"/"+Mn}var Rn,Bn,jn=new(function(){function e(){this.events={},this.replayevents={}}return e.prototype.eventGetorCreate=function(e){return this.events[e]||(this.replayevents[e]?this.events[e]=new o.ReplaySubject(1,Lt(this.replayevents[e])?this.replayevents[e]:999999999):this.events[e]=new o.Subject),this.events[e]},e.prototype.keepValueFor=function(e,t){this.replayevents[e]=t||!0},e.prototype.subscribe=function(e,t,n,i,r){void 0===r&&(r=[]);var o=this.eventGetorCreate(e),a=o.pipe.apply(o,r).subscribe({next:t,error:n,complete:function(){i&&i(),a&&a.unsubscribe()}});return a},e.prototype.emit=function(e,t,n){n&&!this.events[e]||this.eventGetorCreate(e).next(t)},e.prototype.terminate=function(e){this.events[e]&&(this.events[e].complete(),delete this.events[e],this.replayevents[e]&&delete this.replayevents[e])},e.prototype.clear=function(){Ut(this.events,function(e){e.complete()}),this.events={},this.replayevents={}},e}()),Un=o.ajax;function Wn(e){var t;e.progressSubscriber&&(t=e.progressSubscriber,delete e.progressSubscriber);var n=Ht(In,e,!0);t&&(n.progressSubscriber=t);var i,r,o,a=Un,s=new Promise(function(e,t){i=e,r=t}),l={crossDomain:!0,responseType:"text",method:n.method||"POST",url:n.url||Dn(),headers:n.headers,timeout:3e4,async:!0,withCredentials:!1};"blob"==n.expectedType&&(l.responseType="blob"),n.timeout&&(l.timeout=n.timeout);var c=n.query;if("POST"==n.method){l.body=n.data;var u=l.headers||{},h=u["Content-Type"]||u["content-type"];h&&h.indexOf("application/x-www-form-urlencoded")>-1&&(l.body=jt(n.data))}else c=Object.assign({},c,n.data);if(Object.keys(c).length>0){var d=jt(c);l.url+="?"+d}var m=function(e){var t=a(l).subscribe(function(e){if(setTimeout(function(){t&&t.unsubscribe()}),i){var o={};if("json"==n.expectedType)try{o=JSON.parse(e.response)}catch(t){o={error:!0,message:"malformated json",raw:e.response}}else o=e.response;var a={};try{a=e.xhr.getAllResponseHeaders().split("\r\n").reduce(function(e,t){var n=t.split(":");return e[n[0]]=n[1],e},{})}catch(e){}o&&"malformated json"==o.message&&"json"==n.expectedType?r({status:200,type:o.message,data:o.raw,headers:a}):i({data:o,status:e.status,headers:a})}},function(i){if(setTimeout(function(){t&&t.unsubscribe()}),r){var o,a=i.xhr&&i.xhr.response||"",s={};try{s=i.xhr.getAllResponseHeaders().split("\r\n").reduce(function(e,t){var n=t.split(":");return e[n[0]]=n[1],e},{})}catch(e){}if(403==i.status){r({status:i.status,type:i.type,data:a,headers:s})}else if(i.status&&i.status>=500&&i.status<512)e?r({status:i.status,type:i.type,data:"internal error",headers:s}):m(!0);else{if(!r)return;e||i.status>399&&i.status<512?r({status:i.status,type:i.type,data:a,headers:s}):(o=Un,new Promise(function(e,t){var n=o({crossDomain:!0,method:"GET",url:Fn.internet,timeout:15e3,responseType:"text",async:!0,withCredentials:!1,headers:{}}).subscribe({next:function(){e(null),n&&n.unsubscribe()},error:function(e){console.log(e),t(),n&&n.unsubscribe()}})})).then(function(){r&&(e?r({status:i.status,type:i.type,data:a,headers:s}):m(!0))},function(){r&&(n.events&&jn.emit("$device:no-internet"),r({status:n.events?-1:-10,type:i.type,data:a,headers:s}))})}}});o=function(){r=null,i=null,s=null,t&&(t.unsubscribe(),t=null),Bn===o&&(Bn=null)},Bn=o};return m(),s.then(function(){Bn===o&&(Bn=null)},function(){Bn===o&&(Bn=null)}),s}function Hn(){return Bn}function Gn(e){return new Promise(function(t,n){Un({crossDomain:!0,responseType:"json",method:"GET",url:e}).subscribe({next:function(e){t(Bt(e.response)?e.response:null)},error:function(e){t({status:e.status,type:e.type,data:e.xhr&&e.xhr.response||""})}})})}jn.subscribe("$server:captcha-block",function(e){if(Rn)return!1;Rn=!0});var qn,Kn,$n,Zn,Qn=new(function(){function e(){this._memstorage={},this.enabled||this.useMemory(!0)}return Object.defineProperty(e.prototype,"_storage",{get:function(){return document.cookie},set:function(e){document.cookie=e},enumerable:!1,configurable:!0}),e.prototype.useMemory=function(e){this._usememstorage=e,e||(this._memstorage={})},e.prototype.clearMemory=function(){this._memstorage={}},e.prototype.get=function(e){if(this._usememstorage||document.cookie){if(this._usememstorage)return this._memstorage[e];for(var t=this._storage.split(";"),n=e+"=",i=0;i<t.length;i++){for(var r=t[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(n))return decodeURIComponent(r.substring(n.length,r.length))}}},e.prototype.asyncget=function(e){return kt()?Promise.resolve(null):Promise.resolve(this.get(e))},e.prototype.set=function(e,t,n){if(kt()&&console.warn("Cannot set cookies in a cordova app, memory will be used instead"),this._usememstorage&&-1==n)delete this._memstorage[e];else if(this._usememstorage){var i=void 0;if(Bt(t)||Mt(t))try{i=JSON.stringify(t)}catch(e){}else i=Rt(t)?"":t;this._memstorage[e]=i}else{var r=new Date,o=void 0;0===n?o='expires=""':(n||(n=0),r.setTime(r.getTime()+24*n*60*60*1e3),o="expires="+r.toUTCString()),this._storage=e+"="+t+"; "+(this._usememstorage?"":o+"; path=/; secure; domain=."+window.location.hostname||window.location.host)}},Object.defineProperty(e.prototype,"enabled",{get:function(){return!Pt()&&!1!==navigator.cookieEnabled&&(document.cookie="testcookie=1",-1!=document.cookie.indexOf("testcookie"))},enumerable:!1,configurable:!0}),e.prototype.remove=function(e){this.set(e,"",-1)},e}()),Yn={};function Jn(e){var t=e;t.xsrf="xsrf"in t?t.xsrf:In.xsrf,t.method="method"in t?t.method:In.method,t.headers="headers"in t?t.headers:In.headers,t.data=t.data||{},t.events="events"in t?t.events:In.events,t.silent&&(t.events=!1);var n=t.id||Zt(),i=t.retry||0;return null!==n&&Yn[n]&&(Yn[n](),delete Yn[n],n==qn&&(qn=null)),new Promise(function(e,r){var o=!1,a=!0;if(Rt(t.before)&&Kt(a=t.before())&&(a=!0),!a)return null;var s=function(){Rt(t.after)&&t.after()},l=function(t){e(t),s()},c=function(e){r(e),s()},u=function(){var e,i,r;(e=n,i=t,r=o,!i||"GET"!=i.method&&i.xsrf?Qn.asyncget("XSRF-TOKEN").then(function(t){return r||!t?new Promise(function(t,n){(function(e,t){return Kn||($n=!0,Kn=new Promise(function(n,i){var r=function(o){Wn({url:Ln()+"/sid.php",data:{a:"1",buster:Zt()},method:"GET",events:!t||void 0===t.events||t.events}).then(function(t){if($n=!1,!e||Yn[e]){var a=t.data;if(!a.error&&a&&Bt(a))if(a.__whid){var s=a.__whid;jn.emit("$server:whid",s),n(s)}else o?i({status:-1,type:"whiderror",data:a}):r(!0);else o?i({status:-1,type:"whiderror",data:a}):r(!0)}else Kn=!1},function(t){Kn=!1,$n=!1,e&&!Yn[e]||(qt(t.status,[-1,-10,999])?i(t):i({status:-1,type:"whiderror",data:t}))})};r(),e&&(Yn[e]=Hn())})),Kn})(e,i).then(function(r){var o=function(a){Wn({data:{action:"get-csrf-token",buster:Zt()},headers:{"X-XSRF-WHID":r,"Content-Type":"text/html; charset=utf-8"},method:"GET",expectedType:"text",events:!i||void 0===i.events||i.events}).then(function(i){if(!e||Yn[e]){var s=i.data;Ft(s)?t({token:s,whid:r}):a?n({status:400,type:"csrferror",data:s}):o(!0)}},function(t){e&&!Yn[e]||(qt(t.status,[-1,-10,999])?n(t):n({status:400,type:"csrferror",data:t}))})};o(),e&&(Yn[e]=Hn())},function(e){n(e)}),e&&(Yn[e]=Hn())}):Promise.resolve({token:t})}):new Promise(function(e){e({})})).then(function(e){e.token&&(t.headers["X-XSRF-TOKEN"]=e.token),e.whid&&(t.headers["X-XSRF-WHID"]=e.whid),Wn(t).then(function(e){if(Yn[n]){var i={data:null,headers:e.headers||{}};e.data&&e.data.maintainance?(t.events&&jn.emit("$server:maintainance"),t.silent?l({error:!0}):(i.data={status:-1,type:"maintainance",data:null},c(t.readheaders?i:i.data))):e.data&&e.data.apiblocked?(t.events&&jn.emit("$api:banned"),t.silent?l({error:!0}):(i.data={status:-1,type:"banned",data:null},c(t.readheaders?i:i.data))):(i.data=e.data,l(t.readheaders?i:i.data)),delete Yn[n],n==qn&&(qn=null)}},h),Yn[n]=Hn()},function(e){Yn[n]&&h(e)}),"POST"===t.method&&t.xsrf||(Yn[n]=Hn()),qn=n},h=function(e){if(Yn[n]){if(-999==e.status||-10==e.status)return e.status=-10,t.silent?l({error:!0}):c(e),delete Yn[n],n==qn&&(qn=null),!1;var r={status:e.status,options:t};if(403==e.status&&"captcha block"!==e.type&&t.events)jn.emit("$server:banned"),e.type="banned",e.status=-1;else{if(400!==e.status&&i>0)return i--,u(),!1;if(e.status&&(e.status>=404&&e.status<409||e.status>=500&&e.status<512)&&t.events)jn.emit("$server:error",r),e.type="failed request",e.status=-1;else{if(400==e.status&&t.xsrf&&!o)return o=!0,u(),!1;!t.silent&&t.events&&("csrferror"==e.type?(jn.emit("$server:csrferror",r),e.status=-1,e.type="failed request"):"whiderror"==e.type&&(jn.emit("$server:whiderror",r),e.status=-1,e.type="failed request"))}}t.silent||c(e),delete Yn[n],n==qn&&(qn=null),t.silent&&l({error:!0})}};u()})}function Xn(e){void 0!==e?Yn[e]&&(Yn[e](),delete Yn[e],qn==e&&(qn=null),$n&&ei()):qn&&Yn[qn]&&(Yn[qn](),delete Yn[qn],qn=null,$n&&ei())}function ei(){Kn=!1,$n=!1}function ti(){return document.querySelector("web-app #web-app")||document.querySelector("#web-app")}wt()?Ln(window.location.host):Ct()?Ln(Fn.dev):Ln(Fn.prod);var ni=new(function(){function e(){var e,t=this;this._storage=null,this._types=[".json",".string",".number",".boolean"],this._group="";try{this._storage=!Pt()&&"localStorage"in window?window.localStorage:null,e=!0}catch(e){this.useMemory(!0)}if(!Pt()){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch(e){this.useCookieStorage()}if(e&&this._storage==window.localStorage){var n,i=this._storage.getItem("_expirations.json")||null,r=new Date;if(i)try{Ut(n=JSON.parse(i),function(e,i){if(!e)return!0;for(var o,a=0;a<t._types.length;a++){if(t._storage.getItem(i+t._types[a])){o=!1,r.getTime()-e.since>=e.in&&(t._storage.removeItem(i+t._types[a]),delete n[i]);break}o=!0}o&&delete n[i]});this._storage.setItem("_expirations.json",JSON.stringify(n))}catch(e){}}}}return e.prototype.useCookieStorage=function(){var e=this;Qn&&Qn.enabled?(this._storage={setItem:function(e,t,n){Qn.set(e,t,n)},removeItem:function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},getItem:function(e){return Qn.get(e)}},this.isExpired=function(){return console.warn("not available for cookies"),0},this.removeGroup=function(t){zt(function(){for(var e=document.cookie.split(";"),t=[],n=1,i=e.length;n<=i;n++)t[n-1]=Nt(e[n-1]);return t}(),function(n,i){0==n.indexOf(t+"_")&&e._storage.removeItem(n.split("=")[0])})}):this.useMemory(!0)},e.prototype.useSession=function(e){e&&(this._storage=window.sessionStorage)},e.prototype.useMemory=function(e){var t=this;if(e&&!Zn){Zn=this._storage;var n={_data:{},setItem:function(e,n){return t._storage._data[e]=String(n)},getItem:function(e){return t._storage._data[e]},removeItem:function(e){return delete t._storage._data[e]},clear:function(){return t._storage._data={}}};this._storage=n}else this._storage=Zn,Zn=!1},e.prototype.clearMemory=function(){this._storage&&this._storage.clear&&this._storage.clear()},e.prototype.get=function(e){var t,n,i=e;e=this._group+e;for(var r=0;r<this._types.length;r++){var o=this._types[r];if(this._storage.getItem(e+o)){if(this.isExpired(i))return void this._storage.removeItem(e+o);switch(o){case this._types[0]:case this._types[3]:t=JSON.parse(this._storage.getItem(e+o)),n=!0;break;case this._types[1]:t=this._storage.getItem(e+o),n=!0;break;case this._types[2]:t=parseFloat(this._storage.getItem(e+o)),n=!0}break}}return!n&&Ft(this._storage.getItem(e))&&(t=this._storage.getItem(e)),t="undefined"==t||null==t?void 0:"true"==t||"false"!=t&&t},e.prototype.set=function(e,t,n){var i=e,r="";if("expirations"==e)return!1;e=this._group+e,Bt(t)?(t=JSON.stringify(t),r=this._types[0]):Lt(t)?(t=t.toString(),r=this._types[2]):"boolean"==typeof t?(t=t.toString(),r=this._types[3]):r=this._types[1];for(var o=0,a=this._types.length;o<a;o++)if(this._storage.getItem(e+this._types[o])){this._storage.removeItem(e+this._types[o]);break}try{this._storage.setItem(e+r,t)}catch(e){console.warn(e)}n&&this.expire(i,n)},e.prototype.remove=function(e){e=this._group+e;for(var t=0,n=this._types.length;t<n;t++)this._storage.getItem(e+this._types[t])&&this._storage.removeItem(e+this._types[t])},e.prototype.expire=function(e,t){var n,i=this._storage.getItem("_expirations.json")||null;try{(n=JSON.parse(i))||(n={})}catch(e){n={}}n[this._group+e]={in:t,since:(new Date).getTime()},this._storage.setItem("_expirations.json",JSON.stringify(n))},e.prototype.getExpiration=function(e){var t=this._storage.getItem("_expirations.json")||!1;if(!t)return null;try{if(!(t=JSON.parse(t)))return null}catch(e){return null}return t[this._group+e]||null},e.prototype.isExpired=function(e,t){var n=this.getExpiration(e);if(null===n)return 0;var i=(new Date).getTime()-n.since;return i>=n.in?1:t?n.in-i:0},e.prototype.group=function(e){if(null==e)return this._group;!1===e&&(this._group=""),this._group=e+"_"},e.prototype.removeGroup=function(e){var t=this;zt(Object.keys(this._storage)||[],function(n){0===n.indexOf(e)&&t._storage.removeItem(n)})},e}());function ii(e){if(Pt())return e;var t=document.createTextNode(e.toString()),n=document.createElement("p");return n.appendChild(t),n=n.innerHTML}var ri=new(function(){function e(){this.store={},this.groups={}}return e.prototype.getKey=function(e){return this.store[e]},e.prototype.setKey=function(e,t){this.store[e]=t},e.prototype.group=function(e,t,n){if(t&&!Bt(t)&&!Mt(t))throw new TypeError("Data provided is not a plain object or array");return t&&(this.groups[e]=n?JSON.parse(JSON.stringify(t)):t),this.groups[e]||(this.groups[e]={}),this.groups[e]},e.prototype.hasGroup=function(e){return this.groups.hasOwnProperty(e)},e.prototype.clearKey=function(e){this.store.hasOwnProperty(e)&&delete this.store[e]},e.prototype.clearGroup=function(e){"all"==e?this.groups={}:this.groups.hasOwnProperty(e)&&delete this.groups[e]},e.prototype.clearAll=function(){this.store={},this.groups={}},e.prototype.pageLoadPopulate=function(){if(wt())try{var e=document.querySelectorAll('script[type="application/json"][id*="jsondata-"]');if(e.length>0)for(var t=0,n=e.length;t<n;t++){var i=e[t],r=i.id.replace("jsondata-",""),o=void 0;if(r){try{o=JSON.parse(i.innerHTML)}catch(e){console.warn("could not parse data for "+r)}o&&(this.groups[r]=o)}i.parentNode.removeChild(i)}}catch(e){console.error(e)}},e}()),oi=function(){function e(e,t,n){this._el=e,this._zone=t,this._renderer=n,this.no_click=!1,this.scrollto=!1,this._zenscroll=!1,this.tabindex="-1"}return Object.defineProperty(e.prototype,"focus",{get:function(){return this._focus},set:function(e){this._focus=e,e&&!Pt()&&this._el&&this._el.nativeElement&&this._el.nativeElement.focus&&this._FocusScroll()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zenscroll",{get:function(){return this._zenscroll},set:function(e){this._zenscroll=e,this.scrollto=e},enumerable:!1,configurable:!0}),e.prototype._FocusScroll=function(){var e=this;if(this._ready){var t=document.activeElement;if(t&&t.blur&&qt(t.tagName.toLowerCase(),["input","select","button","textarea"])&&t.blur(),this._el&&this._el.nativeElement)try{this.no_click||this._el.nativeElement.click(),this._el.nativeElement.focus(),setTimeout(function(){e._el.nativeElement.focus()})}catch(e){}this._zone.runOutsideAngular(function(){var t={zen:un,body:cn};e.scrollto&&setTimeout(function(){en(function(){var n=.42*window.innerHeight,i=e._el.nativeElement.getBoundingClientRect().top,r=Math.round(n-i);t.zen&&e.zenscroll?t.zen.toY(t.body.scrollTop-r,300):t.body?t.body.scrollTop-=r:window.scrollTo(window.screenX,window.scrollY-r)})})})}},e.prototype.ngOnInit=function(){this._ready=!0,Pt()||this._focus&&this._el&&this._FocusScroll(),"empty"==this.tabindex?this._renderer.removeAttribute(this._el.nativeElement,"tabindex"):this._renderer.setAttribute(this._el.nativeElement,"tabindex",this.tabindex)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-focus",""]],inputs:{focus:["focus-when","focus"],no_click:["no-click","no_click"],scrollto:["focus-scroll","scrollto"],zenscroll:["focus-zen-scroll","zenscroll"],tabindex:"tabindex"}}),e}(),ai=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule]]}),e}(),si=["searchInput"],li=["mobilebg"],ci=["mobilemenu"],ui=["loansList"],hi=["bankList"],di=["compList"],mi=["toolsList"],pi=["userList"],fi=["moreList"],gi=["cardsList"],vi=["main-header",""];function yi(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"span",44),o.ɵɵlistener("onTap",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext().disableSearch(e)}),o.ɵɵelementEnd()}}function bi(e,t){1&e&&(o.ɵɵelementStart(0,"div",45),o.ɵɵelement(1,"span",46),o.ɵɵelementEnd())}function _i(e,t){1&e&&(o.ɵɵelementStart(0,"button",47),o.ɵɵtext(1,"Search"),o.ɵɵelementEnd())}function Si(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"button",48),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().disableMobSearch()}),o.ɵɵtext(1,"Cancel"),o.ɵɵelementEnd()}}function wi(e,t){1&e&&(o.ɵɵelementStart(0,"button",49),o.ɵɵtext(1,"Search"),o.ɵɵelementEnd())}function Ei(e,t){1&e&&o.ɵɵelement(0,"span",66)}function ki(e,t){1&e&&o.ɵɵelement(0,"span",67)}function xi(e,t){1&e&&o.ɵɵelement(0,"span",68)}function Pi(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",62),o.ɵɵtemplate(1,Ei,1,0,"span",63),o.ɵɵtemplate(2,ki,1,0,"span",64),o.ɵɵtemplate(3,xi,1,0,"span",65),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2).$implicit;o.ɵɵproperty("ngSwitch",n.label),o.ɵɵadvance(1),o.ɵɵproperty("ngSwitchCase","Answer"),o.ɵɵadvance(1),o.ɵɵproperty("ngSwitchCase","Glossary"),o.ɵɵadvance(1),o.ɵɵproperty("ngSwitchCase","Article")}}function Oi(e,t){if(1&e&&o.ɵɵelement(0,"div",69),2&e){var n=o.ɵɵnextContext(2).$implicit;o.ɵɵproperty("ngClass",n.icon)}}function Ti(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",70),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2).$implicit;o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.symbol)}}function Ci(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",71),o.ɵɵelement(1,"img",72),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2).$implicit;o.ɵɵadvance(1),o.ɵɵproperty("src",n.image,o.ɵɵsanitizeUrl)}}function Ni(e,t){if(1&e&&o.ɵɵelement(0,"span",73),2&e){var n=o.ɵɵnextContext(2).$implicit;o.ɵɵproperty("innerHtml",n.username,o.ɵɵsanitizeHtml)}}function Ii(e,t){if(1&e&&o.ɵɵelement(0,"div",73),2&e){var n=o.ɵɵnextContext(2).$implicit;o.ɵɵproperty("innerHtml",n.label,o.ɵɵsanitizeHtml)}}function Fi(e,t){if(1&e&&(o.ɵɵelementContainerStart(0),o.ɵɵtemplate(1,Pi,4,4,"div",56),o.ɵɵtemplate(2,Oi,1,1,"div",57),o.ɵɵtemplate(3,Ti,2,1,"div",58),o.ɵɵtemplate(4,Ci,2,1,"div",59),o.ɵɵelementStart(5,"div"),o.ɵɵelement(6,"span",60),o.ɵɵtemplate(7,Ni,1,1,"span",61),o.ɵɵelementEnd(),o.ɵɵtemplate(8,Ii,1,1,"div",61),o.ɵɵelementContainerEnd()),2&e){var n=o.ɵɵnextContext().$implicit;o.ɵɵadvance(1),o.ɵɵproperty("ngIf","Other"==n.category),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",n.icon),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",n.symbol),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",n.image&&!n.icon),o.ɵɵadvance(2),o.ɵɵproperty("innerHtml",n.name,o.ɵɵsanitizeHtml),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",n.username),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",n.label)}}function Ai(e,t){if(1&e&&(o.ɵɵelementStart(0,"span",74),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext().$implicit;o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.cat)}}var Li=function(e,t){return{"m-ac-li-cat bold-font":e,"m-ac-li-small":t}};function Vi(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"li",54),o.ɵɵlistener("onTap",function(){var e=o.ɵɵrestoreView(n).$implicit;return o.ɵɵnextContext(2).goToUrl(e.url)})("mouseenter",function(){var e=o.ɵɵrestoreView(n).$implicit;return o.ɵɵnextContext(2).changeSearchVal(e)}),o.ɵɵtemplate(1,Fi,9,7,"ng-container",35),o.ɵɵtemplate(2,Ai,2,1,"span",55),o.ɵɵelementEnd()}if(2&e){var i=t.$implicit;o.ɵɵproperty("ngClass",o.ɵɵpureFunction2(4,Li,i.cat,i.symbol&&i.symbol.length>4))("ng-aria-hidden",i.cat),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!i.cat),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.cat)}}function Di(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",75),o.ɵɵtext(1,"Show More Results"),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2);o.ɵɵproperty("zing-url",!0)("href",n.searchUri,o.ɵɵsanitizeUrl)}}function Mi(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",50),o.ɵɵlistener("onTap",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext().preserveMobSearch(e)})("scroll",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().BlurInput()}),o.ɵɵelementStart(1,"ul",51),o.ɵɵtemplate(2,Vi,3,7,"li",52),o.ɵɵelementEnd(),o.ɵɵtemplate(3,Di,2,2,"a",53),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵproperty("ngStyle",i.searchResultBoxStyles),o.ɵɵadvance(1),o.ɵɵproperty("ngStyle",i.searchResultStyles),o.ɵɵadvance(1),o.ɵɵproperty("ngForOf",i.resultData)("ngForTrackBy",i.trackByFn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.more_link)}}function zi(e,t){1&e&&(o.ɵɵelementStart(0,"a",76),o.ɵɵtext(1,"My Wallet"),o.ɵɵelementEnd()),2&e&&o.ɵɵproperty("zing-url",!0)("zing-url-feedback",!0)}function Ri(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",83),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function Bi(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",80,81),o.ɵɵtemplate(2,Ri,2,4,"a",82),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2);o.ɵɵproperty("ng-hidden",!n.cards_list),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",n.menuOptions.Cards)("ngForTrackBy",n.trackByFn)}}function ji(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",77),o.ɵɵlistener("mouseleave",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ListShow(!1,"cards_list")}),o.ɵɵelementStart(1,"a",78),o.ɵɵlistener("mouseenter",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ListShow(!0,"cards_list")}),o.ɵɵtext(2,"Credit Cards"),o.ɵɵelementEnd(),o.ɵɵtemplate(3,Bi,3,3,"div",79),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵclassProp("active",i.cards_list),o.ɵɵproperty("href",i.cc_link,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",!i.simple_version)}}function Ui(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",84),o.ɵɵtext(1,"Credit Cards"),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("href",n.cc_link,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0)}}function Wi(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",83),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function Hi(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",85,86),o.ɵɵtemplate(2,Wi,2,4,"a",82),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("ng-hidden",!n.loan_list),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",n.menuOptions.Loans)("ngForTrackBy",n.trackByFn)}}function Gi(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",83),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function qi(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",87,88),o.ɵɵtemplate(2,Gi,2,4,"a",82),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("ng-hidden",!n.bank_list),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",n.menuOptions.Banking)("ngForTrackBy",n.trackByFn)}}function Ki(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",91),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}var $i=function(){return{role:"group","aria-labelledby":"banks-list-menu-name"}};function Zi(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",89),o.ɵɵtemplate(1,Ki,2,4,"a",90),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("ng-attribute-when",!n.desktop_more_list)("ng-attribute",o.ɵɵpureFunction0(4,$i)),o.ɵɵadvance(1),o.ɵɵproperty("ngForOf",n.menuOptions.Banking)("ngForTrackBy",n.trackByFn)}}function Qi(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",83),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function Yi(e,t){if(1&e&&(o.ɵɵelementContainerStart(0),o.ɵɵelementStart(1,"span",92),o.ɵɵtext(2,"Companies"),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"div",93,94),o.ɵɵtemplate(5,Qi,2,4,"a",82),o.ɵɵelementEnd(),o.ɵɵelementContainerEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵadvance(3),o.ɵɵclassProp("ng-enter-element",!n.more_list),o.ɵɵproperty("ng-hidden",!n.comp_list),o.ɵɵattribute("role",n.desktop_more_list?"menu":"group"),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",n.menuOptions.Companies)("ngForTrackBy",n.trackByFn)}}function Ji(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",83),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function Xi(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",95),o.ɵɵtemplate(1,Ji,2,4,"a",82),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵproperty("ngForOf",n.menuOptions.Loans)("ngForTrackBy",n.trackByFn)}}function er(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",83),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function tr(e,t){if(1&e&&(o.ɵɵelementContainerStart(0),o.ɵɵelementStart(1,"span",96),o.ɵɵtext(2,"Tools"),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"div",97,98),o.ɵɵtemplate(5,er,2,4,"a",82),o.ɵɵelementEnd(),o.ɵɵelementContainerEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵadvance(3),o.ɵɵclassProp("ng-enter-element",!n.more_list),o.ɵɵproperty("ng-hidden",!n.tools_list),o.ɵɵattribute("role",n.desktop_loan_list?"menu":"group"),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",n.menuOptions.Tools)("ngForTrackBy",n.trackByFn)}}function nr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",107),o.ɵɵtext(1,"Profile"),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(3);o.ɵɵproperty("href",n.userLoggedInData.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0)}}function ir(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",102,103),o.ɵɵtemplate(2,nr,2,3,"a",104),o.ɵɵelementStart(3,"a",105),o.ɵɵtext(4,"Settings"),o.ɵɵelementEnd(),o.ɵɵelementStart(5,"span",106),o.ɵɵlistener("onTap",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext(2).logOut(e)}),o.ɵɵtext(6,"Logout"),o.ɵɵelementEnd(),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext(2);o.ɵɵadvance(2),o.ɵɵproperty("ngIf",i.userLoggedInData.upr),o.ɵɵadvance(1),o.ɵɵproperty("zing-url",!0)("zing-url-feedback",!0)}}function rr(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",99),o.ɵɵlistener("mouseleave",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ListShow(!1,"user_list")}),o.ɵɵelementStart(1,"span",100),o.ɵɵlistener("onTapHover",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ListShow("mobiletoggle","user_list",e)}),o.ɵɵtext(2),o.ɵɵelementEnd(),o.ɵɵtemplate(3,ir,7,3,"div",101),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵclassProp("active",i.user_list),o.ɵɵadvance(1),o.ɵɵtextInterpolate(i.userLoggedInData.name),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.user_list)}}function or(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"span",108),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().goToLogin()}),o.ɵɵtext(1,"Login"),o.ɵɵelementEnd()}2&e&&o.ɵɵproperty("zing-url-feedback",!0)}function ar(e,t){1&e&&(o.ɵɵelementStart(0,"a",109),o.ɵɵtext(1,"Sign Up"),o.ɵɵelementEnd()),2&e&&o.ɵɵproperty("zing-url",!0)("zing-url-feedback",!0)}function sr(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",142),o.ɵɵelementStart(1,"a",143),o.ɵɵelementStart(2,"span",121),o.ɵɵtext(3,"My Wallet"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(4,"a",144),o.ɵɵelementStart(5,"span",121),o.ɵɵtext(6,"Credit Cards"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(7,"span",145),o.ɵɵtext(8,"Loans"),o.ɵɵelementEnd(),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2);o.ɵɵadvance(1),o.ɵɵproperty("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(3),o.ɵɵproperty("href",n.cc_link,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0)}}function lr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",146),o.ɵɵtext(1,"My Wallet"),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2);o.ɵɵproperty("ng-aria-hidden",n.is_opened_mobile_menu)("zing-url",!0)("zing-url-feedback",!0)}}function cr(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"span",147),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext(2).MobileMenuExtra("sett")}),o.ɵɵtext(1,"Settings"),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext(2);o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("focus-when",i.closed_mobile_menu_sett)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_sett)}}function ur(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",156),o.ɵɵtext(1,"Profile"),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(3);o.ɵɵproperty("href",n.userLoggedInData.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0)}}function hr(e,t){1&e&&(o.ɵɵelementStart(0,"span",121),o.ɵɵtext(1,"|"),o.ɵɵelementEnd())}function dr(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",148),o.ɵɵelement(1,"img",149),o.ɵɵelementStart(2,"div",150),o.ɵɵelement(3,"div",151),o.ɵɵelementStart(4,"div",152),o.ɵɵtemplate(5,ur,2,3,"a",153),o.ɵɵtemplate(6,hr,2,0,"span",154),o.ɵɵelementStart(7,"span",155),o.ɵɵlistener("onTap",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext(2).logOut(e)}),o.ɵɵtext(8,"Logout"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext(2);o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("no-tab",!0),o.ɵɵadvance(1),o.ɵɵproperty("src",i.userLoggedInData.avatar,o.ɵɵsanitizeUrl),o.ɵɵattribute("alt","avatar of "+i.userLoggedInData.name),o.ɵɵadvance(2),o.ɵɵproperty("ng-context",i.userLoggedInData.name),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",i.userLoggedInData.upr),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.userLoggedInData.upr),o.ɵɵadvance(1),o.ɵɵclassProp("no-first",!i.userLoggedInData.upr)}}function mr(e,t){if(1&e&&(o.ɵɵelementStart(0,"div",157),o.ɵɵelementStart(1,"a",158),o.ɵɵtext(2,"Login"),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"a",159),o.ɵɵtext(4,"Sign Up for Free"),o.ɵɵelementEnd(),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(2);o.ɵɵproperty("ng-aria-hidden",n.is_opened_mobile_menu)("no-tab",!0),o.ɵɵadvance(1),o.ɵɵproperty("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(2),o.ɵɵproperty("zing-url",!0)("zing-url-feedback",!0)}}function pr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",160),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function fr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",160),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function gr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",160),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function vr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",160),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function yr(e,t){if(1&e&&(o.ɵɵelementStart(0,"a",160),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=t.$implicit;o.ɵɵproperty("href",n.url,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.name)}}function br(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",161),o.ɵɵelementStart(1,"div",162),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext(2).MobileMenuExtra("sett")}),o.ɵɵtext(2,"Settings"),o.ɵɵelementEnd(),o.ɵɵtemplate(3,yr,2,4,"a",136),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext(2);o.ɵɵclassProp("brgmm-display",i.open_mobile_menu_sett),o.ɵɵadvance(1),o.ɵɵproperty("focus-when",i.open_mobile_menu_sett)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_sett),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",i.menuOptions.Settings)("ngForTrackBy",i.trackByFn)}}function _r(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"nav",110),o.ɵɵtemplate(1,sr,9,5,"div",111),o.ɵɵelementStart(2,"span",112),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ToggleMobileMenu(!0)}),o.ɵɵelement(3,"span",113),o.ɵɵelementEnd(),o.ɵɵelementStart(4,"div",114,115),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ToggleMobileMenu(!1)}),o.ɵɵelementEnd(),o.ɵɵelementStart(6,"div",116,117),o.ɵɵelementStart(8,"div",118),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ToggleMobileMenu(!1)}),o.ɵɵelementEnd(),o.ɵɵelementStart(9,"div",119),o.ɵɵlistener("click",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileSearch(e)}),o.ɵɵelement(10,"span",120),o.ɵɵelementStart(11,"span",121),o.ɵɵtext(12,"Search"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵtemplate(13,lr,2,3,"a",122),o.ɵɵelementStart(14,"a",123),o.ɵɵtext(15,"Credit Cards"),o.ɵɵelementEnd(),o.ɵɵelementStart(16,"span",124),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("loans")}),o.ɵɵtext(17,"Loans"),o.ɵɵelementEnd(),o.ɵɵelementStart(18,"span",125),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("bank")}),o.ɵɵtext(19,"Banking"),o.ɵɵelementEnd(),o.ɵɵelementStart(20,"span",126),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("comp")}),o.ɵɵtext(21,"Companies"),o.ɵɵelementEnd(),o.ɵɵelementStart(22,"span",127),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("tools")}),o.ɵɵtext(23,"Tools"),o.ɵɵelementEnd(),o.ɵɵtemplate(24,cr,2,4,"span",128),o.ɵɵtemplate(25,dr,9,9,"div",129),o.ɵɵtemplate(26,mr,5,6,"div",130),o.ɵɵelementStart(27,"div",131),o.ɵɵelementStart(28,"div",132),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("loans")}),o.ɵɵtext(29,"Loans"),o.ɵɵelementEnd(),o.ɵɵtemplate(30,pr,2,4,"a",133),o.ɵɵelementEnd(),o.ɵɵelementStart(31,"div",134),o.ɵɵelementStart(32,"div",135),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("bank")}),o.ɵɵtext(33,"Banking"),o.ɵɵelementEnd(),o.ɵɵtemplate(34,fr,2,4,"a",136),o.ɵɵelementEnd(),o.ɵɵelementStart(35,"div",137),o.ɵɵelementStart(36,"div",138),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("comp")}),o.ɵɵtext(37,"Companies"),o.ɵɵelementEnd(),o.ɵɵtemplate(38,gr,2,4,"a",136),o.ɵɵelementEnd(),o.ɵɵelementStart(39,"div",139),o.ɵɵelementStart(40,"div",140),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().MobileMenuExtra("tools")}),o.ɵɵtext(41,"Tools"),o.ɵɵelementEnd(),o.ɵɵtemplate(42,vr,2,4,"a",136),o.ɵɵelementEnd(),o.ɵɵtemplate(43,br,4,7,"div",141),o.ɵɵelementEnd(),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵclassProp("brgmm-guest-user",!i.isLoggedIn)("brgmrm-display",i.mobile_menu_on),o.ɵɵproperty("ng-hidden",i.searchMobEnabled||i.searchEnabled),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("focus-when",i.mobile_menu_off)("no-click",!0),o.ɵɵattribute("aria-expanded",i.mobile_menu_on),o.ɵɵadvance(2),o.ɵɵproperty("ng-hidden",!i.mobile_menu_on),o.ɵɵadvance(2),o.ɵɵclassProp("brgmm-display",i.mobile_menu_on),o.ɵɵattribute("aria-modal",i.mobile_menu_on),o.ɵɵadvance(2),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("focus-when",i.mobile_menu_on)("no-click",!0),o.ɵɵattribute("aria-expanded",i.mobile_menu_on),o.ɵɵadvance(1),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu),o.ɵɵadvance(4),o.ɵɵproperty("ngIf",i.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("href",i.cc_link,o.ɵɵsanitizeUrl)("zing-url",!0)("zing-url-feedback",!0),o.ɵɵadvance(2),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("focus-when",i.closed_mobile_menu_loans)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_loans),o.ɵɵadvance(2),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("focus-when",i.closed_mobile_menu_bank)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_bank),o.ɵɵadvance(2),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("focus-when",i.closed_mobile_menu_comp)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_comp),o.ɵɵadvance(2),o.ɵɵproperty("ng-aria-hidden",i.is_opened_mobile_menu)("focus-when",i.closed_mobile_menu_tools)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_tools),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",i.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!i.isLoggedIn),o.ɵɵadvance(1),o.ɵɵclassProp("brgmm-display",i.open_mobile_menu_loans),o.ɵɵadvance(1),o.ɵɵproperty("focus-when",i.open_mobile_menu_loans)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_loans),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",i.menuOptions.Loans)("ngForTrackBy",i.trackByFn),o.ɵɵadvance(1),o.ɵɵclassProp("brgmm-display",i.open_mobile_menu_bank),o.ɵɵadvance(1),o.ɵɵproperty("focus-when",i.open_mobile_menu_bank)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_bank),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",i.menuOptions.Banking)("ngForTrackBy",i.trackByFn),o.ɵɵadvance(1),o.ɵɵclassProp("brgmm-display",i.open_mobile_menu_comp),o.ɵɵadvance(1),o.ɵɵproperty("focus-when",i.open_mobile_menu_comp)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_comp),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",i.menuOptions.Companies)("ngForTrackBy",i.trackByFn),o.ɵɵadvance(1),o.ɵɵclassProp("brgmm-display",i.open_mobile_menu_tools),o.ɵɵadvance(1),o.ɵɵproperty("focus-when",i.open_mobile_menu_tools)("no-click",!0),o.ɵɵattribute("aria-expanded",i.open_mobile_menu_tools),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",i.menuOptions.Tools)("ngForTrackBy",i.trackByFn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",i.isLoggedIn)}}function Sr(e,t){if(1&e&&(o.ɵɵelementStart(0,"form",163),o.ɵɵelement(1,"input",164),o.ɵɵelement(2,"input",165),o.ɵɵelement(3,"input",166),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵproperty("value",n.logout_redirect),o.ɵɵadvance(1),o.ɵɵproperty("value",n.csrf_token)}}var wr=function(e,t,n){return{"tp-hd-sc-enable":e,"tp-hd-sc-logged-in":t,"tp-hd-sc-mob-enable":n}},Er=function(){return{"aria-haspopup":"menu","aria-controls":"companies-list-menu"}},kr=function(){function e(e,t){if(this._headerSect=e,this._dservice=t,this.searchVal="",this.live_status_search="",this.homeUrl="/",this.isLoggedIn=!1,this.userLoggedInData={name:"",url:"",avatar:"",alerts:10},this.searchUri="/search/?s=",this.loading_results=!1,this.showResult=!1,this._searchValue=new o.Subject,this.searchEnabled=!1,this.searchMobEnabled=!1,this.resultData=[],this.more_link=!1,this.is_full_user=!1,this.cc_link="/credit-cards/",this.menuOptions={Loans:[{name:"Car Loans",url:"/car-loans/rates"},{name:"Home Equity Loans",url:"/home-equity-loans"},{name:"Mortgages",url:"/mortgage-rates"},{name:"Personal Loans",url:"/personal-loans"}],Banking:[{name:"CDs / Savings",url:"/savings-accounts"},{name:"Checking",url:"/checking-accounts"},{name:"Prepaid Cards",url:"/prepaid-debit-cards"}],Tools:[{name:"Answers",url:"/answers/"},{name:"Calculators",url:"/calculators"},{name:"WalletLiteracy",url:"/wallet-literacy-score/"},{name:"Articles & Studies",url:"/edu"},{url:"/free-credit-score",name:"Free Credit Score"},{url:"/free-credit-report",name:"Free Credit Report"},{url:"/free-credit-monitoring",name:"Free Credit Monitoring"}],Companies:[{name:"Attorneys",url:"/attorneys"},{name:"Banks",url:"/banks"},{name:"Credit Unions",url:"/credit-unions"},{name:"Financial Advisors",url:"/financial-advisors"},{name:"Car Insurance",url:"/car-insurance"},{name:"Insurance Agents",url:"/insurance-agents"},{name:"Mortgage Providers",url:"/mortgage-lenders"},{name:"Real Estate Agents",url:"/real-estate-agents"}],Settings:[{name:"Public Info",url:"/home/settings/public-info"},{name:"Private Into",url:"/home/settings/private-info"},{name:"Login Settings",url:"/home/settings/login"},{name:"Notifications",url:"/home/settings/notifications"},{name:"Invite Your Friends",url:"/home/settings/invite"}],Cards:[{name:"Compare Cards",url:"/credit-cards/compare/"},{name:"Editors' Best",url:"/best-credit-cards"},{name:"CardAdvisor™",url:"/cardadvisor/"},{name:"Payoff Calculator",url:"/credit-card-calculator"}]},this.is_web=wt(),this.simple_version=!1,this._lastwsize=0,this.loan_list=!1,this.desktop_loan_list=!0,this.bank_list=!1,this.comp_list=!1,this.tools_list=!1,this.user_list=!1,this.more_list=!1,this.desktop_more_list=!0,this.cards_list=!1,this.delayedStates={},this.mobile_menu_off=!1,this.open_mobile_menu_loans=!1,this.closed_mobile_menu_loans=!1,this.open_mobile_menu_bank=!1,this.closed_mobile_menu_bank=!1,this.open_mobile_menu_comp=!1,this.closed_mobile_menu_comp=!1,this.open_mobile_menu_tools=!1,this.closed_mobile_menu_tools=!1,this.open_mobile_menu_sett=!1,this.closed_mobile_menu_sett=!1,this.mobile_menu_on=!1,!Pt()&&Qn.get("mw_signon")){this.isLoggedIn=!0,this.cc_link+="/compare/";var n=JSON.parse(Qn.get("mw_signon"));this.userLoggedInData={name:n.ucrn,avatar:n.pp,url:"/profile/"+n.id+"i",upr:n.upr},this.is_full_user=ni.get("full"),this.userLoggedInData.url||this.menuOptions.Settings.splice(0,1),this.is_full_user||this.menuOptions.Settings.splice(0,1)}Pt()||(this.logout_redirect=window.location.href,this._loginurl="/join/login?redirect_to="+window.location.href,this._windowResize=this._windowResize.bind(this))}return e.prototype._windowResize=function(){this.setSearchResultStyles(),this._MobileTrackWindow();var e=window.innerWidth;if(this._lastwsize){if(this._lastwsize==e)return null;this._lastwsize=e}else this._lastwsize=e;this.searchMobEnabled&&(this.searchMobEnabled=!1),this.searchEnabled&&(this.searchEnabled=!1),this.isDesktopSize()&&(this.searchVal=""),this.desktop_loan_list=e>=740,this.desktop_more_list=e>=950&&!this.isLoggedIn||e>1019},e.prototype._ScrollWatch=function(){var e,t,n=this,i=this._headerSect.nativeElement,r=i.clientHeight,a=0,s=0,l=0,c=this._AppContainer,u=i.parentElement.querySelector("[data-ng-sub-nav]");c&&!this._dservice.overwrite_to_body&&(r,u&&u.clientHeight),this._scrollSubscriber=this._dservice.onScroll.pipe(o.delay(50)).subscribe(function(o){n._dservice.scrollable&&(e=o>a?"down":"up",u||(u=i.parentElement.querySelector("[data-ng-sub-nav]"))&&!n._dservice.overwrite_to_body&&u.clientHeight,a=o,en(function(){var a=null;if("down"==e?(a=Math.max(-1*(o-l),-1*r),s=o,t=a,n.more_list=!1,n.comp_list=!1,n.bank_list=!1,n.loan_list=!1,n.tools_list=!1,n.user_list=!1,n.cards_list=!1):"up"==e&&(l=o,a=o?Math.min(0,t+Math.min(r,s-o)):0),null!==a&&(i.style.transform="translate3d(0,"+a+"px,0 )",i.style.webkitTransform="translate3d(0,"+a+"px,0 )",u&&(u.style.transform="translate3d(0,"+a+"px,0 )",u.style.webkitTransform="translate3d(0,"+a+"px,0 )"),n._dservice.overwrite_to_body),n._dservice.overwrite_to_body)if(n._dservice.overwrite_to_body&&null!==a){c=r- -1*a;jn.emit("header:position-change",c)}else jn.emit("header:position-change",r);else{var c=r- -1*a;jn.emit("header:position-change",c)}}))})},e.prototype.ngOnInit=function(){var e=this;if(ri.getKey("simple-render")&&(this.simple_version=!0),!Pt()){jn.subscribe("header:visibility",function(t){e._headerSect.nativeElement.style.zIndex=t?"":-1}),jn.subscribe("header:reset-position",function(){var t=e._headerSect.nativeElement,n=t.parentElement.querySelector("[data-ng-sub-nav]");t.style.transform="translate3d(0,0,0 )",n&&(n.style.transform="translate3d(0,0,0 )")}),1==Qn.get("mw_prequal_offers")&&(this.menuOptions.Loans[3].url="/home/loans-for-me"),jn.keepValueFor("header:position-change");var t=this._searchValue.pipe(o.debounceTime(500),o.map(function(e){return ii(e)})).subscribe({next:function(t){e.getSearchResults(t),e.searchUri="/search/?s="+t},error:function(){},complete:function(){t&&t.unsubscribe()}});this.setSearchResultStyles();var n=window.innerWidth;this.desktop_more_list=n>=950&&!this.isLoggedIn||n>1019,this.desktop_loan_list=n>=740}},e.prototype.ngAfterViewInit=function(){if(!Pt()){var e=null;tn()&&(e={passive:!0}),window.addEventListener("resize",this._windowResize,e),this._AppContainer=ti(),this._ScrollWatch(),this._lastwsize=window.innerWidth}},e.prototype.ngOnDestroy=function(){Pt()||(this._windowResize&&window.removeEventListener("resize",this._windowResize),Xn("header-web-search"),jn.terminate("header:position-change"),jn.terminate("header:position-behind"),jn.terminate("header:visibility"),jn.terminate("header:reset-position")),this._searchValue.complete();try{this._scrollSubscriber&&this._scrollSubscriber.unsubscribe()}catch(e){}},e.prototype.setSearchResultStyles=function(e){var t=window.innerHeight-150-37+"px";this.searchResultBoxStyles={},this.isDesktopSize()||(t="",this.searchResultBoxStyles["max-height"]=window.innerHeight-this._headerSect.nativeElement.offsetHeight+"px"),this.searchResultStyles={"max-height":t}},e.prototype.goToUrl=function(e){void 0===e&&(e=null),null!=e&&(window.location.href=e)},e.prototype.logIn=function(e){this.isLoggedIn=!0,this.homeUrl="/home/dashboard/"},e.prototype.logOut=function(e){this.logout_redirect=window.location.href,this.csrf_token=Qn.get("XSRF-TOKEN"),ni.remove("has-sess"),ni.remove("crd"),ni.remove("vs"),setTimeout(function(){document.querySelector("form#logout-form").submit()}),this.homeUrl="/"},e.prototype.goToLogin=function(){window.open(this._loginurl,"_self")},e.prototype.Input=function(e){var t=e.target.value;this.searchVal=t,t.length<3?(this.resultData=[],this.loading_results=!1,this.showResult=!1):(this.showResult=!0,this._searchValue.next(t))},e.prototype.changeSearchVal=function(e){var t=(e.username||e.name||"").replace(/<\/?[^>]+(>|$)/g,"");t&&(this.searchVal=t)},e.prototype._parseData=function(e){var t=this,n=[],i="";if(clearTimeout(this.live_status_timer),Bt(e)&&Lt(e.total)&&Mt(e.terms)){e.total>e.terms.length?this.more_link=!0:this.more_link=!1;var r=e.terms;r.length?this.live_status_search="Found, "+r.length+" matching result"+(1!=r.length?"s":""):this.live_status_search="No matching results";for(var o=0;o<r.length;o++)r[o].category!=i&&(n.push({cat:r[o].category}),i=r[o].category),r[o].st&&(r[o].icon="wh-icon black icon-"+r[o].st),r[o].username&&(r[o].username="@"+r[o].username),n.push(r[o]);this.live_status_timer=setTimeout(function(){t.live_status_search=""},1300)}else this.more_link=!1;this.resultData=n},e.prototype.getSearchResults=function(e){var t=this;void 0===e&&(e=null),Xn("header-web-search"),Jn({method:"GET",url:"/ac/",id:"header-web-search",data:{v2:!0,term:e},events:!1,needs_session:!1,before:function(){t.live_status_search="",t.loading_results=!0},after:function(){t.loading_results=!1}}).then(function(e){t._parseData(e)},function(e){t.live_status_search="No matching results",clearTimeout(t.live_status_timer),t.live_status_timer=setTimeout(function(){t.live_status_search=""},1e3),t.resultData=[],t.more_link=!1})},e.prototype.enableSearch=function(e){this.searchEnabled=!0},e.prototype.disableSearch=function(e){var t=this;this.searchEnabled=!1,this.searchVal="",setTimeout(function(){t.resultData=[]},300)},e.prototype.disableMobSearch=function(){this.disableSearch(),this.searchMobEnabled=!1},e.prototype.preserveMobSearch=function(e){e.type.indexOf("mouse")<0&&e.stopPropagation()},e.prototype.BlurInput=function(){var e=document.activeElement;e&&e.tagName&&"input"==e.tagName.toLowerCase()&&e.blur()},e.prototype.isDesktopSize=function(){return!!(this.isLoggedIn&&window.innerWidth>691||!this.isLoggedIn&&window.innerWidth>688)},e.prototype.ListShow=function(e,t,n){var i=this;if("mobiletoggle"==e&&n&&(e="mouseenter"==n.type||!this[t]),this[t]=e,e){var r=void 0;if("loan_list"==t?r=this.loansList:"bank_list"==t?r=this.bankList:"comp_list"==t?r=this.compList:"tools_list"==t?r=this.toolsList:"user_list"==t?r=this.userList:"more_list"==t?r=this.moreList:"cards_list"==t&&(r=this.cardsList),"more_list"==t)(a=window.innerWidth)<950&&(this.ListShow(!0,"comp_list"),this.ListShow(!0,"tools_list")),a<740&&this.ListShow(!0,"loan_list");var o=r.changes.subscribe(function(e){if(e&&e.first){var n=e.first;en(function(){if(o.unsubscribe(),i[t]){var e=n.nativeElement,r=e.getBoundingClientRect(),a=document.body,s=e.offsetLeft,l=a.clientWidth||window.innerWidth,c=a.clientHeight||window.innerHeight;r.right>l&&(e.style.left=-1*(r.right-s-l)+"px"),r.bottom>c?e.style.maxHeight=e.offsetHeight-(r.bottom-c)+"px":e.style.maxHeight=e.offsetHeight+(c-r.bottom)+"px"}})}})}else{var a;if("more_list"==t)(a=window.innerWidth)<950&&(this.ListShow(!1,"comp_list"),this.ListShow(!1,"tools_list")),a<740&&this.ListShow(!0,"loan_list")}},e.prototype.CompListShow=function(e,t,n){var i=window.innerWidth;i>1019&&this.isLoggedIn||i>949&&!this.isLoggedIn?this.ListShow(e,t):"more_list"==t&&this.ListShow(e,t)},e.prototype.DeskListShow=function(e,t){var n=this[e];this.more_list=!1,this.comp_list=!1,this.bank_list=!1,this.loan_list=!1,this.tools_list=!1,this.user_list=!1,this.cards_list=!1,this[e]=n,this.ListShow("mobiletoggle",e,t)},e.prototype.DelayListShow=function(e,t,n){var i=this;clearTimeout(this.delayedStates[t]),this.delayedStates[t]=setTimeout(function(){i.ListShow(e,t,n)},50)},Object.defineProperty(e.prototype,"is_opened_mobile_menu",{get:function(){return qt(!0,[this.open_mobile_menu_bank,this.open_mobile_menu_loans,this.open_mobile_menu_sett,this.open_mobile_menu_comp,this.open_mobile_menu_tools])},enumerable:!1,configurable:!0}),e.prototype.ToggleMobileMenu=function(e){var t=this;this.mobile_menu_on=!!e,this.mobile_menu_on||this.searchMobEnabled||(this.mobile_menu_off=!0,setTimeout(function(){t.mobile_menu_off=!1},100)),en(function(){t._MobileTrackWindow(),t._dservice.canScroll(!t.mobile_menu_on),!1===e&&(t.open_mobile_menu_loans=!1,t.open_mobile_menu_bank=!1,t.open_mobile_menu_comp=!1,t.open_mobile_menu_tools=!1,t.open_mobile_menu_sett=!1);var n=document.querySelector("#scroller");n&&(t.mobile_menu_on?(n.setAttribute("tabindex","-1"),n.setAttribute("aria-hidden","true")):(n.removeAttribute("tabindex"),n.removeAttribute("aria-hidden")))})},e.prototype._MobileTrackWindow=function(){if(this.mobile_menu_on){var e=this.mobileBg.nativeElement,t=this.mobileMenu.nativeElement;e.style.height=window.innerHeight-this._headerSect.nativeElement.offsetHeight+"px",t.style.height=window.innerHeight+"px"}},e.prototype.MobileMenuExtra=function(e,t){var n=this;this["open_mobile_menu_"+e]="boolean"==typeof t?t:!this["open_mobile_menu_"+e],this["open_mobile_menu_"+e]||(this["closed_mobile_menu_"+e]=!0,setTimeout(function(){n["closed_mobile_menu_"+e]=!1},100))},e.prototype.MobileSearch=function(e){var t=this;this.searchEnabled=!0,this.searchMobEnabled=!0,this.mobile_menu_on=!1,e.preventDefault(),e.stopPropagation(),en(function(){t.ToggleMobileMenu(!1)})},e.prototype.trackByFn=function(e){return e},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(gn))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["header","main-header",""]],viewQuery:function(e,t){if(1&e&&(o.ɵɵviewQuery(si,5),o.ɵɵviewQuery(li,5),o.ɵɵviewQuery(ci,5),o.ɵɵviewQuery(ui,5,o.ElementRef),o.ɵɵviewQuery(hi,5,o.ElementRef),o.ɵɵviewQuery(di,5,o.ElementRef),o.ɵɵviewQuery(mi,5,o.ElementRef),o.ɵɵviewQuery(pi,5,o.ElementRef),o.ɵɵviewQuery(fi,5,o.ElementRef),o.ɵɵviewQuery(gi,5,o.ElementRef)),2&e){var n=void 0;o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.searchInput=n.first),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.mobileBg=n.first),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.mobileMenu=n.first),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.loansList=n),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.bankList=n),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.compList=n),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.toolsList=n),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.userList=n),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.moreList=n),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.cardsList=n)}},attrs:vi,decls:54,vars:65,consts:[[1,"top-header-nav"],[1,"top-header-logo",3,"ng-hidden"],["zing-touch","","aria-label","WalletHub",1,"top-header-logo-link",3,"zing-url","href"],["tabindex","-1","aria-hidden","true",1,"w-icon-wallet"],["tabindex","-1","aria-hidden","true",1,"w-icon-txt"],["tabindex","-1","aria-hidden","true",1,"logo-anchor-text"],[1,"top-header-search",3,"ngClass"],["live-type","polite",3,"ng-aria-live"],["method","GET","action","/search/",1,"label-input","input-icon","full","blend","tall-lbl-input"],["aria-hidden","true","tabindex","-1",1,"tp-hd-sc-ic","af-icon-search","lbl"],["type","text","placeholder","Search","name","s","autocomplete","off","zing-touch","","aria-label","Site Search","tabindex","0","ng-focus","",1,"tp-hd-sc-input","textfield",3,"value","focus-when","input","focus","onTapDoc"],["searchInput",""],["class","tp-hd-sc-cross lbl-b","zing-touch","","role","button","aria-label","Close Search","tabindex","0",3,"onTap",4,"ngIf"],["class","progress-indicator visible","aria-hidden","true","tabindex","-1",4,"ngIf"],["type","submit","class","btn tp-hd-sc-btn basic-trans bold-font",4,"ngIf"],["type","button","class","btn tp-hd-sc-cancel regular-font","zing-touch","","aria-label","Close Search",3,"onTap",4,"ngIf"],["type","submit","hidden","true",4,"ngIf"],["class","dda","id","m-ac","zing-touch","","aria-hidden","true","tabindex","-1",3,"ngStyle","onTap","scroll",4,"ngIf"],["role","none",1,"burger-menu-right-menu",3,"ng-hidden"],["class","brgm-button","href","/home/dashboard","zing-touch","","aria-label","My Wallet",3,"zing-url","zing-url-feedback",4,"ngIf"],["class","brgm-button brgm-list-box brgm-list-cc-button",3,"mouseleave",4,"ngIf"],["class","brgm-button","zing-touch","","aria-label","Credit Cards",3,"href","zing-url","zing-url-feedback",4,"ngIf"],[1,"brgm-button","brgm-list-box","brgm-cl-third-hide","brgm-list-ln-button",3,"mouseleave"],["role","button","aria-haspopup","menu","aria-controls","loans-list-menu","zing-touch","","tabindex","0","id","loans-list-menu-name",1,"brgm-list-title",3,"onTapHover"],["class","brgm-list ng-enter-element","role","menu","id","loans-list-menu","aria-labelledby","loans-list-menu-name",3,"ng-hidden",4,"ngIf"],[1,"brgm-button","brgm-list-box","brgm-cl-second-hide","brgm-list-bnk-button",3,"mouseleave"],["zing-touch","","id","banks-list-menu-name","role","button","tabindex","0","aria-haspopup","menu","aria-controls","banks-list-menu",1,"brgm-list-title",3,"onTapHover"],["class","brgm-list ng-enter-element","aria-labelledby","banks-list-menu-name","id","banks-list-menu",3,"ng-hidden",4,"ngIf"],["zing-touch","","role","button","aria-controls","more-list-menu","aria-haspopup","menu","tabindex","0",1,"brgm-button","brgm-cl-button",3,"onTapHover","mouseleave"],["role","menu","id","more-list-menu","aria-label","List of more navigations","zing-touch","",1,"brgm-compact-lists",3,"ng-hidden","onTapHover","mouseleave"],["moreList",""],["role","menuitem",1,"brgm-button","brgm-list-box",3,"mouseleave"],["aria-hidden","true","tabindex","-1",1,"brgm-cl-title","brgm-cl-second-show"],["class","brgm-list brgm-cl-second-show",3,"ng-attribute-when","ng-attribute",4,"ngIf"],["zing-touch","","role","button","tabindex","0",1,"brgm-list-title","brgm-list-comp-title",3,"ng-attribute-when","ng-attribute","onTapHover"],[4,"ngIf"],[1,"brgm-cl-title","brgm-cl-third-show"],["class","brgm-list brgm-cl-third-show","role","group","aria-labelledby","loans-list-menu-name",4,"ngIf"],["zing-touch","","tabindex","0","role","button",1,"brgm-list-title","brgm-list-tools-title",3,"onTapHover"],["class","brgm-button brgm-user brgm-list-box",3,"mouseleave",4,"ngIf"],["class","brgm-button brgm-signup brgm-signup-login","zing-touch","","role","link","tabindex","0",3,"zing-url-feedback","onTap",4,"ngIf"],["class","brgm-button brgm-signup brgm-signup-sign","zing-touch","","href","/join/",3,"zing-url","zing-url-feedback",4,"ngIf"],["class","burger-menu-right-mobile","role","none",3,"brgmm-guest-user","brgmrm-display","ng-hidden",4,"ngIf"],["action","/logout/","method","post","id","logout-form","hidden","true",4,"ngIf"],["zing-touch","","role","button","aria-label","Close Search","tabindex","0",1,"tp-hd-sc-cross","lbl-b",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"progress-indicator","visible"],[1,"progress-spin"],["type","submit",1,"btn","tp-hd-sc-btn","basic-trans","bold-font"],["type","button","zing-touch","","aria-label","Close Search",1,"btn","tp-hd-sc-cancel","regular-font",3,"onTap"],["type","submit","hidden","true"],["id","m-ac","zing-touch","","aria-hidden","true","tabindex","-1",1,"dda",3,"ngStyle","onTap","scroll"],[1,"m-ac-ul",3,"ngStyle"],["class","m-ac-li","zing-touch","","role","link listitem","ng-aria-label-self","split",3,"ngClass","ng-aria-hidden","onTap","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["class","m-ac-more","zing-touch","",3,"zing-url","zing-url-feedback","href",4,"ngIf"],["zing-touch","","role","link listitem","ng-aria-label-self","split",1,"m-ac-li",3,"ngClass","ng-aria-hidden","onTap","mouseenter"],["class","",4,"ngIf"],["class","m-ac-symbol","aria-hidden","true","tabindex","-1",3,"ngSwitch",4,"ngIf"],["class","m-ac-symbol","aria-hidden","true","tabindex","-1",3,"ngClass",4,"ngIf"],["class","m-ac-symbol","aria-hidden","true","tabindex","-1",4,"ngIf"],["class","img",4,"ngIf"],["aria-hidden","true","tabindex","-1",3,"innerHtml"],["class","m-ac-label","aria-hidden","true","tabindex","-1",3,"innerHtml",4,"ngIf"],["aria-hidden","true","tabindex","-1",1,"m-ac-symbol",3,"ngSwitch"],["class","wh-icon thumb-answer",4,"ngSwitchCase"],["class","wh-icon thumb-glossary",4,"ngSwitchCase"],["class","wh-icon thumb-article",4,"ngSwitchCase"],[1,"wh-icon","thumb-answer"],[1,"wh-icon","thumb-glossary"],[1,"wh-icon","thumb-article"],["aria-hidden","true","tabindex","-1",1,"m-ac-symbol",3,"ngClass"],["aria-hidden","true","tabindex","-1",1,"m-ac-symbol"],[1,"img"],["aria-hidden","true","tabindex","-1",3,"src"],["aria-hidden","true","tabindex","-1",1,"m-ac-label",3,"innerHtml"],[1,""],["zing-touch","",1,"m-ac-more",3,"zing-url","zing-url-feedback","href"],["href","/home/dashboard","zing-touch","","aria-label","My Wallet",1,"brgm-button",3,"zing-url","zing-url-feedback"],[1,"brgm-button","brgm-list-box","brgm-list-cc-button",3,"mouseleave"],["zing-touch","",1,"brgm-list-title",3,"href","zing-url","zing-url-feedback","mouseenter"],["class","brgm-list ng-enter-element","id","cards-list-menu","role","menu",3,"ng-hidden",4,"ngIf"],["id","cards-list-menu","role","menu",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["cardsList",""],["role","menuitem","class","brgm-list-it","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["role","menuitem","zing-touch","",1,"brgm-list-it",3,"href","zing-url","zing-url-feedback"],["zing-touch","","aria-label","Credit Cards",1,"brgm-button",3,"href","zing-url","zing-url-feedback"],["role","menu","id","loans-list-menu","aria-labelledby","loans-list-menu-name",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["loansList",""],["aria-labelledby","banks-list-menu-name","id","banks-list-menu",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["bankList",""],[1,"brgm-list","brgm-cl-second-show",3,"ng-attribute-when","ng-attribute"],["class","brgm-list-it","zing-touch","","role","menuitem",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["zing-touch","","role","menuitem",1,"brgm-list-it",3,"href","zing-url","zing-url-feedback"],["aria-hidden","true","tabindex","-1","id","comp-list-menu-name",1,"brgm-cl-title"],["id","companies-list-menu","aria-labelledby","comp-list-menu-name",1,"brgm-list","ng-enter-element",3,"ng-hidden"],["compList",""],["role","group","aria-labelledby","loans-list-menu-name",1,"brgm-list","brgm-cl-third-show"],["aria-hidden","true","tabindex","-1","id","tools-list-menu-name",1,"brgm-cl-title"],["aria-labelledby","tools-list-menu-name",1,"brgm-list",2,"left","7px",3,"ng-hidden"],["toolsList",""],[1,"brgm-button","brgm-user","brgm-list-box",3,"mouseleave"],["zing-touch","",1,"brgm-list-title",3,"onTapHover"],["class","brgm-list brgm-user-list ng-enter-element",4,"ngIf"],[1,"brgm-list","brgm-user-list","ng-enter-element"],["userList",""],["class","brgm-list-it","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngIf"],["href","/home/settings","zing-touch","",1,"brgm-list-it",3,"zing-url","zing-url-feedback"],["zing-touch","","role","button",1,"brgm-list-it",3,"onTap"],["zing-touch","",1,"brgm-list-it",3,"href","zing-url","zing-url-feedback"],["zing-touch","","role","link","tabindex","0",1,"brgm-button","brgm-signup","brgm-signup-login",3,"zing-url-feedback","onTap"],["zing-touch","","href","/join/",1,"brgm-button","brgm-signup","brgm-signup-sign",3,"zing-url","zing-url-feedback"],["role","none",1,"burger-menu-right-mobile",3,"ng-hidden"],["class","brgmm-imp-links",4,"ngIf"],["role","button","aria-label","Toggle Navigation Menu","aria-haspopup","dialog","aria-controls","burger-menu-popup","tabindex","0","ng-focus","",1,"brgmm-toggle",3,"focus-when","no-click","click"],[1,"brgmm-line"],[1,"brgmm-backside",3,"ng-hidden","click"],["mobilebg",""],["id","burger-menu-popup","aria-label","navigation menu","role","dialog",1,"brgmm-content"],["mobilemenu",""],["role","button","aria-label","Toggle Navigation Menu","tabindex","0","aria-haspopup","dialog","aria-controls","burger-menu-popup","ng-focus","",1,"brgmm-close","bf-icon-cross-slim",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","aria-label","Search","tabindex","0",1,"brgms-button","brgms-src-ic",3,"ng-aria-hidden","click"],["aria-hidden","true","tabindex","-1",1,"bf-icon-search"],["aria-hidden","true","tabindex","-1"],["class","brgms-button","href","/home/dashboard","zing-touch","",3,"ng-aria-hidden","zing-url","zing-url-feedback",4,"ngIf"],["zing-touch","",1,"brgms-button",3,"ng-aria-hidden","href","zing-url","zing-url-feedback"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-loans","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-bank","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-comp","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-tools","ng-focus","",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],["class","brgms-button brgms-list-bt af-icon-right-open-big","role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-sett","ng-focus","","id","sett-list-menu-name",3,"ng-aria-hidden","focus-when","no-click","click",4,"ngIf"],["class","brgm-user-info",3,"ng-aria-hidden","no-tab",4,"ngIf"],["class","brgm-guest-info",3,"ng-aria-hidden","no-tab",4,"ngIf"],["id","burger-menu-loans","role","menu","aria-labelledby","loans-list-menu-name",1,"brgm-content-extra"],["role","button","tabindex","0","aria-controls","burger-menu-loans","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["class","brgms-button","role","menuitem","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["id","burger-menu-bank","role","menu","aria-labelledby","banks-list-menu-name",1,"brgm-content-extra"],["role","button","tabindex","0","aria-controls","burger-menu-bank","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["role","menuitem","class","brgms-button","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngFor","ngForOf","ngForTrackBy"],["id","burger-menu-comp","role","menu","aria-labelledby","comp-list-menu-name",1,"brgm-content-extra"],["role","button","tabindex","0","aria-controls","burger-menu-comp","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["id","burger-menu-tools","role","menu","aria-labelledby","tools-list-menu-name",1,"brgm-content-extra"],["role","button","tabindex","0","aria-controls","burger-menu-tools","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["class","brgm-content-extra","id","burger-menu-sett","role","menu","aria-labelledby","sett-list-menu-name",3,"brgmm-display",4,"ngIf"],[1,"brgmm-imp-links"],["href","/home/dashboard","zing-touch","","aria-label","My Wallet",1,"brgm-button","brgmm-bt",3,"zing-url","zing-url-feedback"],["zing-touch","","aria-label","Credit Cards",1,"brgm-button","brgmm-bt",3,"href","zing-url","zing-url-feedback"],[1,"brgm-button","brgmm-bt","brgmm-bt-last"],["href","/home/dashboard","zing-touch","",1,"brgms-button",3,"ng-aria-hidden","zing-url","zing-url-feedback"],["role","button","tabindex","0","aria-haspopup","menu","aria-controls","burger-menu-sett","ng-focus","","id","sett-list-menu-name",1,"brgms-button","brgms-list-bt","af-icon-right-open-big",3,"ng-aria-hidden","focus-when","no-click","click"],[1,"brgm-user-info",3,"ng-aria-hidden","no-tab"],["tabindex","0",1,"brgm-user-img",3,"src"],[1,"brgm-user-act"],["tabindex","0",1,"brgm-user-nm",3,"ng-context"],[1,"brgm-user-bts"],["class","link brgmu-lnk","zing-touch","",3,"href","zing-url","zing-url-feedback",4,"ngIf"],["aria-hidden","true","tabindex","-1",4,"ngIf"],["zing-touch","","role","link","tabindex","0",1,"link","brgmu-lnk-2",3,"onTap"],["zing-touch","",1,"link","brgmu-lnk",3,"href","zing-url","zing-url-feedback"],[1,"brgm-guest-info",3,"ng-aria-hidden","no-tab"],["href","/join/login","zing-touch","",1,"btn","blue","no-decoration","btn-guest-inf","bold-font",3,"zing-url","zing-url-feedback"],["href","/join/","zing-touch","",1,"btn","blue","no-decoration","btn-guest-inf","bold-font",3,"zing-url","zing-url-feedback"],["role","menuitem","zing-touch","",1,"brgms-button",3,"href","zing-url","zing-url-feedback"],["id","burger-menu-sett","role","menu","aria-labelledby","sett-list-menu-name",1,"brgm-content-extra"],["role","button","tabindex","0","aria-controls","burger-menu-sett","ng-focus","",1,"brgms-button","brgm-ctex-title","semi-bold-font","bf-icon-left-open-big",3,"focus-when","no-click","click"],["action","/logout/","method","post","id","logout-form","hidden","true"],["type","hidden","name","redirect_to",3,"value"],["type","hidden","name","XSRF-TOKEN",3,"value"],["type","submit","id","logout-button","value","submit"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0),o.ɵɵelementStart(1,"div",1),o.ɵɵelementStart(2,"a",2),o.ɵɵelement(3,"span",3),o.ɵɵelement(4,"span",4),o.ɵɵelementStart(5,"span",5),o.ɵɵtext(6,"WalletHub"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(7,"div",6),o.ɵɵelement(8,"div",7),o.ɵɵelementStart(9,"form",8),o.ɵɵelement(10,"span",9),o.ɵɵelementStart(11,"input",10,11),o.ɵɵlistener("input",function(e){return t.Input(e)})("focus",function(e){return t.enableSearch(e)})("onTapDoc",function(e){return t.disableSearch(e)}),o.ɵɵelementEnd(),o.ɵɵtemplate(13,yi,1,0,"span",12),o.ɵɵtemplate(14,bi,2,0,"div",13),o.ɵɵtemplate(15,_i,2,0,"button",14),o.ɵɵtemplate(16,Si,2,0,"button",15),o.ɵɵtemplate(17,wi,2,0,"button",16),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵtemplate(18,Mi,4,5,"div",17),o.ɵɵelementStart(19,"nav",18),o.ɵɵtemplate(20,zi,2,2,"a",19),o.ɵɵtemplate(21,ji,4,6,"div",20),o.ɵɵtemplate(22,Ui,2,3,"a",21),o.ɵɵelementStart(23,"div",22),o.ɵɵlistener("mouseleave",function(){return t.ListShow(!1,"loan_list")}),o.ɵɵelementStart(24,"span",23),o.ɵɵlistener("onTapHover",function(e){return t.DeskListShow("loan_list",e)}),o.ɵɵtext(25,"Loans"),o.ɵɵelementEnd(),o.ɵɵtemplate(26,Hi,3,3,"div",24),o.ɵɵelementEnd(),o.ɵɵelementStart(27,"div",25),o.ɵɵlistener("mouseleave",function(){return t.ListShow(!1,"bank_list")}),o.ɵɵelementStart(28,"span",26),o.ɵɵlistener("onTapHover",function(e){return t.DeskListShow("bank_list",e)}),o.ɵɵtext(29,"Banking"),o.ɵɵelementEnd(),o.ɵɵtemplate(30,qi,3,3,"div",27),o.ɵɵelementEnd(),o.ɵɵelementStart(31,"div",28),o.ɵɵlistener("onTapHover",function(e){return t.DelayListShow("mobiletoggle","more_list",e)})("mouseleave",function(){return t.DelayListShow(!1,"more_list")}),o.ɵɵtext(32,"More"),o.ɵɵelementEnd(),o.ɵɵelementStart(33,"div",29,30),o.ɵɵlistener("onTapHover",function(){return t.DelayListShow(!0,"more_list")})("mouseleave",function(){return t.DelayListShow(!1,"more_list")}),o.ɵɵelementStart(35,"div",31),o.ɵɵlistener("mouseleave",function(){return t.CompListShow(!1,"comp_list")}),o.ɵɵelementStart(36,"span",32),o.ɵɵtext(37,"Banking"),o.ɵɵelementEnd(),o.ɵɵtemplate(38,Zi,2,5,"div",33),o.ɵɵelementStart(39,"span",34),o.ɵɵlistener("onTapHover",function(e){return t.DeskListShow("comp_list",e)}),o.ɵɵtext(40,"Companies"),o.ɵɵelementEnd(),o.ɵɵtemplate(41,Yi,6,6,"ng-container",35),o.ɵɵelementEnd(),o.ɵɵelementStart(42,"div",31),o.ɵɵlistener("mouseleave",function(){return t.CompListShow(!1,"tools_list")}),o.ɵɵelementStart(43,"span",36),o.ɵɵtext(44,"Loans"),o.ɵɵelementEnd(),o.ɵɵtemplate(45,Xi,2,2,"div",37),o.ɵɵelementStart(46,"span",38),o.ɵɵlistener("onTapHover",function(e){return t.DeskListShow("tools_list",e)}),o.ɵɵtext(47,"Tools"),o.ɵɵelementEnd(),o.ɵɵtemplate(48,tr,6,6,"ng-container",35),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵtemplate(49,rr,4,4,"div",39),o.ɵɵtemplate(50,or,2,1,"span",40),o.ɵɵtemplate(51,ar,2,2,"a",41),o.ɵɵelementEnd(),o.ɵɵtemplate(52,_r,44,71,"nav",42),o.ɵɵelementEnd(),o.ɵɵtemplate(53,Sr,4,2,"form",43)),2&e&&(o.ɵɵclassProp("thn-guest-user",!t.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ng-hidden",t.searchMobEnabled),o.ɵɵadvance(1),o.ɵɵproperty("zing-url",!0)("href",t.homeUrl,o.ɵɵsanitizeUrl),o.ɵɵadvance(5),o.ɵɵproperty("ngClass",o.ɵɵpureFunction3(60,wr,t.searchEnabled,t.isLoggedIn,t.searchMobEnabled)),o.ɵɵattribute("aria-modal",t.searchMobEnabled)("role",t.searchMobEnabled?"dialog":"none"),o.ɵɵadvance(1),o.ɵɵproperty("ng-aria-live",t.live_status_search),o.ɵɵadvance(1),o.ɵɵclassProp("both",t.searchEnabled)("front",!t.searchEnabled),o.ɵɵadvance(2),o.ɵɵproperty("value",t.searchVal)("focus-when",t.searchMobEnabled),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",!(t.loading_results||!t.searchEnabled)),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.loading_results),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.searchEnabled),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.searchMobEnabled||t.searchEnabled),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.searchMobEnabled),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",(t.searchEnabled||t.searchMobEnabled)&&t.resultData.length>0&&t.showResult),o.ɵɵadvance(1),o.ɵɵclassProp("brgm-guest-user",!t.isLoggedIn),o.ɵɵproperty("ng-hidden",t.searchMobEnabled||t.searchEnabled),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!t.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.isLoggedIn),o.ɵɵadvance(2),o.ɵɵclassProp("active",t.loan_list),o.ɵɵattribute("aria-expanded",t.loan_list),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(2),o.ɵɵclassProp("active",t.bank_list),o.ɵɵattribute("aria-expanded",t.bank_list),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(1),o.ɵɵclassProp("active",t.comp_list),o.ɵɵattribute("aria-expanded",t.more_list),o.ɵɵadvance(2),o.ɵɵclassProp("server-render",!t.is_web)("ng-enter-element",!t.desktop_more_list),o.ɵɵproperty("ng-hidden",!(t.more_list||t.desktop_more_list)),o.ɵɵadvance(5),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(1),o.ɵɵclassProp("active",t.comp_list),o.ɵɵproperty("ng-attribute-when",t.desktop_more_list)("ng-attribute",o.ɵɵpureFunction0(64,Er)),o.ɵɵattribute("aria-expanded",t.comp_list),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(4),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(1),o.ɵɵclassProp("active",t.comp_list),o.ɵɵattribute("aria-expanded",t.tools_list),o.ɵɵadvance(2),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!t.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!t.isLoggedIn),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!t.simple_version),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.is_web))},directives:[En,hn,o.NgClass,Cn,oi,o.NgIf,kn,o.NgStyle,o.NgForOf,Tn,On,o.NgSwitch,o.NgSwitchCase,Pn],encapsulation:2}),e}(),xr=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[Nn,o.CommonModule,ai]]}),e}(),Pr=e("systemjs");function Or(){var e=Et(),t={captureException:function(e){console.error(e)},captureMessage:function(e,t){console.info(e)},withScope:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},Severity:{},addBreadcrumb:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}};return new Promise(function(n,i){e?n(t):Pr.import("package:/system/raven-lib").then(function(i){var r=i.Raven;if(e)n(t);else{if(!Pt()){var o={id:ni.get("support_id")||"--",username:ni.get("pub_id")||"--"};"--"==o.id&&"--"!==o.username&&(o.id=o.username,delete o.username),"--"!==o.username&&(r.configureScope?r.configureScope(function(e){e.setExtra("id",o.id),e.setExtra("username",o.username)}):r.setUserContext(o))}n(r)}},function(e){console.warn("Cannot load raven js library"),console.error(e),n(t)})})}var Tr,Cr,Nr=function(){function e(){}return e.prototype.handleError=function(e){Or().then(function(t){var n=e.originalError||e;n&&(t.captureException(n),console.error(n))})},e}(),Ir=Ir||function(e,t){var n={},i=n.lib={},r=function(){},o=i.Base={extend:function(e){r.prototype=this;var t=new r;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var r=0;r<e;r++)t[i+r>>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else if(65535<n.length)for(r=0;r<e;r+=4)t[i+r>>>2]=n[r>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),s=n.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,o=this.blockSize,s=r/(4*o);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,r=e.min(4*t,r),t){for(var l=0;l<t;l+=o)this._doProcessBlock(i,l);l=i.splice(0,t),n.sigBytes-=r}return new a.init(l,r)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=h.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=n.algo={};return n}(Math);Cr=(Tr=Ir).lib.WordArray,Tr.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp(),e=[];for(var r=0;r<n;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a<n;a++)e.push(i.charAt(o>>>6*(3-a)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;(i=n.charAt(64))&&-1!=(i=e.indexOf(i))&&(t=i);for(var i=[],r=0,o=0;o<t;o++)if(o%4){var a=n.indexOf(e.charAt(o-1))<<o%4*2,s=n.indexOf(e.charAt(o))>>>6-o%4*2;i[r>>>2]|=(a|s)<<24-r%4*8,r++}return Cr.create(i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,n,i,r,o,a){return((e=e+(t&n|~t&i)+r+a)<<o|e>>>32-o)+t}function n(e,t,n,i,r,o,a){return((e=e+(t&i|n&~i)+r+a)<<o|e>>>32-o)+t}function i(e,t,n,i,r,o,a){return((e=e+(t^n^i)+r+a)<<o|e>>>32-o)+t}function r(e,t,n,i,r,o,a){return((e=e+(n^(t|~i))+r+a)<<o|e>>>32-o)+t}for(var o=Ir,a=(l=o.lib).WordArray,s=l.Hasher,l=o.algo,c=[],u=0;64>u;u++)c[u]=4294967296*e.abs(e.sin(u+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=e[l=o+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[o+0],u=(s=e[o+1],e[o+2]),h=e[o+3],d=e[o+4],m=e[o+5],p=e[o+6],f=e[o+7],g=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],_=e[o+12],S=e[o+13],w=e[o+14],E=e[o+15],k=t(k=a[0],O=a[1],P=a[2],x=a[3],l,7,c[0]),x=t(x,k,O,P,s,12,c[1]),P=t(P,x,k,O,u,17,c[2]),O=t(O,P,x,k,h,22,c[3]);k=t(k,O,P,x,d,7,c[4]),x=t(x,k,O,P,m,12,c[5]),P=t(P,x,k,O,p,17,c[6]),O=t(O,P,x,k,f,22,c[7]),k=t(k,O,P,x,g,7,c[8]),x=t(x,k,O,P,v,12,c[9]),P=t(P,x,k,O,y,17,c[10]),O=t(O,P,x,k,b,22,c[11]),k=t(k,O,P,x,_,7,c[12]),x=t(x,k,O,P,S,12,c[13]),P=t(P,x,k,O,w,17,c[14]),k=n(k,O=t(O,P,x,k,E,22,c[15]),P,x,s,5,c[16]),x=n(x,k,O,P,p,9,c[17]),P=n(P,x,k,O,b,14,c[18]),O=n(O,P,x,k,l,20,c[19]),k=n(k,O,P,x,m,5,c[20]),x=n(x,k,O,P,y,9,c[21]),P=n(P,x,k,O,E,14,c[22]),O=n(O,P,x,k,d,20,c[23]),k=n(k,O,P,x,v,5,c[24]),x=n(x,k,O,P,w,9,c[25]),P=n(P,x,k,O,h,14,c[26]),O=n(O,P,x,k,g,20,c[27]),k=n(k,O,P,x,S,5,c[28]),x=n(x,k,O,P,u,9,c[29]),P=n(P,x,k,O,f,14,c[30]),k=i(k,O=n(O,P,x,k,_,20,c[31]),P,x,m,4,c[32]),x=i(x,k,O,P,g,11,c[33]),P=i(P,x,k,O,b,16,c[34]),O=i(O,P,x,k,w,23,c[35]),k=i(k,O,P,x,s,4,c[36]),x=i(x,k,O,P,d,11,c[37]),P=i(P,x,k,O,f,16,c[38]),O=i(O,P,x,k,y,23,c[39]),k=i(k,O,P,x,S,4,c[40]),x=i(x,k,O,P,l,11,c[41]),P=i(P,x,k,O,h,16,c[42]),O=i(O,P,x,k,p,23,c[43]),k=i(k,O,P,x,v,4,c[44]),x=i(x,k,O,P,_,11,c[45]),P=i(P,x,k,O,E,16,c[46]),k=r(k,O=i(O,P,x,k,u,23,c[47]),P,x,l,6,c[48]),x=r(x,k,O,P,f,10,c[49]),P=r(P,x,k,O,w,15,c[50]),O=r(O,P,x,k,m,21,c[51]),k=r(k,O,P,x,_,6,c[52]),x=r(x,k,O,P,h,10,c[53]),P=r(P,x,k,O,y,15,c[54]),O=r(O,P,x,k,s,21,c[55]),k=r(k,O,P,x,g,6,c[56]),x=r(x,k,O,P,E,10,c[57]),P=r(P,x,k,O,p,15,c[58]),O=r(O,P,x,k,S,21,c[59]),k=r(k,O,P,x,d,6,c[60]),x=r(x,k,O,P,b,10,c[61]),P=r(P,x,k,O,u,15,c[62]),O=r(O,P,x,k,v,21,c[63]);a[0]=a[0]+k|0,a[1]=a[1]+O|0,a[2]=a[2]+P|0,a[3]=a[3]+x|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296);for(n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process(),n=(t=this._hash).words,i=0;4>i;i++)r=n[i],n[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=s._createHelper(l),o.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=Ir,n=(e=t.lib).Base,i=e.WordArray,r=(e=t.algo).EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(s=this.cfg).hasher.create(),r=i.create(),o=r.words,a=s.keySize,s=s.iterations;o.length<a;){l&&n.update(l);var l=n.update(e).finalize(t);n.reset();for(var c=1;c<s;c++)l=n.finalize(l),n.reset();r.concat(l)}return r.sigBytes=4*a,r}});t.EvpKDF=function(e,t,n){return r.create(n).compute(e,t)}}(),Ir.lib.Cipher||function(e){var t=(m=Ir).lib,n=t.Base,i=t.WordArray,r=t.BufferedBlockAlgorithm,o=m.enc.Base64,a=m.algo.EvpKDF,s=t.Cipher=r.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,i){return("string"==typeof n?p:d).encrypt(e,t,n,i)},decrypt:function(t,n,i){return("string"==typeof n?p:d).decrypt(e,t,n,i)}}}});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=m.mode={},c=function(e,t,n){var i=this._iv;i?this._iv=void 0:i=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=i[r]},u=(t.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();u.Encryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;c.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),u.Decryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=e.slice(t,t+i);n.decryptBlock(e,t),c.call(this,e,t,i),this._prevBlock=r}}),l=l.CBC=u,u=(m.pad={}).Pkcs7={pad:function(e,t){for(var n,r=(n=(n=4*t)-e.sigBytes%n)<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(r);n=i.create(o,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:u}),reset:function(){s.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var h=t.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),d=(l=(m.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){var t=(e=o.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var n=i.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return h.create({ciphertext:e,salt:n})}},t.SerializableCipher=n.extend({cfg:n.extend({format:l}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i);return t=r.finalize(t),r=r.cfg,h.create({ciphertext:t,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),m=(m.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=i.random(8)),e=a.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,h.create({key:e,iv:n,salt:r})}},p=t.PasswordBasedCipher=d.extend({cfg:d.cfg.extend({kdf:m}),encrypt:function(e,t,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,(e=d.encrypt.call(this,e,t,n.key,i)).mixIn(n),e},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt),i.iv=n.iv,d.decrypt.call(this,e,t,n.key,i)}})}(),function(){for(var e=Ir,t=e.lib.BlockCipher,n=e.algo,i=[],r=[],o=[],a=[],s=[],l=[],c=[],u=[],h=[],d=[],m=[],p=0;256>p;p++)m[p]=128>p?p<<1:p<<1^283;var f=0,g=0;for(p=0;256>p;p++){var v=(v=g^g<<1^g<<2^g<<3^g<<4)>>>8^255&v^99;i[f]=v,r[v]=f;var y=m[f],b=m[y],_=m[b],S=257*m[v]^16843008*v;o[f]=S<<24|S>>>8,a[f]=S<<16|S>>>16,s[f]=S<<8|S>>>24,l[f]=S,S=16843009*_^65537*b^257*y^16843008*f,c[v]=S<<24|S>>>8,u[v]=S<<16|S>>>16,h[v]=S<<8|S>>>24,d[v]=S,f?(f=y^m[m[m[_^y]]],g^=m[m[g]]):f=g=1}var w=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=(n=this._key).words,t=n.sigBytes/4,n=4*((this._nRounds=t+6)+1),r=this._keySchedule=[],o=0;o<n;o++)if(o<t)r[o]=e[o];else{var a=r[o-1];o%t?6<t&&4==o%t&&(a=i[a>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a]):(a=i[(a=a<<8|a>>>24)>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a],a^=w[o/t|0]<<24),r[o]=r[o-t]^a}for(e=this._invKeySchedule=[],t=0;t<n;t++)o=n-t,a=t%4?r[o]:r[o-4],e[t]=4>t||4>=o?a:c[i[a>>>24]]^u[i[a>>>16&255]]^h[i[a>>>8&255]]^d[i[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,u,h,d,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],h=e[t+2]^n[2],d=e[t+3]^n[3],m=4,p=1;p<l;p++){var f=i[c>>>24]^r[u>>>16&255]^o[h>>>8&255]^a[255&d]^n[m++],g=i[u>>>24]^r[h>>>16&255]^o[d>>>8&255]^a[255&c]^n[m++],v=i[h>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&u]^n[m++];d=i[d>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&h]^n[m++],c=f,u=g,h=v}f=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[m++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[m++],v=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[m++],d=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[m++],e[t]=f,e[t+1]=g,e[t+2]=v,e[t+3]=d},keySize:8});e.AES=t._createHelper(n)}();var Fr,Ar=Ir,Lr=new Promise(function(e){Fr=e});var Vr=e("systemjs"),Dr="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8mDjlmjdBvK7eonacVtuNKoGu\nY1uJtpLYjp3ptzeT1ZgygwG+gA19HvbPZ4mjf9Iy7RH41O58GlUrqL3/mi6rdEFe\nbBa/vqmVtb49+sEGbwqjw94qDLsOGa4luf4xInoswywP/+HuxP1nn+NYyER8Ugsh\nsvo0gaiMFXiv9cfn1wIDAQAB",Mr="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDsDGIqrmDXfzYlILwnJ0SSe5le\nfQX6EmTmOizn0YHT6YYdWlnV2GEBMU2Po6aCg8onLfGtpHXx3WV254GNUBB69jn8\n5Q/dMlhLaQ5E1kWCBRHPsqhHLlz21l3dRJafelXQ9ITgfgB+5N1WHjAA9kMOqz8P\n+2OImUt+qIKSkOxqmQIDAQAB";function zr(e){return function(e){if(Array.isArray(e))return Rr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vr.registerDynamic("Encryption",["jsencrypt"],!0,function(){var t=new(window.JSEncrypt?window.JSEncrypt:e("jsencrypt").JSEncrypt);t.setPublicKey("PROD"==nn.getEnv()||!kt()&&"STAGE"==nn.getEnv()?Mr:Dr);var n=Zt("wh-",!0),i=t.encrypt(n),r={APIEncrypt:function(e){return t.encrypt(e)},encrypt:function(e){return Ar.AES.encrypt(e.toString(),n).toString()},decrypt:function(e){return Ar.AES.decrypt(e,n).toString(Ar.enc.Utf8)},get key(){return n},_setkey:function(e){n=e,i=t.encrypt(n)},send:function(e){return void 0===e&&(e={method:"POST",encryptprops:[],v2:!1}),e.encryptprops||(e.encryptprops=[]),e.encryptprops.forEach(function(t){if(e.data[t])try{e.data[t]=r.encrypt(e.data[t])}catch(e){}}),e.v2?(e.data.EncryptionKey=i,e.headers=e.headers||{},e.headers.EncryptionKey=i):e.data.publickey=i,delete e.encryptprops,Jn(e)}};return r});var Br=!1;if("undefined"!=typeof window){var jr={get passive(){Br=!0}};window.addEventListener("testPassive",null,jr),window.removeEventListener("testPassive",null,jr)}var Ur,Wr,Hr="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Gr=[],qr=!1,Kr=-1,$r=function(e){return Gr.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},Zr=function(e){var t=e||window.event;return!!$r(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Qr=function(e,t){if(e){if(!Gr.some(function(t){return t.targetElement===e})){var n={targetElement:e,options:t||{}};Gr=[].concat(zr(Gr),[n]),Hr?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Kr=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Kr;!$r(e.target)&&(t&&0===t.scrollTop&&n>0?Zr(e):function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Zr(e):e.stopPropagation())}(t,e)},qr||(document.addEventListener("touchmove",Zr,Br?{passive:!1}:void 0),qr=!0)):function(e){if(void 0===Wr){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Wr=document.body.style.paddingRight,document.body.style.paddingRight="".concat(n,"px"))}void 0===Ur&&(Ur=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Yr=function(e){e?(Gr=Gr.filter(function(t){return t.targetElement!==e}),Hr?(e.ontouchstart=null,e.ontouchmove=null,qr&&0===Gr.length&&(document.removeEventListener("touchmove",Zr,Br?{passive:!1}:void 0),qr=!1)):Gr.length||(void 0!==Wr&&(document.body.style.paddingRight=Wr,Wr=void 0),void 0!==Ur&&(document.body.style.overflow=Ur,Ur=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Jr=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Xr=Jr.join(","),eo="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,to=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},no=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},io=function(e){return"INPUT"===e.tagName},ro=function(e){return function(e){return io(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},oo=function(e,t){return!(t.disabled||function(e){return io(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=eo.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eo.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var i=e.getBoundingClientRect(),r=i.width,o=i.height;return 0===r&&0===o}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(io(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},ao=function(e,t){var n=[],i=[];return function(e,t,n){var i=Array.prototype.slice.apply(e.querySelectorAll(Xr));return t&&eo.call(e,Xr)&&i.unshift(e),i=i.filter(n)}(e,(t=t||{}).includeContainer,function(e,t){return!(!oo(e,t)||ro(t)||to(t)<0)}.bind(null,t)).forEach(function(e,t){var r=to(e);0===r?n.push(e):i.push({documentOrder:t,tabIndex:r,node:e})}),i.sort(no).map(function(e){return e.node}).concat(n)},so=Jr.concat("iframe").join(",");function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uo,ho=(uo=[],{activateTrap:function(e){if(uo.length>0){var t=uo[uo.length-1];t!==e&&t.pause()}var n=uo.indexOf(e);-1===n?uo.push(e):(uo.splice(n,1),uo.push(e))},deactivateTrap:function(e){var t=uo.indexOf(e);-1!==t&&uo.splice(t,1),uo.length>0&&uo[uo.length-1].unpause()}}),mo=function(e){return setTimeout(e,0)},po=function(e,t){var n=-1;return e.every(function(e,i){return!t(e)||(n=i,!1)}),n},fo=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},go=function(e,t){var n,i=document,r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach(function(t){co(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},s=function(e){return o.containers.some(function(t){return t.contains(e)})},l=function(e){var t=r[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=i.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n},c=function(){var e;if(!1===a({},"initialFocus"))return!1;if(null!==l("initialFocus"))e=l("initialFocus");else if(s(i.activeElement))e=i.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(o.tabbableGroups=o.containers.map(function(e){var t=ao(e);if(t.length>0)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}}).filter(function(e){return!!e}),o.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!r.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},d=function(e){var t=l("setReturnFocus");return t||e},m=function(e){s(e.target)||(fo(r.clickOutsideDeactivates,e)?n.deactivate({returnFocus:r.returnFocusOnDeactivate&&!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==eo.call(e,so)&&oo(t,e)}(e.target)}):fo(r.allowOutsideClick,e)||e.preventDefault())},p=function(e){var t=s(e.target);t||e.target instanceof Document?t&&(o.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),h(o.mostRecentlyFocusedNode||c()))},f=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==fo(r.escapeDeactivates))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){u();var t=null;if(o.tabbableGroups.length>0){var n=po(o.tabbableGroups,function(t){return t.container.contains(e.target)});if(n<0)t=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var i=po(o.tabbableGroups,function(t){var n=t.firstTabbableNode;return e.target===n});if(i<0&&o.tabbableGroups[n].container===e.target&&(i=n),i>=0){var r=0===i?o.tabbableGroups.length-1:i-1;t=o.tabbableGroups[r].lastTabbableNode}}else{var a=po(o.tabbableGroups,function(t){var n=t.lastTabbableNode;return e.target===n});if(a<0&&o.tabbableGroups[n].container===e.target&&(a=n),a>=0){var s=a===o.tabbableGroups.length-1?0:a+1;t=o.tabbableGroups[s].firstTabbableNode}}}else t=l("fallbackFocus");t&&(e.preventDefault(),h(t))}(e)},g=function(e){fo(r.clickOutsideDeactivates,e)||s(e.target)||fo(r.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},v=function(){if(o.active)return ho.activateTrap(n),o.delayInitialFocusTimer=r.delayInitialFocus?mo(function(){h(c())}):h(c()),i.addEventListener("focusin",p,!0),i.addEventListener("mousedown",m,{capture:!0,passive:!1}),i.addEventListener("touchstart",m,{capture:!0,passive:!1}),i.addEventListener("click",g,{capture:!0,passive:!1}),i.addEventListener("keydown",f,{capture:!0,passive:!1}),n},y=function(){if(o.active)return i.removeEventListener("focusin",p,!0),i.removeEventListener("mousedown",m,!0),i.removeEventListener("touchstart",m,!0),i.removeEventListener("click",g,!0),i.removeEventListener("keydown",f,!0),n};return(n={activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),r=a(e,"checkCanFocusTrap");r||u(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=i.activeElement,t&&t();var s=function(){r&&u(),v(),n&&n()};return r?(r(o.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,y(),o.active=!1,o.paused=!1,ho.deactivateTrap(n);var t=a(e,"onDeactivate"),i=a(e,"onPostDeactivate"),r=a(e,"checkCanReturnFocus");t&&t();var s=a(e,"returnFocus","returnFocusOnDeactivate"),l=function(){mo(function(){s&&h(d(o.nodeFocusedBeforeActivation)),i&&i()})};return s&&r?(r(d(o.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,y(),this)},unpause:function(){return o.paused&&o.active?(o.paused=!1,u(),v(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map(function(e){return"string"==typeof e?i.querySelector(e):e}),o.active&&u(),this}}).updateContainerElements(e),n},vo=function(){function e(e){this._el=e}return Object.defineProperty(e.prototype,"focustrap",{get:function(){return this._focustrap},set:function(e){this._focustrap=e,Pt()||(e?(this._trap||(this.returnFocusTo&&!this._static_options.setReturnFocus&&(this._static_options.returnFocusOnDeactivate=!0,this._static_options.setReturnFocus=this.returnFocusTo),this._trap=go(this._el.nativeElement,this._static_options)),this._trap.activate()):this._trap&&this._trap.deactivate())},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){Pt()||(this._static_options=Object.assign({clickOutsideDeactivates:!0,preventScroll:!0,returnFocusOnDeactivate:!1},this.options||{}),this._static_options.fallbackFocus=this._el.nativeElement,this._focustrap&&(this.returnFocusTo&&(this._static_options.returnFocusOnDeactivate=!0,this._static_options.setReturnFocus=this.returnFocusTo),this._trap=go(this._el.nativeElement,this._static_options),this._trap.activate()))},e.prototype.ngOnDestroy=function(){this._trap&&this._trap.deactivate()},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-focus-trap",""]],inputs:{options:["ng-trap-options","options"],returnFocusTo:["return-focus","returnFocusTo"],focustrap:["ng-focus-trap","focustrap"]}}),e}(),yo=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({}),e}(),bo=["content"],_o=["dialog"];function So(e,t){}function wo(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",6),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().Close()}),o.ɵɵelementEnd()}2&e&&o.ɵɵproperty("zing-no-touch",!0)}var Eo=function(e,t,n){return{opened:e,mobilefullscreen:t,"ng-md-fullscreen":n}};new Promise(function(t,n){e(["css:/modal-dialog.css"],function(e){t(d(e))},n)}).then(function(){},function(){});var ko=function(){function e(e,t,n){this._resolver=e,this._zone=t,this._dservice=n,this.opened=!1,this.ready=!1,this.hasclose=!0,this.onClose=new o.EventEmitter,this.fullInMobile=!1,this.fullinmobileheader=!1,this.fullscreenmode=!1,this.dialog_title="",this.dialog_title_id=null,this.dialog_title_id=Zt("md-")}return e.prototype._destroyActiveComponent=function(){this._activeComponent&&(this._activeComponent.destroy(),this._activeComponent=null,this.container.clear()),jn.emit("to-top-arrow:show",!0)},e.prototype.Close=function(e,t){var n=this;this.opened=!1,this.return_focus_to=null,setTimeout(function(){en(function(){n._zone.run(function(){n._destroyActiveComponent(),n.ready=!1,t||n._dservice.canScroll(!0)})})},300),this.onClose.emit(e),this.myId="",this._scroll_lock&&(this._dservice.canScroll(!0),Yr(this.myEl.nativeElement),this._scroll_lock=!1),this._headerWatch&&(this._headerWatch.unsubscribe(),this._headerWatch=null),this.fullscreenmode&&jn.emit("header:visibility",!0,!0),this.fullInMobile&&this.fullinmobileheader&&ti().classList.remove("ng-md-fullscreenmobile")},e.prototype.Open=function(e,t,n){var i=this;this.opened=!0,this.ready=!0,this._destroyActiveComponent();var r=this._resolver.resolveComponentFactory(e);this._activeComponent=this.container.createComponent(r);var o=this._activeComponent.instance;return o.data=t,n&&(n.hostid&&(this.myId=n.hostid),"withclose"in n&&(this.hasclose=n.withclose),n.return_focus_to&&(this.return_focus_to=n.return_focus_to)),this.fullscreenmode?(jn.emit("header:visibility",!1,!0),this.hasclose=!1):this._headerWatch=jn.subscribe("header:position-change",function(e){e&&e>0&&i.myEl?i.myEl.nativeElement.style.top=e+"px":i.myEl.nativeElement.style.top=""}),o.closeDialog=function(e){i._zone.run(function(){i.Close(e)})},!this._scroll_lock&&this.myEl&&(this._dservice.canScroll(!1),Qr(this.myEl.nativeElement),this._scroll_lock=!0),jn.emit("to-top-arrow:show",!1),this.fullInMobile&&this.fullinmobileheader&&ti().classList.add("ng-md-fullscreenmobile"),this},e.prototype.ngOnDestroy=function(){this._destroyActiveComponent(),this._headerWatch&&(this._headerWatch.unsubscribe(),this._headerWatch=null),this.onClose.complete&&this.onClose.complete(),this.fullscreenmode&&jn.emit("header:visibility",!0,!0),this.fullInMobile&&this.fullinmobileheader&&ti().classList.remove("ng-md-fullscreenmobile")},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ComponentFactoryResolver),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(gn))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["modal-dialog"]],viewQuery:function(e,t){if(1&e&&(o.ɵɵviewQuery(bo,5,o.ViewContainerRef),o.ɵɵviewQuery(_o,5)),2&e){var n=void 0;o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.container=n.first),o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.myEl=n.first)}},hostVars:1,hostBindings:function(e,t){2&e&&o.ɵɵattribute("id",t.myId)},inputs:{fullInMobile:["mobile-full","fullInMobile"],fullinmobileheader:["mobile-full-no-header","fullinmobileheader"],fullscreenmode:["fullscreen","fullscreenmode"],dialog_title:["title","dialog_title"]},outputs:{onClose:"onClose"},decls:8,vars:13,consts:[[1,"ng-modal-dialog",3,"ngClass"],["dialog",""],["role","dialog","aria-modal","true","tabindex","0",1,"ng-modal-container",3,"ng-focus-trap","return-focus"],["hidden","true"],["content",""],["class","close-btn af-icon-cross-slim","zing-touch","","aria-label","Close overlay","role","button","tabindex","0",3,"zing-no-touch","onTap",4,"ngIf"],["zing-touch","","aria-label","Close overlay","role","button","tabindex","0",1,"close-btn","af-icon-cross-slim",3,"zing-no-touch","onTap"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0,1),o.ɵɵelementStart(2,"div",2),o.ɵɵelementStart(3,"span",3),o.ɵɵtext(4),o.ɵɵelementEnd(),o.ɵɵtemplate(5,So,0,0,"ng-template",null,4,o.ɵɵtemplateRefExtractor),o.ɵɵtemplate(7,wo,1,1,"div",5),o.ɵɵelementEnd(),o.ɵɵelementEnd()),2&e&&(o.ɵɵproperty("ngClass",o.ɵɵpureFunction3(9,Eo,t.opened,t.fullInMobile,t.fullscreenmode)),o.ɵɵadvance(2),o.ɵɵclassProp("ready",t.ready),o.ɵɵproperty("ng-focus-trap",t.ready)("return-focus",t.return_focus_to),o.ɵɵattribute("aria-labelledby",t.dialog_title_id),o.ɵɵadvance(1),o.ɵɵattribute("id",t.dialog_title_id),o.ɵɵadvance(1),o.ɵɵtextInterpolate(t.dialog_title),o.ɵɵadvance(3),o.ɵɵproperty("ngIf",t.hasclose))},directives:[o.NgClass,vo,o.NgIf,hn],encapsulation:2}),e}(),xo=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn,yo]]}),e}(),Po=["class","progress-indicator-container"];function Oo(e,t){if(1&e&&o.ɵɵelement(0,"p",6),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("innerHTML",n.titlecontent,o.ɵɵsanitizeHtml)}}function To(e,t){1&e&&o.ɵɵelement(0,"br")}function Co(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"p"),o.ɵɵtext(1,"If the issue persists please "),o.ɵɵelementStart(2,"span",7),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ContactUs()}),o.ɵɵtext(3,"email us"),o.ɵɵelementEnd(),o.ɵɵtext(4),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(4),o.ɵɵtextInterpolate1(" and mention: ",i.data.type,"")}}function No(e,t){if(1&e&&o.ɵɵelement(0,"p",8),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("innerHTML",n.customcontent,o.ɵɵsanitizeHtml)}}var Io=["appErrors"],Fo=e("systemjs");function Ao(e,t){Or().then(function(n){n.withScope(function(i){var r={status:e?e.status:null,response:e&&e.data?JSON.stringify(e.data):null,path:window.location.pathname||window.location.href,arguments:{url:e&&e.options?e.options.url:null,action:e&&e.options&&e.options.data&&(e.options.data.action||e.options.data.customAction)||null,query:e&&e.options?"GET"==e.options.method?e.options.data:e.options.query:null}},o=r.arguments.action,a=r.arguments.url;(o||a)&&(t+="("+(o||a)+")"),i.setExtras(r),n.captureMessage(t,n.Severity.Warning)})})}Pt()||(jn.subscribe("$server:error",function(e){Ao(e,"NG Request Failed : Server Error")}),jn.subscribe("$server:whiderror",function(e){Ao(e,"NG Request Failed : WHID Fetch Error")}),jn.subscribe("$server:csrferror",function(e){console.log(e),Ao(e,"NG Request Failed : Xsrf Token Fetch Error")}));var Lo=function(){function e(){this.inprogress=!1,this.data={},this.emailparams={subject:"Internal Error",body:"Please help me with an error I encountered while using WalletHub. Details are below:\nIP address:{0}\nSupport ID:{1}\nCode:{2}"},this.iserror=!1,this.titlecontent="",this.customcontent=""}return e.prototype._openMail=function(){var e=jt(this.emailparams,!0);window.top.open("mailto:help@wallethub.com?"+e,wt()?"_self":"_system")},e.prototype._stopProgress=function(){var e=this;setTimeout(function(){e.inprogress=!1},300)},e.prototype.ContactUs=function(){var e,t=this;this.inprogress=!0,(e=Dn()+"?action=get-my-ip",new Promise(function(t,n){var i=function(){Gn(e).then(function(e){e.ip?t(e.ip):n(null)},function(){n(null)})};Gn("https://api.ipify.org/?format=json").then(function(e){e.ip?t(e.ip):i()},function(){i()})})).then(function(e){t._stopProgress(),t.emailparams.body=It(t.emailparams.body,[e,"--",t.data.type]),t._openMail()},function(){t._stopProgress(),t.emailparams.body=It(t.emailparams.body,["--","--",t.data.type]),t._openMail()})},e.prototype.ngOnInit=function(){this.data.maintainance?(this.titlecontent=this.data.maintainancetitle||"Sorry! Be Right Back in 5 minutes.",this.customcontent=this.data.maintainancecontent||"Our engineers are upgrading our servers."):this.data.offline?(this.titlecontent="Connection could not be established",this.customcontent="Please make sure your internet is working properly and try again."):this.data.custom?(this.customcontent=this.data.content,this.titlecontent=this.data.title):(this.titlecontent="Oops, we encountered an error. Please retry.",this.iserror=!!this.data.type)},e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["error-message-overlay",8,"progress-indicator-container"]],attrs:Po,decls:9,vars:6,consts:[["class","bold-font",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"overlay-row","center"],["zing-touch","",1,"btn","blue","fixed-w-c",3,"onTap"],[1,"progress-indicator"],[1,"bold-font",3,"innerHTML"],["zing-touch","",1,"link",3,"onTap"],[3,"innerHTML"]],template:function(e,t){1&e&&(o.ɵɵtemplate(0,Oo,1,1,"p",0),o.ɵɵtemplate(1,To,1,0,"br",1),o.ɵɵtemplate(2,Co,5,1,"p",1),o.ɵɵtemplate(3,No,1,1,"p",2),o.ɵɵelementStart(4,"div",3),o.ɵɵelementStart(5,"button",4),o.ɵɵlistener("onTap",function(){return t.closeDialog()}),o.ɵɵtext(6,"Ok"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(7,"div",5),o.ɵɵelement(8,"i"),o.ɵɵelementEnd()),2&e&&(o.ɵɵproperty("ngIf",t.titlecontent),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.iserror||t.customcontent),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.iserror),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.customcontent),o.ɵɵadvance(4),o.ɵɵclassProp("visible",t.inprogress))},directives:[o.NgIf,hn],styles:["[_nghost-%COMP%] { position:relative; text-align: center; max-width: 100%; width: 312px; display: block;}"]}),e}(),Vo=function(){function e(e){this._scservice=e}return e.prototype._onClose=function(){var e=this;this._error_showing=!0;var t=this._appErrors.onClose.subscribe(function(){e._error_showing=!1,t&&t.unsubscribe()})},e.prototype.ngOnInit=function(){var e=this;jn.subscribe("$server:error",function(){e._error_showing||(e._appErrors.Open(Lo,{type:"Internal Error"},{withclose:!1}),e._onClose())}),jn.subscribe("$server:csrferror",function(){e._error_showing||(e._appErrors.Open(Lo,{type:"CSRF Error"},{withclose:!1}),e._onClose())}),jn.subscribe("$server:whiderror",function(){e._error_showing||(e._appErrors.Open(Lo,{type:"WHID Error"},{withclose:!1}),e._onClose())}),jn.subscribe("$server:maintainance",function(){e._error_showing||(e._appErrors.Open(Lo,{maintainance:!0},{withclose:!1}),e._onClose())}),jn.subscribe("$device:no-internet",function(){e._error_showing||(e._appErrors.Open(Lo,{offline:!0},{withclose:!1}),e._onClose())}),jn.subscribe("$app:error",function(t){e._error_showing||(e._appErrors.Open(Lo,{custom:!t.generic,title:t.title,content:t.content}),e._onClose())});var t=this._scservice.overwrite_to_body?window:this._scservice.element;jn.subscribe("$shortcodes:set",function(){Promise.all([Fo.import("shortcode-js"),Fo.import("css:/shortcodes.css")]).then(function(e){var n=e[0];n.ClearPrsWidgets(),n.SetPrsWidgets(t,Ln()),n.ClearBoxes(),n.SetBoxes(t,Ln())},function(){})})},e.prototype.ngOnDestroy=function(){!function(e,t){try{e()}catch(e){return Rt(t)?t(e):void 0}}(function(){jn.terminate("$server:error"),jn.terminate("$server:csrferror"),jn.terminate("$server:whiderror"),jn.terminate("$device:no-internet"),jn.terminate("$app:error")})},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(gn))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["app-errors"]],viewQuery:function(e,t){if(1&e&&o.ɵɵviewQuery(Io,5),2&e){var n;o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t._appErrors=n.first)}},decls:2,vars:0,consts:[["appErrors",""]],template:function(e,t){1&e&&o.ɵɵelement(0,"modal-dialog",null,0)},directives:[ko],encapsulation:2}),e}(),Do=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn,xo]]}),e}();function Mo(e,t,n,i,r,o,a){var s,l;return void 0===a&&(a={}),n.compileModuleAsync(i).then(function(n){var i=(l=n.create(t)).componentFactoryResolver.resolveComponentFactory(r);return s=i.create(t,[],o),Ut(a,function(e,t){s.instance[t]=e}),e.attachView(s.hostView),{ngModule:l,Component:s,destroy:function(){l.destroy(),s.destroy()}}})}var zo=e("systemjs"),Ro=function(){function e(e,t,n){this._rendererFactory=e,this._zone=t,this._service=n,this.renderer=this._rendererFactory.createRenderer(null,null),this.scroller=new vn({nativeElement:document.querySelector("#scroller")},this._zone,this.renderer,this._service),this.scroller.useZen=!0,this.scroller.use_body=!0,this.scroller.main_header_offset="web-app header[main-header]",this.scroller.ngOnInit(),this.scroller.ngAfterViewInit()}return e.prototype.Destroy=function(){this.scroller.ngOnDestroy(),this.renderer.destroy()},e}();var Bo=function(){function e(e,t){this._el=e,this._renderer=t,this.onImageFailed=new o.EventEmitter}return Object.defineProperty(e.prototype,"src",{get:function(){return this._src},set:function(e){e?this._src=e:this.fallback&&(this._src=this.fallback)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){Pt()?this._src&&(this._renderer.setAttribute(this._el.nativeElement,this.prepare_ui?"data-src":"src",this._src),this.prepare_ui&&!this.keep_space&&this._renderer.setStyle(this._el.nativeElement,"display","none")):this._Preload()},e.prototype._Preload=function(){var e=this;if(this._el.nativeElement&&(this._src||this.fallback)){var t=this._src||this.fallback,n=this._renderer.createElement("img"),i=this._renderer.listen(n,"load",function(){i(),r(),e._renderer.setAttribute(e._el.nativeElement,"src",t),e._renderer.setStyle(e._el.nativeElement,"display",""),n=null}),r=this._renderer.listen(n,"error",function(){r(),i(),e.onImageFailed.emit(),n=null});this._renderer.setAttribute(n,"src",t),this._renderer.setStyle(this._el.nativeElement,"display","none")}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","preload-src",""]],inputs:{src:["preload-src","src"],fallback:["src-fallback","fallback"],prepare_ui:["ui-hydrate","prepare_ui"],keep_space:["keep-space","keep_space"]},outputs:{onImageFailed:"imageFailed"}}),e}(),jo=(function(){function e(){}e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule]]})}(),["deferImg"]),Uo=function(){function e(e,t){this._el=e,this._renderer=t,this._viewed=!1,this._has_intersect=!(Pt()||!window.IntersectionObserver)}return Object.defineProperty(e.prototype,"src",{get:function(){return this._src},set:function(e){e?this._src=e:this.fallback&&(this._src=this.fallback),this._src&&(this._viewed?this._renderer.setAttribute(this.deferImg.nativeElement,"src",this._src):(!this._has_intersect||Pt())&&this._src&&this.deferImg&&this._renderer.setAttribute(this.deferImg.nativeElement,"src",this._src))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.onError=this.onError.bind(this),this.onLoad=this.onLoad.bind(this),ri.getKey("server-render")&&(this._prepare_ui=!1)},e.prototype.ngAfterViewInit=function(){var e=this;if(this._has_intersect){this._intersectionObserver=new IntersectionObserver(function(t){for(var n=!1,i=0,r=t.length;i<r;i++){var o=t[i];if(Kt(o.isIntersecting)&&e._isInViewport(o,!0)){n=!0;break}if(o.isIntersecting){n=!0;break}}n&&e._InitiateImageLoad()},{threshold:.7}),this._renderer.setStyle(this.deferImg.nativeElement,"opacity",0);var t=this.deferImg.nativeElement.width,n=this.deferImg.nativeElement.height;if(window.getComputedStyle){var i=Vt(window.getComputedStyle(this.deferImg.nativeElement).width),r=Vt(window.getComputedStyle(this.deferImg.nativeElement).height);Lt(i)&&Lt(r)&&(t=i,n=r)}t&&this._renderer.setStyle(this.deferImg.nativeElement,"width",t+"px"),n&&this._renderer.setStyle(this.deferImg.nativeElement,"height",n+"px"),this._intersectionObserver.observe(this._el.nativeElement),this._isInViewport(this._el)&&this._InitiateImageLoad()}else if(this.src){var o=this.deferImg.nativeElement;Pt()?this._prepare_ui?this._renderer.setStyle(o,"display","none"):this._renderer.setAttribute(o,"src",this.src):(this._renderer.listen(o,"error",this.onError),this._renderer.setAttribute(o,"src",this.src))}},e.prototype.ngOnDestroy=function(){this._intersectionObserver&&this._intersectionObserver.disconnect(),this._intersectionObserver=null},e.prototype.onError=function(e){if(!Pt()&&e){var t=this.deferImg.nativeElement;this.fallback&&t.src!=this.fallback?(t.src=this.fallback,t.style.display=""):t.style.display="none"}},e.prototype.onLoad=function(e){this._renderer.setStyle(this.deferImg.nativeElement,"display",""),this._renderer.addClass(this.deferImg.nativeElement,"defer-img-ok"),this._renderer.setStyle(this.deferImg.nativeElement,"opacity",""),this._renderer.addClass(this.deferImg.nativeElement,"ng-enter-element"),this._renderer.setStyle(this.deferImg.nativeElement,"width",""),this._renderer.setStyle(this.deferImg.nativeElement,"height","")},e.prototype._isInViewport=function(e,t){var n=t?e.boundingClientRect:e.nativeElement.getBoundingClientRect(),i=n.height||n.bottom-n.top,r=n.width||n.right-n.left;return!(!i||!r)&&!(n.top+.4*n.height>window.innerHeight||n.bottom<0)},e.prototype._InitiateImageLoad=function(){if(this.src&&!this._viewed){var e=this.deferImg.nativeElement;this._renderer.listen(e,"error",this.onError),this._renderer.listen(e,"load",this.onLoad),this._viewed=!0,this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this._renderer.setAttribute(this.deferImg.nativeElement,"src",this.src)}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","defer-src",""]],contentQueries:function(e,t,n){if(1&e&&o.ɵɵcontentQuery(n,jo,5,o.ElementRef),2&e){var i;o.ɵɵqueryRefresh(i=o.ɵɵloadQuery())&&(t.deferImg=i.first)}},inputs:{src:["defer-src","src"],fallback:["src-fallback","fallback"],_prepare_ui:["ui-hydrate","_prepare_ui"]}}),e}(),Wo=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule]]}),e}();function Ho(e,t){var n=e.src||e.getAttribute("data-src");e.removeAttribute("src");var i=t.createRenderer(null,null),r=new Bo({nativeElement:e},i);return r.src=n,r.prepare_ui=!0,r.ngOnInit(),function(){i.destroy()}}function Go(e,t){var n=e.src||e.getAttribute("data-src");e.removeAttribute("src"),e.removeAttribute("data-src");var i=t.createRenderer(null,null),r=new Uo({nativeElement:e.parentNode},i);return r.deferImg={nativeElement:e},r.src=n,r.ngOnInit(),r.ngAfterViewInit(),function(){i.destroy(),r.ngOnDestroy()}}var qo=e("systemjs");var Ko=function(){function e(e){var t=this;this._el=e,this._cleanups=[],this._TabSwitch=this._TabSwitch.bind(this);var n=e.querySelectorAll(".main-content .top-nav a");if(n&&n.length>0)for(var i=function(e,i){var o=n[e],a=function(e){t._TabSwitch(e,o)};o.addEventListener("click",a),r._cleanups.push(function(){o.removeEventListener("click",a)})},r=this,o=0,a=n.length;o<a;o++)i(o)}return e.prototype._TabSwitch=function(e,t){e.preventDefault();var n=t.getAttribute("href").substring(1),i=this._el.querySelectorAll(".top-nav .nav-content a");if(i&&i.length>0)for(var r=0,o=i.length;r<o;r++){i[r].classList.remove("selected")}var a=this._el.querySelectorAll(".main-content .content");if(a&&a.length>0)for(r=0,o=i.length;r<o;r++){a[r].classList.remove("selected")}t.classList.add("selected"),this._el.querySelector(".cc-section .main-content ."+n).classList.add("selected")},e.prototype.Destroy=function(){zt(this._cleanups,function(e){e()})},e}(),$o=e("npm:tablesort/dist/tablesort.min.js"),Zo=function(e){return e.replace(/[^\-?0-9.]/g,"")};$o.extend("number",function(e){return e.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||e.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||e.match(/^[-+]?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(e,t){return e=Zo(e),function(e,t){return e=parseFloat(e),t=parseFloat(t),(e=isNaN(e)?0:e)-(t=isNaN(t)?0:t)}(t=Zo(t),e)});var Qo=function(){function e(e,t,n){var i=this;void 0===t&&(t=.5),void 0===n&&(n=250),this._dservice=e,this.threshold=t,this._obsEl=[],this._sbs=[],this._obs=[],this._intersected=[],window.IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(function(e){i.CheckForIntersection(e)},{threshold:.5})),this._sbs.push(this._dservice.onScroll.subscribe(function(){clearTimeout(i._scrolltimer),i._scrolltimer=setTimeout(function(){i._intersectionObserver?(zt(i._intersected,function(e){var t=i._obsEl.findIndex(function(t){return t.el==e}),n=i._obsEl[t];n&&(n.obs.next(),n.obs.complete(),i._obsEl.splice(t,1),i._intersectionObserver.unobserve(n.el))}),i._intersected=[]):i.CheckInView()},n)})),this._obs.push(o.fromEvent(window,"resize")),this._obs[this._obs.length-1].subscribe(function(){en(function(){i._GetViewportSize(),i._intersectionObserver||i.CheckInView()})}),this._GetViewportSize()}return e.prototype.Destroy=function(){zt(this._obsEl,function(e){e.obs.complete()}),zt(this._sbs,function(e){e.unsubscribe()}),this._intersected=[],this._obsEl=[],this._obs=[]},e.prototype.Observe=function(e){var t,n=this,i=this._obsEl.findIndex(function(t){return t.el==e});return t=new o.Subject,i<0?(this._obsEl.push({el:e,obs:t}),i=this._obsEl.length-1):(this._obsEl[i].obs.complete(),this._obsEl[i].obs=t),en(function(){null!=n._obsEl&&n._obsEl.length&&(n._InViewport(e)?(n._obsEl.splice(i,1),t.next(),t.complete(),n._intersectionObserver&&n._intersectionObserver.unobserve(e)):n._intersectionObserver&&(n._intersectionObserver.unobserve(e),n._intersectionObserver.observe(e)))}),t},e.prototype.Unobserve=function(e){var t=this._obsEl.findIndex(function(t){return t.el==e});t>-1&&(this._obsEl[t].obs.complete(),this._obsEl.splice(t,1),this._intersectionObserver&&this._intersectionObserver.unobserve(e))},e.prototype._GetViewportSize=function(){var e=window;null!=e.innerWidth&&(this._viewport={w:e.innerWidth,h:e.innerHeight})},e.prototype._InViewport=function(e){if(!this._viewport)return!1;var t=e instanceof Element?e.getBoundingClientRect():e.boundingClientRect,n=t.height||t.bottom-t.top,i=t.width||t.right-t.left;return!(!n||!i)&&!(t.top+t.height*this.threshold>this._viewport.h||t.bottom<0)},e.prototype.CheckForIntersection=function(e){this._intersected=[];for(var t=0,n=e.length;t<n;t++){var i=e[t],r=e[t].target;(i.isIntersecting||Kt(i.isIntersecting)&&this._InViewport(i))&&this._intersected.push(r)}},e.prototype.CheckInView=function(){var e=this;this._obsEl&&zt(this._obsEl,function(t,n){if(e._InViewport(t.el))return t.obs.next(),t.obs.complete(),e._obsEl.splice(n,1),!1})},e}(),Yo=["searchfield"],Jo=["class","city-table-container"];function Xo(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"th",9),o.ɵɵlistener("onTap",function(){var e=o.ɵɵrestoreView(n),t=e.$implicit,i=e.index;return o.ɵɵnextContext().SortToggle(t,i)}),o.ɵɵelement(1,"span",10),o.ɵɵelement(2,"b"),o.ɵɵelementEnd()}if(2&e){var i=t.$implicit,r=o.ɵɵnextContext();o.ɵɵclassProp("headerSortUp",i.sorted_by&&"asc"==r.sorting)("headerSortDown",i.sorted_by&&"desc"==r.sorting),o.ɵɵadvance(1),o.ɵɵproperty("cleanHTML",i.text)}}function ea(e,t){if(1&e&&o.ɵɵelement(0,"td",10),2&e){var n=t.$implicit;o.ɵɵproperty("cleanHTML",n)}}function ta(e,t){if(1&e&&(o.ɵɵelementStart(0,"tr"),o.ɵɵtemplate(1,ea,1,1,"td",12),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext(),i=n.index,r=n.$implicit,a=o.ɵɵnextContext();o.ɵɵclassProp("ng-enter-element",i>=a.def_limit),o.ɵɵadvance(1),o.ɵɵproperty("ngForOf",r)("ngForTrackBy",a.trackByIndex)}}function na(e,t){if(1&e&&(o.ɵɵelementContainerStart(0),o.ɵɵtemplate(1,ta,2,4,"tr",11),o.ɵɵelementContainerEnd()),2&e){var n=t.index,i=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵproperty("ngIf",n<i.limit||i.show_all)}}function ia(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",13),o.ɵɵelementStart(1,"button",14),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().ToggleMore()}),o.ɵɵelement(2,"i",15),o.ɵɵelementStart(3,"span"),o.ɵɵtext(4),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵclassProp("loadactive",i.toggling_display),o.ɵɵadvance(3),o.ɵɵtextInterpolate(i.show_all?"Show Less":"Show All")}}var ra=function(){function e(e,t){this._scrollservice=e,this._cd=t,this.input={placeholder:""},this._search_by=null,this.headersTable=[],this.itemsTable=[],this._itemsTableOrg=[],this.sorting_row=null,this.show_all=!1,this.toggling_display=!1,this.limit=30,this._max_limit=30,this.def_limit=30}return e.prototype.ngOnInit=function(){var e=this;this._inputValue=new o.BehaviorSubject(""),this.input.placeholder="&#xe80f;&nbsp;&nbsp;Search by "+(this.index||""),Object.defineProperty(this.input,"value",{get:function(){return e._inputValue.getValue()},set:function(t){e._inputValue.next(t)}}),this._inputValue.pipe(o.delay(50)).subscribe(function(t){t.length>2?e.itemsTable=e._itemsTableOrg.filter(function(n){var i=!1;return zt(n,function(n,r){if(r==e._search_by){var o=n.toString().toLowerCase(),a=t.toString().toLowerCase();return i=o.indexOf(a)>-1,!1}}),i}):e.itemsTable=e._itemsTableOrg.slice(0),e._cd.detectChanges()}),this._max_limit=this.items.length,zt(this.items,function(t,n){var i=[],r=0;Ut(t,function(t,o){0==n&&(e.headersTable.push({sorted_by:!1,text:o}),o==e.index&&(e._search_by=r),r++),i.push(t)}),e.itemsTable.push(i),e._itemsTableOrg.push(i)})},e.prototype.ngAfterViewInit=function(){if(!Pt()){var e=document.createElement("span");e.innerHTML=this.input.placeholder,this.searchfield.nativeElement.setAttribute("placeholder",e.textContent)}},e.prototype.ngOnDestroy=function(){this._inputValue&&this._inputValue.complete},e.prototype._SortBy=function(){var e=this,t=function(t,n){var i=t[e.sorting_row],r=n[e.sorting_row];return"asc"==e.sorting?Lt(i)?r-i:r>i?-1:r<i?1:0:Lt(i)?i-r:r<i?-1:r>i?1:0};this.itemsTable.sort(t),en(function(){e._itemsTableOrg.sort(t)})},e.prototype.trackByIndex=function(e){return e},e.prototype.SortToggle=function(e,t){this.sorting_row=t,e.sorted_by?"desc"==this.sorting?this.sorting="asc":this.sorting="desc":(this.headersTable.forEach(function(e){e.sorted_by=!1}),e.sorted_by=!0,this.sorting="asc"),this._SortBy()},e.prototype.Search=function(e){var t=e.target.value;this.input.value=t},e.prototype.ToggleMore=function(){var e=this;if(!this.toggling_display){this.toggling_display=!0;var t=0;this._scrollservice.onScroll.pipe(o.take(1)).subscribe(function(e){t=e});var n=!1;en(function(){if(e.show_all){var i=function(){e.limit--,e.limit>e.def_limit?e.limit%(2*e.def_limit)==0?en(i):i():(e.show_all=!1,e.toggling_display=!1)};i()}else{var r=function(){e.limit++,n||(en(function(){e._scrollservice.scrollTo({position:t,timing:0})}),n=!0),e.limit<e._max_limit?e.limit%(2*e.def_limit)==0?en(r):r():(e.show_all=!0,e.toggling_display=!1)};r()}})}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(gn),o.ɵɵdirectiveInject(o.ChangeDetectorRef))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["div",8,"city-table-container"]],viewQuery:function(e,t){if(1&e&&o.ɵɵviewQuery(Yo,5),2&e){var n;o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.searchfield=n.first)}},inputs:{index:"index",items:"items"},attrs:Jo,decls:13,vars:11,consts:[[1,"search-city-container"],[3,"id","for","hidden"],["type","text","role","textbox",1,"single",3,"value","id","input"],["searchfield",""],[1,"data-table"],["border","0","cellpadding","0","cellspacing","0",1,"city-table","center-aligned","table"],["zing-touch","",3,"headerSortUp","headerSortDown","onTap",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","btn-toggle-container",4,"ngIf"],["zing-touch","",3,"onTap"],[3,"cleanHTML"],[3,"ng-enter-element",4,"ngIf"],[3,"cleanHTML",4,"ngFor","ngForOf","ngForTrackBy"],[1,"btn-toggle-container"],["zing-touch","",1,"btn","blue","with-loader",3,"onTap"],[1,"btn-loader"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0),o.ɵɵelementStart(1,"label",1),o.ɵɵtext(2,"Search"),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"input",2,3),o.ɵɵlistener("input",function(e){return t.Search(e)}),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(5,"div",4),o.ɵɵelementStart(6,"table",5),o.ɵɵelementStart(7,"thead"),o.ɵɵelementStart(8,"tr"),o.ɵɵtemplate(9,Xo,3,5,"th",6),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(10,"tbody"),o.ɵɵtemplate(11,na,2,1,"ng-container",7),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵtemplate(12,ia,5,3,"div",8)),2&e&&(o.ɵɵadvance(1),o.ɵɵproperty("id",t.index+"-ipt-label")("for",t.index+"-ipt")("hidden",!0),o.ɵɵadvance(2),o.ɵɵproperty("value",t.input.value)("id",t.index+"-ipt"),o.ɵɵattribute("aria-labelledby",t.index+"-ipt-label"),o.ɵɵadvance(6),o.ɵɵproperty("ngForOf",t.headersTable)("ngForTrackBy",t.trackByIndex),o.ɵɵadvance(2),o.ɵɵproperty("ngForOf",t.itemsTable)("ngForTrackBy",t.trackByIndex),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.itemsTable.length>=t.limit))},directives:[o.NgForOf,o.NgIf,hn,xn],encapsulation:2}),e}(),oa=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn]]}),e}(),aa=function(){function e(e,t,n){this._el=e,this._render=t,this._cd=n,this.is_hidden=!0,this.initial=!0,this.active=!1}return e.prototype.ControlPopup=function(){var e=this,t=this._el.nativeElement,n=t.querySelector(".fcs-main-content");if(this.is_hidden=!this.is_hidden,this.initial)return this._render.setStyle(t,"bottom",-1*n.offsetHeight+"px"),this.initial=!1,this.active=!0,this._cd.detectChanges(),void en(function(){e._render.setStyle(t,"bottom","0px"),e._cd.detectChanges()});this.initial=!1,this.active=!0,this.is_hidden?this._render.setStyle(t,"bottom",-1*n.offsetHeight+"px"):this._render.setStyle(t,"bottom","0px"),this._cd.detectChanges()},e.prototype.ngAfterViewInit=function(){var e=this;en(function(){var t=e._el.nativeElement,n=t.querySelector(".fcs-main-content");e._render.setStyle(t,"bottom",-1*n.offsetHeight+"px"),e._cd.detectChanges(),en(function(){e.initial=!1,e.active=!0,e._cd.detectChanges()})})},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2),o.ɵɵdirectiveInject(o.ChangeDetectorRef))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["free-credit"]],hostVars:6,hostBindings:function(e,t){2&e&&o.ɵɵclassProp("fcs-hidden",t.is_hidden)("fcs-render",t.initial)("fcs-active",t.active)},decls:37,vars:1,consts:[["zing-touch","","role","button","tabindex","0","aria-haspopup","dialog",1,"fcs-head-content","bold-font",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"fcs-cta-arrow"],[1,"af-icon-up-open"],[1,"af-icon-cross"],[1,"fcs-main-content"],[1,"fcs-mc-hd"],[1,"fcs-mc-prg","semi-bold-font"],["aria-hidden","true","tabindex","-1"],[1,"fcs-mc-center"],["role","link","onclick","location.href='/join/';",1,"fcs-mc-button","semi-bold-font"],[1,"fcs-mc-bt-p","semi-bold-font"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0),o.ɵɵlistener("onTap",function(){return t.ControlPopup()}),o.ɵɵtext(1," GET YOUR FREE CREDIT SCORE & REPORT "),o.ɵɵelementStart(2,"span",1),o.ɵɵelement(3,"i",2),o.ɵɵelement(4,"i",3),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(5,"div",4),o.ɵɵelementStart(6,"div",5),o.ɵɵtext(7,"Join WalletHub"),o.ɵɵelementEnd(),o.ɵɵelementStart(8,"p",6),o.ɵɵelementStart(9,"span",7),o.ɵɵtext(10,"+"),o.ɵɵelementEnd(),o.ɵɵtext(11," 100% FREE"),o.ɵɵelementEnd(),o.ɵɵelementStart(12,"p",6),o.ɵɵelementStart(13,"span",7),o.ɵɵtext(14,"+"),o.ɵɵelementEnd(),o.ɵɵtext(15," Unlimited Credit Reports"),o.ɵɵelementEnd(),o.ɵɵelementStart(16,"p",6),o.ɵɵelementStart(17,"span",7),o.ɵɵtext(18,"+"),o.ɵɵelementEnd(),o.ɵɵtext(19," Unlimited Credit Scores"),o.ɵɵelementEnd(),o.ɵɵelementStart(20,"p",6),o.ɵɵelementStart(21,"span",7),o.ɵɵtext(22,"+"),o.ɵɵelementEnd(),o.ɵɵtext(23," Credit Monitoring Protection"),o.ɵɵelementEnd(),o.ɵɵelementStart(24,"p",6),o.ɵɵelementStart(25,"span",7),o.ɵɵtext(26,"+"),o.ɵɵelementEnd(),o.ɵɵtext(27," Credit Improvement Tips"),o.ɵɵelementEnd(),o.ɵɵelementStart(28,"p",6),o.ɵɵelementStart(29,"span",7),o.ɵɵtext(30,"+"),o.ɵɵelementEnd(),o.ɵɵtext(31," Automatically Finds Savings"),o.ɵɵelementEnd(),o.ɵɵelementStart(32,"div",8),o.ɵɵelementStart(33,"button",9),o.ɵɵtext(34,"SIGN UP FOR FREE"),o.ɵɵelementEnd(),o.ɵɵelementStart(35,"p",10),o.ɵɵtext(36,"No credit card needed"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd()),2&e&&o.ɵɵattribute("aria-expanded",!t.is_hidden)},directives:[hn],encapsulation:2,changeDetection:0}),e}(),sa=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[Nn,o.CommonModule]]}),e}();function la(e){return(la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"object"===(void 0===t?"undefined":la(t))&&"undefined"!=typeof module?n(t):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).googleCharts={})}(void 0,function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}function i(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var o=r(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),a=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},s=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},l={}.toString,c=function(e){return l.call(e).slice(8,-1)},u=r(function(e){var t=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=t)}),h=r(function(e){var t=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:u.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),d=0,m=Math.random(),p=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++d+m).toString(36))},f=r(function(e){var t=h("wks"),n=o.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:p)("Symbol."+e))}).store=t}),g=f("toStringTag"),v="Arguments"==c(function(){return arguments}()),y=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),g))?n:v?c(t):"Object"==(i=c(t))&&"function"==typeof t.callee?"Arguments":i},b=function(e){return"object"===la(e)?null!==e:"function"==typeof e},_=function(e){if(!b(e))throw TypeError(e+" is not an object!");return e},S=function(e){try{return!!e()}catch(e){return!0}},w=!S(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),E=o.document,k=b(E)&&b(E.createElement),x=function(e){return k?E.createElement(e):{}},P=!w&&!S(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=function(e,t){if(!b(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!b(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!b(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!b(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},T=Object.defineProperty,C={f:w?Object.defineProperty:function(e,t,n){if(_(e),t=O(t,!0),_(n),P)try{return T(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=w?function(e,t,n){return C.f(e,t,N(1,n))}:function(e,t,n){return e[t]=n,e},F={}.hasOwnProperty,A=function(e,t){return F.call(e,t)},L=r(function(e){var t=p("src"),n=Function.toString,i=(""+n).split("toString");u.inspectSource=function(e){return n.call(e)},(e.exports=function(e,n,r,a){var s="function"==typeof r;s&&(A(r,"name")||I(r,"name",n)),e[n]!==r&&(s&&(A(r,t)||I(r,t,e[n]?""+e[n]:i.join(String(n)))),e===o?e[n]=r:a?e[n]?e[n]=r:I(e,n,r):(delete e[n],I(e,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||n.call(this)})}),V=function e(t,n,i){var r,a,l,c,h=t&e.F,d=t&e.G,m=t&e.P,p=t&e.B,f=d?o:t&e.S?o[n]||(o[n]={}):(o[n]||{}).prototype,g=d?u:u[n]||(u[n]={}),v=g.prototype||(g.prototype={});for(r in d&&(i=n),i)l=((a=!h&&f&&void 0!==f[r])?f:i)[r],c=p&&a?s(l,o):m&&"function"==typeof l?s(Function.call,l):l,f&&L(f,r,l,t&e.U),g[r]!=l&&I(g,r,c),m&&v[r]!=l&&(v[r]=l)};o.core=u,V.F=1,V.G=2,V.S=4,V.P=8,V.B=16,V.W=32,V.U=64,V.R=128;var D,M,z,R=V,B=function(e,t,n,i){try{return i?t(_(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&_(r.call(e)),t}},j={},U=f("iterator"),W=Array.prototype,H=function(e){return void 0!==e&&(j.Array===e||W[U]===e)},G=Math.ceil,q=Math.floor,K=function(e){return isNaN(e=+e)?0:(e>0?q:G)(e)},$=Math.min,Z=function(e){return e>0?$(K(e),9007199254740991):0},Q=f("iterator"),Y=u.getIteratorMethod=function(e){if(null!=e)return e[Q]||e["@@iterator"]||j[y(e)]},J=r(function(e){var t={},n={},i=e.exports=function(e,i,r,o,a){var l,c,u,h,d=a?function(){return e}:Y(e),m=s(r,o,i?2:1),p=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(H(d)){for(l=Z(e.length);l>p;p++)if((h=i?m(_(c=e[p])[0],c[1]):m(e[p]))===t||h===n)return h}else for(u=d.call(e);!(c=u.next()).done;)if((h=B(u,m,c.value,i))===t||h===n)return h};i.BREAK=t,i.RETURN=n}),X=f("species"),ee=o.document,te=ee&&ee.documentElement,ne=o.process,ie=o.setImmediate,re=o.clearImmediate,oe=o.MessageChannel,ae=o.Dispatch,se=0,le={},ce=function(){var e=+this;if(le.hasOwnProperty(e)){var t=le[e];delete le[e],t()}},ue=function(e){ce.call(e.data)};ie&&re||(ie=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return le[++se]=function(){!function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),t)},D(se),se},re=function(e){delete le[e]},"process"==c(ne)?D=function(e){ne.nextTick(s(ce,e,1))}:ae&&ae.now?D=function(e){ae.now(s(ce,e,1))}:oe?(z=(M=new oe).port2,M.port1.onmessage=ue,D=s(z.postMessage,z,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts?(D=function(e){o.postMessage(e+"","*")},o.addEventListener("message",ue,!1)):D="onreadystatechange"in x("script")?function(e){te.appendChild(x("script")).onreadystatechange=function(){te.removeChild(this),ce.call(e)}}:function(e){setTimeout(s(ce,e,1),0)});var he={set:ie,clear:re},de=he.set,me=o.MutationObserver||o.WebKitMutationObserver,pe=o.process,fe=o.Promise,ge="process"==c(pe);function ve(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=a(t),this.reject=a(n)}var ye={f:function(e){return new ve(e)}},be=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},_e=o.navigator,Se=_e&&_e.userAgent||"",we=C.f,Ee=f("toStringTag"),ke=function(e,t,n){e&&!A(e=n?e:e.prototype,Ee)&&we(e,Ee,{configurable:!0,value:t})},xe=f("species"),Pe=f("iterator"),Oe=!1;try{[7][Pe]().return=function(){Oe=!0}}catch(e){}var Te,Ce,Ne,Ie,Fe,Ae=he.set,Le=function(){var e,t,n,i=function(){var i,r;for(ge&&(i=pe.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(ge)n=function(){pe.nextTick(i)};else if(!me||o.navigator&&o.navigator.standalone)if(fe&&fe.resolve){var r=fe.resolve(void 0);n=function(){r.then(i)}}else n=function(){de.call(o,i)};else{var a=!0,s=document.createTextNode("");new me(i).observe(s,{characterData:!0}),n=function(){s.data=a=!a}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}(),Ve=o.TypeError,De=o.process,Me=De&&De.versions,ze=Me&&Me.v8||"",Re=o.Promise,Be="process"==y(De),je=function(){},Ue=Ce=ye.f,We=!!function(){try{var e=Re.resolve(1),t=(e.constructor={})[f("species")]=function(e){e(je,je)};return(Be||"function"==typeof PromiseRejectionEvent)&&e.then(je)instanceof t&&0!==ze.indexOf("6.6")&&-1===Se.indexOf("Chrome/66")}catch(e){}}(),He=function(e){var t;return!(!b(e)||"function"!=typeof(t=e.then))&&t},Ge=function(e,t){if(!e._n){e._n=!0;var n=e._c;Le(function(){for(var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a,s=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(r||(2==e._h&&$e(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===t.promise?c(Ve("Promise-chain cycle")):(o=He(n))?o.call(n,l,c):l(n)):c(i)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&qe(e)})}},qe=function(e){Ae.call(o,function(){var t,n,i,r=e._v,a=Ke(e);if(a&&(t=be(function(){Be?De.emit("unhandledRejection",r,e):(n=o.onunhandledrejection)?n({promise:e,reason:r}):(i=o.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=Be||Ke(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},Ke=function(e){return 1!==e._h&&0===(e._a||e._c).length},$e=function(e){Ae.call(o,function(){var t;Be?De.emit("rejectionHandled",e):(t=o.onrejectionhandled)&&t({promise:e,reason:e._v})})},Ze=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ge(t,!0))},Qe=function e(t){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw Ve("Promise can't be resolved itself");(n=He(t))?Le(function(){var r={_w:i,_d:!1};try{n.call(t,s(e,r,1),s(Ze,r,1))}catch(e){Ze.call(r,e)}}):(i._v=t,i._s=1,Ge(i,!1))}catch(e){Ze.call({_w:i,_d:!1},e)}}};We||(Re=function(e){!function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!")}(this,Re,"Promise","_h"),a(e),Te.call(this);try{e(s(Qe,this,1),s(Ze,this,1))}catch(e){Ze.call(this,e)}},(Te=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var i in t)L(e,i,t[i],n);return e}(Re.prototype,{then:function(e,t){var n,i,r,o=Ue((n=Re,void 0===(r=_(this).constructor)||null==(i=_(r)[X])?n:a(i)));return o.ok="function"!=typeof e||e,o.fail="function"==typeof t&&t,o.domain=Be?De.domain:void 0,this._c.push(o),this._a&&this._a.push(o),this._s&&Ge(this,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ne=function(){var e=new Te;this.promise=e,this.resolve=s(Qe,e,1),this.reject=s(Ze,e,1)},ye.f=Ue=function(e){return e===Re||e===Ie?new Ne(e):Ce(e)}),R(R.G+R.W+R.F*!We,{Promise:Re}),ke(Re,"Promise"),Fe=o["Promise"],w&&Fe&&!Fe[xe]&&C.f(Fe,xe,{configurable:!0,get:function(){return this}}),Ie=u.Promise,R(R.S+R.F*!We,"Promise",{reject:function(e){var t=Ue(this);return(0,t.reject)(e),t.promise}}),R(R.S+R.F*!We,"Promise",{resolve:function(e){return function(e,t){if(_(e),b(t)&&t.constructor===e)return t;var n=ye.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),R(R.S+R.F*!(We&&function(e,t){if(!t&&!Oe)return!1;var n=!1;try{var i=[7],r=i[Pe]();r.next=function(){return{done:n=!0}},i[Pe]=function(){return r},e(i)}catch(e){}return n}(function(e){Re.all(e).catch(je)})),"Promise",{all:function(e){var t=this,n=Ue(t),i=n.resolve,r=n.reject,o=be(function(){var n=[],o=0,a=1;J(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=Ue(t),i=n.reject,r=be(function(){J(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}});var Ye={f:f},Je=C.f,Xe=function(e){var t=u.Symbol||(u.Symbol=o.Symbol||{});"_"==e.charAt(0)||e in t||Je(t,e,{value:Ye.f(e)})};Xe("asyncIterator");var et,tt=r(function(e){var t=p("meta"),n=C.f,i=0,r=Object.isExtensible||function(){return!0},o=!S(function(){return r(Object.preventExtensions({}))}),a=function(e){n(e,t,{value:{i:"O"+ ++i,w:{}}})},s=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!b(e))return"symbol"==la(e)?e:("string"==typeof e?"S":"P")+e;if(!A(e,t)){if(!r(e))return"F";if(!n)return"E";a(e)}return e[t].i},getWeak:function(e,n){if(!A(e,t)){if(!r(e))return!0;if(!n)return!1;a(e)}return e[t].w},onFreeze:function(e){return o&&s.NEED&&r(e)&&!A(e,t)&&a(e),e}}}),nt=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==c(e)?e.split(""):Object(e)},it=function(e){return nt(function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}(e))},rt=Math.max,ot=Math.min,at=h("keys"),st=function(e){return at[e]||(at[e]=p(e))},lt=(et=!1,function(e,t,n){var i,r=it(e),o=Z(r.length),a=function(e,t){return(e=K(e))<0?rt(e+t,0):ot(e,t)}(n,o);if(et&&t!=t){for(;o>a;)if((i=r[a++])!=i)return!0}else for(;o>a;a++)if((et||a in r)&&r[a]===t)return et||a||0;return!et&&-1}),ct=st("IE_PROTO"),ut=function(e,t){var n,i=it(e),r=0,o=[];for(n in i)n!=ct&&A(i,n)&&o.push(n);for(;t.length>r;)A(i,n=t[r++])&&(~lt(o,n)||o.push(n));return o},ht="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),dt=Object.keys||function(e){return ut(e,ht)},mt={f:Object.getOwnPropertySymbols},pt={f:{}.propertyIsEnumerable},ft=Array.isArray||function(e){return"Array"==c(e)},gt=w?Object.defineProperties:function(e,t){_(e);for(var n,i=dt(t),r=i.length,o=0;r>o;)C.f(e,n=i[o++],t[n]);return e},vt=st("IE_PROTO"),yt=function(){},bt=function(){var e,t=x("iframe"),n=ht.length;for(t.style.display="none",te.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),bt=e.F;n--;)delete bt.prototype[ht[n]];return bt()},_t=Object.create||function(e,t){var n;return null!==e?(yt.prototype=_(e),n=new yt,yt.prototype=null,n[vt]=e):n=bt(),void 0===t?n:gt(n,t)},St=ht.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(e){return ut(e,St)}},Et=wt.f,kt={}.toString,xt="object"==("undefined"==typeof window?"undefined":la(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pt={f:function(e){return xt&&"[object Window]"==kt.call(e)?function(e){try{return Et(e)}catch(e){return xt.slice()}}(e):Et(it(e))}},Ot=Object.getOwnPropertyDescriptor,Tt={f:w?Ot:function(e,t){if(e=it(e),t=O(t,!0),P)try{return Ot(e,t)}catch(e){}if(A(e,t))return N(!pt.f.call(e,t),e[t])}},Ct=tt.KEY,Nt=Tt.f,It=C.f,Ft=Pt.f,At=o.Symbol,Lt=o.JSON,Vt=Lt&&Lt.stringify,Dt=f("_hidden"),Mt=f("toPrimitive"),zt={}.propertyIsEnumerable,Rt=h("symbol-registry"),Bt=h("symbols"),jt=h("op-symbols"),Ut=Object.prototype,Wt="function"==typeof At,Ht=o.QObject,Gt=!Ht||!Ht.prototype||!Ht.prototype.findChild,qt=w&&S(function(){return 7!=_t(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=Nt(Ut,t);i&&delete Ut[t],It(e,t,n),i&&e!==Ut&&It(Ut,t,i)}:It,Kt=function(e){var t=Bt[e]=_t(At.prototype);return t._k=e,t},$t=Wt&&"symbol"==la(At.iterator)?function(e){return"symbol"==la(e)}:function(e){return e instanceof At},Zt=function(e,t,n){return e===Ut&&Zt(jt,t,n),_(e),t=O(t,!0),_(n),A(Bt,t)?(n.enumerable?(A(e,Dt)&&e[Dt][t]&&(e[Dt][t]=!1),n=_t(n,{enumerable:N(0,!1)})):(A(e,Dt)||It(e,Dt,N(1,{})),e[Dt][t]=!0),qt(e,t,n)):It(e,t,n)},Qt=function(e,t){_(e);for(var n,i=function(e){var t=dt(e),n=mt.f;if(n)for(var i,r=n(e),o=pt.f,a=0;r.length>a;)o.call(e,i=r[a++])&&t.push(i);return t}(t=it(t)),r=0,o=i.length;o>r;)Zt(e,n=i[r++],t[n]);return e},Yt=function(e){var t=zt.call(this,e=O(e,!0));return!(this===Ut&&A(Bt,e)&&!A(jt,e))&&(!(t||!A(this,e)||!A(Bt,e)||A(this,Dt)&&this[Dt][e])||t)},Jt=function(e,t){if(e=it(e),t=O(t,!0),e!==Ut||!A(Bt,t)||A(jt,t)){var n=Nt(e,t);return!n||!A(Bt,t)||A(e,Dt)&&e[Dt][t]||(n.enumerable=!0),n}},Xt=function(e){for(var t,n=Ft(it(e)),i=[],r=0;n.length>r;)A(Bt,t=n[r++])||t==Dt||t==Ct||i.push(t);return i},en=function(e){for(var t,n=e===Ut,i=Ft(n?jt:it(e)),r=[],o=0;i.length>o;)!A(Bt,t=i[o++])||n&&!A(Ut,t)||r.push(Bt[t]);return r};Wt||(L((At=function(){if(this instanceof At)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0);return w&&Gt&&qt(Ut,e,{configurable:!0,set:function t(n){this===Ut&&t.call(jt,n),A(this,Dt)&&A(this[Dt],e)&&(this[Dt][e]=!1),qt(this,e,N(1,n))}}),Kt(e)}).prototype,"toString",function(){return this._k}),Tt.f=Jt,C.f=Zt,wt.f=Pt.f=Xt,pt.f=Yt,mt.f=en,w&&L(Ut,"propertyIsEnumerable",Yt,!0),Ye.f=function(e){return Kt(f(e))}),R(R.G+R.W+R.F*!Wt,{Symbol:At});for(var tn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nn=0;tn.length>nn;)f(tn[nn++]);for(var rn=dt(f.store),on=0;rn.length>on;)Xe(rn[on++]);R(R.S+R.F*!Wt,"Symbol",{for:function(e){return A(Rt,e+="")?Rt[e]:Rt[e]=At(e)},keyFor:function(e){if(!$t(e))throw TypeError(e+" is not a symbol!");for(var t in Rt)if(Rt[t]===e)return t},useSetter:function(){Gt=!0},useSimple:function(){Gt=!1}}),R(R.S+R.F*!Wt,"Object",{create:function(e,t){return void 0===t?_t(e):Qt(_t(e),t)},defineProperty:Zt,defineProperties:Qt,getOwnPropertyDescriptor:Jt,getOwnPropertyNames:Xt,getOwnPropertySymbols:en}),Lt&&R(R.S+R.F*(!Wt||S(function(){var e=At();return"[null]"!=Vt([e])||"{}"!=Vt({a:e})||"{}"!=Vt(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(b(t)||void 0!==e)&&!$t(e))return ft(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$t(t))return t}),i[1]=t,Vt.apply(Lt,i)}}),At.prototype[Mt]||I(At.prototype,Mt,At.prototype.valueOf),ke(At,"Symbol"),ke(Math,"Math",!0),ke(o.JSON,"JSON",!0);var an,sn=Symbol("loadScript"),ln=Symbol("instance"),cn=function(){function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this[ln])return this[ln];this[ln]=this}return n(e,[{key:ln,get:function(){return an},set:function(e){an=e}}]),n(e,[{key:"reset",value:function(){an=null}},{key:sn,value:function(){var e=this;return this.scriptPromise||(this.scriptPromise=new Promise(function(t){i(this,e);var n=document.getElementsByTagName("body")[0],r=document.createElement("script");r.type="text/javascript",r.onload=function(){var e=this;un.api=window.google,un.api.charts.load("current",{packages:["corechart","table"]}),un.api.charts.setOnLoadCallback(function(){i(this,e),t()}.bind(this))},r.src="https://www.gstatic.com/charts/loader.js",n.appendChild(r)}.bind(this))),this.scriptPromise}},{key:"load",value:function(e,t){var n=this;return this[sn]().then(function(){if(i(this,n),t){var r={};r=t instanceof Object?t:Array.isArray(t)?{packages:t}:{packages:[t]},this.api.charts.load("current",r),this.api.charts.setOnLoadCallback(e)}else{if("function"!=typeof e)throw"callback must be a function";e()}}.bind(this))}}]),e}(),un=new cn;e.GoogleCharts=un,e.default=cn,Object.defineProperty(e,"__esModule",{value:!0})});var ca={};function ua(e){return function(e){if(Array.isArray(e))return ma(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||da(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||da(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){if(e){if("string"==typeof e)return ma(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(e,t):void 0}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}ca.allowedTagList=["b","caption","cite","code","const","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","input","ins","kdb","label","li","option","output","p","q","s","sample","span","strong","td","th","u"],Object.freeze(ca.allowedTagList),Object.defineProperty(ca,"allowedTagList",{configurable:!1,writable:!1}),ca.keyCode={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,Pause:19,CapsLock:20,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,num0:48,num1:49,num2:50,num3:51,num4:52,num5:53,num6:54,num7:55,num8:56,num9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,OSLeft:91,OSRight:92,ContextMenu:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,MultiplyNumpad:106,PlusNumpad:107,MinusNumpad:109,DotNumpad:110,SlashNumpad:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,HyphenFirefox:173,MyComputer:182,MyCalculator:183,Semicolon:186,Equal:187,Comma:188,Hyphen:189,Dot:190,Slash:191,Backquote:192,LeftBracket:219,Backslash:220,RightBracket:221,Quote:222,Command:224,AltGraph:225,AndroidDefault:229},Object.freeze(ca.keyCode),Object.defineProperty(ca,"keyCode",{configurable:!1,writable:!1}),ca.fromCharCodeKeyCode={0:"LaunchCalculator",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",91:"OS",92:"OSRight",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",173:"-",182:"MyComputer",183:"MyCalculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Meta",225:"AltGraph"},Object.freeze(ca.fromCharCodeKeyCode),Object.defineProperty(ca,"fromCharCodeKeyCode",{configurable:!1,writable:!1}),ca.keyName={Unidentified:"Unidentified",AndroidDefault:"AndroidDefault",Alt:"Alt",AltGr:"AltGraph",CapsLock:"CapsLock",Ctrl:"Control",Fn:"Fn",FnLock:"FnLock",Hyper:"Hyper",Meta:"Meta",OSLeft:"OS",OSRight:"OS",Command:"OS",NumLock:"NumLock",ScrollLock:"ScrollLock",Shift:"Shift",Super:"Super",Symbol:"Symbol",SymbolLock:"SymbolLock",Enter:"Enter",Tab:"Tab",Space:" ",LeftArrow:"ArrowLeft",UpArrow:"ArrowUp",RightArrow:"ArrowRight",DownArrow:"ArrowDown",End:"End",Home:"Home",PageUp:"PageUp",PageDown:"PageDown",Backspace:"Backspace",Clear:"Clear",Copy:"Copy",CrSel:"CrSel",Cut:"Cut",Delete:"Delete",EraseEof:"EraseEof",ExSel:"ExSel",Insert:"Insert",Paste:"Paste",Redo:"Redo",Undo:"Undo",Accept:"Accept",Again:"Again",Attn:"Attn",Cancel:"Cancel",ContextMenu:"ContextMenu",Esc:"Escape",Execute:"Execute",Find:"Find",Finish:"Finish",Help:"Help",Pause:"Pause",Play:"Play",Props:"Props",Select:"Select",ZoomIn:"ZoomIn",ZoomOut:"ZoomOut",BrightnessDown:"BrightnessDown",BrightnessUp:"BrightnessUp",Eject:"Eject",LogOff:"LogOff",Power:"Power",PowerOff:"PowerOff",PrintScreen:"PrintScreen",Hibernate:"Hibernate",Standby:"Standby",WakeUp:"WakeUp",Compose:"Compose",Dead:"Dead",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",Print:"Print",num0:"0",num1:"1",num2:"2",num3:"3",num4:"4",num5:"5",num6:"6",num7:"7",num8:"8",num9:"9",a:"a",b:"b",c:"c",d:"d",e:"e",f:"f",g:"g",h:"h",i:"i",j:"j",k:"k",l:"l",m:"m",n:"n",o:"o",p:"p",q:"q",r:"r",s:"s",t:"t",u:"u",v:"v",w:"w",x:"x",y:"y",z:"z",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",Semicolon:";",Equal:"=",Comma:",",Hyphen:"-",Minus:"-",Plus:"+",Dot:".",Slash:"/",Backquote:"`",LeftParenthesis:"(",RightParenthesis:")",LeftBracket:"[",RightBracket:"]",Backslash:"\\",Quote:"'",numpad0:"0",numpad1:"1",numpad2:"2",numpad3:"3",numpad4:"4",numpad5:"5",numpad6:"6",numpad7:"7",numpad8:"8",numpad9:"9",NumpadDot:".",NumpadDotAlt:",",NumpadMultiply:"*",NumpadPlus:"+",NumpadMinus:"-",NumpadSubtract:"-",NumpadSlash:"/",NumpadDotObsoleteBrowsers:"Decimal",NumpadMultiplyObsoleteBrowsers:"Multiply",NumpadPlusObsoleteBrowsers:"Add",NumpadMinusObsoleteBrowsers:"Subtract",NumpadSlashObsoleteBrowsers:"Divide",_allFnKeys:["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],_someNonPrintableKeys:["Tab","Enter","Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight","Pause","CapsLock","Escape"],_directionKeys:["PageUp","PageDown","End","Home","ArrowDown","ArrowLeft","ArrowRight","ArrowUp"]},Object.freeze(ca.keyName._allFnKeys),Object.freeze(ca.keyName._someNonPrintableKeys),Object.freeze(ca.keyName._directionKeys),Object.freeze(ca.keyName),Object.defineProperty(ca,"keyName",{configurable:!1,writable:!1}),Object.freeze(ca);var ga=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"isNull",value:function(e){return null===e}},{key:"isUndefined",value:function(e){return void 0===e}},{key:"isUndefinedOrNullOrEmpty",value:function(e){return null==e||""===e}},{key:"isString",value:function(e){return"string"==typeof e||e instanceof String}},{key:"isEmptyString",value:function(e){return""===e}},{key:"isBoolean",value:function(e){return"boolean"==typeof e}},{key:"isTrueOrFalseString",value:function(e){var t=String(e).toLowerCase();return"true"===t||"false"===t}},{key:"isObject",value:function(e){return"object"===pa(e)&&null!==e&&!Array.isArray(e)}},{key:"isEmptyObj",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}},{key:"isNumberStrict",value:function(e){return"number"==typeof e}},{key:"isNumber",value:function(e){return!this.isArray(e)&&!isNaN(parseFloat(e))&&isFinite(e)}},{key:"isDigit",value:function(e){return/\d/.test(e)}},{key:"isNumberOrArabic",value:function(e){var t=this.arabicToLatinNumbers(e,!1,!0,!0);return this.isNumber(t)}},{key:"isInt",value:function(e){return"number"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)}},{key:"isFunction",value:function(e){return"function"==typeof e}},{key:"isIE11",value:function(){return"undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode}},{key:"contains",value:function(e,t){return!(!this.isString(e)||!this.isString(t)||""===e||""===t)&&-1!==e.indexOf(t)}},{key:"isInArray",value:function(e,t){return!(!this.isArray(t)||t===[]||this.isUndefined(e))&&-1!==t.indexOf(e)}},{key:"isArray",value:function(e){if("[object Array]"===Object.prototype.toString.call([]))return Array.isArray(e)||"object"===pa(e)&&"[object Array]"===Object.prototype.toString.call(e);throw new Error("toString message changed for Object Array")}},{key:"isElement",value:function(e){return"undefined"!=typeof Element&&e instanceof Element}},{key:"isInputElement",value:function(e){return this.isElement(e)&&"input"===e.tagName.toLowerCase()}},{key:"decimalPlaces",value:function(e){var t=ha(e.split("."),2)[1];return this.isUndefined(t)?0:t.length}},{key:"indexFirstNonZeroDecimalPlace",value:function(e){var t=ha(String(Math.abs(e)).split("."),2)[1];if(this.isUndefined(t))return 0;var n=t.lastIndexOf("0");return-1===n?n=0:n+=2,n}},{key:"keyCodeNumber",value:function(e){return void 0===e.which?e.keyCode:e.which}},{key:"character",value:function(t){var n;if("Unidentified"===t.key||void 0===t.key||this.isSeleniumBot()){var i=this.keyCodeNumber(t);if(i===ca.keyCode.AndroidDefault)return ca.keyName.AndroidDefault;var r=ca.fromCharCodeKeyCode[i];n=e.isUndefinedOrNullOrEmpty(r)?String.fromCharCode(i):r}else{var o;switch(t.key){case"Add":n=ca.keyName.NumpadPlus;break;case"Apps":n=ca.keyName.ContextMenu;break;case"Crsel":n=ca.keyName.CrSel;break;case"Decimal":n=t.char?t.char:ca.keyName.NumpadDot;break;case"Del":n="firefox"===(o=this.browser()).name&&o.version<=36||"ie"===o.name&&o.version<=9?ca.keyName.Dot:ca.keyName.Delete;break;case"Divide":n=ca.keyName.NumpadSlash;break;case"Down":n=ca.keyName.DownArrow;break;case"Esc":n=ca.keyName.Esc;break;case"Exsel":n=ca.keyName.ExSel;break;case"Left":n=ca.keyName.LeftArrow;break;case"Meta":case"Super":n=ca.keyName.OSLeft;break;case"Multiply":n=ca.keyName.NumpadMultiply;break;case"Right":n=ca.keyName.RightArrow;break;case"Spacebar":n=ca.keyName.Space;break;case"Subtract":n=ca.keyName.NumpadMinus;break;case"Up":n=ca.keyName.UpArrow;break;default:n=t.key}}return n}},{key:"browser",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?{name:"ie",version:(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""}:"Chrome"===n[1]&&null!==(e=t.match(/\b(OPR|Edge)\/(\d+)/))?{name:e[1].replace("OPR","opera"),version:e[2]}:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),{name:n[0].toLowerCase(),version:n[1]})}},{key:"isSeleniumBot",value:function(){return!0===window.navigator.webdriver}},{key:"isNegative",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t===n||""!==t&&(e.isNumber(t)?t<0:i?this.contains(t,n):this.isNegativeStrict(t,n))}},{key:"isNegativeStrict",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.charAt(0)===t}},{key:"isNegativeWithBrackets",value:function(e,t,n){return e.charAt(0)===t&&this.contains(e,n)}},{key:"isZeroOrHasNoValue",value:function(e){return!/[1-9]/g.test(e)}},{key:"setRawNegativeSign",value:function(e){return this.isNegativeStrict(e,"-")?e:"-".concat(e)}},{key:"replaceCharAt",value:function(e,t,n){return"".concat(e.substr(0,t)).concat(n).concat(e.substr(t+n.length))}},{key:"clampToRangeLimits",value:function(e,t){return Math.max(t.minimumValue,Math.min(t.maximumValue,e))}},{key:"countNumberCharactersOnTheCaretLeftSide",value:function(e,t,n){for(var i=new RegExp("[0-9".concat(n,"-]")),r=0,o=0;o<t;o++)i.test(e[o])&&r++;return r}},{key:"findCaretPositionInFormattedNumber",value:function(e,t,n,i){var r,o=n.length,a=e.length,s=0;for(r=0;r<o&&s<a&&s<t;r++)(e[s]===n[r]||"."===e[s]&&n[r]===i)&&s++;return r}},{key:"countCharInText",value:function(e,t){for(var n=0,i=0;i<t.length;i++)t[i]===e&&n++;return n}},{key:"convertCharacterCountToIndexPosition",value:function(e){return Math.max(e,e-1)}},{key:"getElementSelection",value:function(e){var t,n={};try{t=this.isUndefined(e.selectionStart)}catch(e){t=!1}try{if(t){var i=window.getSelection().getRangeAt(0);n.start=i.startOffset,n.end=i.endOffset,n.length=n.end-n.start}else n.start=e.selectionStart,n.end=e.selectionEnd,n.length=n.end-n.start}catch(e){n.start=0,n.end=0,n.length=0}return n}},{key:"setElementSelection",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.isUndefinedOrNullOrEmpty(i)&&(i=n),this.isInputElement(t))t.setSelectionRange(n,i);else if(!e.isNull(t.firstChild)){var r=document.createRange();r.setStart(t.firstChild,n),r.setEnd(t.firstChild,i);var o=window.getSelection();o.removeAllRanges(),o.addRange(r)}}},{key:"throwError",value:function(e){throw new Error(e)}},{key:"warning",value:function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&console.warn("Warning: ".concat(e))}},{key:"isWheelEvent",value:function(e){return e instanceof WheelEvent}},{key:"isWheelUpEvent",value:function(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),e.deltaY<0}},{key:"isWheelDownEvent",value:function(e){return this.isWheelEvent(e)&&!this.isUndefinedOrNullOrEmpty(e.deltaY)||this.throwError("The event passed as a parameter is not a valid wheel event, '".concat(e.type,"' given.")),e.deltaY>0}},{key:"forceDecimalPlaces",value:function(e,t){var n=ha(String(e).split("."),2),i=n[0],r=n[1];return r?"".concat(i,".").concat(r.substr(0,t)):e}},{key:"roundToNearest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return 0===e?0:(0===t&&this.throwError("The `stepPlace` used to round is equal to `0`. This value must not be equal to zero."),Math.round(e/t)*t)}},{key:"modifyAndRoundToNearestAuto",value:function(e,t,n){e=Number(this.forceDecimalPlaces(e,n));var i=Math.abs(e);if(i>=0&&i<1){var r,o=Math.pow(10,-n);if(0===e)return t?o:-o;var a,s=n,l=this.indexFirstNonZeroDecimalPlace(e);return r=l>=s-1?o:Math.pow(10,-(l+1)),a=t?e+r:e-r,this.roundToNearest(a,r)}e=parseInt(e,10);var c,u=Math.abs(e).toString().length;switch(u){case 1:c=0;break;case 2:case 3:c=1;break;case 4:case 5:c=2;break;default:c=u-3}var h,d=Math.pow(10,c);return(h=t?e+d:e-d)<=10&&h>=-10?h:this.roundToNearest(h,d)}},{key:"addAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!0,t)}},{key:"subtractAndRoundToNearestAuto",value:function(e,t){return this.modifyAndRoundToNearestAuto(e,!1,t)}},{key:"arabicToLatinNumbers",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isNull(e))return e;var r=e.toString();if(""===r)return e;if(null===r.match(/[٠١٢٣٤٥٦٧٨٩۴۵۶]/g))return t&&(r=Number(r)),r;n&&(r=r.replace(/٫/,".")),i&&(r=r.replace(/٬/g,"")),r=r.replace(/[٠١٢٣٤٥٦٧٨٩]/g,function(e){return e.charCodeAt(0)-1632}).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,function(e){return e.charCodeAt(0)-1776});var o=Number(r);return isNaN(o)?o:(t&&(r=o),r)}},{key:"triggerEvent",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];window.CustomEvent?t=new CustomEvent(e,{detail:i,bubbles:r,cancelable:o}):(t=document.createEvent("CustomEvent")).initCustomEvent(e,r,o,{detail:i}),n.dispatchEvent(t)}},{key:"parseStr",value:function(e){var t,n,i,r,o={};if(0===e&&1/e<0&&(e="-0"),e=e.toString(),this.isNegativeStrict(e,"-")?(e=e.slice(1),o.s=-1):o.s=1,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),t<0&&(t=e.length),(n=-1===e.search(/[1-9]/i)?e.length:e.search(/[1-9]/i))===(i=e.length))o.e=0,o.c=[0];else{for(r=i-1;"0"===e.charAt(r);r-=1)i-=1;for(i-=1,o.e=t-n-1,o.c=[],t=0;n<=i;n+=1)o.c[t]=+e.charAt(n),t+=1}return o}},{key:"testMinMax",value:function(e,t){var n=t.c,i=e.c,r=t.s,o=e.s,a=t.e,s=e.e;if(!n[0]||!i[0])return n[0]?r:i[0]?-o:0;if(r!==o)return r;var l=r<0;if(a!==s)return a>s^l?1:-1;for(r=-1,o=(a=n.length)<(s=i.length)?a:s,r+=1;r<o;r+=1)if(n[r]!==i[r])return n[r]>i[r]^l?1:-1;return a===s?0:a>s^l?1:-1}},{key:"randomString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return Math.random().toString(36).substr(2,e)}},{key:"domElement",value:function(t){var n;return n=e.isString(t)?document.querySelector(t):t,n}},{key:"getElementValue",value:function(e){return"input"===e.tagName.toLowerCase()?e.value:this.text(e)}},{key:"setElementValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;"input"===e.tagName.toLowerCase()?e.value=t:e.textContent=t}},{key:"setInvalidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Invalid";(""===t||this.isNull(t))&&this.throwError("Cannot set the invalid state with an empty message."),e.setCustomValidity(t)}},{key:"setValidState",value:function(e){e.setCustomValidity("")}},{key:"cloneObject",value:function(e){return Object.assign({},e)}},{key:"camelize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(this.isNull(e))return null;n&&(e=e.replace(/^data-/,""));var r=e.split(t).map(function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))});return r=r.join(""),i&&(r="".concat(r.charAt(0).toLowerCase()).concat(r.slice(1))),r}},{key:"text",value:function(e){var t=e.nodeType;return t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e.textContent:t===Node.TEXT_NODE?e.nodeValue:""}},{key:"setText",value:function(e,t){var n=e.nodeType;n!==Node.ELEMENT_NODE&&n!==Node.DOCUMENT_NODE&&n!==Node.DOCUMENT_FRAGMENT_NODE||(e.textContent=t)}},{key:"filterOut",value:function(e,t){var n=this;return e.filter(function(e){return!n.isInArray(e,t)})}},{key:"trimPaddedZerosFromDecimalPlaces",value:function(e){if(""===(e=String(e)))return"";var t=ha(e.split("."),2),n=t[0],i=t[1];if(this.isUndefinedOrNullOrEmpty(i))return n;var r=i.replace(/0+$/g,"");return""===r?n:"".concat(n,".").concat(r)}},{key:"getHoveredElement",value:function(){var e=ua(document.querySelectorAll(":hover"));return e[e.length-1]}},{key:"arrayTrim",value:function(e,t){var n=e.length;return 0===n||t>n?e:t<0?[]:(e.length=parseInt(t,10),e)}},{key:"arrayUnique",value:function(){var e;return ua(new Set((e=[]).concat.apply(e,arguments)))}},{key:"mergeMaps",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Map(t.reduce(function(e,t){return e.concat(ua(t))},[]))}},{key:"objectKeyLookup",value:function(e,t){var n=Object.entries(e).find(function(e){return e[1]===t}),i=null;return void 0!==n&&(i=n[0]),i}},{key:"insertAt",value:function(e,t,n){if(n>(e=String(e)).length)throw new Error("The given index is out of the string range.");if(1!==t.length)throw new Error("The given string `char` should be only one character long.");return""===e&&0===n?t:"".concat(e.slice(0,n)).concat(t).concat(e.slice(n))}},{key:"scientificToDecimal",value:function(e){var t=Number(e);if(isNaN(t))return NaN;if(e=String(e),!(this.contains(e,"e")||this.contains(e,"E")))return e;var n=ha(e.split(/e/i),2),i=n[0],r=n[1],o=i<0;o&&(i=i.replace("-",""));var a=+r<0;a&&(r=r.replace("-",""));var s,l=ha(i.split(/\./),2),c=l[0],u=l[1];return a?(s=c.length>r?this.insertAt(c,".",c.length-r):"0.".concat("0".repeat(r-c.length)).concat(c),s="".concat(s).concat(u||"")):u?(i="".concat(c).concat(u),s=r<u.length?this.insertAt(i,".",+r+c.length):"".concat(i).concat("0".repeat(r-u.length))):(i=i.replace(".",""),s="".concat(i).concat("0".repeat(Number(r)))),o&&(s="-".concat(s)),s}}],(n=null)&&fa(t.prototype,n),i&&fa(t,i),e}();function va(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var ya=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===t)throw new Error("Invalid AST")}var t,n,i;return t=e,(n=[{key:"evaluate",value:function(e){if(null==e)throw new Error("Invalid AST sub-tree");if("number"===e.type)return e.value;if("unaryMinus"===e.type)return-this.evaluate(e.left);var t=this.evaluate(e.left),n=this.evaluate(e.right);switch(e.type){case"op_+":return Number(t)+Number(n);case"op_-":return t-n;case"op_*":return t*n;case"op_/":return t/n;default:throw new Error("Invalid operator '".concat(e.type,"'"))}}}])&&va(t.prototype,n),i&&va(t,i),e}();function ba(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var _a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"createNode",value:function(t,n,i){var r=new e;return r.type=t,r.left=n,r.right=i,r}},{key:"createUnaryNode",value:function(t){var n=new e;return n.type="unaryMinus",n.left=t,n.right=null,n}},{key:"createLeaf",value:function(t){var n=new e;return n.type="number",n.value=t,n}}],(n=null)&&ba(t.prototype,n),i&&ba(t,i),e}();var Sa=function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.value=n,this.symbol=i};function wa(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ea=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.text=t,this.textLength=t.length,this.index=0,this.token=new Sa("Error",0,0)}var t,n,i;return t=e,(n=[{key:"_skipSpaces",value:function(){for(;" "===this.text[this.index]&&this.index<=this.textLength;)this.index++}},{key:"getIndex",value:function(){return this.index}},{key:"getNextToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".";if(this._skipSpaces(),this.textLength===this.index)return this.token.type="EOT",this.token;if(ga.isDigit(this.text[this.index]))return this.token.type="num",this.token.value=this._getNumber(e),this.token;switch(this.token.type="Error",this.text[this.index]){case"+":this.token.type="+";break;case"-":this.token.type="-";break;case"*":this.token.type="*";break;case"/":this.token.type="/";break;case"(":this.token.type="(";break;case")":this.token.type=")"}if("Error"===this.token.type)throw new Error("Unexpected token '".concat(this.token.symbol,"' at position '").concat(this.token.index,"' in the token function"));return this.token.symbol=this.text[this.index],this.index++,this.token}},{key:"_getNumber",value:function(e){this._skipSpaces();for(var t=this.index;this.index<=this.textLength&&ga.isDigit(this.text[this.index]);)this.index++;for(this.text[this.index]===e&&this.index++;this.index<=this.textLength&&ga.isDigit(this.text[this.index]);)this.index++;if(this.index===t)throw new Error("No number has been found while it was expected");return this.text.substring(t,this.index).replace(e,".")}}])&&wa(t.prototype,n),i&&wa(t,i),e}();function ka(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var xa=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.text=t,this.decimalCharacter=n,this.lexer=new Ea(t),this.token=this.lexer.getNextToken(this.decimalCharacter),this._exp()}var t,n,i;return t=e,(n=[{key:"_exp",value:function(){var e=this._term(),t=this._moreExp();return _a.createNode("op_+",e,t)}},{key:"_moreExp",value:function(){var e,t;switch(this.token.type){case"+":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),_a.createNode("op_+",t,e);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._term(),t=this._moreExp(),_a.createNode("op_-",t,e)}return _a.createLeaf(0)}},{key:"_term",value:function(){var e=this._factor(),t=this._moreTerms();return _a.createNode("op_*",e,t)}},{key:"_moreTerms",value:function(){var e,t;switch(this.token.type){case"*":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),_a.createNode("op_*",t,e);case"/":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._factor(),t=this._moreTerms(),_a.createNode("op_/",t,e)}return _a.createLeaf(1)}},{key:"_factor",value:function(){var e,t,n;switch(this.token.type){case"num":return n=this.token.value,this.token=this.lexer.getNextToken(this.decimalCharacter),_a.createLeaf(n);case"-":return this.token=this.lexer.getNextToken(this.decimalCharacter),t=this._factor(),_a.createUnaryNode(t);case"(":return this.token=this.lexer.getNextToken(this.decimalCharacter),e=this._exp(),this._match(")"),e;default:throw new Error("Unexpected token '".concat(this.token.symbol,"' with type '").concat(this.token.type,"' at position '").concat(this.token.index,"' in the factor function"))}}},{key:"_match",value:function(e){var t=this.lexer.getIndex()-1;if(this.text[t]!==e)throw new Error("Unexpected token '".concat(this.token.symbol,"' at position '").concat(t,"' in the match function"));this.token=this.lexer.getNextToken(this.decimalCharacter)}}])&&ka(t.prototype,n),i&&ka(t,i),e}();function Pa(e){return function(e){if(Array.isArray(e))return Ca(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ta(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||Ta(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ta(e,t){if(e){if("string"==typeof e)return Ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ca(e,t):void 0}}function Ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Na(e){return(Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Fa,Aa=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var o=e._setArgumentsValues(n,i,r),a=o.domElement,s=o.initialValue,l=o.userOptions;if(this.domElement=a,this.defaultRawValue="",this._setSettings(l,!1),this._checkElement(),this.savedCancellableValue=null,this.historyTable=[],this.historyTableIndex=-1,this.onGoingRedo=!1,this.parentForm=this._getParentForm(),!this.runOnce&&this.settings.formatOnPageLoad)this._formatDefaultValueOnPageLoad(s);else{var c;if(ga.isNull(s))switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.min:c=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:c=this.settings.maximumValue;break;case e.options.emptyInputBehavior.zero:c="0";break;case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:case e.options.emptyInputBehavior.always:case e.options.emptyInputBehavior.null:c="";break;default:c=this.settings.emptyInputBehavior}else c=s;this._setElementAndRawValue(c)}this.runOnce=!0,this.hasEventListeners=!1,(this.isInputElement||this.isContentEditable)&&(this.settings.noEventListeners||this._createEventListeners(),this._setWritePermissions(!0)),this._saveInitialValues(s),this.sessionStorageAvailable=this.constructor._storageTest(),this.storageNamePrefix="AUTO_",this._setPersistentStorageName(),this.validState=!0,this.isFocused=!1,this.isWheelEvent=!1,this.isDropEvent=!1,this.isEditing=!1,this.rawValueOnFocus=void 0,this.internalModification=!1,this.attributeToWatch=this._getAttributeToWatch(),this.getterSetter=Object.getOwnPropertyDescriptor(this.domElement.__proto__,this.attributeToWatch),this._addWatcher(),this.settings.createLocalList&&this._createLocalList(),this.constructor._addToGlobalList(this),this.global={set:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.autoNumericLocalList.forEach(function(t){t.set(e,n)})},setUnformatted:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.autoNumericLocalList.forEach(function(t){t.setUnformatted(e,n)})},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach(function(e){n.push(e.get())}),t._executeCallback(n,e),n},getNumericString:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach(function(e){n.push(e.getNumericString())}),t._executeCallback(n,e),n},getFormatted:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach(function(e){n.push(e.getFormatted())}),t._executeCallback(n,e),n},getNumber:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach(function(e){n.push(e.getNumber())}),t._executeCallback(n,e),n},getLocalized:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=[];return t.autoNumericLocalList.forEach(function(e){n.push(e.getLocalized())}),t._executeCallback(n,e),n},reformat:function(){t.autoNumericLocalList.forEach(function(e){e.reformat()})},unformat:function(){t.autoNumericLocalList.forEach(function(e){e.unformat()})},unformatLocalized:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t.autoNumericLocalList.forEach(function(t){t.unformatLocalized(e)})},update:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.autoNumericLocalList.forEach(function(e){e.update.apply(e,n)})},isPristine:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=!0;return t.autoNumericLocalList.forEach(function(t){n&&!t.isPristine(e)&&(n=!1)}),n},clear:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.autoNumericLocalList.forEach(function(t){t.clear(e)})},remove:function(){t.autoNumericLocalList.forEach(function(e){e.remove()})},wipe:function(){t.autoNumericLocalList.forEach(function(e){e.wipe()})},nuke:function(){t.autoNumericLocalList.forEach(function(e){e.nuke()})},has:function(n){return n instanceof e?t.autoNumericLocalList.has(n.node()):t.autoNumericLocalList.has(n)},addObject:function(n){var i,r;n instanceof e?(i=n.node(),r=n):(i=n,r=e.getAutoNumericElement(i)),t._hasLocalList()||t._createLocalList();var o,a=r._getLocalList();0===a.size&&(r._createLocalList(),a=r._getLocalList()),a instanceof Map?o=ga.mergeMaps(t._getLocalList(),a):(t._addToLocalList(i,r),o=t._getLocalList()),o.forEach(function(e){e._setLocalList(o)})},removeObject:function(n){var i,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n instanceof e?(i=n.node(),r=n):(i=n,r=e.getAutoNumericElement(i));var a=t.autoNumericLocalList;t.autoNumericLocalList.delete(i),a.forEach(function(e){e._setLocalList(t.autoNumericLocalList)}),o||i!==t.node()?r._createLocalList():r._setLocalList(new Map)},empty:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.autoNumericLocalList.forEach(function(t){e?t._createLocalList():t._setLocalList(new Map)})},elements:function(){var e=[];return t.autoNumericLocalList.forEach(function(t){e.push(t.node())}),e},getList:function(){return t.autoNumericLocalList},size:function(){return t.autoNumericLocalList.size}},this.options={reset:function(){return t.settings={rawValue:t.defaultRawValue},t.update(e.defaultSettings),t},allowDecimalPadding:function(e){return t.update({allowDecimalPadding:e}),t},alwaysAllowDecimalCharacter:function(e){return t.update({alwaysAllowDecimalCharacter:e}),t},caretPositionOnFocus:function(e){return t.settings.caretPositionOnFocus=e,t},createLocalList:function(e){return t.settings.createLocalList=e,t.settings.createLocalList?t._hasLocalList()||t._createLocalList():t._deleteLocalList(),t},currencySymbol:function(e){return t.update({currencySymbol:e}),t},currencySymbolPlacement:function(e){return t.update({currencySymbolPlacement:e}),t},decimalCharacter:function(e){return t.update({decimalCharacter:e}),t},decimalCharacterAlternative:function(e){return t.settings.decimalCharacterAlternative=e,t},decimalPlaces:function(e){return ga.warning("Using `options.decimalPlaces()` instead of calling the specific `options.decimalPlacesRawValue()`, `options.decimalPlacesShownOnFocus()` and `options.decimalPlacesShownOnBlur()` methods will reset those options.\nPlease call the specific methods if you do not want to reset those.",t.settings.showWarnings),t.update({decimalPlaces:e}),t},decimalPlacesRawValue:function(e){return t.update({decimalPlacesRawValue:e}),t},decimalPlacesShownOnBlur:function(e){return t.update({decimalPlacesShownOnBlur:e}),t},decimalPlacesShownOnFocus:function(e){return t.update({decimalPlacesShownOnFocus:e}),t},defaultValueOverride:function(e){return t.update({defaultValueOverride:e}),t},digitalGroupSpacing:function(e){return t.update({digitalGroupSpacing:e}),t},digitGroupSeparator:function(e){return t.update({digitGroupSeparator:e}),t},divisorWhenUnfocused:function(e){return t.update({divisorWhenUnfocused:e}),t},emptyInputBehavior:function(n){return null===t.rawValue&&n!==e.options.emptyInputBehavior.null&&(ga.warning("You are trying to modify the `emptyInputBehavior` option to something different than `'null'` (".concat(n,"), but the element raw value is currently set to `null`. This would result in an invalid `rawValue`. In order to fix that, the element value has been changed to the empty string `''`."),t.settings.showWarnings),t.rawValue=""),t.update({emptyInputBehavior:n}),t},eventBubbles:function(e){return t.settings.eventBubbles=e,t},eventIsCancelable:function(e){return t.settings.eventIsCancelable=e,t},failOnUnknownOption:function(e){return t.settings.failOnUnknownOption=e,t},formatOnPageLoad:function(e){return t.settings.formatOnPageLoad=e,t},formulaMode:function(e){return t.settings.formulaMode=e,t},historySize:function(e){return t.settings.historySize=e,t},invalidClass:function(e){return t.settings.invalidClass=e,t},isCancellable:function(e){return t.settings.isCancellable=e,t},leadingZero:function(e){return t.update({leadingZero:e}),t},maximumValue:function(e){return t.update({maximumValue:e}),t},minimumValue:function(e){return t.update({minimumValue:e}),t},modifyValueOnWheel:function(e){return t.settings.modifyValueOnWheel=e,t},negativeBracketsTypeOnBlur:function(e){return t.update({negativeBracketsTypeOnBlur:e}),t},negativePositiveSignPlacement:function(e){return t.update({negativePositiveSignPlacement:e}),t},negativeSignCharacter:function(e){return t.update({negativeSignCharacter:e}),t},noEventListeners:function(n){return n===e.options.noEventListeners.noEvents&&t.settings.noEventListeners===e.options.noEventListeners.addEvents&&t._removeEventListeners(),t.update({noEventListeners:n}),t},onInvalidPaste:function(e){return t.settings.onInvalidPaste=e,t},outputFormat:function(e){return t.settings.outputFormat=e,t},overrideMinMaxLimits:function(e){return t.update({overrideMinMaxLimits:e}),t},positiveSignCharacter:function(e){return t.update({positiveSignCharacter:e}),t},rawValueDivisor:function(e){return t.update({rawValueDivisor:e}),t},readOnly:function(e){return t.settings.readOnly=e,t._setWritePermissions(),t},roundingMethod:function(e){return t.update({roundingMethod:e}),t},saveValueToSessionStorage:function(e){return t.update({saveValueToSessionStorage:e}),t},symbolWhenUnfocused:function(e){return t.update({symbolWhenUnfocused:e}),t},selectNumberOnly:function(e){return t.settings.selectNumberOnly=e,t},selectOnFocus:function(e){return t.settings.selectOnFocus=e,t},serializeSpaces:function(e){return t.settings.serializeSpaces=e,t},showOnlyNumbersOnFocus:function(e){return t.update({showOnlyNumbersOnFocus:e}),t},showPositiveSign:function(e){return t.update({showPositiveSign:e}),t},showWarnings:function(e){return t.settings.showWarnings=e,t},styleRules:function(e){return t.update({styleRules:e}),t},suffixText:function(e){return t.update({suffixText:e}),t},unformatOnHover:function(e){return t.settings.unformatOnHover=e,t},unformatOnSubmit:function(e){return t.settings.unformatOnSubmit=e,t},valuesToStrings:function(e){return t.update({valuesToStrings:e}),t},watchExternalChanges:function(e){return t.update({watchExternalChanges:e}),t},wheelOn:function(e){return t.settings.wheelOn=e,t},wheelStep:function(e){return t.settings.wheelStep=e,t}},this._triggerEvent(e.events.initialized,this.domElement,{newValue:ga.getElementValue(this.domElement),newRawValue:this.rawValue,error:null,aNElement:this})}var t,n,i;return t=e,i=[{key:"version",value:function(){return"4.6.0"}},{key:"_setArgumentsValues",value:function(e,t,n){ga.isNull(e)&&ga.throwError("At least one valid parameter is needed in order to initialize an AutoNumeric object");var i,r,o,a=ga.isElement(e),s=ga.isString(e),l=ga.isObject(t),c=Array.isArray(t)&&t.length>0,u=ga.isNumberOrArabic(t)||""===t,h=this._isPreDefinedOptionValid(t),d=ga.isNull(t),m=ga.isEmptyString(t),p=ga.isObject(n),f=Array.isArray(n)&&n.length>0,g=ga.isNull(n),v=this._isPreDefinedOptionValid(n);return a&&d&&g?(i=e,o=null,r=null):a&&u&&g?(i=e,o=t,r=null):a&&l&&g?(i=e,o=null,r=t):a&&h&&g?(i=e,o=null,r=this._getOptionObject(t)):a&&c&&g?(i=e,o=null,r=this.mergeOptions(t)):a&&(d||m)&&p?(i=e,o=null,r=n):a&&(d||m)&&f?(i=e,o=null,r=this.mergeOptions(n)):s&&d&&g?(i=document.querySelector(e),o=null,r=null):s&&l&&g?(i=document.querySelector(e),o=null,r=t):s&&h&&g?(i=document.querySelector(e),o=null,r=this._getOptionObject(t)):s&&c&&g?(i=document.querySelector(e),o=null,r=this.mergeOptions(t)):s&&(d||m)&&p?(i=document.querySelector(e),o=null,r=n):s&&(d||m)&&f?(i=document.querySelector(e),o=null,r=this.mergeOptions(n)):s&&u&&g?(i=document.querySelector(e),o=t,r=null):s&&u&&p?(i=document.querySelector(e),o=t,r=n):s&&u&&v?(i=document.querySelector(e),o=t,r=this._getOptionObject(n)):s&&u&&f?(i=document.querySelector(e),o=t,r=this.mergeOptions(n)):a&&u&&p?(i=e,o=t,r=n):a&&u&&v?(i=e,o=t,r=this._getOptionObject(n)):a&&u&&f?(i=e,o=t,r=this.mergeOptions(n)):ga.throwError("The parameters given to the AutoNumeric object are not valid, '".concat(e,"', '").concat(t,"' and '").concat(n,"' given.")),ga.isNull(i)&&ga.throwError("The selector '".concat(e,"' did not select any valid DOM element. Please check on which element you called AutoNumeric.")),{domElement:i,initialValue:o,userOptions:r}}},{key:"mergeOptions",value:function(e){var t=this,n={};return e.forEach(function(e){Object.assign(n,t._getOptionObject(e))}),n}},{key:"_isPreDefinedOptionValid",value:function(t){return Object.prototype.hasOwnProperty.call(e.predefinedOptions,t)}},{key:"_getOptionObject",value:function(t){var n;return ga.isString(t)?null==(n=e.getPredefinedOptions()[t])&&ga.warning("The given pre-defined option [".concat(t,"] is not recognized by autoNumeric. Please check that pre-defined option name."),!0):n=t,n}},{key:"_doesFormHandlerListExists",value:function(){var e=Na(window.aNFormHandlerMap);return"undefined"!==e&&"object"===e}},{key:"_createFormHandlerList",value:function(){window.aNFormHandlerMap=new Map}},{key:"_checkValuesToStringsArray",value:function(e,t){return ga.isInArray(String(e),t)}},{key:"_checkValuesToStringsSettings",value:function(e,t){return this._checkValuesToStringsArray(e,Object.keys(t.valuesToStrings))}},{key:"_checkStringsToValuesSettings",value:function(e,t){return this._checkValuesToStringsArray(e,Object.values(t.valuesToStrings))}},{key:"_unformatAltHovered",value:function(e){e.hoveredWithAlt=!0,e.unformat()}},{key:"_reformatAltHovered",value:function(e){e.hoveredWithAlt=!1,e.reformat()}},{key:"_getChildANInputElement",value:function(e){var t=this,n=e.getElementsByTagName("input"),i=[];return Array.prototype.slice.call(n,0).forEach(function(e){t.test(e)&&i.push(e)}),i}},{key:"test",value:function(e){return this._isInGlobalList(ga.domElement(e))}},{key:"_createWeakMap",value:function(e){window[e]=new WeakMap}},{key:"_createGlobalList",value:function(){this.autoNumericGlobalListName="autoNumericGlobalList",this._createWeakMap(this.autoNumericGlobalListName)}},{key:"_doesGlobalListExists",value:function(){var e=Na(window[this.autoNumericGlobalListName]);return"undefined"!==e&&"object"===e}},{key:"_addToGlobalList",value:function(e){this._doesGlobalListExists()||this._createGlobalList();var t=e.node();if(this._isInGlobalList(t)){if(this._getFromGlobalList(t)===this)return;ga.warning("A reference to the DOM element you just initialized already exists in the global AutoNumeric element list. Please make sure to not initialize the same DOM element multiple times.",e.getSettings().showWarnings)}window[this.autoNumericGlobalListName].set(t,e)}},{key:"_removeFromGlobalList",value:function(e){this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].delete(e.node())}},{key:"_getFromGlobalList",value:function(e){return this._doesGlobalListExists()?window[this.autoNumericGlobalListName].get(e):null}},{key:"_isInGlobalList",value:function(e){return!!this._doesGlobalListExists()&&window[this.autoNumericGlobalListName].has(e)}},{key:"validate",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!ga.isUndefinedOrNullOrEmpty(t)&&ga.isObject(t)||ga.throwError("The userOptions are invalid ; it should be a valid object, [".concat(t,"] given."));var r,o=ga.isObject(i);o||ga.isNull(i)||ga.throwError("The 'originalOptions' parameter is invalid ; it should either be a valid option object or `null`, [".concat(t,"] given.")),ga.isNull(t)||this._convertOldOptionsToNewOnes(t),r=n?Object.assign({},this.getDefaultConfig(),t):t,ga.isTrueOrFalseString(r.showWarnings)||ga.isBoolean(r.showWarnings)||ga.throwError("The debug option 'showWarnings' is invalid ; it should be either 'true' or 'false', [".concat(r.showWarnings,"] given."));var a,s=/^[0-9]+$/,l=/[0-9]+/,c=/^-?[0-9]+(\.?[0-9]+)?$/,u=/^[0-9]+(\.?[0-9]+)?$/;ga.isTrueOrFalseString(r.allowDecimalPadding)||ga.isBoolean(r.allowDecimalPadding)||r.allowDecimalPadding===e.options.allowDecimalPadding.floats||ga.throwError("The decimal padding option 'allowDecimalPadding' is invalid ; it should either be `false`, `true` or `'floats'`, [".concat(r.allowDecimalPadding,"] given.")),r.allowDecimalPadding!==e.options.allowDecimalPadding.never&&"false"!==r.allowDecimalPadding||r.decimalPlaces===e.options.decimalPlaces.none&&r.decimalPlacesShownOnBlur===e.options.decimalPlacesShownOnBlur.none&&r.decimalPlacesShownOnFocus===e.options.decimalPlacesShownOnFocus.none||ga.warning("Setting 'allowDecimalPadding' to [".concat(r.allowDecimalPadding,"] will override the current 'decimalPlaces*' settings [").concat(r.decimalPlaces,", ").concat(r.decimalPlacesShownOnBlur," and ").concat(r.decimalPlacesShownOnFocus,"]."),r.showWarnings),ga.isTrueOrFalseString(r.alwaysAllowDecimalCharacter)||ga.isBoolean(r.alwaysAllowDecimalCharacter)||ga.throwError("The option 'alwaysAllowDecimalCharacter' is invalid ; it should either be `true` or `false`, [".concat(r.alwaysAllowDecimalCharacter,"] given.")),ga.isNull(r.caretPositionOnFocus)||ga.isInArray(r.caretPositionOnFocus,[e.options.caretPositionOnFocus.start,e.options.caretPositionOnFocus.end,e.options.caretPositionOnFocus.decimalLeft,e.options.caretPositionOnFocus.decimalRight])||ga.throwError("The display on empty string option 'caretPositionOnFocus' is invalid ; it should either be `null`, 'focus', 'press', 'always' or 'zero', [".concat(r.caretPositionOnFocus,"] given.")),a=o?i:this._correctCaretPositionOnFocusAndSelectOnFocusOptions(t),ga.isNull(a)||a.caretPositionOnFocus===e.options.caretPositionOnFocus.doNoForceCaretPosition||a.selectOnFocus!==e.options.selectOnFocus.select||ga.warning("The 'selectOnFocus' option is set to 'select', which is in conflict with the 'caretPositionOnFocus' which is set to '".concat(a.caretPositionOnFocus,"'. As a result, if this has been called when instantiating an AutoNumeric object, the 'selectOnFocus' option is forced to 'doNotSelect'."),r.showWarnings),ga.isInArray(r.digitGroupSeparator,[e.options.digitGroupSeparator.comma,e.options.digitGroupSeparator.dot,e.options.digitGroupSeparator.normalSpace,e.options.digitGroupSeparator.thinSpace,e.options.digitGroupSeparator.narrowNoBreakSpace,e.options.digitGroupSeparator.noBreakSpace,e.options.digitGroupSeparator.noSeparator,e.options.digitGroupSeparator.apostrophe,e.options.digitGroupSeparator.arabicThousandsSeparator,e.options.digitGroupSeparator.dotAbove,e.options.digitGroupSeparator.privateUseTwo])||ga.throwError("The thousand separator character option 'digitGroupSeparator' is invalid ; it should be ',', '.', '٬', '˙', \"'\", '', ' ', ' ', ' ', ' ' or empty (''), [".concat(r.digitGroupSeparator,"] given.")),ga.isTrueOrFalseString(r.showOnlyNumbersOnFocus)||ga.isBoolean(r.showOnlyNumbersOnFocus)||ga.throwError("The 'showOnlyNumbersOnFocus' option is invalid ; it should be either 'true' or 'false', [".concat(r.showOnlyNumbersOnFocus,"] given.")),ga.isInArray(r.digitalGroupSpacing,[e.options.digitalGroupSpacing.two,e.options.digitalGroupSpacing.twoScaled,e.options.digitalGroupSpacing.three,e.options.digitalGroupSpacing.four])||r.digitalGroupSpacing>=2&&r.digitalGroupSpacing<=4||ga.throwError("The grouping separator option for thousands 'digitalGroupSpacing' is invalid ; it should be '2', '2s', '3', or '4', [".concat(r.digitalGroupSpacing,"] given.")),ga.isInArray(r.decimalCharacter,[e.options.decimalCharacter.comma,e.options.decimalCharacter.dot,e.options.decimalCharacter.middleDot,e.options.decimalCharacter.arabicDecimalSeparator,e.options.decimalCharacter.decimalSeparatorKeySymbol])||ga.throwError("The decimal separator character option 'decimalCharacter' is invalid ; it should be '.', ',', '·', '⎖' or '٫', [".concat(r.decimalCharacter,"] given.")),r.decimalCharacter===r.digitGroupSeparator&&ga.throwError("autoNumeric will not function properly when the decimal character 'decimalCharacter' [".concat(r.decimalCharacter,"] and the thousand separator 'digitGroupSeparator' [").concat(r.digitGroupSeparator,"] are the same character.")),ga.isNull(r.decimalCharacterAlternative)||ga.isString(r.decimalCharacterAlternative)||ga.throwError("The alternate decimal separator character option 'decimalCharacterAlternative' is invalid ; it should be a string, [".concat(r.decimalCharacterAlternative,"] given.")),""===r.currencySymbol||ga.isString(r.currencySymbol)||ga.throwError("The currency symbol option 'currencySymbol' is invalid ; it should be a string, [".concat(r.currencySymbol,"] given.")),ga.isInArray(r.currencySymbolPlacement,[e.options.currencySymbolPlacement.prefix,e.options.currencySymbolPlacement.suffix])||ga.throwError("The placement of the currency sign option 'currencySymbolPlacement' is invalid ; it should either be 'p' (prefix) or 's' (suffix), [".concat(r.currencySymbolPlacement,"] given.")),ga.isInArray(r.negativePositiveSignPlacement,[e.options.negativePositiveSignPlacement.prefix,e.options.negativePositiveSignPlacement.suffix,e.options.negativePositiveSignPlacement.left,e.options.negativePositiveSignPlacement.right,e.options.negativePositiveSignPlacement.none])||ga.throwError("The placement of the negative sign option 'negativePositiveSignPlacement' is invalid ; it should either be 'p' (prefix), 's' (suffix), 'l' (left), 'r' (right) or 'null', [".concat(r.negativePositiveSignPlacement,"] given.")),ga.isTrueOrFalseString(r.showPositiveSign)||ga.isBoolean(r.showPositiveSign)||ga.throwError("The show positive sign option 'showPositiveSign' is invalid ; it should be either 'true' or 'false', [".concat(r.showPositiveSign,"] given.")),(!ga.isString(r.suffixText)||""!==r.suffixText&&(ga.isNegative(r.suffixText,r.negativeSignCharacter)||l.test(r.suffixText)))&&ga.throwError("The additional suffix option 'suffixText' is invalid ; it should not contains the negative sign '".concat(r.negativeSignCharacter,"' nor any numerical characters, [").concat(r.suffixText,"] given.")),(!ga.isString(r.negativeSignCharacter)||1!==r.negativeSignCharacter.length||ga.isUndefinedOrNullOrEmpty(r.negativeSignCharacter)||l.test(r.negativeSignCharacter))&&ga.throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(r.negativeSignCharacter,"] given.")),(!ga.isString(r.positiveSignCharacter)||1!==r.positiveSignCharacter.length||ga.isUndefinedOrNullOrEmpty(r.positiveSignCharacter)||l.test(r.positiveSignCharacter))&&ga.throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should be a single character, and cannot be any numerical characters, [".concat(r.positiveSignCharacter,"] given.\nIf you want to hide the positive sign character, you need to set the `showPositiveSign` option to `true`.")),r.negativeSignCharacter===r.positiveSignCharacter&&ga.throwError("The positive 'positiveSignCharacter' and negative 'negativeSignCharacter' sign characters cannot be identical ; [".concat(r.negativeSignCharacter,"] given."));var h=Oa(ga.isNull(r.negativeBracketsTypeOnBlur)?["",""]:r.negativeBracketsTypeOnBlur.split(","),2),d=h[0],m=h[1];(ga.contains(r.digitGroupSeparator,r.negativeSignCharacter)||ga.contains(r.decimalCharacter,r.negativeSignCharacter)||ga.contains(r.decimalCharacterAlternative,r.negativeSignCharacter)||ga.contains(d,r.negativeSignCharacter)||ga.contains(m,r.negativeSignCharacter)||ga.contains(r.suffixText,r.negativeSignCharacter))&&ga.throwError("The negative sign character option 'negativeSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(r.negativeSignCharacter,"] given.")),(ga.contains(r.digitGroupSeparator,r.positiveSignCharacter)||ga.contains(r.decimalCharacter,r.positiveSignCharacter)||ga.contains(r.decimalCharacterAlternative,r.positiveSignCharacter)||ga.contains(d,r.positiveSignCharacter)||ga.contains(m,r.positiveSignCharacter)||ga.contains(r.suffixText,r.positiveSignCharacter))&&ga.throwError("The positive sign character option 'positiveSignCharacter' is invalid ; it should not be equal or a part of the digit separator, the decimal character, the decimal character alternative, the negative brackets or the suffix text, [".concat(r.positiveSignCharacter,"] given.")),ga.isNull(r.overrideMinMaxLimits)||ga.isInArray(r.overrideMinMaxLimits,[e.options.overrideMinMaxLimits.ceiling,e.options.overrideMinMaxLimits.floor,e.options.overrideMinMaxLimits.ignore,e.options.overrideMinMaxLimits.invalid])||ga.throwError("The override min & max limits option 'overrideMinMaxLimits' is invalid ; it should either be 'ceiling', 'floor', 'ignore' or 'invalid', [".concat(r.overrideMinMaxLimits,"] given.")),r.overrideMinMaxLimits!==e.options.overrideMinMaxLimits.invalid&&r.overrideMinMaxLimits!==e.options.overrideMinMaxLimits.ignore&&(r.minimumValue>0||r.maximumValue<0)&&ga.warning("You've set a `minimumValue` or a `maximumValue` excluding the value `0`. AutoNumeric will force the users to always have a valid value in the input, hence preventing them to clear the field. If you want to allow for temporary invalid values (ie. out-of-range), you should use the 'invalid' option for the 'overrideMinMaxLimits' setting."),ga.isString(r.maximumValue)&&c.test(r.maximumValue)||ga.throwError("The maximum possible value option 'maximumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.maximumValue,"] given.")),ga.isString(r.minimumValue)&&c.test(r.minimumValue)||ga.throwError("The minimum possible value option 'minimumValue' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.minimumValue,"] given.")),parseFloat(r.minimumValue)>parseFloat(r.maximumValue)&&ga.throwError("The minimum possible value option is greater than the maximum possible value option ; 'minimumValue' [".concat(r.minimumValue,"] should be smaller than 'maximumValue' [").concat(r.maximumValue,"].")),ga.isInt(r.decimalPlaces)&&r.decimalPlaces>=0||ga.isString(r.decimalPlaces)&&s.test(r.decimalPlaces)||ga.throwError("The number of decimal places option 'decimalPlaces' is invalid ; it should be a positive integer, [".concat(r.decimalPlaces,"] given.")),ga.isNull(r.decimalPlacesRawValue)||ga.isInt(r.decimalPlacesRawValue)&&r.decimalPlacesRawValue>=0||ga.isString(r.decimalPlacesRawValue)&&s.test(r.decimalPlacesRawValue)||ga.throwError("The number of decimal places for the raw value option 'decimalPlacesRawValue' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesRawValue,"] given.")),this._validateDecimalPlacesRawValue(r),ga.isNull(r.decimalPlacesShownOnFocus)||s.test(String(r.decimalPlacesShownOnFocus))||ga.throwError("The number of expanded decimal places option 'decimalPlacesShownOnFocus' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnFocus,"] given.")),!ga.isNull(r.decimalPlacesShownOnFocus)&&Number(r.decimalPlaces)>Number(r.decimalPlacesShownOnFocus)&&ga.warning("The extended decimal places 'decimalPlacesShownOnFocus' [".concat(r.decimalPlacesShownOnFocus,"] should be greater than the 'decimalPlaces' [").concat(r.decimalPlaces,"] value. Currently, this will limit the ability of your user to manually change some of the decimal places. Do you really want to do that?"),r.showWarnings),(ga.isNull(r.divisorWhenUnfocused)||u.test(r.divisorWhenUnfocused))&&0!==r.divisorWhenUnfocused&&"0"!==r.divisorWhenUnfocused&&1!==r.divisorWhenUnfocused&&"1"!==r.divisorWhenUnfocused||ga.throwError("The divisor option 'divisorWhenUnfocused' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.divisorWhenUnfocused,"] given.")),ga.isNull(r.decimalPlacesShownOnBlur)||s.test(r.decimalPlacesShownOnBlur)||ga.throwError("The number of decimals shown when unfocused option 'decimalPlacesShownOnBlur' is invalid ; it should be a positive integer or `null`, [".concat(r.decimalPlacesShownOnBlur,"] given.")),ga.isNull(r.symbolWhenUnfocused)||ga.isString(r.symbolWhenUnfocused)||ga.throwError("The symbol to show when unfocused option 'symbolWhenUnfocused' is invalid ; it should be a string, [".concat(r.symbolWhenUnfocused,"] given.")),ga.isTrueOrFalseString(r.saveValueToSessionStorage)||ga.isBoolean(r.saveValueToSessionStorage)||ga.throwError("The save to session storage option 'saveValueToSessionStorage' is invalid ; it should be either 'true' or 'false', [".concat(r.saveValueToSessionStorage,"] given.")),ga.isInArray(r.onInvalidPaste,[e.options.onInvalidPaste.error,e.options.onInvalidPaste.ignore,e.options.onInvalidPaste.clamp,e.options.onInvalidPaste.truncate,e.options.onInvalidPaste.replace])||ga.throwError("The paste behavior option 'onInvalidPaste' is invalid ; it should either be 'error', 'ignore', 'clamp', 'truncate' or 'replace' (cf. documentation), [".concat(r.onInvalidPaste,"] given.")),ga.isInArray(r.roundingMethod,[e.options.roundingMethod.halfUpSymmetric,e.options.roundingMethod.halfUpAsymmetric,e.options.roundingMethod.halfDownSymmetric,e.options.roundingMethod.halfDownAsymmetric,e.options.roundingMethod.halfEvenBankersRounding,e.options.roundingMethod.upRoundAwayFromZero,e.options.roundingMethod.downRoundTowardZero,e.options.roundingMethod.toCeilingTowardPositiveInfinity,e.options.roundingMethod.toFloorTowardNegativeInfinity,e.options.roundingMethod.toNearest05,e.options.roundingMethod.toNearest05Alt,e.options.roundingMethod.upToNext05,e.options.roundingMethod.downToNext05])||ga.throwError("The rounding method option 'roundingMethod' is invalid ; it should either be 'S', 'A', 's', 'a', 'B', 'U', 'D', 'C', 'F', 'N05', 'CHF', 'U05' or 'D05' (cf. documentation), [".concat(r.roundingMethod,"] given.")),ga.isNull(r.negativeBracketsTypeOnBlur)||ga.isInArray(r.negativeBracketsTypeOnBlur,[e.options.negativeBracketsTypeOnBlur.parentheses,e.options.negativeBracketsTypeOnBlur.brackets,e.options.negativeBracketsTypeOnBlur.chevrons,e.options.negativeBracketsTypeOnBlur.curlyBraces,e.options.negativeBracketsTypeOnBlur.angleBrackets,e.options.negativeBracketsTypeOnBlur.japaneseQuotationMarks,e.options.negativeBracketsTypeOnBlur.halfBrackets,e.options.negativeBracketsTypeOnBlur.whiteSquareBrackets,e.options.negativeBracketsTypeOnBlur.quotationMarks,e.options.negativeBracketsTypeOnBlur.guillemets])||ga.throwError("The brackets for negative values option 'negativeBracketsTypeOnBlur' is invalid ; it should either be '(,)', '[,]', '<,>', '{,}', '〈,〉', '｢,｣', '⸤,⸥', '⟦,⟧', '‹,›' or '«,»', [".concat(r.negativeBracketsTypeOnBlur,"] given.")),(ga.isString(r.emptyInputBehavior)||ga.isNumber(r.emptyInputBehavior))&&(ga.isInArray(r.emptyInputBehavior,[e.options.emptyInputBehavior.focus,e.options.emptyInputBehavior.press,e.options.emptyInputBehavior.always,e.options.emptyInputBehavior.min,e.options.emptyInputBehavior.max,e.options.emptyInputBehavior.zero,e.options.emptyInputBehavior.null])||c.test(r.emptyInputBehavior))||ga.throwError("The display on empty string option 'emptyInputBehavior' is invalid ; it should either be 'focus', 'press', 'always', 'min', 'max', 'zero', 'null', a number, or a string that represents a number, [".concat(r.emptyInputBehavior,"] given.")),r.emptyInputBehavior===e.options.emptyInputBehavior.zero&&(r.minimumValue>0||r.maximumValue<0)&&ga.throwError("The 'emptyInputBehavior' option is set to 'zero', but this value is outside of the range defined by 'minimumValue' and 'maximumValue' [".concat(r.minimumValue,", ").concat(r.maximumValue,"].")),c.test(String(r.emptyInputBehavior))&&(this._isWithinRangeWithOverrideOption(r.emptyInputBehavior,r)||ga.throwError("The 'emptyInputBehavior' option is set to a number or a string that represents a number, but its value [".concat(r.emptyInputBehavior,"] is outside of the range defined by the 'minimumValue' and 'maximumValue' options [").concat(r.minimumValue,", ").concat(r.maximumValue,"]."))),ga.isTrueOrFalseString(r.eventBubbles)||ga.isBoolean(r.eventBubbles)||ga.throwError("The event bubbles option 'eventBubbles' is invalid ; it should be either 'true' or 'false', [".concat(r.eventBubbles,"] given.")),ga.isTrueOrFalseString(r.eventIsCancelable)||ga.isBoolean(r.eventIsCancelable)||ga.throwError("The event is cancelable option 'eventIsCancelable' is invalid ; it should be either 'true' or 'false', [".concat(r.eventIsCancelable,"] given.")),!ga.isBoolean(r.invalidClass)&&/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(r.invalidClass)||ga.throwError("The name of the 'invalidClass' option is not a valid CSS class name ; it should not be empty, and should follow the '^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$' regex, [".concat(r.invalidClass,"] given.")),ga.isInArray(r.leadingZero,[e.options.leadingZero.allow,e.options.leadingZero.deny,e.options.leadingZero.keep])||ga.throwError("The leading zero behavior option 'leadingZero' is invalid ; it should either be 'allow', 'deny' or 'keep', [".concat(r.leadingZero,"] given.")),ga.isTrueOrFalseString(r.formatOnPageLoad)||ga.isBoolean(r.formatOnPageLoad)||ga.throwError("The format on initialization option 'formatOnPageLoad' is invalid ; it should be either 'true' or 'false', [".concat(r.formatOnPageLoad,"] given.")),ga.isTrueOrFalseString(r.formulaMode)||ga.isBoolean(r.formulaMode)||ga.throwError("The formula mode option 'formulaMode' is invalid ; it should be either 'true' or 'false', [".concat(r.formulaMode,"] given.")),s.test(r.historySize)&&0!==r.historySize||ga.throwError("The history size option 'historySize' is invalid ; it should be a positive integer, [".concat(r.historySize,"] given.")),ga.isTrueOrFalseString(r.selectNumberOnly)||ga.isBoolean(r.selectNumberOnly)||ga.throwError("The select number only option 'selectNumberOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.selectNumberOnly,"] given.")),ga.isTrueOrFalseString(r.selectOnFocus)||ga.isBoolean(r.selectOnFocus)||ga.throwError("The select on focus option 'selectOnFocus' is invalid ; it should be either 'true' or 'false', [".concat(r.selectOnFocus,"] given.")),ga.isNull(r.defaultValueOverride)||""===r.defaultValueOverride||c.test(r.defaultValueOverride)||ga.throwError("The unformatted default value option 'defaultValueOverride' is invalid ; it should be a string that represents a positive or negative number, [".concat(r.defaultValueOverride,"] given.")),ga.isTrueOrFalseString(r.unformatOnSubmit)||ga.isBoolean(r.unformatOnSubmit)||ga.throwError("The remove formatting on submit option 'unformatOnSubmit' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnSubmit,"] given.")),ga.isNull(r.valuesToStrings)||ga.isObject(r.valuesToStrings)||ga.throwError("The option 'valuesToStrings' is invalid ; it should be an object, ideally with 'key -> value' entries, [".concat(r.valuesToStrings,"] given.")),ga.isNull(r.outputFormat)||ga.isInArray(r.outputFormat,[e.options.outputFormat.string,e.options.outputFormat.number,e.options.outputFormat.dot,e.options.outputFormat.negativeDot,e.options.outputFormat.comma,e.options.outputFormat.negativeComma,e.options.outputFormat.dotNegative,e.options.outputFormat.commaNegative])||ga.throwError("The custom locale format option 'outputFormat' is invalid ; it should either be null, 'string', 'number', '.', '-.', ',', '-,', '.-' or ',-', [".concat(r.outputFormat,"] given.")),ga.isTrueOrFalseString(r.isCancellable)||ga.isBoolean(r.isCancellable)||ga.throwError("The cancellable behavior option 'isCancellable' is invalid ; it should be either 'true' or 'false', [".concat(r.isCancellable,"] given.")),ga.isTrueOrFalseString(r.modifyValueOnWheel)||ga.isBoolean(r.modifyValueOnWheel)||ga.throwError("The increment/decrement on mouse wheel option 'modifyValueOnWheel' is invalid ; it should be either 'true' or 'false', [".concat(r.modifyValueOnWheel,"] given.")),ga.isTrueOrFalseString(r.watchExternalChanges)||ga.isBoolean(r.watchExternalChanges)||ga.throwError("The option 'watchExternalChanges' is invalid ; it should be either 'true' or 'false', [".concat(r.watchExternalChanges,"] given.")),ga.isInArray(r.wheelOn,[e.options.wheelOn.focus,e.options.wheelOn.hover])||ga.throwError("The wheel behavior option 'wheelOn' is invalid ; it should either be 'focus' or 'hover', [".concat(r.wheelOn,"] given.")),(!ga.isString(r.wheelStep)&&!ga.isNumber(r.wheelStep)||"progressive"!==r.wheelStep&&!u.test(r.wheelStep)||0===Number(r.wheelStep))&&ga.throwError("The wheel step value option 'wheelStep' is invalid ; it should either be the string 'progressive', or a number or a string that represents a positive number (excluding zero), [".concat(r.wheelStep,"] given.")),ga.isInArray(r.serializeSpaces,[e.options.serializeSpaces.plus,e.options.serializeSpaces.percent])||ga.throwError("The space replacement character option 'serializeSpaces' is invalid ; it should either be '+' or '%20', [".concat(r.serializeSpaces,"] given.")),ga.isTrueOrFalseString(r.noEventListeners)||ga.isBoolean(r.noEventListeners)||ga.throwError("The option 'noEventListeners' that prevent the creation of event listeners is invalid ; it should be either 'true' or 'false', [".concat(r.noEventListeners,"] given.")),ga.isNull(r.styleRules)||ga.isObject(r.styleRules)&&(Object.prototype.hasOwnProperty.call(r.styleRules,"positive")||Object.prototype.hasOwnProperty.call(r.styleRules,"negative")||Object.prototype.hasOwnProperty.call(r.styleRules,"ranges")||Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined"))||ga.throwError("The option 'styleRules' is invalid ; it should be a correctly structured object, with one or more 'positive', 'negative', 'ranges' or 'userDefined' attributes, [".concat(r.styleRules,"] given.")),ga.isNull(r.styleRules)||!Object.prototype.hasOwnProperty.call(r.styleRules,"userDefined")||ga.isNull(r.styleRules.userDefined)||r.styleRules.userDefined.forEach(function(e){Object.prototype.hasOwnProperty.call(e,"callback")&&!ga.isFunction(e.callback)&&ga.throwError("The callback defined in the `userDefined` attribute is not a function, ".concat(Na(e.callback)," given."))}),(ga.isNull(r.rawValueDivisor)||u.test(r.rawValueDivisor))&&0!==r.rawValueDivisor&&"0"!==r.rawValueDivisor&&1!==r.rawValueDivisor&&"1"!==r.rawValueDivisor||ga.throwError("The raw value divisor option 'rawValueDivisor' is invalid ; it should be a positive number higher than one, preferably an integer, [".concat(r.rawValueDivisor,"] given.")),ga.isTrueOrFalseString(r.readOnly)||ga.isBoolean(r.readOnly)||ga.throwError("The option 'readOnly' is invalid ; it should be either 'true' or 'false', [".concat(r.readOnly,"] given.")),ga.isTrueOrFalseString(r.unformatOnHover)||ga.isBoolean(r.unformatOnHover)||ga.throwError("The option 'unformatOnHover' is invalid ; it should be either 'true' or 'false', [".concat(r.unformatOnHover,"] given.")),ga.isTrueOrFalseString(r.failOnUnknownOption)||ga.isBoolean(r.failOnUnknownOption)||ga.throwError("The debug option 'failOnUnknownOption' is invalid ; it should be either 'true' or 'false', [".concat(r.failOnUnknownOption,"] given.")),ga.isTrueOrFalseString(r.createLocalList)||ga.isBoolean(r.createLocalList)||ga.throwError("The debug option 'createLocalList' is invalid ; it should be either 'true' or 'false', [".concat(r.createLocalList,"] given."))}},{key:"_validateDecimalPlacesRawValue",value:function(e){ga.isNull(e.decimalPlacesRawValue)||(e.decimalPlacesRawValue<e.decimalPlaces&&ga.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones to display [").concat(e.decimalPlaces,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlaces`."),e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnFocus&&ga.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown on focus [").concat(e.decimalPlacesShownOnFocus,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnFocus`."),e.showWarnings),e.decimalPlacesRawValue<e.decimalPlacesShownOnBlur&&ga.warning("The number of decimal places to store in the raw value [".concat(e.decimalPlacesRawValue,"] is lower than the ones shown when unfocused [").concat(e.decimalPlacesShownOnBlur,"]. This will likely confuse your users.\nTo solve that, you'd need to either set `decimalPlacesRawValue` to `null`, or set a number of decimal places for the raw value equal of bigger than `decimalPlacesShownOnBlur`."),e.showWarnings))}},{key:"areSettingsValid",value:function(e){var t=!0;try{this.validate(e,!0)}catch(e){t=!1}return t}},{key:"getDefaultConfig",value:function(){return e.defaultSettings}},{key:"getPredefinedOptions",value:function(){return e.predefinedOptions}},{key:"_generateOptionsObjectFromOptionsArray",value:function(e){var t,n=this;return ga.isUndefinedOrNullOrEmpty(e)||0===e.length?t=null:(t={},1===e.length&&Array.isArray(e[0])?e[0].forEach(function(e){Object.assign(t,n._getOptionObject(e))}):e.length>=1&&e.forEach(function(e){Object.assign(t,n._getOptionObject(e))})),t}},{key:"format",value:function(t){if(ga.isUndefined(t)||null===t)return null;var n;n=ga.isElement(t)?ga.getElementValue(t):t,ga.isString(n)||ga.isNumber(n)||ga.throwError('The value "'.concat(n,'" being "set" is not numeric and therefore cannot be used appropriately.'));for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];var a=this._generateOptionsObjectFromOptionsArray(r),s=Object.assign({},this.getDefaultConfig(),a);s.isNegativeSignAllowed=n<0,s.isPositiveSignAllowed=n>=0,this._setBrackets(s);this._cachesUsualRegularExpressions(s,{});var l=this._toNumericValue(n,s);return isNaN(Number(l))&&ga.throwError("The value [".concat(l,"] that you are trying to format is not a recognized number.")),this._isWithinRangeWithOverrideOption(l,s)||(ga.triggerEvent(e.events.formatted,document,{oldValue:null,newValue:null,oldRawValue:null,newRawValue:null,isPristine:null,error:"Range test failed",aNElement:null},!0,!0),ga.throwError("The value [".concat(l,"] being set falls outside of the minimumValue [").concat(s.minimumValue,"] and maximumValue [").concat(s.maximumValue,"] range set for this element"))),s.valuesToStrings&&this._checkValuesToStringsSettings(n,s)?s.valuesToStrings[n]:(this._correctNegativePositiveSignPlacementOption(s),this._calculateDecimalPlacesOnInit(s),ga.isUndefinedOrNullOrEmpty(s.rawValueDivisor)||0===s.rawValueDivisor||""===l||null===l||(l*=s.rawValueDivisor),l=this._roundFormattedValueShownOnFocus(l,s),l=this._modifyNegativeSignAndDecimalCharacterForFormattedValue(l,s),l=this._addGroupSeparators(l,s,!1,l))}},{key:"formatAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.format(e,t);return ga.setElementValue(e,n),n}},{key:"unformat",value:function(e){if(ga.isNumberStrict(e))return e;var t;if(""===(t=ga.isElement(e)?ga.getElementValue(e):e))return"";if(ga.isUndefined(t)||null===t)return null;(ga.isArray(t)||ga.isObject(t))&&ga.throwError("A number or a string representing a number is needed to be able to unformat it, [".concat(t,"] given."));for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=this._generateOptionsObjectFromOptionsArray(i),a=Object.assign({},this.getDefaultConfig(),o);if(a.isNegativeSignAllowed=!1,a.isPositiveSignAllowed=!0,t=t.toString(),a.valuesToStrings&&this._checkStringsToValuesSettings(t,a))return ga.objectKeyLookup(a.valuesToStrings,t);if(ga.isNegative(t,a.negativeSignCharacter))a.isNegativeSignAllowed=!0,a.isPositiveSignAllowed=!1;else if(!ga.isNull(a.negativeBracketsTypeOnBlur)){var s=Oa(a.negativeBracketsTypeOnBlur.split(","),2);a.firstBracket=s[0],a.lastBracket=s[1],t.charAt(0)===a.firstBracket&&t.charAt(t.length-1)===a.lastBracket&&(a.isNegativeSignAllowed=!0,a.isPositiveSignAllowed=!1,t=this._removeBrackets(t,a,!1))}return t=this._convertToNumericString(t,a),new RegExp("[^+-0123456789.]","gi").test(t)?NaN:(this._correctNegativePositiveSignPlacementOption(a),a.decimalPlacesRawValue?a.originalDecimalPlacesRawValue=a.decimalPlacesRawValue:a.originalDecimalPlacesRawValue=a.decimalPlaces,this._calculateDecimalPlacesOnInit(a),ga.isUndefinedOrNullOrEmpty(a.rawValueDivisor)||0===a.rawValueDivisor||""===t||null===t||(t/=a.rawValueDivisor),t=(t=this._roundRawValue(t,a)).replace(a.decimalCharacter,"."),t=this._toLocale(t,a.outputFormat,a))}},{key:"unformatAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.unformat(e,t);return ga.setElementValue(e,n),n}},{key:"localize",value:function(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return""===(n=ga.isElement(t)?ga.getElementValue(t):t)?"":(ga.isNull(r)&&(r=e.defaultSettings),n=this.unformat(n,r),0===Number(n)&&r.leadingZero!==e.options.leadingZero.keep&&(n="0"),i=ga.isNull(r)?r.outputFormat:e.defaultSettings.outputFormat,this._toLocale(n,i,r))}},{key:"localizeAndSet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.localize(e,t);return ga.setElementValue(e,n),n}},{key:"isManagedByAutoNumeric",value:function(e){return this._isInGlobalList(ga.domElement(e))}},{key:"getAutoNumericElement",value:function(e){var t=ga.domElement(e);return this.isManagedByAutoNumeric(t)?this._getFromGlobalList(t):null}},{key:"set",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=ga.domElement(e);return this.isManagedByAutoNumeric(o)?this.getAutoNumericElement(o).set(t,i,r):(n=!(!ga.isNull(i)&&Object.prototype.hasOwnProperty.call(i,"showWarnings"))||i.showWarnings,ga.warning("Impossible to find an AutoNumeric object for the given DOM element or selector.",n),null)}},{key:"getNumericString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getNumericString",t)}},{key:"getFormatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getFormatted",t)}},{key:"getNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._get(e,"getNumber",t)}},{key:"_get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=ga.domElement(e);return this.isManagedByAutoNumeric(i)||ga.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(i)[t](n)}},{key:"getLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=ga.domElement(e);return this.isManagedByAutoNumeric(i)||ga.throwError("Impossible to find an AutoNumeric object for the given DOM element or selector."),this.getAutoNumericElement(i).getLocalized(t,n)}},{key:"_stripAllNonNumberCharacters",value:function(e,t,n,i){return this._stripAllNonNumberCharactersExceptCustomDecimalChar(e,t,n,i).replace(t.decimalCharacter,".")}},{key:"_stripAllNonNumberCharactersExceptCustomDecimalChar",value:function(t,n,i,r){var o=(t=(t=this._normalizeCurrencySuffixAndNegativeSignCharacters(t,n)).replace(n.allowedAutoStrip,"")).match(n.numRegAutoStrip);if(t=o?[o[1],o[2],o[3]].join(""):"",n.leadingZero===e.options.leadingZero.allow||n.leadingZero===e.options.leadingZero.keep){var a="",s=Oa(t.split(n.decimalCharacter),2),l=s[0],c=s[1],u=l;ga.contains(u,n.negativeSignCharacter)&&(a=n.negativeSignCharacter,u=u.replace(n.negativeSignCharacter,"")),""===a&&u.length>n.mIntPos&&"0"===u.charAt(0)&&(u=u.slice(1)),""!==a&&u.length>n.mIntNeg&&"0"===u.charAt(0)&&(u=u.slice(1)),t="".concat(a).concat(u).concat(ga.isUndefined(c)?"":n.decimalCharacter+c)}return(i&&n.leadingZero===e.options.leadingZero.deny||!r&&n.leadingZero===e.options.leadingZero.allow)&&(t=t.replace(n.stripReg,"$1$2")),t}},{key:"_toggleNegativeBracket",value:function(e,t,n){return n?this._removeBrackets(e,t):this._addBrackets(e,t)}},{key:"_addBrackets",value:function(e,t){return ga.isNull(t.negativeBracketsTypeOnBlur)?e:"".concat(t.firstBracket).concat(e.replace(t.negativeSignCharacter,"")).concat(t.lastBracket)}},{key:"_removeBrackets",value:function(e,t){var n,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return ga.isNull(t.negativeBracketsTypeOnBlur)||e.charAt(0)!==t.firstBracket?n=e:(n=(n=e.replace(t.firstBracket,"")).replace(t.lastBracket,""),i?(n=n.replace(t.currencySymbol,""),n=this._mergeCurrencySignNegativePositiveSignAndValue(n,t,!0,!1)):n="".concat(t.negativeSignCharacter).concat(n)),n}},{key:"_setBrackets",value:function(e){if(ga.isNull(e.negativeBracketsTypeOnBlur))e.firstBracket="",e.lastBracket="";else{var t=Oa(e.negativeBracketsTypeOnBlur.split(","),2),n=t[0],i=t[1];e.firstBracket=n,e.lastBracket=i}}},{key:"_convertToNumericString",value:function(t,n){t=this._removeBrackets(t,n,!1),t=(t=this._normalizeCurrencySuffixAndNegativeSignCharacters(t,n)).replace(new RegExp("[".concat(n.digitGroupSeparator,"]"),"g"),""),"."!==n.decimalCharacter&&(t=t.replace(n.decimalCharacter,".")),ga.isNegative(t)&&t.lastIndexOf("-")===t.length-1&&(t=t.replace("-",""),t="-".concat(t)),n.showPositiveSign&&(t=t.replace(n.positiveSignCharacter,""));var i=n.leadingZero!==e.options.leadingZero.keep,r=ga.arabicToLatinNumbers(t,i,!1,!1);return isNaN(r)||(t=r.toString()),t}},{key:"_normalizeCurrencySuffixAndNegativeSignCharacters",value:function(t,n){return t=String(t),n.currencySymbol!==e.options.currencySymbol.none&&(t=t.replace(n.currencySymbol,"")),n.suffixText!==e.options.suffixText.none&&(t=t.replace(n.suffixText,"")),n.negativeSignCharacter!==e.options.negativeSignCharacter.hyphen&&(t=t.replace(n.negativeSignCharacter,"-")),t}},{key:"_toLocale",value:function(t,n,i){if(ga.isNull(n)||n===e.options.outputFormat.string)return t;var r;switch(n){case e.options.outputFormat.number:r=Number(t);break;case e.options.outputFormat.dotNegative:r=ga.isNegative(t)?t.replace("-","")+"-":t;break;case e.options.outputFormat.comma:case e.options.outputFormat.negativeComma:r=t.replace(".",",");break;case e.options.outputFormat.commaNegative:r=t.replace(".",","),r=ga.isNegative(r)?r.replace("-","")+"-":r;break;case e.options.outputFormat.dot:case e.options.outputFormat.negativeDot:r=t;break;default:ga.throwError("The given outputFormat [".concat(n,"] option is not recognized."))}return n!==e.options.outputFormat.number&&"-"!==i.negativeSignCharacter&&(r=r.replace("-",i.negativeSignCharacter)),r}},{key:"_modifyNegativeSignAndDecimalCharacterForFormattedValue",value:function(e,t){return"-"!==t.negativeSignCharacter&&(e=e.replace("-",t.negativeSignCharacter)),"."!==t.decimalCharacter&&(e=e.replace(".",t.decimalCharacter)),e}},{key:"_isElementValueEmptyOrOnlyTheNegativeSign",value:function(e,t){return""===e||e===t.negativeSignCharacter}},{key:"_orderValueCurrencySymbolAndSuffixText",value:function(t,n,i){var r;if(n.emptyInputBehavior===e.options.emptyInputBehavior.always||i)switch(n.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.none:r=t+n.currencySymbol+n.suffixText;break;default:r=n.currencySymbol+t+n.suffixText}else r=t;return r}},{key:"_addGroupSeparators",value:function(t,n,i,r){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(o=ga.isNull(a)?ga.isNegative(t,n.negativeSignCharacter)||ga.isNegativeWithBrackets(t,n.firstBracket,n.lastBracket):a<0,t=this._stripAllNonNumberCharactersExceptCustomDecimalChar(t,n,!1,i),this._isElementValueEmptyOrOnlyTheNegativeSign(t,n))return this._orderValueCurrencySymbolAndSuffixText(t,n,!0);var s,l=ga.isZeroOrHasNoValue(t);switch(o&&(t=t.replace("-","")),n.digitalGroupSpacing=n.digitalGroupSpacing.toString(),n.digitalGroupSpacing){case e.options.digitalGroupSpacing.two:s=/(\d)((\d)(\d{2}?)+)$/;break;case e.options.digitalGroupSpacing.twoScaled:s=/(\d)((?:\d{2}){0,2}\d{3}(?:(?:\d{2}){2}\d{3})*?)$/;break;case e.options.digitalGroupSpacing.four:s=/(\d)((\d{4}?)+)$/;break;case e.options.digitalGroupSpacing.three:default:s=/(\d)((\d{3}?)+)$/}var c,u=Oa(t.split(n.decimalCharacter),2),h=u[0],d=u[1];if(n.decimalCharacterAlternative&&ga.isUndefined(d)){var m=Oa(t.split(n.decimalCharacterAlternative),2);h=m[0],d=m[1]}if(""!==n.digitGroupSeparator)for(;s.test(h);)h=h.replace(s,"$1".concat(n.digitGroupSeparator,"$2"));return 0===(c=i?n.decimalPlacesShownOnFocus:n.decimalPlacesShownOnBlur)||ga.isUndefined(d)?t=h:(d.length>c&&(d=d.substring(0,c)),t="".concat(h).concat(n.decimalCharacter).concat(d)),t=e._mergeCurrencySignNegativePositiveSignAndValue(t,n,o,l),ga.isNull(a)&&(a=r),null!==n.negativeBracketsTypeOnBlur&&(a<0||ga.isNegativeStrict(t,n.negativeSignCharacter))&&(t=this._toggleNegativeBracket(t,n,i)),n.suffixText?"".concat(t).concat(n.suffixText):t}},{key:"_mergeCurrencySignNegativePositiveSignAndValue",value:function(t,n,i,r){var o,a="";if(i?a=n.negativeSignCharacter:n.showPositiveSign&&!r&&(a=n.positiveSignCharacter),n.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix)if(n.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&n.showPositiveSign&&!r))switch(n.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:o="".concat(a).concat(n.currencySymbol).concat(t);break;case e.options.negativePositiveSignPlacement.right:o="".concat(n.currencySymbol).concat(a).concat(t);break;case e.options.negativePositiveSignPlacement.suffix:o="".concat(n.currencySymbol).concat(t).concat(a)}else o=n.currencySymbol+t;else if(n.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)if(n.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(i||!i&&n.showPositiveSign&&!r))switch(n.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:o="".concat(t).concat(n.currencySymbol).concat(a);break;case e.options.negativePositiveSignPlacement.left:o="".concat(t).concat(a).concat(n.currencySymbol);break;case e.options.negativePositiveSignPlacement.prefix:o="".concat(a).concat(t).concat(n.currencySymbol)}else o=t+n.currencySymbol;return o}},{key:"_truncateZeros",value:function(e,t){var n;switch(t){case 0:n=/(\.(?:\d*[1-9])?)0*$/;break;case 1:n=/(\.\d(?:\d*[1-9])?)0*$/;break;default:n=new RegExp("(\\.\\d{".concat(t,"}(?:\\d*[1-9])?)0*"))}return e=e.replace(n,"$1"),0===t&&(e=e.replace(/\.$/,"")),e}},{key:"_roundRawValue",value:function(e,t){return this._roundValue(e,t,t.decimalPlacesRawValue)}},{key:"_roundFormattedValueShownOnFocus",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnFocus))}},{key:"_roundFormattedValueShownOnBlur",value:function(e,t){return this._roundValue(e,t,Number(t.decimalPlacesShownOnBlur))}},{key:"_roundFormattedValueShownOnFocusOrBlur",value:function(e,t,n){return n?this._roundFormattedValueShownOnFocus(e,t):this._roundFormattedValueShownOnBlur(e,t)}},{key:"_roundValue",value:function(t,n,i){if(ga.isNull(t))return t;if(t=""===t?"0":t.toString(),n.roundingMethod===e.options.roundingMethod.toNearest05||n.roundingMethod===e.options.roundingMethod.toNearest05Alt||n.roundingMethod===e.options.roundingMethod.upToNext05||n.roundingMethod===e.options.roundingMethod.downToNext05)return this._roundCloseTo05(t,n);var r,o=Oa(e._prepareValueForRounding(t,n),2),a=o[0],s=(t=o[1]).lastIndexOf("."),l=-1===s,c=Oa(t.split("."),2),u=c[0];if(!(c[1]>0)&&(n.allowDecimalPadding===e.options.allowDecimalPadding.never||n.allowDecimalPadding===e.options.allowDecimalPadding.floats))return 0===Number(t)?u:"".concat(a).concat(u);r=n.allowDecimalPadding===e.options.allowDecimalPadding.always||n.allowDecimalPadding===e.options.allowDecimalPadding.floats?i:0;var h,d=l?t.length-1:s,m=t.length-1-d,p="";if(m<=i){if(p=t,m<r){l&&(p="".concat(p).concat(n.decimalCharacter));for(var f="000000";m<r;)p+=f=f.substring(0,r-m),m+=f.length}else m>r?p=this._truncateZeros(p,r):0===m&&0===r&&(p=p.replace(/\.$/,""));return 0===Number(p)?p:"".concat(a).concat(p)}h=l?i-1:Number(i)+Number(s);var g,v=Number(t.charAt(h+1)),y=t.substring(0,h+1).split("");if(g="."===t.charAt(h)?t.charAt(h-1)%2:t.charAt(h)%2,this._shouldRoundUp(v,n,a,g))for(var b=y.length-1;b>=0;b-=1)if("."!==y[b]){if(y[b]=+y[b]+1,y[b]<10)break;b>0&&(y[b]="0")}return y=y.slice(0,h+1),p=this._truncateZeros(y.join(""),r),0===Number(p)?p:"".concat(a).concat(p)}},{key:"_roundCloseTo05",value:function(t,n){switch(n.roundingMethod){case e.options.roundingMethod.toNearest05:case e.options.roundingMethod.toNearest05Alt:t=(Math.round(20*t)/20).toString();break;case e.options.roundingMethod.upToNext05:t=(Math.ceil(20*t)/20).toString();break;default:t=(Math.floor(20*t)/20).toString()}return ga.contains(t,".")?t.length-t.indexOf(".")<3?t+"0":t:t+".00"}},{key:"_prepareValueForRounding",value:function(t,n){var i="";return ga.isNegativeStrict(t,"-")&&(i="-",t=t.replace("-","")),t.match(/^\d/)||(t="0".concat(t)),0===Number(t)&&(i=""),(Number(t)>0&&n.leadingZero!==e.options.leadingZero.keep||t.length>0&&n.leadingZero===e.options.leadingZero.allow)&&(t=t.replace(/^0*(\d)/,"$1")),[i,t]}},{key:"_shouldRoundUp",value:function(t,n,i,r){return t>4&&n.roundingMethod===e.options.roundingMethod.halfUpSymmetric||t>4&&n.roundingMethod===e.options.roundingMethod.halfUpAsymmetric&&""===i||t>5&&n.roundingMethod===e.options.roundingMethod.halfUpAsymmetric&&"-"===i||t>5&&n.roundingMethod===e.options.roundingMethod.halfDownSymmetric||t>5&&n.roundingMethod===e.options.roundingMethod.halfDownAsymmetric&&""===i||t>4&&n.roundingMethod===e.options.roundingMethod.halfDownAsymmetric&&"-"===i||t>5&&n.roundingMethod===e.options.roundingMethod.halfEvenBankersRounding||5===t&&n.roundingMethod===e.options.roundingMethod.halfEvenBankersRounding&&1===r||t>0&&n.roundingMethod===e.options.roundingMethod.toCeilingTowardPositiveInfinity&&""===i||t>0&&n.roundingMethod===e.options.roundingMethod.toFloorTowardNegativeInfinity&&"-"===i||t>0&&n.roundingMethod===e.options.roundingMethod.upRoundAwayFromZero}},{key:"_truncateDecimalPlaces",value:function(e,t,n,i){n&&(e=this._roundFormattedValueShownOnFocus(e,t));var r=Oa(e.split(t.decimalCharacter),2),o=r[0],a=r[1];if(a&&a.length>i)if(i>0){var s=a.substring(0,i);e="".concat(o).concat(t.decimalCharacter).concat(s)}else e=o;return e}},{key:"_checkIfInRangeWithOverrideOption",value:function(t,n){if(ga.isNull(t)&&n.emptyInputBehavior===e.options.emptyInputBehavior.null||n.overrideMinMaxLimits===e.options.overrideMinMaxLimits.ignore||n.overrideMinMaxLimits===e.options.overrideMinMaxLimits.invalid)return[!0,!0];t=(t=t.toString()).replace(",",".");var i,r=ga.parseStr(n.minimumValue),o=ga.parseStr(n.maximumValue),a=ga.parseStr(t);switch(n.overrideMinMaxLimits){case e.options.overrideMinMaxLimits.floor:i=[ga.testMinMax(r,a)>-1,!0];break;case e.options.overrideMinMaxLimits.ceiling:i=[!0,ga.testMinMax(o,a)<1];break;default:i=[ga.testMinMax(r,a)>-1,ga.testMinMax(o,a)<1]}return i}},{key:"_isWithinRangeWithOverrideOption",value:function(e,t){var n=Oa(this._checkIfInRangeWithOverrideOption(e,t),2),i=n[0],r=n[1];return i&&r}},{key:"_cleanValueForRangeParse",value:function(e){return e=e.toString().replace(",","."),ga.parseStr(e)}},{key:"_isMinimumRangeRespected",value:function(e,t){return ga.testMinMax(ga.parseStr(t.minimumValue),this._cleanValueForRangeParse(e))>-1}},{key:"_isMaximumRangeRespected",value:function(e,t){return ga.testMinMax(ga.parseStr(t.maximumValue),this._cleanValueForRangeParse(e))<1}},{key:"_readCookie",value:function(e){for(var t=e+"=",n=document.cookie.split(";"),i="",r=0;r<n.length;r+=1){for(i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}},{key:"_storageTest",value:function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}},{key:"_correctNegativePositiveSignPlacementOption",value:function(t){if(ga.isNull(t.negativePositiveSignPlacement))if(ga.isUndefined(t)||!ga.isUndefinedOrNullOrEmpty(t.negativePositiveSignPlacement)||ga.isUndefinedOrNullOrEmpty(t.currencySymbol))t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.left;else switch(t.currencySymbolPlacement){case e.options.currencySymbolPlacement.suffix:t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.prefix;break;case e.options.currencySymbolPlacement.prefix:t.negativePositiveSignPlacement=e.options.negativePositiveSignPlacement.left}}},{key:"_correctCaretPositionOnFocusAndSelectOnFocusOptions",value:function(t){return ga.isNull(t)?null:(!ga.isUndefinedOrNullOrEmpty(t.caretPositionOnFocus)&&ga.isUndefinedOrNullOrEmpty(t.selectOnFocus)&&(t.selectOnFocus=e.options.selectOnFocus.doNotSelect),ga.isUndefinedOrNullOrEmpty(t.caretPositionOnFocus)&&!ga.isUndefinedOrNullOrEmpty(t.selectOnFocus)&&t.selectOnFocus===e.options.selectOnFocus.select&&(t.caretPositionOnFocus=e.options.caretPositionOnFocus.doNoForceCaretPosition),t)}},{key:"_calculateDecimalPlacesOnInit",value:function(t){this._validateDecimalPlacesRawValue(t),t.decimalPlacesShownOnFocus===e.options.decimalPlacesShownOnFocus.useDefault&&(t.decimalPlacesShownOnFocus=t.decimalPlaces),t.decimalPlacesShownOnBlur===e.options.decimalPlacesShownOnBlur.useDefault&&(t.decimalPlacesShownOnBlur=t.decimalPlaces),t.decimalPlacesRawValue===e.options.decimalPlacesRawValue.useDefault&&(t.decimalPlacesRawValue=t.decimalPlaces);var n=0;t.rawValueDivisor&&t.rawValueDivisor!==e.options.rawValueDivisor.none&&(n=String(t.rawValueDivisor).length-1)<0&&(n=0),t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+n,Number(t.originalDecimalPlacesRawValue)+n)}},{key:"_calculateDecimalPlacesOnUpdate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._validateDecimalPlacesRawValue(t),ga.isNull(n)&&ga.throwError("When updating the settings, the previous ones should be passed as an argument.");var i="decimalPlaces"in t;if(i||"decimalPlacesRawValue"in t||"decimalPlacesShownOnFocus"in t||"decimalPlacesShownOnBlur"in t||"rawValueDivisor"in t){i?("decimalPlacesShownOnFocus"in t&&t.decimalPlacesShownOnFocus!==e.options.decimalPlacesShownOnFocus.useDefault||(t.decimalPlacesShownOnFocus=t.decimalPlaces),"decimalPlacesShownOnBlur"in t&&t.decimalPlacesShownOnBlur!==e.options.decimalPlacesShownOnBlur.useDefault||(t.decimalPlacesShownOnBlur=t.decimalPlaces),"decimalPlacesRawValue"in t&&t.decimalPlacesRawValue!==e.options.decimalPlacesRawValue.useDefault||(t.decimalPlacesRawValue=t.decimalPlaces)):(ga.isUndefined(t.decimalPlacesShownOnFocus)&&(t.decimalPlacesShownOnFocus=n.decimalPlacesShownOnFocus),ga.isUndefined(t.decimalPlacesShownOnBlur)&&(t.decimalPlacesShownOnBlur=n.decimalPlacesShownOnBlur));var r=0;t.rawValueDivisor&&t.rawValueDivisor!==e.options.rawValueDivisor.none&&(r=String(t.rawValueDivisor).length-1)<0&&(r=0),t.decimalPlaces||t.decimalPlacesRawValue?t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+r,Number(t.decimalPlacesRawValue)+r):t.decimalPlacesRawValue=Math.max(Math.max(t.decimalPlacesShownOnBlur,t.decimalPlacesShownOnFocus)+r,Number(n.originalDecimalPlacesRawValue)+r)}}},{key:"_cachesUsualRegularExpressions",value:function(t,n){var i;i=t.negativeSignCharacter!==e.options.negativeSignCharacter.hyphen?"([-\\".concat(t.negativeSignCharacter,"]?)"):"(-?)",n.aNegRegAutoStrip=i,t.allowedAutoStrip=new RegExp("[^-0123456789\\".concat(t.decimalCharacter,"]"),"g"),t.numRegAutoStrip=new RegExp("".concat(i,"(?:\\").concat(t.decimalCharacter,"?([0-9]+\\").concat(t.decimalCharacter,"[0-9]+)|([0-9]*(?:\\").concat(t.decimalCharacter,"[0-9]*)?))")),t.stripReg=new RegExp("^".concat(n.aNegRegAutoStrip,"0*([0-9])")),t.formulaChars=new RegExp("[0-9".concat(t.decimalCharacter,"+\\-*/() ]"))}},{key:"_convertOldOptionsToNewOnes",value:function(e){var t={aSep:"digitGroupSeparator",nSep:"showOnlyNumbersOnFocus",dGroup:"digitalGroupSpacing",aDec:"decimalCharacter",altDec:"decimalCharacterAlternative",aSign:"currencySymbol",pSign:"currencySymbolPlacement",pNeg:"negativePositiveSignPlacement",aSuffix:"suffixText",oLimits:"overrideMinMaxLimits",vMax:"maximumValue",vMin:"minimumValue",mDec:"decimalPlacesOverride",eDec:"decimalPlacesShownOnFocus",scaleDecimal:"decimalPlacesShownOnBlur",aStor:"saveValueToSessionStorage",mRound:"roundingMethod",aPad:"allowDecimalPadding",nBracket:"negativeBracketsTypeOnBlur",wEmpty:"emptyInputBehavior",lZero:"leadingZero",aForm:"formatOnPageLoad",sNumber:"selectNumberOnly",anDefault:"defaultValueOverride",unSetOnSubmit:"unformatOnSubmit",outputType:"outputFormat",debug:"showWarnings",allowDecimalPadding:!0,alwaysAllowDecimalCharacter:!0,caretPositionOnFocus:!0,createLocalList:!0,currencySymbol:!0,currencySymbolPlacement:!0,decimalCharacter:!0,decimalCharacterAlternative:!0,decimalPlaces:!0,decimalPlacesRawValue:!0,decimalPlacesShownOnBlur:!0,decimalPlacesShownOnFocus:!0,defaultValueOverride:!0,digitalGroupSpacing:!0,digitGroupSeparator:!0,divisorWhenUnfocused:!0,emptyInputBehavior:!0,eventBubbles:!0,eventIsCancelable:!0,failOnUnknownOption:!0,formatOnPageLoad:!0,formulaMode:!0,historySize:!0,isCancellable:!0,leadingZero:!0,maximumValue:!0,minimumValue:!0,modifyValueOnWheel:!0,negativeBracketsTypeOnBlur:!0,negativePositiveSignPlacement:!0,negativeSignCharacter:!0,noEventListeners:!0,onInvalidPaste:!0,outputFormat:!0,overrideMinMaxLimits:!0,positiveSignCharacter:!0,rawValueDivisor:!0,readOnly:!0,roundingMethod:!0,saveValueToSessionStorage:!0,selectNumberOnly:!0,selectOnFocus:!0,serializeSpaces:!0,showOnlyNumbersOnFocus:!0,showPositiveSign:!0,showWarnings:!0,styleRules:!0,suffixText:!0,symbolWhenUnfocused:!0,unformatOnHover:!0,unformatOnSubmit:!0,valuesToStrings:!0,watchExternalChanges:!0,wheelOn:!0,wheelStep:!0,allowedAutoStrip:!0,formulaChars:!0,isNegativeSignAllowed:!0,isPositiveSignAllowed:!0,mIntNeg:!0,mIntPos:!0,numRegAutoStrip:!0,originalDecimalPlaces:!0,originalDecimalPlacesRawValue:!0,stripReg:!0};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(!0===t[n])continue;Object.prototype.hasOwnProperty.call(t,n)?(ga.warning("You are using the deprecated option name '".concat(n,"'. Please use '").concat(t[n],"' instead from now on. The old option name will be dropped very soon™."),!0),e[t[n]]=e[n],delete e[n]):e.failOnUnknownOption&&ga.throwError("Option name '".concat(n,"' is unknown. Please fix the options passed to autoNumeric"))}"mDec"in e&&ga.warning("The old `mDec` option has been deprecated in favor of more accurate options ; `decimalPlaces`, `decimalPlacesRawValue`, `decimalPlacesShownOnFocus` and `decimalPlacesShownOnBlur`.",!0)}},{key:"_setNegativePositiveSignPermissions",value:function(e){e.isNegativeSignAllowed=e.minimumValue<0,e.isPositiveSignAllowed=e.maximumValue>=0}},{key:"_toNumericValue",value:function(e,t){var n;return ga.isNumber(Number(e))?n=ga.scientificToDecimal(e):(n=this._convertToNumericString(e.toString(),t),ga.isNumber(Number(n))||(ga.warning('The given value "'.concat(e,'" cannot be converted to a numeric one and therefore cannot be used appropriately.'),t.showWarnings),n=NaN)),n}},{key:"_checkIfInRange",value:function(e,t,n){var i=ga.parseStr(e);return ga.testMinMax(t,i)>-1&&ga.testMinMax(n,i)<1}},{key:"_shouldSkipEventKey",value:function(e){var t=ga.isInArray(e,ca.keyName._allFnKeys),n=e===ca.keyName.OSLeft||e===ca.keyName.OSRight,i=e===ca.keyName.ContextMenu,r=ga.isInArray(e,ca.keyName._someNonPrintableKeys),o=e===ca.keyName.NumLock||e===ca.keyName.ScrollLock||e===ca.keyName.Insert||e===ca.keyName.Command,a=e===ca.keyName.Unidentified;return t||n||i||r||a||o}},{key:"_serialize",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unformatted",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=[];return"object"===Na(e)&&"form"===e.nodeName.toLowerCase()&&Array.prototype.slice.call(e.elements).forEach(function(e){if(e.name&&!e.disabled&&-1===["file","reset","submit","button"].indexOf(e.type))if("select-multiple"===e.type)Array.prototype.slice.call(e.options).forEach(function(t){t.selected&&(i?s.push({name:e.name,value:t.value}):s.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(t.value))))});else if(-1===["checkbox","radio"].indexOf(e.type)||e.checked){var t,o;if(n.isManagedByAutoNumeric(e))switch(r){case"unformatted":o=n.getAutoNumericElement(e),ga.isNull(o)||(t=n.unformat(e,o.getSettings()));break;case"localized":if(o=n.getAutoNumericElement(e),!ga.isNull(o)){var l=ga.cloneObject(o.getSettings());ga.isNull(a)||(l.outputFormat=a),t=n.localize(e,l)}break;case"formatted":default:t=e.value}else t=e.value;ga.isUndefined(t)&&ga.throwError("This error should never be hit. If it has, something really wrong happened!"),i?s.push({name:e.name,value:t}):s.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(t)))}}),i?t=s:(t=s.join("&"),"+"===o&&(t=t.replace(/%20/g,"+"))),t}},{key:"_serializeNumericString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!1,"unformatted",t)}},{key:"_serializeFormatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!1,"formatted",t)}},{key:"_serializeLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._serialize(e,!1,"localized",t,n)}},{key:"_serializeNumericStringArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!0,"unformatted",t)}},{key:"_serializeFormattedArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+";return this._serialize(e,!0,"formatted",t)}},{key:"_serializeLocalizedArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._serialize(e,!0,"localized",t,n)}}],(n=[{key:"_saveInitialValues",value:function(e){this.initialValueHtmlAttribute=ga.scientificToDecimal(this.domElement.getAttribute("value")),ga.isNull(this.initialValueHtmlAttribute)&&(this.initialValueHtmlAttribute=""),this.initialValue=e,ga.isNull(this.initialValue)&&(this.initialValue="")}},{key:"_createEventListeners",value:function(){var t=this;this.formulaMode=!1,this._onFocusInFunc=function(e){t._onFocusIn(e)},this._onFocusInAndMouseEnterFunc=function(e){t._onFocusInAndMouseEnter(e)},this._onFocusFunc=function(){t._onFocus()},this._onKeydownFunc=function(e){t._onKeydown(e)},this._onKeypressFunc=function(e){t._onKeypress(e)},this._onKeyupFunc=function(e){t._onKeyup(e)},this._onFocusOutAndMouseLeaveFunc=function(e){t._onFocusOutAndMouseLeave(e)},this._onPasteFunc=function(e){t._onPaste(e)},this._onWheelFunc=function(e){t._onWheel(e)},this._onDropFunc=function(e){t._onDrop(e)},this._onKeydownGlobalFunc=function(e){t._onKeydownGlobal(e)},this._onKeyupGlobalFunc=function(e){t._onKeyupGlobal(e)},this.domElement.addEventListener("focusin",this._onFocusInFunc,!1),this.domElement.addEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("focus",this._onFocusFunc,!1),this.domElement.addEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.addEventListener("keydown",this._onKeydownFunc,!1),this.domElement.addEventListener("keypress",this._onKeypressFunc,!1),this.domElement.addEventListener("keyup",this._onKeyupFunc,!1),this.domElement.addEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.addEventListener("paste",this._onPasteFunc,!1),this.domElement.addEventListener("wheel",this._onWheelFunc,!1),this.domElement.addEventListener("drop",this._onDropFunc,!1),this._setupFormListener(),this.hasEventListeners=!0,e._doesGlobalListExists()||(document.addEventListener("keydown",this._onKeydownGlobalFunc,!1),document.addEventListener("keyup",this._onKeyupGlobalFunc,!1))}},{key:"_removeEventListeners",value:function(){this.domElement.removeEventListener("focusin",this._onFocusInFunc,!1),this.domElement.removeEventListener("focus",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("focus",this._onFocusFunc,!1),this.domElement.removeEventListener("mouseenter",this._onFocusInAndMouseEnterFunc,!1),this.domElement.removeEventListener("blur",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("mouseleave",this._onFocusOutAndMouseLeaveFunc,!1),this.domElement.removeEventListener("keydown",this._onKeydownFunc,!1),this.domElement.removeEventListener("keypress",this._onKeypressFunc,!1),this.domElement.removeEventListener("keyup",this._onKeyupFunc,!1),this.domElement.removeEventListener("paste",this._onPasteFunc,!1),this.domElement.removeEventListener("wheel",this._onWheelFunc,!1),this.domElement.removeEventListener("drop",this._onDropFunc,!1),this._removeFormListener(),this.hasEventListeners=!1,document.removeEventListener("keydown",this._onKeydownGlobalFunc,!1),document.removeEventListener("keyup",this._onKeyupGlobalFunc,!1)}},{key:"_updateEventListeners",value:function(){this.settings.noEventListeners||this.hasEventListeners||this._createEventListeners(),this.settings.noEventListeners&&this.hasEventListeners&&this._removeEventListeners()}},{key:"_setupFormListener",value:function(){var e=this;ga.isNull(this.parentForm)||(this._onFormSubmitFunc=function(){e._onFormSubmit()},this._onFormResetFunc=function(){e._onFormReset()},this._hasParentFormCounter()?this._incrementParentFormCounter():(this._initializeFormCounterToOne(),this.parentForm.addEventListener("submit",this._onFormSubmitFunc,!1),this.parentForm.addEventListener("reset",this._onFormResetFunc,!1),this._storeFormHandlerFunction()))}},{key:"_removeFormListener",value:function(){if(!ga.isNull(this.parentForm)){var e=this._getParentFormCounter();1===e?(this.parentForm.removeEventListener("submit",this._getFormHandlerFunction().submitFn,!1),this.parentForm.removeEventListener("reset",this._getFormHandlerFunction().resetFn,!1),this._removeFormDataSetInfo()):e>1?this._decrementParentFormCounter():ga.throwError("The AutoNumeric object count on the form is incoherent.")}}},{key:"_hasParentFormCounter",value:function(){return"anCount"in this.parentForm.dataset}},{key:"_getParentFormCounter",value:function(){return Number(this.parentForm.dataset.anCount)}},{key:"_initializeFormCounterToOne",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._getFormElement(e).dataset.anCount=1}},{key:"_incrementParentFormCounter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._getFormElement(e).dataset.anCount++}},{key:"_decrementParentFormCounter",value:function(){this.parentForm.dataset.anCount--}},{key:"_hasFormHandlerFunction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"anFormHandler"in this._getFormElement(e).dataset}},{key:"_getFormElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return ga.isNull(e)?this.parentForm:e}},{key:"_storeFormHandlerFunction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.constructor._doesFormHandlerListExists()||this.constructor._createFormHandlerList();var t=ga.randomString();this._getFormElement(e).dataset.anFormHandler=t,window.aNFormHandlerMap.set(t,{submitFn:this._onFormSubmitFunc,resetFn:this._onFormResetFunc})}},{key:"_getFormHandlerKey",value:function(){this._hasFormHandlerFunction()||ga.throwError("Unable to retrieve the form handler name");var e=this.parentForm.dataset.anFormHandler;return""===e&&ga.throwError("The form handler name is invalid"),e}},{key:"_getFormHandlerFunction",value:function(){var e=this._getFormHandlerKey();return window.aNFormHandlerMap.get(e)}},{key:"_removeFormDataSetInfo",value:function(){this._decrementParentFormCounter(),window.aNFormHandlerMap.delete(this._getFormHandlerKey()),this.parentForm.removeAttribute("data-an-count"),this.parentForm.removeAttribute("data-an-form-handler")}},{key:"_setWritePermissions",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.domElement.readOnly||this.settings.readOnly?this._setReadOnly():this._setReadWrite()}},{key:"_setReadOnly",value:function(){this.isInputElement?this.domElement.readOnly=!0:this.domElement.setAttribute("contenteditable",!1)}},{key:"_setReadWrite",value:function(){this.isInputElement?this.domElement.readOnly=!1:this.domElement.setAttribute("contenteditable",!0)}},{key:"_addWatcher",value:function(){var e=this;if(!ga.isUndefined(this.getterSetter)){var t=this.getterSetter,n=t.set,i=t.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return i.call(e.domElement)},set:function(t){n.call(e.domElement,t),e.settings.watchExternalChanges&&!e.internalModification&&e.set(t)}})}}},{key:"_removeWatcher",value:function(){var e=this;if(!ga.isUndefined(this.getterSetter)){var t=this.getterSetter,n=t.set,i=t.get;Object.defineProperty(this.domElement,this.attributeToWatch,{configurable:!0,get:function(){return i.call(e.domElement)},set:function(t){n.call(e.domElement,t)}})}}},{key:"_getAttributeToWatch",value:function(){var e;if(this.isInputElement)e="value";else{var t=this.domElement.nodeType;t===Node.ELEMENT_NODE||t===Node.DOCUMENT_NODE||t===Node.DOCUMENT_FRAGMENT_NODE?e="textContent":t===Node.TEXT_NODE&&(e="nodeValue")}return e}},{key:"_historyTableAdd",value:function(){var e=0===this.historyTable.length;if(e||this.rawValue!==this._historyTableCurrentValueUsed()){var t=!0;if(!e){var n=this.historyTableIndex+1;n<this.historyTable.length&&this.rawValue===this.historyTable[n].value?t=!1:ga.arrayTrim(this.historyTable,this.historyTableIndex+1)}if(this.historyTableIndex++,t){var i=ga.getElementSelection(this.domElement);this.selectionStart=i.start,this.selectionEnd=i.end,this.historyTable.push({value:this.rawValue,start:this.selectionStart+1,end:this.selectionEnd+1}),this.historyTable.length>1&&(this.historyTable[this.historyTableIndex-1].start=this.selectionStart,this.historyTable[this.historyTableIndex-1].end=this.selectionEnd)}this.historyTable.length>this.settings.historySize&&this._historyTableForget()}}},{key:"_historyTableUndoOrRedo",value:function(){var e;if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?(e=this.historyTableIndex>0)&&this.historyTableIndex--:(e=this.historyTableIndex+1<this.historyTable.length)&&this.historyTableIndex++,e){var t=this.historyTable[this.historyTableIndex];this.set(t.value,null,!1),ga.setElementSelection(this.domElement,t.start,t.end)}}},{key:"_historyTableUndo",value:function(){this._historyTableUndoOrRedo(!0)}},{key:"_historyTableRedo",value:function(){this._historyTableUndoOrRedo(!1)}},{key:"_historyTableForget",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=[],n=0;n<e;n++)t.push(this.historyTable.shift()),this.historyTableIndex--,this.historyTableIndex<0&&(this.historyTableIndex=0);return 1===t.length?t[0]:t}},{key:"_historyTableCurrentValueUsed",value:function(){var e=this.historyTableIndex;return e<0&&(e=0),ga.isUndefinedOrNullOrEmpty(this.historyTable[e])?"":this.historyTable[e].value}},{key:"_parseStyleRules",value:function(){var e=this;ga.isUndefinedOrNullOrEmpty(this.settings.styleRules)||""===this.rawValue||(ga.isUndefinedOrNullOrEmpty(this.settings.styleRules.positive)||(this.rawValue>=0?this._addCSSClass(this.settings.styleRules.positive):this._removeCSSClass(this.settings.styleRules.positive)),ga.isUndefinedOrNullOrEmpty(this.settings.styleRules.negative)||(this.rawValue<0?this._addCSSClass(this.settings.styleRules.negative):this._removeCSSClass(this.settings.styleRules.negative)),ga.isUndefinedOrNullOrEmpty(this.settings.styleRules.ranges)||0===this.settings.styleRules.ranges.length||this.settings.styleRules.ranges.forEach(function(t){e.rawValue>=t.min&&e.rawValue<t.max?e._addCSSClass(t.class):e._removeCSSClass(t.class)}),ga.isUndefinedOrNullOrEmpty(this.settings.styleRules.userDefined)||0===this.settings.styleRules.userDefined.length||this.settings.styleRules.userDefined.forEach(function(t){if(ga.isFunction(t.callback))if(ga.isString(t.classes))t.callback(e.rawValue)?e._addCSSClass(t.classes):e._removeCSSClass(t.classes);else if(ga.isArray(t.classes))if(2===t.classes.length)t.callback(e.rawValue)?(e._addCSSClass(t.classes[0]),e._removeCSSClass(t.classes[1])):(e._removeCSSClass(t.classes[0]),e._addCSSClass(t.classes[1]));else if(t.classes.length>2){var n=t.callback(e.rawValue);ga.isArray(n)?t.classes.forEach(function(t,i){ga.isInArray(i,n)?e._addCSSClass(t):e._removeCSSClass(t)}):ga.isInt(n)?t.classes.forEach(function(t,i){i===n?e._addCSSClass(t):e._removeCSSClass(t)}):ga.isNull(n)?t.classes.forEach(function(t){e._removeCSSClass(t)}):ga.throwError("The callback result is not an array nor a valid array index, ".concat(Na(n)," given."))}else ga.throwError("The classes attribute is not valid for the `styleRules` option.");else ga.isUndefinedOrNullOrEmpty(t.classes)?t.callback(e):ga.throwError("The callback/classes structure is not valid for the `styleRules` option.");else ga.warning("The given `styleRules` callback is not a function, ".concat("undefined"==typeof callback?"undefined":Na(callback)," given."),e.settings.showWarnings)}))}},{key:"_addCSSClass",value:function(e){this.domElement.classList.add(e)}},{key:"_removeCSSClass",value:function(e){this.domElement.classList.remove(e)}},{key:"update",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Array.isArray(n)&&Array.isArray(n[0])&&(n=n[0]);var r=ga.cloneObject(this.settings),o=this.rawValue,a={};ga.isUndefinedOrNullOrEmpty(n)||0===n.length?a=null:n.length>=1&&n.forEach(function(t){e.constructor._isPreDefinedOptionValid(t)&&(t=e.constructor._getOptionObject(t)),Object.assign(a,t)});try{this._setSettings(a,!0),this._setWritePermissions(),this._updateEventListeners(),this.set(o)}catch(e){return this._setSettings(r,!0),ga.throwError("Unable to update the settings, those are invalid: [".concat(e,"]")),this}return this}},{key:"getSettings",value:function(){return this.settings}},{key:"set",value:function(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(ga.isUndefined(t))return ga.warning("You are trying to set an 'undefined' value ; an error could have occurred.",this.settings.showWarnings),this;if(ga.isNull(r)||this._setSettings(r,!0),null===t&&this.settings.emptyInputBehavior!==e.options.emptyInputBehavior.null)return ga.warning("You are trying to set the `null` value while the `emptyInputBehavior` option is set to ".concat(this.settings.emptyInputBehavior,". If you want to be able to set the `null` value, you need to change the 'emptyInputBehavior' option to `'null'`."),this.settings.showWarnings),this;if(null===t)return this._setElementAndRawValue(null,null,o),this._saveValueToPersistentStorage(),this;if(n=this.constructor._toNumericValue(t,this.settings),isNaN(Number(n)))return ga.warning("The value you are trying to set results in `NaN`. The element value is set to the empty string instead.",this.settings.showWarnings),this.setValue("",o),this;if(""===n)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.zero:n=0;break;case e.options.emptyInputBehavior.min:n=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:n=this.settings.maximumValue;break;default:ga.isNumber(this.settings.emptyInputBehavior)&&(n=Number(this.settings.emptyInputBehavior))}if(""!==n){var a=Oa(this.constructor._checkIfInRangeWithOverrideOption(n,this.settings),2),s=a[0],l=a[1];if(s&&l&&this.settings.valuesToStrings&&this._checkValuesToStrings(n))return this._setElementAndRawValue(this.settings.valuesToStrings[n],n,o),this._saveValueToPersistentStorage(),this;if(ga.isZeroOrHasNoValue(n)&&(n="0"),s&&l){var c=this.constructor._roundRawValue(n,this.settings);return c=this._trimLeadingAndTrailingZeros(c.replace(this.settings.decimalCharacter,".")),n=this._getRawValueToFormat(n),this.isFocused?n=this.constructor._roundFormattedValueShownOnFocus(n,this.settings):(this.settings.divisorWhenUnfocused&&(n=(n/=this.settings.divisorWhenUnfocused).toString()),n=this.constructor._roundFormattedValueShownOnBlur(n,this.settings)),n=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(n,this.settings),n=this.constructor._addGroupSeparators(n,this.settings,this.isFocused,this.rawValue,c),!this.isFocused&&this.settings.symbolWhenUnfocused&&(n="".concat(n).concat(this.settings.symbolWhenUnfocused)),(this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._saveValueToPersistentStorage(),this._setElementAndRawValue(n,c,o),this._setValidOrInvalidState(c),this}return this._triggerRangeEvents(s,l),ga.throwError("The value [".concat(n,"] being set falls outside of the minimumValue [").concat(this.settings.minimumValue,"] and maximumValue [").concat(this.settings.maximumValue,"] range set for this element")),this._removeValueFromPersistentStorage(),this.setValue("",o),this}return i=this.settings.emptyInputBehavior===e.options.emptyInputBehavior.always?this.settings.currencySymbol:"",this._setElementAndRawValue(i,"",o),this}},{key:"setUnformatted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e||ga.isUndefined(e))return this;ga.isNull(t)||this._setSettings(t,!0);var n=this.constructor._removeBrackets(e,this.settings),i=this.constructor._stripAllNonNumberCharacters(n,this.settings,!0,this.isFocused);return ga.isNumber(i)||ga.throwError("The value is not a valid one, it's not a numeric string nor a recognized currency."),this.constructor._isWithinRangeWithOverrideOption(i,this.settings)?this.setValue(e):ga.throwError("The value is out of the range limits [".concat(this.settings.minimumValue,", ").concat(this.settings.maximumValue,"].")),this}},{key:"setValue",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._setElementAndRawValue(e,t),this}},{key:"_setRawValue",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.rawValue!==t){var i=this.rawValue;this.rawValue=t,!ga.isNull(this.settings.rawValueDivisor)&&0!==this.settings.rawValueDivisor&&""!==t&&null!==t&&this._isUserManuallyEditingTheValue()&&(this.rawValue/=this.settings.rawValueDivisor),this._triggerEvent(e.events.rawValueModified,this.domElement,{oldRawValue:i,newRawValue:this.rawValue,isPristine:this.isPristine(!0),error:null,aNElement:this}),this._parseStyleRules(),n&&this._historyTableAdd()}}},{key:"_setElementValue",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=ga.getElementValue(this.domElement);return t!==i&&(this.internalModification=!0,ga.setElementValue(this.domElement,t),this.internalModification=!1,n&&this._triggerEvent(e.events.formatted,this.domElement,{oldValue:i,newValue:t,oldRawValue:this.rawValue,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this})),this}},{key:"_setElementAndRawValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return ga.isNull(t)?t=e:ga.isBoolean(t)&&(n=t,t=e),this._setElementValue(e),this._setRawValue(t,n),this}},{key:"_getRawValueToFormat",value:function(e){return ga.isNull(this.settings.rawValueDivisor)||0===this.settings.rawValueDivisor||""===e||null===e?e:e*this.settings.rawValueDivisor}},{key:"_checkValuesToStrings",value:function(e){return this.constructor._checkValuesToStringsArray(e,this.valuesToStringsKeys)}},{key:"_isUserManuallyEditingTheValue",value:function(){return this.isFocused&&this.isEditing||this.isDropEvent}},{key:"_executeCallback",value:function(e,t){!ga.isNull(t)&&ga.isFunction(t)&&t(e,this)}},{key:"_triggerEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ga.triggerEvent(e,t,n,this.settings.eventBubbles,this.settings.eventIsCancelable)}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.getNumericString(e)}},{key:"getNumericString",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=ga.isNull(this.rawValue)?null:ga.trimPaddedZerosFromDecimalPlaces(this.rawValue),this._executeCallback(e,t),e}},{key:"getFormatted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;"value"in this.domElement||"textContent"in this.domElement||ga.throwError("Unable to get the formatted string from the element.");var t=ga.getElementValue(this.domElement);return this._executeCallback(t,e),t}},{key:"getNumber",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=null===this.rawValue?null:this.constructor._toLocale(this.getNumericString(),"number",this.settings),this._executeCallback(e,t),e}},{key:"getLocalized",value:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ga.isFunction(i)&&ga.isNull(r)&&(r=i,i=null),""!==(t=ga.isEmptyString(this.rawValue)?"":""+Number(this.rawValue))&&0===Number(t)&&this.settings.leadingZero!==e.options.leadingZero.keep&&(t="0"),n=ga.isNull(i)?this.settings.outputFormat:i;var o=this.constructor._toLocale(t,n,this.settings);return this._executeCallback(o,r),o}},{key:"reformat",value:function(){return this.set(this.rawValue),this}},{key:"unformat",value:function(){return this._setElementValue(this.getNumericString()),this}},{key:"unformatLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._setElementValue(this.getLocalized(e)),this}},{key:"isPristine",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.initialValue===this.getNumericString():this.initialValueHtmlAttribute===this.getFormatted()}},{key:"select",value:function(){return this.settings.selectNumberOnly?this.selectNumber():this._defaultSelectAll(),this}},{key:"_defaultSelectAll",value:function(){ga.setElementSelection(this.domElement,0,ga.getElementValue(this.domElement).length)}},{key:"selectNumber",value:function(){var t,n,i=ga.getElementValue(this.domElement),r=i.length,o=this.settings.currencySymbol.length,a=this.settings.currencySymbolPlacement,s=ga.isNegative(i,this.settings.negativeSignCharacter)?1:0,l=this.settings.suffixText.length;if(t=a===e.options.currencySymbolPlacement.suffix?0:this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left&&1===s&&o>0?o+1:o,a===e.options.currencySymbolPlacement.prefix)n=r-l;else switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:n=r-(l+o);break;case e.options.negativePositiveSignPlacement.right:n=o>0?r-(o+s+l):r-(o+l);break;default:n=r-(o+l)}return ga.setElementSelection(this.domElement,t,n),this}},{key:"selectInteger",value:function(){var t=0,n=this.rawValue>=0;this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.prefix&&(this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none)||(this.settings.showPositiveSign&&n||!n&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left)&&(t+=1),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&(t+=this.settings.currencySymbol.length);var i=ga.getElementValue(this.domElement),r=i.indexOf(this.settings.decimalCharacter);return-1===r&&(r=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?i.length-this.settings.currencySymbol.length:i.length,n||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.suffix&&this.settings.currencySymbolPlacement!==e.options.currencySymbolPlacement.suffix||(r-=1),r-=this.settings.suffixText.length),ga.setElementSelection(this.domElement,t,r),this}},{key:"selectDecimal",value:function(){var e,t,n=ga.getElementValue(this.domElement).indexOf(this.settings.decimalCharacter);-1===n?(n=0,e=0):(n+=1,t=this.isFocused?this.settings.decimalPlacesShownOnFocus:this.settings.decimalPlacesShownOnBlur,e=n+Number(t));return ga.setElementSelection(this.domElement,n,e),this}},{key:"node",value:function(){return this.domElement}},{key:"parent",value:function(){return this.domElement.parentNode}},{key:"detach",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=ga.isNull(t)?this.domElement:t.node(),this._removeFromLocalList(e),this}},{key:"attach",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._addToLocalList(e.node()),t&&e.update(this.settings),this}},{key:"formatOther",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._formatOrUnformatOther(!0,e,t)}},{key:"unformatOther",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._formatOrUnformatOther(!1,e,t)}},{key:"_formatOrUnformatOther",value:function(t,n){var i,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i=ga.isNull(o)?this.settings:this._cloneAndMergeSettings(o),ga.isElement(n)){var a=ga.getElementValue(n);return r=t?e.format(a,i):e.unformat(a,i),ga.setElementValue(n,r),null}return r=t?e.format(n,i):e.unformat(n,i)}},{key:"init",value:function(t){var n=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!1,o=[];if(ga.isString(t)?o=Pa(document.querySelectorAll(t)):ga.isElement(t)?(o.push(t),r=!0):ga.isArray(t)?o=t:ga.throwError("The given parameters to the 'init' function are invalid."),0===o.length)return ga.warning("No valid DOM elements were given hence no AutoNumeric object were instantiated.",!0),[];var a=this._getLocalList(),s=[];return o.forEach(function(t){var r=n.settings.createLocalList;i&&(n.settings.createLocalList=!1);var o=new e(t,ga.getElementValue(t),n.settings);i&&(o._setLocalList(a),n._addToLocalList(t,o),n.settings.createLocalList=r),s.push(o)}),r?s[0]:s}},{key:"clear",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]){var t={emptyInputBehavior:e.options.emptyInputBehavior.focus};this.set("",t)}else this.set("");return this}},{key:"remove",value:function(){this._removeValueFromPersistentStorage(),this._removeEventListeners(),this._removeWatcher(),this._removeFromLocalList(this.domElement),this.constructor._removeFromGlobalList(this)}},{key:"wipe",value:function(){this._setElementValue("",!1),this.remove()}},{key:"nuke",value:function(){this.remove(),this.domElement.parentNode.removeChild(this.domElement)}},{key:"form",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||ga.isUndefinedOrNullOrEmpty(this.parentForm)){var e=this._getParentForm();if(!ga.isNull(e)&&e!==this.parentForm){var t=this._getFormAutoNumericChildren(this.parentForm);this.parentForm.dataset.anCount=t.length,this._hasFormHandlerFunction(e)?this._incrementParentFormCounter(e):(this._storeFormHandlerFunction(e),this._initializeFormCounterToOne(e))}this.parentForm=e}return this.parentForm}},{key:"_getFormAutoNumericChildren",value:function(e){var t=this;return Pa(e.querySelectorAll("input")).filter(function(e){return t.constructor.isManagedByAutoNumeric(e)})}},{key:"_getParentForm",value:function(){if("body"===this.domElement.tagName.toLowerCase())return null;var e,t=this.domElement;do{if(t=t.parentNode,ga.isNull(t))return null;if("body"===(e=t.tagName?t.tagName.toLowerCase():""))break}while("form"!==e);return"form"===e?t:null}},{key:"formNumericString",value:function(){return this.constructor._serializeNumericString(this.form(),this.settings.serializeSpaces)}},{key:"formFormatted",value:function(){return this.constructor._serializeFormatted(this.form(),this.settings.serializeSpaces)}},{key:"formLocalized",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=ga.isNull(t)?this.settings.outputFormat:t,this.constructor._serializeLocalized(this.form(),this.settings.serializeSpaces,e)}},{key:"formArrayNumericString",value:function(){return this.constructor._serializeNumericStringArray(this.form(),this.settings.serializeSpaces)}},{key:"formArrayFormatted",value:function(){return this.constructor._serializeFormattedArray(this.form(),this.settings.serializeSpaces)}},{key:"formArrayLocalized",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e=ga.isNull(t)?this.settings.outputFormat:t,this.constructor._serializeLocalizedArray(this.form(),this.settings.serializeSpaces,e)}},{key:"formJsonNumericString",value:function(){return JSON.stringify(this.formArrayNumericString())}},{key:"formJsonFormatted",value:function(){return JSON.stringify(this.formArrayFormatted())}},{key:"formJsonLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return JSON.stringify(this.formArrayLocalized(e))}},{key:"formUnformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(t){e.getAutoNumericElement(t).unformat()}),this}},{key:"formUnformatLocalized",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(t){e.getAutoNumericElement(t).unformatLocalized()}),this}},{key:"formReformat",value:function(){return this.constructor._getChildANInputElement(this.form()).forEach(function(t){e.getAutoNumericElement(t).reformat()}),this}},{key:"formSubmitNumericString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return ga.isNull(e)?(this.formUnformat(),this.form().submit(),this.formReformat()):ga.isFunction(e)?e(this.formNumericString()):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitFormatted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return ga.isNull(e)?this.form().submit():ga.isFunction(e)?e(this.formFormatted()):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitLocalized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ga.isNull(t)?(this.formUnformatLocalized(),this.form().submit(),this.formReformat()):ga.isFunction(t)?t(this.formLocalized(e)):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayNumericString",value:function(e){return ga.isFunction(e)?e(this.formArrayNumericString()):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayFormatted",value:function(e){return ga.isFunction(e)?e(this.formArrayFormatted()):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitArrayLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ga.isFunction(e)?e(this.formArrayLocalized(t)):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonNumericString",value:function(e){return ga.isFunction(e)?e(this.formJsonNumericString()):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonFormatted",value:function(e){return ga.isFunction(e)?e(this.formJsonFormatted()):ga.throwError("The given callback is not a function."),this}},{key:"formSubmitJsonLocalized",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ga.isFunction(e)?e(this.formJsonLocalized(t)):ga.throwError("The given callback is not a function."),this}},{key:"_createLocalList",value:function(){this.autoNumericLocalList=new Map,this._addToLocalList(this.domElement)}},{key:"_deleteLocalList",value:function(){delete this.autoNumericLocalList}},{key:"_setLocalList",value:function(e){this.autoNumericLocalList=e}},{key:"_getLocalList",value:function(){return this.autoNumericLocalList}},{key:"_hasLocalList",value:function(){return this.autoNumericLocalList instanceof Map&&0!==this.autoNumericLocalList.size}},{key:"_addToLocalList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ga.isNull(t)&&(t=this),ga.isUndefined(this.autoNumericLocalList)?ga.throwError("The local list provided does not exists when trying to add an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.set(e,t)}},{key:"_removeFromLocalList",value:function(e){ga.isUndefined(this.autoNumericLocalList)?this.settings.createLocalList&&ga.throwError("The local list provided does not exists when trying to remove an element. [".concat(this.autoNumericLocalList,"] given.")):this.autoNumericLocalList.delete(e)}},{key:"_mergeSettings",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Object.assign.apply(Object,[this.settings].concat(t))}},{key:"_cloneAndMergeSettings",value:function(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Object.assign.apply(Object,[e,this.settings].concat(n)),e}},{key:"_updatePredefinedOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ga.isNull(t)?this.update(e):(this._mergeSettings(e,t),this.update(this.settings)),this}},{key:"french",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().French,t),this}},{key:"northAmerican",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().NorthAmerican,t),this}},{key:"british",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().British,t),this}},{key:"swiss",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Swiss,t),this}},{key:"japanese",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Japanese,t),this}},{key:"spanish",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Spanish,t),this}},{key:"chinese",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Chinese,t),this}},{key:"brazilian",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this._updatePredefinedOptions(e.getPredefinedOptions().Brazilian,t),this}},{key:"_runCallbacksFoundInTheSettingsObject",value:function(){for(var e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){var t=this.settings[e];if("function"==typeof t)this.settings[e]=t(this,e);else{var n=this.domElement.getAttribute(e);n=ga.camelize(n),"function"==typeof this.settings[n]&&(this.settings[e]=n(this,e))}}}},{key:"_setTrailingNegativeSignInfo",value:function(){this.isTrailingNegative=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&(this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left||this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.right)}},{key:"_modifyNegativeSignAndDecimalCharacterForRawValue",value:function(e){return"."!==this.settings.decimalCharacter&&(e=e.replace(this.settings.decimalCharacter,".")),"-"!==this.settings.negativeSignCharacter&&this.settings.isNegativeSignAllowed&&(e=e.replace(this.settings.negativeSignCharacter,"-")),e.match(/\d/)||(e+="0"),e}},{key:"_initialCaretPosition",value:function(t){ga.isNull(this.settings.caretPositionOnFocus)&&this.settings.selectOnFocus===e.options.selectOnFocus.doNotSelect&&ga.throwError("`_initialCaretPosition()` should never be called when the `caretPositionOnFocus` option is `null`.");var n=this.rawValue<0,i=ga.isZeroOrHasNoValue(t),r=t.length,o=0,a=0,s=!1,l=0;this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.start&&(o=(t=(t=(t=t.replace(this.settings.negativeSignCharacter,"")).replace(this.settings.positiveSignCharacter,"")).replace(this.settings.currencySymbol,"")).length,s=ga.contains(t,this.settings.decimalCharacter),this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.decimalLeft&&this.settings.caretPositionOnFocus!==e.options.caretPositionOnFocus.decimalRight||(s?(a=t.indexOf(this.settings.decimalCharacter),l=this.settings.decimalCharacter.length):(a=o,l=0)));var c="";n?c=this.settings.negativeSignCharacter:this.settings.showPositiveSign&&!i&&(c=this.settings.positiveSignCharacter);var u,h=c.length,d=this.settings.currencySymbol.length;if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix){if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=h+d;break;case e.options.negativePositiveSignPlacement.suffix:u=d}else u=d;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=r;break;case e.options.negativePositiveSignPlacement.suffix:u=d+o}else u=r;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=h+d+a;break;case e.options.negativePositiveSignPlacement.suffix:u=d+a}else u=d+a;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.prefix:case e.options.negativePositiveSignPlacement.left:case e.options.negativePositiveSignPlacement.right:u=h+d+a+l;break;case e.options.negativePositiveSignPlacement.suffix:u=d+a+l}else u=d+a+l}else if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.start)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=0;break;case e.options.negativePositiveSignPlacement.prefix:u=h}else u=0;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.end)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=o;break;case e.options.negativePositiveSignPlacement.prefix:u=h+o}else u=o;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalLeft)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=a;break;case e.options.negativePositiveSignPlacement.prefix:u=h+a}else u=a;else if(this.settings.caretPositionOnFocus===e.options.caretPositionOnFocus.decimalRight)if(this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.none&&(n||!n&&this.settings.showPositiveSign&&!i))switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.suffix:case e.options.negativePositiveSignPlacement.right:case e.options.negativePositiveSignPlacement.left:u=a+l;break;case e.options.negativePositiveSignPlacement.prefix:u=h+a+l}else u=a+l;return u}},{key:"_triggerRangeEvents",value:function(t,n){t||this._triggerEvent(e.events.minRangeExceeded,this.domElement),n||this._triggerEvent(e.events.maxRangeExceeded,this.domElement)}},{key:"_setInvalidState",value:function(){this.isInputElement?ga.setInvalidState(this.domElement):this._addCSSClass(this.settings.invalidClass),this._triggerEvent(e.events.invalidValue,this.domElement),this.validState=!1}},{key:"_setValidState",value:function(){this.isInputElement?ga.setValidState(this.domElement):this._removeCSSClass(this.settings.invalidClass),this.validState||this._triggerEvent(e.events.correctedValue,this.domElement),this.validState=!0}},{key:"_setValidOrInvalidState",value:function(t){if(this.settings.overrideMinMaxLimits===e.options.overrideMinMaxLimits.invalid){var n=this.constructor._isMinimumRangeRespected(t,this.settings),i=this.constructor._isMaximumRangeRespected(t,this.settings);n&&i?this._setValidState():this._setInvalidState(),this._triggerRangeEvents(n,i)}}},{key:"_keepAnOriginalSettingsCopy",value:function(){this.originalDigitGroupSeparator=this.settings.digitGroupSeparator,this.originalCurrencySymbol=this.settings.currencySymbol,this.originalSuffixText=this.settings.suffixText}},{key:"_trimLeadingAndTrailingZeros",value:function(t){if(""===t||null===t)return t;if(this.settings.leadingZero!==e.options.leadingZero.keep){if(0===Number(t))return"0";t=t.replace(/^(-)?0+(?=\d)/g,"$1")}return ga.contains(t,".")&&(t=t.replace(/(\.[0-9]*?)0+$/,"$1")),t=t.replace(/\.$/,"")}},{key:"_setPersistentStorageName",value:function(){this.settings.saveValueToSessionStorage&&(""===this.domElement.name||ga.isUndefined(this.domElement.name)?this.rawValueStorageName="".concat(this.storageNamePrefix).concat(this.domElement.id):this.rawValueStorageName="".concat(this.storageNamePrefix).concat(decodeURIComponent(this.domElement.name)))}},{key:"_saveValueToPersistentStorage",value:function(){this.settings.saveValueToSessionStorage&&(this.sessionStorageAvailable?sessionStorage.setItem(this.rawValueStorageName,this.rawValue):document.cookie="".concat(this.rawValueStorageName,"=").concat(this.rawValue,"; expires= ; path=/"))}},{key:"_getValueFromPersistentStorage",value:function(){return this.settings.saveValueToSessionStorage?this.sessionStorageAvailable?sessionStorage.getItem(this.rawValueStorageName):this.constructor._readCookie(this.rawValueStorageName):(ga.warning("`_getValueFromPersistentStorage()` is called but `settings.saveValueToSessionStorage` is false. There must be an error that needs fixing.",this.settings.showWarnings),null)}},{key:"_removeValueFromPersistentStorage",value:function(){if(this.settings.saveValueToSessionStorage)if(this.sessionStorageAvailable)sessionStorage.removeItem(this.rawValueStorageName);else{var e=new Date;e.setTime(e.getTime()-864e5);var t="; expires=".concat(e.toUTCString());document.cookie="".concat(this.rawValueStorageName,"='' ;").concat(t,"; path=/")}}},{key:"_getDefaultValue",value:function(e){var t=e.getAttribute("value");return ga.isNull(t)?"":t}},{key:"_onFocusInAndMouseEnter",value:function(t){if(this.isEditing=!1,!this.formulaMode&&this.settings.unformatOnHover&&"mouseenter"===t.type&&t.altKey)this.constructor._unformatAltHovered(this);else if("focus"===t.type&&(this.isFocused=!0,this.rawValueOnFocus=this.rawValue),"focus"===t.type&&this.settings.unformatOnHover&&this.hoveredWithAlt&&this.constructor._reformatAltHovered(this),"focus"===t.type||"mouseenter"===t.type&&!this.isFocused){var n=null;this.settings.emptyInputBehavior===e.options.emptyInputBehavior.focus&&this.rawValue<0&&null!==this.settings.negativeBracketsTypeOnBlur&&this.settings.isNegativeSignAllowed&&(n=this.constructor._removeBrackets(ga.getElementValue(this.domElement),this.settings));var i=this._getRawValueToFormat(this.rawValue);if(""!==i){var r=this.constructor._roundFormattedValueShownOnFocusOrBlur(i,this.settings,this.isFocused);if(this.settings.showOnlyNumbersOnFocus===e.options.showOnlyNumbersOnFocus.onlyNumbers)this.settings.digitGroupSeparator="",this.settings.currencySymbol="",this.settings.suffixText="",n=r.replace(".",this.settings.decimalCharacter);else n=ga.isNull(r)?"":this.constructor._addGroupSeparators(r.replace(".",this.settings.decimalCharacter),this.settings,this.isFocused,i)}ga.isNull(n)?this.valueOnFocus="":this.valueOnFocus=n,this.lastVal=this.valueOnFocus;var o=this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(this.valueOnFocus,this.settings),a=this.constructor._orderValueCurrencySymbolAndSuffixText(this.valueOnFocus,this.settings,!0),s=o&&""!==a&&this.settings.emptyInputBehavior===e.options.emptyInputBehavior.focus;s&&(n=a),ga.isNull(n)||this._setElementValue(n),s&&a===this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&ga.setElementSelection(t.target,0)}}},{key:"_onFocus",value:function(){this.settings.isCancellable&&this._saveCancellableValue()}},{key:"_onFocusIn",value:function(e){this.settings.selectOnFocus?this.select():ga.isNull(this.settings.caretPositionOnFocus)||ga.setElementSelection(e.target,this._initialCaretPosition(ga.getElementValue(this.domElement)))}},{key:"_enterFormulaMode",value:function(){this.settings.formulaMode&&(this.formulaMode=!0,ga.setElementValue(this.domElement,"="),ga.setElementSelection(this.domElement,1))}},{key:"_exitFormulaMode",value:function(){var t,n=ga.getElementValue(this.domElement);n=n.replace(/^\s*=/,"");try{var i=new xa(n,this.settings.decimalCharacter);t=(new ya).evaluate(i)}catch(t){return this._triggerEvent(e.events.invalidFormula,this.domElement,{formula:n,aNElement:this}),this.reformat(),void(this.formulaMode=!1)}this._triggerEvent(e.events.validFormula,this.domElement,{formula:n,result:t,aNElement:this}),this.set(t),this.formulaMode=!1}},{key:"_acceptNonPrintableKeysInFormulaMode",value:function(){return this.eventKey===ca.keyName.Backspace||this.eventKey===ca.keyName.Delete||this.eventKey===ca.keyName.LeftArrow||this.eventKey===ca.keyName.RightArrow||this.eventKey===ca.keyName.Home||this.eventKey===ca.keyName.End}},{key:"_onKeydown",value:function(t){if(this.formatted=!1,this.isEditing=!0,this.formulaMode||this.isFocused||!this.settings.unformatOnHover||!t.altKey||this.domElement!==ga.getHoveredElement()){if(this._updateEventKeyInfo(t),this.keydownEventCounter+=1,1===this.keydownEventCounter&&(this.initialValueOnFirstKeydown=ga.getElementValue(t.target),this.initialRawValueOnFirstKeydown=this.rawValue),this.formulaMode){if(this.eventKey===ca.keyName.Esc)return this.formulaMode=!1,void this.reformat();if(this.eventKey===ca.keyName.Enter)return void this._exitFormulaMode();if(this._acceptNonPrintableKeysInFormulaMode())return}else if(this.eventKey===ca.keyName.Equal)return void this._enterFormulaMode();if(this.domElement.readOnly||this.settings.readOnly||this.domElement.disabled)this.processed=!0;else{this.eventKey===ca.keyName.Esc&&(t.preventDefault(),this.settings.isCancellable&&this.rawValue!==this.savedCancellableValue&&(this.set(this.savedCancellableValue),this._triggerEvent(e.events.native.input,t.target)),this.select());var n=ga.getElementValue(t.target);if(this.eventKey===ca.keyName.Enter&&this.rawValue!==this.rawValueOnFocus&&(this._triggerEvent(e.events.native.change,t.target),this.valueOnFocus=n,this.rawValueOnFocus=this.rawValue,this.settings.isCancellable&&this._saveCancellableValue()),this._updateInternalProperties(t),this._processNonPrintableKeysAndShortcuts(t))this.processed=!0;else if(this.eventKey===ca.keyName.Backspace||this.eventKey===ca.keyName.Delete){var i=this._processCharacterDeletion();if(this.processed=!0,!i)return void t.preventDefault();this._formatValue(t),(n=ga.getElementValue(t.target))!==this.lastVal&&this.throwInput&&(this._triggerEvent(e.events.native.input,t.target),t.preventDefault()),this.lastVal=n,this.throwInput=!0}}}else this.constructor._unformatAltHovered(this)}},{key:"_onKeypress",value:function(t){if(this.formulaMode){if(this._acceptNonPrintableKeysInFormulaMode())return;if(this.settings.formulaChars.test(this.eventKey))return;t.preventDefault()}else if(this.eventKey!==ca.keyName.Insert){var n=this.processed;if(this._updateInternalProperties(t),!this._processNonPrintableKeysAndShortcuts(t))if(n)t.preventDefault();else{if(this._processCharacterInsertion()){this._formatValue(t);var i=ga.getElementValue(t.target);if(i!==this.lastVal&&this.throwInput)this._triggerEvent(e.events.native.input,t.target),t.preventDefault();else{if((this.eventKey===this.settings.decimalCharacter||this.eventKey===this.settings.decimalCharacterAlternative)&&ga.getElementSelection(t.target).start===ga.getElementSelection(t.target).end&&ga.getElementSelection(t.target).start===i.indexOf(this.settings.decimalCharacter)){var r=ga.getElementSelection(t.target).start+1;ga.setElementSelection(t.target,r)}t.preventDefault()}return this.lastVal=ga.getElementValue(t.target),this.throwInput=!0,void this._setValidOrInvalidState(this.rawValue)}t.preventDefault()}}}},{key:"_onKeyup",value:function(t){if(this.isEditing=!1,this.keydownEventCounter=0,!this.formulaMode)if(this.settings.isCancellable&&this.eventKey===ca.keyName.Esc)t.preventDefault();else{if(this.eventKey===ca.keyName.Z||this.eventKey===ca.keyName.z){if(t.ctrlKey&&t.shiftKey)return t.preventDefault(),this._historyTableRedo(),void(this.onGoingRedo=!0);if(t.ctrlKey&&!t.shiftKey){if(!this.onGoingRedo)return t.preventDefault(),void this._historyTableUndo();this.onGoingRedo=!1}}if(this.onGoingRedo&&(t.ctrlKey||t.shiftKey)&&(this.onGoingRedo=!1),(t.ctrlKey||t.metaKey)&&this.eventKey===ca.keyName.x){var n=ga.getElementSelection(this.domElement).start,i=this.constructor._toNumericValue(ga.getElementValue(t.target),this.settings);this.set(i),this._setCaretPosition(n)}if(this.eventKey===ca.keyName.Alt&&this.settings.unformatOnHover&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if(!t.ctrlKey&&!t.metaKey||this.eventKey!==ca.keyName.Backspace&&this.eventKey!==ca.keyName.Delete){this._updateInternalProperties(t);var r=this._processNonPrintableKeysAndShortcuts(t);delete this.valuePartsBeforePaste;var o=ga.getElementValue(t.target);if(!(r||""===o&&""===this.initialValueOnFirstKeydown)&&(o===this.settings.currencySymbol?this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?ga.setElementSelection(t.target,0):ga.setElementSelection(t.target,this.settings.currencySymbol.length):this.eventKey===ca.keyName.Tab&&ga.setElementSelection(t.target,0,o.length),(o===this.settings.suffixText||""===this.rawValue&&""!==this.settings.currencySymbol&&""!==this.settings.suffixText)&&ga.setElementSelection(t.target,0),null!==this.settings.decimalPlacesShownOnFocus&&this._saveValueToPersistentStorage(),this.formatted||this._formatValue(t),this._setValidOrInvalidState(this.rawValue),this._saveRawValueForAndroid(),o!==this.initialValueOnFirstKeydown&&this._triggerEvent(e.events.formatted,t.target,{oldValue:this.initialValueOnFirstKeydown,newValue:o,oldRawValue:this.initialRawValueOnFirstKeydown,newRawValue:this.rawValue,isPristine:this.isPristine(!1),error:null,aNElement:this}),this.historyTable.length>1)){var a=ga.getElementSelection(this.domElement);this.selectionStart=a.start,this.selectionEnd=a.end,this.historyTable[this.historyTableIndex].start=this.selectionStart,this.historyTable[this.historyTableIndex].end=this.selectionEnd}}else{var s=ga.getElementValue(t.target);this._setRawValue(this._formatOrUnformatOther(!1,s))}}}},{key:"_saveRawValueForAndroid",value:function(){if(this.eventKey===ca.keyName.AndroidDefault){var e=this.constructor._stripAllNonNumberCharactersExceptCustomDecimalChar(this.getFormatted(),this.settings,!0,this.isFocused);e=this.constructor._convertToNumericString(e,this.settings),this._setRawValue(e)}}},{key:"_onFocusOutAndMouseLeave",value:function(t){if(this.isEditing=!1,"mouseleave"!==t.type||!this.formulaMode)if(this.settings.unformatOnHover&&"mouseleave"===t.type&&this.hoveredWithAlt)this.constructor._reformatAltHovered(this);else if("mouseleave"===t.type&&!this.isFocused||"blur"===t.type){"blur"===t.type&&this.formulaMode&&this._exitFormulaMode(),this._saveValueToPersistentStorage(),this.settings.showOnlyNumbersOnFocus===e.options.showOnlyNumbersOnFocus.onlyNumbers&&(this.settings.digitGroupSeparator=this.originalDigitGroupSeparator,this.settings.currencySymbol=this.originalCurrencySymbol,this.settings.suffixText=this.originalSuffixText);var n=this._getRawValueToFormat(this.rawValue),i=ga.isNull(n),r=Oa(this.constructor._checkIfInRangeWithOverrideOption(n,this.settings),2),o=r[0],a=r[1],s=!1;if(""===n||i||(this._triggerRangeEvents(o,a),this.settings.valuesToStrings&&this._checkValuesToStrings(n)&&(this._setElementValue(this.settings.valuesToStrings[n]),s=!0)),!s){var l;if(l=i||""===n?n:String(n),""===n||i){if(""===n)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.zero:this._setRawValue("0"),l=this.constructor._roundValue("0",this.settings,0);break;case e.options.emptyInputBehavior.min:this._setRawValue(this.settings.minimumValue),l=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.minimumValue,this.settings,this.isFocused);break;case e.options.emptyInputBehavior.max:this._setRawValue(this.settings.maximumValue),l=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.maximumValue,this.settings,this.isFocused);break;default:ga.isNumber(this.settings.emptyInputBehavior)&&(this._setRawValue(this.settings.emptyInputBehavior),l=this.constructor._roundFormattedValueShownOnFocusOrBlur(this.settings.emptyInputBehavior,this.settings,this.isFocused))}}else o&&a&&!this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(n,this.settings)?(l=this._modifyNegativeSignAndDecimalCharacterForRawValue(l),this.settings.divisorWhenUnfocused&&!ga.isNull(l)&&(l=(l/=this.settings.divisorWhenUnfocused).toString()),l=this.constructor._roundFormattedValueShownOnBlur(l,this.settings),l=this.constructor._modifyNegativeSignAndDecimalCharacterForFormattedValue(l,this.settings)):this._triggerRangeEvents(o,a);var c=this.constructor._orderValueCurrencySymbolAndSuffixText(l,this.settings,!1);this.constructor._isElementValueEmptyOrOnlyTheNegativeSign(l,this.settings)||i&&this.settings.emptyInputBehavior===e.options.emptyInputBehavior.null||(c=this.constructor._addGroupSeparators(l,this.settings,!1,n)),c===n&&""!==n&&this.settings.allowDecimalPadding!==e.options.allowDecimalPadding.never&&this.settings.allowDecimalPadding!==e.options.allowDecimalPadding.floats||(this.settings.symbolWhenUnfocused&&""!==n&&null!==n&&(c="".concat(c).concat(this.settings.symbolWhenUnfocused)),this._setElementValue(c))}this._setValidOrInvalidState(this.rawValue),"blur"===t.type&&this._onBlur(t)}}},{key:"_onPaste",value:function(t){if(t.preventDefault(),!(this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled)){var n,i;window.clipboardData&&window.clipboardData.getData?n=window.clipboardData.getData("Text"):t.clipboardData&&t.clipboardData.getData?n=t.clipboardData.getData("text/plain"):ga.throwError("Unable to retrieve the pasted value. Please use a modern browser (ie. Firefox or Chromium)."),i=t.target.tagName?t.target:t.explicitOriginalTarget;var r=ga.getElementValue(i),o=i.selectionStart||0,a=i.selectionEnd||0,s=a-o;if(s===r.length){var l=this._preparePastedText(n),c=ga.arabicToLatinNumbers(l,!1,!1,!1);return"."===c||""===c||"."!==c&&!ga.isNumber(c)?(this.formatted=!0,void(this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&ga.throwError("The pasted value '".concat(n,"' is not a valid paste content.")))):(this.set(c),this.formatted=!0,void this._triggerEvent(e.events.native.input,i))}var u=ga.isNegativeStrict(n,this.settings.negativeSignCharacter);u&&(n=n.slice(1,n.length));var h,d,m=this._preparePastedText(n);if("."!==(h="."===m?".":ga.arabicToLatinNumbers(m,!1,!1,!1))&&(!ga.isNumber(h)||""===h))return this.formatted=!0,void(this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&ga.throwError("The pasted value '".concat(n,"' is not a valid paste content.")));var p,f,g=ga.isNegativeStrict(this.getNumericString(),this.settings.negativeSignCharacter);u&&!g?(g=!0,p=!0):p=!1;var v=r.slice(0,o),y=r.slice(a,r.length);f=o!==a?this._preparePastedText(v+y):this._preparePastedText(r),g&&(f=ga.setRawNegativeSign(f)),d=ga.convertCharacterCountToIndexPosition(ga.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter)),p&&d++;var b=f.slice(0,d),_=f.slice(d,f.length),S=!1;"."===h&&(ga.contains(b,".")&&(S=!0,b=b.replace(".","")),_=_.replace(".",""));var w=!1;switch(""===b&&"-"===_&&(b="-",_="",w=!0),this.settings.onInvalidPaste){case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:for(var E=ga.parseStr(this.settings.minimumValue),k=ga.parseStr(this.settings.maximumValue),x=f,P=0,O=b;P<h.length&&(f=(O+=h[P])+_,this.constructor._checkIfInRange(f,E,k));)x=f,P++;if(d+=P,w&&d++,this.settings.onInvalidPaste===e.options.onInvalidPaste.truncate){f=x,S&&d--;break}for(var T=d,C=x.length;P<h.length&&T<C;)if("."!==x[T]){if(f=ga.replaceCharAt(x,T,h[P]),!this.constructor._checkIfInRange(f,E,k))break;x=f,P++,T++}else T++;d=T,S&&d--,f=x;break;case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.ignore:case e.options.onInvalidPaste.clamp:default:if(f="".concat(b).concat(h).concat(_),o===a)d=ga.convertCharacterCountToIndexPosition(ga.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter))+h.length;else if(""===_)d=ga.convertCharacterCountToIndexPosition(ga.countNumberCharactersOnTheCaretLeftSide(r,o,this.settings.decimalCharacter))+h.length,w&&d++;else{var N=ga.convertCharacterCountToIndexPosition(ga.countNumberCharactersOnTheCaretLeftSide(r,a,this.settings.decimalCharacter)),I=ga.getElementValue(i).slice(o,a);d=N-s+ga.countCharInText(this.settings.digitGroupSeparator,I)+h.length}p&&d++,S&&d--}if(ga.isNumber(f)&&""!==f){var F=!1,A=!1;try{this.set(f),F=!0}catch(t){var L;switch(this.settings.onInvalidPaste){case e.options.onInvalidPaste.clamp:L=ga.clampToRangeLimits(f,this.settings);try{this.set(L)}catch(e){ga.throwError("Fatal error: Unable to set the clamped value '".concat(L,"'."))}A=!0,F=!0,f=L;break;case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:ga.throwError("The pasted value '".concat(n,"' results in a value '").concat(f,"' that is outside of the minimum [").concat(this.settings.minimumValue,"] and maximum [").concat(this.settings.maximumValue,"] value range."));case e.options.onInvalidPaste.ignore:default:return}}var V,D=ga.getElementValue(i);if(F)switch(this.settings.onInvalidPaste){case e.options.onInvalidPaste.clamp:if(A){this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?ga.setElementSelection(i,D.length-this.settings.currencySymbol.length):ga.setElementSelection(i,D.length);break}case e.options.onInvalidPaste.error:case e.options.onInvalidPaste.ignore:case e.options.onInvalidPaste.truncate:case e.options.onInvalidPaste.replace:default:V=ga.findCaretPositionInFormattedNumber(f,d,D,this.settings.decimalCharacter),ga.setElementSelection(i,V)}F&&r!==D&&this._triggerEvent(e.events.native.input,i)}else this.settings.onInvalidPaste===e.options.onInvalidPaste.error&&ga.throwError("The pasted value '".concat(n,"' would result into an invalid content '").concat(f,"'."))}}},{key:"_onBlur",value:function(t){this.isFocused=!1,this.isEditing=!1,this.rawValue!==this.rawValueOnFocus&&this._triggerEvent(e.events.native.change,t.target),this.rawValueOnFocus=void 0}},{key:"_onWheel",value:function(t){this.formulaMode||this.settings.readOnly||this.domElement.readOnly||this.domElement.disabled||this.settings.modifyValueOnWheel&&(this.settings.wheelOn===e.options.wheelOn.focus?this.isFocused?t.shiftKey||this.wheelAction(t):t.shiftKey&&this.wheelAction(t):this.settings.wheelOn===e.options.wheelOn.hover?t.shiftKey?(t.preventDefault(),window.scrollBy(0,ga.isNegativeStrict(String(t.deltaY))?-50:50)):this.wheelAction(t):ga.throwError("Unknown `wheelOn` option."))}},{key:"wheelAction",value:function(t){this.isWheelEvent=!0;var n,i=t.target.selectionStart||0,r=t.target.selectionEnd||0,o=this.rawValue;if(ga.isUndefinedOrNullOrEmpty(o)?this.settings.minimumValue>0||this.settings.maximumValue<0?ga.isWheelUpEvent(t)?n=this.settings.minimumValue:ga.isWheelDownEvent(t)?n=this.settings.maximumValue:ga.throwError("The event is not a 'wheel' event."):n=0:n=o,n=+n,ga.isNumber(this.settings.wheelStep)){var a=+this.settings.wheelStep;ga.isWheelUpEvent(t)?n+=a:ga.isWheelDownEvent(t)&&(n-=a)}else ga.isWheelUpEvent(t)?n=ga.addAndRoundToNearestAuto(n,this.settings.decimalPlacesRawValue):ga.isWheelDownEvent(t)&&(n=ga.subtractAndRoundToNearestAuto(n,this.settings.decimalPlacesRawValue));(n=ga.clampToRangeLimits(n,this.settings))!==+o&&(this.set(n),this._triggerEvent(e.events.native.input,t.target)),t.preventDefault(),this._setSelection(i,r),this.isWheelEvent=!1}},{key:"_onDrop",value:function(e){if(!this.formulaMode){var t;this.isDropEvent=!0,e.preventDefault(),t=ga.isIE11()?"text":"text/plain";var n=e.dataTransfer.getData(t),i=this.unformatOther(n);this.set(i),this.isDropEvent=!1}}},{key:"_onFormSubmit",value:function(){var e=this;return this._getFormAutoNumericChildren(this.parentForm).map(function(t){return e.constructor.getAutoNumericElement(t)}).forEach(function(e){return e._unformatOnSubmit()}),!0}},{key:"_onFormReset",value:function(){var e=this;this._getFormAutoNumericChildren(this.parentForm).map(function(t){return e.constructor.getAutoNumericElement(t)}).forEach(function(t){var n=e._getDefaultValue(t.node());setTimeout(function(){return t.set(n)},0)})}},{key:"_unformatOnSubmit",value:function(){this.settings.unformatOnSubmit&&this._setElementValue(this.rawValue)}},{key:"_onKeydownGlobal",value:function(t){if(ga.character(t)===ca.keyName.Alt){var n=ga.getHoveredElement();if(e.isManagedByAutoNumeric(n)){var i=e.getAutoNumericElement(n);!i.formulaMode&&i.settings.unformatOnHover&&this.constructor._unformatAltHovered(i)}}}},{key:"_onKeyupGlobal",value:function(t){if(ga.character(t)===ca.keyName.Alt){var n=ga.getHoveredElement();if(e.isManagedByAutoNumeric(n)){var i=e.getAutoNumericElement(n);if(i.formulaMode||!i.settings.unformatOnHover)return;this.constructor._reformatAltHovered(i)}}}},{key:"_isElementTagSupported",value:function(){return ga.isElement(this.domElement)||ga.throwError("The DOM element is not valid, ".concat(this.domElement," given.")),ga.isInArray(this.domElement.tagName.toLowerCase(),this.allowedTagList)}},{key:"_isInputElement",value:function(){return"input"===this.domElement.tagName.toLowerCase()}},{key:"_isInputTypeSupported",value:function(){return"text"===this.domElement.type||"hidden"===this.domElement.type||"tel"===this.domElement.type||ga.isUndefinedOrNullOrEmpty(this.domElement.type)}},{key:"_checkElement",value:function(){var e=this.domElement.tagName.toLowerCase();this._isElementTagSupported()||ga.throwError("The <".concat(e,"> tag is not supported by autoNumeric")),this._isInputElement()?(this._isInputTypeSupported()||ga.throwError('The input type "'.concat(this.domElement.type,'" is not supported by autoNumeric')),this.isInputElement=!0):(this.isInputElement=!1,this.isContentEditable=this.domElement.hasAttribute("contenteditable")&&"true"===this.domElement.getAttribute("contenteditable"))}},{key:"_formatDefaultValueOnPageLoad",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=!0;if(ga.isNull(n)?(t=ga.getElementValue(this.domElement).trim(),this.domElement.setAttribute("value",t)):t=n,this.isInputElement||this.isContentEditable){var r=this.constructor._toNumericValue(t,this.settings);if(this.domElement.hasAttribute("value")&&""!==this.domElement.getAttribute("value")){if(null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride.toString()!==t||null===this.settings.defaultValueOverride&&""!==t&&t!==this.domElement.getAttribute("value")||""!==t&&"hidden"===this.domElement.getAttribute("type")&&!ga.isNumber(r)){if(this.settings.saveValueToSessionStorage&&(null!==this.settings.decimalPlacesShownOnFocus||this.settings.divisorWhenUnfocused)&&this._setRawValue(this._getValueFromPersistentStorage()),!this.settings.saveValueToSessionStorage){var o=this.constructor._removeBrackets(t,this.settings);(this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)&&""!==this.settings.negativeSignCharacter&&ga.isNegative(t,this.settings.negativeSignCharacter)?this._setRawValue("-".concat(this.constructor._stripAllNonNumberCharacters(o,this.settings,!0,this.isFocused))):this._setRawValue(this.constructor._stripAllNonNumberCharacters(o,this.settings,!0,this.isFocused))}i=!1}}else isNaN(Number(r))||1/0===r?ga.throwError("The value [".concat(t,"] used in the input is not a valid value autoNumeric can work with.")):(this.set(r),i=!1);if(""===t)switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.null:case e.options.emptyInputBehavior.press:break;case e.options.emptyInputBehavior.always:this._setElementValue(this.settings.currencySymbol);break;case e.options.emptyInputBehavior.min:this.set(this.settings.minimumValue);break;case e.options.emptyInputBehavior.max:this.set(this.settings.maximumValue);break;case e.options.emptyInputBehavior.zero:this.set("0");break;default:this.set(this.settings.emptyInputBehavior)}else i&&t===this.domElement.getAttribute("value")&&this.set(t)}else null!==this.settings.defaultValueOverride&&this.settings.defaultValueOverride!==t||this.set(t)}},{key:"_calculateVMinAndVMaxIntegerSizes",value:function(){var e=Oa(this.settings.maximumValue.toString().split("."),1)[0],t=Oa(this.settings.minimumValue||0===this.settings.minimumValue?this.settings.minimumValue.toString().split("."):[],1)[0];e=e.replace(this.settings.negativeSignCharacter,""),t=t.replace(this.settings.negativeSignCharacter,""),this.settings.mIntPos=Math.max(e.length,1),this.settings.mIntNeg=Math.max(t.length,1)}},{key:"_calculateValuesToStringsKeys",value:function(){this.settings.valuesToStrings?this.valuesToStringsKeys=Object.keys(this.settings.valuesToStrings):this.valuesToStringsKeys=[]}},{key:"_transformOptionsValuesToDefaultTypes",value:function(){for(var e in this.settings)if(Object.prototype.hasOwnProperty.call(this.settings,e)){var t=this.settings[e];"true"!==t&&"false"!==t||(this.settings[e]="true"===t),"number"==typeof t&&(this.settings[e]=t.toString())}}},{key:"_setSettings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t&&ga.isNull(e)||this.constructor._convertOldOptionsToNewOnes(e),t)?("decimalPlacesRawValue"in e&&(this.settings.originalDecimalPlacesRawValue=e.decimalPlacesRawValue),"decimalPlaces"in e&&(this.settings.originalDecimalPlaces=e.decimalPlaces),this.constructor._calculateDecimalPlacesOnUpdate(e,this.settings),this._mergeSettings(e)):(this.settings={},this._mergeSettings(this.constructor.getDefaultConfig(),this.domElement.dataset,e,{rawValue:this.defaultRawValue}),this.caretFix=!1,this.throwInput=!0,this.allowedTagList=ca.allowedTagList,this.runOnce=!1,this.hoveredWithAlt=!1);this._transformOptionsValuesToDefaultTypes(),this._runCallbacksFoundInTheSettingsObject(),this.constructor._correctNegativePositiveSignPlacementOption(this.settings),this.constructor._correctCaretPositionOnFocusAndSelectOnFocusOptions(this.settings),this.constructor._setNegativePositiveSignPermissions(this.settings),t||(ga.isNull(e)||!e.decimalPlaces?this.settings.originalDecimalPlaces=null:this.settings.originalDecimalPlaces=e.decimalPlaces,this.settings.originalDecimalPlacesRawValue=this.settings.decimalPlacesRawValue,this.constructor._calculateDecimalPlacesOnInit(this.settings)),this._calculateVMinAndVMaxIntegerSizes(),this._setTrailingNegativeSignInfo(),this.regex={},this.constructor._cachesUsualRegularExpressions(this.settings,this.regex),this.constructor._setBrackets(this.settings),this._calculateValuesToStringsKeys(),ga.isEmptyObj(this.settings)&&ga.throwError("Unable to set the settings, those are invalid ; an empty object was given."),this.constructor.validate(this.settings,!1,e),this._keepAnOriginalSettingsCopy()}},{key:"_preparePastedText",value:function(e){return this.constructor._stripAllNonNumberCharacters(e,this.settings,!0,this.isFocused)}},{key:"_updateInternalProperties",value:function(){this.selection=ga.getElementSelection(this.domElement),this.processed=!1}},{key:"_updateEventKeyInfo",value:function(e){this.eventKey=ga.character(e)}},{key:"_saveCancellableValue",value:function(){this.savedCancellableValue=this.rawValue}},{key:"_setSelection",value:function(e,t){e=Math.max(e,0),t=Math.min(t,ga.getElementValue(this.domElement).length),this.selection={start:e,end:t,length:t-e},ga.setElementSelection(this.domElement,e,t)}},{key:"_setCaretPosition",value:function(e){this._setSelection(e,e)}},{key:"_getLeftAndRightPartAroundTheSelection",value:function(){var e=ga.getElementValue(this.domElement);return[e.substring(0,this.selection.start),e.substring(this.selection.end,e.length)]}},{key:"_getUnformattedLeftAndRightPartAroundTheSelection",value:function(){var t=Oa(this._getLeftAndRightPartAroundTheSelection(),2),n=t[0],i=t[1];if(""===n&&""===i)return["",""];var r=!0;return this.eventKey!==ca.keyName.Hyphen&&this.eventKey!==ca.keyName.Minus||0!==Number(n)||(r=!1),this.isTrailingNegative&&(ga.isNegative(i,this.settings.negativeSignCharacter)&&!ga.isNegative(n,this.settings.negativeSignCharacter)||""===i&&ga.isNegative(n,this.settings.negativeSignCharacter,!0))&&(n=n.replace(this.settings.negativeSignCharacter,""),i=i.replace(this.settings.negativeSignCharacter,""),n=n.replace("-",""),i=i.replace("-",""),n="-".concat(n)),[n=e._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,r,this.isFocused),i=e._stripAllNonNumberCharactersExceptCustomDecimalChar(i,this.settings,!1,this.isFocused)]}},{key:"_normalizeParts",value:function(t,n){var i=!0;this.eventKey!==ca.keyName.Hyphen&&this.eventKey!==ca.keyName.Minus||0!==Number(t)||(i=!1),this.isTrailingNegative&&ga.isNegative(n,this.settings.negativeSignCharacter)&&!ga.isNegative(t,this.settings.negativeSignCharacter)&&(t="-".concat(t),n=n.replace(this.settings.negativeSignCharacter,"")),t=e._stripAllNonNumberCharactersExceptCustomDecimalChar(t,this.settings,i,this.isFocused),n=e._stripAllNonNumberCharactersExceptCustomDecimalChar(n,this.settings,!1,this.isFocused),this.settings.leadingZero!==e.options.leadingZero.deny||this.eventKey!==ca.keyName.num0&&this.eventKey!==ca.keyName.numpad0||0!==Number(t)||ga.contains(t,this.settings.decimalCharacter)||""===n||(t=t.substring(0,t.length-1));var r=t+n;if(this.settings.decimalCharacter){var o=r.match(new RegExp("^".concat(this.regex.aNegRegAutoStrip,"\\").concat(this.settings.decimalCharacter)));o&&(r=(t=t.replace(o[1],o[1]+"0"))+n)}return[t,n,r]}},{key:"_setValueParts",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Oa(this._normalizeParts(t,n),3),o=r[0],a=r[1],s=r[2],l=Oa(e._checkIfInRangeWithOverrideOption(s,this.settings),2),c=l[0],u=l[1];if(c&&u){var h=e._truncateDecimalPlaces(s,this.settings,i,this.settings.decimalPlacesRawValue).replace(this.settings.decimalCharacter,".");if(""===h||h===this.settings.negativeSignCharacter){var d;switch(this.settings.emptyInputBehavior){case e.options.emptyInputBehavior.focus:case e.options.emptyInputBehavior.press:case e.options.emptyInputBehavior.always:d="";break;case e.options.emptyInputBehavior.min:d=this.settings.minimumValue;break;case e.options.emptyInputBehavior.max:d=this.settings.maximumValue;break;case e.options.emptyInputBehavior.zero:d="0";break;case e.options.emptyInputBehavior.null:d=null;break;default:d=this.settings.emptyInputBehavior}this._setRawValue(d)}else this._setRawValue(this._trimLeadingAndTrailingZeros(h));var m=e._truncateDecimalPlaces(s,this.settings,i,this.settings.decimalPlacesShownOnFocus),p=o.length;return p>m.length&&(p=m.length),1===p&&"0"===o&&this.settings.leadingZero===e.options.leadingZero.deny&&(p=""===a||"0"===o&&""!==a?1:0),this._setElementValue(m,!1),this._setCaretPosition(p),!0}return this._triggerRangeEvents(c,u),!1}},{key:"_getSignPosition",value:function(){var t;if(this.settings.currencySymbol){var n=this.settings.currencySymbol.length,i=ga.getElementValue(this.domElement);if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix){t=this.settings.negativeSignCharacter&&i&&i.charAt(0)===this.settings.negativeSignCharacter?[1,n+1]:[0,n]}else{var r=i.length;t=[r-n,r]}}else t=[1e3,-1];return t}},{key:"_expandSelectionOnSign",value:function(){var e=Oa(this._getSignPosition(),2),t=e[0],n=e[1],i=this.selection;i.start<n&&i.end>t&&((i.start<t||i.end>n)&&ga.getElementValue(this.domElement).substring(Math.max(i.start,t),Math.min(i.end,n)).match(/^\s*$/)?i.start<t?this._setSelection(i.start,t):this._setSelection(n,i.end):this._setSelection(Math.min(i.start,t),Math.max(i.end,n)))}},{key:"_checkPaste",value:function(){if(!this.formatted&&!ga.isUndefined(this.valuePartsBeforePaste)){var t=this.valuePartsBeforePaste,n=Oa(this._getLeftAndRightPartAroundTheSelection(),2),i=n[0],r=n[1];delete this.valuePartsBeforePaste;var o=i.substr(0,t[0].length)+e._stripAllNonNumberCharactersExceptCustomDecimalChar(i.substr(t[0].length),this.settings,!0,this.isFocused);this._setValueParts(o,r,!0)||(this._setElementValue(t.join(""),!1),this._setCaretPosition(t[0].length))}}},{key:"_processNonPrintableKeysAndShortcuts",value:function(e){if((e.ctrlKey||e.metaKey)&&"keyup"===e.type&&!ga.isUndefined(this.valuePartsBeforePaste)||e.shiftKey&&this.eventKey===ca.keyName.Insert)return this._checkPaste(),!1;if(this.constructor._shouldSkipEventKey(this.eventKey))return!0;if((e.ctrlKey||e.metaKey)&&this.eventKey===ca.keyName.a)return this.settings.selectNumberOnly&&(e.preventDefault(),this.selectNumber()),!0;if((e.ctrlKey||e.metaKey)&&(this.eventKey===ca.keyName.c||this.eventKey===ca.keyName.v||this.eventKey===ca.keyName.x))return"keydown"===e.type&&this._expandSelectionOnSign(),this.eventKey!==ca.keyName.v&&this.eventKey!==ca.keyName.Insert||("keydown"===e.type||"keypress"===e.type?ga.isUndefined(this.valuePartsBeforePaste)&&(this.valuePartsBeforePaste=this._getLeftAndRightPartAroundTheSelection()):this._checkPaste()),"keydown"===e.type||"keypress"===e.type||this.eventKey===ca.keyName.c;if(e.ctrlKey||e.metaKey)return!(this.eventKey===ca.keyName.Z||this.eventKey===ca.keyName.z);if(this.eventKey===ca.keyName.LeftArrow||this.eventKey===ca.keyName.RightArrow){if("keydown"===e.type&&!e.shiftKey){var t=ga.getElementValue(this.domElement);this.eventKey!==ca.keyName.LeftArrow||t.charAt(this.selection.start-2)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start-2)!==this.settings.decimalCharacter?this.eventKey!==ca.keyName.RightArrow||t.charAt(this.selection.start+1)!==this.settings.digitGroupSeparator&&t.charAt(this.selection.start+1)!==this.settings.decimalCharacter||this._setCaretPosition(this.selection.start+1):this._setCaretPosition(this.selection.start-1)}return!0}return ga.isInArray(this.eventKey,ca.keyName._directionKeys)}},{key:"_processCharacterDeletionIfTrailingNegativeSign",value:function(t){var n=Oa(t,2),i=n[0],r=n[1],o=ga.getElementValue(this.domElement),a=ga.isNegative(o,this.settings.negativeSignCharacter);if(this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix&&(this.eventKey===ca.keyName.Backspace?(this.caretFix=this.selection.start>=o.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,"-"===o.charAt(this.selection.start-1)?i=i.substring(1):this.selection.start<=o.length-this.settings.suffixText.length&&(i=i.substring(0,i.length-1))):(this.caretFix=this.selection.start>=o.indexOf(this.settings.suffixText)&&""!==this.settings.suffixText,this.selection.start>=o.indexOf(this.settings.currencySymbol)+this.settings.currencySymbol.length&&(r=r.substring(1,r.length)),ga.isNegative(i,this.settings.negativeSignCharacter)&&"-"===o.charAt(this.selection.start)&&(i=i.substring(1)))),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)switch(this.settings.negativePositiveSignPlacement){case e.options.negativePositiveSignPlacement.left:this.caretFix=this.selection.start>=o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===ca.keyName.Backspace?this.selection.start===o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length&&a?i=i.substring(1):"-"!==i&&(this.selection.start<=o.indexOf(this.settings.negativeSignCharacter)||!a)&&(i=i.substring(0,i.length-1)):("-"===i[0]&&(r=r.substring(1)),this.selection.start===o.indexOf(this.settings.negativeSignCharacter)&&a&&(i=i.substring(1)));break;case e.options.negativePositiveSignPlacement.right:this.caretFix=this.selection.start>=o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length,this.eventKey===ca.keyName.Backspace?this.selection.start===o.indexOf(this.settings.negativeSignCharacter)+this.settings.negativeSignCharacter.length?i=i.substring(1):"-"!==i&&this.selection.start<=o.indexOf(this.settings.negativeSignCharacter)-this.settings.currencySymbol.length?i=i.substring(0,i.length-1):""===i||a||(i=i.substring(0,i.length-1)):(this.caretFix=this.selection.start>=o.indexOf(this.settings.currencySymbol)&&""!==this.settings.currencySymbol,this.selection.start===o.indexOf(this.settings.negativeSignCharacter)&&(i=i.substring(1)),r=r.substring(1))}return[i,r]}},{key:"_processCharacterDeletion",value:function(){var e,t;if(this.selection.length){this._expandSelectionOnSign();var n=Oa(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);e=n[0],t=n[1]}else{var i=Oa(this._getUnformattedLeftAndRightPartAroundTheSelection(),2);if(e=i[0],t=i[1],""===e&&""===t&&(this.throwInput=!1),this.isTrailingNegative&&ga.isNegative(ga.getElementValue(this.domElement),this.settings.negativeSignCharacter)){var r=Oa(this._processCharacterDeletionIfTrailingNegativeSign([e,t]),2);e=r[0],t=r[1]}else this.eventKey===ca.keyName.Backspace?e=e.substring(0,e.length-1):t=t.substring(1,t.length)}return!!this.constructor._isWithinRangeWithOverrideOption("".concat(e).concat(t),this.settings)&&(this._setValueParts(e,t),!0)}},{key:"_isDecimalCharacterInsertionAllowed",value:function(){return String(this.settings.decimalPlacesShownOnFocus)!==String(e.options.decimalPlacesShownOnFocus.none)&&String(this.settings.decimalPlaces)!==String(e.options.decimalPlaces.none)}},{key:"_processCharacterInsertion",value:function(){var e=Oa(this._getUnformattedLeftAndRightPartAroundTheSelection(),2),t=e[0],n=e[1];if(this.eventKey!==ca.keyName.AndroidDefault&&(this.throwInput=!0),this.eventKey===this.settings.decimalCharacter||this.settings.decimalCharacterAlternative&&this.eventKey===this.settings.decimalCharacterAlternative){if(!this._isDecimalCharacterInsertionAllowed()||!this.settings.decimalCharacter)return!1;if(this.settings.alwaysAllowDecimalCharacter)t=t.replace(this.settings.decimalCharacter,""),n=n.replace(this.settings.decimalCharacter,"");else{if(ga.contains(t,this.settings.decimalCharacter))return!0;if(n.indexOf(this.settings.decimalCharacter)>0)return!0;0===n.indexOf(this.settings.decimalCharacter)&&(n=n.substr(1))}return this.settings.negativeSignCharacter&&ga.contains(n,this.settings.negativeSignCharacter)&&(t="".concat(this.settings.negativeSignCharacter).concat(t),n=n.replace(this.settings.negativeSignCharacter,"")),this._setValueParts(t+this.settings.decimalCharacter,n),!0}if(("-"===this.eventKey||"+"===this.eventKey)&&this.settings.isNegativeSignAllowed)return""===t&&ga.contains(n,"-")?n=n.replace("-",""):t=ga.isNegativeStrict(t,"-")?t.replace("-",""):"".concat(this.settings.negativeSignCharacter).concat(t),this._setValueParts(t,n),!0;var i=Number(this.eventKey);return i>=0&&i<=9?(this.settings.isNegativeSignAllowed&&""===t&&ga.contains(n,"-")&&(t="-",n=n.substring(1,n.length)),this.settings.maximumValue<=0&&this.settings.minimumValue<this.settings.maximumValue&&!ga.contains(ga.getElementValue(this.domElement),this.settings.negativeSignCharacter)&&"0"!==this.eventKey&&(t="-".concat(t)),this._setValueParts("".concat(t).concat(this.eventKey),n),!0):(this.throwInput=!1,!1)}},{key:"_formatValue",value:function(t){var n=ga.getElementValue(this.domElement),i=Oa(this._getUnformattedLeftAndRightPartAroundTheSelection(),1)[0];if((""===this.settings.digitGroupSeparator||""!==this.settings.digitGroupSeparator&&!ga.contains(n,this.settings.digitGroupSeparator))&&(""===this.settings.currencySymbol||""!==this.settings.currencySymbol&&!ga.contains(n,this.settings.currencySymbol))){var r=Oa(n.split(this.settings.decimalCharacter),1)[0],o="";ga.isNegative(r,this.settings.negativeSignCharacter)&&(o=this.settings.negativeSignCharacter,r=r.replace(this.settings.negativeSignCharacter,""),i=i.replace("-","")),""===o&&r.length>this.settings.mIntPos&&"0"===i.charAt(0)&&(i=i.slice(1)),o===this.settings.negativeSignCharacter&&r.length>this.settings.mIntNeg&&"0"===i.charAt(0)&&(i=i.slice(1)),this.isTrailingNegative||(i="".concat(o).concat(i))}var a=this.constructor._addGroupSeparators(n,this.settings,this.isFocused,this.rawValue),s=a.length;if(a){var l,c=i.split("");if((this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix||this.settings.negativePositiveSignPlacement!==e.options.negativePositiveSignPlacement.prefix&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix)&&c[0]===this.settings.negativeSignCharacter&&!this.settings.isNegativeSignAllowed&&(c.shift(),(this.eventKey===ca.keyName.Backspace||this.eventKey===ca.keyName.Delete)&&this.caretFix&&((this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.left||this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.suffix)&&(c.push(this.settings.negativeSignCharacter),this.caretFix="keydown"===t.type),this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&this.settings.negativePositiveSignPlacement===e.options.negativePositiveSignPlacement.right))){var u=this.settings.currencySymbol.split(""),h=["\\","^","$",".","|","?","*","+","(",")","["],d=[];u.forEach(function(e,t){t=u[e],ga.isInArray(t,h)?d.push("\\"+t):d.push(t)}),this.eventKey===ca.keyName.Backspace&&"-"===this.settings.negativeSignCharacter&&d.push("-"),c.push(d.join("")),this.caretFix="keydown"===t.type}for(var m=0;m<c.length;m++)c[m].match("\\d")||(c[m]="\\"+c[m]);l=this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix?new RegExp("^.*?".concat(c.join(".*?"))):new RegExp("^.*?".concat(this.settings.currencySymbol).concat(c.join(".*?")));var p=a.match(l);p?(s=p[0].length,this.settings.showPositiveSign&&(0===s&&p.input.charAt(0)===this.settings.positiveSignCharacter&&(s=1===p.input.indexOf(this.settings.currencySymbol)?this.settings.currencySymbol.length+1:1),0===s&&p.input.charAt(this.settings.currencySymbol.length)===this.settings.positiveSignCharacter&&(s=this.settings.currencySymbol.length+1)),(0===s&&a.charAt(0)!==this.settings.negativeSignCharacter||1===s&&a.charAt(0)===this.settings.negativeSignCharacter)&&this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.prefix&&(s=this.settings.currencySymbol.length+(ga.isNegativeStrict(a,this.settings.negativeSignCharacter)?1:0))):(this.settings.currencySymbol&&this.settings.currencySymbolPlacement===e.options.currencySymbolPlacement.suffix&&(s-=this.settings.currencySymbol.length),this.settings.suffixText&&(s-=this.settings.suffixText.length))}a!==n&&(this._setElementValue(a,!1),this._setCaretPosition(s)),this.formatted=!0}}])&&Ia(t.prototype,n),i&&Ia(t,i),e}();Aa.multiple=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[];if(ga.isObject(t)&&(n=t,t=null),ga.isString(e))e=Pa(document.querySelectorAll(e));else if(ga.isObject(e)){Object.prototype.hasOwnProperty.call(e,"rootElement")||ga.throwError("The object passed to the 'multiple' function is invalid ; no 'rootElement' attribute found.");var r=Pa(e.rootElement.querySelectorAll("input"));Object.prototype.hasOwnProperty.call(e,"exclude")?(Array.isArray(e.exclude)||ga.throwError("The 'exclude' array passed to the 'multiple' function is invalid."),e=ga.filterOut(r,e.exclude)):e=r}else ga.isArray(e)||ga.throwError("The given parameters to the 'multiple' function are invalid.");if(0===e.length){var o=!0;return!ga.isNull(n)&&ga.isBoolean(n.showWarnings)&&(o=n.showWarnings),ga.warning("No valid DOM elements were given hence no AutoNumeric objects were instantiated.",o),[]}var a=ga.isArray(t)&&t.length>=1,s=!1,l=!1;if(a){var c=Na(Number(t[0]));(s="number"===c&&!isNaN(Number(t[0])))||("string"===c||isNaN(c)||"object"===c)&&(l=!0)}var u,h=!1;if(ga.isArray(n)&&n.length>=1){var d=Na(n[0]);"string"!==d&&"object"!==d||(h=!0)}u=l?Aa.mergeOptions(t):h?Aa.mergeOptions(n):n;var m,p=ga.isNumber(t);return s&&(m=t.length),e.forEach(function(e,n){p?i.push(new Aa(e,t,u)):s&&n<=m?i.push(new Aa(e,t[n],u)):i.push(new Aa(e,null,u))}),i},function(){if(Array.from||(Array.from=function(e){return[].slice.call(e)}),"undefined"==typeof window||"function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),Aa.events={correctedValue:"autoNumeric:correctedValue",initialized:"autoNumeric:initialized",invalidFormula:"autoNumeric:invalidFormula",invalidValue:"autoNumeric:invalidValue",formatted:"autoNumeric:formatted",rawValueModified:"autoNumeric:rawValueModified",minRangeExceeded:"autoNumeric:minExceeded",maxRangeExceeded:"autoNumeric:maxExceeded",native:{input:"input",change:"change"},validFormula:"autoNumeric:validFormula"},Object.freeze(Aa.events.native),Object.freeze(Aa.events),Object.defineProperty(Aa,"events",{configurable:!1,writable:!1}),Aa.options={allowDecimalPadding:{always:!0,never:!1,floats:"floats"},alwaysAllowDecimalCharacter:{alwaysAllow:!0,doNotAllow:!1},caretPositionOnFocus:{start:"start",end:"end",decimalLeft:"decimalLeft",decimalRight:"decimalRight",doNoForceCaretPosition:null},createLocalList:{createList:!0,doNotCreateList:!1},currencySymbol:{none:"",currencySign:"¤",austral:"₳",australCentavo:"¢",baht:"฿",cedi:"₵",cent:"¢",colon:"₡",cruzeiro:"₢",dollar:"$",dong:"₫",drachma:"₯",dram:"​֏",european:"₠",euro:"€",florin:"ƒ",franc:"₣",guarani:"₲",hryvnia:"₴",kip:"₭",att:"ອັດ",lepton:"Λ.",lira:"₺",liraOld:"₤",lari:"₾",mark:"ℳ",mill:"₥",naira:"₦",peseta:"₧",peso:"₱",pfennig:"₰",pound:"£",real:"R$",riel:"៛",ruble:"₽",rupee:"₹",rupeeOld:"₨",shekel:"₪",shekelAlt:"ש״ח‎‎",taka:"৳",tenge:"₸",togrog:"₮",won:"₩",yen:"¥"},currencySymbolPlacement:{prefix:"p",suffix:"s"},decimalCharacter:{comma:",",dot:".",middleDot:"·",arabicDecimalSeparator:"٫",decimalSeparatorKeySymbol:"⎖"},decimalCharacterAlternative:{none:null,comma:",",dot:"."},decimalPlaces:{none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesRawValue:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnBlur:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},decimalPlacesShownOnFocus:{useDefault:null,none:0,one:1,two:2,three:3,four:4,five:5,six:6},defaultValueOverride:{doNotOverride:null},digitalGroupSpacing:{two:"2",twoScaled:"2s",three:"3",four:"4"},digitGroupSeparator:{comma:",",dot:".",normalSpace:" ",thinSpace:" ",narrowNoBreakSpace:" ",noBreakSpace:" ",noSeparator:"",apostrophe:"'",arabicThousandsSeparator:"٬",dotAbove:"˙",privateUseTwo:"’"},divisorWhenUnfocused:{none:null,percentage:100,permille:1e3,basisPoint:1e4},emptyInputBehavior:{focus:"focus",press:"press",always:"always",zero:"zero",min:"min",max:"max",null:"null"},eventBubbles:{bubbles:!0,doesNotBubble:!1},eventIsCancelable:{isCancelable:!0,isNotCancelable:!1},failOnUnknownOption:{fail:!0,ignore:!1},formatOnPageLoad:{format:!0,doNotFormat:!1},formulaMode:{enabled:!0,disabled:!1},historySize:{verySmall:5,small:10,medium:20,large:50,veryLarge:100,insane:Number.MAX_SAFE_INTEGER},invalidClass:"an-invalid",isCancellable:{cancellable:!0,notCancellable:!1},leadingZero:{allow:"allow",deny:"deny",keep:"keep"},maximumValue:{tenTrillions:"10000000000000",oneBillion:"1000000000",zero:"0"},minimumValue:{tenTrillions:"-10000000000000",oneBillion:"-1000000000",zero:"0"},modifyValueOnWheel:{modifyValue:!0,doNothing:!1},negativeBracketsTypeOnBlur:{parentheses:"(,)",brackets:"[,]",chevrons:"<,>",curlyBraces:"{,}",angleBrackets:"〈,〉",japaneseQuotationMarks:"｢,｣",halfBrackets:"⸤,⸥",whiteSquareBrackets:"⟦,⟧",quotationMarks:"‹,›",guillemets:"«,»",none:null},negativePositiveSignPlacement:{prefix:"p",suffix:"s",left:"l",right:"r",none:null},negativeSignCharacter:{hyphen:"-",minus:"−",heavyMinus:"➖",fullWidthHyphen:"－",circledMinus:"⊖",squaredMinus:"⊟",triangleMinus:"⨺",plusMinus:"±",minusPlus:"∓",dotMinus:"∸",minusTilde:"≂",not:"¬"},noEventListeners:{noEvents:!0,addEvents:!1},onInvalidPaste:{error:"error",ignore:"ignore",clamp:"clamp",truncate:"truncate",replace:"replace"},outputFormat:{string:"string",number:"number",dot:".",negativeDot:"-.",comma:",",negativeComma:"-,",dotNegative:".-",commaNegative:",-",none:null},overrideMinMaxLimits:{ceiling:"ceiling",floor:"floor",ignore:"ignore",invalid:"invalid",doNotOverride:null},positiveSignCharacter:{plus:"+",fullWidthPlus:"＋",heavyPlus:"➕",doublePlus:"⧺",triplePlus:"⧻",circledPlus:"⊕",squaredPlus:"⊞",trianglePlus:"⨹",plusMinus:"±",minusPlus:"∓",dotPlus:"∔",altHebrewPlus:"﬩",normalSpace:" ",thinSpace:" ",narrowNoBreakSpace:" ",noBreakSpace:" "},rawValueDivisor:{none:null,percentage:100,permille:1e3,basisPoint:1e4},readOnly:{readOnly:!0,readWrite:!1},roundingMethod:{halfUpSymmetric:"S",halfUpAsymmetric:"A",halfDownSymmetric:"s",halfDownAsymmetric:"a",halfEvenBankersRounding:"B",upRoundAwayFromZero:"U",downRoundTowardZero:"D",toCeilingTowardPositiveInfinity:"C",toFloorTowardNegativeInfinity:"F",toNearest05:"N05",toNearest05Alt:"CHF",upToNext05:"U05",downToNext05:"D05"},saveValueToSessionStorage:{save:!0,doNotSave:!1},selectNumberOnly:{selectNumbersOnly:!0,selectAll:!1},selectOnFocus:{select:!0,doNotSelect:!1},serializeSpaces:{plus:"+",percent:"%20"},showOnlyNumbersOnFocus:{onlyNumbers:!0,showAll:!1},showPositiveSign:{show:!0,hide:!1},showWarnings:{show:!0,hide:!1},styleRules:{none:null,positiveNegative:{positive:"autoNumeric-positive",negative:"autoNumeric-negative"},range0To100With4Steps:{ranges:[{min:0,max:25,class:"autoNumeric-red"},{min:25,max:50,class:"autoNumeric-orange"},{min:50,max:75,class:"autoNumeric-yellow"},{min:75,max:100,class:"autoNumeric-green"}]},evenOdd:{userDefined:[{callback:function(e){return e%2==0},classes:["autoNumeric-even","autoNumeric-odd"]}]},rangeSmallAndZero:{userDefined:[{callback:function(e){return e>=-1&&e<0?0:0===Number(e)?1:e>0&&e<=1?2:null},classes:["autoNumeric-small-negative","autoNumeric-zero","autoNumeric-small-positive"]}]}},suffixText:{none:"",percentage:"%",permille:"‰",basisPoint:"‱"},symbolWhenUnfocused:{none:null,percentage:"%",permille:"‰",basisPoint:"‱"},unformatOnHover:{unformat:!0,doNotUnformat:!1},unformatOnSubmit:{unformat:!0,keepCurrentValue:!1},valuesToStrings:{none:null,zeroDash:{0:"-"},oneAroundZero:{"-1":"Min",1:"Max"}},watchExternalChanges:{watch:!0,doNotWatch:!1},wheelOn:{focus:"focus",hover:"hover"},wheelStep:{progressive:"progressive"}},Fa=Aa.options,Object.getOwnPropertyNames(Fa).forEach(function(e){"valuesToStrings"===e?Object.getOwnPropertyNames(Fa.valuesToStrings).forEach(function(e){ga.isIE11()||null===Fa.valuesToStrings[e]||Object.freeze(Fa.valuesToStrings[e])}):"styleRules"!==e&&(ga.isIE11()||null===Fa[e]||Object.freeze(Fa[e]))}),Object.freeze(Fa),Object.defineProperty(Aa,"options",{configurable:!1,writable:!1}),Aa.defaultSettings={allowDecimalPadding:Aa.options.allowDecimalPadding.always,alwaysAllowDecimalCharacter:Aa.options.alwaysAllowDecimalCharacter.doNotAllow,caretPositionOnFocus:Aa.options.caretPositionOnFocus.doNoForceCaretPosition,createLocalList:Aa.options.createLocalList.createList,currencySymbol:Aa.options.currencySymbol.none,currencySymbolPlacement:Aa.options.currencySymbolPlacement.prefix,decimalCharacter:Aa.options.decimalCharacter.dot,decimalCharacterAlternative:Aa.options.decimalCharacterAlternative.none,decimalPlaces:Aa.options.decimalPlaces.two,decimalPlacesRawValue:Aa.options.decimalPlacesRawValue.useDefault,decimalPlacesShownOnBlur:Aa.options.decimalPlacesShownOnBlur.useDefault,decimalPlacesShownOnFocus:Aa.options.decimalPlacesShownOnFocus.useDefault,defaultValueOverride:Aa.options.defaultValueOverride.doNotOverride,digitalGroupSpacing:Aa.options.digitalGroupSpacing.three,digitGroupSeparator:Aa.options.digitGroupSeparator.comma,divisorWhenUnfocused:Aa.options.divisorWhenUnfocused.none,emptyInputBehavior:Aa.options.emptyInputBehavior.focus,eventBubbles:Aa.options.eventBubbles.bubbles,eventIsCancelable:Aa.options.eventIsCancelable.isCancelable,failOnUnknownOption:Aa.options.failOnUnknownOption.ignore,formatOnPageLoad:Aa.options.formatOnPageLoad.format,formulaMode:Aa.options.formulaMode.disabled,historySize:Aa.options.historySize.medium,invalidClass:Aa.options.invalidClass,isCancellable:Aa.options.isCancellable.cancellable,leadingZero:Aa.options.leadingZero.deny,maximumValue:Aa.options.maximumValue.tenTrillions,minimumValue:Aa.options.minimumValue.tenTrillions,modifyValueOnWheel:Aa.options.modifyValueOnWheel.modifyValue,negativeBracketsTypeOnBlur:Aa.options.negativeBracketsTypeOnBlur.none,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.none,negativeSignCharacter:Aa.options.negativeSignCharacter.hyphen,noEventListeners:Aa.options.noEventListeners.addEvents,onInvalidPaste:Aa.options.onInvalidPaste.error,outputFormat:Aa.options.outputFormat.none,overrideMinMaxLimits:Aa.options.overrideMinMaxLimits.doNotOverride,positiveSignCharacter:Aa.options.positiveSignCharacter.plus,rawValueDivisor:Aa.options.rawValueDivisor.none,readOnly:Aa.options.readOnly.readWrite,roundingMethod:Aa.options.roundingMethod.halfUpSymmetric,saveValueToSessionStorage:Aa.options.saveValueToSessionStorage.doNotSave,selectNumberOnly:Aa.options.selectNumberOnly.selectNumbersOnly,selectOnFocus:Aa.options.selectOnFocus.select,serializeSpaces:Aa.options.serializeSpaces.plus,showOnlyNumbersOnFocus:Aa.options.showOnlyNumbersOnFocus.showAll,showPositiveSign:Aa.options.showPositiveSign.hide,showWarnings:Aa.options.showWarnings.show,styleRules:Aa.options.styleRules.none,suffixText:Aa.options.suffixText.none,symbolWhenUnfocused:Aa.options.symbolWhenUnfocused.none,unformatOnHover:Aa.options.unformatOnHover.unformat,unformatOnSubmit:Aa.options.unformatOnSubmit.keepCurrentValue,valuesToStrings:Aa.options.valuesToStrings.none,watchExternalChanges:Aa.options.watchExternalChanges.doNotWatch,wheelOn:Aa.options.wheelOn.focus,wheelStep:Aa.options.wheelStep.progressive},Object.freeze(Aa.defaultSettings),Object.defineProperty(Aa,"defaultSettings",{configurable:!1,writable:!1});var La={digitGroupSeparator:Aa.options.digitGroupSeparator.dot,decimalCharacter:Aa.options.decimalCharacter.comma,decimalCharacterAlternative:Aa.options.decimalCharacterAlternative.dot,currencySymbol:" €",currencySymbolPlacement:Aa.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.prefix},Va={digitGroupSeparator:Aa.options.digitGroupSeparator.comma,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:Aa.options.currencySymbol.dollar,currencySymbolPlacement:Aa.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.right},Da={digitGroupSeparator:Aa.options.digitGroupSeparator.comma,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:Aa.options.currencySymbol.yen,currencySymbolPlacement:Aa.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.right};ga.cloneObject(La).formulaMode=Aa.options.formulaMode.enabled;var Ma=ga.cloneObject(La);Ma.minimumValue=0;var za=ga.cloneObject(La);za.maximumValue=0,za.negativePositiveSignPlacement=Aa.options.negativePositiveSignPlacement.prefix;var Ra=ga.cloneObject(La);Ra.digitGroupSeparator=Aa.options.digitGroupSeparator.normalSpace;var Ba=ga.cloneObject(Ra);Ba.minimumValue=0;var ja=ga.cloneObject(Ra);ja.maximumValue=0,ja.negativePositiveSignPlacement=Aa.options.negativePositiveSignPlacement.prefix;var Ua=ga.cloneObject(La);Ua.currencySymbol=Aa.options.currencySymbol.none,Ua.suffixText=" ".concat(Aa.options.suffixText.percentage),Ua.wheelStep=1e-4,Ua.rawValueDivisor=Aa.options.rawValueDivisor.percentage;var Wa=ga.cloneObject(Ua);Wa.minimumValue=0;var Ha=ga.cloneObject(Ua);Ha.maximumValue=0,Ha.negativePositiveSignPlacement=Aa.options.negativePositiveSignPlacement.prefix;var Ga=ga.cloneObject(Ua);Ga.decimalPlaces=3;var qa=ga.cloneObject(Wa);qa.decimalPlaces=3;var Ka=ga.cloneObject(Ha);Ka.decimalPlaces=3,ga.cloneObject(Va).formulaMode=Aa.options.formulaMode.enabled;var $a=ga.cloneObject(Va);$a.minimumValue=0;var Za=ga.cloneObject(Va);Za.maximumValue=0,Za.negativePositiveSignPlacement=Aa.options.negativePositiveSignPlacement.prefix;var Qa=ga.cloneObject(Za);Qa.negativeBracketsTypeOnBlur=Aa.options.negativeBracketsTypeOnBlur.parentheses;var Ya=ga.cloneObject(Va);Ya.currencySymbol=Aa.options.currencySymbol.none,Ya.suffixText=Aa.options.suffixText.percentage,Ya.wheelStep=1e-4,Ya.rawValueDivisor=Aa.options.rawValueDivisor.percentage;var Ja=ga.cloneObject(Ya);Ja.minimumValue=0;var Xa=ga.cloneObject(Ya);Xa.maximumValue=0,Xa.negativePositiveSignPlacement=Aa.options.negativePositiveSignPlacement.prefix;var es=ga.cloneObject(Ya);es.decimalPlaces=3;var ts=ga.cloneObject(Ja);ts.decimalPlaces=3;var ns=ga.cloneObject(Xa);ns.decimalPlaces=3;var is=ga.cloneObject(La);is.currencySymbol=Aa.options.currencySymbol.lira,Aa.predefinedOptions={euro:La,euroPos:Ma,euroNeg:za,euroSpace:Ra,euroSpacePos:Ba,euroSpaceNeg:ja,percentageEU2dec:Ua,percentageEU2decPos:Wa,percentageEU2decNeg:Ha,percentageEU3dec:Ga,percentageEU3decPos:qa,percentageEU3decNeg:Ka,dollar:Va,dollarPos:$a,dollarNeg:Za,dollarNegBrackets:Qa,percentageUS2dec:Ya,percentageUS2decPos:Ja,percentageUS2decNeg:Xa,percentageUS3dec:es,percentageUS3decPos:ts,percentageUS3decNeg:ns,French:La,Spanish:La,NorthAmerican:Va,British:{digitGroupSeparator:Aa.options.digitGroupSeparator.comma,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:Aa.options.currencySymbol.pound,currencySymbolPlacement:Aa.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.right},Swiss:{digitGroupSeparator:Aa.options.digitGroupSeparator.apostrophe,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:" CHF",currencySymbolPlacement:Aa.options.currencySymbolPlacement.suffix,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.prefix},Japanese:Da,Chinese:Da,Brazilian:{digitGroupSeparator:Aa.options.digitGroupSeparator.dot,decimalCharacter:Aa.options.decimalCharacter.comma,currencySymbol:Aa.options.currencySymbol.real,currencySymbolPlacement:Aa.options.currencySymbolPlacement.prefix,negativePositiveSignPlacement:Aa.options.negativePositiveSignPlacement.right},Turkish:is,dotDecimalCharCommaSeparator:{digitGroupSeparator:Aa.options.digitGroupSeparator.comma,decimalCharacter:Aa.options.decimalCharacter.dot},commaDecimalCharDotSeparator:{digitGroupSeparator:Aa.options.digitGroupSeparator.dot,decimalCharacter:Aa.options.decimalCharacter.comma,decimalCharacterAlternative:Aa.options.decimalCharacterAlternative.dot},integer:{decimalPlaces:0},integerPos:{minimumValue:Aa.options.minimumValue.zero,decimalPlaces:0},integerNeg:{maximumValue:Aa.options.maximumValue.zero,decimalPlaces:0},float:{allowDecimalPadding:Aa.options.allowDecimalPadding.never},floatPos:{allowDecimalPadding:Aa.options.allowDecimalPadding.never,minimumValue:Aa.options.minimumValue.zero,maximumValue:Aa.options.maximumValue.tenTrillions},floatNeg:{allowDecimalPadding:Aa.options.allowDecimalPadding.never,minimumValue:Aa.options.minimumValue.tenTrillions,maximumValue:Aa.options.maximumValue.zero},numeric:{digitGroupSeparator:Aa.options.digitGroupSeparator.noSeparator,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:Aa.options.currencySymbol.none},numericPos:{digitGroupSeparator:Aa.options.digitGroupSeparator.noSeparator,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:Aa.options.currencySymbol.none,minimumValue:Aa.options.minimumValue.zero,maximumValue:Aa.options.maximumValue.tenTrillions},numericNeg:{digitGroupSeparator:Aa.options.digitGroupSeparator.noSeparator,decimalCharacter:Aa.options.decimalCharacter.dot,currencySymbol:Aa.options.currencySymbol.none,minimumValue:Aa.options.minimumValue.tenTrillions,maximumValue:Aa.options.maximumValue.zero}},Object.getOwnPropertyNames(Aa.predefinedOptions).forEach(function(e){Object.freeze(Aa.predefinedOptions[e])}),Object.freeze(Aa.predefinedOptions),Object.defineProperty(Aa,"predefinedOptions",{configurable:!1,writable:!1});var rs,os,as=Object.freeze({__proto__:null,default:Aa}),ss=function(){function e(e,t){this._el=e,this._render=t,this._def_options={historySize:5,allowDecimalPadding:!1,emptyInputBehavior:"focus",delay:100,showWarnings:!1,modifyValueOnWheel:!1},this.numeric_style="dollarPos",this._valueUpdate=new o.Subject,this.numericInput=new o.EventEmitter,this._min=0,this._max=1e6,this.options=Gt(this._def_options)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){if(e!==this._lastvalue)if(!Pt()&&this._Numeric)this._Numeric.set(null!=e?e:"");else{var t="",n="";switch(this.numeric_style){case"percentageUS2decPos":n="%";break;case"dollarPos":t="$"}null!=e?this._render.setProperty(this._el.nativeElement,"value",n+Dt(e,1,t)):this._render.setProperty(this._el.nativeElement,"value","")}this._value=e,this._lastvalue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e,this._Numeric&&this._Numeric.update({minimumValue:e})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){var t=this;this._max=e,this._Numeric&&this._value&&this._value>this._max&&(this._Numeric.set(this._max),this._value=this._max,setTimeout(function(){t._valueUpdate.next(t._max)}))},enumerable:!1,configurable:!0}),e.prototype._OnInput=function(e){e.detail.newRawValue!==e.detail.oldRawValue&&this._valueUpdate.next(e.detail.newRawValue)},e.prototype.ngAfterViewInit=function(){var e=this;if(!Pt()){var t=this.options,n=Aa||as;this.numeric_style&&(t=Object.assign({},n.getPredefinedOptions()[this.numeric_style],this._def_options,t)),"percentageUS2decPos"==this.numeric_style&&(t.rawValueDivisor=null),this._Numeric=new n(this._el.nativeElement,t),this._Numeric.set(null!=this.value?this.value:""),this._Numeric.update({minimumValue:this.min||0}),this._el.nativeElement.addEventListener("autoNumeric:formatted",this._OnInput.bind(this));var i=this._valueUpdate;t.delay&&(i=this._valueUpdate.pipe(o.debounceTime(t.delay)));var r=i.subscribe({next:function(t){var n=Vt(t);if(Lt(n)){if(n>e._max)return void setTimeout(function(){n=e._max,e._lastvalue=n,e.numericInput.emit(n),e._Numeric.set(e._max)},100)}else n=t;e._lastvalue=n,e.numericInput.emit(n)},error:function(){},complete:function(){r&&r.unsubscribe()}})}},e.prototype.ngOnDestroy=function(){this._valueUpdate.complete(),this._Numeric&&(this._Numeric.remove(),this._Numeric=null),this._el.nativeElement.removeEventListener("autoNumeric:formatted",this._OnInput)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-numeric",""]],inputs:{options:["nr-options","options"],numeric_style:["nr-style","numeric_style"],value:["nr-value","value"],min:["nr-min","min"],max:["nr-max","max"]},outputs:{numericInput:"nrInput"}}),e}(),ls=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule]]}),e}(),cs=function(){function e(e){this._cd=e,this.timer=2500,this.message="something went wrong, please retry",this.close_on_change=!1,this.onhidden=new o.EventEmitter,this._show=!1,this.center=!1}return Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e?(t._show=!0,t._showtimeout&&clearTimeout(t._showtimeout),t._showtimeout=setTimeout(function(){t._show=!1,t._cd.detectChanges(),t.onhidden.emit()},t.timer)):t.close_on_change&&(t._show=!1,t._showtimeout&&clearTimeout(t._showtimeout),t.onhidden.emit()),t._cd.detectChanges()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){clearTimeout(this._showtimeout)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ChangeDetectorRef))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["error-toast"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ɵɵclassProp("error-toast-center",t.center)},inputs:{timer:"timer",message:"message",close_on_change:["close-on-change","close_on_change"],show:"show",center:"center"},outputs:{onhidden:"onhidden"},decls:2,vars:2,consts:[["hidden","true","role","alert","tabindex","-1","aria-atomic","true",1,"errortoast",3,"ng-hidden"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e&&(o.ɵɵproperty("ng-hidden",!t.show),o.ɵɵadvance(1),o.ɵɵtextInterpolate(t.message))},directives:[En],encapsulation:2}),e}(),us=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn]]}),e}(),hs=["hotelcalculator",""],ds=["airlinecalculator",""],ms=function(){function e(){this.field_value=1e3,this.api_message="Please enter a value",this._ajaxdir="Hotelrewards",this.best_program="Wyndham Rewards",this.best_program_score="70.30",this.runn_program="Hilton Honors",this.runn_program_score="67.69",this.focus_update=!1,this.focus_result=!1,this.title="Annual Amount Spent On Hotel Stays",this.live_status=""}return e.prototype._showError=function(e){var t=this;this.api_message=e,this.api_error=!1,setTimeout(function(){t.api_error=!0})},e.prototype.focusUpdate=function(){var e=this;this.focus_update=!0,document.getElementById("update_btn").focus(),setTimeout(function(){e.focus_update=!1})},e.prototype.Calculate=function(){var e=this;if(!Lt(this.field_value))return this._showError("Please enter a value"),this.api_error=!1,void setTimeout(function(){e.api_error=!0});this.input_updating=!0,this.focus_result=!1,this.live_status="Calculating",Jn({method:"GET",url:zn(),data:{action:"Calculators."+this._ajaxdir,input:this.field_value},before:function(){e.input_updating=!0},after:function(){e.input_updating=!1}}).then(function(t){if(e.live_status="",!t||t.error||!t.message)throw new Error("error");var n=t.message;e.live_status="Displaying results",setTimeout(function(){document.getElementById("js-results-focus").focus(),e.focus_result=!0,e.live_status=""},1e3),"Best"in n&&("#REF!"==n.Best.name&&(n.Best.name="N/A"),"#REF!"==n.Best.value&&(n.Best.value="N/A"),e.best_program=n.Best.name,e.best_program_score=n.Best.value),"RunnerUp"in n&&("#REF!"==n.RunnerUp.name&&(n.RunnerUp.name="N/A"),"#REF!"==n.RunnerUp.value&&(n.RunnerUp.value="N/A"),e.runn_program=n.RunnerUp.name,e.runn_program_score=n.RunnerUp.value)}).catch(function(){e.focus_result=!1,e.live_status="",e._showError("something went wrong, please retry")})},e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["div","hotelcalculator",""]],hostAttrs:[1,"ch-edu-calc"],attrs:hs,decls:27,vars:13,consts:[[1,"ch-edu-calc-container"],[1,"ch-edu-calc-header"],[1,"ch-edu-calc-label"],[1,"ch-edu-calc-input"],["type","text","aria-label","amount","ng-numeric","",1,"numeric-input",3,"nr-value","keyup.enter","nrInput"],["id","update_btn","zing-touch","","aria-label","Update",1,"btn","purple","no-decoration","with-loader",3,"disabled","onTap"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"bt-text"],[3,"center","show","message"],["role","table","aria-label","Results",1,"ch-edu-calc-body"],["role","row",1,"ch-edu-calc-box"],["role","cell"],["id","js-results-focus",1,"ch-edu-calc-label"],[1,"ch-edu-calc-title",3,"ng-context"],[1,"ch-edu-calc-content"],[3,"ng-aria-live"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0),o.ɵɵelementStart(1,"div",1),o.ɵɵelementStart(2,"h3",2),o.ɵɵtext(3),o.ɵɵelementEnd(),o.ɵɵelementStart(4,"div",3),o.ɵɵelementStart(5,"input",4),o.ɵɵlistener("keyup.enter",function(){return t.focusUpdate()})("nrInput",function(e){return t.field_value=e}),o.ɵɵelementEnd(),o.ɵɵelementStart(6,"button",5),o.ɵɵlistener("onTap",function(){return t.Calculate()}),o.ɵɵelement(7,"span",6),o.ɵɵelementStart(8,"span",7),o.ɵɵtext(9,"Update"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelement(10,"error-toast",8),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(11,"div",9),o.ɵɵelementStart(12,"div",10),o.ɵɵelementStart(13,"div",11),o.ɵɵelementStart(14,"p",12),o.ɵɵtext(15,"Best Program"),o.ɵɵelementEnd(),o.ɵɵelement(16,"p",13),o.ɵɵelementStart(17,"p",14),o.ɵɵtext(18),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(19,"div",10),o.ɵɵelementStart(20,"div",11),o.ɵɵelementStart(21,"p",2),o.ɵɵtext(22,"Runner Up"),o.ɵɵelementEnd(),o.ɵɵelement(23,"p",13),o.ɵɵelementStart(24,"p",14),o.ɵɵtext(25),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelement(26,"div",15)),2&e&&(o.ɵɵadvance(3),o.ɵɵtextInterpolate(t.title),o.ɵɵadvance(2),o.ɵɵproperty("nr-value",t.field_value),o.ɵɵadvance(1),o.ɵɵclassProp("loadactive",t.input_updating),o.ɵɵproperty("disabled",t.input_updating),o.ɵɵadvance(4),o.ɵɵproperty("center",!0)("show",t.api_error)("message",t.api_message),o.ɵɵadvance(6),o.ɵɵproperty("ng-context",t.best_program),o.ɵɵadvance(2),o.ɵɵtextInterpolate1("WalletHub Score: ",t.best_program_score,""),o.ɵɵadvance(5),o.ɵɵproperty("ng-context",t.runn_program),o.ɵɵadvance(2),o.ɵɵtextInterpolate1("WalletHub Score: ",t.runn_program_score,""),o.ɵɵadvance(1),o.ɵɵproperty("ng-aria-live",t.live_status))},directives:[ss,hn,cs,Pn,Cn],encapsulation:2}),e}(),ps=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ajaxdir="Airlines",t.title="Annual Amount Spent On Airline Travel",t.best_program="United Airlines",t.best_program_score="64.93",t.runn_program="Alaska Airlines",t.runn_program_score="57.32",t}var n;return __extends(t,e),t.ɵfac=function(e){return(n||(n=o.ɵɵgetInheritedFactory(t)))(e||t)},t.ɵcmp=o.ɵɵdefineComponent({type:t,selectors:[["div","airlinecalculator",""]],hostAttrs:[1,"ch-edu-calc","airline"],features:[o.ɵɵInheritDefinitionFeature],attrs:ds,decls:27,vars:13,consts:[[1,"ch-edu-calc-container"],[1,"ch-edu-calc-header"],[1,"ch-edu-calc-label"],[1,"ch-edu-calc-input"],["type","text","aria-label","amount","ng-numeric","",1,"numeric-input",3,"nr-value","keyup.enter","nrInput"],["id","update_btn","zing-touch","","aria-label","Update",1,"btn","purple","no-decoration","with-loader",3,"disabled","onTap"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"bt-text"],[3,"center","show","message"],["role","table","aria-label","Results",1,"ch-edu-calc-body"],["role","row",1,"ch-edu-calc-box"],["role","cell"],["id","js-results-focus",1,"ch-edu-calc-label"],[1,"ch-edu-calc-title",3,"ng-context"],[1,"ch-edu-calc-content"],[3,"ng-aria-live"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"div",0),o.ɵɵelementStart(1,"div",1),o.ɵɵelementStart(2,"h3",2),o.ɵɵtext(3),o.ɵɵelementEnd(),o.ɵɵelementStart(4,"div",3),o.ɵɵelementStart(5,"input",4),o.ɵɵlistener("keyup.enter",function(){return t.focusUpdate()})("nrInput",function(e){return t.field_value=e}),o.ɵɵelementEnd(),o.ɵɵelementStart(6,"button",5),o.ɵɵlistener("onTap",function(){return t.Calculate()}),o.ɵɵelement(7,"span",6),o.ɵɵelementStart(8,"span",7),o.ɵɵtext(9,"Update"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelement(10,"error-toast",8),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(11,"div",9),o.ɵɵelementStart(12,"div",10),o.ɵɵelementStart(13,"div",11),o.ɵɵelementStart(14,"p",12),o.ɵɵtext(15,"Best Program"),o.ɵɵelementEnd(),o.ɵɵelement(16,"p",13),o.ɵɵelementStart(17,"p",14),o.ɵɵtext(18),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(19,"div",10),o.ɵɵelementStart(20,"div",11),o.ɵɵelementStart(21,"p",2),o.ɵɵtext(22,"Runner Up"),o.ɵɵelementEnd(),o.ɵɵelement(23,"p",13),o.ɵɵelementStart(24,"p",14),o.ɵɵtext(25),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelement(26,"div",15)),2&e&&(o.ɵɵadvance(3),o.ɵɵtextInterpolate(t.title),o.ɵɵadvance(2),o.ɵɵproperty("nr-value",t.field_value),o.ɵɵadvance(1),o.ɵɵclassProp("loadactive",t.input_updating),o.ɵɵproperty("disabled",t.input_updating),o.ɵɵadvance(4),o.ɵɵproperty("center",!0)("show",t.api_error)("message",t.api_message),o.ɵɵadvance(6),o.ɵɵproperty("ng-context",t.best_program),o.ɵɵadvance(2),o.ɵɵtextInterpolate1("WalletHub Score: ",t.best_program_score,""),o.ɵɵadvance(5),o.ɵɵproperty("ng-context",t.runn_program),o.ɵɵadvance(2),o.ɵɵtextInterpolate1("WalletHub Score: ",t.runn_program_score,""),o.ɵɵadvance(1),o.ɵɵproperty("ng-aria-live",t.live_status))},directives:[ss,hn,cs,Pn,Cn],encapsulation:2}),t}(ms),fs=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn,ls,us]]}),e}(),gs=e("systemjs"),vs=function(){function e(e,t,n,i,r,o){var a=this;if(this._AppRef=e,this._Injector=t,this._compiler=n,this._renderFactory=i,this._scrollservice=r,this._data=o,this._cleanups=[],this._ToDisclosure=this._ToDisclosure.bind(this),!Pt()){var s=document.querySelector(".edu-auth-avatar img");s&&this._cleanups.push(Ho(s,this._renderFactory));var l=document.querySelectorAll(".edu-art-content-table img[class*=wp-image-]");if(l&&l.length>0)for(var c=0,u=l.length;c<u;c++){var h=(m=l[c]).parentNode;h&&h.classList&&h.classList.contains("wp-image-defer")?this._cleanups.push(Go(m,this._renderFactory)):this._cleanups.push(Ho(m,this._renderFactory))}var d=document.querySelectorAll(".cardhub-edu-img,.cc-section .shortcode-img");if(d&&d.length>0)for(c=0,u=d.length;c<u;c++){var m=d[c];this._cleanups.push(Go(m,this._renderFactory))}var p=document.querySelectorAll('a[href^="#"]');if(p&&p.length>0){var f=document.querySelectorAll("h2");this._JumpTo=this._JumpTo.bind(this);var g=function(e,t){var n=p[e],i=n.getAttribute("href").substring(1);n.setAttribute("data-jump-to",i),n.addEventListener("click",v._JumpTo),v._cleanups.push(function(){n.removeEventListener("click",a._JumpTo)});for(var r=0,o=f.length;r<o;r++){var s=f[r];if(s.dataset.name==i||Nt(s.textContent.toLowerCase())==Nt(n.textContent.toLowerCase())){s.dataset.name=i,s.setAttribute("tabindex","0");break}}},v=this;for(c=0,u=p.length;c<u;c++)g(c)}if(location.hash&&location.hash.indexOf("expert=")<0){var y=location.hash.replace("#",""),b=document.querySelector(".edu-art-content-table a[name="+y+"]");b&&this._scrollservice.scrollTo({target:b,timing:0})}var _=document.querySelector(".edu-article .edu-art-tnav-disc");_&&(_.addEventListener("click",this._ToDisclosure),this._cleanups.push(function(){_.removeEventListener("click",a._ToDisclosure)}));var S=document.querySelectorAll(".cardhub-edu-spnsrd.link");if(S&&S.length){var w=function(e,t){var n=S[e];n.addEventListener("click",E._ToDisclosure),E._cleanups.push(function(){n.removeEventListener("click",a._ToDisclosure)})},E=this;for(c=0,u=S.length;c<u;c++)w(c)}var k=document.querySelectorAll(".cc-section");if(k&&k.length>0){var x=function(e,t){var n=k[e],i=k[e].querySelector(".top-content a.ad");i&&(i.addEventListener("click",P._ToDisclosure),P._cleanups.push(function(){i.removeEventListener("click",a._ToDisclosure)}));var r=new Ko(n);P._cleanups.push(r.Destroy)},P=this;for(c=0,u=k.length;c<u;c++)x(c)}var O=document.querySelectorAll(".embedholder"),T={};if(O&&O.length>0){var C=function(e,t){var n=O[e],i=n.querySelector("a"),r=n.querySelector("textarea");n.addEventListener("click",q),i.addEventListener("click",U),r.addEventListener("focus",W),r.addEventListener("mouseleave",H),r.addEventListener("mouseenter",G),r.setAttribute("readonly","readonly"),N._cleanups.push(function(){r.removeEventListener("focus",W),r.removeEventListener("mouseleave",H),i.removeEventListener("click",U),r.removeEventListener("mouseenter",G),n.removeEventListener("click",q)})},N=this;for(c=0,u=O.length;c<u;c++)C(c);window.addEventListener("click",K),this._cleanups.push(function(){window.removeEventListener("click",K)})}var I=document.querySelector(".edu-art-social-buttons .button-reddit");I&&(I.innerHTML='<script type="text/javascript" src="https://www.reddit.com/static/button/button2.js"><\/script>');var F=document.querySelectorAll('div[data-calculator="hotel"]');for(c=0,u=F.length;c<u;c++){var A=F[c],L=Zt();A.setAttribute("calc-id",L),Mo(this._AppRef,this._Injector,this._compiler,fs,ms,'div[calc-id="'+L+'"]').then(function(e){a._cleanups.push(e.destroy)})}var V=document.querySelectorAll('div[data-calculator="airline"]');for(c=0,u=V.length;c<u;c++){A=V[c],L=Zt();A.setAttribute("calc-id",L),Mo(this._AppRef,this._Injector,this._compiler,fs,ps,'div[calc-id="'+L+'"]').then(function(e){a._cleanups.push(e.destroy)})}var D=document.querySelectorAll(".edu-art-pag-link");for(c=0,u=D.length;c<u;c++){for(var M=[],z=0,R=(A=D[c]).childNodes.length;z<R;z++){var B=A.childNodes[z],j="";1==B.nodeType?B.hasAttribute("aria-label")?(j=B.getAttribute("aria-label"),B.removeAttribute("aria-label")):j=B.textContent:3==B.nodeType&&(j=B.wholeText),(j=Nt(j))&&M.push(j)}A.setAttribute("aria-label",M.join("."))}Promise.all([gs.import("shortcode-js"),gs.import("css:/shortcodes.css")]).then(function(e){var t=e[0],n=a._scrollservice.overwrite_to_body?window:a._scrollservice.element;t.ClearPrsWidgets(),t.SetPrsWidgets(n,Ln()),t.ClearBoxes(),t.SetBoxes(n,Ln()),a._cleanups.push(function(){t.ClearBoxes(),t.ClearPrsWidgets()})},function(){})}function U(e){var t=this.parentNode.querySelector(".embedcode");t.style.display=t.style.display&&"block"==t.style.display?"none":"block",t.blur(),e.preventDefault(),e.stopPropagation()}function W(){this.select()}function H(){var e=this,t=e.parentNode.parentNode.getAttribute("id");T[t]=window.setTimeout(function(){e.parentNode.style.display="none"},1500)}function G(){var e=this.parentNode.parentNode.getAttribute("id");e in T&&window.clearTimeout(T[e])}function q(e){e.stopPropagation()}function K(){for(var e=0,t=O.length;e<t;e++){O[e].querySelector(".embedcode").style.display="none"}}}return e.prototype._JumpTo=function(e,t){void 0===t&&(t=!1);for(var n=e.target;n&&"a"!=n.tagName.toLowerCase()&&"body"!=n.tagName.toLowerCase();)n=n.parentNode;var i=n.getAttribute("data-jump-to");if(i){var r=document.querySelector(".edu-art-content-table a[name="+i+"]");if(r){var o=document.querySelector('h2[data-name="'+i+'"]');o&&(o.focus(),setTimeout(function(){o.focus()})),this._scrollservice.scrollTo({target:r,timing:t?0:300})}e.preventDefault(),e.stopPropagation()}},e.prototype._ToDisclosure=function(e){e.preventDefault(),e.stopPropagation();var t=document.querySelector(".edu-page-disclaimer");if(t){this._scrollservice.scrollTo({target:t});var n=document.querySelector(".ed-disc-ad");n&&(n.focus(),n.classList.add("ed-disc-yellow"),setTimeout(function(){n.classList.remove("ed-disc-yellow")},3500))}},e.prototype._Expand=function(){if(!(window.innerWidth>1003)){var e=this.parentNode;e.classList.toggle("edu-sidebar-expand"),e.classList.contains("edu-sidebar-expand")?this.setAttribute("aria-expanded","true"):this.setAttribute("aria-expanded","false")}},e.prototype.InitiateSharing=function(){var e=this;gs.import("components:/bootstrap/edu/edu-share-ui-component").then(function(t){document.querySelector("article .edu-art-main .social-share-box")&&Mo(e._AppRef,e._Injector,e._compiler,t.NgEduShareUIModule,t.EduShareBox,"article .edu-art-main .social-share-box",{title:e._data.title,template:"v2"!=e._data.template?"v1":"v2"}).then(function(t){e._cleanups.push(t.destroy)}),document.querySelector("article .edu-art-sidebar .social-share-box")&&Mo(e._AppRef,e._Injector,e._compiler,t.NgEduShareUIModule,t.EduShareBox,"article .edu-art-sidebar .social-share-box",{title:e._data.title,permanent_sticky:!0,no_shares:!0}).then(function(t){e._cleanups.push(t.destroy)})})},e.prototype.InitiateHelpful=function(){var e=this;gs.import("modules:/Pages/edu/edu-helpful").then(function(t){Mo(e._AppRef,e._Injector,e._compiler,t.NgEduHepfulModule,t.EduHepful,"div.helpful-article").then(function(t){e._cleanups.push(t.destroy)})})},e.prototype.InitiateQnA=function(){var e=this;return this._qnaModule=this._qnaModule||Promise.all([gs.import("components:/qna-comp"),gs.import("components:/bootstrap/route-ui-module"),gs.import("css:/components/qna-comp.css")]).then(function(t){var n=t[0],i=t[1];return e._compiler.compileModuleAsync(i.RouterModule).then(function(t){var r=t.create(e._Injector);return e._cleanups.push(r.destroy),Mo(r.injector.get(o.ApplicationRef),r.injector,e._compiler,n.QnAModule,n.QnAComp,"section#qna-box",{layout_type:1,toggleSchema:!0,ques_data:e._data.qnadata,page_query:"p",ques_referer:e._data.qnauri,section_title:e._data.qna_header}).then(function(t){e._cleanups.push(t.destroy)}),{routeRef:r,ActivatedRoute:i.ActivatedRoute}})}),this._qnaModule},e.prototype.InitiateExperts=function(e){var t=this,n=document.querySelector("div[id=experts-gallery]");return n?(this._expertsModule=this._expertsModule||Promise.all([gs.import("components:/bootstrap/experts-gallery-ui-component"),gs.import("css:/components/experts-gallery.css")]).then(function(i){var r=i[0];return t.InitiateQnA().then(function(i){return new Promise(function(o,a){var s=i.routeRef.injector.get(i.ActivatedRoute);r.CompileExpertsGallery(t._AppRef,t._Injector,t._compiler,s,{data:t._data.experts,hashname:e}).then(function(i){try{e?(t._scrollservice.scrollTo({target:n,timing:0}).then(function(){en(function(){o(null)})}),t._cleanups.push(function(){i.destroy()})):o(null)}catch(e){o(null)}}).catch(a),setTimeout(function(){o(null)},1e3)})})}),this._expertsModule):Promise.resolve(null)},e.prototype.InitiateExpertsDev=function(e){var t=this;document.querySelector("div[id=experts-gallery]")&&Promise.all([gs.import("components:/bootstrap/experts-gallery-ui-component"),gs.import("css:/components/experts-gallery.css")]).then(function(n){n[0].CompileExpertsGallery(t._AppRef,t._Injector,t._compiler,e,{data:t._data.experts,expert_offset:-100,back_bt_text:(t._data.experts||{}).back_link_text,more_btn_txt:(t._data.experts||{}).more_text,max_experts:6}).then(function(e){t._cleanups.push(function(){e.destroy()})})})},e.prototype.InitiateTableSorting=function(){var e=document.querySelectorAll(".cardhub-edu-table.sortable");if(e&&e.length>0)for(var t=0,n=e.length;t<n;t++){var i=e[t],r=i.querySelectorAll("thead th");if(r&&r.length>0)for(var o=0,a=r.length;o<a;o++){var s=r[o];if(s.classList.contains("rank-numeric")){s.setAttribute("data-sort-method","number");var l=s.querySelector("p");l?l.innerHTML+=' <i class="rank-arrow"></i>':s.innerHTML+=' <i class="rank-arrow"></i>'}else s.setAttribute("data-sort-method","none")}new $o(i,{})}},e.prototype.InitiateTableSearch=function(){var e=this;Mt(this._data.tablesearchdata)&&zt(this._data.tablesearchdata,function(t){var n=t.id;Mo(e._AppRef,e._Injector,e._compiler,oa,ra,'[data-ts-id="'+n+'"]',{items:t.list,index:t.index}).then(function(t){e._cleanups.push(t.destroy)}).catch(function(e){})})},e.prototype.InitiateTableSearchNode=function(){},e.prototype.InitiateGeoCharts=function(){var e=this;if(this._data.charts){var t=this,n=new Qo(this._scrollservice,.2,1);this._cleanups.push(function(){n.Destroy()});var i=document.querySelectorAll(".chart-container"),r=!1;if(i&&i.length>0)for(var o=function(o,a){n.Observe(i[o]).subscribe(function(){r||(r=!0,gs.import("npm:google-charts/dist/googleCharts.js").then(function(e){var t=e.GoogleCharts;return new Promise(function(e){t.load(function(){e(t.api)})})}).then(function(n){n.charts.load("current",{packages:["corechart"].concat(e._data.charts.packages)}),n.charts.setOnLoadCallback(function(){Ut({geo:"GeoChart",pie:"PieChart",column:"ColumnChart",line:"LineChart",bubble:"BubbleChart"},function(i,r){if(!t._data.charts[r]||t._data.charts[r].length<1)return!0;for(var o=function(o,a){var s=t._data.charts[r][o];if(!("id"in s&&"data"in s&&"config"in s))return"continue";if("ToolTip"==s.data[0][s.data[0].length-1]&&(s.data[0][s.data[0].length-1]={role:"tooltip",p:{html:!0}}),"line"==r&&2==s.data[0].length){s.data[0].push({type:"string",role:"style"});for(var l=1;l<s.data.length;l++)s.data[l].push("point {stroke-width: 2;  stroke-color: #fff; }")}var c=n.visualization.arrayToDataTable(s.data),u=document.querySelector("#"+s.id),h=new n.visualization[i](u);if(["column","line","geo"].indexOf(r)>-1&&"fmt"in s.config){var d=s.data[0].length;if("pattern"in s.config.fmt&&Mt(s.config.fmt.pattern)&&s.config.fmt.pattern.length==d)for(var m=0;m<d;m++)new n.visualization.NumberFormat({pattern:s.config.fmt.pattern[m]}).format(c,m);else for("geo"==r&&(s.config.firstColStr=!0),m=s.config.firstColStr?2:1;m<=d;m++)new n.visualization.NumberFormat(s.config.fmt).format(c,m-1)}"geo"==r&&s.data[0].length<3&&(s.config.hasOwnProperty("displayMode")?s.config.hasOwnProperty("displayMode")&&s.config.displayMode:(s.config.colors=["#2CDBDB","#fff"],document.querySelector("head").innerHTML+="<style>#"+s.id+" path{ stroke:#555; }</style>")),delete s.config.fmt,s.config.chartArea=s.config.chartArea||{},s.config.chartArea.width="100%",s.config.chartArea.bottom="bottom"in s.config.chartArea?s.config.chartArea.bottom:200,"column"!=r&&"line"!=r&&"bubble"!=r||(s.config.explorer={actions:["dragToZoom","rightClickToReset"],axis:"horizontal",keepInBounds:!0,maxZoomIn:4}),!s.config.legend||s.config.legend.position&&"right"!=s.config.legend.position||(s.config.legend.position="bottom");var p=u.parentNode,f=p.querySelector(".progress-indicator");try{f&&p.removeChild(f)}catch(e){}var g=s.config.width,v=s.config.height,y=function(){var e=u.getBoundingClientRect();Kt(g)||(s.config.width=e.width),(Kt(v)||"auto"==v)&&("geo"!=r&&"auto"!==v?s.config.height=Math.max(e.height,500):delete s.config.height),h.draw(c,s.config)};window.addEventListener("resize",y),setTimeout(function(){en(y)},Math.floor(31*Math.random())+30),e._cleanups.push(function(){window.removeEventListener("resize",y),h.clearChart()}),"column"==r||"line"==r||"bubble"==r?n.visualization.events.addListener(h,"ready",function(){var e=document.createElement("div");e.classList.add("left-border");var t=document.createElement("div");t.classList.add("right-border"),u.appendChild(e),u.appendChild(t),u.classList.add("ng-enter-element")}):n.visualization.events.addListener(h,"ready",function(){u.classList.add("ng-enter-element")})},a=0,s=t._data.charts[r].length;a<s;a++)o(a)})})}).catch(function(e){Or().then(function(t){t.captureException(e)})})),n.Unobserve(i[o])})},a=0,s=i.length;a<s;a++)o(a)}},e.prototype.InitiateMobileRelated=function(){var e=this,t=document.querySelectorAll(".edu-art-cross-links .edu-sd-exp");if(t)for(var n=function(n,r){var o=t[n].querySelector(".edu-art-sidebar-title");o.addEventListener("click",i._Expand),i._cleanups.push(function(){o.removeEventListener("click",e._Expand)})},i=this,r=0,o=t.length;r<o;r++)n(r)},e.prototype.InitiateFreeCreditModal=function(){var e=this;if(!Qn.get("mw_signon")||!ni.get("has-sess")){var t=document.createElement("free-credit");document.body.appendChild(t),Mo(this._AppRef,this._Injector,this._compiler,sa,aa,"free-credit").then(function(t){e._cleanups.push(t.destroy)})}},e.prototype.InitiateCIWidget=function(){var e,t,n,i=this;(e=this._AppRef,t=this._Injector,n=this._compiler,document.querySelectorAll("div.car-insurance-widget").length>0?qo.import("components:/ci-shortcode").then(function(i){for(var r=[],o=document.querySelectorAll("div.car-insurance-widget"),a=0,s=o.length;a<s;a++){var l=o[a],c=Zt();l.setAttribute("ci-id","ci-id-"+c);var u=l.querySelector(".ciw-head")?l.querySelector(".ciw-head").innerHTML:"",h=Mo(e,t,n,i.NGCIShortCodeModule,i.CIShortCode,'div[ci-id="ci-id-'+c+'"]',{data:u}).then(function(e){return e.Component.changeDetectorRef.detectChanges(),e});r.push(h)}return Promise.all(r).then(function(e){return{destroy:function(){e.forEach(function(e){e.destroy()})}}})}):Promise.resolve(null)).then(function(e){e&&i._cleanups.push(e.destroy)})},e.prototype.InitiateLazyNgModules=function(){var e=this;return this._lazyNgModules=this._lazyNgModules||Promise.all([gs.import("components:/bootstrap/edu/edu-share-ui-component"),gs.import("components:/bootstrap/experts-gallery-ui-component"),gs.import("css:/components/experts-gallery.css"),gs.import("components:/qna-comp"),gs.import("components:/bootstrap/route-ui-module"),gs.import("css:/components/qna-comp.css")]).then(function(){e.InitiateTableSearch(),document.querySelector("div[id=experts-gallery]")&&e._data.experts?e.InitiateExperts():e.InitiateQnA()}),this._lazyNgModules},e.prototype.Destroy=function(){this._cleanups.forEach(function(e){e()})},e}(),ys=function(){function e(e,t,n,i,r,o){this.zone=e,this.scroll=t,this.renderFactory=n,this.compiler=i,this.injector=r,this.appref=o}return e.ɵfac=function(t){return new(t||e)(o.ɵɵinject(o.NgZone),o.ɵɵinject(gn),o.ɵɵinject(o.RendererFactory2),o.ɵɵinject(o.Compiler),o.ɵɵinject(o.Injector),o.ɵɵinject(o.ApplicationRef))},e.ɵmod=o.ɵɵdefineNgModule({type:e,bootstrap:[kr]}),e.ɵinj=o.ɵɵdefineInjector({providers:[{provide:o.ErrorHandler,useClass:Nr}],imports:[[o.BrowserModule,o.CommonModule,xr,Nn.forRoot()]]}),e}();(Pt()?nn.setEnv(global.ISPROD?"PROD":"DEV"):nn.setEnv(window.isDevEv||Tt()?"DEV":window.isDEVSTAGE?"STAGE":"PROD"),Ct()?(rs="cfstatic.efdevhub.info",os="cfstatic.efdevhub.info"):(rs="cdn.wallethub.com",os="cdn.wallethub.com"),ri.setKey("cdn_url",Pt()?"https://"+rs+"/":window.CDN_URL||"https://"+rs+"/"),ri.setKey("cdn_static_url",Pt()?"https://"+os+"/":window.CDN_STATIC_URL||"https://"+os+"/"),ri.setKey("fb_app_id",Ct()?"772865386137702":"171743162916597"),(!Et()&&!Tt()||Pt())&&o.enableProdMode(),ni.group("mw"),ri.pageLoadPopulate(),Fr(),Lr).then(function(){var e=[],t=[];o.platformBrowser().bootstrapModule(ys).then(function(n){var i=ri.group("edu-page"),r=n.instance,a=new Ro(r.renderFactory,r.zone,r.scroll);e.push(a.Destroy);var s=new vs(r.appref,r.injector,r.compiler,r.renderFactory,r.scroll,i);e.push(s.Destroy),window.addEventListener("load",function(){var n=!1,a=location.hash;if(!n&&a&&a.indexOf("expert=")>-1&&i.experts){n=!0;var l=a.split("expert=");s.InitiateExperts(l[l.length-1]).then(function(){n=!1}).catch(function(e){n=!1})}en(function(){s.InitiateTableSorting(),s.InitiateGeoCharts(),s.InitiateMobileRelated(),s.InitiateHelpful(),s.InitiateSharing(),s.InitiateCIWidget();var n=r.scroll.onScroll.pipe(o.skip(1)).subscribe(function(t){var i,o,a;s.InitiateLazyNgModules(),(i=r.appref,o=r.injector,a=r.compiler,zo.import("components:/site-footer-web").then(function(e){return Mo(i,o,a,e.FooterModule,e.PageFooter,"footer[main-footer]").then(function(e){return document.querySelector("app-errors")?Mo(i,o,a,Do,Vo,"app-errors").then(function(t){return en(function(){jn.emit("$shortcodes:set")}),function(){t.destroy(),e.destroy()}}):e.destroy})})).then(function(t){e.push(t)}),setTimeout(function(){n.unsubscribe()})});t.push(n),s.InitiateFreeCreditModal()})}),n.onDestroy(function(){a.Destroy(),zt(t,function(e){e.unsubscribe()}),zt(e,function(e){e()})})})});var bs=function(){function e(e){this.onSubmit=new o.EventEmitter,this._allow_submit=!1,this._form=e.nativeElement,this.submit=this.submit.bind(this)}return e.prototype.submit=function(e){return this.onSubmit.emit(e),this._allow_submit||e.preventDefault(),this._allow_submit},e.prototype.ngAfterViewInit=function(){this._form&&!Pt()&&this._form.addEventListener("submit",this.submit,!1)},e.prototype.ngOnDestroy=function(){this._form&&!Pt()&&this._form.removeEventListener("submit",this.submit)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["form","form-submit",""]],inputs:{_allow_submit:["allow-submit","_allow_submit"]},outputs:{onSubmit:"onSubmit"}}),e}(),_s=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn]]}),e}(),Ss=["class","helpful-article"];function ws(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementContainerStart(0),o.ɵɵelement(1,"p",4),o.ɵɵelementStart(2,"div",5),o.ɵɵelementStart(3,"button",6),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().Yes()}),o.ɵɵelement(4,"i",7),o.ɵɵelementStart(5,"span",8),o.ɵɵtext(6,"Yes"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(7,"button",9),o.ɵɵlistener("click",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().No()}),o.ɵɵtext(8,"No"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementContainerEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵproperty("innerHTML",i.headline,o.ɵɵsanitizeHtml),o.ɵɵadvance(2),o.ɵɵclassProp("loadactive",i.saving)}}function Es(e,t){1&e&&(o.ɵɵelementStart(0,"p",10),o.ɵɵtext(1,"Awesome! Thanks for your feedback."),o.ɵɵelementEnd()),2&e&&o.ɵɵproperty("focus-when",!0)}function ks(e,t){if(1&e&&(o.ɵɵelementStart(0,"p",11),o.ɵɵtext(1,"Thank you for your feedback."),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵproperty("focus-when",n.after_submit)}}function xs(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"form",12),o.ɵɵlistener("onSubmit",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().SubmitReason()}),o.ɵɵelementStart(1,"p",11),o.ɵɵtext(2,"Sorry! How can we improve it?"),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"textarea",13),o.ɵɵlistener("input",function(e){return o.ɵɵrestoreView(n),o.ɵɵnextContext().reason=e.target.value}),o.ɵɵelementEnd(),o.ɵɵelementStart(4,"div",14),o.ɵɵelementStart(5,"button",15),o.ɵɵelement(6,"i",7),o.ɵɵelementStart(7,"span",8),o.ɵɵtext(8,"Submit"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelement(9,"error-toast",16),o.ɵɵelementEnd(),o.ɵɵelementEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵproperty("focus-when",!0),o.ɵɵadvance(2),o.ɵɵproperty("value",i.reason),o.ɵɵadvance(2),o.ɵɵclassProp("loadactive",i.saving),o.ɵɵadvance(4),o.ɵɵproperty("message",i.errormsg)("show",i.show_submit_error)("close-on-change",!0)}}var Ps=function(){function e(e){this._loc=e,this.submited=!1,this.headline="Was this article helpful?",this.type="EDU",this.reason="",this.live_status="",this.after_submit=!1}return e.prototype.ngOnInit=function(){this._url=(Ln()+this._loc.path()).replace("https://",""),this.voted="1"==Qn.get("h"+this._url)},e.prototype.Yes=function(){var e=this,t="h"+this._url;Qn.set(t,"1",7),Jn({url:zn(),data:{action:"send_edu_feedback",postId:this.id,url:this._url,helpful:!0,type:this.type},before:function(){e.saving=!0},after:function(){e.saving=!1},silent:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"}}),this.submited=!0},e.prototype.No=function(){this.unhelpful=!0},e.prototype._ShowReqError=function(){var e=this;this.show_submit_error&&(this.show_submit_error=!1),setTimeout(function(){e.show_submit_error=!0})},e.prototype._ThrowReqError=function(e){var t=this;void 0===e&&(e="We encountered an error. Please retry"),this.errormsg?this.errormsg=null:this.errormsg=e,setTimeout(function(){t.errormsg=e},100),this._ShowReqError()},e.prototype.SubmitReason=function(){var e=this;if(!this.saving){var t,n=ii(this.reason||"");(!n||n.length<10)&&(t="Content must have 30 characters"),t?this._ThrowReqError(t):Jn({url:zn(),data:{action:"send_edu_feedback",postId:this.id,url:this._url,helpful:!1,feedback:n,type:this.type},before:function(){e.saving=!0},after:function(){e.saving=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(t){if(t.error)e._ThrowReqError();else{e.voted=!0,e.unhelpful=!1,e.after_submit=!0;var n="h"+e._url;Qn.set(n,"0",7)}}).catch(function(){e._ThrowReqError()})}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.Location))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["div",8,"helpful-article"]],hostAttrs:[1,"text-select","helpful-article"],inputs:{id:"id",headline:"headline",type:"type"},attrs:Ss,decls:4,vars:4,consts:[[4,"ngIf"],["class","ng-enter-element helpful-head","ng-focus","","tabindex","0",3,"focus-when",4,"ngIf"],["class","helpful-head","ng-focus","","tabindex","0",3,"focus-when",4,"ngIf"],["class","ng-enter-element","form-submit","",3,"onSubmit",4,"ngIf"],[1,"helpful-head",3,"innerHTML"],[1,"helpful-btn-container"],["type","button","zing-touch","","aria-label","Yes",1,"btn","blue-brds","helpful-btn","with-loader",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"btn-loader"],[1,"bt-text"],["type","button",1,"btn","blue-brds","helpful-btn",3,"click"],["ng-focus","","tabindex","0",1,"ng-enter-element","helpful-head",3,"focus-when"],["ng-focus","","tabindex","0",1,"helpful-head",3,"focus-when"],["form-submit","",1,"ng-enter-element",3,"onSubmit"],["aria-label","Please write here how can we improve it!",1,"textarea","large","helpful-textarea",3,"value","input"],[1,"helpful-form-btn"],["type","submit",1,"btn","fixed-w","with-loader"],[3,"message","show","close-on-change"]],template:function(e,t){1&e&&(o.ɵɵtemplate(0,ws,9,3,"ng-container",0),o.ɵɵtemplate(1,Es,2,1,"p",1),o.ɵɵtemplate(2,ks,2,1,"p",2),o.ɵɵtemplate(3,xs,10,7,"form",3)),2&e&&(o.ɵɵproperty("ngIf",!t.submited&&!t.voted&&!t.unhelpful),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.submited),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.voted),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.unhelpful))},directives:[o.NgIf,hn,oi,bs,cs],encapsulation:2}),e}(),Os=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn,us,_s,ai]]}),e}(),Ts=(function(){function e(e,t,n){this._el=e,this._zone=t,this._dserv=n,this.offset=null,this.fixedcenter=!1,this.userscrolleroffset=!0,this._enable=!0,this.auto_start=!0,this._nativesupport="fixed",this.trynative=!1,this.sticky_parent=!1}Object.defineProperty(e.prototype,"refresh",{get:function(){return this._refresh},set:function(e){var t=this;this._refresh=e,!Pt()&&this._scroller&&setTimeout(function(){t._scrollWatch()})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enable},set:function(e){var t=this;this._enable=e,e&&!Pt()&&setTimeout(function(){t._scrollWatch()})},enumerable:!1,configurable:!0}),e.prototype._getSupport=function(){if(!window.getComputedStyle)return!1;for(var e=document.createElement("div"),t=["","-webkit-","-moz-","-ms-"],n=null,i=0,r=t.length;i<r;i++){var o=t[i]+"sticky";try{e.style.position=o}catch(e){}if(e.style.position&&e.style.position.indexOf("sticky")>-1){n=o;break}}return n},e.prototype._scrollWatch=function(){if(this.enabled){var e=this._el.nativeElement,t=this._el.nativeElement.parentNode.getBoundingClientRect(),n={};if(!(0===e.offsetHeight&&0===e.offsetWidth)){var i=t.top<this.offset?this.offset:t.top;i+e.offsetHeight>t.bottom&&(i=t.bottom-e.offsetHeight),n.top=i+"px",this.fixedcenter&&(n.left=t.left+"px",n.right=window.innerWidth-t.right+"px");var r="position:fixed;top:"+n.top+";left:"+n.left+";";n.right&&(r+="right:"+n.right),e.style.cssText!==r&&(e.style.cssText=r)}}},e.prototype.ngAfterViewInit=function(){var e=this;if(this._scrollWatch=this._scrollWatch.bind(this),!Pt()&&!window.JSTESTING){if(this.sticky_parent&&(this._el={nativeElement:this._el.nativeElement.parentNode}),this.trynative){var t=this._getSupport();if(t)return void(this._el.nativeElement.style.position=t)}var n;this._scroller=this.scroller?document.querySelector(this.scroller):this._dserv.overwrite_to_body?window:this._dserv.element,this.scroller&&this.userscrolleroffset&&null===this.offset&&!this._dserv.overwrite_to_body&&(this.offset=this._scroller.getBoundingClientRect().top),null===this.offset&&(this.offset=0),n=!!tn()&&{passive:!0},n=!1,this._zone.runOutsideAngular(function(){e._scroller.addEventListener("scroll",e._scrollWatch,n),window.addEventListener("resize",e._scrollWatch,n),e.auto_start&&en(function(){e._el.nativeElement.style.position=e._nativesupport,e._el.nativeElement.top="0px",e._scrollWatch()})})}},e.prototype.ngOnDestroy=function(){this._scroller&&"fixed"==this._nativesupport&&(this._scroller.removeEventListener("scroll",this._scrollWatch),window.removeEventListener("resize",this._scrollWatch))},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(gn))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-sticky",""]],inputs:{scroller:["sticky-scroller","scroller"],offset:["stickyoffset","offset"],fixedcenter:["stickyfull","fixedcenter"],userscrolleroffset:["sticky-scroller-offset","userscrolleroffset"],refresh:["sticky-refresh-toggle","refresh"],enabled:["stickyenabled","enabled"],auto_start:["sticky-auto-start","auto_start"],trynative:["sticky-native","trynative"],sticky_parent:["sticky-parent","sticky_parent"]}})}(),function(){function e(e,t,n,i){this._el=e,this._zone=t,this._dscroll=n,this._renderer=i,this.allow_native=!0,this.onPosition=new o.EventEmitter,this._curr_pos="static",this._enabled=!0,this.sticky_parent=!1,this.offset=0,this._subscriptions=[],this._observables=[],this._native=!1,this._ScrollWatch=this._ScrollWatch.bind(this)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){var t=this;if(e!==this._enabled){var n=this._el.nativeElement;e?(this._native&&n&&this._renderer.setStyle(n,"position","sticky"),en(function(){t._ScrollWatch()})):n&&this._renderer.setStyle(n,"position","")}this._enabled=e},enumerable:!1,configurable:!0}),e.prototype._getSupport=function(){if(!window.getComputedStyle)return!1;for(var e=document.createElement("div"),t=["","-webkit-","-moz-","-ms-"],n=null,i=0,r=t.length;i<r;i++){var o=t[i]+"sticky";try{e.style.position=o}catch(e){}if(e.style.position&&e.style.position.indexOf("sticky")>-1){n=o;break}}return n},e.prototype._ScrollWatch=function(e){var t=this;this.enabled&&this._zone.runOutsideAngular(function(){var n=t._el.nativeElement;if(n)if(t._native){var i=0,r=n.style.top?Vt(n.style.top):0,a=n.offsetTop;if(jn.subscribe("header:position-change",function(e){i=e},function(){},function(){},[o.take(1)]),i!==r&&0!=a?t._renderer.setStyle(n,"top",i+t.offset+"px"):0==a&&(i=0,t._renderer.setStyle(n,"top",i+"px")),t._stickyWayPoint){var s=t._stickyWayPoint.offsetTop,l=t._stickyWayPoint.offsetParent;if(a=n.offsetTop,t._dscroll.overwrite_to_body)for(;l&&l!=t._dscroll.element;)s+=l.offsetTop,l=l.offsetParent;0!==a?a>s?(t.onPosition.emit("sticky"),t._curr_pos="sticky"):(t.onPosition.emit("static"),t._curr_pos="static"):"sticky"==t._curr_pos&&t.onPosition.emit("static")}}else if(t._stickyContainer)if(e){var c=t._stickyContainer.offsetTop;for(l=t._stickyContainer.offsetParent;l&&l!=t._dscroll.element;)c+=l.offsetTop,l=l.offsetParent;if(e>=c){var u=0;jn.subscribe("header:position-change",function(e){u=e},function(){},function(){},[o.take(1)]),t._renderer.setStyle(n,"top",u+"px"),t._renderer.setStyle(n,"position","fixed"),"static"==t._curr_pos&&(t.onPosition.emit("sticky"),t._curr_pos="sticky")}else t._renderer.setStyle(n,"top",""),t._renderer.setStyle(n,"position",""),"sticky"==t._curr_pos&&(t.onPosition.emit("static"),t._curr_pos="static")}else t._renderer.setStyle(n,"top",""),t._renderer.setStyle(n,"position",""),"sticky"==t._curr_pos&&(t.onPosition.emit("static"),t._curr_pos="static")})},e.prototype.ngAfterViewInit=function(){var e=this;if(!Pt()&&!Tt()){if(this.sticky_parent&&(this._el={nativeElement:this._el.nativeElement.parentNode}),this._native=!!this.allow_native&&this._getSupport(),this.enabled&&this._el.nativeElement&&this._renderer.setStyle(this._el.nativeElement,"position",this._native?"sticky":""),this._native){if(this._stickyWayPoint=document.createElement("div"),this._stickyWayPoint.classList.add("sticky-waypoint"),this._el.nativeElement)(t=this._el.nativeElement).parentNode.insertBefore(this._stickyWayPoint,t)}else{this._stickyContainer=document.createElement("div"),this._stickyContainer.classList.add("sticky-container");var t,n=this._el.nativeElement.getBoundingClientRect();this._stickyContainer.style.height=n.height+"px",(t=this._el.nativeElement).parentNode.insertBefore(this._stickyContainer,t),this._stickyContainer.appendChild(this._el.nativeElement)}this._observables.push(o.fromEvent(window,"resize")),this._observables.forEach(function(t){e._subscriptions.push(t.subscribe(function(){if(e._stickyContainer){var t=e._el.nativeElement.getBoundingClientRect();e._stickyContainer.style.height=t.height+"px"}e._ScrollWatch()}))}),this._subscriptions.push(this._dscroll.onScroll.subscribe(function(t){e._ScrollWatch(t)})),this._ScrollWatch()}},e.prototype.ngOnDestroy=function(){if(this._subscriptions.forEach(function(e){e.unsubscribe()}),this._observables=[],this._stickyContainer){this._stickyContainer.after(this._el.nativeElement);try{this._stickyContainer.parentNode.removeChild(this._stickyContainer)}catch(e){}this._stickyContainer=null}if(this._stickyWayPoint){try{this._stickyWayPoint.parentNode.removeChild(this._stickyWayPoint)}catch(e){}this._stickyWayPoint=null}},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.ElementRef),o.ɵɵdirectiveInject(o.NgZone),o.ɵɵdirectiveInject(gn),o.ɵɵdirectiveInject(o.Renderer2))},e.ɵdir=o.ɵɵdefineDirective({type:e,selectors:[["","ng-position-sticky",""]],inputs:{allow_native:["native","allow_native"],enabled:"enabled",sticky_parent:["sticky-parent","sticky_parent"],offset:["stickyoffset","offset"]},outputs:{onPosition:"onPosition"}}),e}()),Cs=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule]]}),e}(),Ns=["urlText"];function Is(e,t){1&e&&o.ɵɵelement(0,"div",4)}function Fs(e,t){1&e&&(o.ɵɵelementStart(0,"div",5),o.ɵɵtext(1,"Link copied to clipboard."),o.ɵɵelementEnd())}function As(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementStart(0,"div",6),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().closeDialog()}),o.ɵɵtext(1,"Close"),o.ɵɵelementEnd()}}function Ls(e,t){if(1&e){var n=o.ɵɵgetCurrentView();o.ɵɵelementContainerStart(0),o.ɵɵelementStart(1,"div",7),o.ɵɵtext(2,"Share"),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"div",8),o.ɵɵelementStart(4,"span",9),o.ɵɵlistener("onTap",function(){o.ɵɵrestoreView(n);var e=o.ɵɵnextContext();return e.OpenUrl(e.data.fblink)}),o.ɵɵelement(5,"i",10),o.ɵɵelementStart(6,"span"),o.ɵɵtext(7,"Facebook"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(8,"span",9),o.ɵɵlistener("onTap",function(){o.ɵɵrestoreView(n);var e=o.ɵɵnextContext();return e.OpenUrl(e.data.twlink)}),o.ɵɵelement(9,"i",11),o.ɵɵelementStart(10,"span"),o.ɵɵtext(11,"Twitter"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(12,"span",9),o.ɵɵlistener("onTap",function(){o.ɵɵrestoreView(n);var e=o.ɵɵnextContext();return e.OpenUrl(e.data.inlink)}),o.ɵɵelement(13,"i",12),o.ɵɵelementStart(14,"span"),o.ɵɵtext(15,"LinkedIn"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(16,"a",13),o.ɵɵelement(17,"i",14),o.ɵɵelementStart(18,"span"),o.ɵɵtext(19,"Email"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementStart(20,"div",15),o.ɵɵelement(21,"textarea",16,17),o.ɵɵelementStart(23,"span",18),o.ɵɵlistener("onTap",function(){return o.ɵɵrestoreView(n),o.ɵɵnextContext().CopyUrl()}),o.ɵɵtext(24,"copy"),o.ɵɵelementEnd(),o.ɵɵelementEnd(),o.ɵɵelementContainerEnd()}if(2&e){var i=o.ɵɵnextContext();o.ɵɵadvance(16),o.ɵɵproperty("href",i.email,o.ɵɵsanitizeUrl)("zing-url",!0),o.ɵɵadvance(5),o.ɵɵproperty("value",i.data.link)}}var Vs=["shareBox"];function Ds(e,t){if(1&e&&(o.ɵɵelementStart(0,"span",6),o.ɵɵtext(1),o.ɵɵelementEnd()),2&e){var n=o.ɵɵnextContext();o.ɵɵadvance(1),o.ɵɵtextInterpolate(n.shares_count)}}function Ms(e,t){1&e&&o.ɵɵelement(0,"modal-dialog",null,7)}var zs=function(){function e(){this.width=575,this.height=400}return e.prototype.ngOnInit=function(){this.email="mailto:?subject="+encodeURIComponent(this.data.title)+"&body=",this.email+=encodeURIComponent("From WalletHub:\n"+this.data.title+"\n"+this.data.link+"?utm_source=emailshare")},e.prototype.CopyUrl=function(){var e=this,t=this.urlText.nativeElement;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var n=t.contentEditable;t.contentEditable="true";var i=document.createRange();i.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(i),t.setSelectionRange(0,999999),t.contentEditable=n}else t.select();document.execCommand("copy"),t.blur(),setTimeout(function(){e.link_copied=!0},100)},e.prototype.OpenUrl=function(e){var t=(window.innerWidth-this.width)/2,n=(window.innerHeight-this.height)/2,i="status=1,width="+this.width+",height="+this.height+",top="+n+",left="+t;window.open(e,"whpopup",i)},e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["social-shareov"]],viewQuery:function(e,t){if(1&e&&o.ɵɵviewQuery(Ns,5),2&e){var n;o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.urlText=n.first)}},hostVars:2,hostBindings:function(e,t){2&e&&o.ɵɵclassProp("edu-ss-copied",t.link_copied)},decls:4,vars:4,consts:[["class","edu-ss-link-cpy ng-enter-element",4,"ngIf"],["class","edu-ss-title ng-enter-element",4,"ngIf"],["class","edu-ss-link-cpy-bt btn fixed-w-b ng-enter-element","zing-touch","",3,"onTap",4,"ngIf"],[4,"ngIf"],[1,"edu-ss-link-cpy","ng-enter-element"],[1,"edu-ss-title","ng-enter-element"],["zing-touch","",1,"edu-ss-link-cpy-bt","btn","fixed-w-b","ng-enter-element",3,"onTap"],[1,"edu-ss-title"],[1,"edu-ss-links-bt-box"],["zing-touch","",1,"edu-ss-ln-bt",3,"onTap"],[1,"edu-ss-ln-ic","bf-icon-social-fbk"],[1,"edu-ss-ln-ic","bf-icon-social-tw"],[1,"edu-ss-ln-ic","bf-icon-social-in"],["zing-touch","","target","_system",1,"edu-ss-ln-bt",3,"href","zing-url"],[1,"edu-ss-ln-ic","bf-icon-social-email"],[1,"edu-copy-url"],[1,"edu-cpu-txt",3,"value"],["urlText",""],["zing-touch","",1,"edu-cpu-bt","semi-bold-font",3,"onTap"]],template:function(e,t){1&e&&(o.ɵɵtemplate(0,Is,1,0,"div",0),o.ɵɵtemplate(1,Fs,2,0,"div",1),o.ɵɵtemplate(2,As,2,0,"div",2),o.ɵɵtemplate(3,Ls,25,3,"ng-container",3)),2&e&&(o.ɵɵproperty("ngIf",t.link_copied),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.link_copied),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",t.link_copied),o.ɵɵadvance(1),o.ɵɵproperty("ngIf",!t.link_copied))},directives:[o.NgIf,hn],encapsulation:2}),e}(),Rs=function(){function e(e){this._loc=e,this.shares_count=0,this.is_web=!1,this.width=575,this.height=400}return e.prototype.ngOnInit=function(){var e=this;this.is_web=!Pt();var t=encodeURIComponent(this.url||"https://wallethub.com"+this._loc.path()),n=encodeURIComponent((this.title||"Wallethub").replace(/ /g,"+"));ri.getKey("fb_app_id"),this.fblink="http://www.facebook.com/share.php?display=popup&skip_api_login=1&u="+t+"&title="+n,this.twlink="https://twitter.com/intent/tweet?text="+n+"+"+t+"+"+encodeURIComponent("via+@WalletHub"),this.inlink="http://www.linkedin.com/shareArticle?mini=true&source=WalletHub&url="+t+"&title="+n,Pt()||Et()||!this.float_shares||Jn({method:"GET",url:"https://opensharecount.com/count.json",query:{url:"https://wallethub.com"+this._loc.path()}}).then(function(t){t&&Lt(t.count)?e.shares_count=t.count:e.shares_count=0}).catch(function(){e.shares_count=0})},e.prototype.ngOnDestroy=function(){this.eventresize&&(this.eventresize=null),this.subsresize&&this.subsresize.unsubscribe()},e.prototype.OpenShare=function(){var e=this;this.shareBox.Open(zs,{fblink:this.fblink,twlink:this.twlink,inlink:this.inlink,link:this.url||"https://wallethub.com"+this._loc.path(),title:this.title}),this.eventresize=o.fromEvent(window,"resize"),this.subsresize=this.eventresize.subscribe(function(){e.shareBox.Close(),setTimeout(function(){e.eventresize&&(e.eventresize=null),e.subsresize&&e.subsresize.unsubscribe()})})},e.prototype.OpenUrl=function(e){var t=(window.innerWidth-this.width)/2,n=(window.innerHeight-this.height)/2,i="status=1,width="+this.width+",height="+this.height+",top="+n+",left="+t;window.open(e,"whpopup",i)},e.ɵfac=function(t){return new(t||e)(o.ɵɵdirectiveInject(o.Location))},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["social-share"]],viewQuery:function(e,t){if(1&e&&o.ɵɵviewQuery(Vs,5),2&e){var n;o.ɵɵqueryRefresh(n=o.ɵɵloadQuery())&&(t.shareBox=n.first)}},hostVars:4,hostBindings:function(e,t){2&e&&o.ɵɵclassProp("edu-ss-float",t.float_shares&&t.shares_count)("edu-ss-shares-static",t.shares_count)},inputs:{title:"title",url:"url",float_shares:["float-shares","float_shares"]},decls:6,vars:2,consts:[["class","edu-ss-link edu-ss-shares-link ng-enter-element","data-after","shares",4,"ngIf"],["aria-label","Share on Facebook","zing-touch","",1,"edu-ss-link","edu-ss-fb","bf-icon-social-fbk",3,"onTap"],["aria-label","Share on Twitter","zing-touch","",1,"edu-ss-link","edu-ss-tw","bf-icon-social-tw",3,"onTap"],["aria-label","Share on LinkedIn","zing-touch","",1,"edu-ss-link","edu-ss-in","bf-icon-social-in",3,"onTap"],["aria-label","Share via Email","zing-touch","",1,"edu-ss-link","edu-ss-email","bf-icon-social-email",3,"onTap"],[4,"ngIf"],["data-after","shares",1,"edu-ss-link","edu-ss-shares-link","ng-enter-element"],["shareBox",""]],template:function(e,t){1&e&&(o.ɵɵtemplate(0,Ds,2,1,"span",0),o.ɵɵelementStart(1,"span",1),o.ɵɵlistener("onTap",function(){return t.OpenUrl(t.fblink)}),o.ɵɵelementEnd(),o.ɵɵelementStart(2,"span",2),o.ɵɵlistener("onTap",function(){return t.OpenUrl(t.twlink)}),o.ɵɵelementEnd(),o.ɵɵelementStart(3,"span",3),o.ɵɵlistener("onTap",function(){return t.OpenUrl(t.inlink)}),o.ɵɵelementEnd(),o.ɵɵelementStart(4,"span",4),o.ɵɵlistener("onTap",function(){return t.OpenShare()}),o.ɵɵelementEnd(),o.ɵɵtemplate(5,Ms,2,0,"modal-dialog",5)),2&e&&(o.ɵɵproperty("ngIf",t.float_shares&&t.shares_count),o.ɵɵadvance(5),o.ɵɵproperty("ngIf",t.is_web))},directives:[o.NgIf,hn,ko],encapsulation:2}),e}(),Bs=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Nn,xo,Cs]]}),e}(),js=["class","social-share-box"],Us=function(){function e(){this.template="v1",this.permanent_sticky=!1,this.no_shares=!1,this.social_shares=!1,this.sticky_social=!1,this.is_floating=!1}return e.prototype.ngOnInit=function(){var e=this;if(!Pt())if(this.permanent_sticky)this.sticky_social=!0,this.social_shares=!1;else{this._windowobs=o.fromEvent(window,"resize"),this._windowsubs=this._windowobs.subscribe(function(){var t=window.innerWidth;e.sticky_social=t<=767});var t=window.innerWidth;this.sticky_social=t<=767}},e.prototype.ngOnDestroy=function(){this._windowobs&&(this._windowsubs.unsubscribe(),this._windowobs=null)},e.prototype.SocialFloating=function(e){this.no_shares||(this.social_shares="sticky"==e),this.is_floating="sticky"==e},e.ɵfac=function(t){return new(t||e)},e.ɵcmp=o.ɵɵdefineComponent({type:e,selectors:[["",8,"social-share-box"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ɵɵclassProp("ss-box-float",t.is_floating)},inputs:{title:"title",template:"template",permanent_sticky:["sticky","permanent_sticky"],no_shares:["no-shares","no_shares"]},attrs:js,decls:1,vars:6,consts:[["ng-position-sticky","",3,"title","float-shares","enabled","sticky-parent","onPosition"]],template:function(e,t){1&e&&(o.ɵɵelementStart(0,"social-share",0),o.ɵɵlistener("onPosition",function(e){return t.SocialFloating(e)}),o.ɵɵelementEnd()),2&e&&(o.ɵɵclassProp("social-share-mobile-only","v1"==t.template),o.ɵɵproperty("title",t.title)("float-shares",t.social_shares)("enabled",t.sticky_social)("sticky-parent",!0))},directives:[Rs,Ts],encapsulation:2}),e}(),Ws=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=o.ɵɵdefineNgModule({type:e}),e.ɵinj=o.ɵɵdefineInjector({imports:[[o.CommonModule,Cs,Bs]]}),e}();t.$http=Jn,t.$httpAbort=Xn,t.AppContainer=ti,t.AppData=ri,t.AppModule=ys,t.Cookies=Qn,t.DirectivesModule=Nn,t.EduHepful=Ps,t.EduShareBox=Us,t.ErrorToastComponent=cs,t.ErrorsModule=us,t.Events=jn,t.FormSubmit=bs,t.FormSubmitModule=_s,t.ImageLoader=Uo,t.ImageLoaderModule=Wo,t.NgEduHepfulModule=Os,t.NgEduShareUIModule=Ws,t.RavenJs=Or,t.RavenRequestFail=function(e,t,n,i){void 0===i&&(i="warning");var r=Et();Or().then(function(o){qt(e.status,[-1,-999,-10,400])||e.status&&e.status>=500||(e.status&&(t+="; status: "+e.status),r?console.warn(t):o.withScope(function(r){switch(r.setExtras({details:JSON.stringify(e),params:n?JSON.stringify(n):null,path:window.location.pathname||window.location.href}),i){case"critical":r.setLevel(o.Severity.Critical);break;case"error":r.setLevel(o.Severity.Error);break;default:r.setLevel(o.Severity.Warning);break;case"info":r.setLevel(o.Severity.Info);break;case"debug":r.setLevel(o.Severity.Debug)}o.captureMessage(t)}))})},t.Sanitize=Sn,t.ScrollerService=gn,t.StickerModule=Cs,t.TouchGestures=hn,t.ajaxUrl=zn,t.arrayForEach=zt,t.baseUrl=Ln,t.cleanInput=ii,t.injectModuleAsync=Mo,t.isAny=qt,t.isArray=Mt,t.isNode=Pt,t.isNullorUndefined=Kt,t.isObject=Bt,t.isWeb=wt,t.ngAriaLive=Cn,t.ngAttribute=kn,t.ngCleanBind=Pn,t.ngCleanHTML=xn,t.ngFocus=oi,t.ngFocusModule=ai,t.ngHidden=En,t.ngModalDialog=ko,t.ngModalsModule=xo,t.ngZenScroll=yn,t.objectForEach=Ut,t.objectFromParam=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1);var i={};return e.split("&").map(function(e){var r=e.split("="),o=r[0],a=r[1];if(void 0!==a){var s=t;try{s=""===o?a:decodeURIComponent(a)}catch(e){}n?(i.params||(i.params={},i.paramstring=""),i.params[o]=s,i.paramstring&&(i.paramstring+="&"),i.paramstring+=o+"="+a):i[o]=s}else o&&(n?(i.nulls||(i.nulls={}),i.nulls[o]=t):i[o]=t)}),i},t.objectSerialize=jt,t.reqAnimationFrame=en,t.stringGetDigits=At,t.toNumber=Vt,t.trim=Nt,t.uniqid=Zt});