detect/detect.gui/Embedded/dist/assets/drawer-ca38fa00.js
2025-05-08 11:41:35 +08:00

11 lines
73 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Rr=Object.defineProperty,Wr=Object.defineProperties;var Cr=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var ns=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable;var as=(e,t,s)=>t in e?Rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,P=(e,t)=>{for(var s in t||(t={}))ns.call(t,s)&&as(e,s,t[s]);if(Ee)for(var s of Ee(t))is.call(t,s)&&as(e,s,t[s]);return e},wt=(e,t)=>Wr(e,Cr(t));var gt=(e,t)=>{var s={};for(var r in e)ns.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(e!=null&&Ee)for(var r of Ee(e))t.indexOf(r)<0&&is.call(e,r)&&(s[r]=e[r]);return s};var Ve=(e,t,s)=>new Promise((r,a)=>{var n=f=>{try{o(s.next(f))}catch(m){a(m)}},i=f=>{try{o(s.throw(f))}catch(m){a(m)}},o=f=>f.done?r(f.value):Promise.resolve(f.value).then(n,i);o((s=s.apply(e,t)).next())});import{u as Ir,B as Ur,T as Lr}from"./useForm-ba217824.js";import{b as Ar}from"./deviceApi-af691457.js";import{a as Hr,B as Er}from"./index-bf5147ab.js";import{o as rt,_ as Vr}from"./index.js";import{u as Gr,B as jr}from"./useTable-79af8310.js";import zr from"./modal-10ff266b.js";import{u as $r}from"./index-9bdebb1f.js";import{N as Br,ab as qr,ac as Zr,P as Jr,O as Qr}from"./antd-0b1a4d04.js";import{d as Xr,f as Ge,c as ls,u as N,a6 as Kr,Z as C,a4 as os,a5 as ue,k as de,l as je,G as ze,_ as A,a0 as fe,F as $e,a8 as Te,a9 as ea}from"./vue-72a104e4.js";const at="/v1/data/task",ta=e=>rt.post({url:`${at}/`,data:e}),sa=(e,t=!1)=>rt.put({url:`${at}/`,data:e,params:{updateAllFields:t}}),Oo=e=>rt.delete({url:`${at}/${e}`}),To=e=>rt.get({url:`${at}/search`,params:e});//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var gs;function u(){return gs.apply(null,arguments)}function ra(e){gs=e}function z(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function pe(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Nt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(g(e,t))return!1;return!0}function I(e){return e===void 0}function ie(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ie(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ks(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function ce(e,t){for(var s in t)g(t,s)&&(e[s]=t[s]);return g(t,"toString")&&(e.toString=t.toString),g(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Q(e,t,s,r){return Gs(e,t,s,r,!0).utc()}function aa(){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 _(e){return e._pf==null&&(e._pf=aa()),e._pf}var Dt;Array.prototype.some?Dt=Array.prototype.some:Dt=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Ft(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=_(e),s=Dt.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function nt(e){var t=Q(NaN);return e!=null?ce(_(t),e):_(t).userInvalidated=!0,t}var us=u.momentProperties=[],kt=!1;function Rt(e,t){var s,r,a,n=us.length;if(I(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),I(t._i)||(e._i=t._i),I(t._f)||(e._f=t._f),I(t._l)||(e._l=t._l),I(t._strict)||(e._strict=t._strict),I(t._tzm)||(e._tzm=t._tzm),I(t._isUTC)||(e._isUTC=t._isUTC),I(t._offset)||(e._offset=t._offset),I(t._pf)||(e._pf=_(t)),I(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=us[s],a=t[r],I(a)||(e[r]=a);return e}function Ue(e){Rt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),kt===!1&&(kt=!0,u.updateOffset(this),kt=!1)}function $(e){return e instanceof Ue||e!=null&&e._isAMomentObject!=null}function vs(e){u.suppressDeprecationWarnings}function E(e,t){var s=!0;return ce(function(){if(u.deprecationHandler!=null&&u.deprecationHandler(null,e),s){var r=[],a,n,i,o=arguments.length;for(n=0;n<o;n++){if(a="",typeof arguments[n]=="object"){a+=`
[`+n+"] ";for(i in arguments[0])g(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}vs(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var ds={};function Ms(e,t){u.deprecationHandler!=null&&u.deprecationHandler(e,t),ds[e]||(vs(t),ds[e]=!0)}u.suppressDeprecationWarnings=!1;u.deprecationHandler=null;function X(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function na(e){var t,s;for(s in e)g(e,s)&&(t=e[s],X(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Yt(e,t){var s=ce({},e),r;for(r in t)g(t,r)&&(pe(e[r])&&pe(t[r])?(s[r]={},ce(s[r],e[r]),ce(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)g(e,r)&&!g(t,r)&&pe(e[r])&&(s[r]=ce({},s[r]));return s}function Wt(e){e!=null&&this.set(e)}var bt;Object.keys?bt=Object.keys:bt=function(e){var t,s=[];for(t in e)g(e,t)&&s.push(t);return s};var ia={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function la(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return X(r)?r.call(t,s):r}function J(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Ct=/(\[[^\[]*\])|(\\)?([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,Be=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vt={},Me={};function c(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Me[e]=a),t&&(Me[t[0]]=function(){return J(a.apply(this,arguments),t[1],t[2])}),s&&(Me[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function oa(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ua(e){var t=e.match(Ct),s,r;for(s=0,r=t.length;s<r;s++)Me[t[s]]?t[s]=Me[t[s]]:t[s]=oa(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=X(t[i])?t[i].call(a,e):t[i];return n}}function Ze(e,t){return e.isValid()?(t=Ss(t,e.localeData()),vt[t]=vt[t]||ua(t),vt[t](e)):e.localeData().invalidDate()}function Ss(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(Be.lastIndex=0;s>=0&&Be.test(e);)e=e.replace(Be,r),Be.lastIndex=0,s-=1;return e}var da={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 fa(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(Ct).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var ca="Invalid date";function ha(){return this._invalidDate}var ma="%d",_a=/\d{1,2}/;function ya(e){return this._ordinal.replace("%d",e)}var pa={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 wa(e,t,s,r){var a=this._relativeTime[s];return X(a)?a(e,t,s,r):a.replace(/%d/i,e)}function ga(e,t){var s=this._relativeTime[e>0?"future":"past"];return X(s)?s(t):s.replace(/%s/i,t)}var fs={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function V(e){return typeof e=="string"?fs[e]||fs[e.toLowerCase()]:void 0}function It(e){var t={},s,r;for(r in e)g(e,r)&&(s=V(r),s&&(t[s]=e[r]));return t}var ka={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function va(e){var t=[],s;for(s in e)g(e,s)&&t.push({unit:s,priority:ka[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Ds=/\d/,L=/\d\d/,Ys=/\d{3}/,Ut=/\d{4}/,it=/[+-]?\d{6}/,O=/\d\d?/,bs=/\d\d\d\d?/,Os=/\d\d\d\d\d\d?/,lt=/\d{1,3}/,Lt=/\d{1,4}/,ot=/[+-]?\d{1,6}/,Ye=/\d+/,ut=/[+-]?\d+/,Ma=/Z|[+-]\d\d:?\d\d/gi,dt=/Z|[+-]\d\d(?::?\d\d)?/gi,Sa=/[+-]?\d+(\.\d{1,3})?/,Le=/[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,be=/^[1-9]\d?/,At=/^([1-9]\d|\d)/,Xe;Xe={};function d(e,t,s){Xe[e]=X(t)?t:function(r,a){return r&&s?s:t}}function Da(e,t){return g(Xe,e)?Xe[e](t._strict,t._locale):new RegExp(Ya(e))}function Ya(e){return ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function y(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=H(t)),s}var Ot={};function S(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),ie(t)&&(r=function(n,i){i[t]=y(n)}),a=e.length,s=0;s<a;s++)Ot[e[s]]=r}function Ae(e,t){S(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function ba(e,t,s){t!=null&&g(Ot,e)&&Ot[e](t,s._a,s,e)}function ft(e){return e%4===0&&e%100!==0||e%400===0}var W=0,se=1,Z=2,R=3,j=4,re=5,ye=6,Oa=7,Ta=8;c("Y",0,0,function(){var e=this.year();return e<=9999?J(e,4):"+"+e});c(0,["YY",2],0,function(){return this.year()%100});c(0,["YYYY",4],0,"year");c(0,["YYYYY",5],0,"year");c(0,["YYYYYY",6,!0],0,"year");d("Y",ut);d("YY",O,L);d("YYYY",Lt,Ut);d("YYYYY",ot,it);d("YYYYYY",ot,it);S(["YYYYY","YYYYYY"],W);S("YYYY",function(e,t){t[W]=e.length===2?u.parseTwoDigitYear(e):y(e)});S("YY",function(e,t){t[W]=u.parseTwoDigitYear(e)});S("Y",function(e,t){t[W]=parseInt(e,10)});function Ne(e){return ft(e)?366:365}u.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var Ts=Oe("FullYear",!0);function xa(){return ft(this.year())}function Oe(e,t){return function(s){return s!=null?(xs(this,e,s),u.updateOffset(this,t),this):Fe(this,e)}}function Fe(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function xs(e,t,s){var r,a,n,i,o;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),o=e.date(),o=o===29&&i===1&&!ft(n)?28:o,a?r.setUTCFullYear(n,i,o):r.setFullYear(n,i,o)}}function Pa(e){return e=V(e),X(this[e])?this[e]():this}function Na(e,t){if(typeof e=="object"){e=It(e);var s=va(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=V(e),X(this[e]))return this[e](t);return this}function Fa(e,t){return(e%t+t)%t}var F;Array.prototype.indexOf?F=Array.prototype.indexOf:F=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ht(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Fa(t,12);return e+=(t-s)/12,s===1?ft(e)?29:28:31-s%7%2}c("M",["MM",2],"Mo",function(){return this.month()+1});c("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});c("MMMM",0,0,function(e){return this.localeData().months(this,e)});d("M",O,be);d("MM",O,L);d("MMM",function(e,t){return t.monthsShortRegex(e)});d("MMMM",function(e,t){return t.monthsRegex(e)});S(["M","MM"],function(e,t){t[se]=y(e)-1});S(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[se]=a:_(s).invalidMonth=e});var Ra="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ps="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ns=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wa=Le,Ca=Le;function Ia(e,t){return e?z(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ns).test(t)?"format":"standalone"][e.month()]:z(this._months)?this._months:this._months.standalone}function Ua(e,t){return e?z(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ns.test(t)?"format":"standalone"][e.month()]:z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function La(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=Q([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=F.call(this._shortMonthsParse,i),a!==-1?a:null):(a=F.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=F.call(this._shortMonthsParse,i),a!==-1?a:(a=F.call(this._longMonthsParse,i),a!==-1?a:null)):(a=F.call(this._longMonthsParse,i),a!==-1?a:(a=F.call(this._shortMonthsParse,i),a!==-1?a:null))}function Aa(e,t,s){var r,a,n;if(this._monthsParseExact)return La.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=Q([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function Fs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=y(t);else if(t=e.localeData().monthsParse(t),!ie(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,Ht(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function Rs(e){return e!=null?(Fs(this,e),u.updateOffset(this,!0),this):Fe(this,"Month")}function Ha(){return Ht(this.year(),this.month())}function Ea(e){return this._monthsParseExact?(g(this,"_monthsRegex")||Ws.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=Wa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Va(e){return this._monthsParseExact?(g(this,"_monthsRegex")||Ws.call(this),e?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=Ca),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ws(){function e(f,m){return m.length-f.length}var t=[],s=[],r=[],a,n,i,o;for(a=0;a<12;a++)n=Q([2e3,a]),i=ae(this.monthsShort(n,"")),o=ae(this.months(n,"")),t.push(i),s.push(o),r.push(o),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ga(e,t,s,r,a,n,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,r,a,n,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,r,a,n,i),o}function Re(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ke(e,t,s){var r=7+t-s,a=(7+Re(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Cs(e,t,s,r,a){var n=(7+s-r)%7,i=Ke(e,r,a),o=1+7*(t-1)+n+i,f,m;return o<=0?(f=e-1,m=Ne(f)+o):o>Ne(e)?(f=e+1,m=o-Ne(e)):(f=e,m=o),{year:f,dayOfYear:m}}function We(e,t,s){var r=Ke(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+ne(i,t,s)):a>ne(e.year(),t,s)?(n=a-ne(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function ne(e,t,s){var r=Ke(e,t,s),a=Ke(e+1,t,s);return(Ne(e)-r+a)/7}c("w",["ww",2],"wo","week");c("W",["WW",2],"Wo","isoWeek");d("w",O,be);d("ww",O,L);d("W",O,be);d("WW",O,L);Ae(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=y(e)});function ja(e){return We(e,this._week.dow,this._week.doy).week}var za={dow:0,doy:6};function $a(){return this._week.dow}function Ba(){return this._week.doy}function qa(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Za(e){var t=We(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}c("d",0,"do","day");c("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});c("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});c("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});c("e",0,0,"weekday");c("E",0,0,"isoWeekday");d("d",O);d("e",O);d("E",O);d("dd",function(e,t){return t.weekdaysMinRegex(e)});d("ddd",function(e,t){return t.weekdaysShortRegex(e)});d("dddd",function(e,t){return t.weekdaysRegex(e)});Ae(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:_(s).invalidWeekday=e});Ae(["d","e","E"],function(e,t,s,r){t[r]=y(e)});function Ja(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Qa(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Et(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Xa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Is="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ka="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),en=Le,tn=Le,sn=Le;function rn(e,t){var s=z(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Et(s,this._week.dow):e?s[e.day()]:s}function an(e){return e===!0?Et(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function nn(e){return e===!0?Et(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ln(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=Q([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=F.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=F.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=F.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=F.call(this._weekdaysParse,i),a!==-1||(a=F.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=F.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=F.call(this._shortWeekdaysParse,i),a!==-1||(a=F.call(this._weekdaysParse,i),a!==-1)?a:(a=F.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=F.call(this._minWeekdaysParse,i),a!==-1||(a=F.call(this._weekdaysParse,i),a!==-1)?a:(a=F.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function on(e,t,s){var r,a,n;if(this._weekdaysParseExact)return ln.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Q([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function un(e){if(!this.isValid())return e!=null?this:NaN;var t=Fe(this,"Day");return e!=null?(e=Ja(e,this.localeData()),this.add(e-t,"d")):t}function dn(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 fn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Qa(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function cn(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=en),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function hn(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mn(e){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=sn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vt(){function e(x,G){return G.length-x.length}var t=[],s=[],r=[],a=[],n,i,o,f,m;for(n=0;n<7;n++)i=Q([2e3,1]).day(n),o=ae(this.weekdaysMin(i,"")),f=ae(this.weekdaysShort(i,"")),m=ae(this.weekdays(i,"")),t.push(o),s.push(f),r.push(m),a.push(o),a.push(f),a.push(m);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Gt(){return this.hours()%12||12}function _n(){return this.hours()||24}c("H",["HH",2],0,"hour");c("h",["hh",2],0,Gt);c("k",["kk",2],0,_n);c("hmm",0,0,function(){return""+Gt.apply(this)+J(this.minutes(),2)});c("hmmss",0,0,function(){return""+Gt.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)});c("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)});c("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)});function Us(e,t){c(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Us("a",!0);Us("A",!1);function Ls(e,t){return t._meridiemParse}d("a",Ls);d("A",Ls);d("H",O,At);d("h",O,be);d("k",O,be);d("HH",O,L);d("hh",O,L);d("kk",O,L);d("hmm",bs);d("hmmss",Os);d("Hmm",bs);d("Hmmss",Os);S(["H","HH"],R);S(["k","kk"],function(e,t,s){var r=y(e);t[R]=r===24?0:r});S(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});S(["h","hh"],function(e,t,s){t[R]=y(e),_(s).bigHour=!0});S("hmm",function(e,t,s){var r=e.length-2;t[R]=y(e.substr(0,r)),t[j]=y(e.substr(r)),_(s).bigHour=!0});S("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[R]=y(e.substr(0,r)),t[j]=y(e.substr(r,2)),t[re]=y(e.substr(a)),_(s).bigHour=!0});S("Hmm",function(e,t,s){var r=e.length-2;t[R]=y(e.substr(0,r)),t[j]=y(e.substr(r))});S("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[R]=y(e.substr(0,r)),t[j]=y(e.substr(r,2)),t[re]=y(e.substr(a))});function yn(e){return(e+"").toLowerCase().charAt(0)==="p"}var pn=/[ap]\.?m?\.?/i,wn=Oe("Hours",!0);function gn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var As={calendar:ia,longDateFormat:da,invalidDate:ca,ordinal:ma,dayOfMonthOrdinalParse:_a,relativeTime:pa,months:Ra,monthsShort:Ps,week:za,weekdays:Xa,weekdaysMin:Ka,weekdaysShort:Is,meridiemParse:pn},T={},xe={},Ce;function kn(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function cs(e){return e&&e.toLowerCase().replace("_","-")}function vn(e){for(var t=0,s,r,a,n;t<e.length;){for(n=cs(e[t]).split("-"),s=n.length,r=cs(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=ct(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&kn(n,r)>=s-1)break;s--}t++}return Ce}function Mn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ct(e){var t=null,s;if(T[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&Mn(e))try{t=Ce._abbr,s=require,s("./locale/"+e),me(t)}catch(r){T[e]=null}return T[e]}function me(e,t){var s;return e&&(I(t)?s=le(e):s=jt(e,t),s&&(Ce=s)),Ce._abbr}function jt(e,t){if(t!==null){var s,r=As;if(t.abbr=e,T[e]!=null)Ms("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."),r=T[e]._config;else if(t.parentLocale!=null)if(T[t.parentLocale]!=null)r=T[t.parentLocale]._config;else if(s=ct(t.parentLocale),s!=null)r=s._config;else return xe[t.parentLocale]||(xe[t.parentLocale]=[]),xe[t.parentLocale].push({name:e,config:t}),null;return T[e]=new Wt(Yt(r,t)),xe[e]&&xe[e].forEach(function(a){jt(a.name,a.config)}),me(e),T[e]}else return delete T[e],null}function Sn(e,t){if(t!=null){var s,r,a=As;T[e]!=null&&T[e].parentLocale!=null?T[e].set(Yt(T[e]._config,t)):(r=ct(e),r!=null&&(a=r._config),t=Yt(a,t),r==null&&(t.abbr=e),s=new Wt(t),s.parentLocale=T[e],T[e]=s),me(e)}else T[e]!=null&&(T[e].parentLocale!=null?(T[e]=T[e].parentLocale,e===me()&&me(e)):T[e]!=null&&delete T[e]);return T[e]}function le(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ce;if(!z(e)){if(t=ct(e),t)return t;e=[e]}return vn(e)}function Dn(){return bt(T)}function zt(e){var t,s=e._a;return s&&_(e).overflow===-2&&(t=s[se]<0||s[se]>11?se:s[Z]<1||s[Z]>Ht(s[W],s[se])?Z:s[R]<0||s[R]>24||s[R]===24&&(s[j]!==0||s[re]!==0||s[ye]!==0)?R:s[j]<0||s[j]>59?j:s[re]<0||s[re]>59?re:s[ye]<0||s[ye]>999?ye:-1,_(e)._overflowDayOfYear&&(t<W||t>Z)&&(t=Z),_(e)._overflowWeeks&&t===-1&&(t=Oa),_(e)._overflowWeekday&&t===-1&&(t=Ta),_(e).overflow=t),e}var Yn=/^\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)?)?$/,bn=/^\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)?)?$/,On=/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]],Mt=[["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/]],Tn=/^\/?Date\((-?\d+)/i,xn=/^(?:(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}))$/,Pn={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 Hs(e){var t,s,r=e._i,a=Yn.exec(r)||bn.exec(r),n,i,o,f,m=qe.length,x=Mt.length;if(a){for(_(e).iso=!0,t=0,s=m;t<s;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,s=x;t<s;t++)if(Mt[t][1].exec(a[3])){o=(a[2]||" ")+Mt[t][0];break}if(o==null){e._isValid=!1;return}}if(!n&&o!=null){e._isValid=!1;return}if(a[4])if(On.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(f||""),Bt(e)}else e._isValid=!1}function Nn(e,t,s,r,a,n){var i=[Fn(e),Ps.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function Fn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Rn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Wn(e,t,s){if(e){var r=Is.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return _(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Cn(e,t,s){if(e)return Pn[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function Es(e){var t=xn.exec(Rn(e._i)),s;if(t){if(s=Nn(t[4],t[3],t[2],t[5],t[6],t[7]),!Wn(t[1],s,e))return;e._a=s,e._tzm=Cn(t[8],t[9],t[10]),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=Tn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Hs(e),e._isValid===!1)delete e._isValid;else return;if(Es(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:u.createFromInputFallback(e)}u.createFromInputFallback=E("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 ke(e,t,s){return e!=null?e:t!=null?t:s}function Un(e){var t=new Date(u.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $t(e){var t,s,r=[],a,n,i;if(!e._d){for(a=Un(e),e._w&&e._a[Z]==null&&e._a[se]==null&&Ln(e),e._dayOfYear!=null&&(i=ke(e._a[W],a[W]),(e._dayOfYear>Ne(i)||e._dayOfYear===0)&&(_(e)._overflowDayOfYear=!0),s=Re(i,0,e._dayOfYear),e._a[se]=s.getUTCMonth(),e._a[Z]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[R]===24&&e._a[j]===0&&e._a[re]===0&&e._a[ye]===0&&(e._nextDay=!0,e._a[R]=0),e._d=(e._useUTC?Re:Ga).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[R]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==n&&(_(e).weekdayMismatch=!0)}}function Ln(e){var t,s,r,a,n,i,o,f,m;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=ke(t.GG,e._a[W],We(b(),1,4).year),r=ke(t.W,1),a=ke(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,m=We(b(),n,i),s=ke(t.gg,e._a[W],m.year),r=ke(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),r<1||r>ne(s,n,i)?_(e)._overflowWeeks=!0:f!=null?_(e)._overflowWeekday=!0:(o=Cs(s,r,a,n,i),e._a[W]=o.year,e._dayOfYear=o.dayOfYear)}u.ISO_8601=function(){};u.RFC_2822=function(){};function Bt(e){if(e._f===u.ISO_8601){Hs(e);return}if(e._f===u.RFC_2822){Es(e);return}e._a=[],_(e).empty=!0;var t=""+e._i,s,r,a,n,i,o=t.length,f=0,m,x;for(a=Ss(e._f,e._locale).match(Ct)||[],x=a.length,s=0;s<x;s++)n=a[s],r=(t.match(Da(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&_(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),Me[n]?(r?_(e).empty=!1:_(e).unusedTokens.push(n),ba(n,r,e)):e._strict&&!r&&_(e).unusedTokens.push(n);_(e).charsLeftOver=o-f,t.length>0&&_(e).unusedInput.push(t),e._a[R]<=12&&_(e).bigHour===!0&&e._a[R]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[R]=An(e._locale,e._a[R],e._meridiem),m=_(e).era,m!==null&&(e._a[W]=e._locale.erasConvertYear(m,e._a[W])),$t(e),zt(e)}function An(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Hn(e){var t,s,r,a,n,i,o=!1,f=e._f.length;if(f===0){_(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)n=0,i=!1,t=Rt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Bt(t),Ft(t)&&(i=!0),n+=_(t).charsLeftOver,n+=_(t).unusedTokens.length*10,_(t).score=n,o?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(o=!0));ce(e,s||t)}function En(e){if(!e._d){var t=It(e._i),s=t.day===void 0?t.date:t.day;e._a=ks([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),$t(e)}}function Vn(e){var t=new Ue(zt(Vs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vs(e){var t=e._i,s=e._f;return e._locale=e._locale||le(e._l),t===null||s===void 0&&t===""?nt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),$(t)?new Ue(zt(t)):(Ie(t)?e._d=t:z(s)?Hn(e):s?Bt(e):Gn(e),Ft(e)||(e._d=null),e))}function Gn(e){var t=e._i;I(t)?e._d=new Date(u.now()):Ie(t)?e._d=new Date(t.valueOf()):typeof t=="string"?In(e):z(t)?(e._a=ks(t.slice(0),function(s){return parseInt(s,10)}),$t(e)):pe(t)?En(e):ie(t)?e._d=new Date(t):u.createFromInputFallback(e)}function Gs(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(pe(e)&&Nt(e)||z(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,Vn(n)}function b(e,t,s,r){return Gs(e,t,s,r,!1)}var jn=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:nt()}),zn=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:nt()});function js(e,t){var s,r;if(t.length===1&&z(t[0])&&(t=t[0]),!t.length)return b();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function $n(){var e=[].slice.call(arguments,0);return js("isBefore",e)}function Bn(){var e=[].slice.call(arguments,0);return js("isAfter",e)}var qn=function(){return Date.now?Date.now():+new Date},Pe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Zn(e){var t,s=!1,r,a=Pe.length;for(t in e)if(g(e,t)&&!(F.call(Pe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[Pe[r]]){if(s)return!1;parseFloat(e[Pe[r]])!==y(e[Pe[r]])&&(s=!0)}return!0}function Jn(){return this._isValid}function Qn(){return B(NaN)}function ht(e){var t=It(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,f=t.minute||0,m=t.second||0,x=t.millisecond||0;this._isValid=Zn(t),this._milliseconds=+x+m*1e3+f*6e4+o*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=le(),this._bubble()}function Je(e){return e instanceof ht}function Tt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Xn(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&y(e[i])!==y(t[i]))&&n++;return n+a}function zs(e,t){c(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+J(~~(s/60),2)+t+J(~~s%60,2)})}zs("Z",":");zs("ZZ","");d("Z",dt);d("ZZ",dt);S(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=qt(dt,e)});var Kn=/([\+\-]|\d\d)/gi;function qt(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(Kn)||["-",0,0],n=+(a[1]*60)+y(a[2]),n===0?0:a[0]==="+"?n:-n)}function Zt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=($(e)||Ie(e)?e.valueOf():b(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),u.updateOffset(s,!1),s):b(e).local()}function xt(e){return-Math.round(e._d.getTimezoneOffset())}u.updateOffset=function(){};function ei(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=qt(dt,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=xt(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?qs(this,B(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:xt(this)}function ti(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function si(e){return this.utcOffset(0,e)}function ri(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(xt(this),"m")),this}function ai(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=qt(Ma,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ni(e){return this.isValid()?(e=e?b(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ii(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function li(){if(!I(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Rt(e,this),e=Vs(e),e._a?(t=e._isUTC?Q(e._a):b(e._a),this._isDSTShifted=this.isValid()&&Xn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function oi(){return this.isValid()?!this._isUTC:!1}function ui(){return this.isValid()?this._isUTC:!1}function $s(){return this.isValid()?this._isUTC&&this._offset===0:!1}var di=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var s=e,r=null,a,n,i;return Je(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:ie(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=di.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:y(r[Z])*a,h:y(r[R])*a,m:y(r[j])*a,s:y(r[re])*a,ms:y(Tt(r[ye]*1e3))*a}):(r=fi.exec(e))?(a=r[1]==="-"?-1:1,s={y:_e(r[2],a),M:_e(r[3],a),w:_e(r[4],a),d:_e(r[5],a),h:_e(r[6],a),m:_e(r[7],a),s:_e(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=ci(b(s.from),b(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new ht(s),Je(e)&&g(e,"_locale")&&(n._locale=e._locale),Je(e)&&g(e,"_isValid")&&(n._isValid=e._isValid),n}B.fn=ht.prototype;B.invalid=Qn;function _e(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function hs(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function ci(e,t){var s;return e.isValid()&&t.isValid()?(t=Zt(t,e),e.isBefore(t)?s=hs(e,t):(s=hs(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Bs(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Ms(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=s,s=r,r=n),a=B(s,r),qs(this,a,e),this}}function qs(e,t,s,r){var a=t._milliseconds,n=Tt(t._days),i=Tt(t._months);e.isValid()&&(r=r==null?!0:r,i&&Fs(e,Fe(e,"Month")+i*s),n&&xs(e,"Date",Fe(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&u.updateOffset(e,n||i))}var hi=Bs(1,"add"),mi=Bs(-1,"subtract");function Zs(e){return typeof e=="string"||e instanceof String}function _i(e){return $(e)||Ie(e)||Zs(e)||ie(e)||pi(e)||yi(e)||e===null||e===void 0}function yi(e){var t=pe(e)&&!Nt(e),s=!1,r=["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,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||g(e,n);return t&&s}function pi(e){var t=z(e),s=!1;return t&&(s=e.filter(function(r){return!ie(r)&&Zs(e)}).length===0),t&&s}function wi(e){var t=pe(e)&&!Nt(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||g(e,n);return t&&s}function gi(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function ki(e,t){arguments.length===1&&(arguments[0]?_i(arguments[0])?(e=arguments[0],t=void 0):wi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||b(),r=Zt(s,this).startOf("day"),a=u.calendarFormat(this,r)||"sameElse",n=t&&(X(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,b(s)))}function vi(){return new Ue(this)}function Mi(e,t){var s=$(e)?e:b(e);return this.isValid()&&s.isValid()?(t=V(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Si(e,t){var s=$(e)?e:b(e);return this.isValid()&&s.isValid()?(t=V(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Di(e,t,s,r){var a=$(e)?e:b(e),n=$(t)?t:b(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function Yi(e,t){var s=$(e)?e:b(e),r;return this.isValid()&&s.isValid()?(t=V(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function bi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Oi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ti(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=Zt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=V(t),t){case"year":n=Qe(this,r)/12;break;case"month":n=Qe(this,r);break;case"quarter":n=Qe(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:H(n)}function Qe(e,t){if(e.date()<t.date())return-Qe(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function xi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Pi(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ze(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ze(s,"Z")):Ze(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ni(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function Fi(e){e||(e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var t=Ze(this,e);return this.localeData().postformat(t)}function Ri(e,t){return this.isValid()&&($(e)&&e.isValid()||b(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Wi(e){return this.from(b(),e)}function Ci(e,t){return this.isValid()&&($(e)&&e.isValid()||b(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ii(e){return this.to(b(),e)}function Js(e){var t;return e===void 0?this._locale._abbr:(t=le(e),t!=null&&(this._locale=t),this)}var Qs=E("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 Xs(){return this._locale}var et=1e3,Se=60*et,tt=60*Se,Ks=(365*400+97)*24*tt;function De(e,t){return(e%t+t)%t}function er(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Ks:new Date(e,t,s).valueOf()}function tr(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Ks:Date.UTC(e,t,s)}function Ui(e){var t,s;if(e=V(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?tr:er,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=De(t+(this._isUTC?0:this.utcOffset()*Se),tt);break;case"minute":t=this._d.valueOf(),t-=De(t,Se);break;case"second":t=this._d.valueOf(),t-=De(t,et);break}return this._d.setTime(t),u.updateOffset(this,!0),this}function Li(e){var t,s;if(e=V(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?tr:er,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=tt-De(t+(this._isUTC?0:this.utcOffset()*Se),tt)-1;break;case"minute":t=this._d.valueOf(),t+=Se-De(t,Se)-1;break;case"second":t=this._d.valueOf(),t+=et-De(t,et)-1;break}return this._d.setTime(t),u.updateOffset(this,!0),this}function Ai(){return this._d.valueOf()-(this._offset||0)*6e4}function Hi(){return Math.floor(this.valueOf()/1e3)}function Ei(){return new Date(this.valueOf())}function Vi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Gi(){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 ji(){return this.isValid()?this.toISOString():null}function zi(){return Ft(this)}function $i(){return ce({},_(this))}function Bi(){return _(this).overflow}function qi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}c("N",0,0,"eraAbbr");c("NN",0,0,"eraAbbr");c("NNN",0,0,"eraAbbr");c("NNNN",0,0,"eraName");c("NNNNN",0,0,"eraNarrow");c("y",["y",1],"yo","eraYear");c("y",["yy",2],0,"eraYear");c("y",["yyy",3],0,"eraYear");c("y",["yyyy",4],0,"eraYear");d("N",Jt);d("NN",Jt);d("NNN",Jt);d("NNNN",nl);d("NNNNN",il);S(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?_(s).era=a:_(s).invalidEra=e});d("y",Ye);d("yy",Ye);d("yyy",Ye);d("yyyy",Ye);d("yo",ll);S(["y","yy","yyy","yyyy"],W);S(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[W]=s._locale.eraYearOrdinalParse(e,a):t[W]=parseInt(e,10)});function Zi(e,t){var s,r,a,n=this._eras||le("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=u(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=u(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function Ji(e,t,s){var r,a,n=this.eras(),i,o,f;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),o=n[r].abbr.toUpperCase(),f=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(o===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(f===e)return n[r];break}else if([i,o,f].indexOf(e)>=0)return n[r]}function Qi(e,t){var s=e.since<=e.until?1:-1;return t===void 0?u(e.since).year():u(e.since).year()+(t-e.offset)*s}function Xi(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Ki(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function el(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function tl(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-u(a[e].since).year())*s+a[e].offset;return this.year()}function sl(e){return g(this,"_erasNameRegex")||Qt.call(this),e?this._erasNameRegex:this._erasRegex}function rl(e){return g(this,"_erasAbbrRegex")||Qt.call(this),e?this._erasAbbrRegex:this._erasRegex}function al(e){return g(this,"_erasNarrowRegex")||Qt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Jt(e,t){return t.erasAbbrRegex(e)}function nl(e,t){return t.erasNameRegex(e)}function il(e,t){return t.erasNarrowRegex(e)}function ll(e,t){return t._eraYearOrdinalRegex||Ye}function Qt(){var e=[],t=[],s=[],r=[],a,n,i,o,f,m=this.eras();for(a=0,n=m.length;a<n;++a)i=ae(m[a].name),o=ae(m[a].abbr),f=ae(m[a].narrow),t.push(i),e.push(o),s.push(f),r.push(i),r.push(o),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}c(0,["gg",2],0,function(){return this.weekYear()%100});c(0,["GG",2],0,function(){return this.isoWeekYear()%100});function mt(e,t){c(0,[e,e.length],0,t)}mt("gggg","weekYear");mt("ggggg","weekYear");mt("GGGG","isoWeekYear");mt("GGGGG","isoWeekYear");d("G",ut);d("g",ut);d("GG",O,L);d("gg",O,L);d("GGGG",Lt,Ut);d("gggg",Lt,Ut);d("GGGGG",ot,it);d("ggggg",ot,it);Ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=y(e)});Ae(["gg","GG"],function(e,t,s,r){t[r]=u.parseTwoDigitYear(e)});function ol(e){return sr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ul(e){return sr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function dl(){return ne(this.year(),1,4)}function fl(){return ne(this.isoWeekYear(),1,4)}function cl(){var e=this.localeData()._week;return ne(this.year(),e.dow,e.doy)}function hl(){var e=this.localeData()._week;return ne(this.weekYear(),e.dow,e.doy)}function sr(e,t,s,r,a){var n;return e==null?We(this,r,a).year:(n=ne(e,r,a),t>n&&(t=n),ml.call(this,e,t,s,r,a))}function ml(e,t,s,r,a){var n=Cs(e,t,s,r,a),i=Re(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}c("Q",0,"Qo","quarter");d("Q",Ds);S("Q",function(e,t){t[se]=(y(e)-1)*3});function _l(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}c("D",["DD",2],"Do","date");d("D",O,be);d("DD",O,L);d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});S(["D","DD"],Z);S("Do",function(e,t){t[Z]=y(e.match(O)[0])});var rr=Oe("Date",!0);c("DDD",["DDDD",3],"DDDo","dayOfYear");d("DDD",lt);d("DDDD",Ys);S(["DDD","DDDD"],function(e,t,s){s._dayOfYear=y(e)});function yl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}c("m",["mm",2],0,"minute");d("m",O,At);d("mm",O,L);S(["m","mm"],j);var pl=Oe("Minutes",!1);c("s",["ss",2],0,"second");d("s",O,At);d("ss",O,L);S(["s","ss"],re);var wl=Oe("Seconds",!1);c("S",0,0,function(){return~~(this.millisecond()/100)});c(0,["SS",2],0,function(){return~~(this.millisecond()/10)});c(0,["SSS",3],0,"millisecond");c(0,["SSSS",4],0,function(){return this.millisecond()*10});c(0,["SSSSS",5],0,function(){return this.millisecond()*100});c(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});c(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});c(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});c(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});d("S",lt,Ds);d("SS",lt,L);d("SSS",lt,Ys);var he,ar;for(he="SSSS";he.length<=9;he+="S")d(he,Ye);function gl(e,t){t[ye]=y(("0."+e)*1e3)}for(he="S";he.length<=9;he+="S")S(he,gl);ar=Oe("Milliseconds",!1);c("z",0,0,"zoneAbbr");c("zz",0,0,"zoneName");function kl(){return this._isUTC?"UTC":""}function vl(){return this._isUTC?"Coordinated Universal Time":""}var l=Ue.prototype;l.add=hi;l.calendar=ki;l.clone=vi;l.diff=Ti;l.endOf=Li;l.format=Fi;l.from=Ri;l.fromNow=Wi;l.to=Ci;l.toNow=Ii;l.get=Pa;l.invalidAt=Bi;l.isAfter=Mi;l.isBefore=Si;l.isBetween=Di;l.isSame=Yi;l.isSameOrAfter=bi;l.isSameOrBefore=Oi;l.isValid=zi;l.lang=Qs;l.locale=Js;l.localeData=Xs;l.max=zn;l.min=jn;l.parsingFlags=$i;l.set=Na;l.startOf=Ui;l.subtract=mi;l.toArray=Vi;l.toObject=Gi;l.toDate=Ei;l.toISOString=Pi;l.inspect=Ni;typeof Symbol!="undefined"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});l.toJSON=ji;l.toString=xi;l.unix=Hi;l.valueOf=Ai;l.creationData=qi;l.eraName=Xi;l.eraNarrow=Ki;l.eraAbbr=el;l.eraYear=tl;l.year=Ts;l.isLeapYear=xa;l.weekYear=ol;l.isoWeekYear=ul;l.quarter=l.quarters=_l;l.month=Rs;l.daysInMonth=Ha;l.week=l.weeks=qa;l.isoWeek=l.isoWeeks=Za;l.weeksInYear=cl;l.weeksInWeekYear=hl;l.isoWeeksInYear=dl;l.isoWeeksInISOWeekYear=fl;l.date=rr;l.day=l.days=un;l.weekday=dn;l.isoWeekday=fn;l.dayOfYear=yl;l.hour=l.hours=wn;l.minute=l.minutes=pl;l.second=l.seconds=wl;l.millisecond=l.milliseconds=ar;l.utcOffset=ei;l.utc=si;l.local=ri;l.parseZone=ai;l.hasAlignedHourOffset=ni;l.isDST=ii;l.isLocal=oi;l.isUtcOffset=ui;l.isUtc=$s;l.isUTC=$s;l.zoneAbbr=kl;l.zoneName=vl;l.dates=E("dates accessor is deprecated. Use date instead.",rr);l.months=E("months accessor is deprecated. Use month instead",Rs);l.years=E("years accessor is deprecated. Use year instead",Ts);l.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ti);l.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",li);function Ml(e){return b(e*1e3)}function Sl(){return b.apply(null,arguments).parseZone()}function nr(e){return e}var k=Wt.prototype;k.calendar=la;k.longDateFormat=fa;k.invalidDate=ha;k.ordinal=ya;k.preparse=nr;k.postformat=nr;k.relativeTime=wa;k.pastFuture=ga;k.set=na;k.eras=Zi;k.erasParse=Ji;k.erasConvertYear=Qi;k.erasAbbrRegex=rl;k.erasNameRegex=sl;k.erasNarrowRegex=al;k.months=Ia;k.monthsShort=Ua;k.monthsParse=Aa;k.monthsRegex=Va;k.monthsShortRegex=Ea;k.week=ja;k.firstDayOfYear=Ba;k.firstDayOfWeek=$a;k.weekdays=rn;k.weekdaysMin=nn;k.weekdaysShort=an;k.weekdaysParse=on;k.weekdaysRegex=cn;k.weekdaysShortRegex=hn;k.weekdaysMinRegex=mn;k.isPM=yn;k.meridiem=gn;function st(e,t,s,r){var a=le(),n=Q().set(r,t);return a[s](n,e)}function ir(e,t,s){if(ie(e)&&(t=e,e=void 0),e=e||"",t!=null)return st(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=st(e,r,s,"month");return a}function Xt(e,t,s,r){typeof e=="boolean"?(ie(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,ie(t)&&(s=t,t=void 0),t=t||"");var a=le(),n=e?a._week.dow:0,i,o=[];if(s!=null)return st(t,(s+n)%7,r,"day");for(i=0;i<7;i++)o[i]=st(t,(i+n)%7,r,"day");return o}function Dl(e,t){return ir(e,t,"months")}function Yl(e,t){return ir(e,t,"monthsShort")}function bl(e,t,s){return Xt(e,t,s,"weekdays")}function Ol(e,t,s){return Xt(e,t,s,"weekdaysShort")}function Tl(e,t,s){return Xt(e,t,s,"weekdaysMin")}me("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,s=y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});u.lang=E("moment.lang is deprecated. Use moment.locale instead.",me);u.langData=E("moment.langData is deprecated. Use moment.localeData instead.",le);var ee=Math.abs;function xl(){var e=this._data;return this._milliseconds=ee(this._milliseconds),this._days=ee(this._days),this._months=ee(this._months),e.milliseconds=ee(e.milliseconds),e.seconds=ee(e.seconds),e.minutes=ee(e.minutes),e.hours=ee(e.hours),e.months=ee(e.months),e.years=ee(e.years),this}function lr(e,t,s,r){var a=B(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Pl(e,t){return lr(this,e,t,1)}function Nl(e,t){return lr(this,e,t,-1)}function ms(e){return e<0?Math.floor(e):Math.ceil(e)}function Fl(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,o,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=ms(Pt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=H(e/1e3),r.seconds=a%60,n=H(a/60),r.minutes=n%60,i=H(n/60),r.hours=i%24,t+=H(i/24),f=H(or(t)),s+=f,t-=ms(Pt(f)),o=H(s/12),s%=12,r.days=t,r.months=s,r.years=o,this}function or(e){return e*4800/146097}function Pt(e){return e*146097/4800}function Rl(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=V(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+or(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Pt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function oe(e){return function(){return this.as(e)}}var ur=oe("ms"),Wl=oe("s"),Cl=oe("m"),Il=oe("h"),Ul=oe("d"),Ll=oe("w"),Al=oe("M"),Hl=oe("Q"),El=oe("y"),Vl=ur;function Gl(){return B(this)}function jl(e){return e=V(e),this.isValid()?this[e+"s"]():NaN}function we(e){return function(){return this.isValid()?this._data[e]:NaN}}var zl=we("milliseconds"),$l=we("seconds"),Bl=we("minutes"),ql=we("hours"),Zl=we("days"),Jl=we("months"),Ql=we("years");function Xl(){return H(this.days()/7)}var te=Math.round,ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kl(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function eo(e,t,s,r){var a=B(e).abs(),n=te(a.as("s")),i=te(a.as("m")),o=te(a.as("h")),f=te(a.as("d")),m=te(a.as("M")),x=te(a.as("w")),G=te(a.as("y")),q=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||o<=1&&["h"]||o<s.h&&["hh",o]||f<=1&&["d"]||f<s.d&&["dd",f];return s.w!=null&&(q=q||x<=1&&["w"]||x<s.w&&["ww",x]),q=q||m<=1&&["M"]||m<s.M&&["MM",m]||G<=1&&["y"]||["yy",G],q[2]=t,q[3]=+e>0,q[4]=r,Kl.apply(null,q)}function to(e){return e===void 0?te:typeof e=="function"?(te=e,!0):!1}function so(e,t){return ve[e]===void 0?!1:t===void 0?ve[e]:(ve[e]=t,e==="s"&&(ve.ss=t-1),!0)}function ro(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=ve,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},ve,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=eo(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var St=Math.abs;function ge(e){return(e>0)-(e<0)||+e}function _t(){if(!this.isValid())return this.localeData().invalidDate();var e=St(this._milliseconds)/1e3,t=St(this._days),s=St(this._months),r,a,n,i,o=this.asSeconds(),f,m,x,G;return o?(r=H(e/60),a=H(r/60),e%=60,r%=60,n=H(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=o<0?"-":"",m=ge(this._months)!==ge(o)?"-":"",x=ge(this._days)!==ge(o)?"-":"",G=ge(this._milliseconds)!==ge(o)?"-":"",f+"P"+(n?m+n+"Y":"")+(s?m+s+"M":"")+(t?x+t+"D":"")+(a||r||e?"T":"")+(a?G+a+"H":"")+(r?G+r+"M":"")+(e?G+i+"S":"")):"P0D"}var w=ht.prototype;w.isValid=Jn;w.abs=xl;w.add=Pl;w.subtract=Nl;w.as=Rl;w.asMilliseconds=ur;w.asSeconds=Wl;w.asMinutes=Cl;w.asHours=Il;w.asDays=Ul;w.asWeeks=Ll;w.asMonths=Al;w.asQuarters=Hl;w.asYears=El;w.valueOf=Vl;w._bubble=Fl;w.clone=Gl;w.get=jl;w.milliseconds=zl;w.seconds=$l;w.minutes=Bl;w.hours=ql;w.days=Zl;w.weeks=Xl;w.months=Jl;w.years=Ql;w.humanize=ro;w.toISOString=_t;w.toString=_t;w.toJSON=_t;w.locale=Js;w.localeData=Xs;w.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_t);w.lang=Qs;c("X",0,0,"unix");c("x",0,0,"valueOf");d("x",ut);d("X",Sa);S("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});S("x",function(e,t,s){s._d=new Date(y(e))});//! moment.js
u.version="2.30.1";ra(b);u.fn=l;u.min=$n;u.max=Bn;u.now=qn;u.utc=Q;u.unix=Ml;u.months=Dl;u.isDate=Ie;u.locale=me;u.invalid=nt;u.duration=B;u.isMoment=$;u.weekdays=bl;u.parseZone=Sl;u.localeData=le;u.isDuration=Je;u.monthsShort=Yl;u.weekdaysMin=Tl;u.defineLocale=jt;u.updateLocale=Sn;u.locales=Dn;u.weekdaysShort=Ol;u.normalizeUnits=V;u.relativeTimeRounding=to;u.relativeTimeThreshold=so;u.calendarFormat=gi;u.prototype=l;u.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 U={xs:{span:24},sm:{span:24},lg:{span:4}},ao={span:24},yt={model:"Task",viewInPage:!0,properties:[{field:"id",label:"ID系统自动生成",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"ID系统自动生成"},colProps:U,component:"InputNumber",rules:[{required:!0,message:"请输入ID系统自动生成"}]},table:{}},{field:"name",label:"任务名称",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"任务名称"},colProps:U,component:"Input",rules:[{required:!0,message:"请输入任务名称!"}]},table:{width:200}},{field:"deviceSn",label:"设备",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"请选择设备",labelInValue:!1,api:Ar,params:{},resultField:"result",labelField:"name",valueField:"deviceSn"},colProps:U,component:"ApiSelect",rules:[{required:!0,message:"请选择设备!"}]},table:{}},{field:"wallType",label:"墙体类型",defaultValue:void 0,form:{colProps:U,component:"Select",componentProps:{allowClear:!0,placeholder:"请选择墙体类型",options:[{value:"A类",label:"A类"},{value:"B类",label:"B类"}],labelField:"label",valueField:"value",disabled:!0},rules:[{required:!0,message:"请选择墙体类型!"}]},table:{width:80}},{field:"direction",label:"方向",defaultValue:void 0,form:{colProps:U,component:"Select",componentProps:{allowClear:!0,placeholder:"请选择方向",options:[{value:"正面",label:"正面"},{value:"背面",label:"背面"}],labelField:"label",valueField:"value"},rules:[{required:!0,message:"请选择方向!"}]},table:{width:80}},{field:"coreA",label:"堆芯A点",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"堆芯A点"},colProps:U,component:"Input",rules:[{required:!0,message:"请输入堆芯A点"}]},table:{width:80}},{field:"coreB",label:"堆芯B点",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"堆芯B点"},colProps:U,component:"Input",rules:[{required:!0,message:"请输入堆芯B点"}]},table:{width:80}},{field:"paramJson",label:"任务参数",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"任务参数",autoSize:{minRows:15,maxRows:15}},slot:"paramJson",colProps:{span:24},rules:[{required:!0,message:"请输入任务参数!"}]},table:{}},{field:"resultJson",label:"任务结果",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"任务结果",autoSize:{minRows:15,maxRows:15}},component:"InputTextArea",colProps:{span:24}},table:{}},{field:"results",label:"结果",defaultValue:void 0,form:{},table:{}},{field:"startTimeQuery",label:"开始时间",defaultValue:void 0,form:{colProps:U,component:"RangePicker",componentProps:{allowClear:!1,placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",showTime:!1},rules:[{required:!0,message:"请输入开始时间!"}]},table:{}},{field:"startTime",label:"开始时间",defaultValue:void 0,form:{colProps:U,component:"DatePicker",componentProps:{allowClear:!1,placeholder:"开始时间",format:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss",showTime:!0},rules:[{required:!0,message:"请输入开始时间!"}]},table:{}},{field:"endTime",label:"结束时间",defaultValue:void 0,form:{colProps:U,component:"DatePicker",componentProps:{allowClear:!1,placeholder:"结束时间",format:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss",showTime:!0},rules:[{required:!0,message:"请输入结束时间!"}]},table:{}},{field:"state",label:"状态",defaultValue:void 0,form:{colProps:U,component:"Select",componentProps:{allowClear:!0,placeholder:"请选择状态",options:[{value:0,label:"未开始"},{value:1,label:"进行中"},{value:2,label:"已完成"}],labelField:"label",valueField:"value"},rules:[{required:!0,message:"请选择状态!"}]},table:{width:60,customRender:({text:e,record:t})=>{if(t.state===0)return"未开始";if(t.state===1)return"进行中";if(t.state===2)return"已完成"}}},{field:"createTime",label:"创建日期",defaultValue:void 0,form:{colProps:U,componentProps:{allowClear:!1,placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",showTime:!1},component:"RangePicker",rules:[{required:!0,message:"请输入CreateTime"}]},table:{customRender:({text:e,record:t})=>u(t.createTime).format("YYYY-MM-DD HH:mm")}},{field:"updateTime",label:"UpdateTime",defaultValue:void 0,form:{colProps:U,componentProps:{allowClear:!1,placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",showTime:!1},component:"RangePicker",rules:[{required:!0,message:"请输入UpdateTime"}]},table:{}}]},dr=["name","deviceSn","startTimeQuery","state"],fr=["name","deviceSn","wallType","direction","coreA","coreB"],cr=["name","deviceSn","wallType","direction","coreA","coreB","startTime","endTime","state","createTime"],hr=["name","deviceSn","wallType","direction","coreA","coreB","paramJson","resultJson","startTime","endTime","state"],_s=new Map(dr.map((e,t)=>[e,t])),xo=yt.properties.filter(e=>dr.includes(e.field)).map(r=>{var{field:e,label:t,form:a}=r,s=gt(a,[]);return wt(P({field:e,label:t,defaultValue:void 0},s),{required:!1,rules:[{required:!1}]})}).sort((e,t)=>{const s=_s.get(e.field),r=_s.get(t.field);return s-r}),ys=new Map(fr.map((e,t)=>[e,t])),no=yt.properties.filter(e=>fr.includes(e.field)).map(({field:e,label:t,defaultValue:s,form:r})=>wt(P({field:e,label:t,defaultValue:s},r),{colProps:ao})).sort((e,t)=>{const s=ys.get(e.field),r=ys.get(t.field);return s-r}),ps=new Map(cr.map((e,t)=>[e,t])),Po=yt.properties.filter(e=>cr.includes(e.field)).map(({field:e,label:t,table:s})=>P({dataIndex:e,title:t},s)).sort((e,t)=>{const s=ps.get(e.dataIndex),r=ps.get(t.dataIndex);return s-r}),ws=new Map(hr.map((e,t)=>[e,t]));yt.properties.filter(e=>hr.includes(e.field)).map(({field:e,label:t,table:s})=>P({dataIndex:e,title:t},s)).sort((e,t)=>{const s=ws.get(e.dataIndex),r=ws.get(t.dataIndex);return s-r});const io={key:0,style:{color:"red"}},lo={key:1,style:{color:"white"}},oo={key:0,style:{color:"red"}},uo={key:1,style:{color:"white"}},fo={key:0,style:{color:"red"}},co={key:1,style:{color:"white"}},ho={key:0,style:{color:"red"}},mo={key:1,style:{color:"white"}},_o=Xr({__name:"drawer",emits:["success","register","ocrClick"],setup(e,{expose:t,emit:s}){const[r,{openModal:a}]=$r(),n=[{title:"序号",dataIndex:"sn",key:"sn",width:"50px"},{title:"预埋件编号",dataIndex:"code",key:"code"},{title:"类型",dataIndex:"type",key:"type"},{title:"X(mm)",dataIndex:"x",key:"x",width:"72px"},{title:"Y(mm)",dataIndex:"y",key:"y",width:"72px"},{title:"w(mm)",dataIndex:"w",key:"w",width:"72px"},{title:"h(mm)",dataIndex:"h",key:"h",width:"72px"},{title:"中心点(m)",dataIndex:"center",key:"center",width:"80px"}],i=Ge([]),o=s,f=Ge(!0),m=Ge(!0),x=Ge(),[G,{resetFields:q,setFieldsValue:mr,validate:_r,getFieldsValue:He,updateSchema:yr}]=Ir({labelWidth:120,schemas:no,showActionButtonGroup:!1}),[pr,{setDrawerProps:pt,closeDrawer:wr}]=Hr(h=>Ve(this,null,function*(){yield q(),pt({confirmLoading:!1}),f.value=!!(h!=null&&h.isUpdate),x.value=h==null?void 0:h.record,i.value=[],(x.value&&x.value.paramJson?JSON.parse(x.value.paramJson):[]).forEach((v,D)=>{Object.keys(v).includes("sn")?i.value.push(P({},v)):i.value.push(P({sn:D+1+""},v))}),yield mr(P({},h.record)),yield yr([{field:"wallType",componentProps:{disabled:N(f)}},{field:"direction",componentProps:{disabled:N(f)}}]),es()})),[gr]=Gr({title:"预埋件列表",columns:n,dataSource:i,useSearchForm:!1,showTableSetting:!1,bordered:!0,showIndexColumn:!1,canResize:!1,pagination:!1,rowKey:h=>h.code,actionColumn:{width:140,title:"操作",dataIndex:"action",fixed:void 0}}),kr=ls(()=>N(f)?"编辑":"新增");function vr(){return Ve(this,null,function*(){const h=yield _r();pt({confirmLoading:!0});const M=gt(h,[]),v=N(f)?sa:ta,D=N(f)?Object.assign({},P(P({},N(x)),M)):P({},M);let Y=[];i.value.forEach(K=>{K.wallType=D.wallType,K.direction=D.direction,K.coreA=D.coreA,K.coreB=D.coreB,Y.push(P({},K))}),D.paramJson=JSON.stringify(Y),yield v(D),wr(),o("success"),pt({confirmLoading:!1})})}const Mr=()=>{a(!0,{isUpdate:!1})},Sr=(h,M)=>{a(!0,{record:h,isUpdate:!0})},Dr=h=>{i.value=i.value.filter(M=>M.code!==h.code)},Yr=()=>{const h=He(),M=N(f)?Object.assign({},P(P({},N(x)),h)):P({},h);o("ocrClick",M)},br=()=>{WebViewService.importExcel().then(h=>{const M=He();if(h===""){WebViewService.setMessage("没有预埋件数据!","information").then(()=>{});return}const v=JSON.parse(h);if(v.length===0){WebViewService.setMessage("没有预埋件数据!","information").then(()=>{});return}i.value||(i.value=[]),v.forEach(D=>{if(D.wallType.toUpperCase()===M.wallType&&D.direction===M.direction){const Y=i.value.filter(K=>K.code===D.code);Y.length===0?i.value.push(P({},D)):Y[0]=P({},D)}}),WebViewService.setMessage("数据导入成功!","success").then(()=>{})})},Or=h=>{i.value=[]},Tr=h=>Ve(this,null,function*(){i.value.forEach((M,v)=>{M.code===h.code&&(i.value[v]=P({},h))})}),Kt=ls(()=>(h,M)=>{let v=0;return i.value.forEach(D=>{Number(D[h])<0&&(v+=1)}),i.value.length-v<v?Number(M[h])>0:Number(M[h])<0}),es=()=>{const h=He();m.value=h.wallType===void 0||h.direction===void 0},xr=h=>{const M=Pr(h);i.value||(i.value=[]),M.forEach(v=>{v.hasOwnProperty("zm")&&delete v.zm,v.hasOwnProperty("nX")&&delete v.nX,v.hasOwnProperty("nY")&&delete v.nY;const D=i.value.filter(Y=>Y.code===v.code);D.length===0?i.value.push(P({},v)):D[0]=P({},v)}),WebViewService.setMessage("数据导入成功!","success").then(()=>{})},Pr=h=>{const M=He(),v=M.wallType,D=M.direction,Y=Array.from(new Map(h.map(p=>[p.x,p])).values()),K=Array.from(new Map(h.map(p=>[p.y,p])).values());h.forEach(p=>{if(v==="B类"&&Y.length<=3&&K.length>3){const Nr=p.y,Fr=p.x;p.nX=Nr,p.nY=Fr}});const ts=Array.from(new Map(h.map(p=>[p.nY,p])).values()),ss=Math.max(...ts.map(p=>Number(p.nY))),rs=Math.min(...ts.map(p=>Number(p.nY)));return h.forEach(p=>{Number(p.nY)===rs?p.zm=1:Number(p.nY)===ss||ss-Number(p.nY)<Number(p.nY)-rs?p.zm=0:p.zm=1}),D==="正面"?h.filter(p=>p.zm===1).map(p=>P({},p)):h.filter(p=>p.zm===0).map(p=>P({},p))};return t({setParamData:xr}),(h,M)=>{const v=Kr("a-button");return C(),os(N(Er),ea(h.$attrs,{onRegister:N(pr),showFooter:"",title:kr.value,width:"960px",onOk:vr}),{default:ue(()=>[de(N(Ur),{onRegister:N(G),onFieldValueChange:es},null,8,["onRegister"]),de(N(jr),{onRegister:N(gr)},{toolbar:ue(()=>[de(v,{type:"primary",icon:je(N(Br)),onClick:Mr},{default:ue(()=>M[0]||(M[0]=[ze("新 增")])),_:1},8,["icon"]),de(v,{type:"primary",icon:je(N(qr)),disabled:m.value,onClick:Yr},{default:ue(()=>M[1]||(M[1]=[ze("OCR识别")])),_:1},8,["icon","disabled"]),de(v,{type:"primary",icon:je(N(Zr)),disabled:m.value,onClick:br},{default:ue(()=>M[2]||(M[2]=[ze("导入Excel")])),_:1},8,["icon","disabled"]),de(N(Jr),{title:"确定要清空预埋件列表吗?","ok-text":"确定","cancel-text":"取消",onConfirm:Or},{default:ue(()=>[de(v,{type:"primary",icon:je(N(Qr))},{default:ue(()=>M[3]||(M[3]=[ze("清空列表")])),_:1},8,["icon"])]),_:1})]),bodyCell:ue(({column:D,record:Y})=>[D.dataIndex==="x"?(C(),A($e,{key:0},[Kt.value("x",Y)?(C(),A("span",io,fe(Y.x),1)):(C(),A("span",lo,fe(Y.x),1))],64)):Te("",!0),D.dataIndex==="center"?(C(),A($e,{key:1},[Kt.value("center",Y)?(C(),A("span",oo,fe(Y.center),1)):(C(),A("span",uo,fe(Y.center),1))],64)):Te("",!0),D.dataIndex==="w"?(C(),A($e,{key:2},[Y.w!==Y.h?(C(),A("span",fo,fe(Y.w),1)):(C(),A("span",co,fe(Y.w),1))],64)):Te("",!0),D.dataIndex==="h"?(C(),A($e,{key:3},[Y.w!==Y.h?(C(),A("span",ho,fe(Y.h),1)):(C(),A("span",mo,fe(Y.h),1))],64)):Te("",!0),D.dataIndex==="action"?(C(),os(N(Lr),{key:4,actions:[{label:"编辑",icon:"clarity:note-edit-line",onClick:Sr.bind(null,Y),divider:!0},{label:"删除",icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:Dr.bind(null,Y),placement:"topRight"},divider:!0}]},null,8,["actions"])):Te("",!0)]),_:1},8,["onRegister"]),de(zr,{onRegister:N(r),onSuccess:Tr},null,8,["onRegister"])]),_:1},16,["onRegister","title"])}}});const yo=Vr(_o,[["__scopeId","data-v-58c44f26"]]),No=Object.freeze(Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"}));export{yo as T,xo as a,Po as c,No as d,Oo as r,To as s};