zhihao-ui 1.1.6 → 1.2.3
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/dist/es/{DatePicker-D8LPaPf6.js → DatePicker-CSviipkU.js} +1 -1
- package/dist/es/{DetailHeader-Bzo3r_rs.js → DetailHeader-KRh1lffS.js} +1 -1
- package/dist/es/{DetailSubTitle-C5pVYJhX.js → DetailSubTitle-DCS8YLpA.js} +1 -1
- package/dist/es/{EditInfoPair-CM5piQwT.js → EditInfoPair-UqygyG7w.js} +1 -1
- package/dist/es/{FileWrapper-DN-KKB9p.js → FileWrapper-C8FmshRX.js} +1 -1
- package/dist/es/{InfoPair-CnBR3fy9.js → InfoPair-BXow_dHM.js} +1 -1
- package/dist/es/{MoneyInput-Dt_ZE-zv.js → MoneyInput-Chv0AAVp.js} +1 -1
- package/dist/es/index.js +7 -7
- package/dist/umd/index.umd.cjs +1 -1
- package/package.json +21 -1
- package/componens.ts +0 -41
- package/index.ts +0 -7
- package/vite.es.config.ts +0 -62
- package/vite.umd.config.ts +0 -54
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, useSlots as p, openBlock as a, createElementBlock as o, createElementVNode as e, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as g, createCommentVNode as k } from "vue";
|
|
2
|
-
import { D as v } from "./DatePicker-
|
|
2
|
+
import { D as v } from "./DatePicker-CSviipkU.js";
|
|
3
3
|
import { _ as D } from "./Button-Q7GkKwFF.js";
|
|
4
4
|
import { w as y } from "./utils-DBdiSe6_.js";
|
|
5
5
|
const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class: "detail-header--left" }, H = { class: "title common-title" }, M = { class: "info-pair--label" }, $ = { class: "info-pair--value" }, C = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as o, createElementBlock as s, createElementVNode as l, createTextVNode as a, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as d } from "vue";
|
|
2
|
-
import { D as u } from "./DatePicker-
|
|
2
|
+
import { D as u } from "./DatePicker-CSviipkU.js";
|
|
3
3
|
import { w as f } from "./utils-DBdiSe6_.js";
|
|
4
4
|
const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
|
|
5
5
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as o, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as d, unref as m } from "vue";
|
|
2
|
-
import { D as f } from "./DatePicker-
|
|
2
|
+
import { D as f } from "./DatePicker-CSviipkU.js";
|
|
3
3
|
import { _ } from "./Button-Q7GkKwFF.js";
|
|
4
4
|
import { w as u } from "./utils-DBdiSe6_.js";
|
|
5
5
|
const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as i, createElementBlock as o, toDisplayString as n, createCommentVNode as s, createElementVNode as t, createVNode as p, unref as m, withCtx as _, createTextVNode as u } from "vue";
|
|
2
|
-
import { D as w } from "./DatePicker-
|
|
2
|
+
import { D as w } from "./DatePicker-CSviipkU.js";
|
|
3
3
|
import { c as y } from "./vendor-mKFy0Hb6.js";
|
|
4
4
|
import { _ as h } from "./Button-Q7GkKwFF.js";
|
|
5
5
|
import { w as v } from "./utils-DBdiSe6_.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as i, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as f } from "vue";
|
|
2
|
-
import { D as d } from "./DatePicker-
|
|
2
|
+
import { D as d } from "./DatePicker-CSviipkU.js";
|
|
3
3
|
import { _ } from "./Button-Q7GkKwFF.js";
|
|
4
4
|
import { w as u } from "./utils-DBdiSe6_.js";
|
|
5
5
|
const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, useModel as i, computed as f, ref as v, openBlock as c, createBlock as y, unref as V, withCtx as n, createVNode as b, mergeProps as I, createSlots as M, renderList as g, renderSlot as w, normalizeProps as B, guardReactiveProps as N, mergeModels as m } from "vue";
|
|
2
|
-
import { v as k, d as P } from "./DatePicker-
|
|
2
|
+
import { v as k, d as P } from "./DatePicker-CSviipkU.js";
|
|
3
3
|
import { g as T } from "./vendor-mKFy0Hb6.js";
|
|
4
4
|
import { I as _ } from "./Input-C1s8JqmI.js";
|
|
5
5
|
import { _ as $ } from "./Button-Q7GkKwFF.js";
|
package/dist/es/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { m as o } from "./utils-DBdiSe6_.js";
|
|
2
2
|
import { Z as r } from "./Button-Q7GkKwFF.js";
|
|
3
|
-
import { Z as a } from "./DatePicker-
|
|
4
|
-
import { Z as m } from "./DetailSubTitle-
|
|
3
|
+
import { Z as a } from "./DatePicker-CSviipkU.js";
|
|
4
|
+
import { Z as m } from "./DetailSubTitle-DCS8YLpA.js";
|
|
5
5
|
import { Z as t } from "./Dialog-DrsOxk4u.js";
|
|
6
|
-
import { Z } from "./EditInfoPair-
|
|
7
|
-
import { Z as i } from "./FileWrapper-
|
|
6
|
+
import { Z } from "./EditInfoPair-UqygyG7w.js";
|
|
7
|
+
import { Z as i } from "./FileWrapper-C8FmshRX.js";
|
|
8
8
|
import { Z as s } from "./Grid-Ds-Jy0Mn.js";
|
|
9
|
-
import { Z as p } from "./InfoPair-
|
|
9
|
+
import { Z as p } from "./InfoPair-BXow_dHM.js";
|
|
10
10
|
import { Z as e, a as f } from "./Input-C1s8JqmI.js";
|
|
11
11
|
import { Z as h } from "./Loading-DELLXz7f.js";
|
|
12
12
|
import { Z as n } from "./MessageBox-B5ibisN4.js";
|
|
13
|
-
import { Z as l } from "./MoneyInput-
|
|
13
|
+
import { Z as l } from "./MoneyInput-Chv0AAVp.js";
|
|
14
14
|
import { Z as u } from "./PageHeadPanel-CdohXWA9.js";
|
|
15
15
|
import { Z as I } from "./ToolTips-CxyQMewg.js";
|
|
16
16
|
import { Z as d } from "./BaseInfo-DqxHM6sE.js";
|
|
17
|
-
import { Z as P } from "./DetailHeader-
|
|
17
|
+
import { Z as P } from "./DetailHeader-KRh1lffS.js";
|
|
18
18
|
const c = [
|
|
19
19
|
d,
|
|
20
20
|
r,
|
package/dist/umd/index.umd.cjs
CHANGED
|
@@ -37,4 +37,4 @@ var Dd;function Z(){return Dd.apply(null,arguments)}function rS(e){Dd=e}function
|
|
|
37
37
|
[`+s+"] ";for(i in arguments[0])ke(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[s];a.push(o)}Nd(e+`
|
|
38
38
|
Arguments: `+Array.prototype.slice.call(a).join("")+`
|
|
39
39
|
`+new Error().stack),r=!1}return n.apply(this,arguments)},n)}var Pd={};function $d(e,n){Z.deprecationHandler!=null&&Z.deprecationHandler(e,n),Pd[e]||(Nd(n),Pd[e]=!0)}Z.suppressDeprecationWarnings=!1,Z.deprecationHandler=null;function Rt(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function oS(e){var n,r;for(r in e)ke(e,r)&&(n=e[r],Rt(n)?this[r]=n:this["_"+r]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xs(e,n){var r=mn({},e),a;for(a in n)ke(n,a)&&(Nn(e[a])&&Nn(n[a])?(r[a]={},mn(r[a],e[a]),mn(r[a],n[a])):n[a]!=null?r[a]=n[a]:delete r[a]);for(a in e)ke(e,a)&&!ke(n,a)&&Nn(e[a])&&(r[a]=mn({},r[a]));return r}function Ns(e){e!=null&&this.set(e)}var Ps;Object.keys?Ps=Object.keys:Ps=function(e){var n,r=[];for(n in e)ke(e,n)&&r.push(n);return r};var sS={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function iS(e,n,r){var a=this._calendar[e]||this._calendar.sameElse;return Rt(a)?a.call(n,r):a}function Ft(e,n,r){var a=""+Math.abs(e),o=n-a.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+a}var $s=/(\[[^\[]*\])|(\\)?([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,Na=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Bs={},Qn={};function te(e,n,r,a){var o=a;typeof a=="string"&&(o=function(){return this[a]()}),e&&(Qn[e]=o),n&&(Qn[n[0]]=function(){return Ft(o.apply(this,arguments),n[1],n[2])}),r&&(Qn[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function lS(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function cS(e){var n=e.match($s),r,a;for(r=0,a=n.length;r<a;r++)Qn[n[r]]?n[r]=Qn[n[r]]:n[r]=lS(n[r]);return function(o){var s="",i;for(i=0;i<a;i++)s+=Rt(n[i])?n[i].call(o,e):n[i];return s}}function Pa(e,n){return e.isValid()?(n=Bd(n,e.localeData()),Bs[n]=Bs[n]||cS(n),Bs[n](e)):e.localeData().invalidDate()}function Bd(e,n){var r=5;function a(o){return n.longDateFormat(o)||o}for(Na.lastIndex=0;r>=0&&Na.test(e);)e=e.replace(Na,a),Na.lastIndex=0,r-=1;return e}var dS={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 fS(e){var n=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return n||!r?n:(this._longDateFormat[e]=r.match($s).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var uS="Invalid date";function pS(){return this._invalidDate}var mS="%d",hS=/\d{1,2}/;function gS(e){return this._ordinal.replace("%d",e)}var yS={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 bS(e,n,r,a){var o=this._relativeTime[r];return Rt(o)?o(e,n,r,a):o.replace(/%d/i,e)}function wS(e,n){var r=this._relativeTime[e>0?"future":"past"];return Rt(r)?r(n):r.replace(/%s/i,n)}var Vd={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 yt(e){return typeof e=="string"?Vd[e]||Vd[e.toLowerCase()]:void 0}function Vs(e){var n={},r,a;for(a in e)ke(e,a)&&(r=yt(a),r&&(n[r]=e[a]));return n}var _S={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 kS(e){var n=[],r;for(r in e)ke(e,r)&&n.push({unit:r,priority:_S[r]});return n.sort(function(a,o){return a.priority-o.priority}),n}var Id=/\d/,dt=/\d\d/,Ad=/\d{3}/,Is=/\d{4}/,$a=/[+-]?\d{6}/,Oe=/\d\d?/,Rd=/\d\d\d\d?/,Fd=/\d\d\d\d\d\d?/,Ba=/\d{1,3}/,As=/\d{1,4}/,Va=/[+-]?\d{1,6}/,er=/\d+/,Ia=/[+-]?\d+/,SS=/Z|[+-]\d\d:?\d\d/gi,Aa=/Z|[+-]\d\d(?::?\d\d)?/gi,CS=/[+-]?\d+(\.\d{1,3})?/,Pr=/[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,tr=/^[1-9]\d?/,Rs=/^([1-9]\d|\d)/,Ra;Ra={};function Q(e,n,r){Ra[e]=Rt(n)?n:function(a,o){return a&&r?r:n}}function vS(e,n){return ke(Ra,e)?Ra[e](n._strict,n._locale):new RegExp(ES(e))}function ES(e){return Xt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,r,a,o,s){return r||a||o||s}))}function Xt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function bt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ye(e){var n=+e,r=0;return n!==0&&isFinite(n)&&(r=bt(n)),r}var Fs={};function Ee(e,n){var r,a=n,o;for(typeof e=="string"&&(e=[e]),Jt(n)&&(a=function(s,i){i[n]=ye(s)}),o=e.length,r=0;r<o;r++)Fs[e[r]]=a}function $r(e,n){Ee(e,function(r,a,o,s){o._w=o._w||{},n(r,o._w,o,s)})}function MS(e,n,r){n!=null&&ke(Fs,e)&&Fs[e](n,r._a,r,e)}function Fa(e){return e%4===0&&e%100!==0||e%400===0}var Ge=0,Qt=1,Lt=2,je=3,Ot=4,en=5,Pn=6,TS=7,DS=8;te("Y",0,0,function(){var e=this.year();return e<=9999?Ft(e,4):"+"+e}),te(0,["YY",2],0,function(){return this.year()%100}),te(0,["YYYY",4],0,"year"),te(0,["YYYYY",5],0,"year"),te(0,["YYYYYY",6,!0],0,"year"),Q("Y",Ia),Q("YY",Oe,dt),Q("YYYY",As,Is),Q("YYYYY",Va,$a),Q("YYYYYY",Va,$a),Ee(["YYYYY","YYYYYY"],Ge),Ee("YYYY",function(e,n){n[Ge]=e.length===2?Z.parseTwoDigitYear(e):ye(e)}),Ee("YY",function(e,n){n[Ge]=Z.parseTwoDigitYear(e)}),Ee("Y",function(e,n){n[Ge]=parseInt(e,10)});function Br(e){return Fa(e)?366:365}Z.parseTwoDigitYear=function(e){return ye(e)+(ye(e)>68?1900:2e3)};var Ld=nr("FullYear",!0);function OS(){return Fa(this.year())}function nr(e,n){return function(r){return r!=null?(Yd(this,e,r),Z.updateOffset(this,n),this):Vr(this,e)}}function Vr(e,n){if(!e.isValid())return NaN;var r=e._d,a=e._isUTC;switch(n){case"Milliseconds":return a?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return a?r.getUTCSeconds():r.getSeconds();case"Minutes":return a?r.getUTCMinutes():r.getMinutes();case"Hours":return a?r.getUTCHours():r.getHours();case"Date":return a?r.getUTCDate():r.getDate();case"Day":return a?r.getUTCDay():r.getDay();case"Month":return a?r.getUTCMonth():r.getMonth();case"FullYear":return a?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Yd(e,n,r){var a,o,s,i,l;if(!(!e.isValid()||isNaN(r))){switch(a=e._d,o=e._isUTC,n){case"Milliseconds":return void(o?a.setUTCMilliseconds(r):a.setMilliseconds(r));case"Seconds":return void(o?a.setUTCSeconds(r):a.setSeconds(r));case"Minutes":return void(o?a.setUTCMinutes(r):a.setMinutes(r));case"Hours":return void(o?a.setUTCHours(r):a.setHours(r));case"Date":return void(o?a.setUTCDate(r):a.setDate(r));case"FullYear":break;default:return}s=r,i=e.month(),l=e.date(),l=l===29&&i===1&&!Fa(s)?28:l,o?a.setUTCFullYear(s,i,l):a.setFullYear(s,i,l)}}function xS(e){return e=yt(e),Rt(this[e])?this[e]():this}function NS(e,n){if(typeof e=="object"){e=Vs(e);var r=kS(e),a,o=r.length;for(a=0;a<o;a++)this[r[a].unit](e[r[a].unit])}else if(e=yt(e),Rt(this[e]))return this[e](n);return this}function PS(e,n){return(e%n+n)%n}var Ie;Array.prototype.indexOf?Ie=Array.prototype.indexOf:Ie=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1};function Ls(e,n){if(isNaN(e)||isNaN(n))return NaN;var r=PS(n,12);return e+=(n-r)/12,r===1?Fa(e)?29:28:31-r%7%2}te("M",["MM",2],"Mo",function(){return this.month()+1}),te("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),te("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Q("M",Oe,tr),Q("MM",Oe,dt),Q("MMM",function(e,n){return n.monthsShortRegex(e)}),Q("MMMM",function(e,n){return n.monthsRegex(e)}),Ee(["M","MM"],function(e,n){n[Qt]=ye(e)-1}),Ee(["MMM","MMMM"],function(e,n,r,a){var o=r._locale.monthsParse(e,a,r._strict);o!=null?n[Qt]=o:de(r).invalidMonth=e});var $S="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,BS=Pr,VS=Pr;function IS(e,n){return e?Tt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||jd).test(n)?"format":"standalone"][e.month()]:Tt(this._months)?this._months:this._months.standalone}function AS(e,n){return e?Tt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[jd.test(n)?"format":"standalone"][e.month()]:Tt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function RS(e,n,r){var a,o,s,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)s=At([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(s,"").toLocaleLowerCase();return r?n==="MMM"?(o=Ie.call(this._shortMonthsParse,i),o!==-1?o:null):(o=Ie.call(this._longMonthsParse,i),o!==-1?o:null):n==="MMM"?(o=Ie.call(this._shortMonthsParse,i),o!==-1?o:(o=Ie.call(this._longMonthsParse,i),o!==-1?o:null)):(o=Ie.call(this._longMonthsParse,i),o!==-1?o:(o=Ie.call(this._shortMonthsParse,i),o!==-1?o:null))}function FS(e,n,r){var a,o,s;if(this._monthsParseExact)return RS.call(this,e,n,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(o=At([2e3,a]),r&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!r&&!this._monthsParse[a]&&(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[a]=new RegExp(s.replace(".",""),"i")),r&&n==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(r&&n==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!r&&this._monthsParse[a].test(e))return a}}function Wd(e,n){if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=ye(n);else if(n=e.localeData().monthsParse(n),!Jt(n))return e}var r=n,a=e.date();return a=a<29?a:Math.min(a,Ls(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,a):e._d.setMonth(r,a),e}function Hd(e){return e!=null?(Wd(this,e),Z.updateOffset(this,!0),this):Vr(this,"Month")}function LS(){return Ls(this.year(),this.month())}function YS(e){return this._monthsParseExact?(ke(this,"_monthsRegex")||Ud.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ke(this,"_monthsShortRegex")||(this._monthsShortRegex=BS),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function zS(e){return this._monthsParseExact?(ke(this,"_monthsRegex")||Ud.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ke(this,"_monthsRegex")||(this._monthsRegex=VS),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ud(){function e(c,d){return d.length-c.length}var n=[],r=[],a=[],o,s,i,l;for(o=0;o<12;o++)s=At([2e3,o]),i=Xt(this.monthsShort(s,"")),l=Xt(this.months(s,"")),n.push(i),r.push(l),a.push(l),a.push(i);n.sort(e),r.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function jS(e,n,r,a,o,s,i){var l;return e<100&&e>=0?(l=new Date(e+400,n,r,a,o,s,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,n,r,a,o,s,i),l}function Ir(e){var n,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,n=new Date(Date.UTC.apply(null,r)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function La(e,n,r){var a=7+n-r,o=(7+Ir(e,0,a).getUTCDay()-n)%7;return-o+a-1}function qd(e,n,r,a,o){var s=(7+r-a)%7,i=La(e,a,o),l=1+7*(n-1)+s+i,c,d;return l<=0?(c=e-1,d=Br(c)+l):l>Br(e)?(c=e+1,d=l-Br(e)):(c=e,d=l),{year:c,dayOfYear:d}}function Ar(e,n,r){var a=La(e.year(),n,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1,s,i;return o<1?(i=e.year()-1,s=o+tn(i,n,r)):o>tn(e.year(),n,r)?(s=o-tn(e.year(),n,r),i=e.year()+1):(i=e.year(),s=o),{week:s,year:i}}function tn(e,n,r){var a=La(e,n,r),o=La(e+1,n,r);return(Br(e)-a+o)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Q("w",Oe,tr),Q("ww",Oe,dt),Q("W",Oe,tr),Q("WW",Oe,dt),$r(["w","ww","W","WW"],function(e,n,r,a){n[a.substr(0,1)]=ye(e)});function WS(e){return Ar(e,this._week.dow,this._week.doy).week}var HS={dow:0,doy:6};function US(){return this._week.dow}function qS(){return this._week.doy}function GS(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function KS(e){var n=Ar(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),te("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),te("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Q("d",Oe),Q("e",Oe),Q("E",Oe),Q("dd",function(e,n){return n.weekdaysMinRegex(e)}),Q("ddd",function(e,n){return n.weekdaysShortRegex(e)}),Q("dddd",function(e,n){return n.weekdaysRegex(e)}),$r(["dd","ddd","dddd"],function(e,n,r,a){var o=r._locale.weekdaysParse(e,a,r._strict);o!=null?n.d=o:de(r).invalidWeekday=e}),$r(["d","e","E"],function(e,n,r,a){n[a]=ye(e)});function ZS(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function JS(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ys(e,n){return e.slice(n,7).concat(e.slice(0,n))}var XS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),QS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),e2=Pr,t2=Pr,n2=Pr;function r2(e,n){var r=Tt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===!0?Ys(r,this._week.dow):e?r[e.day()]:r}function a2(e){return e===!0?Ys(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function o2(e){return e===!0?Ys(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function s2(e,n,r){var a,o,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)s=At([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(s,"").toLocaleLowerCase();return r?n==="dddd"?(o=Ie.call(this._weekdaysParse,i),o!==-1?o:null):n==="ddd"?(o=Ie.call(this._shortWeekdaysParse,i),o!==-1?o:null):(o=Ie.call(this._minWeekdaysParse,i),o!==-1?o:null):n==="dddd"?(o=Ie.call(this._weekdaysParse,i),o!==-1||(o=Ie.call(this._shortWeekdaysParse,i),o!==-1)?o:(o=Ie.call(this._minWeekdaysParse,i),o!==-1?o:null)):n==="ddd"?(o=Ie.call(this._shortWeekdaysParse,i),o!==-1||(o=Ie.call(this._weekdaysParse,i),o!==-1)?o:(o=Ie.call(this._minWeekdaysParse,i),o!==-1?o:null)):(o=Ie.call(this._minWeekdaysParse,i),o!==-1||(o=Ie.call(this._weekdaysParse,i),o!==-1)?o:(o=Ie.call(this._shortWeekdaysParse,i),o!==-1?o:null))}function i2(e,n,r){var a,o,s;if(this._weekdaysParseExact)return s2.call(this,e,n,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(o=At([2e3,1]).day(a),r&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[a]=new RegExp(s.replace(".",""),"i")),r&&n==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(r&&n==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(r&&n==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!r&&this._weekdaysParse[a].test(e))return a}}function l2(e){if(!this.isValid())return e!=null?this:NaN;var n=Vr(this,"Day");return e!=null?(e=ZS(e,this.localeData()),this.add(e-n,"d")):n}function c2(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function d2(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=JS(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function f2(e){return this._weekdaysParseExact?(ke(this,"_weekdaysRegex")||zs.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ke(this,"_weekdaysRegex")||(this._weekdaysRegex=e2),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function u2(e){return this._weekdaysParseExact?(ke(this,"_weekdaysRegex")||zs.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ke(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=t2),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function p2(e){return this._weekdaysParseExact?(ke(this,"_weekdaysRegex")||zs.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ke(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=n2),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zs(){function e(u,f){return f.length-u.length}var n=[],r=[],a=[],o=[],s,i,l,c,d;for(s=0;s<7;s++)i=At([2e3,1]).day(s),l=Xt(this.weekdaysMin(i,"")),c=Xt(this.weekdaysShort(i,"")),d=Xt(this.weekdays(i,"")),n.push(l),r.push(c),a.push(d),o.push(l),o.push(c),o.push(d);n.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function js(){return this.hours()%12||12}function m2(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,js),te("k",["kk",2],0,m2),te("hmm",0,0,function(){return""+js.apply(this)+Ft(this.minutes(),2)}),te("hmmss",0,0,function(){return""+js.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)});function Kd(e,n){te(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}Kd("a",!0),Kd("A",!1);function Zd(e,n){return n._meridiemParse}Q("a",Zd),Q("A",Zd),Q("H",Oe,Rs),Q("h",Oe,tr),Q("k",Oe,tr),Q("HH",Oe,dt),Q("hh",Oe,dt),Q("kk",Oe,dt),Q("hmm",Rd),Q("hmmss",Fd),Q("Hmm",Rd),Q("Hmmss",Fd),Ee(["H","HH"],je),Ee(["k","kk"],function(e,n,r){var a=ye(e);n[je]=a===24?0:a}),Ee(["a","A"],function(e,n,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),Ee(["h","hh"],function(e,n,r){n[je]=ye(e),de(r).bigHour=!0}),Ee("hmm",function(e,n,r){var a=e.length-2;n[je]=ye(e.substr(0,a)),n[Ot]=ye(e.substr(a)),de(r).bigHour=!0}),Ee("hmmss",function(e,n,r){var a=e.length-4,o=e.length-2;n[je]=ye(e.substr(0,a)),n[Ot]=ye(e.substr(a,2)),n[en]=ye(e.substr(o)),de(r).bigHour=!0}),Ee("Hmm",function(e,n,r){var a=e.length-2;n[je]=ye(e.substr(0,a)),n[Ot]=ye(e.substr(a))}),Ee("Hmmss",function(e,n,r){var a=e.length-4,o=e.length-2;n[je]=ye(e.substr(0,a)),n[Ot]=ye(e.substr(a,2)),n[en]=ye(e.substr(o))});function h2(e){return(e+"").toLowerCase().charAt(0)==="p"}var g2=/[ap]\.?m?\.?/i,y2=nr("Hours",!0);function b2(e,n,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Jd={calendar:sS,longDateFormat:dS,invalidDate:uS,ordinal:mS,dayOfMonthOrdinalParse:hS,relativeTime:yS,months:$S,monthsShort:zd,week:HS,weekdays:XS,weekdaysMin:QS,weekdaysShort:Gd,meridiemParse:g2},$e={},Rr={},Fr;function w2(e,n){var r,a=Math.min(e.length,n.length);for(r=0;r<a;r+=1)if(e[r]!==n[r])return r;return a}function Xd(e){return e&&e.toLowerCase().replace("_","-")}function _2(e){for(var n=0,r,a,o,s;n<e.length;){for(s=Xd(e[n]).split("-"),r=s.length,a=Xd(e[n+1]),a=a?a.split("-"):null;r>0;){if(o=Ya(s.slice(0,r).join("-")),o)return o;if(a&&a.length>=r&&w2(s,a)>=r-1)break;r--}n++}return Fr}function k2(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ya(e){var n=null,r;if($e[e]===void 0&&typeof module<"u"&&module&&module.exports&&k2(e))try{n=Fr._abbr,r=require,r("./locale/"+e),hn(n)}catch{$e[e]=null}return $e[e]}function hn(e,n){var r;return e&&(tt(n)?r=nn(e):r=Ws(e,n),r?Fr=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Fr._abbr}function Ws(e,n){if(n!==null){var r,a=Jd;if(n.abbr=e,$e[e]!=null)$d("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."),a=$e[e]._config;else if(n.parentLocale!=null)if($e[n.parentLocale]!=null)a=$e[n.parentLocale]._config;else if(r=Ya(n.parentLocale),r!=null)a=r._config;else return Rr[n.parentLocale]||(Rr[n.parentLocale]=[]),Rr[n.parentLocale].push({name:e,config:n}),null;return $e[e]=new Ns(xs(a,n)),Rr[e]&&Rr[e].forEach(function(o){Ws(o.name,o.config)}),hn(e),$e[e]}else return delete $e[e],null}function S2(e,n){if(n!=null){var r,a,o=Jd;$e[e]!=null&&$e[e].parentLocale!=null?$e[e].set(xs($e[e]._config,n)):(a=Ya(e),a!=null&&(o=a._config),n=xs(o,n),a==null&&(n.abbr=e),r=new Ns(n),r.parentLocale=$e[e],$e[e]=r),hn(e)}else $e[e]!=null&&($e[e].parentLocale!=null?($e[e]=$e[e].parentLocale,e===hn()&&hn(e)):$e[e]!=null&&delete $e[e]);return $e[e]}function nn(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Fr;if(!Tt(e)){if(n=Ya(e),n)return n;e=[e]}return _2(e)}function C2(){return Ps($e)}function Hs(e){var n,r=e._a;return r&&de(e).overflow===-2&&(n=r[Qt]<0||r[Qt]>11?Qt:r[Lt]<1||r[Lt]>Ls(r[Ge],r[Qt])?Lt:r[je]<0||r[je]>24||r[je]===24&&(r[Ot]!==0||r[en]!==0||r[Pn]!==0)?je:r[Ot]<0||r[Ot]>59?Ot:r[en]<0||r[en]>59?en:r[Pn]<0||r[Pn]>999?Pn:-1,de(e)._overflowDayOfYear&&(n<Ge||n>Lt)&&(n=Lt),de(e)._overflowWeeks&&n===-1&&(n=TS),de(e)._overflowWeekday&&n===-1&&(n=DS),de(e).overflow=n),e}var v2=/^\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)?)?$/,E2=/^\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)?)?$/,M2=/Z|[+-]\d\d(?::?\d\d)?/,za=[["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]],Us=[["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/]],T2=/^\/?Date\((-?\d+)/i,D2=/^(?:(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}))$/,O2={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 Qd(e){var n,r,a=e._i,o=v2.exec(a)||E2.exec(a),s,i,l,c,d=za.length,u=Us.length;if(o){for(de(e).iso=!0,n=0,r=d;n<r;n++)if(za[n][1].exec(o[1])){i=za[n][0],s=za[n][2]!==!1;break}if(i==null){e._isValid=!1;return}if(o[3]){for(n=0,r=u;n<r;n++)if(Us[n][1].exec(o[3])){l=(o[2]||" ")+Us[n][0];break}if(l==null){e._isValid=!1;return}}if(!s&&l!=null){e._isValid=!1;return}if(o[4])if(M2.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(c||""),Gs(e)}else e._isValid=!1}function x2(e,n,r,a,o,s){var i=[N2(e),zd.indexOf(n),parseInt(r,10),parseInt(a,10),parseInt(o,10)];return s&&i.push(parseInt(s,10)),i}function N2(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function P2(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $2(e,n,r){if(e){var a=Gd.indexOf(e),o=new Date(n[0],n[1],n[2]).getDay();if(a!==o)return de(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function B2(e,n,r){if(e)return O2[e];if(n)return 0;var a=parseInt(r,10),o=a%100,s=(a-o)/100;return s*60+o}function ef(e){var n=D2.exec(P2(e._i)),r;if(n){if(r=x2(n[4],n[3],n[2],n[5],n[6],n[7]),!$2(n[1],r,e))return;e._a=r,e._tzm=B2(n[8],n[9],n[10]),e._d=Ir.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),de(e).rfc2822=!0}else e._isValid=!1}function V2(e){var n=T2.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(Qd(e),e._isValid===!1)delete e._isValid;else return;if(ef(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Z.createFromInputFallback(e)}Z.createFromInputFallback=gt("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 rr(e,n,r){return e??n??r}function I2(e){var n=new Date(Z.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function qs(e){var n,r,a=[],o,s,i;if(!e._d){for(o=I2(e),e._w&&e._a[Lt]==null&&e._a[Qt]==null&&A2(e),e._dayOfYear!=null&&(i=rr(e._a[Ge],o[Ge]),(e._dayOfYear>Br(i)||e._dayOfYear===0)&&(de(e)._overflowDayOfYear=!0),r=Ir(i,0,e._dayOfYear),e._a[Qt]=r.getUTCMonth(),e._a[Lt]=r.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=a[n]=o[n];for(;n<7;n++)e._a[n]=a[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[je]===24&&e._a[Ot]===0&&e._a[en]===0&&e._a[Pn]===0&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?Ir:jS).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(de(e).weekdayMismatch=!0)}}function A2(e){var n,r,a,o,s,i,l,c,d;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(s=1,i=4,r=rr(n.GG,e._a[Ge],Ar(xe(),1,4).year),a=rr(n.W,1),o=rr(n.E,1),(o<1||o>7)&&(c=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,d=Ar(xe(),s,i),r=rr(n.gg,e._a[Ge],d.year),a=rr(n.w,d.week),n.d!=null?(o=n.d,(o<0||o>6)&&(c=!0)):n.e!=null?(o=n.e+s,(n.e<0||n.e>6)&&(c=!0)):o=s),a<1||a>tn(r,s,i)?de(e)._overflowWeeks=!0:c!=null?de(e)._overflowWeekday=!0:(l=qd(r,a,o,s,i),e._a[Ge]=l.year,e._dayOfYear=l.dayOfYear)}Z.ISO_8601=function(){},Z.RFC_2822=function(){};function Gs(e){if(e._f===Z.ISO_8601){Qd(e);return}if(e._f===Z.RFC_2822){ef(e);return}e._a=[],de(e).empty=!0;var n=""+e._i,r,a,o,s,i,l=n.length,c=0,d,u;for(o=Bd(e._f,e._locale).match($s)||[],u=o.length,r=0;r<u;r++)s=o[r],a=(n.match(vS(s,e))||[])[0],a&&(i=n.substr(0,n.indexOf(a)),i.length>0&&de(e).unusedInput.push(i),n=n.slice(n.indexOf(a)+a.length),c+=a.length),Qn[s]?(a?de(e).empty=!1:de(e).unusedTokens.push(s),MS(s,a,e)):e._strict&&!a&&de(e).unusedTokens.push(s);de(e).charsLeftOver=l-c,n.length>0&&de(e).unusedInput.push(n),e._a[je]<=12&&de(e).bigHour===!0&&e._a[je]>0&&(de(e).bigHour=void 0),de(e).parsedDateParts=e._a.slice(0),de(e).meridiem=e._meridiem,e._a[je]=R2(e._locale,e._a[je],e._meridiem),d=de(e).era,d!==null&&(e._a[Ge]=e._locale.erasConvertYear(d,e._a[Ge])),qs(e),Hs(e)}function R2(e,n,r){var a;return r==null?n:e.meridiemHour!=null?e.meridiemHour(n,r):(e.isPM!=null&&(a=e.isPM(r),a&&n<12&&(n+=12),!a&&n===12&&(n=0)),n)}function F2(e){var n,r,a,o,s,i,l=!1,c=e._f.length;if(c===0){de(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)s=0,i=!1,n=Os({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[o],Gs(n),Ts(n)&&(i=!0),s+=de(n).charsLeftOver,s+=de(n).unusedTokens.length*10,de(n).score=s,l?s<a&&(a=s,r=n):(a==null||s<a||i)&&(a=s,r=n,i&&(l=!0));mn(e,r||n)}function L2(e){if(!e._d){var n=Vs(e._i),r=n.day===void 0?n.date:n.day;e._a=Od([n.year,n.month,r,n.hour,n.minute,n.second,n.millisecond],function(a){return a&&parseInt(a,10)}),qs(e)}}function Y2(e){var n=new Nr(Hs(tf(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function tf(e){var n=e._i,r=e._f;return e._locale=e._locale||nn(e._l),n===null||r===void 0&&n===""?xa({nullInput:!0}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),Dt(n)?new Nr(Hs(n)):(xr(n)?e._d=n:Tt(r)?F2(e):r?Gs(e):z2(e),Ts(e)||(e._d=null),e))}function z2(e){var n=e._i;tt(n)?e._d=new Date(Z.now()):xr(n)?e._d=new Date(n.valueOf()):typeof n=="string"?V2(e):Tt(n)?(e._a=Od(n.slice(0),function(r){return parseInt(r,10)}),qs(e)):Nn(n)?L2(e):Jt(n)?e._d=new Date(n):Z.createFromInputFallback(e)}function nf(e,n,r,a,o){var s={};return(n===!0||n===!1)&&(a=n,n=void 0),(r===!0||r===!1)&&(a=r,r=void 0),(Nn(e)&&Es(e)||Tt(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=r,s._i=e,s._f=n,s._strict=a,Y2(s)}function xe(e,n,r,a){return nf(e,n,r,a,!1)}var j2=gt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xe.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:xa()}),W2=gt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xe.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:xa()});function rf(e,n){var r,a;if(n.length===1&&Tt(n[0])&&(n=n[0]),!n.length)return xe();for(r=n[0],a=1;a<n.length;++a)(!n[a].isValid()||n[a][e](r))&&(r=n[a]);return r}function H2(){var e=[].slice.call(arguments,0);return rf("isBefore",e)}function U2(){var e=[].slice.call(arguments,0);return rf("isAfter",e)}var q2=function(){return Date.now?Date.now():+new Date},Lr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function G2(e){var n,r=!1,a,o=Lr.length;for(n in e)if(ke(e,n)&&!(Ie.call(Lr,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return!1;for(a=0;a<o;++a)if(e[Lr[a]]){if(r)return!1;parseFloat(e[Lr[a]])!==ye(e[Lr[a]])&&(r=!0)}return!0}function K2(){return this._isValid}function Z2(){return xt(NaN)}function ja(e){var n=Vs(e),r=n.year||0,a=n.quarter||0,o=n.month||0,s=n.week||n.isoWeek||0,i=n.day||0,l=n.hour||0,c=n.minute||0,d=n.second||0,u=n.millisecond||0;this._isValid=G2(n),this._milliseconds=+u+d*1e3+c*6e4+l*1e3*60*60,this._days=+i+s*7,this._months=+o+a*3+r*12,this._data={},this._locale=nn(),this._bubble()}function Wa(e){return e instanceof ja}function Ks(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function J2(e,n,r){var a=Math.min(e.length,n.length),o=Math.abs(e.length-n.length),s=0,i;for(i=0;i<a;i++)ye(e[i])!==ye(n[i])&&s++;return s+o}function af(e,n){te(e,0,0,function(){var r=this.utcOffset(),a="+";return r<0&&(r=-r,a="-"),a+Ft(~~(r/60),2)+n+Ft(~~r%60,2)})}af("Z",":"),af("ZZ",""),Q("Z",Aa),Q("ZZ",Aa),Ee(["Z","ZZ"],function(e,n,r){r._useUTC=!0,r._tzm=Zs(Aa,e)});var X2=/([\+\-]|\d\d)/gi;function Zs(e,n){var r=(n||"").match(e),a,o,s;return r===null?null:(a=r[r.length-1]||[],o=(a+"").match(X2)||["-",0,0],s=+(o[1]*60)+ye(o[2]),s===0?0:o[0]==="+"?s:-s)}function Js(e,n){var r,a;return n._isUTC?(r=n.clone(),a=(Dt(e)||xr(e)?e.valueOf():xe(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),Z.updateOffset(r,!1),r):xe(e).local()}function Xs(e){return-Math.round(e._d.getTimezoneOffset())}Z.updateOffset=function(){};function Q2(e,n,r){var a=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Zs(Aa,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&n&&(o=Xs(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),a!==e&&(!n||this._changeInProgress?cf(this,xt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Z.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:Xs(this)}function eC(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function tC(e){return this.utcOffset(0,e)}function nC(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Xs(this),"m")),this}function rC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Zs(SS,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function aC(e){return this.isValid()?(e=e?xe(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function oC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sC(){if(!tt(this._isDSTShifted))return this._isDSTShifted;var e={},n;return Os(e,this),e=tf(e),e._a?(n=e._isUTC?At(e._a):xe(e._a),this._isDSTShifted=this.isValid()&&J2(e._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function iC(){return this.isValid()?!this._isUTC:!1}function lC(){return this.isValid()?this._isUTC:!1}function of(){return this.isValid()?this._isUTC&&this._offset===0:!1}var cC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,dC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xt(e,n){var r=e,a=null,o,s,i;return Wa(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Jt(e)||!isNaN(+e)?(r={},n?r[n]=+e:r.milliseconds=+e):(a=cC.exec(e))?(o=a[1]==="-"?-1:1,r={y:0,d:ye(a[Lt])*o,h:ye(a[je])*o,m:ye(a[Ot])*o,s:ye(a[en])*o,ms:ye(Ks(a[Pn]*1e3))*o}):(a=dC.exec(e))?(o=a[1]==="-"?-1:1,r={y:$n(a[2],o),M:$n(a[3],o),w:$n(a[4],o),d:$n(a[5],o),h:$n(a[6],o),m:$n(a[7],o),s:$n(a[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=fC(xe(r.from),xe(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),s=new ja(r),Wa(e)&&ke(e,"_locale")&&(s._locale=e._locale),Wa(e)&&ke(e,"_isValid")&&(s._isValid=e._isValid),s}xt.fn=ja.prototype,xt.invalid=Z2;function $n(e,n){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*n}function sf(e,n){var r={};return r.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(n)&&--r.months,r.milliseconds=+n-+e.clone().add(r.months,"M"),r}function fC(e,n){var r;return e.isValid()&&n.isValid()?(n=Js(n,e),e.isBefore(n)?r=sf(e,n):(r=sf(n,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function lf(e,n){return function(r,a){var o,s;return a!==null&&!isNaN(+a)&&($d(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=a,a=s),o=xt(r,a),cf(this,o,e),this}}function cf(e,n,r,a){var o=n._milliseconds,s=Ks(n._days),i=Ks(n._months);e.isValid()&&(a=a??!0,i&&Wd(e,Vr(e,"Month")+i*r),s&&Yd(e,"Date",Vr(e,"Date")+s*r),o&&e._d.setTime(e._d.valueOf()+o*r),a&&Z.updateOffset(e,s||i))}var uC=lf(1,"add"),pC=lf(-1,"subtract");function df(e){return typeof e=="string"||e instanceof String}function mC(e){return Dt(e)||xr(e)||df(e)||Jt(e)||gC(e)||hC(e)||e===null||e===void 0}function hC(e){var n=Nn(e)&&!Es(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,s,i=a.length;for(o=0;o<i;o+=1)s=a[o],r=r||ke(e,s);return n&&r}function gC(e){var n=Tt(e),r=!1;return n&&(r=e.filter(function(a){return!Jt(a)&&df(e)}).length===0),n&&r}function yC(e){var n=Nn(e)&&!Es(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,s;for(o=0;o<a.length;o+=1)s=a[o],r=r||ke(e,s);return n&&r}function bC(e,n){var r=e.diff(n,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function wC(e,n){arguments.length===1&&(arguments[0]?mC(arguments[0])?(e=arguments[0],n=void 0):yC(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var r=e||xe(),a=Js(r,this).startOf("day"),o=Z.calendarFormat(this,a)||"sameElse",s=n&&(Rt(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,xe(r)))}function _C(){return new Nr(this)}function kC(e,n){var r=Dt(e)?e:xe(e);return this.isValid()&&r.isValid()?(n=yt(n)||"millisecond",n==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(n).valueOf()):!1}function SC(e,n){var r=Dt(e)?e:xe(e);return this.isValid()&&r.isValid()?(n=yt(n)||"millisecond",n==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(n).valueOf()<r.valueOf()):!1}function CC(e,n,r,a){var o=Dt(e)?e:xe(e),s=Dt(n)?n:xe(n);return this.isValid()&&o.isValid()&&s.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(o,r):!this.isBefore(o,r))&&(a[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function vC(e,n){var r=Dt(e)?e:xe(e),a;return this.isValid()&&r.isValid()?(n=yt(n)||"millisecond",n==="millisecond"?this.valueOf()===r.valueOf():(a=r.valueOf(),this.clone().startOf(n).valueOf()<=a&&a<=this.clone().endOf(n).valueOf())):!1}function EC(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function MC(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function TC(e,n,r){var a,o,s;if(!this.isValid())return NaN;if(a=Js(e,this),!a.isValid())return NaN;switch(o=(a.utcOffset()-this.utcOffset())*6e4,n=yt(n),n){case"year":s=Ha(this,a)/12;break;case"month":s=Ha(this,a);break;case"quarter":s=Ha(this,a)/3;break;case"second":s=(this-a)/1e3;break;case"minute":s=(this-a)/6e4;break;case"hour":s=(this-a)/36e5;break;case"day":s=(this-a-o)/864e5;break;case"week":s=(this-a-o)/6048e5;break;default:s=this-a}return r?s:bt(s)}function Ha(e,n){if(e.date()<n.date())return-Ha(n,e);var r=(n.year()-e.year())*12+(n.month()-e.month()),a=e.clone().add(r,"months"),o,s;return n-a<0?(o=e.clone().add(r-1,"months"),s=(n-a)/(a-o)):(o=e.clone().add(r+1,"months"),s=(n-a)/(o-a)),-(r+s)||0}Z.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Z.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function DC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function OC(e){if(!this.isValid())return null;var n=e!==!0,r=n?this.clone().utc():this;return r.year()<0||r.year()>9999?Pa(r,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Rt(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Pa(r,"Z")):Pa(r,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="",r,a,o,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),r="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",s=n+'[")]',this.format(r+a+o+s)}function NC(e){e||(e=this.isUtc()?Z.defaultFormatUtc:Z.defaultFormat);var n=Pa(this,e);return this.localeData().postformat(n)}function PC(e,n){return this.isValid()&&(Dt(e)&&e.isValid()||xe(e).isValid())?xt({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function $C(e){return this.from(xe(),e)}function BC(e,n){return this.isValid()&&(Dt(e)&&e.isValid()||xe(e).isValid())?xt({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function VC(e){return this.to(xe(),e)}function ff(e){var n;return e===void 0?this._locale._abbr:(n=nn(e),n!=null&&(this._locale=n),this)}var uf=gt("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 pf(){return this._locale}var Ua=1e3,ar=60*Ua,qa=60*ar,mf=(365*400+97)*24*qa;function or(e,n){return(e%n+n)%n}function hf(e,n,r){return e<100&&e>=0?new Date(e+400,n,r)-mf:new Date(e,n,r).valueOf()}function gf(e,n,r){return e<100&&e>=0?Date.UTC(e+400,n,r)-mf:Date.UTC(e,n,r)}function IC(e){var n,r;if(e=yt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?gf:hf,e){case"year":n=r(this.year(),0,1);break;case"quarter":n=r(this.year(),this.month()-this.month()%3,1);break;case"month":n=r(this.year(),this.month(),1);break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=r(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=or(n+(this._isUTC?0:this.utcOffset()*ar),qa);break;case"minute":n=this._d.valueOf(),n-=or(n,ar);break;case"second":n=this._d.valueOf(),n-=or(n,Ua);break}return this._d.setTime(n),Z.updateOffset(this,!0),this}function AC(e){var n,r;if(e=yt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?gf:hf,e){case"year":n=r(this.year()+1,0,1)-1;break;case"quarter":n=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=r(this.year(),this.month()+1,1)-1;break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=qa-or(n+(this._isUTC?0:this.utcOffset()*ar),qa)-1;break;case"minute":n=this._d.valueOf(),n+=ar-or(n,ar)-1;break;case"second":n=this._d.valueOf(),n+=Ua-or(n,Ua)-1;break}return this._d.setTime(n),Z.updateOffset(this,!0),this}function RC(){return this._d.valueOf()-(this._offset||0)*6e4}function FC(){return Math.floor(this.valueOf()/1e3)}function LC(){return new Date(this.valueOf())}function YC(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zC(){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 jC(){return this.isValid()?this.toISOString():null}function WC(){return Ts(this)}function HC(){return mn({},de(this))}function UC(){return de(this).overflow}function qC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),Q("N",Qs),Q("NN",Qs),Q("NNN",Qs),Q("NNNN",av),Q("NNNNN",ov),Ee(["N","NN","NNN","NNNN","NNNNN"],function(e,n,r,a){var o=r._locale.erasParse(e,a,r._strict);o?de(r).era=o:de(r).invalidEra=e}),Q("y",er),Q("yy",er),Q("yyy",er),Q("yyyy",er),Q("yo",sv),Ee(["y","yy","yyy","yyyy"],Ge),Ee(["yo"],function(e,n,r,a){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?n[Ge]=r._locale.eraYearOrdinalParse(e,o):n[Ge]=parseInt(e,10)});function GC(e,n){var r,a,o,s=this._eras||nn("en")._eras;for(r=0,a=s.length;r<a;++r){switch(typeof s[r].since){case"string":o=Z(s[r].since).startOf("day"),s[r].since=o.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":o=Z(s[r].until).startOf("day").valueOf(),s[r].until=o.valueOf();break}}return s}function KC(e,n,r){var a,o,s=this.eras(),i,l,c;for(e=e.toUpperCase(),a=0,o=s.length;a<o;++a)if(i=s[a].name.toUpperCase(),l=s[a].abbr.toUpperCase(),c=s[a].narrow.toUpperCase(),r)switch(n){case"N":case"NN":case"NNN":if(l===e)return s[a];break;case"NNNN":if(i===e)return s[a];break;case"NNNNN":if(c===e)return s[a];break}else if([i,l,c].indexOf(e)>=0)return s[a]}function ZC(e,n){var r=e.since<=e.until?1:-1;return n===void 0?Z(e.since).year():Z(e.since).year()+(n-e.offset)*r}function JC(){var e,n,r,a=this.localeData().eras();for(e=0,n=a.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].name;return""}function XC(){var e,n,r,a=this.localeData().eras();for(e=0,n=a.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].narrow;return""}function QC(){var e,n,r,a=this.localeData().eras();for(e=0,n=a.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].abbr;return""}function ev(){var e,n,r,a,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(r=o[e].since<=o[e].until?1:-1,a=this.clone().startOf("day").valueOf(),o[e].since<=a&&a<=o[e].until||o[e].until<=a&&a<=o[e].since)return(this.year()-Z(o[e].since).year())*r+o[e].offset;return this.year()}function tv(e){return ke(this,"_erasNameRegex")||ei.call(this),e?this._erasNameRegex:this._erasRegex}function nv(e){return ke(this,"_erasAbbrRegex")||ei.call(this),e?this._erasAbbrRegex:this._erasRegex}function rv(e){return ke(this,"_erasNarrowRegex")||ei.call(this),e?this._erasNarrowRegex:this._erasRegex}function Qs(e,n){return n.erasAbbrRegex(e)}function av(e,n){return n.erasNameRegex(e)}function ov(e,n){return n.erasNarrowRegex(e)}function sv(e,n){return n._eraYearOrdinalRegex||er}function ei(){var e=[],n=[],r=[],a=[],o,s,i,l,c,d=this.eras();for(o=0,s=d.length;o<s;++o)i=Xt(d[o].name),l=Xt(d[o].abbr),c=Xt(d[o].narrow),n.push(i),e.push(l),r.push(c),a.push(i),a.push(l),a.push(c);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}te(0,["gg",2],0,function(){return this.weekYear()%100}),te(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ga(e,n){te(0,[e,e.length],0,n)}Ga("gggg","weekYear"),Ga("ggggg","weekYear"),Ga("GGGG","isoWeekYear"),Ga("GGGGG","isoWeekYear"),Q("G",Ia),Q("g",Ia),Q("GG",Oe,dt),Q("gg",Oe,dt),Q("GGGG",As,Is),Q("gggg",As,Is),Q("GGGGG",Va,$a),Q("ggggg",Va,$a),$r(["gggg","ggggg","GGGG","GGGGG"],function(e,n,r,a){n[a.substr(0,2)]=ye(e)}),$r(["gg","GG"],function(e,n,r,a){n[a]=Z.parseTwoDigitYear(e)});function iv(e){return yf.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function lv(e){return yf.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function cv(){return tn(this.year(),1,4)}function dv(){return tn(this.isoWeekYear(),1,4)}function fv(){var e=this.localeData()._week;return tn(this.year(),e.dow,e.doy)}function uv(){var e=this.localeData()._week;return tn(this.weekYear(),e.dow,e.doy)}function yf(e,n,r,a,o){var s;return e==null?Ar(this,a,o).year:(s=tn(e,a,o),n>s&&(n=s),pv.call(this,e,n,r,a,o))}function pv(e,n,r,a,o){var s=qd(e,n,r,a,o),i=Ir(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}te("Q",0,"Qo","quarter"),Q("Q",Id),Ee("Q",function(e,n){n[Qt]=(ye(e)-1)*3});function mv(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Q("D",Oe,tr),Q("DD",Oe,dt),Q("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),Ee(["D","DD"],Lt),Ee("Do",function(e,n){n[Lt]=ye(e.match(Oe)[0])});var bf=nr("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Q("DDD",Ba),Q("DDDD",Ad),Ee(["DDD","DDDD"],function(e,n,r){r._dayOfYear=ye(e)});function hv(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}te("m",["mm",2],0,"minute"),Q("m",Oe,Rs),Q("mm",Oe,dt),Ee(["m","mm"],Ot);var gv=nr("Minutes",!1);te("s",["ss",2],0,"second"),Q("s",Oe,Rs),Q("ss",Oe,dt),Ee(["s","ss"],en);var yv=nr("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Q("S",Ba,Id),Q("SS",Ba,dt),Q("SSS",Ba,Ad);var gn,wf;for(gn="SSSS";gn.length<=9;gn+="S")Q(gn,er);function bv(e,n){n[Pn]=ye(("0."+e)*1e3)}for(gn="S";gn.length<=9;gn+="S")Ee(gn,bv);wf=nr("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function wv(){return this._isUTC?"UTC":""}function _v(){return this._isUTC?"Coordinated Universal Time":""}var H=Nr.prototype;H.add=uC,H.calendar=wC,H.clone=_C,H.diff=TC,H.endOf=AC,H.format=NC,H.from=PC,H.fromNow=$C,H.to=BC,H.toNow=VC,H.get=xS,H.invalidAt=UC,H.isAfter=kC,H.isBefore=SC,H.isBetween=CC,H.isSame=vC,H.isSameOrAfter=EC,H.isSameOrBefore=MC,H.isValid=WC,H.lang=uf,H.locale=ff,H.localeData=pf,H.max=W2,H.min=j2,H.parsingFlags=HC,H.set=NS,H.startOf=IC,H.subtract=pC,H.toArray=YC,H.toObject=zC,H.toDate=LC,H.toISOString=OC,H.inspect=xC,typeof Symbol<"u"&&Symbol.for!=null&&(H[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),H.toJSON=jC,H.toString=DC,H.unix=FC,H.valueOf=RC,H.creationData=qC,H.eraName=JC,H.eraNarrow=XC,H.eraAbbr=QC,H.eraYear=ev,H.year=Ld,H.isLeapYear=OS,H.weekYear=iv,H.isoWeekYear=lv,H.quarter=H.quarters=mv,H.month=Hd,H.daysInMonth=LS,H.week=H.weeks=GS,H.isoWeek=H.isoWeeks=KS,H.weeksInYear=fv,H.weeksInWeekYear=uv,H.isoWeeksInYear=cv,H.isoWeeksInISOWeekYear=dv,H.date=bf,H.day=H.days=l2,H.weekday=c2,H.isoWeekday=d2,H.dayOfYear=hv,H.hour=H.hours=y2,H.minute=H.minutes=gv,H.second=H.seconds=yv,H.millisecond=H.milliseconds=wf,H.utcOffset=Q2,H.utc=tC,H.local=nC,H.parseZone=rC,H.hasAlignedHourOffset=aC,H.isDST=oC,H.isLocal=iC,H.isUtcOffset=lC,H.isUtc=of,H.isUTC=of,H.zoneAbbr=wv,H.zoneName=_v,H.dates=gt("dates accessor is deprecated. Use date instead.",bf),H.months=gt("months accessor is deprecated. Use month instead",Hd),H.years=gt("years accessor is deprecated. Use year instead",Ld),H.zone=gt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",eC),H.isDSTShifted=gt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sC);function kv(e){return xe(e*1e3)}function Sv(){return xe.apply(null,arguments).parseZone()}function _f(e){return e}var Se=Ns.prototype;Se.calendar=iS,Se.longDateFormat=fS,Se.invalidDate=pS,Se.ordinal=gS,Se.preparse=_f,Se.postformat=_f,Se.relativeTime=bS,Se.pastFuture=wS,Se.set=oS,Se.eras=GC,Se.erasParse=KC,Se.erasConvertYear=ZC,Se.erasAbbrRegex=nv,Se.erasNameRegex=tv,Se.erasNarrowRegex=rv,Se.months=IS,Se.monthsShort=AS,Se.monthsParse=FS,Se.monthsRegex=zS,Se.monthsShortRegex=YS,Se.week=WS,Se.firstDayOfYear=qS,Se.firstDayOfWeek=US,Se.weekdays=r2,Se.weekdaysMin=o2,Se.weekdaysShort=a2,Se.weekdaysParse=i2,Se.weekdaysRegex=f2,Se.weekdaysShortRegex=u2,Se.weekdaysMinRegex=p2,Se.isPM=h2,Se.meridiem=b2;function Ka(e,n,r,a){var o=nn(),s=At().set(a,n);return o[r](s,e)}function kf(e,n,r){if(Jt(e)&&(n=e,e=void 0),e=e||"",n!=null)return Ka(e,n,r,"month");var a,o=[];for(a=0;a<12;a++)o[a]=Ka(e,a,r,"month");return o}function ti(e,n,r,a){typeof e=="boolean"?(Jt(n)&&(r=n,n=void 0),n=n||""):(n=e,r=n,e=!1,Jt(n)&&(r=n,n=void 0),n=n||"");var o=nn(),s=e?o._week.dow:0,i,l=[];if(r!=null)return Ka(n,(r+s)%7,a,"day");for(i=0;i<7;i++)l[i]=Ka(n,(i+s)%7,a,"day");return l}function Cv(e,n){return kf(e,n,"months")}function vv(e,n){return kf(e,n,"monthsShort")}function Ev(e,n,r){return ti(e,n,r,"weekdays")}function Mv(e,n,r){return ti(e,n,r,"weekdaysShort")}function Tv(e,n,r){return ti(e,n,r,"weekdaysMin")}hn("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 n=e%10,r=ye(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+r}}),Z.lang=gt("moment.lang is deprecated. Use moment.locale instead.",hn),Z.langData=gt("moment.langData is deprecated. Use moment.localeData instead.",nn);var rn=Math.abs;function Dv(){var e=this._data;return this._milliseconds=rn(this._milliseconds),this._days=rn(this._days),this._months=rn(this._months),e.milliseconds=rn(e.milliseconds),e.seconds=rn(e.seconds),e.minutes=rn(e.minutes),e.hours=rn(e.hours),e.months=rn(e.months),e.years=rn(e.years),this}function Sf(e,n,r,a){var o=xt(n,r);return e._milliseconds+=a*o._milliseconds,e._days+=a*o._days,e._months+=a*o._months,e._bubble()}function Ov(e,n){return Sf(this,e,n,1)}function xv(e,n){return Sf(this,e,n,-1)}function Cf(e){return e<0?Math.floor(e):Math.ceil(e)}function Nv(){var e=this._milliseconds,n=this._days,r=this._months,a=this._data,o,s,i,l,c;return e>=0&&n>=0&&r>=0||e<=0&&n<=0&&r<=0||(e+=Cf(ni(r)+n)*864e5,n=0,r=0),a.milliseconds=e%1e3,o=bt(e/1e3),a.seconds=o%60,s=bt(o/60),a.minutes=s%60,i=bt(s/60),a.hours=i%24,n+=bt(i/24),c=bt(vf(n)),r+=c,n-=Cf(ni(c)),l=bt(r/12),r%=12,a.days=n,a.months=r,a.years=l,this}function vf(e){return e*4800/146097}function ni(e){return e*146097/4800}function Pv(e){if(!this.isValid())return NaN;var n,r,a=this._milliseconds;if(e=yt(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+a/864e5,r=this._months+vf(n),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(n=this._days+Math.round(ni(this._months)),e){case"week":return n/7+a/6048e5;case"day":return n+a/864e5;case"hour":return n*24+a/36e5;case"minute":return n*1440+a/6e4;case"second":return n*86400+a/1e3;case"millisecond":return Math.floor(n*864e5)+a;default:throw new Error("Unknown unit "+e)}}function an(e){return function(){return this.as(e)}}var Ef=an("ms"),$v=an("s"),Bv=an("m"),Vv=an("h"),Iv=an("d"),Av=an("w"),Rv=an("M"),Fv=an("Q"),Lv=an("y"),Yv=Ef;function zv(){return xt(this)}function jv(e){return e=yt(e),this.isValid()?this[e+"s"]():NaN}function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wv=Bn("milliseconds"),Hv=Bn("seconds"),Uv=Bn("minutes"),qv=Bn("hours"),Gv=Bn("days"),Kv=Bn("months"),Zv=Bn("years");function Jv(){return bt(this.days()/7)}var on=Math.round,sr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xv(e,n,r,a,o){return o.relativeTime(n||1,!!r,e,a)}function Qv(e,n,r,a){var o=xt(e).abs(),s=on(o.as("s")),i=on(o.as("m")),l=on(o.as("h")),c=on(o.as("d")),d=on(o.as("M")),u=on(o.as("w")),f=on(o.as("y")),p=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||i<=1&&["m"]||i<r.m&&["mm",i]||l<=1&&["h"]||l<r.h&&["hh",l]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(p=p||u<=1&&["w"]||u<r.w&&["ww",u]),p=p||d<=1&&["M"]||d<r.M&&["MM",d]||f<=1&&["y"]||["yy",f],p[2]=n,p[3]=+e>0,p[4]=a,Xv.apply(null,p)}function eE(e){return e===void 0?on:typeof e=="function"?(on=e,!0):!1}function tE(e,n){return sr[e]===void 0?!1:n===void 0?sr[e]:(sr[e]=n,e==="s"&&(sr.ss=n-1),!0)}function nE(e,n){if(!this.isValid())return this.localeData().invalidDate();var r=!1,a=sr,o,s;return typeof e=="object"&&(n=e,e=!1),typeof e=="boolean"&&(r=e),typeof n=="object"&&(a=Object.assign({},sr,n),n.s!=null&&n.ss==null&&(a.ss=n.s-1)),o=this.localeData(),s=Qv(this,!r,a,o),r&&(s=o.pastFuture(+this,s)),o.postformat(s)}var ri=Math.abs;function ir(e){return(e>0)-(e<0)||+e}function Za(){if(!this.isValid())return this.localeData().invalidDate();var e=ri(this._milliseconds)/1e3,n=ri(this._days),r=ri(this._months),a,o,s,i,l=this.asSeconds(),c,d,u,f;return l?(a=bt(e/60),o=bt(a/60),e%=60,a%=60,s=bt(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",d=ir(this._months)!==ir(l)?"-":"",u=ir(this._days)!==ir(l)?"-":"",f=ir(this._milliseconds)!==ir(l)?"-":"",c+"P"+(s?d+s+"Y":"")+(r?d+r+"M":"")+(n?u+n+"D":"")+(o||a||e?"T":"")+(o?f+o+"H":"")+(a?f+a+"M":"")+(e?f+i+"S":"")):"P0D"}var we=ja.prototype;we.isValid=K2,we.abs=Dv,we.add=Ov,we.subtract=xv,we.as=Pv,we.asMilliseconds=Ef,we.asSeconds=$v,we.asMinutes=Bv,we.asHours=Vv,we.asDays=Iv,we.asWeeks=Av,we.asMonths=Rv,we.asQuarters=Fv,we.asYears=Lv,we.valueOf=Yv,we._bubble=Nv,we.clone=zv,we.get=jv,we.milliseconds=Wv,we.seconds=Hv,we.minutes=Uv,we.hours=qv,we.days=Gv,we.weeks=Jv,we.months=Kv,we.years=Zv,we.humanize=nE,we.toISOString=Za,we.toString=Za,we.toJSON=Za,we.locale=ff,we.localeData=pf,we.toIsoString=gt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Za),we.lang=uf,te("X",0,0,"unix"),te("x",0,0,"valueOf"),Q("x",Ia),Q("X",CS),Ee("X",function(e,n,r){r._d=new Date(parseFloat(e)*1e3)}),Ee("x",function(e,n,r){r._d=new Date(ye(e))});//! moment.js
|
|
40
|
-
Z.version="2.30.1",rS(xe),Z.fn=H,Z.min=H2,Z.max=U2,Z.now=q2,Z.utc=At,Z.unix=kv,Z.months=Cv,Z.isDate=xr,Z.locale=hn,Z.invalid=xa,Z.duration=xt,Z.isMoment=Dt,Z.weekdays=Ev,Z.parseZone=Sv,Z.localeData=nn,Z.isDuration=Wa,Z.monthsShort=vv,Z.weekdaysMin=Tv,Z.defineLocale=Ws,Z.updateLocale=S2,Z.locales=C2,Z.weekdaysShort=Mv,Z.normalizeUnits=yt,Z.relativeTimeRounding=eE,Z.relativeTimeThreshold=tE,Z.calendarFormat=bC,Z.prototype=H,Z.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 yn="--",Mf="YYYY-MM-DDTHH:mm:ss",rE="YYYY-MM-DDT23:59:59",aE="YYYY-MM-DD",ai=(e,n=aE)=>e?Z(e).format(n).replace("Invalid date",yn):yn,oE=e=>typeof e=="number"?!0:typeof e=="string"?!isNaN(parseFloat(e)):!1;function sE(e){const n=["角","分"],r=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=[["元","万","亿"],["","拾","佰","仟"]],o=e<0?"负":"";e=Math.abs(e);let s="";for(let i=0;i<n.length;i++)s+=(r[Math.floor(e*10*Math.pow(10,i))%10]+n[i]).replace(/零./,"");s=s||"整",e=Math.floor(e);for(let i=0;i<a[0].length&&e>0;i++){let l="";for(let c=0;c<a[1].length&&e>0;c++)l=r[e%10]+a[1][c]+l,e=Math.floor(e/10);s=l.replace(/(零.)*零$/,"").replace(/^$/,"零")+a[0][i]+s}return o+s.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")}const Tf=He(t.defineComponent({name:"zh-date-icker",__name:"DatePicker",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue","change"],setup(e,{emit:n}){const r=e,a=n,o=l=>Array.isArray(l)?[ai(l[0],Mf),ai(l[1],rE)]:l&&ai(l,Mf),s=l=>{const c=o(l);a("update:modelValue",c)},i=l=>{const c=o(l);a("change",c)};return(l,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.class,"zh-date-picker"])},[t.createVNode(t.unref(Bk),t.mergeProps(l.$attrs,{style:r.style,"model-value":r.modelValue,"onUpdate:modelValue":s,onChange:i}),null,16,["style","model-value"])],2))}})),iE={class:"info-pair"},lE={class:"info-pair--title"},cE={key:0,class:"info-pair--title--tip"},Df=He(t.defineComponent({name:"zh-detail-sub-title",__name:"DetailSubTitle",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createElementBlock("div",iE,[t.createElementVNode("div",lE,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),r.tip?(t.openBlock(),t.createElementBlock("div",cE,t.toDisplayString(r.tip),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:t.normalizeClass(["info-pair--value",{ellipsis:r.ellipsis}])},[t.renderSlot(r.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(n.value||t.unref(yn)),1)])],2)]))}})),dE={class:"dialog-wrap"},fE={class:"title"},uE={key:0,class:"subtitle"},pE={class:"dialog-footer"},Of=at(t.defineComponent({name:"zh-dialog",__name:"Dialog",props:t.mergeModels({title:{},subtitle:{},submitText:{},submitDisabled:{type:Boolean}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:t.mergeModels(["close","submit"],["update:modelValue"]),setup(e,{emit:n}){const r=n,a=t.useModel(e,"modelValue"),o=async()=>{r("submit")},s=()=>{r("close")};return(i,l)=>(t.openBlock(),t.createElementBlock("div",dE,[t.createVNode(t.unref(Zk),t.mergeProps({modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},i.$attrs,{"close-on-click-modal":i.$attrs.closeOnClickModal??!1,"show-close":i.$attrs.showClose??!0}),{header:t.withCtx(()=>[t.createElementVNode("div",fE,t.toDisplayString(i.title),1),i.subtitle?(t.openBlock(),t.createElementBlock("div",uE,t.toDisplayString(i.subtitle),1)):t.createCommentVNode("",!0)]),footer:t.withCtx(()=>[t.createElementVNode("div",pE,[t.createVNode(t.unref(Zn),{plain:"",onClick:s},{default:t.withCtx(()=>l[1]||(l[1]=[t.createTextVNode("取消")])),_:1}),t.createVNode(t.unref(Zn),{type:"primary",color:"#1966FF",onClick:o,disabled:i.submitDisabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.submitText||"提交"),1)]),_:1},8,["disabled"])])]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16,["modelValue","close-on-click-modal","show-close"])]))}}),[["__scopeId","data-v-f26f266e"]]),xf=He(Of),mE={class:"info-pair"},hE={class:"info-pair--title"},gE={key:0,class:"info-pair--title--tip"},Nf=He(at(t.defineComponent({name:"zh-edit-info-pair",__name:"EditInfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createElementBlock("div",mE,[t.createElementVNode("div",hE,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),r.tip?(t.openBlock(),t.createElementBlock("div",gE,t.toDisplayString(r.tip),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:t.normalizeClass(["info-pair--value",{ellipsis:r.ellipsis}])},[t.renderSlot(r.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(n.value||t.unref(yn)),1)],!0)],2)]))}}),[["__scopeId","data-v-8ed96c83"]])),yE={class:"file_wrapper"},bE={key:0,class:"header"},wE={class:"file_main"},_E={class:"file"},kE={class:"file_name"},Pf=He(at(t.defineComponent({name:"zh-file-wrapper",__name:"FileWrapper",props:{downLoadUrl:{type:String,default:""},canPreview:{type:Boolean,default:!1},fileName:{type:String,default:yn},canDelete:{type:Boolean,default:!1},title:{type:String,default:""},fileId:{type:Number,default:0}},emits:["deleteFile"],setup(e,{emit:n}){const r=e,a=n,o=()=>{r.canDelete&&a("deleteFile",r.fileId)};return(s,i)=>(t.openBlock(),t.createElementBlock("div",yE,[r.title?(t.openBlock(),t.createElementBlock("div",bE,t.toDisplayString(r.title),1)):t.createCommentVNode("",!0),t.createElementVNode("div",wE,[t.createElementVNode("div",_E,[i[0]||(i[0]=t.createElementVNode("div",{class:"file_type mr-12"},[t.createElementVNode("i",{class:"iconfont icon-xiangmuguanli"})],-1)),t.createElementVNode("div",kE,t.toDisplayString(r.fileName),1)]),t.createVNode(t.unref(nS),{size:"small",class:"btn",link:"",style:{width:"80px"},href:r.downLoadUrl,underline:!1,download:"download"},{default:t.withCtx(()=>i[1]||(i[1]=[t.createTextVNode(" 查看/下载 ")])),_:1},8,["href"]),e.canDelete?(t.openBlock(),t.createElementBlock("i",{key:0,class:"iconfont icon-close close",onClick:o})):t.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-480bb0e6"]])),$f=He(t.defineComponent({name:"zh-grid",__name:"Grid",props:{cols:{default:()=>({xs:1,sm:2,md:2,lg:4,xl:4})},collapsed:{type:Boolean,default:!1},collapsedRows:{default:1},gap:{default:10}},setup(e,{expose:n}){const r=e;t.onBeforeMount(()=>r.collapsed&&c()),t.onMounted(()=>{a({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",a)}),t.onActivated(()=>{a({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",a)}),t.onUnmounted(()=>{window.removeEventListener("resize",a)}),t.onDeactivated(()=>{window.removeEventListener("resize",a)});const a=f=>{let p=f.target.innerWidth;switch(!!p){case p<768:o.value="xs";break;case(p>=768&&p<992):o.value="sm";break;case(p>=992&&p<1200):o.value="md";break;case(p>=1200&&p<1920):o.value="lg";break;case p>=1920:o.value="xl";break}};t.provide("gap",Array.isArray(r.gap)?r.gap[0]:r.gap);let o=t.ref("xl");t.provide("breakPoint",o);const s=t.ref(-1);t.provide("shouldHiddenIndex",s);const i=t.computed(()=>typeof r.cols=="object"?r.cols[o.value]??r.cols:r.cols);t.provide("cols",i);const l=t.useSlots().default(),c=()=>{var m,h,w,y;let f=[],p=null;l.forEach(k=>{var C;typeof k.type=="object"&&k.type.name==="GridItem"&&((C=k.props)==null?void 0:C.suffix)!==void 0&&(p=k),typeof k.type=="symbol"&&Array.isArray(k.children)&&f.push(...k.children)});let g=0;p&&(g=(((m=p.props[o.value])==null?void 0:m.span)??((h=p.props)==null?void 0:h.span)??1)+(((w=p.props[o.value])==null?void 0:w.offset)??((y=p.props)==null?void 0:y.offset)??0));try{let k=!1;f.reduce((C=0,b,_)=>{var v,M,D,B;if(C+=(((v=b.props[o.value])==null?void 0:v.span)??((M=b.props)==null?void 0:M.span)??1)+(((D=b.props[o.value])==null?void 0:D.offset)??((B=b.props)==null?void 0:B.offset)??0),Number(C)>r.collapsedRows*i.value-g)throw s.value=_,k=!0,"find it";return C},0),k||(s.value=-1)}catch{}};t.watch(()=>o.value,()=>{r.collapsed&&c()}),t.watch(()=>r.collapsed,f=>{if(f)return c();s.value=-1});const d=t.computed(()=>typeof r.gap=="number"?`${r.gap}px`:Array.isArray(r.gap)?`${r.gap[1]}px ${r.gap[0]}px`:"unset"),u=t.computed(()=>({display:"grid",gridGap:d.value,gridTemplateColumns:`repeat(${i.value}, minmax(0, 1fr))`}));return n({breakPoint:o}),(f,p)=>(t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(u.value)},[t.renderSlot(f.$slots,"default")],4))}})),SE={class:"info-pair"},CE={class:"info-pair--title"},vE={key:0,class:"info-pair--title--tip"},Bf=He(at(t.defineComponent({name:"zh-info-pair",__name:"InfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createElementBlock("div",SE,[t.createElementVNode("div",CE,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),r.tip?(t.openBlock(),t.createElementBlock("div",vE,t.toDisplayString(r.tip),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:t.normalizeClass(["info-pair--value",{ellipsis:r.ellipsis}])},[t.renderSlot(r.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(n.value||t.unref(yn)),1)],!0)],2)]))}}),[["__scopeId","data-v-7c46e10e"]])),Vf=He(at(t.defineComponent({name:"zh-input",__name:"Input",props:t.mergeModels({style:{},class:{default:"zh-default-input"},size:{default:"default"},className:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=t.useAttrs(),r=e,a=t.useModel(e,"modelValue"),o=()=>{(n.max||Number(n.max)===0)&&Number(a.value)>=n.max&&(a.value=n.max.toString()),(n.min||Number(n.min)===0)&&Number(a.value)<=n.min&&(a.value=n.min.toString())};return(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.class)},[t.createVNode(t.unref(It),t.mergeProps(s.$attrs,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),size:s.size,onBlur:o}),t.createSlots({_:2},[t.renderList(s.$slots,(l,c)=>({name:l,fn:t.withCtx(d=>[t.renderSlot(s.$slots,l,t.normalizeProps(t.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","size"])],2))}}),[["__scopeId","data-v-75a9ec9f"]])),If=at(t.defineComponent({name:"zh-input-number",__name:"InputNumber",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:n}){const r=e,a=n,o=t.useAttrs(),s=(d,u=0,f=0,p=0)=>{let g=(d==null?void 0:d.toString())??"",m,h,w;return f===0?(g=g.replace(/[^\d]/g,""),g=g.replace(/^0\d+/g,"0"),u!==0&&(g=g.slice(0,u))):(g=g.replace(/[^\-\d.]/g,""),g=g.replace(/^[^\-\d]/g,""),g=g.replace(/\.{2}/g,"."),g=g.replace(/^0(\d+)/g,"$1"),m=g.split(".")||[],m.length>1?(u===0?h=m[0]:h=m[0].slice(0,u),w=m[1].slice(0,f),g=h+"."+w):u!==0&&(g=g.slice(0,u))),p!==0&&(g=g.slice(0,p)),g},i=()=>{r.modelValue===""||r.modelValue===void 0||(o.max&&Number(r.modelValue)>o.max&&a("update:modelValue",o.max.toString()),o.min&&Number(r.modelValue)<o.min&&a("update:modelValue",o.min.toString()))},l=d=>d?s(d,o.integer,o.precision,o.maxLength):"",c=d=>{/^\d+\.0*$/.test((d==null?void 0:d.toString())||"")||d===""?a("update:modelValue",l(d)):a("update:modelValue",Number(l(d)))};return(d,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["input-number",r.class]),style:t.normalizeStyle(r.style)},[t.createVNode(t.unref(It),t.mergeProps(d.$attrs,{"model-value":r.modelValue,"onUpdate:modelValue":c,onBlur:i,style:{width:"100%"},formatter:l}),t.createSlots({_:2},[t.renderList(Object.keys(d.$slots),f=>({name:f,fn:t.withCtx(p=>[t.renderSlot(d.$slots,f,t.normalizeProps(t.guardReactiveProps(p)),void 0,!0)])}))]),1040,["model-value"])],6))}}),[["__scopeId","data-v-32d536a9"]]),Af=He(If),EE={class:"loading-box"},Rf=He(at(t.defineComponent({name:"zh-loading",__name:"Loading",setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",EE,r[0]||(r[0]=[t.createElementVNode("div",{class:"loading-wrap"},[t.createElementVNode("span",{class:"dot dot-spin"},[t.createElementVNode("i"),t.createElementVNode("i"),t.createElementVNode("i"),t.createElementVNode("i")])],-1)])))}}),[["__scopeId","data-v-bcc04aa5"]])),ME={key:0,class:"tips"},Ff=He(at(t.defineComponent({name:"zh-message-box",__name:"MessageBox",props:t.mergeModels({title:{},subtitle:{},tip:{},placeholder:{},formItemProps:{},formProps:{},inputProps:{},closeOnClickModal:{type:Boolean},callBack:{type:Function},onAction:{type:Function},onVanish:{type:Function},submitText:{},render:{type:Function},maxlength:{},renderProps:{}},{visible:{type:Boolean,default:!0},visibleModifiers:{}}),emits:t.mergeModels(["action","vanish"],["update:visible"]),setup(e,{emit:n}){const r=e,a=n,o=t.useModel(e,"visible"),s=t.ref(),i=t.ref({textarea:""}),l=(f,p,g)=>{p||g(r.placeholder),g()},c=t.ref({textarea:[{validator:l,trigger:["blur","change"]}]}),d=async()=>{var f;r.placeholder?(f=s.value)==null||f.validate(async p=>{if(p)try{if(r.callBack){const g=await r.callBack(i.value.textarea);console.log(g)}a("action","submit"),o.value=!1}catch(g){console.log(g)}}):(a("action","submit"),o.value=!1)},u=()=>{a("action","cancel"),o.value=!1};return(f,p)=>(t.openBlock(),t.createBlock(Of,t.mergeProps({modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=g=>o.value=g),width:"544"},r,{onSubmit:d,onClose:u}),{default:t.withCtx(()=>[f.tip?(t.openBlock(),t.createElementBlock("div",ME,t.toDisplayString(f.tip),1)):t.createCommentVNode("",!0),f.render?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(f.render),t.normalizeProps(t.mergeProps({key:1},r.renderProps)),null,16)):f.placeholder?(t.openBlock(),t.createBlock(t.unref(Aw),t.mergeProps({key:2,ref_key:"formRef",ref:s,model:i.value,rules:c.value},r.formProps),{default:t.withCtx(()=>[t.createVNode(t.unref(Rw),t.mergeProps({prop:"textarea"},r.formItemProps),{default:t.withCtx(()=>[t.createVNode(t.unref(It),t.mergeProps({modelValue:i.value.textarea,"onUpdate:modelValue":p[0]||(p[0]=g=>i.value.textarea=g),style:{width:"100%"},rows:4,type:"textarea",placeholder:f.placeholder,maxlength:r.maxlength||100,"show-word-limit":""},f.inputProps),null,16,["modelValue","placeholder","maxlength"])]),_:1},16)]),_:1},16,["model","rules"])):t.createCommentVNode("",!0)]),_:1},16,["modelValue"]))}}),[["__scopeId","data-v-1903b5ef"]])),Lf=He(at(t.defineComponent({name:"zh-money-input",__name:"MoneyInput",props:t.mergeModels({style:{},class:{},showTooltip:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["update:modelValue"],["update:modelValue"]),setup(e,{emit:n}){const r=e,a=t.useModel(e,"modelValue"),o=t.computed(()=>{if(a.value)return oE(a.value)&&Number(a.value)>=1e3?sE(Number(a.value)):""}),s=t.ref(!1);return(i,l)=>(t.openBlock(),t.createBlock(t.unref(as),{effect:"dark",content:o.value,placement:"top",visible:i.showTooltip&&s.value&&!!o.value},{default:t.withCtx(()=>[t.createVNode(If,t.mergeProps(i.$attrs,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),style:r.style,class:r.class,onFocus:l[1]||(l[1]=()=>s.value=!0),onBlur:l[2]||(l[2]=()=>s.value=!1)}),t.createSlots({_:2},[t.renderList(Object.keys(i.$slots),c=>({name:c,fn:t.withCtx(d=>[t.renderSlot(i.$slots,c,t.normalizeProps(t.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","style","class"])]),_:3},8,["content","visible"]))}}),[["__scopeId","data-v-d97e0edf"]])),TE={class:"page-head"},DE={class:"left-wrap"},OE={class:"page-name"},xE={class:"value"},NE={class:"other-inform"},PE={class:"label"},$E={class:"value mg-r-24"},BE={class:"status"},Yf=He(at(t.defineComponent({name:"zh-page-head-panel",__name:"PageHeadPanel",props:{dataSource:{}},setup(e){const n=e,{name:r,no:a,status:o,extendLabel:s,extendValue:i}=t.toRefs(n.dataSource);return(l,c)=>(t.openBlock(),t.createElementBlock("div",TE,[t.createElementVNode("div",DE,[t.createElementVNode("span",OE,t.toDisplayString(t.unref(r)),1),t.createElementVNode("div",null,[c[0]||(c[0]=t.createElementVNode("span",{class:"label mg-l-16"},"编号",-1)),t.createElementVNode("span",xE,t.toDisplayString(t.unref(a)),1)])]),t.createElementVNode("div",NE,[t.renderSlot(l.$slots,"extend",{},()=>[t.createElementVNode("span",PE,t.toDisplayString(t.unref(s)),1),t.createElementVNode("span",$E,t.toDisplayString(t.unref(i)),1)],!0),t.createElementVNode("span",BE,t.toDisplayString(t.unref(o)),1)])]))}}),[["__scopeId","data-v-cecdddb2"]])),zf=He(at(t.defineComponent({name:"zh-tool-tips",__name:"ToolTips",props:{placement:{type:String,default:"top"},content:{type:String,default:"top"}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createBlock(t.unref(as),{class:"box-item",effect:"dark",content:n.content,placement:n.placement},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[a[0]||(a[0]=t.createElementVNode("i",{class:"iconfont icon-Frame2"},null,-1))],!0)]),_:3},8,["content","placement"]))}}),[["__scopeId","data-v-93c79d22"]])),jf=He(t.defineComponent({name:"ZhBaseInfo",__name:"BaseInfo",props:{contentWidth:{default:void 0},labelWidth:{default:"70px"},infoDirection:{default:"vertical"},cols:{default:5},gap:{default:16}},setup(e){const n=e,r=t.ref(),a=t.ref(),o=t.ref();t.provide("infoLabelWidth",r),t.provide("infoContentWidth",a),t.provide("infoDirection",o);function s(){r.value=n.labelWidth}function i(){a.value=n.contentWidth}function l(){o.value=n.infoDirection}return t.watch(()=>n.contentWidth,()=>i(),{immediate:!0}),t.watch(()=>n.labelWidth,()=>s(),{immediate:!0}),t.watch(()=>n.infoDirection,()=>l(),{immediate:!0}),(c,d)=>{const u=t.resolveComponent("grid");return t.openBlock(),t.createBlock(u,{cols:c.cols,gap:c.gap},{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},8,["cols","gap"])}}})),VE={class:"common-card"},IE={class:"detail-header"},AE={class:"detail-header--left"},RE={class:"title common-title"},FE={class:"info-pair--label"},LE={class:"info-pair--value"},YE={key:1,class:"detail-header--right"},zE={class:"info-pair--label"},jE={class:"info-pair--value"},Wf=He(at(t.defineComponent({name:"ZhDetailHeader",__name:"DetailHeader",props:{title:{},leftInfos:{},rightInfos:{},stateMeta:{}},setup(e){const n=t.useSlots(),r=e;return(a,o)=>{var s,i;return t.openBlock(),t.createElementBlock("div",VE,[t.createElementVNode("div",null,[t.renderSlot(a.$slots,"menu",{},void 0,!0)]),t.createElementVNode("div",IE,[t.createElementVNode("div",AE,[t.createElementVNode("div",RE,t.toDisplayString(r.title),1),t.renderSlot(a.$slots,"extra-info",{},void 0,!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.leftInfos,l=>(t.openBlock(),t.createElementBlock("div",{class:"info-pair",key:l.value},[t.createElementVNode("div",FE,t.toDisplayString(l.label),1),t.createElementVNode("div",LE,t.toDisplayString(l.value??t.unref(yn)),1)]))),128))]),t.renderSlot(a.$slots,"default",{},void 0,!0),t.unref(n)["right-infos"]?t.renderSlot(a.$slots,"right-infos",{key:0},void 0,!0):(t.openBlock(),t.createElementBlock("div",YE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.rightInfos,l=>(t.openBlock(),t.createElementBlock("div",{class:"info-pair",key:l.value},[t.createElementVNode("div",zE,t.toDisplayString(l.label),1),t.createElementVNode("div",jE,t.toDisplayString(l.value??t.unref(yn)),1)]))),128)),a.stateMeta?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["state common-title",(s=a.stateMeta)==null?void 0:s.state])},t.toDisplayString((i=a.stateMeta)==null?void 0:i.intro),3)):t.createCommentVNode("",!0)]))])])}}}),[["__scopeId","data-v-8830340b"]])),WE=jg([jf,dl,Tf,Wf,Df,xf,Nf,Pf,$f,Bf,Vf,Af,Rf,Ff,Lf,Yf,zf]);pe.ZhBaseInfo=jf,pe.ZhButton=dl,pe.ZhDatePicker=Tf,pe.ZhDetailHeader=Wf,pe.ZhDetailSubTitle=Df,pe.ZhDialog=xf,pe.ZhEditInfoPair=Nf,pe.ZhFileWrapper=Pf,pe.ZhGrid=$f,pe.ZhInfoPair=Bf,pe.ZhInput=Vf,pe.ZhInputNumber=Af,pe.ZhLoading=Rf,pe.ZhMessageBox=Ff,pe.ZhMoneyInput=Lf,pe.ZhPageHeadPanel=Yf,pe.ZhToolTips=zf,pe.default=WE,Object.defineProperties(pe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
40
|
+
Z.version="2.30.1",rS(xe),Z.fn=H,Z.min=H2,Z.max=U2,Z.now=q2,Z.utc=At,Z.unix=kv,Z.months=Cv,Z.isDate=xr,Z.locale=hn,Z.invalid=xa,Z.duration=xt,Z.isMoment=Dt,Z.weekdays=Ev,Z.parseZone=Sv,Z.localeData=nn,Z.isDuration=Wa,Z.monthsShort=vv,Z.weekdaysMin=Tv,Z.defineLocale=Ws,Z.updateLocale=S2,Z.locales=C2,Z.weekdaysShort=Mv,Z.normalizeUnits=yt,Z.relativeTimeRounding=eE,Z.relativeTimeThreshold=tE,Z.calendarFormat=bC,Z.prototype=H,Z.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 yn="--",Mf="YYYY-MM-DDTHH:mm:ss",rE="YYYY-MM-DDT23:59:59",aE="YYYY-MM-DD",ai=(e,n=aE)=>e?Z(e).format(n).replace("Invalid date",yn):yn,oE=e=>typeof e=="number"?!0:typeof e=="string"?!isNaN(parseFloat(e)):!1;function sE(e){const n=["角","分"],r=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=[["元","万","亿"],["","拾","佰","仟"]],o=e<0?"负":"";e=Math.abs(e);let s="";for(let i=0;i<n.length;i++)s+=(r[Math.floor(e*10*Math.pow(10,i))%10]+n[i]).replace(/零./,"");s=s||"整",e=Math.floor(e);for(let i=0;i<a[0].length&&e>0;i++){let l="";for(let c=0;c<a[1].length&&e>0;c++)l=r[e%10]+a[1][c]+l,e=Math.floor(e/10);s=l.replace(/(零.)*零$/,"").replace(/^$/,"零")+a[0][i]+s}return o+s.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")}const Tf=He(t.defineComponent({name:"zh-date-picker",__name:"DatePicker",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue","change"],setup(e,{emit:n}){const r=e,a=n,o=l=>Array.isArray(l)?[ai(l[0],Mf),ai(l[1],rE)]:l&&ai(l,Mf),s=l=>{const c=o(l);a("update:modelValue",c)},i=l=>{const c=o(l);a("change",c)};return(l,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.class,"zh-date-picker"])},[t.createVNode(t.unref(Bk),t.mergeProps(l.$attrs,{style:r.style,"model-value":r.modelValue,"onUpdate:modelValue":s,onChange:i}),null,16,["style","model-value"])],2))}})),iE={class:"info-pair"},lE={class:"info-pair--title"},cE={key:0,class:"info-pair--title--tip"},Df=He(t.defineComponent({name:"zh-detail-sub-title",__name:"DetailSubTitle",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createElementBlock("div",iE,[t.createElementVNode("div",lE,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),r.tip?(t.openBlock(),t.createElementBlock("div",cE,t.toDisplayString(r.tip),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:t.normalizeClass(["info-pair--value",{ellipsis:r.ellipsis}])},[t.renderSlot(r.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(n.value||t.unref(yn)),1)])],2)]))}})),dE={class:"dialog-wrap"},fE={class:"title"},uE={key:0,class:"subtitle"},pE={class:"dialog-footer"},Of=at(t.defineComponent({name:"zh-dialog",__name:"Dialog",props:t.mergeModels({title:{},subtitle:{},submitText:{},submitDisabled:{type:Boolean}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:t.mergeModels(["close","submit"],["update:modelValue"]),setup(e,{emit:n}){const r=n,a=t.useModel(e,"modelValue"),o=async()=>{r("submit")},s=()=>{r("close")};return(i,l)=>(t.openBlock(),t.createElementBlock("div",dE,[t.createVNode(t.unref(Zk),t.mergeProps({modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},i.$attrs,{"close-on-click-modal":i.$attrs.closeOnClickModal??!1,"show-close":i.$attrs.showClose??!0}),{header:t.withCtx(()=>[t.createElementVNode("div",fE,t.toDisplayString(i.title),1),i.subtitle?(t.openBlock(),t.createElementBlock("div",uE,t.toDisplayString(i.subtitle),1)):t.createCommentVNode("",!0)]),footer:t.withCtx(()=>[t.createElementVNode("div",pE,[t.createVNode(t.unref(Zn),{plain:"",onClick:s},{default:t.withCtx(()=>l[1]||(l[1]=[t.createTextVNode("取消")])),_:1}),t.createVNode(t.unref(Zn),{type:"primary",color:"#1966FF",onClick:o,disabled:i.submitDisabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.submitText||"提交"),1)]),_:1},8,["disabled"])])]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16,["modelValue","close-on-click-modal","show-close"])]))}}),[["__scopeId","data-v-f26f266e"]]),xf=He(Of),mE={class:"info-pair"},hE={class:"info-pair--title"},gE={key:0,class:"info-pair--title--tip"},Nf=He(at(t.defineComponent({name:"zh-edit-info-pair",__name:"EditInfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createElementBlock("div",mE,[t.createElementVNode("div",hE,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),r.tip?(t.openBlock(),t.createElementBlock("div",gE,t.toDisplayString(r.tip),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:t.normalizeClass(["info-pair--value",{ellipsis:r.ellipsis}])},[t.renderSlot(r.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(n.value||t.unref(yn)),1)],!0)],2)]))}}),[["__scopeId","data-v-8ed96c83"]])),yE={class:"file_wrapper"},bE={key:0,class:"header"},wE={class:"file_main"},_E={class:"file"},kE={class:"file_name"},Pf=He(at(t.defineComponent({name:"zh-file-wrapper",__name:"FileWrapper",props:{downLoadUrl:{type:String,default:""},canPreview:{type:Boolean,default:!1},fileName:{type:String,default:yn},canDelete:{type:Boolean,default:!1},title:{type:String,default:""},fileId:{type:Number,default:0}},emits:["deleteFile"],setup(e,{emit:n}){const r=e,a=n,o=()=>{r.canDelete&&a("deleteFile",r.fileId)};return(s,i)=>(t.openBlock(),t.createElementBlock("div",yE,[r.title?(t.openBlock(),t.createElementBlock("div",bE,t.toDisplayString(r.title),1)):t.createCommentVNode("",!0),t.createElementVNode("div",wE,[t.createElementVNode("div",_E,[i[0]||(i[0]=t.createElementVNode("div",{class:"file_type mr-12"},[t.createElementVNode("i",{class:"iconfont icon-xiangmuguanli"})],-1)),t.createElementVNode("div",kE,t.toDisplayString(r.fileName),1)]),t.createVNode(t.unref(nS),{size:"small",class:"btn",link:"",style:{width:"80px"},href:r.downLoadUrl,underline:!1,download:"download"},{default:t.withCtx(()=>i[1]||(i[1]=[t.createTextVNode(" 查看/下载 ")])),_:1},8,["href"]),e.canDelete?(t.openBlock(),t.createElementBlock("i",{key:0,class:"iconfont icon-close close",onClick:o})):t.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-480bb0e6"]])),$f=He(t.defineComponent({name:"zh-grid",__name:"Grid",props:{cols:{default:()=>({xs:1,sm:2,md:2,lg:4,xl:4})},collapsed:{type:Boolean,default:!1},collapsedRows:{default:1},gap:{default:10}},setup(e,{expose:n}){const r=e;t.onBeforeMount(()=>r.collapsed&&c()),t.onMounted(()=>{a({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",a)}),t.onActivated(()=>{a({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",a)}),t.onUnmounted(()=>{window.removeEventListener("resize",a)}),t.onDeactivated(()=>{window.removeEventListener("resize",a)});const a=f=>{let p=f.target.innerWidth;switch(!!p){case p<768:o.value="xs";break;case(p>=768&&p<992):o.value="sm";break;case(p>=992&&p<1200):o.value="md";break;case(p>=1200&&p<1920):o.value="lg";break;case p>=1920:o.value="xl";break}};t.provide("gap",Array.isArray(r.gap)?r.gap[0]:r.gap);let o=t.ref("xl");t.provide("breakPoint",o);const s=t.ref(-1);t.provide("shouldHiddenIndex",s);const i=t.computed(()=>typeof r.cols=="object"?r.cols[o.value]??r.cols:r.cols);t.provide("cols",i);const l=t.useSlots().default(),c=()=>{var m,h,w,y;let f=[],p=null;l.forEach(k=>{var C;typeof k.type=="object"&&k.type.name==="GridItem"&&((C=k.props)==null?void 0:C.suffix)!==void 0&&(p=k),typeof k.type=="symbol"&&Array.isArray(k.children)&&f.push(...k.children)});let g=0;p&&(g=(((m=p.props[o.value])==null?void 0:m.span)??((h=p.props)==null?void 0:h.span)??1)+(((w=p.props[o.value])==null?void 0:w.offset)??((y=p.props)==null?void 0:y.offset)??0));try{let k=!1;f.reduce((C=0,b,_)=>{var v,M,D,B;if(C+=(((v=b.props[o.value])==null?void 0:v.span)??((M=b.props)==null?void 0:M.span)??1)+(((D=b.props[o.value])==null?void 0:D.offset)??((B=b.props)==null?void 0:B.offset)??0),Number(C)>r.collapsedRows*i.value-g)throw s.value=_,k=!0,"find it";return C},0),k||(s.value=-1)}catch{}};t.watch(()=>o.value,()=>{r.collapsed&&c()}),t.watch(()=>r.collapsed,f=>{if(f)return c();s.value=-1});const d=t.computed(()=>typeof r.gap=="number"?`${r.gap}px`:Array.isArray(r.gap)?`${r.gap[1]}px ${r.gap[0]}px`:"unset"),u=t.computed(()=>({display:"grid",gridGap:d.value,gridTemplateColumns:`repeat(${i.value}, minmax(0, 1fr))`}));return n({breakPoint:o}),(f,p)=>(t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(u.value)},[t.renderSlot(f.$slots,"default")],4))}})),SE={class:"info-pair"},CE={class:"info-pair--title"},vE={key:0,class:"info-pair--title--tip"},Bf=He(at(t.defineComponent({name:"zh-info-pair",__name:"InfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createElementBlock("div",SE,[t.createElementVNode("div",CE,[t.createTextVNode(t.toDisplayString(n.title)+" ",1),r.tip?(t.openBlock(),t.createElementBlock("div",vE,t.toDisplayString(r.tip),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:t.normalizeClass(["info-pair--value",{ellipsis:r.ellipsis}])},[t.renderSlot(r.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(n.value||t.unref(yn)),1)],!0)],2)]))}}),[["__scopeId","data-v-7c46e10e"]])),Vf=He(at(t.defineComponent({name:"zh-input",__name:"Input",props:t.mergeModels({style:{},class:{default:"zh-default-input"},size:{default:"default"},className:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=t.useAttrs(),r=e,a=t.useModel(e,"modelValue"),o=()=>{(n.max||Number(n.max)===0)&&Number(a.value)>=n.max&&(a.value=n.max.toString()),(n.min||Number(n.min)===0)&&Number(a.value)<=n.min&&(a.value=n.min.toString())};return(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.class)},[t.createVNode(t.unref(It),t.mergeProps(s.$attrs,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),size:s.size,onBlur:o}),t.createSlots({_:2},[t.renderList(s.$slots,(l,c)=>({name:l,fn:t.withCtx(d=>[t.renderSlot(s.$slots,l,t.normalizeProps(t.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","size"])],2))}}),[["__scopeId","data-v-75a9ec9f"]])),If=at(t.defineComponent({name:"zh-input-number",__name:"InputNumber",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:n}){const r=e,a=n,o=t.useAttrs(),s=(d,u=0,f=0,p=0)=>{let g=(d==null?void 0:d.toString())??"",m,h,w;return f===0?(g=g.replace(/[^\d]/g,""),g=g.replace(/^0\d+/g,"0"),u!==0&&(g=g.slice(0,u))):(g=g.replace(/[^\-\d.]/g,""),g=g.replace(/^[^\-\d]/g,""),g=g.replace(/\.{2}/g,"."),g=g.replace(/^0(\d+)/g,"$1"),m=g.split(".")||[],m.length>1?(u===0?h=m[0]:h=m[0].slice(0,u),w=m[1].slice(0,f),g=h+"."+w):u!==0&&(g=g.slice(0,u))),p!==0&&(g=g.slice(0,p)),g},i=()=>{r.modelValue===""||r.modelValue===void 0||(o.max&&Number(r.modelValue)>o.max&&a("update:modelValue",o.max.toString()),o.min&&Number(r.modelValue)<o.min&&a("update:modelValue",o.min.toString()))},l=d=>d?s(d,o.integer,o.precision,o.maxLength):"",c=d=>{/^\d+\.0*$/.test((d==null?void 0:d.toString())||"")||d===""?a("update:modelValue",l(d)):a("update:modelValue",Number(l(d)))};return(d,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["input-number",r.class]),style:t.normalizeStyle(r.style)},[t.createVNode(t.unref(It),t.mergeProps(d.$attrs,{"model-value":r.modelValue,"onUpdate:modelValue":c,onBlur:i,style:{width:"100%"},formatter:l}),t.createSlots({_:2},[t.renderList(Object.keys(d.$slots),f=>({name:f,fn:t.withCtx(p=>[t.renderSlot(d.$slots,f,t.normalizeProps(t.guardReactiveProps(p)),void 0,!0)])}))]),1040,["model-value"])],6))}}),[["__scopeId","data-v-32d536a9"]]),Af=He(If),EE={class:"loading-box"},Rf=He(at(t.defineComponent({name:"zh-loading",__name:"Loading",setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",EE,r[0]||(r[0]=[t.createElementVNode("div",{class:"loading-wrap"},[t.createElementVNode("span",{class:"dot dot-spin"},[t.createElementVNode("i"),t.createElementVNode("i"),t.createElementVNode("i"),t.createElementVNode("i")])],-1)])))}}),[["__scopeId","data-v-bcc04aa5"]])),ME={key:0,class:"tips"},Ff=He(at(t.defineComponent({name:"zh-message-box",__name:"MessageBox",props:t.mergeModels({title:{},subtitle:{},tip:{},placeholder:{},formItemProps:{},formProps:{},inputProps:{},closeOnClickModal:{type:Boolean},callBack:{type:Function},onAction:{type:Function},onVanish:{type:Function},submitText:{},render:{type:Function},maxlength:{},renderProps:{}},{visible:{type:Boolean,default:!0},visibleModifiers:{}}),emits:t.mergeModels(["action","vanish"],["update:visible"]),setup(e,{emit:n}){const r=e,a=n,o=t.useModel(e,"visible"),s=t.ref(),i=t.ref({textarea:""}),l=(f,p,g)=>{p||g(r.placeholder),g()},c=t.ref({textarea:[{validator:l,trigger:["blur","change"]}]}),d=async()=>{var f;r.placeholder?(f=s.value)==null||f.validate(async p=>{if(p)try{if(r.callBack){const g=await r.callBack(i.value.textarea);console.log(g)}a("action","submit"),o.value=!1}catch(g){console.log(g)}}):(a("action","submit"),o.value=!1)},u=()=>{a("action","cancel"),o.value=!1};return(f,p)=>(t.openBlock(),t.createBlock(Of,t.mergeProps({modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=g=>o.value=g),width:"544"},r,{onSubmit:d,onClose:u}),{default:t.withCtx(()=>[f.tip?(t.openBlock(),t.createElementBlock("div",ME,t.toDisplayString(f.tip),1)):t.createCommentVNode("",!0),f.render?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(f.render),t.normalizeProps(t.mergeProps({key:1},r.renderProps)),null,16)):f.placeholder?(t.openBlock(),t.createBlock(t.unref(Aw),t.mergeProps({key:2,ref_key:"formRef",ref:s,model:i.value,rules:c.value},r.formProps),{default:t.withCtx(()=>[t.createVNode(t.unref(Rw),t.mergeProps({prop:"textarea"},r.formItemProps),{default:t.withCtx(()=>[t.createVNode(t.unref(It),t.mergeProps({modelValue:i.value.textarea,"onUpdate:modelValue":p[0]||(p[0]=g=>i.value.textarea=g),style:{width:"100%"},rows:4,type:"textarea",placeholder:f.placeholder,maxlength:r.maxlength||100,"show-word-limit":""},f.inputProps),null,16,["modelValue","placeholder","maxlength"])]),_:1},16)]),_:1},16,["model","rules"])):t.createCommentVNode("",!0)]),_:1},16,["modelValue"]))}}),[["__scopeId","data-v-1903b5ef"]])),Lf=He(at(t.defineComponent({name:"zh-money-input",__name:"MoneyInput",props:t.mergeModels({style:{},class:{},showTooltip:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:t.mergeModels(["update:modelValue"],["update:modelValue"]),setup(e,{emit:n}){const r=e,a=t.useModel(e,"modelValue"),o=t.computed(()=>{if(a.value)return oE(a.value)&&Number(a.value)>=1e3?sE(Number(a.value)):""}),s=t.ref(!1);return(i,l)=>(t.openBlock(),t.createBlock(t.unref(as),{effect:"dark",content:o.value,placement:"top",visible:i.showTooltip&&s.value&&!!o.value},{default:t.withCtx(()=>[t.createVNode(If,t.mergeProps(i.$attrs,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),style:r.style,class:r.class,onFocus:l[1]||(l[1]=()=>s.value=!0),onBlur:l[2]||(l[2]=()=>s.value=!1)}),t.createSlots({_:2},[t.renderList(Object.keys(i.$slots),c=>({name:c,fn:t.withCtx(d=>[t.renderSlot(i.$slots,c,t.normalizeProps(t.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","style","class"])]),_:3},8,["content","visible"]))}}),[["__scopeId","data-v-d97e0edf"]])),TE={class:"page-head"},DE={class:"left-wrap"},OE={class:"page-name"},xE={class:"value"},NE={class:"other-inform"},PE={class:"label"},$E={class:"value mg-r-24"},BE={class:"status"},Yf=He(at(t.defineComponent({name:"zh-page-head-panel",__name:"PageHeadPanel",props:{dataSource:{}},setup(e){const n=e,{name:r,no:a,status:o,extendLabel:s,extendValue:i}=t.toRefs(n.dataSource);return(l,c)=>(t.openBlock(),t.createElementBlock("div",TE,[t.createElementVNode("div",DE,[t.createElementVNode("span",OE,t.toDisplayString(t.unref(r)),1),t.createElementVNode("div",null,[c[0]||(c[0]=t.createElementVNode("span",{class:"label mg-l-16"},"编号",-1)),t.createElementVNode("span",xE,t.toDisplayString(t.unref(a)),1)])]),t.createElementVNode("div",NE,[t.renderSlot(l.$slots,"extend",{},()=>[t.createElementVNode("span",PE,t.toDisplayString(t.unref(s)),1),t.createElementVNode("span",$E,t.toDisplayString(t.unref(i)),1)],!0),t.createElementVNode("span",BE,t.toDisplayString(t.unref(o)),1)])]))}}),[["__scopeId","data-v-cecdddb2"]])),zf=He(at(t.defineComponent({name:"zh-tool-tips",__name:"ToolTips",props:{placement:{type:String,default:"top"},content:{type:String,default:"top"}},setup(e){const n=e;return(r,a)=>(t.openBlock(),t.createBlock(t.unref(as),{class:"box-item",effect:"dark",content:n.content,placement:n.placement},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},()=>[a[0]||(a[0]=t.createElementVNode("i",{class:"iconfont icon-Frame2"},null,-1))],!0)]),_:3},8,["content","placement"]))}}),[["__scopeId","data-v-93c79d22"]])),jf=He(t.defineComponent({name:"ZhBaseInfo",__name:"BaseInfo",props:{contentWidth:{default:void 0},labelWidth:{default:"70px"},infoDirection:{default:"vertical"},cols:{default:5},gap:{default:16}},setup(e){const n=e,r=t.ref(),a=t.ref(),o=t.ref();t.provide("infoLabelWidth",r),t.provide("infoContentWidth",a),t.provide("infoDirection",o);function s(){r.value=n.labelWidth}function i(){a.value=n.contentWidth}function l(){o.value=n.infoDirection}return t.watch(()=>n.contentWidth,()=>i(),{immediate:!0}),t.watch(()=>n.labelWidth,()=>s(),{immediate:!0}),t.watch(()=>n.infoDirection,()=>l(),{immediate:!0}),(c,d)=>{const u=t.resolveComponent("grid");return t.openBlock(),t.createBlock(u,{cols:c.cols,gap:c.gap},{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},8,["cols","gap"])}}})),VE={class:"common-card"},IE={class:"detail-header"},AE={class:"detail-header--left"},RE={class:"title common-title"},FE={class:"info-pair--label"},LE={class:"info-pair--value"},YE={key:1,class:"detail-header--right"},zE={class:"info-pair--label"},jE={class:"info-pair--value"},Wf=He(at(t.defineComponent({name:"ZhDetailHeader",__name:"DetailHeader",props:{title:{},leftInfos:{},rightInfos:{},stateMeta:{}},setup(e){const n=t.useSlots(),r=e;return(a,o)=>{var s,i;return t.openBlock(),t.createElementBlock("div",VE,[t.createElementVNode("div",null,[t.renderSlot(a.$slots,"menu",{},void 0,!0)]),t.createElementVNode("div",IE,[t.createElementVNode("div",AE,[t.createElementVNode("div",RE,t.toDisplayString(r.title),1),t.renderSlot(a.$slots,"extra-info",{},void 0,!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.leftInfos,l=>(t.openBlock(),t.createElementBlock("div",{class:"info-pair",key:l.value},[t.createElementVNode("div",FE,t.toDisplayString(l.label),1),t.createElementVNode("div",LE,t.toDisplayString(l.value??t.unref(yn)),1)]))),128))]),t.renderSlot(a.$slots,"default",{},void 0,!0),t.unref(n)["right-infos"]?t.renderSlot(a.$slots,"right-infos",{key:0},void 0,!0):(t.openBlock(),t.createElementBlock("div",YE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.rightInfos,l=>(t.openBlock(),t.createElementBlock("div",{class:"info-pair",key:l.value},[t.createElementVNode("div",zE,t.toDisplayString(l.label),1),t.createElementVNode("div",jE,t.toDisplayString(l.value??t.unref(yn)),1)]))),128)),a.stateMeta?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["state common-title",(s=a.stateMeta)==null?void 0:s.state])},t.toDisplayString((i=a.stateMeta)==null?void 0:i.intro),3)):t.createCommentVNode("",!0)]))])])}}}),[["__scopeId","data-v-8830340b"]])),WE=jg([jf,dl,Tf,Wf,Df,xf,Nf,Pf,$f,Bf,Vf,Af,Rf,Ff,Lf,Yf,zf]);pe.ZhBaseInfo=jf,pe.ZhButton=dl,pe.ZhDatePicker=Tf,pe.ZhDetailHeader=Wf,pe.ZhDetailSubTitle=Df,pe.ZhDialog=xf,pe.ZhEditInfoPair=Nf,pe.ZhFileWrapper=Pf,pe.ZhGrid=$f,pe.ZhInfoPair=Bf,pe.ZhInput=Vf,pe.ZhInputNumber=Af,pe.ZhLoading=Rf,pe.ZhMessageBox=Ff,pe.ZhMoneyInput=Lf,pe.ZhPageHeadPanel=Yf,pe.ZhToolTips=zf,pe.default=WE,Object.defineProperties(pe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zhihao-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "components",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/umd/index.umd.cjs",
|
|
7
|
+
"module": "./dist/es/index.js",
|
|
8
|
+
"types": "./dist/types/core/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/es/index.js",
|
|
15
|
+
"require": "./dist/umd/index.umd.cjs",
|
|
16
|
+
"types": "./dist/types/core/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./dist/": {
|
|
19
|
+
"import": "./dist/",
|
|
20
|
+
"require": "./dist/"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"./dist/index.css"
|
|
25
|
+
],
|
|
6
26
|
|
|
7
27
|
"scripts": {
|
|
8
28
|
"build": "run-s build-only move-style",
|
package/componens.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from "vue"
|
|
2
|
-
import {
|
|
3
|
-
ZhBaseInfo,
|
|
4
|
-
ZhButton,
|
|
5
|
-
ZhDatePicker,
|
|
6
|
-
ZhDetailHeader,
|
|
7
|
-
ZhDetailSubTitle,
|
|
8
|
-
ZhDialog,
|
|
9
|
-
ZhEditInfoPair,
|
|
10
|
-
ZhFileWrapper,
|
|
11
|
-
ZhGrid,
|
|
12
|
-
ZhInfoPair,
|
|
13
|
-
ZhInput,
|
|
14
|
-
ZhInputNumber,
|
|
15
|
-
ZhLoading,
|
|
16
|
-
ZhMessageBox,
|
|
17
|
-
ZhMoneyInput,
|
|
18
|
-
ZhPageHeadPanel,
|
|
19
|
-
ZhToolTips
|
|
20
|
-
} from "../components";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export default [
|
|
24
|
-
ZhBaseInfo,
|
|
25
|
-
ZhButton,
|
|
26
|
-
ZhDatePicker,
|
|
27
|
-
ZhDetailHeader,
|
|
28
|
-
ZhDetailSubTitle,
|
|
29
|
-
ZhDialog,
|
|
30
|
-
ZhEditInfoPair,
|
|
31
|
-
ZhFileWrapper,
|
|
32
|
-
ZhGrid,
|
|
33
|
-
ZhInfoPair,
|
|
34
|
-
ZhInput,
|
|
35
|
-
ZhInputNumber,
|
|
36
|
-
ZhLoading,
|
|
37
|
-
ZhMessageBox,
|
|
38
|
-
ZhMoneyInput,
|
|
39
|
-
ZhPageHeadPanel,
|
|
40
|
-
ZhToolTips
|
|
41
|
-
] as Plugin[]
|
package/index.ts
DELETED
package/vite.es.config.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import vue from '@vitejs/plugin-vue';
|
|
3
|
-
import { resolve } from 'path';
|
|
4
|
-
import { readdirSync } from 'fs';
|
|
5
|
-
import dts from 'vite-plugin-dts';
|
|
6
|
-
import { filter, map } from 'lodash-es';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function getDirectoriesSync(basePath: string) {
|
|
10
|
-
const entries = readdirSync(basePath, { withFileTypes: true });
|
|
11
|
-
return map(
|
|
12
|
-
filter(entries, (entry) => entry.isDirectory()),
|
|
13
|
-
(entry) => entry.name
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
export default defineConfig({
|
|
17
|
-
plugins: [vue(), dts({
|
|
18
|
-
tsconfigPath: "../../tsconfig.build.json",
|
|
19
|
-
outDir: "dist/types"
|
|
20
|
-
})],
|
|
21
|
-
build: {
|
|
22
|
-
outDir: "dist/es",
|
|
23
|
-
lib: {
|
|
24
|
-
entry: resolve(__dirname, './index.ts'),
|
|
25
|
-
name: "ZhihaoUI",
|
|
26
|
-
fileName: "index",
|
|
27
|
-
formats: ['es']
|
|
28
|
-
},
|
|
29
|
-
rollupOptions: {
|
|
30
|
-
external: [
|
|
31
|
-
'vue',
|
|
32
|
-
"@fortawesome/fontawesome-svg-core",
|
|
33
|
-
"@fortawesome/free-solid-svg-icons",
|
|
34
|
-
"@fortawesome/vue-fontawesome",
|
|
35
|
-
"@popperjs/core",
|
|
36
|
-
"async-validator"
|
|
37
|
-
],
|
|
38
|
-
output: {
|
|
39
|
-
assetFileNames: (assetInfo) => {
|
|
40
|
-
if (assetInfo.name === 'style.css') return "index.css"
|
|
41
|
-
return assetInfo.name as string
|
|
42
|
-
},
|
|
43
|
-
manualChunks: (id) => {
|
|
44
|
-
if (id.includes('node_modules')) {
|
|
45
|
-
return "vendor"
|
|
46
|
-
}
|
|
47
|
-
if (id.includes('/packages/hooks')) {
|
|
48
|
-
return "hooks"
|
|
49
|
-
}
|
|
50
|
-
if (id.includes('/packages/utils')) {
|
|
51
|
-
return "utils"
|
|
52
|
-
}
|
|
53
|
-
for (const item of getDirectoriesSync("../components")) {
|
|
54
|
-
if (id.includes(`/packages/components/${item}`)) {
|
|
55
|
-
return item
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
});
|
package/vite.umd.config.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import vue from '@vitejs/plugin-vue';
|
|
3
|
-
import { resolve } from 'path';
|
|
4
|
-
import dts from 'vite-plugin-dts';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const COMP_NAMES = ['button', 'icon', 'input'];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export default defineConfig({
|
|
12
|
-
plugins: [vue(), dts({
|
|
13
|
-
tsconfigPath: "../../tsconfig.build.json",
|
|
14
|
-
outDir: "dist/types"
|
|
15
|
-
})],
|
|
16
|
-
build: {
|
|
17
|
-
outDir: "dist/umd",
|
|
18
|
-
lib: {
|
|
19
|
-
entry: resolve(__dirname, './index.ts'),
|
|
20
|
-
name: "ZhihaoUI",
|
|
21
|
-
fileName: "index",
|
|
22
|
-
formats: ['umd']
|
|
23
|
-
},
|
|
24
|
-
rollupOptions: {
|
|
25
|
-
external: ['vue'],
|
|
26
|
-
output: {
|
|
27
|
-
exports: "named",
|
|
28
|
-
globals: {
|
|
29
|
-
vue: 'Vue'
|
|
30
|
-
},
|
|
31
|
-
assetFileNames: (assetInfo) => {
|
|
32
|
-
if (assetInfo.name === 'style.css') return "index.css"
|
|
33
|
-
return assetInfo.name as string
|
|
34
|
-
},
|
|
35
|
-
// manualChunks: (id) => {
|
|
36
|
-
// if (id.includes('node_modules')) {
|
|
37
|
-
// return "vendor"
|
|
38
|
-
// }
|
|
39
|
-
// if (id.includes('/packages/hooks')) {
|
|
40
|
-
// return "hooks"
|
|
41
|
-
// }
|
|
42
|
-
// if (id.includes('/packages/utils')) {
|
|
43
|
-
// return "utils"
|
|
44
|
-
// }
|
|
45
|
-
// for (const item of COMP_NAMES) {
|
|
46
|
-
// if (id.includes(`/packages/components/${item}`)) {
|
|
47
|
-
// return item
|
|
48
|
-
// }
|
|
49
|
-
// }
|
|
50
|
-
// },
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
}
|
|
54
|
-
});
|