-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathangular-input-masks-debug.min.js
More file actions
3 lines (3 loc) · 77.6 KB
/
angular-input-masks-debug.min.js
File metadata and controls
3 lines (3 loc) · 77.6 KB
1
2
3
require=function e(t,n,r){function s(a,o){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return s(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)s(r[a]);return s}({1:[function(e,t,n){!function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof n?t.exports=r():e.BrV=r()}(this,function(){function e(e,t){var n=t.algorithmSteps,r=a.handleStr[n[0]](e),s=a.sum[n[1]](r,t.pesos),i=a.rest[n[2]](s),o=parseInt(r[t.dvpos]),u=a.expectedDV[n[3]](i,r);return o===u}function t(t,n){if(n.match&&!n.match.test(t))return!1;for(var r=0;r<n.dvs.length;r++)if(!e(t,n.dvs[r]))return!1;return!0}var n={};n.validate=function(e){var t=[6,5,4,3,2,9,8,7,6,5,4,3,2];e=e.replace(/[^\d]/g,"");var n=/^(0{14}|1{14}|2{14}|3{14}|4{14}|5{14}|6{14}|7{14}|8{14}|9{14})$/;if(!e||14!==e.length||n.test(e))return!1;e=e.split("");for(var r=0,s=0;r<12;r++)s+=e[r]*t[r+1];if(s=11-s%11,s=s>=10?0:s,parseInt(e[12])!==s)return!1;for(r=0,s=0;r<=12;r++)s+=e[r]*t[r];return s=11-s%11,s=s>=10?0:s,parseInt(e[13])===s};var r={};r.validate=function(e){function t(t){for(var n=0,r=t-9,s=0;s<9;s++)n+=parseInt(e.charAt(s+r))*(s+1);return n%11%10===parseInt(e.charAt(t))}e=e.replace(/[^\d]+/g,"");var n=/^(0{11}|1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11})$/;return!(!e||11!==e.length||n.test(e))&&(t(9)&&t(10))};var s=function(e){return this instanceof s?(this.rules=i[e]||[],this.rule,s.prototype._defineRule=function(e){this.rule=void 0;for(var t=0;t<this.rules.length&&void 0===this.rule;t++){var n=e.replace(/[^\d]/g,""),r=this.rules[t];n.length!==r.chars||r.match&&!r.match.test(e)||(this.rule=r)}return!!this.rule},void(s.prototype.validate=function(e){return!(!e||!this._defineRule(e))&&this.rule.validate(e)})):new s(e)},i={},a={handleStr:{onlyNumbers:function(e){return e.replace(/[^\d]/g,"").split("")},mgSpec:function(e){var t=e.replace(/[^\d]/g,"");return t=t.substr(0,3)+"0"+t.substr(3,t.length),t.split("")}},sum:{normalSum:function(e,t){for(var n=e,r=0,s=0;s<t.length;s++)r+=parseInt(n[s])*t[s];return r},individualSum:function(e,t){for(var n=e,r=0,s=0;s<t.length;s++){var i=parseInt(n[s])*t[s];r+=i%10+parseInt(i/10)}return r},apSpec:function(e,t){var n=this.normalSum(e,t),r=e.join("");return r>="030000010"&&r<="030170009"?n+5:r>="030170010"&&r<="030190229"?n+9:n}},rest:{mod11:function(e){return e%11},mod10:function(e){return e%10},mod9:function(e){return e%9}},expectedDV:{minusRestOf11:function(e){return e<2?0:11-e},minusRestOf11v2:function(e){return e<2?11-e-10:11-e},minusRestOf10:function(e){return e<1?0:10-e},mod10:function(e){return e%10},goSpec:function(e,t){var n=t.join("");return 1===e?n>="101031050"&&n<="101199979"?1:0:0===e?0:11-e},apSpec:function(e,t){var n=t.join("");return 0===e?n>="030170010"&&n<="030190229"?1:0:1===e?0:11-e},voidFn:function(e){return e}}};return i.PE=[{chars:9,dvs:[{dvpos:7,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:14,pesos:[[1,2,3,4,5,9,8,7,6,5,4,3,2]],dvs:[{dvpos:13,pesos:[5,4,3,2,1,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11v2"]}],validate:function(e){return t(e,this)}}],i.RS=[{chars:10,dvs:[{dvpos:9,pesos:[2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.AC=[{chars:13,match:/^01/,dvs:[{dvpos:11,pesos:[4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:12,pesos:[5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.MG=[{chars:13,dvs:[{dvpos:12,pesos:[1,2,1,2,1,2,1,2,1,2,1,2],algorithmSteps:["mgSpec","individualSum","mod10","minusRestOf10"]},{dvpos:12,pesos:[3,2,11,10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.SP=[{chars:12,match:/^[0-9]/,dvs:[{dvpos:8,pesos:[1,3,4,5,6,7,8,10],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]},{dvpos:11,pesos:[3,2,10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]}],validate:function(e){return t(e,this)}},{chars:12,match:/^P/i,dvs:[{dvpos:8,pesos:[1,3,4,5,6,7,8,10],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]}],validate:function(e){return t(e,this)}}],i.DF=[{chars:13,dvs:[{dvpos:11,pesos:[4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:12,pesos:[5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.ES=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.BA=[{chars:8,match:/^[0123458]/,dvs:[{dvpos:7,pesos:[7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]},{dvpos:6,pesos:[8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]}],validate:function(e){return t(e,this)}},{chars:8,match:/^[679]/,dvs:[{dvpos:7,pesos:[7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:6,pesos:[8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:9,match:/^[0-9][0123458]/,dvs:[{dvpos:8,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]},{dvpos:7,pesos:[9,8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]}],validate:function(e){return t(e,this)}},{chars:9,match:/^[0-9][679]/,dvs:[{dvpos:8,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:7,pesos:[9,8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.AM=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.RN=[{chars:9,match:/^20/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:10,match:/^20/,dvs:[{dvpos:8,pesos:[10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.RO=[{chars:14,dvs:[{dvpos:13,pesos:[6,5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.PR=[{chars:10,dvs:[{dvpos:8,pesos:[3,2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:9,pesos:[4,3,2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.SC=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.RJ=[{chars:8,dvs:[{dvpos:7,pesos:[2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.PA=[{chars:9,match:/^15/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.SE=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.PB=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.CE=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.PI=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.MA=[{chars:9,match:/^12/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.MT=[{chars:11,dvs:[{dvpos:10,pesos:[3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.MS=[{chars:9,match:/^28/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.TO=[{chars:11,match:/^[0-9]{2}((0[123])|(99))/,dvs:[{dvpos:10,pesos:[9,8,0,0,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.AL=[{chars:9,match:/^24[03578]/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],i.RR=[{chars:9,match:/^24/,dvs:[{dvpos:8,pesos:[1,2,3,4,5,6,7,8],algorithmSteps:["onlyNumbers","normalSum","mod9","voidFn"]}],validate:function(e){return t(e,this)}}],i.GO=[{chars:9,match:/^1[015]/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","goSpec"]}],validate:function(e){return t(e,this)}}],i.AP=[{chars:9,match:/^03/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","apSpec","mod11","apSpec"]}],validate:function(e){return t(e,this)}}],{ie:s,cpf:r,cnpj:n}})},{}],2:[function(e,t,n){!function(e,r){"object"==typeof n&&"undefined"!=typeof t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.moment=r()}(this,function(){"use strict";function n(){return pr.apply(null,arguments)}function r(e){pr=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return yt(e,t,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function f(e){return null==e._pf&&(e._pf=h()),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=vr.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function p(e){var t=d(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}function v(e){return void 0===e}function g(e,t){var n,r,s;if(v(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),v(t._i)||(e._i=t._i),v(t._f)||(e._f=t._f),v(t._l)||(e._l=t._l),v(t._strict)||(e._strict=t._strict),v(t._tzm)||(e._tzm=t._tzm),v(t._isUTC)||(e._isUTC=t._isUTC),v(t._offset)||(e._offset=t._offset),v(t._pf)||(e._pf=f(t)),v(t._locale)||(e._locale=t._locale),gr.length>0)for(n in gr)r=gr[n],s=t[r],v(s)||(e[r]=s);return e}function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),yr===!1&&(yr=!0,n.updateOffset(this),yr=!1)}function _(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function w(e,t,n){var r,s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<s;r++)(n&&e[r]!==t[r]||!n&&S(e[r])!==S(t[r]))&&a++;return a+i}function M(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var r=!0;return c(function(){return null!=n.deprecationHandler&&n.deprecationHandler(null,e),r&&(M(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),r=!1),t.apply(this,arguments)},t)}function b(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),_r[e]||(M(t),_r[e]=!0)}function Y(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){var t,n;for(n in e)t=e[n],Y(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function x(e,t){var n,r=c({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(r[n]=c({},r[n]));return r}function P(e){null!=e&&this.set(e)}function R(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Y(r)?r.call(t,n):r}function N(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function $(){return this._invalidDate}function T(e){return this._ordinal.replace("%d",e)}function V(e,t,n,r){var s=this._relativeTime[n];return Y(s)?s(e,t,n,r):s.replace(/%d/i,e)}function C(e,t){var n=this._relativeTime[e>0?"future":"past"];return Y(n)?n(t):n.replace(/%s/i,t)}function A(e,t){var n=e.toLowerCase();xr[n]=xr[n+"s"]=xr[t]=e}function E(e){return"string"==typeof e?xr[e]||xr[e.toLowerCase()]:void 0}function W(e){var t,n,r={};for(n in e)l(e,n)&&(t=E(n),t&&(r[t]=e[n]));return r}function U(e,t){Pr[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:Pr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function L(e,t){return function(r){return null!=r?(G(this,e,r),n.updateOffset(this,t),this):j(this,e)}}function j(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(e){return e=E(e),Y(this[e])?this[e]():this}function I(e,t){if("object"==typeof e){e=W(e);for(var n=F(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=E(e),Y(this[e]))return this[e](t);return this}function Z(e,t,n){var r=""+Math.abs(e),s=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}function B(e,t,n,r){var s=r;"string"==typeof r&&(s=function(){return this[r]()}),e&&(Tr[e]=s),t&&(Tr[t[0]]=function(){return Z(s.apply(this,arguments),t[1],t[2])}),n&&(Tr[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,r=e.match(Rr);for(t=0,n=r.length;t<n;t++)Tr[r[t]]?r[t]=Tr[r[t]]:r[t]=z(r[t]);return function(t){var s,i="";for(s=0;s<n;s++)i+=r[s]instanceof Function?r[s].call(t,e):r[s];return i}}function J(e,t){return e.isValid()?(t=Q(t,e.localeData()),$r[t]=$r[t]||q(t),$r[t](e)):e.localeData().invalidDate()}function Q(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Nr.lastIndex=0;r>=0&&Nr.test(e);)e=e.replace(Nr,n),Nr.lastIndex=0,r-=1;return e}function X(e,t,n){Qr[e]=Y(t)?t:function(e,r){return e&&n?n:t}}function K(e,t){return l(Qr,e)?Qr[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,s){return t||n||r||s}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)Xr[e[n]]=r}function re(e,t){ne(e,function(e,n,r,s){r._w=r._w||{},t(e,r._w,r,s)})}function se(e,t,n){null!=t&&l(Xr,e)&&Xr[e](t,n._a,n,e)}function ie(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){return s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||us).test(t)?"format":"standalone"][e.month()]}function oe(e,t){return s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[us.test(t)?"format":"standalone"][e.month()]}function ue(e,t,n){var r,s,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(s=Sr.call(this._shortMonthsParse,a),s!==-1?s:null):(s=Sr.call(this._longMonthsParse,a),s!==-1?s:null):"MMM"===t?(s=Sr.call(this._shortMonthsParse,a),s!==-1?s:(s=Sr.call(this._longMonthsParse,a),s!==-1?s:null)):(s=Sr.call(this._longMonthsParse,a),s!==-1?s:(s=Sr.call(this._shortMonthsParse,a),s!==-1?s:null))}function le(e,t,n){var r,s,i;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function de(e){return null!=e?(ce(this,e),n.updateOffset(this,!0),this):j(this,"Month")}function he(){return ie(this.year(),this.month())}function fe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ds),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function me(e){return this._monthsParseExact?(l(this,"_monthsRegex")||pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=hs),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pe(){function e(e,t){return t.length-e.length}var t,n,r=[],s=[],i=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),s.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),s.sort(e),i.sort(e),t=0;t<12;t++)r[t]=te(r[t]),s[t]=te(s[t]);for(t=0;t<24;t++)i[t]=te(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ve(e){return ge(e)?366:365}function ge(e){return e%4===0&&e%100!==0||e%400===0}function ye(){return ge(this.year())}function _e(e,t,n,r,s,i,a){var o=new Date(e,t,n,r,s,i,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function ke(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Se(e,t,n){var r=7+t-n,s=(7+ke(e,0,r).getUTCDay()-t)%7;return-s+r-1}function we(e,t,n,r,s){var i,a,o=(7+n-r)%7,u=Se(e,r,s),l=1+7*(t-1)+o+u;return l<=0?(i=e-1,a=ve(i)+l):l>ve(e)?(i=e+1,a=l-ve(e)):(i=e,a=l),{year:i,dayOfYear:a}}function Me(e,t,n){var r,s,i=Se(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(s=e.year()-1,r=a+De(s,t,n)):a>De(e.year(),t,n)?(r=a-De(e.year(),t,n),s=e.year()+1):(s=e.year(),r=a),{week:r,year:s}}function De(e,t,n){var r=Se(e,t,n),s=Se(e+1,t,n);return(ve(e)-r+s)/7}function be(e){return Me(e,this._week.dow,this._week.doy).week}function Ye(){return this._week.dow}function Oe(){return this._week.doy}function xe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pe(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Re(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function $e(e,t){return s(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Te(e){return this._weekdaysShort[e.day()]}function Ve(e){return this._weekdaysMin[e.day()]}function Ce(e,t,n){var r,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(s=Sr.call(this._weekdaysParse,a),s!==-1?s:null):"ddd"===t?(s=Sr.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=Sr.call(this._minWeekdaysParse,a),s!==-1?s:null):"dddd"===t?(s=Sr.call(this._weekdaysParse,a),s!==-1?s:(s=Sr.call(this._shortWeekdaysParse,a),s!==-1?s:(s=Sr.call(this._minWeekdaysParse,a),s!==-1?s:null))):"ddd"===t?(s=Sr.call(this._shortWeekdaysParse,a),s!==-1?s:(s=Sr.call(this._weekdaysParse,a),s!==-1?s:(s=Sr.call(this._minWeekdaysParse,a),s!==-1?s:null))):(s=Sr.call(this._minWeekdaysParse,a),s!==-1?s:(s=Sr.call(this._weekdaysParse,a),s!==-1?s:(s=Sr.call(this._shortWeekdaysParse,a),s!==-1?s:null)))}function Ae(e,t,n){var r,s,i;if(this._weekdaysParseExact)return Ce.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ee(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Re(e,this.localeData()),this.add(e-t,"d")):t}function We(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ue(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Fe(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=ys),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Le(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_s),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function je(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ks),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,s,i,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),s=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),o.push(s),u.push(i),l.push(r),l.push(s),l.push(i);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=te(o[t]),u[t]=te(u[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function He(){return this.hours()%12||12}function Ie(){return this.hours()||24}function Ze(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Be(e,t){return t._meridiemParse}function ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Je(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,n,r,s,i=0;i<e.length;){for(s=Je(e[i]).split("-"),t=s.length,n=Je(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=Xe(s.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(s,n,!0)>=t-1)break;t--}i++}return null}function Xe(n){var r=null;if(!bs[n]&&"undefined"!=typeof t&&t&&t.exports)try{r=Ss._abbr,e("./locale/"+n),Ke(r)}catch(s){}return bs[n]}function Ke(e,t){var n;return e&&(n=v(t)?nt(e):et(e,t),n&&(Ss=n)),Ss._abbr}function et(e,t){if(null!==t){var n=Ds;return t.abbr=e,null!=bs[e]?(b("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=bs[e]._config):null!=t.parentLocale&&(null!=bs[t.parentLocale]?n=bs[t.parentLocale]._config:b("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),bs[e]=new P(x(n,t)),Ke(e),bs[e]}return delete bs[e],null}function tt(e,t){if(null!=t){var n,r=Ds;null!=bs[e]&&(r=bs[e]._config),t=x(r,t),n=new P(t),n.parentLocale=bs[e],bs[e]=n,Ke(e)}else null!=bs[e]&&(null!=bs[e].parentLocale?bs[e]=bs[e].parentLocale:null!=bs[e]&&delete bs[e]);return bs[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ss;if(!s(e)){if(t=Xe(e))return t;e=[e]}return Qe(e)}function rt(){return kr(bs)}function st(e){var t,n=e._a;return n&&f(e).overflow===-2&&(t=n[es]<0||n[es]>11?es:n[ts]<1||n[ts]>ie(n[Kr],n[es])?ts:n[ns]<0||n[ns]>24||24===n[ns]&&(0!==n[rs]||0!==n[ss]||0!==n[is])?ns:n[rs]<0||n[rs]>59?rs:n[ss]<0||n[ss]>59?ss:n[is]<0||n[is]>999?is:-1,f(e)._overflowDayOfYear&&(t<Kr||t>ts)&&(t=ts),f(e)._overflowWeeks&&t===-1&&(t=as),f(e)._overflowWeekday&&t===-1&&(t=os),f(e).overflow=t),e}function it(e){var t,n,r,s,i,a,o=e._i,u=Ys.exec(o)||Os.exec(o);if(u){for(f(e).iso=!0,t=0,n=Ps.length;t<n;t++)if(Ps[t][1].exec(u[1])){s=Ps[t][0],r=Ps[t][2]!==!1;break}if(null==s)return void(e._isValid=!1);if(u[3]){for(t=0,n=Rs.length;t<n;t++)if(Rs[t][1].exec(u[3])){i=(u[2]||" ")+Rs[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!xs.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=s+(i||"")+(a||""),dt(e)}else e._isValid=!1}function at(e){var t=Ns.exec(e._i);return null!==t?void(e._d=new Date((+t[1]))):(it(e),void(e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e))))}function ot(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lt(e){var t,n,r,s,i=[];if(!e._d){for(r=ut(e),e._w&&null==e._a[ts]&&null==e._a[es]&&ct(e),e._dayOfYear&&(s=ot(e._a[Kr],r[Kr]),e._dayOfYear>ve(s)&&(f(e)._overflowDayOfYear=!0),n=ke(s,0,e._dayOfYear),e._a[es]=n.getUTCMonth(),e._a[ts]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ns]&&0===e._a[rs]&&0===e._a[ss]&&0===e._a[is]&&(e._nextDay=!0,e._a[ns]=0),e._d=(e._useUTC?ke:_e).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ns]=24)}}function ct(e){var t,n,r,s,i,a,o,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,a=4,n=ot(t.GG,e._a[Kr],Me(_t(),1,4).year),r=ot(t.W,1),s=ot(t.E,1),(s<1||s>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,n=ot(t.gg,e._a[Kr],Me(_t(),i,a).year),r=ot(t.w,1),null!=t.d?(s=t.d,(s<0||s>6)&&(u=!0)):null!=t.e?(s=t.e+i,(t.e<0||t.e>6)&&(u=!0)):s=i),r<1||r>De(n,i,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(o=we(n,r,s,i,a),e._a[Kr]=o.year,e._dayOfYear=o.dayOfYear)}function dt(e){if(e._f===n.ISO_8601)return void it(e);e._a=[],f(e).empty=!0;var t,r,s,i,a,o=""+e._i,u=o.length,l=0;for(s=Q(e._f,e._locale).match(Rr)||[],t=0;t<s.length;t++)i=s[t],r=(o.match(K(i,e))||[])[0],r&&(a=o.substr(0,o.indexOf(r)),a.length>0&&f(e).unusedInput.push(a),o=o.slice(o.indexOf(r)+r.length),l+=r.length),Tr[i]?(r?f(e).empty=!1:f(e).unusedTokens.push(i),se(i,r,e)):e._strict&&!r&&f(e).unusedTokens.push(i);f(e).charsLeftOver=u-l,o.length>0&&f(e).unusedInput.push(o),e._a[ns]<=12&&f(e).bigHour===!0&&e._a[ns]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ns]=ht(e._locale,e._a[ns],e._meridiem),lt(e),st(e)}function ht(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ft(e){var t,n,r,s,i;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)i=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],dt(t),m(t)&&(i+=f(t).charsLeftOver,i+=10*f(t).unusedTokens.length,f(t).score=i,(null==r||i<r)&&(r=i,n=t));c(e,n||t)}function mt(e){if(!e._d){var t=W(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function pt(e){var t=new y(st(vt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function vt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new y(st(t)):(s(n)?ft(e):o(t)?e._d=t:n?dt(e):gt(e),m(e)||(e._d=null),e))}function gt(e){var t=e._i;void 0===t?e._d=new Date(n.now()):o(t)?e._d=new Date(t.valueOf()):"string"==typeof t?at(e):s(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),lt(e)):"object"==typeof t?mt(e):"number"==typeof t?e._d=new Date(t):n.createFromInputFallback(e)}function yt(e,t,n,r,o){var u={};return"boolean"==typeof n&&(r=n,n=void 0),(i(e)&&a(e)||s(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=r,pt(u)}function _t(e,t,n,r){return yt(e,t,n,r,!1)}function kt(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return _t();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function St(){var e=[].slice.call(arguments,0);return kt("isBefore",e)}function wt(){var e=[].slice.call(arguments,0);return kt("isAfter",e)}function Mt(e){var t=W(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*i,this._months=+s+3*r+12*n,this._data={},this._locale=nt(),this._bubble()}function Dt(e){return e instanceof Mt}function bt(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";
return e<0&&(e=-e,n="-"),n+Z(~~(e/60),2)+t+Z(~~e%60,2)})}function Yt(e,t){var n=(t||"").match(e)||[],r=n[n.length-1]||[],s=(r+"").match(Cs)||["-",0,0],i=+(60*s[1])+S(s[2]);return"+"===s[0]?i:-i}function Ot(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(_(e)||o(e)?e.valueOf():_t(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),n.updateOffset(r,!1),r):_t(e).local()}function xt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Pt(e,t){var r,s=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Yt(zr,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(r=xt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?Zt(this,Ft(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?s:xt(this):null!=e?this:NaN}function Rt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Nt(e){return this.utcOffset(0,e)}function $t(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(xt(this),"m")),this}function Tt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Yt(Br,this._i)),this}function Vt(e){return!!this.isValid()&&(e=e?_t(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Ct(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function At(){if(!v(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=vt(e),e._a){var t=e._isUTC?d(e._a):_t(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Et(){return!!this.isValid()&&!this._isUTC}function Wt(){return!!this.isValid()&&this._isUTC}function Ut(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ft(e,t){var n,r,s,i=e,a=null;return Dt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(a=As.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:S(a[ts])*n,h:S(a[ns])*n,m:S(a[rs])*n,s:S(a[ss])*n,ms:S(a[is])*n}):(a=Es.exec(e))?(n="-"===a[1]?-1:1,i={y:Lt(a[2],n),M:Lt(a[3],n),w:Lt(a[4],n),d:Lt(a[5],n),h:Lt(a[6],n),m:Lt(a[7],n),s:Lt(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(s=Gt(_t(i.from),_t(i.to)),i={},i.ms=s.milliseconds,i.M=s.months),r=new Mt(i),Dt(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Lt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ot(t,e),e.isBefore(t)?n=jt(e,t):(n=jt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ht(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function It(e,t){return function(n,r){var s,i;return null===r||isNaN(+r)||(b(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,s=Ft(n,r),Zt(this,s,e),this}}function Zt(e,t,r,s){var i=t._milliseconds,a=Ht(t._days),o=Ht(t._months);e.isValid()&&(s=null==s||s,i&&e._d.setTime(e._d.valueOf()+i*r),a&&G(e,"Date",j(e,"Date")+a*r),o&&ce(e,j(e,"Month")+o*r),s&&n.updateOffset(e,a||o))}function Bt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zt(e,t){var r=e||_t(),s=Ot(r,this).startOf("day"),i=n.calendarFormat(this,s)||"sameElse",a=t&&(Y(t[i])?t[i].call(this,r):t[i]);return this.format(a||this.localeData().calendar(i,this,_t(r)))}function qt(){return new y(this)}function Jt(e,t){var n=_(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&(t=E(v(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Qt(e,t){var n=_(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&(t=E(v(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Xt(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Kt(e,t){var n,r=_(e)?e:_t(e);return!(!this.isValid()||!r.isValid())&&(t=E(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function en(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function tn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nn(e,t,n){var r,s,i,a;return this.isValid()?(r=Ot(e,this),r.isValid()?(s=6e4*(r.utcOffset()-this.utcOffset()),t=E(t),"year"===t||"month"===t||"quarter"===t?(a=rn(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(i=this-r,a="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-s)/864e5:"week"===t?(i-s)/6048e5:i),n?a:k(a)):NaN):NaN}function rn(e,t){var n,r,s=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(s,"months");return t-i<0?(n=e.clone().add(s-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(s+1,"months"),r=(t-i)/(n-i)),-(s+r)||0}function sn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function an(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?Y(Date.prototype.toISOString)?this.toDate().toISOString():J(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function on(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=J(this,e);return this.localeData().postformat(t)}function un(e,t){return this.isValid()&&(_(e)&&e.isValid()||_t(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ln(e){return this.from(_t(),e)}function cn(e,t){return this.isValid()&&(_(e)&&e.isValid()||_t(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.to(_t(),e)}function hn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function fn(){return this._locale}function mn(e){switch(e=E(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function pn(e){return e=E(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function vn(){return this._d.valueOf()-6e4*(this._offset||0)}function gn(){return Math.floor(this.valueOf()/1e3)}function yn(){return new Date(this.valueOf())}function _n(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function kn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Sn(){return this.isValid()?this.toISOString():null}function wn(){return m(this)}function Mn(){return c({},f(this))}function Dn(){return f(this).overflow}function bn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Yn(e,t){B(0,[e,e.length],0,t)}function On(e){return Nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function xn(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Pn(){return De(this.year(),1,4)}function Rn(){var e=this.localeData()._week;return De(this.year(),e.dow,e.doy)}function Nn(e,t,n,r,s){var i;return null==e?Me(this,r,s).year:(i=De(e,r,s),t>i&&(t=i),$n.call(this,e,t,n,r,s))}function $n(e,t,n,r,s){var i=we(e,t,n,r,s),a=ke(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Tn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Vn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Cn(e,t){t[is]=S(1e3*("0."+e))}function An(){return this._isUTC?"UTC":""}function En(){return this._isUTC?"Coordinated Universal Time":""}function Wn(e){return _t(1e3*e)}function Un(){return _t.apply(null,arguments).parseZone()}function Fn(e){return e}function Ln(e,t,n,r){var s=nt(),i=d().set(r,t);return s[n](i,e)}function jn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Ln(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Ln(e,r,n,"month");return s}function Gn(e,t,n,r){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var s=nt(),i=e?s._week.dow:0;if(null!=n)return Ln(t,(n+i)%7,r,"day");var a,o=[];for(a=0;a<7;a++)o[a]=Ln(t,(a+i)%7,r,"day");return o}function Hn(e,t){return jn(e,t,"months")}function In(e,t){return jn(e,t,"monthsShort")}function Zn(e,t,n){return Gn(e,t,n,"weekdays")}function Bn(e,t,n){return Gn(e,t,n,"weekdaysShort")}function zn(e,t,n){return Gn(e,t,n,"weekdaysMin")}function qn(){var e=this._data;return this._milliseconds=qs(this._milliseconds),this._days=qs(this._days),this._months=qs(this._months),e.milliseconds=qs(e.milliseconds),e.seconds=qs(e.seconds),e.minutes=qs(e.minutes),e.hours=qs(e.hours),e.months=qs(e.months),e.years=qs(e.years),this}function Jn(e,t,n,r){var s=Ft(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function Qn(e,t){return Jn(this,e,t,1)}function Xn(e,t){return Jn(this,e,t,-1)}function Kn(e){return e<0?Math.floor(e):Math.ceil(e)}function er(){var e,t,n,r,s,i=this._milliseconds,a=this._days,o=this._months,u=this._data;return i>=0&&a>=0&&o>=0||i<=0&&a<=0&&o<=0||(i+=864e5*Kn(nr(o)+a),a=0,o=0),u.milliseconds=i%1e3,e=k(i/1e3),u.seconds=e%60,t=k(e/60),u.minutes=t%60,n=k(t/60),u.hours=n%24,a+=k(n/24),s=k(tr(a)),o+=s,a-=Kn(nr(s)),r=k(o/12),o%=12,u.days=a,u.months=o,u.years=r,this}function tr(e){return 4800*e/146097}function nr(e){return 146097*e/4800}function rr(e){var t,n,r=this._milliseconds;if(e=E(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+tr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function sr(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12)}function ir(e){return function(){return this.as(e)}}function ar(e){return e=E(e),this[e+"s"]()}function or(e){return function(){return this._data[e]}}function ur(){return k(this.days()/7)}function lr(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function cr(e,t,n){var r=Ft(e).abs(),s=di(r.as("s")),i=di(r.as("m")),a=di(r.as("h")),o=di(r.as("d")),u=di(r.as("M")),l=di(r.as("y")),c=s<hi.s&&["s",s]||i<=1&&["m"]||i<hi.m&&["mm",i]||a<=1&&["h"]||a<hi.h&&["hh",a]||o<=1&&["d"]||o<hi.d&&["dd",o]||u<=1&&["M"]||u<hi.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,lr.apply(null,c)}function dr(e){return void 0===e?di:"function"==typeof e&&(di=e,!0)}function hr(e,t){return void 0!==hi[e]&&(void 0===t?hi[e]:(hi[e]=t,!0))}function fr(e){var t=this.localeData(),n=cr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function mr(){var e,t,n,r=fi(this._milliseconds)/1e3,s=fi(this._days),i=fi(this._months);e=k(r/60),t=k(e/60),r%=60,e%=60,n=k(i/12),i%=12;var a=n,o=i,u=s,l=t,c=e,d=r,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(u?u+"D":"")+(l||c||d?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var pr,vr;vr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var gr=n.momentProperties=[],yr=!1,_r={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var kr;kr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Sr,wr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Mr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Dr="Invalid date",br="%d",Yr=/\d{1,2}/,Or={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},xr={},Pr={},Rr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Nr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$r={},Tr={},Vr=/\d/,Cr=/\d\d/,Ar=/\d{3}/,Er=/\d{4}/,Wr=/[+-]?\d{6}/,Ur=/\d\d?/,Fr=/\d\d\d\d?/,Lr=/\d\d\d\d\d\d?/,jr=/\d{1,3}/,Gr=/\d{1,4}/,Hr=/[+-]?\d{1,6}/,Ir=/\d+/,Zr=/[+-]?\d+/,Br=/Z|[+-]\d\d:?\d\d/gi,zr=/Z|[+-]\d\d(?::?\d\d)?/gi,qr=/[+-]?\d+(\.\d{1,3})?/,Jr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Qr={},Xr={},Kr=0,es=1,ts=2,ns=3,rs=4,ss=5,is=6,as=7,os=8;Sr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),A("month","M"),U("month",8),X("M",Ur),X("MM",Ur,Cr),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[es]=S(e)-1}),ne(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);null!=s?t[es]=s:f(n).invalidMonth=e});var us=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,ls="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ds=Jr,hs=Jr;B("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),A("year","y"),U("year",1),X("Y",Zr),X("YY",Ur,Cr),X("YYYY",Gr,Er),X("YYYYY",Hr,Wr),X("YYYYYY",Hr,Wr),ne(["YYYYY","YYYYYY"],Kr),ne("YYYY",function(e,t){t[Kr]=2===e.length?n.parseTwoDigitYear(e):S(e)}),ne("YY",function(e,t){t[Kr]=n.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[Kr]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var fs=L("FullYear",!0);B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),U("week",5),U("isoWeek",5),X("w",Ur),X("ww",Ur,Cr),X("W",Ur),X("WW",Ur,Cr),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=S(e)});var ms={dow:0,doy:6};B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),X("d",Ur),X("e",Ur),X("E",Ur),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);null!=s?t.d=s:f(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=S(e)});var ps="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ys=Jr,_s=Jr,ks=Jr;B("H",["HH",2],0,"hour"),B("h",["hh",2],0,He),B("k",["kk",2],0,Ie),B("hmm",0,0,function(){return""+He.apply(this)+Z(this.minutes(),2)}),B("hmmss",0,0,function(){return""+He.apply(this)+Z(this.minutes(),2)+Z(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+Z(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+Z(this.minutes(),2)+Z(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),A("hour","h"),U("hour",13),X("a",Be),X("A",Be),X("H",Ur),X("h",Ur),X("HH",Ur,Cr),X("hh",Ur,Cr),X("hmm",Fr),X("hmmss",Lr),X("Hmm",Fr),X("Hmmss",Lr),ne(["H","HH"],ns),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[ns]=S(e),f(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[ns]=S(e.substr(0,r)),t[rs]=S(e.substr(r)),f(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[ns]=S(e.substr(0,r)),t[rs]=S(e.substr(r,2)),t[ss]=S(e.substr(s)),f(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[ns]=S(e.substr(0,r)),t[rs]=S(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[ns]=S(e.substr(0,r)),t[rs]=S(e.substr(r,2)),t[ss]=S(e.substr(s))});var Ss,ws=/[ap]\.?m?\.?/i,Ms=L("Hours",!0),Ds={calendar:wr,longDateFormat:Mr,invalidDate:Dr,ordinal:br,ordinalParse:Yr,relativeTime:Or,months:ls,monthsShort:cs,week:ms,weekdays:ps,weekdaysMin:gs,weekdaysShort:vs,meridiemParse:ws},bs={},Ys=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Os=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,xs=/Z|[+-]\d\d(?::?\d\d)?/,Ps=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Rs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ns=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=D("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){};var $s=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Ts=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}),Vs=function(){return Date.now?Date.now():+new Date};bt("Z",":"),bt("ZZ",""),X("Z",zr),X("ZZ",zr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(zr,e)});var Cs=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var As=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Es=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ft.fn=Mt.prototype;var Ws=It(1,"add"),Us=It(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Fs=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yn("gggg","weekYear"),Yn("ggggg","weekYear"),Yn("GGGG","isoWeekYear"),Yn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),X("G",Zr),X("g",Zr),X("GG",Ur,Cr),X("gg",Ur,Cr),X("GGGG",Gr,Er),X("gggg",Gr,Er),X("GGGGG",Hr,Wr),X("ggggg",Hr,Wr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=S(e)}),re(["gg","GG"],function(e,t,r,s){t[s]=n.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),A("quarter","Q"),U("quarter",7),X("Q",Vr),ne("Q",function(e,t){t[es]=3*(S(e)-1)}),B("D",["DD",2],"Do","date"),A("date","D"),U("date",9),X("D",Ur),X("DD",Ur,Cr),X("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ne(["D","DD"],ts),ne("Do",function(e,t){t[ts]=S(e.match(Ur)[0],10)});var Ls=L("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),U("dayOfYear",4),X("DDD",jr),X("DDDD",Ar),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),B("m",["mm",2],0,"minute"),A("minute","m"),U("minute",14),X("m",Ur),X("mm",Ur,Cr),ne(["m","mm"],rs);var js=L("Minutes",!1);B("s",["ss",2],0,"second"),A("second","s"),U("second",15),X("s",Ur),X("ss",Ur,Cr),ne(["s","ss"],ss);var Gs=L("Seconds",!1);B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),U("millisecond",16),X("S",jr,Vr),X("SS",jr,Cr),X("SSS",jr,Ar);var Hs;for(Hs="SSSS";Hs.length<=9;Hs+="S")X(Hs,Ir);for(Hs="S";Hs.length<=9;Hs+="S")ne(Hs,Cn);var Is=L("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var Zs=y.prototype;Zs.add=Ws,Zs.calendar=zt,Zs.clone=qt,Zs.diff=nn,Zs.endOf=pn,Zs.format=on,Zs.from=un,Zs.fromNow=ln,Zs.to=cn,Zs.toNow=dn,Zs.get=H,Zs.invalidAt=Dn,Zs.isAfter=Jt,Zs.isBefore=Qt,Zs.isBetween=Xt,Zs.isSame=Kt,Zs.isSameOrAfter=en,Zs.isSameOrBefore=tn,Zs.isValid=wn,Zs.lang=Fs,Zs.locale=hn,Zs.localeData=fn,Zs.max=Ts,Zs.min=$s,Zs.parsingFlags=Mn,Zs.set=I,Zs.startOf=mn,Zs.subtract=Us,Zs.toArray=_n,Zs.toObject=kn,Zs.toDate=yn,Zs.toISOString=an,Zs.toJSON=Sn,Zs.toString=sn,Zs.unix=gn,Zs.valueOf=vn,Zs.creationData=bn,Zs.year=fs,Zs.isLeapYear=ye,Zs.weekYear=On,Zs.isoWeekYear=xn,Zs.quarter=Zs.quarters=Tn,Zs.month=de,Zs.daysInMonth=he,Zs.week=Zs.weeks=xe,Zs.isoWeek=Zs.isoWeeks=Pe,Zs.weeksInYear=Rn,Zs.isoWeeksInYear=Pn,Zs.date=Ls,Zs.day=Zs.days=Ee,Zs.weekday=We,Zs.isoWeekday=Ue,Zs.dayOfYear=Vn,Zs.hour=Zs.hours=Ms,Zs.minute=Zs.minutes=js,Zs.second=Zs.seconds=Gs,Zs.millisecond=Zs.milliseconds=Is,Zs.utcOffset=Pt,Zs.utc=Nt,Zs.local=$t,Zs.parseZone=Tt,Zs.hasAlignedHourOffset=Vt,Zs.isDST=Ct,Zs.isLocal=Et,Zs.isUtcOffset=Wt,Zs.isUtc=Ut,Zs.isUTC=Ut,Zs.zoneAbbr=An,Zs.zoneName=En,Zs.dates=D("dates accessor is deprecated. Use date instead.",Ls),Zs.months=D("months accessor is deprecated. Use month instead",de),Zs.years=D("years accessor is deprecated. Use year instead",fs),Zs.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rt),Zs.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",At);var Bs=Zs,zs=P.prototype;zs.calendar=R,zs.longDateFormat=N,zs.invalidDate=$,zs.ordinal=T,zs.preparse=Fn,zs.postformat=Fn,zs.relativeTime=V,zs.pastFuture=C,zs.set=O,zs.months=ae,zs.monthsShort=oe,zs.monthsParse=le,zs.monthsRegex=me,zs.monthsShortRegex=fe,zs.week=be,zs.firstDayOfYear=Oe,zs.firstDayOfWeek=Ye,zs.weekdays=$e,zs.weekdaysMin=Ve,zs.weekdaysShort=Te,zs.weekdaysParse=Ae,zs.weekdaysRegex=Fe,zs.weekdaysShortRegex=Le,zs.weekdaysMinRegex=je,zs.isPM=ze,zs.meridiem=qe,Ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",Ke),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",nt);var qs=Math.abs,Js=ir("ms"),Qs=ir("s"),Xs=ir("m"),Ks=ir("h"),ei=ir("d"),ti=ir("w"),ni=ir("M"),ri=ir("y"),si=or("milliseconds"),ii=or("seconds"),ai=or("minutes"),oi=or("hours"),ui=or("days"),li=or("months"),ci=or("years"),di=Math.round,hi={s:45,m:45,h:22,d:26,M:11},fi=Math.abs,mi=Mt.prototype;mi.abs=qn,mi.add=Qn,mi.subtract=Xn,mi.as=rr,mi.asMilliseconds=Js,mi.asSeconds=Qs,mi.asMinutes=Xs,mi.asHours=Ks,mi.asDays=ei,mi.asWeeks=ti,mi.asMonths=ni,mi.asYears=ri,mi.valueOf=sr,mi._bubble=er,mi.get=ar,mi.milliseconds=si,mi.seconds=ii,mi.minutes=ai,mi.hours=oi,mi.days=ui,mi.weeks=ur,mi.months=li,mi.years=ci,mi.humanize=fr,mi.toISOString=mr,mi.toString=mr,mi.toJSON=mr,mi.locale=hn,mi.localeData=fn,mi.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mr),mi.lang=Fs,B("X",0,0,"unix"),B("x",0,0,"valueOf"),X("x",Zr),X("X",qr),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(S(e))}),n.version="2.14.1",r(_t),n.fn=Bs,n.min=St,n.max=wt,n.now=Vs,n.utc=d,n.unix=Wn,n.months=Hn,n.isDate=o,n.locale=Ke,n.invalid=p,n.duration=Ft,n.isMoment=_,n.weekdays=Zn,n.parseZone=Un,n.localeData=nt,n.isDuration=Dt,n.monthsShort=In,n.weekdaysMin=zn,n.defineLocale=et,n.updateLocale=tt,n.locales=rt,n.weekdaysShort=Bn,n.normalizeUnits=E,n.relativeTimeRounding=dr,n.relativeTimeThreshold=hr,n.calendarFormat=Bt,n.prototype=Bs;var pi=n;return pi})},{}],3:[function(e,t,n){!function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof n?t.exports=r():e.StringMask=r()}(this,function(){function e(e,t){for(var n=0,r=t-1,s={escape:!0};r>=0&&s&&s.escape;)s=o[e.charAt(r)],n+=s&&s.escape?1:0,r--;return n>0&&n%2===1}function t(e,t){var n=e.replace(/[^0]/g,"").length,r=t.replace(/[^\d]/g,"").length;return r-n}function n(e,t,n,r){return r&&"function"==typeof r.transform&&(t=r.transform(t)),n.reverse?t+e:e+t}function r(e,t,n){var s=e.charAt(t),i=o[s];return""!==s&&(!(!i||i.escape)||r(e,t+n,n))}function s(e,t,n){var r=e.charAt(t),i=o[r];return""!==r&&(!(!i||!i.recursive)||s(e,t+n,n))}function i(e,t,n){var r=e.split("");return r.splice(n,0,t),r.join("")}function a(e,t){this.options=t||{},this.options={reverse:this.options.reverse||!1,usedefaults:this.options.usedefaults||this.options.reverse},this.pattern=e}var o={0:{pattern:/\d/,_default:"0"},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,optional:!0,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/},U:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},L:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},$:{escape:!0}};return a.prototype.process=function(a){function u(e){if(!g&&!v.length&&r(l,f,y.inc))return!0;if(!g&&v.length&&s(l,f,y.inc))return!0;if(g||(g=v.length>0),g){var t=v.shift();if(v.push(t),e.reverse&&h>=0)return f++,l=i(l,t,f),!0;if(!e.reverse&&h<a.length)return l=i(l,t,f),!0}return f<l.length&&f>=0}if(!a)return{result:"",valid:!1};a+="";var l=this.pattern,c=!0,d="",h=this.options.reverse?a.length-1:0,f=0,m=t(l,a),p=!1,v=[],g=!1,y={start:this.options.reverse?l.length-1:0,end:this.options.reverse?-1:l.length,inc:this.options.reverse?-1:1};for(f=y.start;u(this.options);f+=y.inc){var _=a.charAt(h),k=l.charAt(f),S=o[k];if(v.length&&S&&!S.recursive&&(S=null),!g||_){if(this.options.reverse&&e(l,f)){d=n(d,k,this.options,S),f+=y.inc;continue}if(!this.options.reverse&&p){d=n(d,k,this.options,S),p=!1;continue}if(!this.options.reverse&&S&&S.escape){p=!0;continue}}if(!g&&S&&S.recursive)v.push(k);else{if(g&&!_){d=n(d,k,this.options,S);continue}if(!g&&v.length>0&&!_)continue}if(S)if(S.optional){if(S.pattern.test(_)&&m)d=n(d,_,this.options,S),h+=y.inc,m--;else if(v.length>0&&_){c=!1;break}}else if(S.pattern.test(_))d=n(d,_,this.options,S),h+=y.inc;else{if(_||!S._default||!this.options.usedefaults){c=!1;break}d=n(d,S._default,this.options,S)}else d=n(d,k,this.options,S),!g&&v.length&&v.push(k)}return{result:d,valid:c}},a.prototype.apply=function(e){return this.process(e).result},a.prototype.validate=function(e){return this.process(e).valid},a.process=function(e,t,n){return new a(t,n).process(e)},a.apply=function(e,t,n){return new a(t,n).apply(e)},a.validate=function(e,t,n){return new a(t,n).validate(e)},a})},{}],4:[function(e,t,n){"use strict";t.exports=angular.module("ui.utils.masks",[e("./global/global-masks"),e("./br/br-masks"),e("./us/us-masks"),e("./ch/ch-masks")]).name},{"./br/br-masks":6,"./ch/ch-masks":15,"./global/global-masks":19,"./us/us-masks":27}],5:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=new r("00000.00000 00000.000000 00000.000000 0 00000000000000");t.exports=s({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,47)},format:function(e){return 0===e.length?e:i.apply(e).replace(/[^0-9]$/,"")},validations:{brBoletoBancario:function(e){return 47===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],6:[function(e,t,n){"use strict";var r=angular.module("ui.utils.masks.br",[e("../helpers")]).directive("uiBrBoletoBancarioMask",e("./boleto-bancario/boleto-bancario")).directive("uiBrCepMask",e("./cep/cep")).directive("uiBrCnpjMask",e("./cnpj/cnpj")).directive("uiBrCpfMask",e("./cpf/cpf")).directive("uiBrCpfcnpjMask",e("./cpf-cnpj/cpf-cnpj")).directive("uiBrIeMask",e("./inscricao-estadual/ie")).directive("uiNfeAccessKeyMask",e("./nfe/nfe")).directive("uiBrCarPlateMask",e("./car-plate/car-plate")).directive("uiBrPhoneNumber",e("./phone/br-phone"));t.exports=r.name},{"../helpers":25,"./boleto-bancario/boleto-bancario":5,"./car-plate/car-plate":7,"./cep/cep":8,"./cnpj/cnpj":9,"./cpf-cnpj/cpf-cnpj":10,"./cpf/cpf":11,"./inscricao-estadual/ie":12,"./nfe/nfe":13,"./phone/br-phone":14}],7:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=new r("UUU-0000");t.exports=s({clearValue:function(e){return e.replace(/[^a-zA-Z0-9]/g,"").slice(0,7)},format:function(e){return(i.apply(e)||"").replace(/[^a-zA-Z0-9]$/,"")},validations:{carPlate:function(e){return 7===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],8:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=new r("00000-000");t.exports=s({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,8)},format:function(e){return(i.apply(e)||"").replace(/[^0-9]$/,"")},validations:{cep:function(e){return 8===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],9:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("br-validations"),i=e("mask-factory"),a=new r("00.000.000/0000-00");t.exports=i({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){return(a.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cnpj:function(e){return s.cnpj.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],10:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("br-validations"),i=e("mask-factory"),a=new r("00.000.000/0000-00"),o=new r("000.000.000-00");t.exports=i({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){var t;return t=e.length>11?a.apply(e):o.apply(e)||"",t.trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return e.length>11||s.cpf.validate(e)},cnpj:function(e){return e.length<=11||s.cnpj.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],11:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("br-validations"),i=e("mask-factory"),a=new r("000.000.000-00");t.exports=i({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,11)},format:function(e){return(a.apply(e)||"").trim().replace(/[^0-9]$/,"");
},validations:{cpf:function(e){return s.cpf.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],12:[function(e,t,n){"use strict";function r(e){function t(e){return e?e.replace(/[^0-9]/g,""):e}function n(e,n){if(e&&a[e]){if("SP"===e&&/^P/i.test(n))return a.SP[1].mask;for(var r=a[e],s=0;r[s].chars&&r[s].chars<t(n).length&&s<r.length-1;)s++;return r[s].mask}}function r(e,r){var s=n(r,e);if(!s)return e;var i=s.process(t(e)),a=i.result||"";return a=a.trim().replace(/[^0-9]$/,""),"SP"===r&&/^p/i.test(e)?"P"+a:a}var a={AC:[{mask:new s("00.000.000/000-00")}],AL:[{mask:new s("000000000")}],AM:[{mask:new s("00.000.000-0")}],AP:[{mask:new s("000000000")}],BA:[{chars:8,mask:new s("000000-00")},{mask:new s("0000000-00")}],CE:[{mask:new s("00000000-0")}],DF:[{mask:new s("00000000000-00")}],ES:[{mask:new s("00000000-0")}],GO:[{mask:new s("00.000.000-0")}],MA:[{mask:new s("000000000")}],MG:[{mask:new s("000.000.000/0000")}],MS:[{mask:new s("000000000")}],MT:[{mask:new s("0000000000-0")}],PA:[{mask:new s("00-000000-0")}],PB:[{mask:new s("00000000-0")}],PE:[{chars:9,mask:new s("0000000-00")},{mask:new s("00.0.000.0000000-0")}],PI:[{mask:new s("000000000")}],PR:[{mask:new s("000.00000-00")}],RJ:[{mask:new s("00.000.00-0")}],RN:[{chars:9,mask:new s("00.000.000-0")},{mask:new s("00.0.000.000-0")}],RO:[{mask:new s("0000000000000-0")}],RR:[{mask:new s("00000000-0")}],RS:[{mask:new s("000/0000000")}],SC:[{mask:new s("000.000.000")}],SE:[{mask:new s("00000000-0")}],SP:[{mask:new s("000.000.000.000")},{mask:new s("-00000000.0/000")}],TO:[{mask:new s("00000000000")}]};return{restrict:"A",require:"ngModel",link:function(n,s,a,o){function u(e){return o.$isEmpty(e)?e:r(e,c)}function l(e){if(o.$isEmpty(e))return e;var n=r(e,c),s=t(n);return o.$viewValue!==n&&(o.$setViewValue(n),o.$render()),c&&"SP"===c.toUpperCase()&&/^p/i.test(e)?"P"+s:s}var c=(e(a.uiBrIeMask)(n)||"").toUpperCase();o.$formatters.push(u),o.$parsers.push(l),o.$validators.ie=function(e){return o.$isEmpty(e)||i.ie(c).validate(e)},n.$watch(a.uiBrIeMask,function(e){c=(e||"").toUpperCase(),l(o.$viewValue),o.$validate()})}}}var s=e("string-mask"),i=e("br-validations");r.$inject=["$parse"],t.exports=r},{"br-validations":1,"string-mask":3}],13:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=new r("0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000");t.exports=s({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,44)},format:function(e){return(i.apply(e)||"").replace(/[^0-9]$/,"")},validations:{nfeAccessKey:function(e){return 44===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],14:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i={areaCode:new r("(00) 0000-0000"),simple:new r("0000-0000")},a={areaCode:new r("(00) 00000-0000"),simple:new r("00000-0000")},o={areaCode:null,simple:new r("0000-000-0000")};t.exports=s({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,11)},format:function(e){var t;return t=0===e.indexOf("0800")?o.simple.apply(e):e.length<9?i.simple.apply(e)||"":e.length<10?a.simple.apply(e):e.length<11?i.areaCode.apply(e):a.areaCode.apply(e),t.trim().replace(/[^0-9]$/,"")},getModelValue:function(e,t){var n=this.clearValue(e);return"number"===t?parseInt(n):n},validations:{brPhoneNumber:function(e){var t=e&&e.toString().length;return t>=8&&t<=11}}})},{"mask-factory":"mask-factory","string-mask":3}],15:[function(e,t,n){"use strict";var r=angular.module("ui.utils.masks.ch",[e("../helpers")]).directive("uiChPhoneNumber",e("./phone/ch-phone"));t.exports=r.name},{"../helpers":25,"./phone/ch-phone":16}],16:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=new r("+00 00 000 00 00");t.exports=s({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,11)},format:function(e){var t;return t=i.apply(e)||"",t.trim().replace(/[^0-9]$/,"")},validations:{chPhoneNumber:function(e){var t=e&&e.toString().length;return 11===t}}})},{"mask-factory":"mask-factory","string-mask":3}],17:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=16,a=new r("0000 0000 0000 0000");t.exports=s({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,i)},format:function(e){var t;return t=a.apply(e)||"",t.trim().replace(/[^0-9]$/,"")},validations:{creditCard:function(e){var t=e&&e.toString().length;return t===i}}})},{"mask-factory":"mask-factory","string-mask":3}],18:[function(e,t,n){"use strict";function r(e){return/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}([-+][0-9]{2}:[0-9]{2}|Z)$/.test(e.toString())}function s(e){var t={"pt-br":"DD/MM/YYYY",ru:"DD.MM.YYYY"},n=t[e.id]||"YYYY-MM-DD";return{restrict:"A",require:"ngModel",link:function(e,t,s,o){function u(e){if(o.$isEmpty(e))return e;var t=e;("object"==typeof e||r(e))&&(t=i(e).format(n)),t=t.replace(/[^0-9]/g,"");var s=l.apply(t)||"";return s.trim().replace(/[^0-9]$/,"")}s.parse=s.parse||"true",n=s.uiDateMask||n;var l=new a(n.replace(/[YMD]/g,"0"));o.$formatters.push(u),o.$parsers.push(function(e){if(o.$isEmpty(e))return e;var t=u(e);return o.$viewValue!==t&&(o.$setViewValue(t),o.$render()),"false"===s.parse?t:i(t,n).toDate()}),o.$validators.date=function(e,t){return!!o.$isEmpty(e)||i(t,n).isValid()&&t.length===n.length}}}}var i=e("moment"),a=e("string-mask");s.$inject=["$locale"],t.exports=s},{moment:2,"string-mask":3}],19:[function(e,t,n){"use strict";var r=angular.module("ui.utils.masks.global",[e("../helpers")]).directive("uiDateMask",e("./date/date")).directive("uiMoneyMask",e("./money/money")).directive("uiNumberMask",e("./number/number")).directive("uiPercentageMask",e("./percentage/percentage")).directive("uiScientificNotationMask",e("./scientific-notation/scientific-notation")).directive("uiTimeMask",e("./time/time")).directive("uiCreditCard",e("./credit-card/credit-card"));t.exports=r.name},{"../helpers":25,"./credit-card/credit-card":17,"./date/date":18,"./money/money":20,"./number/number":21,"./percentage/percentage":22,"./scientific-notation/scientific-notation":23,"./time/time":24}],20:[function(e,t,n){"use strict";function r(e,t,n){return{restrict:"A",require:"ngModel",link:function(r,a,o,u){function l(e){var t=e>0?h+new Array(e+1).join("0"):"",n="#"+f+"##0"+t;return angular.isDefined(o.uiCurrencyAfter)?n+=p:n=p+n,new s(n,{reverse:!0})}function c(e){if(u.$isEmpty(e))return e;var t=angular.isDefined(o.uiNegativeNumber)&&e<0?"-":"",r=n.prepareNumberToFormatter(e,v);return angular.isDefined(o.uiCurrencyAfter)?t+y.apply(r)+m:t+m+y.apply(r)}function d(e){if(u.$isEmpty(e))return e;var t,n=e.replace(/[^\d]+/g,"");if(n=n.replace(/^[0]+([1-9])/,"$1"),n=n||"0",g&&angular.isDefined(o.uiCurrencyAfter)&&0!==n&&(n=n.substring(0,n.length-1),g=!1),t=angular.isDefined(o.uiCurrencyAfter)?y.apply(n)+m:m+y.apply(n),angular.isDefined(o.uiNegativeNumber)){var r="-"===e[0],s="-"===e.slice(-1);s^r&&n&&(n*=-1,t="-"+t)}return e!==t&&(u.$setViewValue(t),u.$render()),t?parseInt(t.replace(/[^\d\-]+/g,""))/Math.pow(10,v):null}var h=e.NUMBER_FORMATS.DECIMAL_SEP,f=e.NUMBER_FORMATS.GROUP_SEP,m=e.NUMBER_FORMATS.CURRENCY_SYM,p=" ",v=t(o.uiMoneyMask)(r),g=!1;a.bind("keydown keypress",function(e){g=8===e.which}),angular.isDefined(o.uiDecimalDelimiter)&&(h=o.uiDecimalDelimiter),angular.isDefined(o.uiThousandsDelimiter)&&(f=o.uiThousandsDelimiter),angular.isDefined(o.uiHideGroupSep)&&(f=""),angular.isDefined(o.uiHideSpace)&&(p=""),angular.isDefined(o.currencySymbol)&&(m=o.currencySymbol,0===o.currencySymbol.length&&(p="")),isNaN(v)&&(v=2),v=parseInt(v);var y=l(v);if(u.$formatters.push(c),u.$parsers.push(d),o.uiMoneyMask&&r.$watch(o.uiMoneyMask,function(e){v=isNaN(e)?2:e,v=parseInt(v),y=l(v),d(u.$viewValue)}),o.min){var _;u.$validators.min=function(e){return i.minNumber(u,e,_)},r.$watch(o.min,function(e){_=e,u.$validate()})}if(o.max){var k;u.$validators.max=function(e){return i.maxNumber(u,e,k)},r.$watch(o.max,function(e){k=e,u.$validate()})}}}}var s=e("string-mask"),i=e("validators");r.$inject=["$locale","$parse","PreFormatters"],t.exports=r},{"string-mask":3,validators:"validators"}],21:[function(e,t,n){"use strict";function r(e,t,n,r){return{restrict:"A",require:"ngModel",link:function(i,a,o,u){function l(e){if(u.$isEmpty(e))return null;var t=n.clearDelimitersAndLeadingZeros(e)||"0",r=p.apply(t),s=parseFloat(v.apply(t));if(angular.isDefined(o.uiNegativeNumber)){var i="-"===e[0],a="-"===e.slice(-1);(a^i||"-"===e)&&(s*=-1,r="-"+(0!==s?r:""))}return u.$viewValue!==r&&(u.$setViewValue(r),u.$render()),s}function c(e){if(u.$isEmpty(e))return e;var t=angular.isDefined(o.uiNegativeNumber)&&e<0?"-":"",r=n.prepareNumberToFormatter(e,m);return t+p.apply(r)}function d(){"-"===u.$viewValue&&(u.$setViewValue(""),u.$render())}var h=e.NUMBER_FORMATS.DECIMAL_SEP,f=e.NUMBER_FORMATS.GROUP_SEP,m=t(o.uiNumberMask)(i);angular.isDefined(o.uiHideGroupSep)&&(f=""),isNaN(m)&&(m=2);var p=r.viewMask(m,h,f),v=r.modelMask(m);if(a.on("blur",d),u.$formatters.push(c),u.$parsers.push(l),o.uiNumberMask&&i.$watch(o.uiNumberMask,function(e){m=isNaN(e)?2:e,p=r.viewMask(m,h,f),v=r.modelMask(m),l(u.$viewValue)}),o.min){var g;u.$validators.min=function(e){return s.minNumber(u,e,g)},i.$watch(o.min,function(e){g=e,u.$validate()})}if(o.max){var y;u.$validators.max=function(e){return s.maxNumber(u,e,y)},i.$watch(o.max,function(e){y=e,u.$validate()})}}}}var s=e("validators");r.$inject=["$locale","$parse","PreFormatters","NumberMasks"],t.exports=r},{validators:"validators"}],22:[function(e,t,n){"use strict";function r(e,t,n,r){function i(e,t,r){return n.clearDelimitersAndLeadingZeros((parseFloat(e)*r).toFixed(t))}return{restrict:"A",require:"ngModel",link:function(t,a,o,u){function l(e){if(u.$isEmpty(e))return e;var t=i(e,f,v.multiplier);return y.apply(t)+(m?"%":" %")}function c(e){if(u.$isEmpty(e))return null;var t=n.clearDelimitersAndLeadingZeros(e)||"0";e.length>1&&e.indexOf("%")===-1&&(t=t.slice(0,t.length-1)),p&&1===e.length&&"%"!==e&&(t="0");var r=m?"%":" %",s=y.apply(t)+r,i=parseFloat(_.apply(t));return u.$viewValue!==s&&(u.$setViewValue(s),u.$render()),i}var d=e.NUMBER_FORMATS.DECIMAL_SEP,h=e.NUMBER_FORMATS.GROUP_SEP,f=parseInt(o.uiPercentageMask),m=!1,p=!1;a.bind("keydown keypress",function(e){p=8===e.which});var v={multiplier:100,decimalMask:2};angular.isDefined(o.uiHideGroupSep)&&(h=""),angular.isDefined(o.uiHideSpace)&&(m=!0),angular.isDefined(o.uiPercentageValue)&&(v.multiplier=1,v.decimalMask=0),isNaN(f)&&(f=2);var g=f+v.decimalMask,y=r.viewMask(f,d,h),_=r.modelMask(g);if(u.$formatters.push(l),u.$parsers.push(c),o.uiPercentageMask&&t.$watch(o.uiPercentageMask,function(e){f=isNaN(e)?2:e,angular.isDefined(o.uiPercentageValue)&&(v.multiplier=1,v.decimalMask=0),g=f+v.decimalMask,y=r.viewMask(f,d,h),_=r.modelMask(g),c(u.$viewValue)}),o.min){var k;u.$validators.min=function(e){return s.minNumber(u,e,k)},t.$watch(o.min,function(e){k=e,u.$validate()})}if(o.max){var S;u.$validators.max=function(e){return s.maxNumber(u,e,S)},t.$watch(o.max,function(e){S=e,u.$validate()})}}}}var s=e("validators");r.$inject=["$locale","$parse","PreFormatters","NumberMasks"],t.exports=r},{validators:"validators"}],23:[function(e,t,n){"use strict";function r(e,t){function n(e){var t="0";if(e>0){t+=r;for(var n=0;n<e;n++)t+="0"}return new s(t,{reverse:!0})}var r=e.NUMBER_FORMATS.DECIMAL_SEP,i=2;return{restrict:"A",require:"ngModel",link:function(e,s,a,o){function u(e){var t=e.toString(),n=t.match(/(-?[0-9]*)[\.]?([0-9]*)?[Ee]?([\+-]?[0-9]*)?/);return{integerPartOfSignificand:n[1],decimalPartOfSignificand:n[2],exponent:0|n[3]}}function l(e){if(o.$isEmpty(e))return e;"string"==typeof e?e=e.replace(r,"."):"number"==typeof e&&(e=e.toExponential(d));var t,n,s=u(e),i=s.integerPartOfSignificand||0,a=i.toString();angular.isDefined(s.decimalPartOfSignificand)&&(a+=s.decimalPartOfSignificand);var l=(i>=1||i<=-1)&&(angular.isDefined(s.decimalPartOfSignificand)&&s.decimalPartOfSignificand.length>d||0===d&&a.length>=2);return l&&(n=a.slice(d+1,a.length),a=a.slice(0,d+1)),t=h.apply(a),0!==s.exponent&&(n=s.exponent),angular.isDefined(n)&&(t+="e"+n),t}function c(e){if(o.$isEmpty(e))return e;var t=l(e),n=parseFloat(t.replace(r,"."));return o.$viewValue!==t&&(o.$setViewValue(t),o.$render()),n}var d=t(a.uiScientificNotationMask)(e);isNaN(d)&&(d=i);var h=n(d);o.$formatters.push(l),o.$parsers.push(c),o.$validators.max=function(e){return o.$isEmpty(e)||e<Number.MAX_VALUE}}}}var s=e("string-mask");r.$inject=["$locale","$parse"],t.exports=r},{"string-mask":3}],24:[function(e,t,n){"use strict";var r=e("string-mask");t.exports=function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,s){function i(e){if(s.$isEmpty(e))return e;var t=e.replace(/[^0-9]/g,"").slice(0,u)||"";return(l.apply(t)||"").replace(/[^0-9]$/,"")}var a="00:00:00";angular.isDefined(n.uiTimeMask)&&"short"===n.uiTimeMask&&(a="00:00");var o=a.length,u=a.replace(":","").length,l=new r(a);s.$formatters.push(i),s.$parsers.push(function(e){if(s.$isEmpty(e))return e;var t=i(e),n=t;return s.$viewValue!==t&&(s.$setViewValue(t),s.$render()),n}),s.$validators.time=function(e){if(s.$isEmpty(e))return!0;var t=e.toString().split(/:/).filter(function(e){return!!e}),n=parseInt(t[0]),r=parseInt(t[1]),i=parseInt(t[2]||0);return e.toString().length===o&&n<24&&r<60&&i<60}}}}},{"string-mask":3}],25:[function(e,t,n){"use strict";var r=e("string-mask"),s=angular.module("ui.utils.masks.helpers",[]);t.exports=s.name,s.factory("PreFormatters",[function(){function e(e){if("0"===e)return"0";var t=e.replace(/^-/,"").replace(/^0*/,"");return t.replace(/[^0-9]/g,"")}function t(t,n){return e(parseFloat(t).toFixed(n))}return{clearDelimitersAndLeadingZeros:e,prepareNumberToFormatter:t}}]).factory("NumberMasks",[function(){return{viewMask:function(e,t,n){var s="#"+n+"##0";if(e>0){s+=t;for(var i=0;i<e;i++)s+="0"}return new r(s,{reverse:!0})},modelMask:function(e){var t="###0";if(e>0){t+=".";for(var n=0;n<e;n++)t+="0"}return new r(t,{reverse:!0})}}}])},{"string-mask":3}],26:[function(e,t,n){"use strict";var r=e("string-mask"),s=e("mask-factory"),i=new r("(000) 000-0000"),a=new r("+00-00-000-000000");t.exports=s({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"")},format:function(e){var t;return t=e.length<11?i.apply(e)||"":a.apply(e),t.trim().replace(/[^0-9]$/,"")},validations:{usPhoneNumber:function(e){return e&&e.toString().length>9}}})},{"mask-factory":"mask-factory","string-mask":3}],27:[function(e,t,n){"use strict";var r=angular.module("ui.utils.masks.us",[e("../helpers")]).directive("uiUsPhoneNumber",e("./phone/us-phone"));t.exports=r.name},{"../helpers":25,"./phone/us-phone":26}],"mask-factory":[function(e,t,n){"use strict";t.exports=function(e){return function(){return{restrict:"A",require:"ngModel",link:function(t,n,r,s){s.$formatters.push(function(t){if(s.$isEmpty(t))return t;var n=e.clearValue(t);return e.format(n)}),s.$parsers.push(function(t){if(s.$isEmpty(t))return t;var n=e.clearValue(t),r=e.format(n);if(s.$viewValue!==r&&(s.$setViewValue(r),s.$render()),angular.isUndefined(e.getModelValue))return n;var i=typeof s.$modelValue;return e.getModelValue(r,i)}),angular.forEach(e.validations,function(e,t){s.$validators[t]=function(t,n){return s.$isEmpty(t)||e(t,n)}})}}}}},{}],validators:[function(e,t,n){"use strict";t.exports={maxNumber:function(e,t,n){var r=parseFloat(n,10);return e.$isEmpty(t)||isNaN(r)||t<=r},minNumber:function(e,t,n){var r=parseFloat(n,10);return e.$isEmpty(t)||isNaN(r)||t>=r}}},{}]},{},[4]);