@react-querybuilder/antd 4.1.3 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -24
- package/dist/index.cjs.js +11 -1
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +3798 -25
- package/dist/index.es.js.map +1 -0
- package/dist/types/AntDActionElement.d.ts +2 -3
- package/dist/types/AntDDragHandle.d.ts +1 -2
- package/dist/types/AntDNotToggle.d.ts +1 -2
- package/dist/types/AntDValueEditor.d.ts +1 -2
- package/dist/types/AntDValueSelector.d.ts +2 -3
- package/dist/types/index.d.ts +8 -5
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## @react-querybuilder/antd
|
|
2
2
|
|
|
3
|
-
Official [
|
|
3
|
+
Official [react-querybuilder](https://npmjs.com/package/react-querybuilder) components for [Ant Design](https://ant.design/).
|
|
4
4
|
|
|
5
5
|
To see them in action, check out the [`react-querybuilder` demo](https://react-querybuilder.js.org/react-querybuilder/) and choose "Ant Design" from the Style drop-down.
|
|
6
6
|
|
|
@@ -16,17 +16,11 @@ yarn add react-querybuilder @react-querybuilder/antd @ant-design/icons antd
|
|
|
16
16
|
|
|
17
17
|
```tsx
|
|
18
18
|
import QueryBuilder, { RuleGroupType } from 'react-querybuilder';
|
|
19
|
-
import {
|
|
20
|
-
AntDActionElement,
|
|
21
|
-
AntDDragHandle,
|
|
22
|
-
AntDNotToggle,
|
|
23
|
-
AntDValueEditor,
|
|
24
|
-
AntDValueSelector
|
|
25
|
-
} from '@react-querybuilder/antd';
|
|
19
|
+
import { antdControlElements } from '@react-querybuilder/antd';
|
|
26
20
|
|
|
27
21
|
const fields = [
|
|
28
22
|
{ name: 'firstName', label: 'First Name' },
|
|
29
|
-
{ name: 'lastName', label: 'Last Name' }
|
|
23
|
+
{ name: 'lastName', label: 'Last Name' },
|
|
30
24
|
];
|
|
31
25
|
|
|
32
26
|
const App = () => {
|
|
@@ -36,21 +30,8 @@ const App = () => {
|
|
|
36
30
|
<QueryBuilder
|
|
37
31
|
fields={fields}
|
|
38
32
|
query={query}
|
|
39
|
-
onQueryChange={
|
|
40
|
-
controlElements={
|
|
41
|
-
addGroupAction: AntDActionElement,
|
|
42
|
-
addRuleAction: AntDActionElement,
|
|
43
|
-
cloneGroupAction: AntDActionElement,
|
|
44
|
-
cloneRuleAction: AntDActionElement,
|
|
45
|
-
combinatorSelector: AntDValueSelector,
|
|
46
|
-
fieldSelector: AntDValueSelector,
|
|
47
|
-
notToggle: AntDNotToggle,
|
|
48
|
-
operatorSelector: AntDValueSelector,
|
|
49
|
-
removeGroupAction: AntDActionElement,
|
|
50
|
-
removeRuleAction: AntDActionElement,
|
|
51
|
-
valueEditor: AntDValueEditor,
|
|
52
|
-
dragHandle: AntDDragHandle
|
|
53
|
-
}}
|
|
33
|
+
onQueryChange={q => setQuery(q)}
|
|
34
|
+
controlElements={antdControlElements}
|
|
54
35
|
/>
|
|
55
36
|
);
|
|
56
37
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Vr=Object.defineProperty,Gr=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var Ne=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var jt=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,at=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&jt(e,r,t[r]);if(Ne)for(var r of Ne(t))Gt.call(t,r)&&jt(e,r,t[r]);return e},nt=(e,t)=>Gr(e,jr(t));var zt=(e,t)=>{var r={};for(var s in e)Vt.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&Ne)for(var s of Ne(e))t.indexOf(s)<0&&Gt.call(e,s)&&(r[s]=e[s]);return r};Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var Fe=require("react"),F=require("antd"),zr=require("@ant-design/icons");function $r(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Y=$r(Fe);const z=({className:e,handleOnClick:t,label:r,title:s,disabled:a,disabledTranslation:n})=>Y.default.createElement(F.Button,{type:"primary",className:e,title:n&&a?n.title:s,onClick:i=>t(i),disabled:a&&!n},n&&a?n.label:r);z.displayName="AntDActionElement";const it=Fe.forwardRef(({className:e,title:t},r)=>Y.default.createElement("span",{ref:r,className:e,title:t},Y.default.createElement(zr.HolderOutlined,null)));it.displayName="AntDDragHandle";const ot=({className:e,handleOnChange:t,label:r,checked:s,title:a,disabled:n})=>Y.default.createElement(F.Switch,{title:a,className:e,onChange:i=>t(i),checked:!!s,disabled:n,checkedChildren:r,unCheckedChildren:"="});ot.displayName="AntDNotToggle";//! moment.js
|
|
2
|
+
//! version : 2.29.1
|
|
3
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
+
//! license : MIT
|
|
5
|
+
//! momentjs.com
|
|
6
|
+
var $t;function l(){return $t.apply(null,arguments)}function Zr(e){$t=e}function L(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function oe(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function R(e){return e===void 0}function J(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Me(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Zt(e,t){var r=[],s;for(s=0;s<e.length;++s)r.push(t(e[s],s));return r}function ae(e,t){for(var r in t)w(t,r)&&(e[r]=t[r]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function $(e,t,r,s){return Sr(e,t,r,s,!0).utc()}function Br(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function c(e){return e._pf==null&&(e._pf=Br()),e._pf}var ut;Array.prototype.some?ut=Array.prototype.some:ut=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function dt(e){if(e._isValid==null){var t=c(e),r=ut.call(t.parsedDateParts,function(a){return a!=null}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s}return e._isValid}function Ae(e){var t=$(NaN);return e!=null?ae(c(t),e):c(t).userInvalidated=!0,t}var ht=l.momentProperties=[],ft=!1;function ct(e,t){var r,s,a;if(R(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),R(t._i)||(e._i=t._i),R(t._f)||(e._f=t._f),R(t._l)||(e._l=t._l),R(t._strict)||(e._strict=t._strict),R(t._tzm)||(e._tzm=t._tzm),R(t._isUTC)||(e._isUTC=t._isUTC),R(t._offset)||(e._offset=t._offset),R(t._pf)||(e._pf=c(t)),R(t._locale)||(e._locale=t._locale),ht.length>0)for(r=0;r<ht.length;r++)s=ht[r],a=t[s],R(a)||(e[s]=a);return e}function ge(e){ct(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ft===!1&&(ft=!0,l.updateOffset(this),ft=!1)}function H(e){return e instanceof ge||e!=null&&e._isAMomentObject!=null}function Bt(e){l.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,t){var r=!0;return ae(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),r){var s=[],a,n,i;for(n=0;n<arguments.length;n++){if(a="",typeof arguments[n]=="object"){a+=`
|
|
7
|
+
[`+n+"] ";for(i in arguments[0])w(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];s.push(a)}Bt(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(s).join("")+`
|
|
9
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var qt={};function Jt(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),qt[e]||(Bt(t),qt[e]=!0)}l.suppressDeprecationWarnings=!1;l.deprecationHandler=null;function Z(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function qr(e){var t,r;for(r in e)w(e,r)&&(t=e[r],Z(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mt(e,t){var r=ae({},e),s;for(s in t)w(t,s)&&(oe(e[s])&&oe(t[s])?(r[s]={},ae(r[s],e[s]),ae(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)w(e,s)&&!w(t,s)&&oe(e[s])&&(r[s]=ae({},r[s]));return r}function _t(e){e!=null&&this.set(e)}var yt;Object.keys?yt=Object.keys:yt=function(e){var t,r=[];for(t in e)w(e,t)&&r.push(t);return r};var Jr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qr(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return Z(s)?s.call(t,r):s}function B(e,t,r){var s=""+Math.abs(e),a=t-s.length,n=e>=0;return(n?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+s}var wt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ee=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kt={},ce={};function h(e,t,r,s){var a=s;typeof s=="string"&&(a=function(){return this[s]()}),e&&(ce[e]=a),t&&(ce[t[0]]=function(){return B(a.apply(this,arguments),t[1],t[2])}),r&&(ce[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Xr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Kr(e){var t=e.match(wt),r,s;for(r=0,s=t.length;r<s;r++)ce[t[r]]?t[r]=ce[t[r]]:t[r]=Xr(t[r]);return function(a){var n="",i;for(i=0;i<s;i++)n+=Z(t[i])?t[i].call(a,e):t[i];return n}}function Ce(e,t){return e.isValid()?(t=Qt(t,e.localeData()),kt[t]=kt[t]||Kr(t),kt[t](e)):e.localeData().invalidDate()}function Qt(e,t){var r=5;function s(a){return t.longDateFormat(a)||a}for(Ee.lastIndex=0;r>=0&&Ee.test(e);)e=e.replace(Ee,s),Ee.lastIndex=0,r-=1;return e}var es={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"};function ts(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(wt).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var rs="Invalid date";function ss(){return this._invalidDate}var as="%d",ns=/\d{1,2}/;function is(e){return this._ordinal.replace("%d",e)}var os={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ls(e,t,r,s){var a=this._relativeTime[r];return Z(a)?a(e,t,r,s):a.replace(/%d/i,e)}function us(e,t){var r=this._relativeTime[e>0?"future":"past"];return Z(r)?r(t):r.replace(/%s/i,t)}var pe={};function x(e,t){var r=e.toLowerCase();pe[r]=pe[r+"s"]=pe[t]=e}function E(e){return typeof e=="string"?pe[e]||pe[e.toLowerCase()]:void 0}function St(e){var t={},r,s;for(s in e)w(e,s)&&(r=E(s),r&&(t[r]=e[s]));return t}var Xt={};function b(e,t){Xt[e]=t}function ds(e){var t=[],r;for(r in e)w(e,r)&&t.push({unit:r,priority:Xt[r]});return t.sort(function(s,a){return s.priority-a.priority}),t}function Ie(e){return e%4==0&&e%100!=0||e%400==0}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=C(t)),r}function me(e,t){return function(r){return r!=null?(Kt(this,e,r),l.updateOffset(this,t),this):Le(this,e)}}function Le(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Kt(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&Ie(e.year())&&e.month()===1&&e.date()===29?(r=_(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),$e(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function hs(e){return e=E(e),Z(this[e])?this[e]():this}function fs(e,t){if(typeof e=="object"){e=St(e);var r=ds(e),s;for(s=0;s<r.length;s++)this[r[s].unit](e[r[s].unit])}else if(e=E(e),Z(this[e]))return this[e](t);return this}var er=/\d/,W=/\d\d/,tr=/\d{3}/,Dt=/\d{4}/,He=/[+-]?\d{6}/,D=/\d\d?/,rr=/\d\d\d\d?/,sr=/\d\d\d\d\d\d?/,Ue=/\d{1,3}/,Mt=/\d{1,4}/,Ve=/[+-]?\d{1,6}/,_e=/\d+/,Ge=/[+-]?\d+/,cs=/Z|[+-]\d\d:?\d\d/gi,je=/Z|[+-]\d\d(?::?\d\d)?/gi,ms=/[+-]?\d+(\.\d{1,3})?/,ve=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ze;ze={};function u(e,t,r){ze[e]=Z(t)?t:function(s,a){return s&&r?r:t}}function _s(e,t){return w(ze,e)?ze[e](t._strict,t._locale):new RegExp(ys(e))}function ys(e){return N(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,a,n){return r||s||a||n}))}function N(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var gt={};function S(e,t){var r,s=t;for(typeof e=="string"&&(e=[e]),J(t)&&(s=function(a,n){n[t]=_(a)}),r=0;r<e.length;r++)gt[e[r]]=s}function Ye(e,t){S(e,function(r,s,a,n){a._w=a._w||{},t(r,a._w,a,n)})}function ws(e,t,r){t!=null&&w(gt,e)&>[e](t,r._a,r,e)}var P=0,Q=1,q=2,O=3,U=4,X=5,le=6,ks=7,Ss=8;function Ds(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function $e(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ds(t,12);return e+=(t-r)/12,r===1?Ie(e)?29:28:31-r%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1});h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});h("MMMM",0,0,function(e){return this.localeData().months(this,e)});x("month","M");b("month",8);u("M",D);u("MM",D,W);u("MMM",function(e,t){return t.monthsShortRegex(e)});u("MMMM",function(e,t){return t.monthsRegex(e)});S(["M","MM"],function(e,t){t[Q]=_(e)-1});S(["MMM","MMMM"],function(e,t,r,s){var a=r._locale.monthsParse(e,s,r._strict);a!=null?t[Q]=a:c(r).invalidMonth=e});var Ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ar="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gs=ve,ps=ve;function vs(e,t){return e?L(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nr).test(t)?"format":"standalone"][e.month()]:L(this._months)?this._months:this._months.standalone}function Ys(e,t){return e?L(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nr.test(t)?"format":"standalone"][e.month()]:L(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Os(e,t,r){var s,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)n=$([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(n,"").toLocaleLowerCase();return r?t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:null):(a=v.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:(a=v.call(this._longMonthsParse,i),a!==-1?a:null)):(a=v.call(this._longMonthsParse,i),a!==-1?a:(a=v.call(this._shortMonthsParse,i),a!==-1?a:null))}function Ts(e,t,r){var s,a,n;if(this._monthsParseExact)return Os.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(a=$([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[s]=new RegExp(n.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function ir(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!J(t))return e}return r=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function or(e){return e!=null?(ir(this,e),l.updateOffset(this,!0),this):Le(this,"Month")}function xs(){return $e(this.year(),this.month())}function bs(e){return this._monthsParseExact?(w(this,"_monthsRegex")||lr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=gs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ps(e){return this._monthsParseExact?(w(this,"_monthsRegex")||lr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=ps),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function lr(){function e(i,d){return d.length-i.length}var t=[],r=[],s=[],a,n;for(a=0;a<12;a++)n=$([2e3,a]),t.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(t.sort(e),r.sort(e),s.sort(e),a=0;a<12;a++)t[a]=N(t[a]),r[a]=N(r[a]);for(a=0;a<24;a++)s[a]=N(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}h("Y",0,0,function(){var e=this.year();return e<=9999?B(e,4):"+"+e});h(0,["YY",2],0,function(){return this.year()%100});h(0,["YYYY",4],0,"year");h(0,["YYYYY",5],0,"year");h(0,["YYYYYY",6,!0],0,"year");x("year","y");b("year",1);u("Y",Ge);u("YY",D,W);u("YYYY",Mt,Dt);u("YYYYY",Ve,He);u("YYYYYY",Ve,He);S(["YYYYY","YYYYYY"],P);S("YYYY",function(e,t){t[P]=e.length===2?l.parseTwoDigitYear(e):_(e)});S("YY",function(e,t){t[P]=l.parseTwoDigitYear(e)});S("Y",function(e,t){t[P]=parseInt(e,10)});function Oe(e){return Ie(e)?366:365}l.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var ur=me("FullYear",!0);function Rs(){return Ie(this.year())}function Ws(e,t,r,s,a,n,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,r,s,a,n,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,r,s,a,n,i),d}function Te(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ze(e,t,r){var s=7+t-r,a=(7+Te(e,0,s).getUTCDay()-t)%7;return-a+s-1}function dr(e,t,r,s,a){var n=(7+r-s)%7,i=Ze(e,s,a),d=1+7*(t-1)+n+i,f,m;return d<=0?(f=e-1,m=Oe(f)+d):d>Oe(e)?(f=e+1,m=d-Oe(e)):(f=e,m=d),{year:f,dayOfYear:m}}function xe(e,t,r){var s=Ze(e.year(),t,r),a=Math.floor((e.dayOfYear()-s-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+K(i,t,r)):a>K(e.year(),t,r)?(n=a-K(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function K(e,t,r){var s=Ze(e,t,r),a=Ze(e+1,t,r);return(Oe(e)-s+a)/7}h("w",["ww",2],"wo","week");h("W",["WW",2],"Wo","isoWeek");x("week","w");x("isoWeek","W");b("week",5);b("isoWeek",5);u("w",D);u("ww",D,W);u("W",D);u("WW",D,W);Ye(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=_(e)});function Ns(e){return xe(e,this._week.dow,this._week.doy).week}var Fs={dow:0,doy:6};function As(){return this._week.dow}function Es(){return this._week.doy}function Cs(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Is(e){var t=xe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day");h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});h("e",0,0,"weekday");h("E",0,0,"isoWeekday");x("day","d");x("weekday","e");x("isoWeekday","E");b("day",11);b("weekday",11);b("isoWeekday",11);u("d",D);u("e",D);u("E",D);u("dd",function(e,t){return t.weekdaysMinRegex(e)});u("ddd",function(e,t){return t.weekdaysShortRegex(e)});u("dddd",function(e,t){return t.weekdaysRegex(e)});Ye(["dd","ddd","dddd"],function(e,t,r,s){var a=r._locale.weekdaysParse(e,s,r._strict);a!=null?t.d=a:c(r).invalidWeekday=e});Ye(["d","e","E"],function(e,t,r,s){t[s]=_(e)});function Ls(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Hs(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Us="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Gs=ve,js=ve,zs=ve;function $s(e,t){var r=L(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?pt(r,this._week.dow):e?r[e.day()]:r}function Zs(e){return e===!0?pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bs(e){return e===!0?pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qs(e,t,r){var s,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)n=$([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(n,"").toLocaleLowerCase();return r?t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1||(a=v.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=v.call(this._minWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Js(e,t,r){var s,a,n;if(this._weekdaysParseExact)return qs.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(a=$([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[s]=new RegExp(n.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function Qs(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Ls(e,this.localeData()),this.add(e-t,"d")):t}function Xs(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ks(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Hs(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ea(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Gs),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ta(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=js),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ra(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zs),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vt(){function e(T,G){return G.length-T.length}var t=[],r=[],s=[],a=[],n,i,d,f,m;for(n=0;n<7;n++)i=$([2e3,1]).day(n),d=N(this.weekdaysMin(i,"")),f=N(this.weekdaysShort(i,"")),m=N(this.weekdays(i,"")),t.push(d),r.push(f),s.push(m),a.push(d),a.push(f),a.push(m);t.sort(e),r.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Yt(){return this.hours()%12||12}function sa(){return this.hours()||24}h("H",["HH",2],0,"hour");h("h",["hh",2],0,Yt);h("k",["kk",2],0,sa);h("hmm",0,0,function(){return""+Yt.apply(this)+B(this.minutes(),2)});h("hmmss",0,0,function(){return""+Yt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)});h("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)});h("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)});function fr(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}fr("a",!0);fr("A",!1);x("hour","h");b("hour",13);function cr(e,t){return t._meridiemParse}u("a",cr);u("A",cr);u("H",D);u("h",D);u("k",D);u("HH",D,W);u("hh",D,W);u("kk",D,W);u("hmm",rr);u("hmmss",sr);u("Hmm",rr);u("Hmmss",sr);S(["H","HH"],O);S(["k","kk"],function(e,t,r){var s=_(e);t[O]=s===24?0:s});S(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});S(["h","hh"],function(e,t,r){t[O]=_(e),c(r).bigHour=!0});S("hmm",function(e,t,r){var s=e.length-2;t[O]=_(e.substr(0,s)),t[U]=_(e.substr(s)),c(r).bigHour=!0});S("hmmss",function(e,t,r){var s=e.length-4,a=e.length-2;t[O]=_(e.substr(0,s)),t[U]=_(e.substr(s,2)),t[X]=_(e.substr(a)),c(r).bigHour=!0});S("Hmm",function(e,t,r){var s=e.length-2;t[O]=_(e.substr(0,s)),t[U]=_(e.substr(s))});S("Hmmss",function(e,t,r){var s=e.length-4,a=e.length-2;t[O]=_(e.substr(0,s)),t[U]=_(e.substr(s,2)),t[X]=_(e.substr(a))});function aa(e){return(e+"").toLowerCase().charAt(0)==="p"}var na=/[ap]\.?m?\.?/i,ia=me("Hours",!0);function oa(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var mr={calendar:Jr,longDateFormat:es,invalidDate:rs,ordinal:as,dayOfMonthOrdinalParse:ns,relativeTime:os,months:Ms,monthsShort:ar,week:Fs,weekdays:Us,weekdaysMin:Vs,weekdaysShort:hr,meridiemParse:na},g={},be={},Pe;function la(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function _r(e){return e&&e.toLowerCase().replace("_","-")}function ua(e){for(var t=0,r,s,a,n;t<e.length;){for(n=_r(e[t]).split("-"),r=n.length,s=_r(e[t+1]),s=s?s.split("-"):null;r>0;){if(a=Be(n.slice(0,r).join("-")),a)return a;if(s&&s.length>=r&&la(n,s)>=r-1)break;r--}t++}return Pe}function Be(e){var t=null,r;if(g[e]===void 0&&typeof module!="undefined"&&module&&module.exports)try{t=Pe._abbr,r=require,r("./locale/"+e),ne(t)}catch{g[e]=null}return g[e]}function ne(e,t){var r;return e&&(R(t)?r=ee(e):r=Ot(e,t),r?Pe=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Pe._abbr}function Ot(e,t){if(t!==null){var r,s=mr;if(t.abbr=e,g[e]!=null)Jt("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."),s=g[e]._config;else if(t.parentLocale!=null)if(g[t.parentLocale]!=null)s=g[t.parentLocale]._config;else if(r=Be(t.parentLocale),r!=null)s=r._config;else return be[t.parentLocale]||(be[t.parentLocale]=[]),be[t.parentLocale].push({name:e,config:t}),null;return g[e]=new _t(mt(s,t)),be[e]&&be[e].forEach(function(a){Ot(a.name,a.config)}),ne(e),g[e]}else return delete g[e],null}function da(e,t){if(t!=null){var r,s,a=mr;g[e]!=null&&g[e].parentLocale!=null?g[e].set(mt(g[e]._config,t)):(s=Be(e),s!=null&&(a=s._config),t=mt(a,t),s==null&&(t.abbr=e),r=new _t(t),r.parentLocale=g[e],g[e]=r),ne(e)}else g[e]!=null&&(g[e].parentLocale!=null?(g[e]=g[e].parentLocale,e===ne()&&ne(e)):g[e]!=null&&delete g[e]);return g[e]}function ee(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Pe;if(!L(e)){if(t=Be(e),t)return t;e=[e]}return ua(e)}function ha(){return yt(g)}function Tt(e){var t,r=e._a;return r&&c(e).overflow===-2&&(t=r[Q]<0||r[Q]>11?Q:r[q]<1||r[q]>$e(r[P],r[Q])?q:r[O]<0||r[O]>24||r[O]===24&&(r[U]!==0||r[X]!==0||r[le]!==0)?O:r[U]<0||r[U]>59?U:r[X]<0||r[X]>59?X:r[le]<0||r[le]>999?le:-1,c(e)._overflowDayOfYear&&(t<P||t>q)&&(t=q),c(e)._overflowWeeks&&t===-1&&(t=ks),c(e)._overflowWeekday&&t===-1&&(t=Ss),c(e).overflow=t),e}var fa=/^\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)?)?$/,ca=/^\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)?)?$/,ma=/Z|[+-]\d\d(?::?\d\d)?/,qe=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xt=[["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/]],_a=/^\/?Date\((-?\d+)/i,ya=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wa={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function yr(e){var t,r,s=e._i,a=fa.exec(s)||ca.exec(s),n,i,d,f;if(a){for(c(e).iso=!0,t=0,r=qe.length;t<r;t++)if(qe[t][1].exec(a[1])){i=qe[t][0],n=qe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,r=xt.length;t<r;t++)if(xt[t][1].exec(a[3])){d=(a[2]||" ")+xt[t][0];break}if(d==null){e._isValid=!1;return}}if(!n&&d!=null){e._isValid=!1;return}if(a[4])if(ma.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=i+(d||"")+(f||""),Pt(e)}else e._isValid=!1}function ka(e,t,r,s,a,n){var i=[Sa(e),ar.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function Sa(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Da(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ma(e,t,r){if(e){var s=hr.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(s!==a)return c(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function ga(e,t,r){if(e)return wa[e];if(t)return 0;var s=parseInt(r,10),a=s%100,n=(s-a)/100;return n*60+a}function wr(e){var t=ya.exec(Da(e._i)),r;if(t){if(r=ka(t[4],t[3],t[2],t[5],t[6],t[7]),!Ma(t[1],r,e))return;e._a=r,e._tzm=ga(t[8],t[9],t[10]),e._d=Te.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),c(e).rfc2822=!0}else e._isValid=!1}function pa(e){var t=_a.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(yr(e),e._isValid===!1)delete e._isValid;else return;if(wr(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ye(e,t,r){return e!=null?e:t!=null?t:r}function va(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function bt(e){var t,r,s=[],a,n,i;if(!e._d){for(a=va(e),e._w&&e._a[q]==null&&e._a[Q]==null&&Ya(e),e._dayOfYear!=null&&(i=ye(e._a[P],a[P]),(e._dayOfYear>Oe(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),r=Te(i,0,e._dayOfYear),e._a[Q]=r.getUTCMonth(),e._a[q]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[U]===0&&e._a[X]===0&&e._a[le]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?Te:Ws).apply(null,s),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function Ya(e){var t,r,s,a,n,i,d,f,m;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,r=ye(t.GG,e._a[P],xe(M(),1,4).year),s=ye(t.W,1),a=ye(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,m=xe(M(),n,i),r=ye(t.gg,e._a[P],m.year),s=ye(t.w,m.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),s<1||s>K(r,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(d=dr(r,s,a,n,i),e._a[P]=d.year,e._dayOfYear=d.dayOfYear)}l.ISO_8601=function(){};l.RFC_2822=function(){};function Pt(e){if(e._f===l.ISO_8601){yr(e);return}if(e._f===l.RFC_2822){wr(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,r,s,a,n,i,d=t.length,f=0,m;for(a=Qt(e._f,e._locale).match(wt)||[],r=0;r<a.length;r++)n=a[r],s=(t.match(_s(n,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&c(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),f+=s.length),ce[n]?(s?c(e).empty=!1:c(e).unusedTokens.push(n),ws(n,s,e)):e._strict&&!s&&c(e).unusedTokens.push(n);c(e).charsLeftOver=d-f,t.length>0&&c(e).unusedInput.push(t),e._a[O]<=12&&c(e).bigHour===!0&&e._a[O]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[O]=Oa(e._locale,e._a[O],e._meridiem),m=c(e).era,m!==null&&(e._a[P]=e._locale.erasConvertYear(m,e._a[P])),bt(e),Tt(e)}function Oa(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Ta(e){var t,r,s,a,n,i,d=!1;if(e._f.length===0){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<e._f.length;a++)n=0,i=!1,t=ct({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Pt(t),dt(t)&&(i=!0),n+=c(t).charsLeftOver,n+=c(t).unusedTokens.length*10,c(t).score=n,d?n<s&&(s=n,r=t):(s==null||n<s||i)&&(s=n,r=t,i&&(d=!0));ae(e,r||t)}function xa(e){if(!e._d){var t=St(e._i),r=t.day===void 0?t.date:t.day;e._a=Zt([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),bt(e)}}function ba(e){var t=new ge(Tt(kr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function kr(e){var t=e._i,r=e._f;return e._locale=e._locale||ee(e._l),t===null||r===void 0&&t===""?Ae({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),H(t)?new ge(Tt(t)):(Me(t)?e._d=t:L(r)?Ta(e):r?Pt(e):Pa(e),dt(e)||(e._d=null),e))}function Pa(e){var t=e._i;R(t)?e._d=new Date(l.now()):Me(t)?e._d=new Date(t.valueOf()):typeof t=="string"?pa(e):L(t)?(e._a=Zt(t.slice(0),function(r){return parseInt(r,10)}),bt(e)):oe(t)?xa(e):J(t)?e._d=new Date(t):l.createFromInputFallback(e)}function Sr(e,t,r,s,a){var n={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(oe(e)&<(e)||L(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=r,n._i=e,n._f=t,n._strict=s,ba(n)}function M(e,t,r,s){return Sr(e,t,r,s,!1)}var Ra=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ae()}),Wa=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ae()});function Dr(e,t){var r,s;if(t.length===1&&L(t[0])&&(t=t[0]),!t.length)return M();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function Na(){var e=[].slice.call(arguments,0);return Dr("isBefore",e)}function Fa(){var e=[].slice.call(arguments,0);return Dr("isAfter",e)}var Aa=function(){return Date.now?Date.now():+new Date},Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ea(e){var t,r=!1,s;for(t in e)if(w(e,t)&&!(v.call(Re,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<Re.length;++s)if(e[Re[s]]){if(r)return!1;parseFloat(e[Re[s]])!==_(e[Re[s]])&&(r=!0)}return!0}function Ca(){return this._isValid}function Ia(){return V(NaN)}function Je(e){var t=St(e),r=t.year||0,s=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,d=t.hour||0,f=t.minute||0,m=t.second||0,T=t.millisecond||0;this._isValid=Ea(t),this._milliseconds=+T+m*1e3+f*6e4+d*1e3*60*60,this._days=+i+n*7,this._months=+a+s*3+r*12,this._data={},this._locale=ee(),this._bubble()}function Qe(e){return e instanceof Je}function Rt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function La(e,t,r){var s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<s;i++)(r&&e[i]!==t[i]||!r&&_(e[i])!==_(t[i]))&&n++;return n+a}function Mr(e,t){h(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+B(~~(r/60),2)+t+B(~~r%60,2)})}Mr("Z",":");Mr("ZZ","");u("Z",je);u("ZZ",je);S(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Wt(je,e)});var Ha=/([\+\-]|\d\d)/gi;function Wt(e,t){var r=(t||"").match(e),s,a,n;return r===null?null:(s=r[r.length-1]||[],a=(s+"").match(Ha)||["-",0,0],n=+(a[1]*60)+_(a[2]),n===0?0:a[0]==="+"?n:-n)}function Nt(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(H(e)||Me(e)?e.valueOf():M(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),l.updateOffset(r,!1),r):M(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Ua(e,t,r){var s=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Wt(je,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=Ft(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),s!==e&&(!t||this._changeInProgress?Yr(this,V(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Ft(this)}function Va(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ga(e){return this.utcOffset(0,e)}function ja(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this}function za(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Wt(cs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function $a(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function Za(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ba(){if(!R(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ct(e,this),e=kr(e),e._a?(t=e._isUTC?$(e._a):M(e._a),this._isDSTShifted=this.isValid()&&La(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qa(){return this.isValid()?!this._isUTC:!1}function Ja(){return this.isValid()?this._isUTC:!1}function gr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Qa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function V(e,t){var r=e,s=null,a,n,i;return Qe(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:J(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=Qa.exec(e))?(a=s[1]==="-"?-1:1,r={y:0,d:_(s[q])*a,h:_(s[O])*a,m:_(s[U])*a,s:_(s[X])*a,ms:_(Rt(s[le]*1e3))*a}):(s=Xa.exec(e))?(a=s[1]==="-"?-1:1,r={y:ue(s[2],a),M:ue(s[3],a),w:ue(s[4],a),d:ue(s[5],a),h:ue(s[6],a),m:ue(s[7],a),s:ue(s[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=Ka(M(r.from),M(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),n=new Je(r),Qe(e)&&w(e,"_locale")&&(n._locale=e._locale),Qe(e)&&w(e,"_isValid")&&(n._isValid=e._isValid),n}V.fn=Je.prototype;V.invalid=Ia;function ue(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function pr(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Ka(e,t){var r;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?r=pr(e,t):(r=pr(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function vr(e,t){return function(r,s){var a,n;return s!==null&&!isNaN(+s)&&(Jt(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."),n=r,r=s,s=n),a=V(r,s),Yr(this,a,e),this}}function Yr(e,t,r,s){var a=t._milliseconds,n=Rt(t._days),i=Rt(t._months);!e.isValid()||(s=s==null?!0:s,i&&ir(e,Le(e,"Month")+i*r),n&&Kt(e,"Date",Le(e,"Date")+n*r),a&&e._d.setTime(e._d.valueOf()+a*r),s&&l.updateOffset(e,n||i))}var en=vr(1,"add"),tn=vr(-1,"subtract");function Or(e){return typeof e=="string"||e instanceof String}function rn(e){return H(e)||Me(e)||Or(e)||J(e)||an(e)||sn(e)||e===null||e===void 0}function sn(e){var t=oe(e)&&!lt(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n;for(a=0;a<s.length;a+=1)n=s[a],r=r||w(e,n);return t&&r}function an(e){var t=L(e),r=!1;return t&&(r=e.filter(function(s){return!J(s)&&Or(e)}).length===0),t&&r}function nn(e){var t=oe(e)&&!lt(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<s.length;a+=1)n=s[a],r=r||w(e,n);return t&&r}function on(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function ln(e,t){arguments.length===1&&(arguments[0]?rn(arguments[0])?(e=arguments[0],t=void 0):nn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||M(),s=Nt(r,this).startOf("day"),a=l.calendarFormat(this,s)||"sameElse",n=t&&(Z(t[a])?t[a].call(this,r):t[a]);return this.format(n||this.localeData().calendar(a,this,M(r)))}function un(){return new ge(this)}function dn(e,t){var r=H(e)?e:M(e);return this.isValid()&&r.isValid()?(t=E(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function hn(e,t){var r=H(e)?e:M(e);return this.isValid()&&r.isValid()?(t=E(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function fn(e,t,r,s){var a=H(e)?e:M(e),n=H(t)?t:M(t);return this.isValid()&&a.isValid()&&n.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(s[1]===")"?this.isBefore(n,r):!this.isAfter(n,r))):!1}function cn(e,t){var r=H(e)?e:M(e),s;return this.isValid()&&r.isValid()?(t=E(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function mn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function _n(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function yn(e,t,r){var s,a,n;if(!this.isValid())return NaN;if(s=Nt(e,this),!s.isValid())return NaN;switch(a=(s.utcOffset()-this.utcOffset())*6e4,t=E(t),t){case"year":n=Xe(this,s)/12;break;case"month":n=Xe(this,s);break;case"quarter":n=Xe(this,s)/3;break;case"second":n=(this-s)/1e3;break;case"minute":n=(this-s)/6e4;break;case"hour":n=(this-s)/36e5;break;case"day":n=(this-s-a)/864e5;break;case"week":n=(this-s-a)/6048e5;break;default:n=this-s}return r?n:C(n)}function Xe(e,t){if(e.date()<t.date())return-Xe(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),a,n;return t-s<0?(a=e.clone().add(r-1,"months"),n=(t-s)/(s-a)):(a=e.clone().add(r+1,"months"),n=(t-s)/(a-s)),-(r+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function wn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function kn(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Ce(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ce(r,"Z")):Ce(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Sn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(r+s+a+n)}function Dn(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Ce(this,e);return this.localeData().postformat(t)}function Mn(e,t){return this.isValid()&&(H(e)&&e.isValid()||M(e).isValid())?V({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gn(e){return this.from(M(),e)}function pn(e,t){return this.isValid()&&(H(e)&&e.isValid()||M(e).isValid())?V({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vn(e){return this.to(M(),e)}function Tr(e){var t;return e===void 0?this._locale._abbr:(t=ee(e),t!=null&&(this._locale=t),this)}var xr=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function br(){return this._locale}var Ke=1e3,we=60*Ke,et=60*we,Pr=(365*400+97)*24*et;function ke(e,t){return(e%t+t)%t}function Rr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Pr:new Date(e,t,r).valueOf()}function Wr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Pr:Date.UTC(e,t,r)}function Yn(e){var t,r;if(e=E(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Wr:Rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ke(t+(this._isUTC?0:this.utcOffset()*we),et);break;case"minute":t=this._d.valueOf(),t-=ke(t,we);break;case"second":t=this._d.valueOf(),t-=ke(t,Ke);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function On(e){var t,r;if(e=E(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Wr:Rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=et-ke(t+(this._isUTC?0:this.utcOffset()*we),et)-1;break;case"minute":t=this._d.valueOf(),t+=we-ke(t,we)-1;break;case"second":t=this._d.valueOf(),t+=Ke-ke(t,Ke)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Tn(){return this._d.valueOf()-(this._offset||0)*6e4}function xn(){return Math.floor(this.valueOf()/1e3)}function bn(){return new Date(this.valueOf())}function Pn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rn(){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 Wn(){return this.isValid()?this.toISOString():null}function Nn(){return dt(this)}function Fn(){return ae({},c(this))}function An(){return c(this).overflow}function En(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr");h("NN",0,0,"eraAbbr");h("NNN",0,0,"eraAbbr");h("NNNN",0,0,"eraName");h("NNNNN",0,0,"eraNarrow");h("y",["y",1],"yo","eraYear");h("y",["yy",2],0,"eraYear");h("y",["yyy",3],0,"eraYear");h("y",["yyyy",4],0,"eraYear");u("N",At);u("NN",At);u("NNN",At);u("NNNN",Zn);u("NNNNN",Bn);S(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var a=r._locale.erasParse(e,s,r._strict);a?c(r).era=a:c(r).invalidEra=e});u("y",_e);u("yy",_e);u("yyy",_e);u("yyyy",_e);u("yo",qn);S(["y","yy","yyy","yyyy"],P);S(["yo"],function(e,t,r,s){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[P]=r._locale.eraYearOrdinalParse(e,a):t[P]=parseInt(e,10)});function Cn(e,t){var r,s,a,n=this._eras||ee("en")._eras;for(r=0,s=n.length;r<s;++r){switch(typeof n[r].since){case"string":a=l(n[r].since).startOf("day"),n[r].since=a.valueOf();break}switch(typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":a=l(n[r].until).startOf("day").valueOf(),n[r].until=a.valueOf();break}}return n}function In(e,t,r){var s,a,n=this.eras(),i,d,f;for(e=e.toUpperCase(),s=0,a=n.length;s<a;++s)if(i=n[s].name.toUpperCase(),d=n[s].abbr.toUpperCase(),f=n[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(d===e)return n[s];break;case"NNNN":if(i===e)return n[s];break;case"NNNNN":if(f===e)return n[s];break}else if([i,d,f].indexOf(e)>=0)return n[s]}function Ln(e,t){var r=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*r}function Hn(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function Un(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function Vn(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function Gn(){var e,t,r,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return(this.year()-l(a[e].since).year())*r+a[e].offset;return this.year()}function jn(e){return w(this,"_erasNameRegex")||Et.call(this),e?this._erasNameRegex:this._erasRegex}function zn(e){return w(this,"_erasAbbrRegex")||Et.call(this),e?this._erasAbbrRegex:this._erasRegex}function $n(e){return w(this,"_erasNarrowRegex")||Et.call(this),e?this._erasNarrowRegex:this._erasRegex}function At(e,t){return t.erasAbbrRegex(e)}function Zn(e,t){return t.erasNameRegex(e)}function Bn(e,t){return t.erasNarrowRegex(e)}function qn(e,t){return t._eraYearOrdinalRegex||_e}function Et(){var e=[],t=[],r=[],s=[],a,n,i=this.eras();for(a=0,n=i.length;a<n;++a)t.push(N(i[a].name)),e.push(N(i[a].abbr)),r.push(N(i[a].narrow)),s.push(N(i[a].name)),s.push(N(i[a].abbr)),s.push(N(i[a].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100});h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function tt(e,t){h(0,[e,e.length],0,t)}tt("gggg","weekYear");tt("ggggg","weekYear");tt("GGGG","isoWeekYear");tt("GGGGG","isoWeekYear");x("weekYear","gg");x("isoWeekYear","GG");b("weekYear",1);b("isoWeekYear",1);u("G",Ge);u("g",Ge);u("GG",D,W);u("gg",D,W);u("GGGG",Mt,Dt);u("gggg",Mt,Dt);u("GGGGG",Ve,He);u("ggggg",Ve,He);Ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=_(e)});Ye(["gg","GG"],function(e,t,r,s){t[s]=l.parseTwoDigitYear(e)});function Jn(e){return Nr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Qn(e){return Nr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Xn(){return K(this.year(),1,4)}function Kn(){return K(this.isoWeekYear(),1,4)}function ei(){var e=this.localeData()._week;return K(this.year(),e.dow,e.doy)}function ti(){var e=this.localeData()._week;return K(this.weekYear(),e.dow,e.doy)}function Nr(e,t,r,s,a){var n;return e==null?xe(this,s,a).year:(n=K(e,s,a),t>n&&(t=n),ri.call(this,e,t,r,s,a))}function ri(e,t,r,s,a){var n=dr(e,t,r,s,a),i=Te(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter");x("quarter","Q");b("quarter",7);u("Q",er);S("Q",function(e,t){t[Q]=(_(e)-1)*3});function si(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date");x("date","D");b("date",9);u("D",D);u("DD",D,W);u("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});S(["D","DD"],q);S("Do",function(e,t){t[q]=_(e.match(D)[0])});var Fr=me("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear");x("dayOfYear","DDD");b("dayOfYear",4);u("DDD",Ue);u("DDDD",tr);S(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_(e)});function ai(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute");x("minute","m");b("minute",14);u("m",D);u("mm",D,W);S(["m","mm"],U);var ni=me("Minutes",!1);h("s",["ss",2],0,"second");x("second","s");b("second",15);u("s",D);u("ss",D,W);S(["s","ss"],X);var ii=me("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)});h(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h(0,["SSS",3],0,"millisecond");h(0,["SSSS",4],0,function(){return this.millisecond()*10});h(0,["SSSSS",5],0,function(){return this.millisecond()*100});h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});x("millisecond","ms");b("millisecond",16);u("S",Ue,er);u("SS",Ue,W);u("SSS",Ue,tr);var ie,Ar;for(ie="SSSS";ie.length<=9;ie+="S")u(ie,_e);function oi(e,t){t[le]=_(("0."+e)*1e3)}for(ie="S";ie.length<=9;ie+="S")S(ie,oi);Ar=me("Milliseconds",!1);h("z",0,0,"zoneAbbr");h("zz",0,0,"zoneName");function li(){return this._isUTC?"UTC":""}function ui(){return this._isUTC?"Coordinated Universal Time":""}var o=ge.prototype;o.add=en;o.calendar=ln;o.clone=un;o.diff=yn;o.endOf=On;o.format=Dn;o.from=Mn;o.fromNow=gn;o.to=pn;o.toNow=vn;o.get=hs;o.invalidAt=An;o.isAfter=dn;o.isBefore=hn;o.isBetween=fn;o.isSame=cn;o.isSameOrAfter=mn;o.isSameOrBefore=_n;o.isValid=Nn;o.lang=xr;o.locale=Tr;o.localeData=br;o.max=Wa;o.min=Ra;o.parsingFlags=Fn;o.set=fs;o.startOf=Yn;o.subtract=tn;o.toArray=Pn;o.toObject=Rn;o.toDate=bn;o.toISOString=kn;o.inspect=Sn;typeof Symbol!="undefined"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=Wn;o.toString=wn;o.unix=xn;o.valueOf=Tn;o.creationData=En;o.eraName=Hn;o.eraNarrow=Un;o.eraAbbr=Vn;o.eraYear=Gn;o.year=ur;o.isLeapYear=Rs;o.weekYear=Jn;o.isoWeekYear=Qn;o.quarter=o.quarters=si;o.month=or;o.daysInMonth=xs;o.week=o.weeks=Cs;o.isoWeek=o.isoWeeks=Is;o.weeksInYear=ei;o.weeksInWeekYear=ti;o.isoWeeksInYear=Xn;o.isoWeeksInISOWeekYear=Kn;o.date=Fr;o.day=o.days=Qs;o.weekday=Xs;o.isoWeekday=Ks;o.dayOfYear=ai;o.hour=o.hours=ia;o.minute=o.minutes=ni;o.second=o.seconds=ii;o.millisecond=o.milliseconds=Ar;o.utcOffset=Ua;o.utc=Ga;o.local=ja;o.parseZone=za;o.hasAlignedHourOffset=$a;o.isDST=Za;o.isLocal=qa;o.isUtcOffset=Ja;o.isUtc=gr;o.isUTC=gr;o.zoneAbbr=li;o.zoneName=ui;o.dates=A("dates accessor is deprecated. Use date instead.",Fr);o.months=A("months accessor is deprecated. Use month instead",or);o.years=A("years accessor is deprecated. Use year instead",ur);o.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Va);o.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ba);function di(e){return M(e*1e3)}function hi(){return M.apply(null,arguments).parseZone()}function Er(e){return e}var k=_t.prototype;k.calendar=Qr;k.longDateFormat=ts;k.invalidDate=ss;k.ordinal=is;k.preparse=Er;k.postformat=Er;k.relativeTime=ls;k.pastFuture=us;k.set=qr;k.eras=Cn;k.erasParse=In;k.erasConvertYear=Ln;k.erasAbbrRegex=zn;k.erasNameRegex=jn;k.erasNarrowRegex=$n;k.months=vs;k.monthsShort=Ys;k.monthsParse=Ts;k.monthsRegex=Ps;k.monthsShortRegex=bs;k.week=Ns;k.firstDayOfYear=Es;k.firstDayOfWeek=As;k.weekdays=$s;k.weekdaysMin=Bs;k.weekdaysShort=Zs;k.weekdaysParse=Js;k.weekdaysRegex=ea;k.weekdaysShortRegex=ta;k.weekdaysMinRegex=ra;k.isPM=aa;k.meridiem=oa;function rt(e,t,r,s){var a=ee(),n=$().set(s,t);return a[r](n,e)}function Cr(e,t,r){if(J(e)&&(t=e,e=void 0),e=e||"",t!=null)return rt(e,t,r,"month");var s,a=[];for(s=0;s<12;s++)a[s]=rt(e,s,r,"month");return a}function Ct(e,t,r,s){typeof e=="boolean"?(J(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,J(t)&&(r=t,t=void 0),t=t||"");var a=ee(),n=e?a._week.dow:0,i,d=[];if(r!=null)return rt(t,(r+n)%7,s,"day");for(i=0;i<7;i++)d[i]=rt(t,(i+n)%7,s,"day");return d}function fi(e,t){return Cr(e,t,"months")}function ci(e,t){return Cr(e,t,"monthsShort")}function mi(e,t,r){return Ct(e,t,r,"weekdays")}function _i(e,t,r){return Ct(e,t,r,"weekdaysShort")}function yi(e,t,r){return Ct(e,t,r,"weekdaysMin")}ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});l.lang=A("moment.lang is deprecated. Use moment.locale instead.",ne);l.langData=A("moment.langData is deprecated. Use moment.localeData instead.",ee);var te=Math.abs;function wi(){var e=this._data;return this._milliseconds=te(this._milliseconds),this._days=te(this._days),this._months=te(this._months),e.milliseconds=te(e.milliseconds),e.seconds=te(e.seconds),e.minutes=te(e.minutes),e.hours=te(e.hours),e.months=te(e.months),e.years=te(e.years),this}function Ir(e,t,r,s){var a=V(t,r);return e._milliseconds+=s*a._milliseconds,e._days+=s*a._days,e._months+=s*a._months,e._bubble()}function ki(e,t){return Ir(this,e,t,1)}function Si(e,t){return Ir(this,e,t,-1)}function Lr(e){return e<0?Math.floor(e):Math.ceil(e)}function Di(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,a,n,i,d,f;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Lr(It(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,a=C(e/1e3),s.seconds=a%60,n=C(a/60),s.minutes=n%60,i=C(n/60),s.hours=i%24,t+=C(i/24),f=C(Hr(t)),r+=f,t-=Lr(It(f)),d=C(r/12),r%=12,s.days=t,s.months=r,s.years=d,this}function Hr(e){return e*4800/146097}function It(e){return e*146097/4800}function Mi(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=E(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Hr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(It(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function gi(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+_(this._months/12)*31536e6:NaN}function re(e){return function(){return this.as(e)}}var pi=re("ms"),vi=re("s"),Yi=re("m"),Oi=re("h"),Ti=re("d"),xi=re("w"),bi=re("M"),Pi=re("Q"),Ri=re("y");function Wi(){return V(this)}function Ni(e){return e=E(e),this.isValid()?this[e+"s"]():NaN}function de(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fi=de("milliseconds"),Ai=de("seconds"),Ei=de("minutes"),Ci=de("hours"),Ii=de("days"),Li=de("months"),Hi=de("years");function Ui(){return C(this.days()/7)}var se=Math.round,Se={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vi(e,t,r,s,a){return a.relativeTime(t||1,!!r,e,s)}function Gi(e,t,r,s){var a=V(e).abs(),n=se(a.as("s")),i=se(a.as("m")),d=se(a.as("h")),f=se(a.as("d")),m=se(a.as("M")),T=se(a.as("w")),G=se(a.as("y")),I=n<=r.ss&&["s",n]||n<r.s&&["ss",n]||i<=1&&["m"]||i<r.m&&["mm",i]||d<=1&&["h"]||d<r.h&&["hh",d]||f<=1&&["d"]||f<r.d&&["dd",f];return r.w!=null&&(I=I||T<=1&&["w"]||T<r.w&&["ww",T]),I=I||m<=1&&["M"]||m<r.M&&["MM",m]||G<=1&&["y"]||["yy",G],I[2]=t,I[3]=+e>0,I[4]=s,Vi.apply(null,I)}function ji(e){return e===void 0?se:typeof e=="function"?(se=e,!0):!1}function zi(e,t){return Se[e]===void 0?!1:t===void 0?Se[e]:(Se[e]=t,e==="s"&&(Se.ss=t-1),!0)}function $i(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=Se,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},Se,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),a=this.localeData(),n=Gi(this,!r,s,a),r&&(n=a.pastFuture(+this,n)),a.postformat(n)}var Lt=Math.abs;function De(e){return(e>0)-(e<0)||+e}function st(){if(!this.isValid())return this.localeData().invalidDate();var e=Lt(this._milliseconds)/1e3,t=Lt(this._days),r=Lt(this._months),s,a,n,i,d=this.asSeconds(),f,m,T,G;return d?(s=C(e/60),a=C(s/60),e%=60,s%=60,n=C(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=d<0?"-":"",m=De(this._months)!==De(d)?"-":"",T=De(this._days)!==De(d)?"-":"",G=De(this._milliseconds)!==De(d)?"-":"",f+"P"+(n?m+n+"Y":"")+(r?m+r+"M":"")+(t?T+t+"D":"")+(a||s||e?"T":"")+(a?G+a+"H":"")+(s?G+s+"M":"")+(e?G+i+"S":"")):"P0D"}var y=Je.prototype;y.isValid=Ca;y.abs=wi;y.add=ki;y.subtract=Si;y.as=Mi;y.asMilliseconds=pi;y.asSeconds=vi;y.asMinutes=Yi;y.asHours=Oi;y.asDays=Ti;y.asWeeks=xi;y.asMonths=bi;y.asQuarters=Pi;y.asYears=Ri;y.valueOf=gi;y._bubble=Di;y.clone=Wi;y.get=Ni;y.milliseconds=Fi;y.seconds=Ai;y.minutes=Ei;y.hours=Ci;y.days=Ii;y.weeks=Ui;y.months=Li;y.years=Hi;y.humanize=$i;y.toISOString=st;y.toString=st;y.toJSON=st;y.locale=Tr;y.localeData=br;y.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",st);y.lang=xr;h("X",0,0,"unix");h("x",0,0,"valueOf");u("x",Ge);u("X",ms);S("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});S("x",function(e,t,r){r._d=new Date(_(e))});//! moment.js
|
|
10
|
+
l.version="2.29.1";Zr(M);l.fn=o;l.min=Na;l.max=Fa;l.now=Aa;l.utc=$;l.unix=di;l.months=fi;l.isDate=Me;l.locale=ne;l.invalid=Ae;l.duration=V;l.isMoment=H;l.weekdays=mi;l.parseZone=hi;l.localeData=ee;l.isDuration=Qe;l.monthsShort=ci;l.weekdaysMin=yi;l.defineLocale=Ot;l.updateLocale=da;l.locales=ha;l.weekdaysShort=_i;l.normalizeUnits=E;l.relativeTimeRounding=ji;l.relativeTimeThreshold=zi;l.calendarFormat=on;l.prototype=o;l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const{OptGroup:Zi,Option:Ur}=F.Select,Bi=e=>Array.isArray(e)&&e.length>0&&"options"in e[0],qi=e=>Bi(e)?e.map(t=>Y.default.createElement(Zi,{key:t.label,label:t.label},t.options.map(r=>Y.default.createElement(Ur,{key:r.name,value:r.name},r.label)))):Array.isArray(e)?e.map(t=>Y.default.createElement(Ur,{key:t.name,value:t.name},t.label)):null,he=({className:e,handleOnChange:t,options:r,value:s,title:a,disabled:n,multiple:i})=>{const d=Fe.useMemo(()=>i?T=>t(Array.isArray(T)?T.join(","):T):T=>t(T),[t,i]),f=i?Array.isArray(s)?s:s==null?void 0:s.split(","):s,m=i?{mode:"multiple"}:{};return Y.default.createElement("span",{title:a,className:e},Y.default.createElement(F.Select,nt(at({},m),{dropdownMatchSelectWidth:!1,disabled:n,value:f,onChange:d}),qi(r)))};he.displayName="AntDValueSelector";const Ht=G=>{var I=G,{fieldData:e,operator:t,value:r,handleOnChange:s,title:a,className:n,type:i,inputType:d,values:f,disabled:m}=I,T=zt(I,["fieldData","operator","value","handleOnChange","title","className","type","inputType","values","disabled"]);var Ut;if(Fe.useEffect(()=>{d==="number"&&!["between","notBetween","in","notIn"].includes(t)&&typeof r=="string"&&r.includes(",")&&s("")},[d,t,r,s]),t==="null"||t==="notNull")return null;const fe=(Ut=e==null?void 0:e.placeholder)!=null?Ut:"",We=["between","notBetween","in","notIn"].includes(t)&&!["date","datetime-local"].includes(`${d}`)?"text":d||"text";switch(i){case"select":case"multiselect":return Y.default.createElement(he,nt(at({},T),{className:n,handleOnChange:s,options:f,value:r,title:a,disabled:m,multiple:i==="multiselect"}));case"textarea":return Y.default.createElement(F.Input.TextArea,{value:r,title:a,className:n,disabled:m,placeholder:fe,onChange:p=>s(p.target.value)});case"switch":return Y.default.createElement(F.Switch,{checked:!!r,title:a,className:n,disabled:m,onChange:p=>s(p)});case"checkbox":return Y.default.createElement("span",{title:a,className:n},Y.default.createElement(F.Checkbox,{type:"checkbox",disabled:m,onChange:p=>s(p.target.checked),checked:!!r}));case"radio":return Y.default.createElement("span",{className:n,title:a},f.map(p=>Y.default.createElement(F.Radio,{key:p.name,value:p.name,checked:r===p.name,disabled:m,onChange:j=>s(j.target.value)},p.label)))}switch(We){case"date":case"datetime-local":return t==="between"||t==="notBetween"?Y.default.createElement(F.DatePicker.RangePicker,{value:typeof r=="string"&&/^[^,]+,[^,]+$/.test(r)?r.split(",").map(p=>l(p)):void 0,showTime:We==="datetime-local",className:n,disabled:m,placeholder:[fe,fe],onChange:p=>s(p==null?void 0:p.map(j=>j==null?void 0:j.format(l.HTML5_FMT.DATE)).join(","))}):Y.default.createElement(F.DatePicker,{value:r?l(r):null,showTime:We==="datetime-local",className:n,disabled:m,placeholder:fe,onChange:(p,j)=>s(j)});case"time":return Y.default.createElement(F.TimePicker,{value:r?l(r,"HH:mm"):null,className:n,disabled:m,placeholder:fe,onChange:p=>{var j;return s((j=p==null?void 0:p.format("HH:mm"))!=null?j:"")}})}return Y.default.createElement(F.Input,{type:We,value:r,title:a,className:n,disabled:m,placeholder:fe,onChange:p=>s(p.target.value)})};Ht.displayName="AntDValueEditor";const Ji={addGroupAction:z,addRuleAction:z,cloneGroupAction:z,cloneRuleAction:z,lockGroupAction:z,lockRuleAction:z,combinatorSelector:he,fieldSelector:he,notToggle:ot,operatorSelector:he,removeGroupAction:z,removeRuleAction:z,valueEditor:Ht,dragHandle:it,valueSourceSelector:he};exports.AntDActionElement=z;exports.AntDDragHandle=it;exports.AntDNotToggle=ot;exports.AntDValueEditor=Ht;exports.AntDValueSelector=he;exports.antdControlElements=Ji;
|
|
11
|
+
//# sourceMappingURL=index.cjs.js.map
|