@bskj-cd/titianv2
Version:
## Project setup ``` yarn install ```
1 lines • 1.4 MB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["titianV2"]=t(require("vue")):e["titianV2"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({0:function(e,t){},"00bb":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)e[t+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r,i),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);n.call(this,e,t,r,i),this._prevBlock=o}}),t}(),e.mode.CFB}))},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"02e5":function(e,t,n){"use strict";n.r(t);n("cca6"),n("b64b"),n("4e82"),n("07ac"),n("99af");var i=n("2ef0"),r=n.n(i),o=n("3c5c");t["default"]={office:{from:{group:"",name:"",desc:"",type:"text"},config:{name:{label:"名称",value:"name",type:"InputView",require:!1,hideLabel:!1,disabled:!1,options:{min:1,max:20,type:"text"}},group:{label:"关联群",value:"group",type:"SelectView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{}},type:{label:"类型",value:"type",type:"SelectView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{}},desc:{label:"描述",value:"desc",type:"InputView",require:!1,hideLabel:!1,disabled:!1,options:{autosize:{minRows:2,maxRows:6},inputType:"textarea"}}}},task:{from:{group:"",user:[],title:"",files:[],workLevel:0,workStatus:1,plainTime:0,toDayTime:0,workProgress:0},config:{title:{label:"标题",value:"title",type:"InputView",require:!1,hideLabel:!1,disabled:!1,options:{min:1,max:100,type:"textarea",autosize:{minRows:2,maxRows:6}}},files:{label:"文件",value:"files",type:"FileView",require:!1,hideLabel:!1,disabled:!1,options:{limit:5,w:60,h:60,path:"task",accept:"image/*"}},group:{label:"关联群",value:"group",type:"SelectView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{}},user:{label:"人员",value:"user",type:"UserView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{multiple:!0,size:30,border:!0}},workLevel:{label:"优先级",value:"workLevel",type:"RadioView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{border:!0}},workStatus:{label:"状态",value:"workStatus",type:"RadioView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{border:!0}},plainTime:{label:"计划耗时",value:"plainTime",type:"SelectView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{disabledKey:"user"}},toDayTime:{label:"今日耗时",value:"toDayTime",type:"SelectView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{disabledKey:"user"}},workProgress:{label:"进度",value:"workProgress",type:"SelectView",require:!1,hideLabel:!1,disabled:!1,data:[],options:{disabledKey:"user"}}}},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"office",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"app/setFromBox",i=window.app.$route.query.uniqId||"";if(i)window.parent.postMessage({client:"openFromBox",type:e,configData:t},"*");else{var r={type:e};Object.assign(r,this.initData(e,t)),window.app.$store.commit(n,r)}},initData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"office",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.a.cloneDeep(this[e]),i=n.config,o=n.from,a=this.getDataAndRules(r.a.cloneDeep(i),t),s=a.data,l=a.rules;r.a.has(t,"from")&&Object.assign(o,t["from"]);var u={title:"弹框",w:"500px",labelWidth:"72px",full:!1,size:"middle",customClass:"",apiType:{add:"saveOffice"}};return r.a.has(t,"options")&&Object.assign(u,t["options"]),"task"===e&&o.id&&Object.assign(u,{copyBubble:!0,w:"650px"}),{show:!0,from:o,data:{data:s,rules:l,options:u}}},getDataAndRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),i={};for(var a in e)e[a].sort=n.indexOf(a),r.a.has(t,a)&&Object.assign(e[a],t[a]),r.a.has(e[a],"require")&&e[a]["require"]&&(i[a]=this.getRules(e[a]));return e=Object.values(e).sort(o["default"].compare("sort","asc")),{data:e,rules:i}},getRules:function(e){var t=e.label,n=e.type,i=e.options;return"InputView"===n?[{required:!0,message:"请输入".concat(t),trigger:"blur"},{min:i.min||1,max:i.max||20,message:"长度在 ".concat(i.min||1," 到 ").concat(i.max||20," 个字符"),trigger:"blur"}]:[{required:!0,message:"请选择".concat(t),trigger:"change"}]}}},"0366":function(e,t,n){var i=n("59ed");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var i=n("9c0e"),r=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},"04d1":function(e,t,n){var i=n("342f"),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("a04b"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=a(e),t=s(t),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),u=Object.assign;e.exports=!u||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i}))?function(e,t){var n=s(e),u=arguments.length,c=1,h=o.f,d=a.f;while(u>c){var f,p=l(arguments[c++]),m=h?r(p).concat(h(p)):r(p),g=m.length,v=0;while(g>v)f=m[v++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:u},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"07ba":function(e,t,n){},"07eb":function(e,t,n){"use strict";n("30ba")},"0808":function(e,t,n){},"097e":function(e,t,n){var i,r;(function(o,a){i=a,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e=function(){return{_:function(e,t,n,i){return t<100&&(e.setFullYear(t),e.setMonth(n-1),e.setDate(i)),e.setMilliseconds(0),e},fromYmd:function(e,t,n){return this._(new Date(e+"/"+t+"/"+n+" 0:0:0 GMT+0800"),e,t,n)},fromYmdHms:function(e,t,n,i,r,o){return this._(new Date(e+"/"+t+"/"+n+" "+i+":"+r+":"+o+" GMT+0800"),e,t,n)}}}(),t=function(){var t=function(e){return o(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},r=function(e){var t,n=Math.floor(e+.5),i=e+.5-n;n>=2299161&&(t=Math.floor((n-1867216.25)/36524.25),n+=1+t-Math.floor(t/4)),n+=1524;var r=Math.floor((n-122.1)/365.25);n-=Math.floor(365.25*r);var a=Math.floor(n/30.601);n-=Math.floor(30.601*a);var s=n;a>13?(a-=13,r-=4715):(a-=1,r-=4716),i*=24;var l=Math.floor(i);i-=l,i*=60;var u=Math.floor(i);i-=u,i*=60;var c=Math.round(i);return o(r,a,s,l,u,c)},o=function(r,o,a,s,l,u){return 1582===r&&10==o&&a>=15&&(a-=10),{_p:{year:r,month:o,day:a,hour:s,minute:l,second:u,calendar:e.fromYmdHms(r,o,a,s,l,u)},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},getDay:function(){return this._p.day},getHour:function(){return this._p.hour},getMinute:function(){return this._p.minute},getSecond:function(){return this._p.second},getWeek:function(){return this._p.calendar.getDay()},getWeekInChinese:function(){return h.WEEK[this.getWeek()]},getSolarWeek:function(e){return i.fromDate(this._p.calendar,e)},isLeapYear:function(){return h.isLeapYear(this._p.year)},getFestivals:function(){var e=[],t=h.FESTIVAL[this._p.month+"-"+this._p.day];t&&e.push(t);var n=Math.ceil(this._p.day/7),i=this.getWeek();return t=h.WEEK_FESTIVAL[this._p.month+"-"+n+"-"+i],t&&e.push(t),e},getOtherFestivals:function(){var e=[],t=h.OTHER_FESTIVAL[this._p.month+"-"+this._p.day];if(t)for(var n=0,i=t.length;n<i;n++)e.push(t[n]);return e},getXingzuo:function(){return this.getXingZuo()},getXingZuo:function(){var e=11,t=100*this._p.month+this._p.day;return t>=321&&t<=419?e=0:t>=420&&t<=520?e=1:t>=521&&t<=621?e=2:t>=622&&t<=722?e=3:t>=723&&t<=822?e=4:t>=823&&t<=922?e=5:t>=923&&t<=1023?e=6:t>=1024&&t<=1122?e=7:t>=1123&&t<=1221?e=8:t>=1222||t<=119?e=9:t<=218&&(e=10),h.XINGZUO[e]},toYmd:function(){var e=this._p.day;1582===this._p.year&&10==this._p.month&&e>=5&&(e+=10);var t=this._p.year+"";while(t.length<4)t="0"+t;return[t,(this._p.month<10?"0":"")+this._p.month,(e<10?"0":"")+e].join("-")},toYmdHms:function(){return this.toYmd()+" "+[(this._p.hour<10?"0":"")+this._p.hour,(this._p.minute<10?"0":"")+this._p.minute,(this._p.second<10?"0":"")+this._p.second].join(":")},toString:function(){return this.toYmd()},toFullString:function(){var e=this.toYmdHms();this.isLeapYear()&&(e+=" 闰年"),e+=" 星期"+this.getWeekInChinese();for(var t=this.getFestivals(),n=0,i=t.length;n<i;n++)e+=" ("+t[n]+")";return e+=" "+this.getXingZuo()+"座",e},next:function(n,i){var r=e.fromYmdHms(this._p.year,this._p.month,this._p.day,this._p.hour,this._p.minute,this._p.second);if(0!=n)if(i){var o=Math.abs(n),a=n<1?-1:1;while(o>0){r.setDate(r.getDate()+a);var s=!0,l=f.getHoliday(r.getFullYear(),r.getMonth()+1,r.getDate());if(l)s=l.isWork();else{var u=r.getDay();0!=u&&6!=u||(s=!1)}s&&o--}}else r.setDate(r.getDate()+n);return t(r)},getLunar:function(){return n.fromDate(this._p.calendar)},getJulianDay:function(){var e=this._p.year,t=this._p.month,n=this._p.day+((this._p.second/60+this._p.minute)/60+this._p.hour)/24,i=0,r=!1;return 372*e+31*t+Math.floor(n)>=588829&&(r=!0),t<=2&&(t+=12,e--),r&&(i=Math.floor(e/100),i=2-i+Math.floor(i/4)),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+n+i-1524.5},getCalendar:function(){return this._p.calendar}}},a=function(e,n,i,r,a,s){a=1==a?1:2,s=void 0==s?1900:s;var l=[],u=t(new Date),c=u.getLunar(),h=d.getJiaZiIndex(c.getYearInGanZhiExact())-d.getJiaZiIndex(e);h<0&&(h+=60);for(var f=u.getYear()-h,p=0,m=r.substr(1),g=0,v=d.ZHI.length;g<v;g++)d.ZHI[g]===m&&(p=2*(g-1));while(f>=s){var b,y,C=f-1,_=0,w=12,x=!1;while(_<15){if(C>=s&&(b=1,y=o(C,w,b,p,0,0),c=y.getLunar(),c.getYearInGanZhiExact()===e&&c.getMonthInGanZhiExact()===n)){x=!0;break}w++,w>12&&(w=1,C++),_++}if(x){_=0,w--,w<1&&(w=12,C--),b=1,y=o(C,w,b,p,0,0);while(_<61){c=y.getLunar();var E=2==a?c.getDayInGanZhiExact2():c.getDayInGanZhiExact();if(c.getYearInGanZhiExact()===e&&c.getMonthInGanZhiExact()===n&&E===i&&c.getTimeInGanZhi()===r){l.push(y);break}y=y.next(1),_++}}f-=60}return l};return{J2000:2451545,fromYmd:function(e,t,n){return o(e,t,n,0,0,0)},fromYmdHms:function(e,t,n,i,r,a){return o(e,t,n,i,r,a)},fromDate:function(e){return t(e)},fromJulianDay:function(e){return r(e)},fromBaZi:function(e,t,n,i){return a(e,t,n,i)}}}(),n=function(){var i=864e5,r=function(e,i){e["jieQiList"]=[],e["jieQi"]={};for(var r=i.getJieQiJulianDays(),o=0,a=n.JIE_QI_IN_USE.length;o<a;o++){var s=n.JIE_QI_IN_USE[o];e["jieQiList"].push(s),e["jieQi"][s]=t.fromJulianDay(r[o])}},o=function(e,t,n){var i=n-4,r=i%10,o=i%12;r<0&&(r+=10),o<0&&(o+=12);var a=r,s=o,l=r,u=o,c=t.getYear(),h=t.toYmd(),d=t.toYmdHms(),f=e["jieQi"]["立春"];f.getYear()!=c&&(f=e["jieQi"]["LI_CHUN"]);var p=f.toYmd(),m=f.toYmdHms();n===c?(h<p&&(a--,s--),d<m&&(l--,u--)):n<c&&(h>=p&&(a++,s++),d>=m&&(l++,u++)),e["yearGanIndex"]=r,e["yearZhiIndex"]=o,e["yearGanIndexByLiChun"]=(a<0?a+10:a)%10,e["yearZhiIndexByLiChun"]=(s<0?s+12:s)%12,e["yearGanIndexExact"]=(l<0?l+10:l)%10,e["yearZhiIndexExact"]=(u<0?u+12:u)%12},a=function(e,t){var i,r,o=null,a=n.JIE_QI_IN_USE.length,s=-3;for(i=0;i<a;i+=2){r=e.jieQi[n.JIE_QI_IN_USE[i]];var l=t.toYmd(),u=null==o?l:o.toYmd();if(l>=u&&l<r.toYmd())break;o=r,s++}var c=2*((e.yearGanIndexByLiChun+(s<0?1:0))%5+1)%10;for(e["monthGanIndex"]=((s<0?s+10:s)+c)%10,e["monthZhiIndex"]=((s<0?s+12:s)+d.BASE_MONTH_ZHI_INDEX)%12,o=null,s=-3,i=0;i<a;i+=2){r=e.jieQi[n.JIE_QI_IN_USE[i]];var h=t.toYmdHms(),f=null==o?h:o.toYmdHms();if(h>=f&&h<r.toYmdHms())break;o=r,s++}c=2*((e.yearGanIndexExact+(s<0?1:0))%5+1)%10,e["monthGanIndexExact"]=((s<0?s+10:s)+c)%10,e["monthZhiIndexExact"]=((s<0?s+12:s)+d.BASE_MONTH_ZHI_INDEX)%12},s=function(e,n,i,r){var o=t.fromYmdHms(n.getYear(),n.getMonth(),n.getDay(),12,0,0),a=Math.floor(o.getJulianDay())-11,s=a%10,l=a%12;e["dayGanIndex"]=s,e["dayZhiIndex"]=l;var u=s,c=l;e["dayGanIndexExact2"]=u,e["dayZhiIndexExact2"]=c;var h=(i<10?"0":"")+i+":"+(r<10?"0":"")+r;h>="23:00"&&h<="23:59"&&(u++,u>=10&&(u-=10),c++,c>=12&&(c-=12)),e["dayGanIndexExact"]=u,e["dayZhiIndexExact"]=c},u=function(e,t,n){var i=d.getTimeZhiIndex((t<10?"0":"")+t+":"+(n<10?"0":"")+n);e["timeZhiIndex"]=i,e["timeGanIndex"]=(e["dayGanIndexExact"]%5*2+i)%10},c=function(e,t){e["weekIndex"]=t.getWeek()},f=function(e,t,n,i,l,h){var d={};return r(d,h),o(d,l,e),a(d,l),s(d,l,t,n),u(d,t,n),c(d,l),d},g=function(n){for(var r=e.fromYmd(n.getFullYear(),n.getMonth()+1,n.getDate()),o=r.getTime(),a=0,s=0,u=0,c=r.getFullYear(),h=l.fromYear(c),d=h.getMonths(),f=0,p=d.length;f<p;f++){var m=d[f],g=t.fromJulianDay(m.getFirstJulianDay()).getCalendar();g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0);var v=Math.floor((o-g.getTime())/i);if(v<m.getDayCount()){a=m.getYear(),s=m.getMonth(),u=v+1;break}}return b(a,s,u,n.getHours(),n.getMinutes(),n.getSeconds(),t.fromDate(n),h)},v=function(e,n,i,r,o,a){var s=l.fromYear(e),u=s.getMonth(n);if(null==u)throw"wrong lunar year "+e+" month "+n;if(i<1)throw"lunar day must bigger than 0";var c=u.getDayCount();if(i>c)throw"only "+c+" days in lunar year "+e+" month "+n;var h=t.fromJulianDay(u.getFirstJulianDay()+i-1),d=t.fromYmdHms(h.getYear(),h.getMonth(),h.getDay(),r,o,a);return b(e,n,i,r,o,a,d,s)},b=function(t,r,o,a,s,l,u,c){var g=f(t,a,s,l,u,c);return{_p:{year:t,month:r,day:o,hour:a,minute:s,second:l,timeGanIndex:g.timeGanIndex,timeZhiIndex:g.timeZhiIndex,dayGanIndex:g.dayGanIndex,dayZhiIndex:g.dayZhiIndex,dayGanIndexExact:g.dayGanIndexExact,dayZhiIndexExact:g.dayZhiIndexExact,dayGanIndexExact2:g.dayGanIndexExact2,dayZhiIndexExact2:g.dayZhiIndexExact2,monthGanIndex:g.monthGanIndex,monthZhiIndex:g.monthZhiIndex,monthGanIndexExact:g.monthGanIndexExact,monthZhiIndexExact:g.monthZhiIndexExact,yearGanIndex:g.yearGanIndex,yearZhiIndex:g.yearZhiIndex,yearGanIndexByLiChun:g.yearGanIndexByLiChun,yearZhiIndexByLiChun:g.yearZhiIndexByLiChun,yearGanIndexExact:g.yearGanIndexExact,yearZhiIndexExact:g.yearZhiIndexExact,weekIndex:g.weekIndex,jieQi:g.jieQi,jieQiList:g.jieQiList,solar:u,eightChar:null},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},getDay:function(){return this._p.day},getHour:function(){return this._p.hour},getMinute:function(){return this._p.minute},getSecond:function(){return this._p.second},getTimeGanIndex:function(){return this._p.timeGanIndex},getTimeZhiIndex:function(){return this._p.timeZhiIndex},getDayGanIndex:function(){return this._p.dayGanIndex},getDayGanIndexExact:function(){return this._p.dayGanIndexExact},getDayGanIndexExact2:function(){return this._p.dayGanIndexExact2},getDayZhiIndex:function(){return this._p.dayZhiIndex},getDayZhiIndexExact:function(){return this._p.dayZhiIndexExact},getDayZhiIndexExact2:function(){return this._p.dayZhiIndexExact2},getMonthGanIndex:function(){return this._p.monthGanIndex},getMonthGanIndexExact:function(){return this._p.monthGanIndexExact},getMonthZhiIndex:function(){return this._p.monthZhiIndex},getMonthZhiIndexExact:function(){return this._p.monthZhiIndexExact},getYearGanIndex:function(){return this._p.yearGanIndex},getYearGanIndexByLiChun:function(){return this._p.yearGanIndexByLiChun},getYearGanIndexExact:function(){return this._p.yearGanIndexExact},getYearZhiIndex:function(){return this._p.yearZhiIndex},getYearZhiIndexByLiChun:function(){return this._p.yearZhiIndexByLiChun},getYearZhiIndexExact:function(){return this._p.yearZhiIndexExact},getGan:function(){return this.getYearGan()},getZhi:function(){return this.getYearZhi()},getYearGan:function(){return d.GAN[this._p.yearGanIndex+1]},getYearGanByLiChun:function(){return d.GAN[this._p.yearGanIndexByLiChun+1]},getYearGanExact:function(){return d.GAN[this._p.yearGanIndexExact+1]},getYearZhi:function(){return d.ZHI[this._p.yearZhiIndex+1]},getYearZhiByLiChun:function(){return d.ZHI[this._p.yearZhiIndexByLiChun+1]},getYearZhiExact:function(){return d.ZHI[this._p.yearZhiIndexExact+1]},getYearInGanZhi:function(){return this.getYearGan()+this.getYearZhi()},getYearInGanZhiByLiChun:function(){return this.getYearGanByLiChun()+this.getYearZhiByLiChun()},getYearInGanZhiExact:function(){return this.getYearGanExact()+this.getYearZhiExact()},getMonthGan:function(){return d.GAN[this._p.monthGanIndex+1]},getMonthGanExact:function(){return d.GAN[this._p.monthGanIndexExact+1]},getMonthZhi:function(){return d.ZHI[this._p.monthZhiIndex+1]},getMonthZhiExact:function(){return d.ZHI[this._p.monthZhiIndexExact+1]},getMonthInGanZhi:function(){return this.getMonthGan()+this.getMonthZhi()},getMonthInGanZhiExact:function(){return this.getMonthGanExact()+this.getMonthZhiExact()},getDayGan:function(){return d.GAN[this._p.dayGanIndex+1]},getDayGanExact:function(){return d.GAN[this._p.dayGanIndexExact+1]},getDayGanExact2:function(){return d.GAN[this._p.dayGanIndexExact2+1]},getDayZhi:function(){return d.ZHI[this._p.dayZhiIndex+1]},getDayZhiExact:function(){return d.ZHI[this._p.dayZhiIndexExact+1]},getDayZhiExact2:function(){return d.ZHI[this._p.dayZhiIndexExact2+1]},getDayInGanZhi:function(){return this.getDayGan()+this.getDayZhi()},getDayInGanZhiExact:function(){return this.getDayGanExact()+this.getDayZhiExact()},getDayInGanZhiExact2:function(){return this.getDayGanExact2()+this.getDayZhiExact2()},getTimeGan:function(){return d.GAN[this._p.timeGanIndex+1]},getTimeZhi:function(){return d.ZHI[this._p.timeZhiIndex+1]},getTimeInGanZhi:function(){return this.getTimeGan()+this.getTimeZhi()},getShengxiao:function(){return this.getYearShengXiao()},getYearShengXiao:function(){return d.SHENGXIAO[this._p.yearZhiIndex+1]},getYearShengXiaoByLiChun:function(){return d.SHENGXIAO[this._p.yearZhiIndexByLiChun+1]},getYearShengXiaoExact:function(){return d.SHENGXIAO[this._p.yearZhiIndexExact+1]},getMonthShengXiao:function(){return d.SHENGXIAO[this._p.monthZhiIndex+1]},getMonthShengXiaoExact:function(){return d.SHENGXIAO[this._p.monthZhiIndexExact+1]},getDayShengXiao:function(){return d.SHENGXIAO[this._p.dayZhiIndex+1]},getTimeShengXiao:function(){return d.SHENGXIAO[this._p.timeZhiIndex+1]},getYearInChinese:function(){for(var e=this._p.year+"",t="",n="0".charCodeAt(0),i=0,r=e.length;i<r;i++)t+=d.NUMBER[e.charCodeAt(i)-n];return t},getMonthInChinese:function(){var e=this._p.month;return(e<0?"闰":"")+d.MONTH[Math.abs(e)]},getDayInChinese:function(){return d.DAY[this._p.day]},getPengZuGan:function(){return d.PENGZU_GAN[this._p.dayGanIndex+1]},getPengZuZhi:function(){return d.PENGZU_ZHI[this._p.dayZhiIndex+1]},getPositionXi:function(){return this.getDayPositionXi()},getPositionXiDesc:function(){return this.getDayPositionXiDesc()},getPositionYangGui:function(){return this.getDayPositionYangGui()},getPositionYangGuiDesc:function(){return this.getDayPositionYangGuiDesc()},getPositionYinGui:function(){return this.getDayPositionYinGui()},getPositionYinGuiDesc:function(){return this.getDayPositionYinGuiDesc()},getPositionFu:function(){return this.getDayPositionFu()},getPositionFuDesc:function(){return this.getDayPositionFuDesc()},getPositionCai:function(){return this.getDayPositionCai()},getPositionCaiDesc:function(){return this.getDayPositionCaiDesc()},getDayPositionXi:function(){return d.POSITION_XI[this._p.dayGanIndex+1]},getDayPositionXiDesc:function(){return d.POSITION_DESC[this.getDayPositionXi()]},getDayPositionYangGui:function(){return d.POSITION_YANG_GUI[this._p.dayGanIndex+1]},getDayPositionYangGuiDesc:function(){return d.POSITION_DESC[this.getDayPositionYangGui()]},getDayPositionYinGui:function(){return d.POSITION_YIN_GUI[this._p.dayGanIndex+1]},getDayPositionYinGuiDesc:function(){return d.POSITION_DESC[this.getDayPositionYinGui()]},getDayPositionFu:function(){return d.POSITION_FU[this._p.dayGanIndex+1]},getDayPositionFuDesc:function(){return d.POSITION_DESC[this.getDayPositionFu()]},getDayPositionCai:function(){return d.POSITION_CAI[this._p.dayGanIndex+1]},getDayPositionCaiDesc:function(){return d.POSITION_DESC[this.getDayPositionCai()]},getTimePositionXi:function(){return d.POSITION_XI[this._p.timeGanIndex+1]},getTimePositionXiDesc:function(){return d.POSITION_DESC[this.getTimePositionXi()]},getTimePositionYangGui:function(){return d.POSITION_YANG_GUI[this._p.timeGanIndex+1]},getTimePositionYangGuiDesc:function(){return d.POSITION_DESC[this.getTimePositionYangGui()]},getTimePositionYinGui:function(){return d.POSITION_YIN_GUI[this._p.timeGanIndex+1]},getTimePositionYinGuiDesc:function(){return d.POSITION_DESC[this.getTimePositionYinGui()]},getTimePositionFu:function(){return d.POSITION_FU[this._p.timeGanIndex+1]},getTimePositionFuDesc:function(){return d.POSITION_DESC[this.getTimePositionFu()]},getTimePositionCai:function(){return d.POSITION_CAI[this._p.timeGanIndex+1]},getTimePositionCaiDesc:function(){return d.POSITION_DESC[this.getTimePositionCai()]},getChong:function(){return this.getDayChong()},getChongGan:function(){return this.getDayChongGan()},getChongGanTie:function(){return this.getDayChongGanTie()},getChongShengXiao:function(){return this.getDayChongShengXiao()},getChongDesc:function(){return this.getDayChongDesc()},getSha:function(){return this.getDaySha()},getDayChong:function(){return d.CHONG[this.getDayZhi()]},getDayChongGan:function(){return d.CHONG_GAN[this.getDayGan()]},getDayChongGanTie:function(){return d.CHONG_GAN_TIE[this.getDayGan()]},getDayChongShengXiao:function(){for(var e=this.getChong(),t=0,n=d.ZHI.length;t<n;t++)if(d.ZHI[t]===e)return d.SHENGXIAO[t];return""},getDayChongDesc:function(){return"("+this.getDayChongGan()+this.getDayChong()+")"+this.getDayChongShengXiao()},getDaySha:function(){return d.SHA[this.getDayZhi()]},getTimeChong:function(){return d.CHONG[this.getTimeZhi()]},getTimeChongGan:function(){return d.CHONG_GAN[this.getTimeGan()]},getTimeChongGanTie:function(){return d.CHONG_GAN_TIE[this.getTimeGan()]},getTimeChongShengXiao:function(){for(var e=this.getTimeChong(),t=0,n=d.ZHI.length;t<n;t++)if(d.ZHI[t]===e)return d.SHENGXIAO[t];return""},getTimeChongDesc:function(){return"("+this.getTimeChongGan()+this.getTimeChong()+")"+this.getTimeChongShengXiao()},getTimeSha:function(){return d.SHA[this.getTimeZhi()]},getYearNaYin:function(){return d.NAYIN[this.getYearInGanZhi()]},getMonthNaYin:function(){return d.NAYIN[this.getMonthInGanZhi()]},getDayNaYin:function(){return d.NAYIN[this.getDayInGanZhi()]},getTimeNaYin:function(){return d.NAYIN[this.getTimeInGanZhi()]},getSeason:function(){return d.SEASON[Math.abs(this._p.month)]},_convertJieQi:function(e){var t=e;return"DONG_ZHI"===t?t="冬至":"DA_HAN"===t?t="大寒":"XIAO_HAN"===t?t="小寒":"LI_CHUN"===t?t="立春":"DA_XUE"===t?t="大雪":"YU_SHUI"===t?t="雨水":"JING_ZHE"===t&&(t="惊蛰"),t},getJie:function(){for(var e,t="",i=1,r=n.JIE_QI.length;i<r;i+=2){var o=n.JIE_QI[i];if(e=this._p.jieQi[o],e.getYear()===this._p.solar.getYear()&&e.getMonth()===this._p.solar.getMonth()&&e.getDay()===this._p.solar.getDay()){t=o;break}}return this._convertJieQi(t)},getQi:function(){for(var e,t="",i=0,r=n.JIE_QI.length;i<r;i+=2){var o=n.JIE_QI[i];if(e=this._p.jieQi[o],e.getYear()===this._p.solar.getYear()&&e.getMonth()===this._p.solar.getMonth()&&e.getDay()===this._p.solar.getDay()){t=o;break}}return this._convertJieQi(t)},getJieQi:function(){var e="";for(var t in this._p.jieQi){var n=this._p.jieQi[t];if(n.getYear()==this._p.solar.getYear()&&n.getMonth()==this._p.solar.getMonth()&&n.getDay()==this._p.solar.getDay()){e=t;break}}return this._convertJieQi(e)},getWeek:function(){return this._p.weekIndex},getWeekInChinese:function(){return h.WEEK[this.getWeek()]},getXiu:function(){return d.XIU[this.getDayZhi()+this.getWeek()]},getXiuLuck:function(){return d.XIU_LUCK[this.getXiu()]},getXiuSong:function(){return d.XIU_SONG[this.getXiu()]},getZheng:function(){return d.ZHENG[this.getXiu()]},getAnimal:function(){return d.ANIMAL[this.getXiu()]},getGong:function(){return d.GONG[this.getXiu()]},getShou:function(){return d.SHOU[this.getGong()]},getFestivals:function(){var e=[],t=d.FESTIVAL[this._p.month+"-"+this._p.day];return t&&e.push(t),12==Math.abs(this._p.month)&&this._p.day>=29&&this._p.year!=this.next(1).getYear()&&e.push("除夕"),e},getOtherFestivals:function(){var e=[],t=d.OTHER_FESTIVAL[this._p.month+"-"+this._p.day];if(t)for(var n=0,i=t.length;n<i;n++)e.push(t[n]);return e},getBaZi:function(){var e=this.getEightChar(),t=[];return t.push(e.getYear()),t.push(e.getMonth()),t.push(e.getDay()),t.push(e.getTime()),t},getBaZiWuXing:function(){var e=this.getEightChar(),t=[];return t.push(e.getYearWuXing()),t.push(e.getMonthWuXing()),t.push(e.getDayWuXing()),t.push(e.getTimeWuXing()),t},getBaZiNaYin:function(){var e=this.getEightChar(),t=[];return t.push(e.getYearNaYin()),t.push(e.getMonthNaYin()),t.push(e.getDayNaYin()),t.push(e.getTimeNaYin()),t},getBaZiShiShenGan:function(){var e=this.getEightChar(),t=[];return t.push(e.getYearShiShenGan()),t.push(e.getMonthShiShenGan()),t.push(e.getDayShiShenGan()),t.push(e.getTimeShiShenGan()),t},getBaZiShiShenZhi:function(){var e=this.getEightChar(),t=[];return t.push(e.getYearShiShenZhi()[0]),t.push(e.getMonthShiShenZhi()[0]),t.push(e.getDayShiShenZhi()[0]),t.push(e.getTimeShiShenZhi()[0]),t},getBaZiShiShenYearZhi:function(){return this.getEightChar().getYearShiShenZhi()},getBaZiShiShenMonthZhi:function(){return this.getEightChar().getMonthShiShenZhi()},getBaZiShiShenDayZhi:function(){return this.getEightChar().getDayShiShenZhi()},getBaZiShiShenTimeZhi:function(){return this.getEightChar().getTimeShiShenZhi()},getZhiXing:function(){var e=this._p.dayZhiIndex-this._p.monthZhiIndex;return e<0&&(e+=12),d.ZHI_XING[e+1]},getDayTianShen:function(){var e=this.getMonthZhi(),t=d.ZHI_TIAN_SHEN_OFFSET[e];return d.TIAN_SHEN[(this._p.dayZhiIndex+t)%12+1]},getTimeTianShen:function(){var e=this.getDayZhiExact(),t=d.ZHI_TIAN_SHEN_OFFSET[e];return d.TIAN_SHEN[(this._p.timeZhiIndex+t)%12+1]},getDayTianShenType:function(){return d.TIAN_SHEN_TYPE[this.getDayTianShen()]},getTimeTianShenType:function(){return d.TIAN_SHEN_TYPE[this.getTimeTianShen()]},getDayTianShenLuck:function(){return d.TIAN_SHEN_TYPE_LUCK[this.getDayTianShenType()]},getTimeTianShenLuck:function(){return d.TIAN_SHEN_TYPE_LUCK[this.getTimeTianShenType()]},getDayPositionTai:function(){var e=this._p.dayGanIndex-this._p.dayZhiIndex;return e<0&&(e+=12),d.POSITION_TAI_DAY[5*e+this._p.dayGanIndex]},getMonthPositionTai:function(){var e=this._p.month;return e<0?"":d.POSITION_TAI_MONTH[e-1]},getDayYi:function(){return d.getDayYi(this.getMonthInGanZhiExact(),this.getDayInGanZhi())},getDayJi:function(){return d.getDayJi(this.getMonthInGanZhiExact(),this.getDayInGanZhi())},getDayJiShen:function(){return d.getDayJiShen(this.getMonth(),this.getDayInGanZhi())},getDayXiongSha:function(){return d.getDayXiongSha(this.getMonth(),this.getDayInGanZhi())},getTimeYi:function(){return d.getTimeYi(this.getDayInGanZhiExact(),this.getTimeInGanZhi())},getTimeJi:function(){return d.getTimeJi(this.getDayInGanZhiExact(),this.getTimeInGanZhi())},getYueXiang:function(){return d.YUE_XIANG[this._p.day]},getYearNineStar:function(){var e=-(this._p.year-1900)%9;return e<0&&(e+=9),p.fromIndex(e)},getMonthNineStar:function(){var e=2,t=this.getYearZhi();"子午卯酉".indexOf(t)>-1?e=8:"辰戌丑未".indexOf(t)>-1&&(e=5);var n=this._p.monthZhiIndex-2;n<0&&(n+=12);var i=e-n-1;while(i<0)i+=9;return p.fromIndex(i)},getDayNineStar:function(){var e=this._p.solar.toYmd(),t=this._p.jieQi["雨水"].toYmd(),n=this._p.jieQi["谷雨"].toYmd(),i=this._p.jieQi["夏至"].toYmd(),r=this._p.jieQi["处暑"].toYmd(),o=this._p.jieQi["霜降"].toYmd(),a=6,s=!1;e>=this._p.jieQi["冬至"].toYmd()&&e<t?(s=!0,a=1):e>=t&&e<n?(s=!0,a=7):e>=n&&e<i?(s=!0,a=4):e>=i&&e<r?a=9:e>=r&&e<o&&(a=3);var l=d.getJiaZiIndex(this.getDayInGanZhi())%9,u=s?a+l-1:a-l-1;return u>8&&(u-=9),u<0&&(u+=9),p.fromIndex(u)},getTimeNineStar:function(){var e=this._p.solar.toYmd(),t=!1;e>=this._p.jieQi["冬至"].toYmd()&&e<this._p.jieQi["夏至"].toYmd()&&(t=!0);var n=t?7:3,i=this.getDayZhi();"子午卯酉".indexOf(i)>-1?n=t?1:9:"辰戌丑未".indexOf(i)>-1&&(n=t?4:6);var r=t?n+this._p.timeZhiIndex-1:n-this._p.timeZhiIndex-1;return r>8&&(r-=9),r<0&&(r+=9),p.fromIndex(r)},getSolar:function(){return this._p.solar},getJieQiTable:function(){return this._p.jieQi},getJieQiList:function(){return this._p.jieQiList},getNextJie:function(){for(var e=[],t=0,i=n.JIE_QI_IN_USE.length/2;t<i;t++)e.push(n.JIE_QI_IN_USE[2*t]);return this._getNearJieQi(!0,e)},getPrevJie:function(){for(var e=[],t=0,i=n.JIE_QI_IN_USE.length/2;t<i;t++)e.push(n.JIE_QI_IN_USE[2*t]);return this._getNearJieQi(!1,e)},getNextQi:function(){for(var e=[],t=0,i=n.JIE_QI_IN_USE.length/2;t<i;t++)e.push(n.JIE_QI_IN_USE[2*t+1]);return this._getNearJieQi(!0,e)},getPrevQi:function(){for(var e=[],t=0,i=n.JIE_QI_IN_USE.length/2;t<i;t++)e.push(n.JIE_QI_IN_USE[2*t+1]);return this._getNearJieQi(!1,e)},getNextJieQi:function(){return this._getNearJieQi(!0,null)},getPrevJieQi:function(){return this._getNearJieQi(!1,null)},_buildJieQi:function(e,t){var i,r,o=!1,a=!1;for(i=0,r=n.JIE_QI.length;i<r;i++)if(n.JIE_QI[i]===e){i%2==0?a=!0:o=!0;break}return{_p:{name:e,solar:t,jie:o,qi:a},getName:function(){return this._p.name},getSolar:function(){return this._p.solar},setName:function(e){this._p.name=e},setSolar:function(e){this._p.solar=e},isJie:function(){return this._p.jie},isQi:function(){return this._p.qi},toString:function(){return this.getName()}}},_getNearJieQi:function(e,t){var n=null,i=null,r={},o=!1;if(null!=t)for(var a=0,s=t.length;a<s;a++)r[t[a]]=!0,o=!0;var l=this._p.solar.toYmdHms();for(var u in this._p.jieQi){var c=this._convertJieQi(u);if(!o||r[c]){var h=this._p.jieQi[u],d=h.toYmdHms();if(e){if(d<l)continue;(null==i||d<i.toYmdHms())&&(n=c,i=h)}else{if(d>l)continue;(null==i||d>i.toYmdHms())&&(n=c,i=h)}}}return null==i?null:this._buildJieQi(n,i)},getCurrentJieQi:function(){var e=this.getJieQi();return e.length>0?this._buildJieQi(e,this.solar):null},getCurrentJie:function(){var e=this.getJie();return e.length>0?this._buildJieQi(e,this.solar):null},getCurrentQi:function(){var e=this.getQi();return e.length>0?this._buildJieQi(e,this.solar):null},getEightChar:function(){return this._p.eightChar||(this._p.eightChar=m.fromLunar(this)),this._p.eightChar},next:function(e){return this._p.solar.next(e).getLunar()},getYearXun:function(){return d.getXun(this.getYearInGanZhi())},getMonthXun:function(){return d.getXun(this.getMonthInGanZhi())},getDayXun:function(){return d.getXun(this.getDayInGanZhi())},getTimeXun:function(){return d.getXun(this.getTimeInGanZhi())},getYearXunByLiChun:function(){return d.getXun(this.getYearInGanZhiByLiChun())},getYearXunExact:function(){return d.getXun(this.getYearInGanZhiExact())},getMonthXunExact:function(){return d.getXun(this.getMonthInGanZhiExact())},getDayXunExact:function(){return d.getXun(this.getDayInGanZhiExact())},getDayXunExact2:function(){return d.getXun(this.getDayInGanZhiExact2())},getYearXunKong:function(){return d.getXunKong(this.getYearInGanZhi())},getMonthXunKong:function(){return d.getXunKong(this.getMonthInGanZhi())},getDayXunKong:function(){return d.getXunKong(this.getDayInGanZhi())},getTimeXunKong:function(){return d.getXunKong(this.getTimeInGanZhi())},getYearXunKongByLiChun:function(){return d.getXunKong(this.getYearInGanZhiByLiChun())},getYearXunKongExact:function(){return d.getXunKong(this.getYearInGanZhiExact())},getMonthXunKongExact:function(){return d.getXunKong(this.getMonthInGanZhiExact())},getDayXunKongExact:function(){return d.getXunKong(this.getDayInGanZhiExact())},getDayXunKongExact2:function(){return d.getXunKong(this.getDayInGanZhiExact2())},toString:function(){return this.getYearInChinese()+"年"+this.getMonthInChinese()+"月"+this.getDayInChinese()},toFullString:function(){var e=this.toString();e+=" "+this.getYearInGanZhi()+"("+this.getYearShengXiao()+")年",e+=" "+this.getMonthInGanZhi()+"("+this.getMonthShengXiao()+")月",e+=" "+this.getDayInGanZhi()+"("+this.getDayShengXiao()+")日",e+=" "+this.getTimeZhi()+"("+this.getTimeShengXiao()+")时",e+=" 纳音["+this.getYearNaYin()+" "+this.getMonthNaYin()+" "+this.getDayNaYin()+" "+this.getTimeNaYin()+"]",e+=" 星期"+this.getWeekInChinese();var t,n,i=this.getFestivals();for(t=0,n=i.length;t<n;t++)e+=" ("+i[t]+")";var r=this.getOtherFestivals();for(t=0,n=r.length;t<n;t++)e+=" ("+r[t]+")";var o=this.getJieQi();return o.length>0&&(e+=" ["+o+"]"),e+=" "+this.getGong()+"方"+this.getShou(),e+=" 星宿["+this.getXiu()+this.getZheng()+this.getAnimal()+"]("+this.getXiuLuck()+")",e+=" 彭祖百忌["+this.getPengZuGan()+" "+this.getPengZuZhi()+"]",e+=" 喜神方位["+this.getDayPositionXi()+"]("+this.getDayPositionXiDesc()+")",e+=" 阳贵神方位["+this.getDayPositionYangGui()+"]("+this.getDayPositionYangGuiDesc()+")",e+=" 阴贵神方位["+this.getDayPositionYinGui()+"]("+this.getDayPositionYinGuiDesc()+")",e+=" 福神方位["+this.getDayPositionFu()+"]("+this.getDayPositionFuDesc()+")",e+=" 财神方位["+this.getDayPositionCai()+"]("+this.getDayPositionCaiDesc()+")",e+=" 冲["+this.getDayChongDesc()+"]",e+=" 煞["+this.getDaySha()+"]",e},_buildNameAndIndex:function(e,t){return{_p:{name:e,index:t},getName:function(){return this._p.name},setName:function(e){this._p.name=e},getIndex:function(){return this._p.index},setIndex:function(e){this._p.index=e},toString:function(){return this.getName()},toFullString:function(){return this.getName()+"第"+this.getIndex()+"天"}}},getShuJiu:function(){var t=e.fromYmd(this._p.solar.getYear(),this._p.solar.getMonth(),this._p.solar.getDay()),n=this._p.jieQi["DONG_ZHI"],r=e.fromYmd(n.getYear(),n.getMonth(),n.getDay());t<r&&(n=this._p.jieQi["冬至"],r=e.fromYmd(n.getYear(),n.getMonth(),n.getDay()));var o=e.fromYmd(n.getYear(),n.getMonth(),n.getDay());if(o.setDate(o.getDate()+81),t<r||t>=o)return null;var a=Math.floor((t.getTime()-r.getTime())/i);return this._buildNameAndIndex(d.NUMBER[Math.floor(a/9)+1]+"九",a%9+1)},getFu:function(){var t=e.fromYmd(this._p.solar.getYear(),this._p.solar.getMonth(),this._p.solar.getDay()),n=this._p.jieQi["夏至"],r=this._p.jieQi["立秋"],o=e.fromYmd(n.getYear(),n.getMonth(),n.getDay()),a=6-n.getLunar().getDayGanIndex();if(a<0&&(a+=10),a+=20,o.setDate(o.getDate()+a),t<o)return null;var s=Math.floor((t.getTime()-o.getTime())/i);if(s<10)return this._buildNameAndIndex("初伏",s+1);if(o.setDate(o.getDate()+10),s=Math.floor((t.getTime()-o.getTime())/i),s<10)return this._buildNameAndIndex("中伏",s+1);o.setDate(o.getDate()+10);var l=e.fromYmd(r.getYear(),r.getMonth(),r.getDay());if(s=Math.floor((t.getTime()-o.getTime())/i),l<=o){if(s<10)return this._buildNameAndIndex("末伏",s+1)}else{if(s<10)return this._buildNameAndIndex("中伏",s+11);if(o.setDate(o.getDate()+10),s=Math.floor((t.getTime()-o.getTime())/i),s<10)return this._buildNameAndIndex("末伏",s+1)}return null},getLiuYao:function(){return d.LIU_YAO[(Math.abs(this._p.month)+this._p.day-2)%6]},getWuHou:function(){for(var t=this.getPrevJieQi(),r=t.getName(),o=0,a=0,s=n.JIE_QI.length;a<s;a++)if(r===n.JIE_QI[a]){o=a;break}var l=e.fromYmd(this._p.solar.getYear(),this._p.solar.getMonth(),this._p.solar.getDay()),u=t.getSolar(),c=e.fromYmd(u.getYear(),u.getMonth(),u.getDay()),h=Math.floor((l.getTime()-c.getTime())/i);return d.WU_HOU[(3*o+Math.floor(h/5))%d.WU_HOU.length]}}};return{JIE_QI:["冬至","小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪"],JIE_QI_IN_USE:["DA_XUE","冬至","小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","DONG_ZHI","XIAO_HAN","DA_HAN","LI_CHUN","YU_SHUI","JING_ZHE"],fromYmdHms:function(e,t,n,i,r,o){return v(e,t,n,i,r,o)},fromYmd:function(e,t,n){return v(e,t,n,0,0,0)},fromDate:function(e){return g(e)}}}(),i=function(){var n=function(e,t){return i(e.getFullYear(),e.getMonth()+1,e.getDate(),t)},i=function(r,o,a,s){return{_p:{year:r,month:o,day:a,start:s,calendar:e.fromYmd(r,o,a)},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},getDay:function(){return this._p.day},getStart:function(){return this._p.start},getIndex:function(){var t=e.fromYmd(this._p.year,this._p.month,1),n=t.getDay();return 0===n&&(n=7),Math.ceil((this._p.day+n-this._p.start)/7)},next:function(t,r){if(0===t)return i(this._p.year,this._p.month,this._p.day,this._p.start);var o;if(r){var a=t;o=e.fromYmd(this._p.year,this._p.month,this._p.day);var s=n(o,this._p.start),l=this._p.month,u=a>0;while(0!==a){o.setDate(o.getDate()+(u?7:-7)),s=n(o,this._p.start);var c=s.getMonth();if(l!==c){var d=s.getIndex();if(u)if(1===d){var f=s.getFirstDay();s=i(f.getYear(),f.getMonth(),f.getDay(),this._p.start),c=s.getMonth()}else o=e.fromYmd(s.getYear(),s.getMonth(),1),s=n(o,this._p.start);else{var p=h.getWeeksOfMonth(s.getYear(),s.getMonth(),this._p.start);if(p===d){var m=s.getFirstDay().next(6);s=i(m.getYear(),m.getMonth(),m.getDay(),this._p.start),c=s.getMonth()}else o=e.fromYmd(s.getYear(),s.getMonth(),h.getDaysOfMonth(s.getYear(),s.getMonth())),s=n(o,this._p.start)}l=c}a-=u?1:-1}return s}return o=e.fromYmd(this._p.year,this._p.month,this._p.day),o.setDate(o.getDate()+7*t),n(o,this._p.start)},getFirstDay:function(){var n=e.fromYmd(this._p.year,this._p.month,this._p.day),i=n.getDay()-this._p.start;return i<0&&(i+=7),n.setDate(n.getDate()-i),t.fromDate(n)},getFirstDayInMonth:function(){for(var e=0,t=this.getDays(),n=0;n<t.length;n++)if(this._p.month===t[n].getMonth()){e=n;break}return t[e]},getDays:function(){var e=this.getFirstDay(),t=[];t.push(e);for(var n=1;n<7;n++)t.push(e.next(n));return t},getDaysInMonth:function(){for(var e=this.getDays(),t=[],n=0;n<e.length;n++){var i=e[n];this._p.month===i.getMonth()&&t.push(i)}return t},toString:function(){return this.getYear()+"."+this.getMonth()+"."+this.getIndex()},toFullString:function(){return this.getYear()+"年"+this.getMonth()+"月第"+this.getIndex()+"周"}}};return{fromYmd:function(e,t,n,r){return i(e,t,n,r)},fromDate:function(e,t){return n(e,t)}}}(),r=function(){var n=function(e){return r(e.getFullYear(),e.getMonth()+1)},r=function(r,o){return{_p:{year:r,month:o,calendar:e.fromYmd(r,o,1)},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},next:function(t){var i=e.fromYmd(this._p.year,this._p.month,1);return i.setMonth(i.getMonth()+t),n(i)},getDays:function(){var e=[],n=t.fromYmd(this._p.year,this._p.month,1);e.push(n);for(var i=h.getDaysOfMonth(this._p.year,this._p.month),r=1;r<i;r++)e.push(n.next(r));return e},getWeeks:function(e){for(var t=[],n=h.getWeeksOfMonth(this._p.year,this._p.month,e),r=0;r<n;r++)t.push(i.fromYmd(this._p.year,this._p.month,1+7*r,e));return t},toString:function(){return this.getYear()+"-"+this.getMonth()},toFullString:function(){return this.getYear()+"年"+this.getMonth()+"月"}}};return{fromYm:function(e,t){return r(e,t)},fromDate:function(e){return n(e)}}}(),o=function(){var t=function(e){return n(e.getFullYear(),e.getMonth()+1)},n=function(i,o){return{_p:{year:i,month:o,calendar:e.fromYmd(i,o,1)},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},getIndex:function(){return Math.ceil(this._p.month/3)},next:function(i){if(0===i)return n(this._p.year,this._p.month);var r=e.fromYmd(this._p.year,this._p.month,1);return r.setMonth(r.getMonth()+3*i),t(r)},getMonths:function(){for(var e=[],t=this.getIndex()-1,n=0;n<3;n++)e.push(r.fromYm(this._p.year,3*t+n+1));return e},toString:function(){return this.getYear()+"."+this.getIndex()},toFullString:function(){return this.getYear()+"年"+this.getIndex()+"季度"}}};return{fromYm:function(e,t){return n(e,t)},fromDate:function(e){return t(e)}}}(),a=function(){var t=function(e){return n(e.getFullYear(),e.getMonth()+1)},n=function(i,o){return{_p:{year:i,month:o,calendar:e.fromYmd(i,o,1)},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},getIndex:function(){return Math.ceil(this._p.month/6)},next:function(i){if(0===i)return n(this._p.year,this._p.month);var r=e.fromYmd(this._p.year,this._p.month,1);return r.setMonth(r.getMonth()+6*i),t(r)},getMonths:function(){for(var e=[],t=this.getIndex()-1,n=0;n<6;n++)e.push(r.fromYm(this._p.year,6*t+n+1));return e},toString:function(){return this.getYear()+"."+this.getIndex()},toFullString:function(){return this.getYear()+"年"+["上","下"][this.getIndex()-1]+"半年"}}};return{fromYm:function(e,t){return n(e,t)},fromDate:function(e){return t(e)}}}(),s=function(){var t=function(e){return n(e.getFullYear())},n=function(n){return{_p:{year:n,calendar:e.fromYmd(n,1,1)},getYear:function(){return this._p.year},next:function(n){var i=e.fromYmd(this._p.year,1,1);return i.setFullYear(i.getFullYear()+n),t(i)},getMonths:function(){var e=[],t=r.fromYm(this._p.year,1);e.push(t);for(var n=1;n<12;n++)e.push(t.next(n));return e},toString:function(){return this.getYear()+""},toFullString:function(){return this.getYear()+"年"}}};return{fromYear:function(e){return n(e)},fromDate:function(e){return t(e)}}}(),l=function(){var e=[75,94,170,238,265,322,389,469,553,583,610,678,735,754,773,849,887,936,1050,1069,1126,1145,1164,1183,1259,1278,1308,1373,1403,1441,1460,1498,1555,1593,1612,1631,1642,2033,2128,2147,2242,2614,2728,2910,3062,3244,3339,3616,3711,3730,3825,4007,4159,4197,4322,4341,4379,4417,4531,4599,4694,4713,4789,4808,4971,5085,5104,5161,5180,5199,5294,5305,5476,5677,5696,5772,5791,5848,5886,6049,6068,6144,6163,6258,6402,6440,6497,6516,6630,6641,6660,6679,6736,6774,6850,6869,6899,6918,6994,7013,7032,7051,7070,7089,7108,7127,7146,7222,7271,7290,7309,7366,7385,7404,7442,7461,7480,7491,7499,7594,7624,7643,7662,7681,7719,7738,7814,7863,7882,7901,7939,7958,7977,7996,8034,8053,8072,8091,8121,8159,8186,8216,8235,8254,8273,8311,8330,8341,8349,8368,8444,8463,8474,8493,8531,8569,8588,8626,8664,8683,8694,8702,8713,8721,8751,8789,8808,8816,8827,8846,8884,8903,8922,8941,8971,9036,9066,9085,9104,9123,9142,9161,9180,9199,9218,9256,9294,9313,9324,9343,9362,9381,9419,9438,9476,9514,9533,9544,9552,9563,9571,9582,9601,9639,9658,9666,9677,9696,9734,9753,9772,9791,9802,9821,9886,9897,9916,9935,9954,9973,9992],i=[37,56,113,132,151,189,208,227,246,284,303,341,360,379,417,436,458,477,496,515,534,572,591,629,648,667,697,716,792,811,830,868,906,925,944,963,982,1001,1020,1039,1058,1088,1153,1202,1221,1240,1297,1335,1392,1411,1422,1430,1517,1525,1536,1574,3358,3472,3806,3988,4751,4941,5066,5123,5275,5343,5438,5457,5495,5533,5552,5715,5810,5829,5905,5924,6421,6535,6793,6812,6888,6907,7002,7184,7260,7279,7374,7556,7746,7757,7776,7833,7852,7871,7966,8015,8110,8129,8148,8224,8243,8338,8406,8425,8482,8501,8520,8558,8596,8607,8615,8645,8740,8778,8835,8865,8930,8960,8979,8998,9017,9055,9074,9093,9112,9150,9188,9237,9275,9332,9351,9370,9408,9427,9446,9457,9465,9495,9560,9590,9628,9647,9685,9715,9742,9780,9810,9818,9829,9848,9867,9905,9924,9943,9962,1e4],r={},o={},a=function(){var t,n;for(t=0,n=e.length;t<n;t++)r["_"+e[t]]=13;for(t=0,n=i.length;t<n;t++)r["_"+i[t]]=14};a();var s=function(e){return{_p:{year:e,months:[],jieQiJulianDays:[]},getYear:function(){return this._p.year},getJieQiJulianDays:function(){return this._p.jieQiJulianDays},getMonths:function(){return this._p.months},getMonth:function(e){for(var t=0,n=this._p.months.length;t<n;t++){var i=this._p.months[t];if(i.getYear()==this._p.year&&i.getMonth()==e)return i}return null},getLeapMonth:function(){for(var e=0,t=this._p.months.length;e<t;e++){var n=this._p.months[e];if(n.getYear()==this._p.year&&n.isLeap())return Math.abs(n.getMonth())}return 0},toString:function(){return this.getYear()+""},toFullString:function(){return this.getYear()+"年"},_compute:function(){this._p.months=[],this._p.jieQiJulianDays=[];var e,i,o=[],a=[],s=[],l=this._p.year,h=l-2e3;for(e=0,i=n.JIE_QI_IN_USE.length;e<i;e++){var d=36525*c.saLonT((h+15*(17+e)/360)*c.PI_2);d+=c.ONE_THIRD-c.dtT(d),this._p.jieQiJulianDays.push(d+t.J2000),e>0&&e<26&&(o[e-1]=Math.round(d))}var f=c.calcShuo(o[0]);for(f>o[0]&&(f-=29.5306),e=0;e<16;e++)a.push(c.calcShuo(f+29.5306*e));for(e=0;e<15;e++)s.push(Math.floor(a[e+1]-a[e]));var p=r["_"+l];if(!p&&(p=-1,a[13]<=o[24])){e=1;while(a[e+1]>o[2*e]&&e<13)e++;p=e}var m=l-1,g=r["_"+m];g=g?g-12:-1;var v=this._p.year-1,b=11;for(e=0,i=s.length;e<i;e++){var y=b,C=!1;(v==l&&e==p||v==m&&e==g)&&(y=-y),(v==l&&e+1==p||v==m&&e+1==g)&&(C=!0),this._p.months.push(u._(v,y,s[e],a[e]+t.J2000)),C||b++,13==b&&(b=1,v++)}return this}}._compute()},l=function(e){var t="_"+e,n=o[t];return n||(n=s(e),o[t]=n),n};return{fromYear:function(e){return l(e)}}}(),u=function(){var e=function(e,t){return l.fromYear(e).getMonth(t)},t=function(e,t,n,i){return{_p:{year:e,month:t,dayCount:n,firstJulianDay:i},getYear:function(){return this._p.year},getMonth:function(){return this._p.month},getDayCount:function(){return this._p.dayCount},getFirstJulianDay:function(){return this._p.firstJulianDay},isLeap:function(){return this._p.month<0},toString:function(){return this.getYear()+"年"+d.MONTH[Math.abs(this.getMonth())]+"月("+this.getDayCount()+")天"}}};return{fromYm:function(t,n){return e(t,n)},_:function(e,n,i,r){return t(e,n,i,r)}}}(),c=function(){return{PI_2:2*Math.PI,ONE_THIRD:1/3,SECOND_PER_DAY:86400,SECOND_PER_RAD:648e3/Math.PI,NUT_B:[2.1824,-33.75705,36e-6,-1720,920,3.5069,1256.66393,11e-6,-132,57,1.3375,16799.4182,-51e-6,-23,10,4.3649,-67.5141,72e-6,21,-9,.04,-628.302,0,-14,0,2.36,8328.691,0,7,0,3.46,1884.966,0,-5,2,5.44,16833.175,0,-4,2,3.69,25128.11,0,-3,0,3.55,628.362,0,2,0],DT_AT:[-4e3,108371.7,-13036.8,392,0,-500,17201,-627.82,16.17,-.3413,-150,12200.6,-346.41,5.403,-.1593,150,9113.8,-328.13,-1.647,.0377,500,5707.5,-391.41,.915,.3145,900,2203.4,-283.45,13.034,-.1778,1300,490.1,-57.35,2.085,-.0072,1600,120,-9.81,-1.532,.1403,1700,10.2,-.91,.51,-.037,1800,13.4,-.72,.202,-.0193,1830,7.8,-1.81,.416,-.0247,1860,8.3,-.13,-.406,.0292,1880,-5.4,.32,-.183,.0173,1900,-2.3,2.06,.169,-.0135,1920,21.2,1.69,-.304,.0167,1940,24.2,1.22,-.064,.0031,1960,33.2,.51,.231,-.0109,1980,51,1.29,-.026,.0032,2e3,63.87,.1,0,0,2005,64.7,.4,0,0,2015,69],XL0:[1e10,20,578,920,1100,1124,1136,1148,1217,1226,1229,1229,1229,1229,1937,2363,2618,2633,2660,2666,17534704567,0,0,334165646,4.669256804,6283.075849991,3489428,4.6261024,12566.1517,349706,2.744118,5753.384885,341757,2.828866,3.523118,313590,3.62767,77713.771468,267622,4.418084,7860.419392,234269,6.135162,3930.209696,132429,.742464,11506.76977,127317,2.037097,529.690965,119917,1.109629,1577.343542,99025,5.23268,5884.92685,90186,2.04505,26.29832,85722,3.50849,398.149,77979,1.17883,5223.69392,75314,2.53339,5507.55324,50526,4.58293,18849.22755,49238,4.20507,775.52261,35666,2.91954,.06731,31709,5.84902,11790.62909,28413,1.89869,796.29801,27104,.31489,10977.0788,24281,.34481,5486.77784,20616,4.80647,2544.31442,20539,1.86948,5573.1428,20226,2.45768,6069.77675,15552,.83306,213.2991,13221,3.41118,2942.46342,12618,1.08303,20.7754,11513,.64545,.98032,10285,.636,4694.00295,10190,.97569,15720.83878,10172,4.2668,7.11355,9921,6.2099,2146.1654,9761,.681,155.4204,8580,5.9832,161000.6857,8513,1.2987,6275.9623,8471,3.6708,71430.6956,7964,1.8079,17260.1547,7876,3.037,12036.4607,7465,1.7551,5088.6288,7387,3.5032,3154.6871,7355,4.6793,801.8209,6963,.833,9437.7629,6245,3.9776,8827.3903,6115,1.8184,7084.8968,5696,2.7843,6286.599,5612,4.3869,14143.4952,5558,3.4701,6279.5527,5199,.1891,12139.5535,5161,1.3328,1748.0164,5115,.2831,5856.4777,4900,.4874,1194.447,4104,5.3682,8429.2413,4094,2.3985,19651.0485,3920,6.1683,10447.3878,3677,6.0413,10213.2855,3660,2.5696,1059.3819,3595,1.7088,2352.8662,3557,1.776,6812.7668,3329,.5931,17789.8456,3041,.4429,83996.8473,3005,2.7398,1349.8674,2535,3.1647,4690.4798,2474,.2148,3.5904,2366,.4847,8031.0923,2357,2.0653,3340.6124,2282,5.222,4705.7323,2189,5.5559,553.5694,2142,1.4256,16730.4637,2109,4.1483,951.7184,2030,.3713,283.8593,1992,5.2221,12168.0027,1986,5.7747,6309.3742,1912,3.8222,23581.2582,1889,5.3863,149854.4001,1790,2.2149,13367.9726,1748,4.5605,135.0651,1622,5.9884,11769.8537,1508,4.1957,6256.7775,1442,4.1932,242.7286,1435,3.7236,38.0277,1397,4.4014,6681.2249,1362,1.8893,7632.9433,1250,1.1305,5.5229,1205,2.6223,955