@hcd-bsas/list-documents-adapter 0.0.8 → 0.0.9
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/ListDocuments.min.js +1 -1
- package/package.json +39 -39
- package/readme.md +116 -116
- package/test_javascript.html +40 -40
- package/webpack.config.js +51 -51
|
@@ -236,7 +236,7 @@ var t;e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
236
236
|
var t;e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1200)return"上午";else if(r===1200)return"中午";else if(r<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6797))},9503:function(e,t,n){!function(e){"use strict";//! moment.js locale configuration
|
|
237
237
|
var t;e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1130)return"上午";else if(r<1230)return"中午";else if(r<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6797))},8080:function(e,t,n){!function(e){"use strict";//! moment.js locale configuration
|
|
238
238
|
var t;e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){if(e===12)e=0;if(t==="凌晨"||t==="早上"||t==="上午")return e;else if(t==="中午")return e>=11?e:e+12;else if(t==="下午"||t==="晚上")return e+12},meridiem:function(e,t,n){var r=e*100+t;if(r<600)return"凌晨";else if(r<900)return"早上";else if(r<1130)return"上午";else if(r<1230)return"中午";else if(r<1800)return"下午";else return"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(6797))},6797:function(da,e,ua){da=ua.nmd(da),ua(1703),da.exports=function(){"use strict";var C,N;function c(){return C.apply(null,arguments)}function R(e){C=e}function a(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function F(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function I(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;else{var t;for(t in e)if(l(e,t))return false;return true}}function o(e){return e===void 0}function d(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function W(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function B(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function z(e,t){for(var n in t)if(l(t,n))e[n]=t[n];if(l(t,"toString"))e.toString=t.toString;if(l(t,"valueOf"))e.valueOf=t.valueOf;return e}function u(e,t,n,r){return Zn(e,t,n,r,true).utc()}function V(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function m(e){if(e._pf==null)e._pf=V();return e._pf}if(Array.prototype.some)N=Array.prototype.some;else N=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return true;return false};function U(e){if(e._isValid==null){var t=m(e),n=N.call(t.parsedDateParts,function(e){return e!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict)r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined;if(Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function J(e){var t=u(NaN);if(e!=null)z(m(t),e);else m(t).userInvalidated=true;return t}var q=c.momentProperties=[],$=false;function G(e,t){var n,r,s,i=q.length;if(!o(t._isAMomentObject))e._isAMomentObject=t._isAMomentObject;if(!o(t._i))e._i=t._i;if(!o(t._f))e._f=t._f;if(!o(t._l))e._l=t._l;if(!o(t._strict))e._strict=t._strict;if(!o(t._tzm))e._tzm=t._tzm;if(!o(t._isUTC))e._isUTC=t._isUTC;if(!o(t._offset))e._offset=t._offset;if(!o(t._pf))e._pf=m(t);if(!o(t._locale))e._locale=t._locale;if(i>0)for(n=0;n<i;n++){r=q[n];s=t[r];if(!o(s))e[r]=s}return e}function K(e){G(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid())this._d=new Date(NaN);if($===false){$=true;c.updateOffset(this);$=false}}function _(e){return e instanceof K||e!=null&&e._isAMomentObject!=null}function Q(e){if(c.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn)console.warn("Deprecation warning: "+e)}function e(i,a){var o=true;return z(function(){if(c.deprecationHandler!=null)c.deprecationHandler(null,i);if(o){var e=[],t,n,r,s=arguments.length;for(n=0;n<s;n++){t="";if(typeof arguments[n]==="object"){t+="\n["+n+"] ";for(r in arguments[0])if(l(arguments[0],r))t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}Q(i+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);o=false}return a.apply(this,arguments)},a)}var Z={},X;function ee(e,t){if(c.deprecationHandler!=null)c.deprecationHandler(e,t);if(!Z[e]){Q(t);Z[e]=true}}function f(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function te(e){var t,n;for(n in e)if(l(e,n)){t=e[n];if(f(t))this[n]=t;else this["_"+n]=t}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ne(e,t){var n=z({},e),r;for(r in t)if(l(t,r))if(F(e[r])&&F(t[r])){n[r]={};z(n[r],e[r]);z(n[r],t[r])}else if(t[r]!=null)n[r]=t[r];else delete n[r];for(r in e)if(l(e,r)&&!l(t,r)&&F(e[r]))n[r]=z({},n[r]);return n}function re(e){if(e!=null)this.set(e)}if(c.suppressDeprecationWarnings=false,c.deprecationHandler=null,Object.keys)X=Object.keys;else X=function(e){var t,n=[];for(t in e)if(l(e,t))n.push(t);return n};var se={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ie(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return f(r)?r.call(t,n):r}function i(e,t,n){var r=""+Math.abs(e),s=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var ae=/(\[[^\[]*\])|(\\)?([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,oe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,le={},de={};function r(e,t,n,r){var s=r;if(typeof r==="string")s=function(){return this[r]()};if(e)de[e]=s;if(t)de[t[0]]=function(){return i(s.apply(this,arguments),t[1],t[2])};if(n)de[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)}}function ue(e){if(e.match(/\[[\s\S]/))return e.replace(/^\[|\]$/g,"");return e.replace(/\\/g,"")}function ce(r){var s=r.match(ae),e,i;for(e=0,i=s.length;e<i;e++)if(de[s[e]])s[e]=de[s[e]];else s[e]=ue(s[e]);return function(e){var t="",n;for(n=0;n<i;n++)t+=f(s[n])?s[n].call(e,r):s[n];return t}}function me(e,t){if(!e.isValid())return e.localeData().invalidDate();t=_e(t,e.localeData());le[t]=le[t]||ce(t);return le[t](e)}function _e(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}oe.lastIndex=0;while(n>=0&&oe.test(e)){e=e.replace(oe,r);oe.lastIndex=0;n-=1}return e}var fe={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 he(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];if(t||!n)return t;this._longDateFormat[e]=n.match(ae).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd")return e.slice(1);return e}).join("");return this._longDateFormat[e]}var pe="Invalid date";function ye(){return this._invalidDate}var ge="%d",Me=/\d{1,2}/;function ve(e){return this._ordinal.replace("%d",e)}var Le={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 be(e,t,n,r){var s=this._relativeTime[n];return f(s)?s(e,t,n,r):s.replace(/%d/i,e)}function Ye(e,t){var n=this._relativeTime[e>0?"future":"past"];return f(n)?n(t):n.replace(/%s/i,t)}var we={};function t(e,t){var n=e.toLowerCase();we[n]=we[n+"s"]=we[t]=e}function h(e){return typeof e==="string"?we[e]||we[e.toLowerCase()]:undefined}function ke(e){var t={},n,r;for(r in e)if(l(e,r)){n=h(r);if(n)t[n]=e[r]}return t}var Te={};function n(e,t){Te[e]=t}function De(e){var t=[],n;for(n in e)if(l(e,n))t.push({unit:n,priority:Te[n]});t.sort(function(e,t){return e.priority-t.priority});return t}function Se(e){return e%4===0&&e%100!==0||e%400===0}function p(e){if(e<0)return Math.ceil(e)||0;else return Math.floor(e)}function y(e){var t=+e,n=0;if(t!==0&&isFinite(t))n=p(t);return n}function Ee(t,n){return function(e){if(e!=null){Oe(this,t,e);c.updateOffset(this,n);return this}else return xe(this,t)}}function xe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oe(e,t,n){if(e.isValid()&&!isNaN(n))if(t==="FullYear"&&Se(e.year())&&e.month()===1&&e.date()===29){n=y(n);e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),it(n,e.month()))}else e._d["set"+(e._isUTC?"UTC":"")+t](n)}function je(e){e=h(e);if(f(this[e]))return this[e]();return this}function Ae(e,t){if(typeof e==="object"){e=ke(e);var n=De(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else{e=h(e);if(f(this[e]))return this[e](t)}return this}var He=/\d/,s=/\d\d/,Pe=/\d{3}/,Ce=/\d{4}/,Ne=/[+-]?\d{6}/,g=/\d\d?/,Re=/\d\d\d\d?/,Fe=/\d\d\d\d\d\d?/,Ie=/\d{1,3}/,We=/\d{1,4}/,Be=/[+-]?\d{1,6}/,ze=/\d+/,Ve=/[+-]?\d+/,Ue=/Z|[+-]\d\d:?\d\d/gi,Je=/Z|[+-]\d\d(?::?\d\d)?/gi,qe=/[+-]?\d+(\.\d{1,3})?/,$e=/[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,Ge;function M(e,n,r){Ge[e]=f(n)?n:function(e,t){return e&&r?r:n}}function Ke(e,t){if(!l(Ge,e))return new RegExp(Qe(e));return Ge[e](t._strict,t._locale)}function Qe(e){return v(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,s){return t||n||r||s}))}function v(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ge={},Ze={};function L(e,n){var t,r=n,s;if(typeof e==="string")e=[e];if(d(n))r=function(e,t){t[n]=y(e)};s=e.length;for(t=0;t<s;t++)Ze[e[t]]=r}function Xe(e,s){L(e,function(e,t,n,r){n._w=n._w||{};s(e,n._w,n,r)})}function et(e,t,n){if(t!=null&&l(Ze,e))Ze[e](t,n._a,n,e)}var b=0,Y=1,w=2,k=3,T=4,D=5,tt=6,nt=7,rt=8,S;function st(e,t){return(e%t+t)%t}if(Array.prototype.indexOf)S=Array.prototype.indexOf;else S=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function it(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=st(t,12);e+=(t-n)/12;return n===1?Se(e)?29:28:31-n%7%2}r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),M("M",g),M("MM",g,s),M("MMM",function(e,t){return t.monthsShortRegex(e)}),M("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[Y]=y(e)-1}),L(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);if(s!=null)t[Y]=s;else m(n).invalidMonth=e});var at="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,dt=$e,ut=$e;function ct(e,t){if(!e)return a(this._months)?this._months:this._months["standalone"];return a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||lt).test(t)?"format":"standalone"][e.month()]}function mt(e,t){if(!e)return a(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"];return a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[lt.test(t)?"format":"standalone"][e.month()]}function _t(e,t,n){var r,s,i,a=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(r=0;r<12;++r){i=u([2e3,r]);this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase();this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase()}}if(n)if(t==="MMM"){s=S.call(this._shortMonthsParse,a);return s!==-1?s:null}else{s=S.call(this._longMonthsParse,a);return s!==-1?s:null}else if(t==="MMM"){s=S.call(this._shortMonthsParse,a);if(s!==-1)return s;s=S.call(this._longMonthsParse,a);return s!==-1?s:null}else{s=S.call(this._longMonthsParse,a);if(s!==-1)return s;s=S.call(this._shortMonthsParse,a);return s!==-1?s:null}}function ft(e,t,n){var r,s,i;if(this._monthsParseExact)return _t.call(this,e,t,n);if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(r=0;r<12;r++){s=u([2e3,r]);if(n&&!this._longMonthsParse[r]){this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i");this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")}if(!n&&!this._monthsParse[r]){i="^"+this.months(s,"")+"|^"+this.monthsShort(s,"");this._monthsParse[r]=new RegExp(i.replace(".",""),"i")}if(n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;else if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;else if(!n&&this._monthsParse[r].test(e))return r}}function ht(e,t){var n;if(!e.isValid())return e;if(typeof t==="string")if(/^\d+$/.test(t))t=y(t);else{t=e.localeData().monthsParse(t);if(!d(t))return e}n=Math.min(e.date(),it(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n);return e}function pt(e){if(e!=null){ht(this,e);c.updateOffset(this,true);return this}else return xe(this,"Month")}function yt(){return it(this.year(),this.month())}function gt(e){if(this._monthsParseExact){if(!l(this,"_monthsRegex"))vt.call(this);if(e)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!l(this,"_monthsShortRegex"))this._monthsShortRegex=dt;return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function Mt(e){if(this._monthsParseExact){if(!l(this,"_monthsRegex"))vt.call(this);if(e)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!l(this,"_monthsRegex"))this._monthsRegex=ut;return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function vt(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],s,i;for(s=0;s<12;s++){i=u([2e3,s]);t.push(this.monthsShort(i,""));n.push(this.months(i,""));r.push(this.months(i,""));r.push(this.monthsShort(i,""))}t.sort(e);n.sort(e);r.sort(e);for(s=0;s<12;s++){t[s]=v(t[s]);n[s]=v(n[s])}for(s=0;s<24;s++)r[s]=v(r[s]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Lt(e){return Se(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,true],0,"year"),t("year","y"),n("year",1),M("Y",Ve),M("YY",g,s),M("YYYY",We,Ce),M("YYYYY",Be,Ne),M("YYYYYY",Be,Ne),L(["YYYYY","YYYYYY"],b),L("YYYY",function(e,t){t[b]=e.length===2?c.parseTwoDigitYear(e):y(e)}),L("YY",function(e,t){t[b]=c.parseTwoDigitYear(e)}),L("Y",function(e,t){t[b]=parseInt(e,10)}),c.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var bt=Ee("FullYear",true);function Yt(){return Se(this.year())}function wt(e,t,n,r,s,i,a){var o;if(e<100&&e>=0){o=new Date(e+400,t,n,r,s,i,a);if(isFinite(o.getFullYear()))o.setFullYear(e)}else o=new Date(e,t,n,r,s,i,a);return o}function kt(e){var t,n;if(e<100&&e>=0){n=Array.prototype.slice.call(arguments);n[0]=e+400;t=new Date(Date.UTC.apply(null,n));if(isFinite(t.getUTCFullYear()))t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Tt(e,t,n){var r=7+t-n,s=(7+kt(e,0,r).getUTCDay()-t)%7;return-s+r-1}function Dt(e,t,n,r,s){var i=(7+n-r)%7,a=Tt(e,r,s),o=1+7*(t-1)+i+a,l,d;if(o<=0){l=e-1;d=Lt(l)+o}else if(o>Lt(e)){l=e+1;d=o-Lt(e)}else{l=e;d=o}return{year:l,dayOfYear:d}}function St(e,t,n){var r=Tt(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;if(s<1){a=e.year()-1;i=s+E(a,t,n)}else if(s>E(e.year(),t,n)){i=s-E(e.year(),t,n);a=e.year()+1}else{a=e.year();i=s}return{week:i,year:a}}function E(e,t,n){var r=Tt(e,t,n),s=Tt(e+1,t,n);return(Lt(e)-r+s)/7}function Et(e){return St(e,this._week.dow,this._week.doy).week}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),M("w",g),M("ww",g,s),M("W",g),M("WW",g,s),Xe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=y(e)});var xt={dow:0,doy:6};function Ot(){return this._week.dow}function jt(){return this._week.doy}function At(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ht(e){var t=St(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Pt(e,t){if(typeof e!=="string")return e;if(!isNaN(e))return parseInt(e,10);e=t.weekdaysParse(e);if(typeof e==="number")return e;return null}function Ct(e,t){if(typeof e==="string")return t.weekdaysParse(e)%7||7;return isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),M("d",g),M("e",g),M("E",g),M("dd",function(e,t){return t.weekdaysMinRegex(e)}),M("ddd",function(e,t){return t.weekdaysShortRegex(e)}),M("dddd",function(e,t){return t.weekdaysRegex(e)}),Xe(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);if(s!=null)t.d=s;else m(n).invalidWeekday=e}),Xe(["d","e","E"],function(e,t,n,r){t[r]=y(e)});var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wt=$e,Bt=$e,zt=$e;function Vt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Nt(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return e===true?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Jt(e){return e===true?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qt(e,t,n){var r,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(r=0;r<7;++r){i=u([2e3,1]).day(r);this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase();this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase();this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase()}}if(n)if(t==="dddd"){s=S.call(this._weekdaysParse,a);return s!==-1?s:null}else if(t==="ddd"){s=S.call(this._shortWeekdaysParse,a);return s!==-1?s:null}else{s=S.call(this._minWeekdaysParse,a);return s!==-1?s:null}else if(t==="dddd"){s=S.call(this._weekdaysParse,a);if(s!==-1)return s;s=S.call(this._shortWeekdaysParse,a);if(s!==-1)return s;s=S.call(this._minWeekdaysParse,a);return s!==-1?s:null}else if(t==="ddd"){s=S.call(this._shortWeekdaysParse,a);if(s!==-1)return s;s=S.call(this._weekdaysParse,a);if(s!==-1)return s;s=S.call(this._minWeekdaysParse,a);return s!==-1?s:null}else{s=S.call(this._minWeekdaysParse,a);if(s!==-1)return s;s=S.call(this._weekdaysParse,a);if(s!==-1)return s;s=S.call(this._shortWeekdaysParse,a);return s!==-1?s:null}}function $t(e,t,n){var r,s,i;if(this._weekdaysParseExact)return qt.call(this,e,t,n);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(r=0;r<7;r++){s=u([2e3,1]).day(r);if(n&&!this._fullWeekdaysParse[r]){this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[r]){i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,"");this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")}if(n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;else if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;else if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;else if(!n&&this._weekdaysParse[r].test(e))return r}}function Gt(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Pt(e,this.localeData());return this.add(e-t,"d")}else return t}function Kt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Qt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Zt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex"))tn.call(this);if(e)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!l(this,"_weekdaysRegex"))this._weekdaysRegex=Wt;return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function Xt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex"))tn.call(this);if(e)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!l(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=Bt;return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function en(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex"))tn.call(this);if(e)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!l(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=zt;return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function tn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],s=[],i,a,o,l,d;for(i=0;i<7;i++){a=u([2e3,1]).day(i);o=v(this.weekdaysMin(a,""));l=v(this.weekdaysShort(a,""));d=v(this.weekdays(a,""));t.push(o);n.push(l);r.push(d);s.push(o);s.push(l);s.push(d)}t.sort(e);n.sort(e);r.sort(e);s.sort(e);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function nn(){return this.hours()%12||12}function rn(){return this.hours()||24}function sn(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function an(e,t){return t._meridiemParse}function on(e){return(e+"").toLowerCase().charAt(0)==="p"}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,nn),r("k",["kk",2],0,rn),r("hmm",0,0,function(){return""+nn.apply(this)+i(this.minutes(),2)}),r("hmmss",0,0,function(){return""+nn.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),sn("a",true),sn("A",false),t("hour","h"),n("hour",13),M("a",an),M("A",an),M("H",g),M("h",g),M("k",g),M("HH",g,s),M("hh",g,s),M("kk",g,s),M("hmm",Re),M("hmmss",Fe),M("Hmm",Re),M("Hmmss",Fe),L(["H","HH"],k),L(["k","kk"],function(e,t,n){var r=y(e);t[k]=r===24?0:r}),L(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e);n._meridiem=e}),L(["h","hh"],function(e,t,n){t[k]=y(e);m(n).bigHour=true}),L("hmm",function(e,t,n){var r=e.length-2;t[k]=y(e.substr(0,r));t[T]=y(e.substr(r));m(n).bigHour=true}),L("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[k]=y(e.substr(0,r));t[T]=y(e.substr(r,2));t[D]=y(e.substr(s));m(n).bigHour=true}),L("Hmm",function(e,t,n){var r=e.length-2;t[k]=y(e.substr(0,r));t[T]=y(e.substr(r))}),L("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[k]=y(e.substr(0,r));t[T]=y(e.substr(r,2));t[D]=y(e.substr(s))});var ln,dn=Ee("Hours",true);function un(e,t,n){if(e>11)return n?"pm":"PM";else return n?"am":"AM"}var cn={calendar:se,longDateFormat:fe,invalidDate:pe,ordinal:ge,dayOfMonthOrdinalParse:Me,relativeTime:Le,months:at,monthsShort:ot,week:xt,weekdays:Rt,weekdaysMin:It,weekdaysShort:Ft,meridiemParse:/[ap]\.?m?\.?/i},x={},mn={},_n;function fn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function pn(e){var t=0,n,r,s,i;while(t<e.length){i=hn(e[t]).split("-");n=i.length;r=hn(e[t+1]);r=r?r.split("-"):null;while(n>0){s=gn(i.slice(0,n).join("-"));if(s)return s;if(r&&r.length>=n&&fn(i,r)>=n-1)break;n--}t++}return _n}function yn(e){return e.match("^[^/\\\\]*$")!=null}function gn(t){var e=null,n;if(x[t]===undefined&&"object"!=="undefined"&&da&&da.exports&&yn(t))try{e=_n._abbr;n=undefined;ua(6700)("./"+t);Mn(e)}catch(e){x[t]=null}return x[t]}function Mn(e,t){var n;if(e){if(o(t))n=bn(e);else n=vn(e,t);if(n)_n=n;else if(typeof console!=="undefined"&&console.warn)console.warn("Locale "+e+" not found. Did you forget to load it?")}return _n._abbr}function vn(e,t){if(t!==null){var n,r=cn;t.abbr=e;if(x[e]!=null){ee("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");r=x[e]._config}else if(t.parentLocale!=null)if(x[t.parentLocale]!=null)r=x[t.parentLocale]._config;else{n=gn(t.parentLocale);if(n!=null)r=n._config;else{if(!mn[t.parentLocale])mn[t.parentLocale]=[];mn[t.parentLocale].push({name:e,config:t});return null}}x[e]=new re(ne(r,t));if(mn[e])mn[e].forEach(function(e){vn(e.name,e.config)});Mn(e);return x[e]}else{delete x[e];return null}}function Ln(e,t){if(t!=null){var n,r,s=cn;if(x[e]!=null&&x[e].parentLocale!=null)x[e].set(ne(x[e]._config,t));else{r=gn(e);if(r!=null)s=r._config;t=ne(s,t);if(r==null)t.abbr=e;n=new re(t);n.parentLocale=x[e];x[e]=n}Mn(e)}else if(x[e]!=null)if(x[e].parentLocale!=null){x[e]=x[e].parentLocale;if(e===Mn())Mn(e)}else if(x[e]!=null)delete x[e];return x[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr)e=e._locale._abbr;if(!e)return _n;if(!a(e)){t=gn(e);if(t)return t;e=[e]}return pn(e)}function Yn(){return X(x)}function wn(e){var t,n=e._a;if(n&&m(e).overflow===-2){t=n[Y]<0||n[Y]>11?Y:n[w]<1||n[w]>it(n[b],n[Y])?w:n[k]<0||n[k]>24||n[k]===24&&(n[T]!==0||n[D]!==0||n[tt]!==0)?k:n[T]<0||n[T]>59?T:n[D]<0||n[D]>59?D:n[tt]<0||n[tt]>999?tt:-1;if(m(e)._overflowDayOfYear&&(t<b||t>w))t=w;if(m(e)._overflowWeeks&&t===-1)t=nt;if(m(e)._overflowWeekday&&t===-1)t=rt;m(e).overflow=t}return e}var kn=/^\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)?)?$/,Tn=/^\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)?)?$/,Dn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],En=[["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/]],xn=/^\/?Date\((-?\d+)/i,On=/^(?:(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}))$/,jn={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 An(e){var t,n,r=e._i,s=kn.exec(r)||Tn.exec(r),i,a,o,l,d=Sn.length,u=En.length;if(s){m(e).iso=true;for(t=0,n=d;t<n;t++)if(Sn[t][1].exec(s[1])){a=Sn[t][0];i=Sn[t][2]!==false;break}if(a==null){e._isValid=false;return}if(s[3]){for(t=0,n=u;t<n;t++)if(En[t][1].exec(s[3])){o=(s[2]||" ")+En[t][0];break}if(o==null){e._isValid=false;return}}if(!i&&o!=null){e._isValid=false;return}if(s[4])if(Dn.exec(s[4]))l="Z";else{e._isValid=false;return}e._f=a+(o||"")+(l||"");Un(e)}else e._isValid=false}function Hn(e,t,n,r,s,i){var a=[Pn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];if(i)a.push(parseInt(i,10));return a}function Pn(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;else if(t<=999)return 1900+t;return t}function Cn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){if(e){var r=Ft.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s){m(n).weekdayMismatch=true;n._isValid=false;return false}}return true}function Rn(e,t,n){if(e)return jn[e];else if(t)return 0;else{var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}}function Fn(e){var t=On.exec(Cn(e._i)),n;if(t){n=Hn(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Nn(t[1],n,e))return;e._a=n;e._tzm=Rn(t[8],t[9],t[10]);e._d=kt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);m(e).rfc2822=true}else e._isValid=false}function In(e){var t=xn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}An(e);if(e._isValid===false)delete e._isValid;else return;Fn(e);if(e._isValid===false)delete e._isValid;else return;if(e._strict)e._isValid=false;else c.createFromInputFallback(e)}function Wn(e,t,n){if(e!=null)return e;if(t!=null)return t;return n}function Bn(e){var t=new Date(c.now());if(e._useUTC)return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()];return[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r=[],s,i,a;if(e._d)return;s=Bn(e);if(e._w&&e._a[w]==null&&e._a[Y]==null)Vn(e);if(e._dayOfYear!=null){a=Wn(e._a[b],s[b]);if(e._dayOfYear>Lt(a)||e._dayOfYear===0)m(e)._overflowDayOfYear=true;n=kt(a,0,e._dayOfYear);e._a[Y]=n.getUTCMonth();e._a[w]=n.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];if(e._a[k]===24&&e._a[T]===0&&e._a[D]===0&&e._a[tt]===0){e._nextDay=true;e._a[k]=0}e._d=(e._useUTC?kt:wt).apply(null,r);i=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null)e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);if(e._nextDay)e._a[k]=24;if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==i)m(e).weekdayMismatch=true}function Vn(e){var t,n,r,s,i,a,o,l,d;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){i=1;a=4;n=Wn(t.GG,e._a[b],St(O(),1,4).year);r=Wn(t.W,1);s=Wn(t.E,1);if(s<1||s>7)l=true}else{i=e._locale._week.dow;a=e._locale._week.doy;d=St(O(),i,a);n=Wn(t.gg,e._a[b],d.year);r=Wn(t.w,d.week);if(t.d!=null){s=t.d;if(s<0||s>6)l=true}else if(t.e!=null){s=t.e+i;if(t.e<0||t.e>6)l=true}else s=i}if(r<1||r>E(n,i,a))m(e)._overflowWeeks=true;else if(l!=null)m(e)._overflowWeekday=true;else{o=Dt(n,r,s,i,a);e._a[b]=o.year;e._dayOfYear=o.dayOfYear}}function Un(e){if(e._f===c.ISO_8601){An(e);return}if(e._f===c.RFC_2822){Fn(e);return}e._a=[];m(e).empty=true;var t=""+e._i,n,r,s,i,a,o=t.length,l=0,d,u;s=_e(e._f,e._locale).match(ae)||[];u=s.length;for(n=0;n<u;n++){i=s[n];r=(t.match(Ke(i,e))||[])[0];if(r){a=t.substr(0,t.indexOf(r));if(a.length>0)m(e).unusedInput.push(a);t=t.slice(t.indexOf(r)+r.length);l+=r.length}if(de[i]){if(r)m(e).empty=false;else m(e).unusedTokens.push(i);et(i,r,e)}else if(e._strict&&!r)m(e).unusedTokens.push(i)}m(e).charsLeftOver=o-l;if(t.length>0)m(e).unusedInput.push(t);if(e._a[k]<=12&&m(e).bigHour===true&&e._a[k]>0)m(e).bigHour=undefined;m(e).parsedDateParts=e._a.slice(0);m(e).meridiem=e._meridiem;e._a[k]=Jn(e._locale,e._a[k],e._meridiem);d=m(e).era;if(d!==null)e._a[b]=e._locale.erasConvertYear(d,e._a[b]);zn(e);wn(e)}function Jn(e,t,n){var r;if(n==null)return t;if(e.meridiemHour!=null)return e.meridiemHour(t,n);else if(e.isPM!=null){r=e.isPM(n);if(r&&t<12)t+=12;if(!r&&t===12)t=0;return t}else return t}function qn(e){var t,n,r,s,i,a,o=false,l=e._f.length;if(l===0){m(e).invalidFormat=true;e._d=new Date(NaN);return}for(s=0;s<l;s++){i=0;a=false;t=G({},e);if(e._useUTC!=null)t._useUTC=e._useUTC;t._f=e._f[s];Un(t);if(U(t))a=true;i+=m(t).charsLeftOver;i+=m(t).unusedTokens.length*10;m(t).score=i;if(!o){if(r==null||i<r||a){r=i;n=t;if(a)o=true}}else if(i<r){r=i;n=t}}z(e,n||t)}function $n(e){if(e._d)return;var t=ke(e._i),n=t.day===undefined?t.date:t.day;e._a=B([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});zn(e)}function Gn(e){var t=new K(wn(Kn(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Kn(e){var t=e._i,n=e._f;e._locale=e._locale||bn(e._l);if(t===null||n===undefined&&t==="")return J({nullInput:true});if(typeof t==="string")e._i=t=e._locale.preparse(t);if(_(t))return new K(wn(t));else if(W(t))e._d=t;else if(a(n))qn(e);else if(n)Un(e);else Qn(e);if(!U(e))e._d=null;return e}function Qn(e){var t=e._i;if(o(t))e._d=new Date(c.now());else if(W(t))e._d=new Date(t.valueOf());else if(typeof t==="string")In(e);else if(a(t)){e._a=B(t.slice(0),function(e){return parseInt(e,10)});zn(e)}else if(F(t))$n(e);else if(d(t))e._d=new Date(t);else c.createFromInputFallback(e)}function Zn(e,t,n,r,s){var i={};if(t===true||t===false){r=t;t=undefined}if(n===true||n===false){r=n;n=undefined}if(F(e)&&I(e)||a(e)&&e.length===0)e=undefined;i._isAMomentObject=true;i._useUTC=i._isUTC=s;i._l=n;i._i=e;i._f=t;i._strict=r;return Gn(i)}function O(e,t,n,r){return Zn(e,t,n,r,false)}c.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are "+"discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),c.ISO_8601=function(){},c.RFC_2822=function(){};var Xn=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);if(this.isValid()&&e.isValid())return e<this?this:e;else return J()}),er=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);if(this.isValid()&&e.isValid())return e>this?this:e;else return J()});function tr(e,t){var n,r;if(t.length===1&&a(t[0]))t=t[0];if(!t.length)return O();n=t[0];for(r=1;r<t.length;++r)if(!t[r].isValid()||t[r][e](n))n=t[r];return n}function nr(){var e=[].slice.call(arguments,0);return tr("isBefore",e)}function rr(){var e=[].slice.call(arguments,0);return tr("isAfter",e)}var sr=function(){return Date.now?Date.now():+new Date},ir=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n=false,r,s=ir.length;for(t in e)if(l(e,t)&&!(S.call(ir,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return false;for(r=0;r<s;++r)if(e[ir[r]]){if(n)return false;if(parseFloat(e[ir[r]])!==y(e[ir[r]]))n=true}return true}function or(){return this._isValid}function lr(){return j(NaN)}function dr(e){var t=ke(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=ar(t);this._milliseconds=+u+d*1e3+l*6e4+o*1e3*60*60;this._days=+a+i*7;this._months=+s+r*3+n*12;this._data={};this._locale=bn();this._bubble()}function ur(e){return e instanceof dr}function cr(e){if(e<0)return Math.round(-1*e)*-1;else return Math.round(e)}function mr(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)if(n&&e[a]!==t[a]||!n&&y(e[a])!==y(t[a]))i++;return i+s}function _r(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";if(e<0){e=-e;t="-"}return t+i(~~(e/60),2)+n+i(~~e%60,2)})}_r("Z",":"),_r("ZZ",""),M("Z",Je),M("ZZ",Je),L(["Z","ZZ"],function(e,t,n){n._useUTC=true;n._tzm=hr(Je,e)});var fr=/([\+\-]|\d\d)/gi;function hr(e,t){var n=(t||"").match(e),r,s,i;if(n===null)return null;r=n[n.length-1]||[];s=(r+"").match(fr)||["-",0,0];i=+(s[1]*60)+y(s[2]);return i===0?0:s[0]==="+"?i:-i}function pr(e,t){var n,r;if(t._isUTC){n=t.clone();r=(_(e)||W(e)?e.valueOf():O(e).valueOf())-n.valueOf();n._d.setTime(n._d.valueOf()+r);c.updateOffset(n,false);return n}else return O(e).local()}function yr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e==="string"){e=hr(Je,e);if(e===null)return this}else if(Math.abs(e)<16&&!n)e=e*60;if(!this._isUTC&&t)s=yr(this);this._offset=e;this._isUTC=true;if(s!=null)this.add(s,"m");if(r!==e)if(!t||this._changeInProgress)Pr(this,j(e-r,"m"),1,false);else if(!this._changeInProgress){this._changeInProgress=true;c.updateOffset(this,true);this._changeInProgress=null}return this}else return this._isUTC?r:yr(this)}function Mr(e,t){if(e!=null){if(typeof e!=="string")e=-e;this.utcOffset(e,t);return this}else return-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function Lr(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e)this.subtract(yr(this),"m")}return this}function br(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i==="string"){var e=hr(Ue,this._i);if(e!=null)this.utcOffset(e);else this.utcOffset(0,true)}return this}function Yr(e){if(!this.isValid())return false;e=e?O(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={},t;G(e,this);e=Kn(e);if(e._a){t=e._isUTC?u(e._a):O(e._a);this._isDSTShifted=this.isValid()&&mr(e._a,t.toArray())>0}else this._isDSTShifted=false;return this._isDSTShifted}function Tr(){return this.isValid()?!this._isUTC:false}function Dr(){return this.isValid()?this._isUTC:false}function Sr(){return this.isValid()?this._isUTC&&this._offset===0:false}c.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,xr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function j(e,t){var n=e,r=null,s,i,a;if(ur(e))n={ms:e._milliseconds,d:e._days,M:e._months};else if(d(e)||!isNaN(+e)){n={};if(t)n[t]=+e;else n.milliseconds=+e}else if(r=Er.exec(e)){s=r[1]==="-"?-1:1;n={y:0,d:y(r[w])*s,h:y(r[k])*s,m:y(r[T])*s,s:y(r[D])*s,ms:y(cr(r[tt]*1e3))*s}}else if(r=xr.exec(e)){s=r[1]==="-"?-1:1;n={y:Or(r[2],s),M:Or(r[3],s),w:Or(r[4],s),d:Or(r[5],s),h:Or(r[6],s),m:Or(r[7],s),s:Or(r[8],s)}}else if(n==null)n={};else if(typeof n==="object"&&("from"in n||"to"in n)){a=Ar(O(n.from),O(n.to));n={};n.ms=a.milliseconds;n.M=a.months}i=new dr(n);if(ur(e)&&l(e,"_locale"))i._locale=e._locale;if(ur(e)&&l(e,"_isValid"))i._isValid=e._isValid;return i}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jr(e,t){var n={};n.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(n.months,"M").isAfter(t))--n.months;n.milliseconds=+t-+e.clone().add(n.months,"M");return n}function Ar(e,t){var n;if(!(e.isValid()&&t.isValid()))return{milliseconds:0,months:0};t=pr(t,e);if(e.isBefore(t))n=jr(e,t);else{n=jr(t,e);n.milliseconds=-n.milliseconds;n.months=-n.months}return n}function Hr(s,i){return function(e,t){var n,r;if(t!==null&&!isNaN(+t)){ee(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");r=e;e=t;t=r}n=j(e,t);Pr(this,n,s);return this}}function Pr(e,t,n,r){var s=t._milliseconds,i=cr(t._days),a=cr(t._months);if(!e.isValid())return;r=r==null?true:r;if(a)ht(e,xe(e,"Month")+a*n);if(i)Oe(e,"Date",xe(e,"Date")+i*n);if(s)e._d.setTime(e._d.valueOf()+s*n);if(r)c.updateOffset(e,i||a)}j.fn=dr.prototype,j.invalid=lr;var Cr=Hr(1,"add"),Nr=Hr(-1,"subtract");function Rr(e){return typeof e==="string"||e instanceof String}function Fr(e){return _(e)||W(e)||Rr(e)||d(e)||Wr(e)||Ir(e)||e===null||e===undefined}function Ir(e){var t=F(e)&&!I(e),n=false,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=r.length;for(s=0;s<a;s+=1){i=r[s];n=n||l(e,i)}return t&&n}function Wr(t){var e=a(t),n=false;if(e)n=t.filter(function(e){return!d(e)&&Rr(t)}).length===0;return e&&n}function Br(e){var t=F(e)&&!I(e),n=false,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1){i=r[s];n=n||l(e,i)}return t&&n}function zr(e,t){var n=e.diff(t,"days",true);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){if(arguments.length===1)if(!arguments[0]){e=undefined;t=undefined}else if(Fr(arguments[0])){e=arguments[0];t=undefined}else if(Br(arguments[0])){t=arguments[0];e=undefined}var n=e||O(),r=pr(n,this).startOf("day"),s=c.calendarFormat(this,r)||"sameElse",i=t&&(f(t[s])?t[s].call(this,n):t[s]);return this.format(i||this.localeData().calendar(s,this,O(n)))}function Ur(){return new K(this)}function Jr(e,t){var n=_(e)?e:O(e);if(!(this.isValid()&&n.isValid()))return false;t=h(t)||"millisecond";if(t==="millisecond")return this.valueOf()>n.valueOf();else return n.valueOf()<this.clone().startOf(t).valueOf()}function qr(e,t){var n=_(e)?e:O(e);if(!(this.isValid()&&n.isValid()))return false;t=h(t)||"millisecond";if(t==="millisecond")return this.valueOf()<n.valueOf();else return this.clone().endOf(t).valueOf()<n.valueOf()}function $r(e,t,n,r){var s=_(e)?e:O(e),i=_(t)?t:O(t);if(!(this.isValid()&&s.isValid()&&i.isValid()))return false;r=r||"()";return(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))}function Gr(e,t){var n=_(e)?e:O(e),r;if(!(this.isValid()&&n.isValid()))return false;t=h(t)||"millisecond";if(t==="millisecond")return this.valueOf()===n.valueOf();else{r=n.valueOf();return this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()}}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zr(e,t,n){var r,s,i;if(!this.isValid())return NaN;r=pr(e,this);if(!r.isValid())return NaN;s=(r.utcOffset()-this.utcOffset())*6e4;t=h(t);switch(t){case"year":i=Xr(this,r)/12;break;case"month":i=Xr(this,r);break;case"quarter":i=Xr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:p(i)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,i;if(t-r<0){s=e.clone().add(n-1,"months");i=(t-r)/(r-s)}else{s=e.clone().add(n+1,"months");i=(t-r)/(s-r)}return-(n+i)||0}function es(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ts(e){if(!this.isValid())return null;var t=e!==true,n=t?this.clone().utc():this;if(n.year()<0||n.year()>9999)return me(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(f(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",me(n,"Z"));return me(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ns(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,i;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}n="["+e+'("]';r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";s="-MM-DD[T]HH:mm:ss.SSS";i=t+'[")]';return this.format(n+r+s+i)}function rs(e){if(!e)e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat;var t=me(this,e);return this.localeData().postformat(t)}function ss(e,t){if(this.isValid()&&(_(e)&&e.isValid()||O(e).isValid()))return j({to:this,from:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function is(e){return this.from(O(),e)}function as(e,t){if(this.isValid()&&(_(e)&&e.isValid()||O(e).isValid()))return j({from:this,to:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function os(e){return this.to(O(),e)}function ls(e){var t;if(e===undefined)return this._locale._abbr;else{t=bn(e);if(t!=null)this._locale=t;return this}}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ds=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined)return this.localeData();else return this.locale(e)});function us(){return this._locale}var cs=1e3,ms=60*cs,_s=60*ms,fs=(365*400+97)*24*_s;function hs(e,t){return(e%t+t)%t}function ps(e,t,n){if(e<100&&e>=0)return new Date(e+400,t,n)-fs;else return new Date(e,t,n).valueOf()}function ys(e,t,n){if(e<100&&e>=0)return Date.UTC(e+400,t,n)-fs;else return Date.UTC(e,t,n)}function gs(e){var t,n;e=h(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?ys:ps;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=hs(t+(this._isUTC?0:this.utcOffset()*ms),_s);break;case"minute":t=this._d.valueOf();t-=hs(t,ms);break;case"second":t=this._d.valueOf();t-=hs(t,cs);break}this._d.setTime(t);c.updateOffset(this,true);return this}function Ms(e){var t,n;e=h(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?ys:ps;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=_s-hs(t+(this._isUTC?0:this.utcOffset()*ms),_s)-1;break;case"minute":t=this._d.valueOf();t+=ms-hs(t,ms)-1;break;case"second":t=this._d.valueOf();t+=cs-hs(t,cs)-1;break}this._d.setTime(t);c.updateOffset(this,true);return this}function vs(){return this._d.valueOf()-(this._offset||0)*6e4}function Ls(){return Math.floor(this.valueOf()/1e3)}function bs(){return new Date(this.valueOf())}function Ys(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ws(){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 ks(){return this.isValid()?this.toISOString():null}function Ts(){return U(this)}function Ds(){return z({},m(this))}function Ss(){return m(this).overflow}function Es(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xs(e,t){var n,r,s,i=this._eras||bn("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=c(i[n].since).startOf("day");i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=+Infinity;break;case"string":s=c(i[n].until).startOf("day").valueOf();i[n].until=s.valueOf();break}}return i}function Os(e,t,n){var r,s,i=this.eras(),a,o,l;e=e.toUpperCase();for(r=0,s=i.length;r<s;++r){a=i[r].name.toUpperCase();o=i[r].abbr.toUpperCase();l=i[r].narrow.toUpperCase();if(n)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(l===e)return i[r];break}else if([a,o,l].indexOf(e)>=0)return i[r]}}function js(e,t){var n=e.since<=e.until?+1:-1;if(t===undefined)return c(e.since).year();else return c(e.since).year()+(t-e.offset)*n}function As(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Hs(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ps(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Cs(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){n=s[e].since<=s[e].until?+1:-1;r=this.clone().startOf("day").valueOf();if(s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-c(s[e].since).year())*n+s[e].offset}return this.year()}function Ns(e){if(!l(this,"_erasNameRegex"))Vs.call(this);return e?this._erasNameRegex:this._erasRegex}function Rs(e){if(!l(this,"_erasAbbrRegex"))Vs.call(this);return e?this._erasAbbrRegex:this._erasRegex}function Fs(e){if(!l(this,"_erasNarrowRegex"))Vs.call(this);return e?this._erasNarrowRegex:this._erasRegex}function Is(e,t){return t.erasAbbrRegex(e)}function Ws(e,t){return t.erasNameRegex(e)}function Bs(e,t){return t.erasNarrowRegex(e)}function zs(e,t){return t._eraYearOrdinalRegex||ze}function Vs(){var e=[],t=[],n=[],r=[],s,i,a=this.eras();for(s=0,i=a.length;s<i;++s){t.push(v(a[s].name));e.push(v(a[s].abbr));n.push(v(a[s].narrow));r.push(v(a[s].name));r.push(v(a[s].abbr));r.push(v(a[s].narrow))}this._erasRegex=new RegExp("^("+r.join("|")+")","i");this._erasNameRegex=new RegExp("^("+t.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function Us(e,t){r(0,[e,e.length],0,t)}function Js(e){return Zs.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qs(e){return Zs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $s(){return E(this.year(),1,4)}function Gs(){return E(this.isoWeekYear(),1,4)}function Ks(){var e=this.localeData()._week;return E(this.year(),e.dow,e.doy)}function Qs(){var e=this.localeData()._week;return E(this.weekYear(),e.dow,e.doy)}function Zs(e,t,n,r,s){var i;if(e==null)return St(this,r,s).year;else{i=E(e,r,s);if(t>i)t=i;return Xs.call(this,e,t,n,r,s)}}function Xs(e,t,n,r,s){var i=Dt(e,t,n,r,s),a=kt(i.year,0,i.dayOfYear);this.year(a.getUTCFullYear());this.month(a.getUTCMonth());this.date(a.getUTCDate());return this}function ei(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),M("N",Is),M("NN",Is),M("NNN",Is),M("NNNN",Ws),M("NNNNN",Bs),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);if(s)m(n).era=s;else m(n).invalidEra=e}),M("y",ze),M("yy",ze),M("yyy",ze),M("yyyy",ze),M("yo",zs),L(["y","yy","yyy","yyyy"],b),L(["yo"],function(e,t,n,r){var s;if(n._locale._eraYearOrdinalRegex)s=e.match(n._locale._eraYearOrdinalRegex);if(n._locale.eraYearOrdinalParse)t[b]=n._locale.eraYearOrdinalParse(e,s);else t[b]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Us("gggg","weekYear"),Us("ggggg","weekYear"),Us("GGGG","isoWeekYear"),Us("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),M("G",Ve),M("g",Ve),M("GG",g,s),M("gg",g,s),M("GGGG",We,Ce),M("gggg",We,Ce),M("GGGGG",Be,Ne),M("ggggg",Be,Ne),Xe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=y(e)}),Xe(["gg","GG"],function(e,t,n,r){t[r]=c.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),M("Q",He),L("Q",function(e,t){t[Y]=(y(e)-1)*3}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),M("D",g),M("DD",g,s),M("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],w),L("Do",function(e,t){t[w]=y(e.match(g)[0])});var ti=Ee("Date",true);function ni(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),M("DDD",Ie),M("DDDD",Pe),L(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),M("m",g),M("mm",g,s),L(["m","mm"],T);var ri=Ee("Minutes",false),si=(r("s",["ss",2],0,"second"),t("second","s"),n("second",15),M("s",g),M("ss",g,s),L(["s","ss"],D),Ee("Seconds",false)),ii,ai;for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),t("millisecond","ms"),n("millisecond",16),M("S",Ie,He),M("SS",Ie,s),M("SSS",Ie,Pe),ii="SSSS";ii.length<=9;ii+="S")M(ii,ze);function oi(e,t){t[tt]=y(("0."+e)*1e3)}for(ii="S";ii.length<=9;ii+="S")L(ii,oi);function li(){return this._isUTC?"UTC":""}function di(){return this._isUTC?"Coordinated Universal Time":""}ai=Ee("Milliseconds",false),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");var A=K.prototype;if(A.add=Cr,A.calendar=Vr,A.clone=Ur,A.diff=Zr,A.endOf=Ms,A.format=rs,A.from=ss,A.fromNow=is,A.to=as,A.toNow=os,A.get=je,A.invalidAt=Ss,A.isAfter=Jr,A.isBefore=qr,A.isBetween=$r,A.isSame=Gr,A.isSameOrAfter=Kr,A.isSameOrBefore=Qr,A.isValid=Ts,A.lang=ds,A.locale=ls,A.localeData=us,A.max=er,A.min=Xn,A.parsingFlags=Ds,A.set=Ae,A.startOf=gs,A.subtract=Nr,A.toArray=Ys,A.toObject=ws,A.toDate=bs,A.toISOString=ts,A.inspect=ns,typeof Symbol!=="undefined"&&Symbol.for!=null)A[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};function ui(e){return O(e*1e3)}function ci(){return O.apply(null,arguments).parseZone()}function mi(e){return e}A.toJSON=ks,A.toString=es,A.unix=Ls,A.valueOf=vs,A.creationData=Es,A.eraName=As,A.eraNarrow=Hs,A.eraAbbr=Ps,A.eraYear=Cs,A.year=bt,A.isLeapYear=Yt,A.weekYear=Js,A.isoWeekYear=qs,A.quarter=A.quarters=ei,A.month=pt,A.daysInMonth=yt,A.week=A.weeks=At,A.isoWeek=A.isoWeeks=Ht,A.weeksInYear=Ks,A.weeksInWeekYear=Qs,A.isoWeeksInYear=$s,A.isoWeeksInISOWeekYear=Gs,A.date=ti,A.day=A.days=Gt,A.weekday=Kt,A.isoWeekday=Qt,A.dayOfYear=ni,A.hour=A.hours=dn,A.minute=A.minutes=ri,A.second=A.seconds=si,A.millisecond=A.milliseconds=ai,A.utcOffset=gr,A.utc=vr,A.local=Lr,A.parseZone=br,A.hasAlignedHourOffset=Yr,A.isDST=wr,A.isLocal=Tr,A.isUtcOffset=Dr,A.isUtc=Sr,A.isUTC=Sr,A.zoneAbbr=li,A.zoneName=di,A.dates=e("dates accessor is deprecated. Use date instead.",ti),A.months=e("months accessor is deprecated. Use month instead",pt),A.years=e("years accessor is deprecated. Use year instead",bt),A.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mr),A.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var H=re.prototype;function _i(e,t,n,r){var s=bn(),i=u().set(r,t);return s[n](i,e)}function fi(e,t,n){if(d(e)){t=e;e=undefined}e=e||"";if(t!=null)return _i(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=_i(e,r,n,"month");return s}function hi(e,t,n,r){if(typeof e==="boolean"){if(d(t)){n=t;t=undefined}t=t||""}else{t=e;n=t;e=false;if(d(t)){n=t;t=undefined}t=t||""}var s=bn(),i=e?s._week.dow:0,a,o=[];if(n!=null)return _i(t,(n+i)%7,r,"day");for(a=0;a<7;a++)o[a]=_i(t,(a+i)%7,r,"day");return o}function pi(e,t){return fi(e,t,"months")}function yi(e,t){return fi(e,t,"monthsShort")}function gi(e,t,n){return hi(e,t,n,"weekdays")}function Mi(e,t,n){return hi(e,t,n,"weekdaysShort")}function vi(e,t,n){return hi(e,t,n,"weekdaysMin")}H.calendar=ie,H.longDateFormat=he,H.invalidDate=ye,H.ordinal=ve,H.preparse=mi,H.postformat=mi,H.relativeTime=be,H.pastFuture=Ye,H.set=te,H.eras=xs,H.erasParse=Os,H.erasConvertYear=js,H.erasAbbrRegex=Rs,H.erasNameRegex=Ns,H.erasNarrowRegex=Fs,H.months=ct,H.monthsShort=mt,H.monthsParse=ft,H.monthsRegex=Mt,H.monthsShortRegex=gt,H.week=Et,H.firstDayOfYear=jt,H.firstDayOfWeek=Ot,H.weekdays=Vt,H.weekdaysMin=Jt,H.weekdaysShort=Ut,H.weekdaysParse=$t,H.weekdaysRegex=Zt,H.weekdaysShortRegex=Xt,H.weekdaysMinRegex=en,H.isPM=on,H.meridiem=un,Mn("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),c.lang=e("moment.lang is deprecated. Use moment.locale instead.",Mn),c.langData=e("moment.langData is deprecated. Use moment.localeData instead.",bn);var Li=Math.abs;function bi(){var e=this._data;this._milliseconds=Li(this._milliseconds);this._days=Li(this._days);this._months=Li(this._months);e.milliseconds=Li(e.milliseconds);e.seconds=Li(e.seconds);e.minutes=Li(e.minutes);e.hours=Li(e.hours);e.months=Li(e.months);e.years=Li(e.years);return this}function Yi(e,t,n,r){var s=j(t,n);e._milliseconds+=r*s._milliseconds;e._days+=r*s._days;e._months+=r*s._months;return e._bubble()}function wi(e,t){return Yi(this,e,t,1)}function ki(e,t){return Yi(this,e,t,-1)}function Ti(e){if(e<0)return Math.floor(e);else return Math.ceil(e)}function Di(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,i,a,o,l;if(!(e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0)){e+=Ti(Ei(n)+t)*864e5;t=0;n=0}r.milliseconds=e%1e3;s=p(e/1e3);r.seconds=s%60;i=p(s/60);r.minutes=i%60;a=p(i/60);r.hours=a%24;t+=p(a/24);l=p(Si(t));n+=l;t-=Ti(Ei(l));o=p(n/12);n%=12;r.days=t;r.months=n;r.years=o;return this}function Si(e){return e*4800/146097}function Ei(e){return e*146097/4800}function xi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;e=h(e);if(e==="month"||e==="quarter"||e==="year"){t=this._days+r/864e5;n=this._months+Si(t);switch(e){case"month":return n;case"quarter":return n/3;case"year":return n/12}}else{t=this._days+Math.round(Ei(this._months));switch(e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}}function Oi(){if(!this.isValid())return NaN;return this._milliseconds+this._days*864e5+this._months%12*2592e6+y(this._months/12)*31536e6}function ji(e){return function(){return this.as(e)}}var Ai=ji("ms"),Hi=ji("s"),Pi=ji("m"),Ci=ji("h"),Ni=ji("d"),Ri=ji("w"),Fi=ji("M"),Ii=ji("Q"),Wi=ji("y");function Bi(){return j(this)}function zi(e){e=h(e);return this.isValid()?this[e+"s"]():NaN}function Vi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ui=Vi("milliseconds"),Ji=Vi("seconds"),qi=Vi("minutes"),$i=Vi("hours"),Gi=Vi("days"),Ki=Vi("months"),Qi=Vi("years");function Zi(){return p(this.days()/7)}var Xi=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function na(e,t,n,r){var s=j(e).abs(),i=Xi(s.as("s")),a=Xi(s.as("m")),o=Xi(s.as("h")),l=Xi(s.as("d")),d=Xi(s.as("M")),u=Xi(s.as("w")),c=Xi(s.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];if(n.w!=null)m=m||u<=1&&["w"]||u<n.w&&["ww",u];m=m||d<=1&&["M"]||d<n.M&&["MM",d]||c<=1&&["y"]||["yy",c];m[2]=t;m[3]=+e>0;m[4]=r;return ta.apply(null,m)}function ra(e){if(e===undefined)return Xi;if(typeof e==="function"){Xi=e;return true}return false}function sa(e,t){if(ea[e]===undefined)return false;if(t===undefined)return ea[e];ea[e]=t;if(e==="s")ea.ss=t-1;return true}function ia(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=false,r=ea,s,i;if(typeof e==="object"){t=e;e=false}if(typeof e==="boolean")n=e;if(typeof t==="object"){r=Object.assign({},ea,t);if(t.s!=null&&t.ss==null)r.ss=t.s-1}s=this.localeData();i=na(this,!n,r,s);if(n)i=s.pastFuture(+this,i);return s.postformat(i)}var aa=Math.abs;function oa(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e=aa(this._milliseconds)/1e3,t=aa(this._days),n=aa(this._months),r,s,i,a,o=this.asSeconds(),l,d,u,c;if(!o)return"P0D";r=p(e/60);s=p(r/60);e%=60;r%=60;i=p(n/12);n%=12;a=e?e.toFixed(3).replace(/\.?0+$/,""):"";l=o<0?"-":"";d=oa(this._months)!==oa(o)?"-":"";u=oa(this._days)!==oa(o)?"-":"";c=oa(this._milliseconds)!==oa(o)?"-":"";return l+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(t?u+t+"D":"")+(s||r||e?"T":"")+(s?c+s+"H":"")+(r?c+r+"M":"")+(e?c+a+"S":"")}var P=dr.prototype;return P.isValid=or,P.abs=bi,P.add=wi,P.subtract=ki,P.as=xi,P.asMilliseconds=Ai,P.asSeconds=Hi,P.asMinutes=Pi,P.asHours=Ci,P.asDays=Ni,P.asWeeks=Ri,P.asMonths=Fi,P.asQuarters=Ii,P.asYears=Wi,P.valueOf=Oi,P._bubble=Di,P.clone=Bi,P.get=zi,P.milliseconds=Ui,P.seconds=Ji,P.minutes=qi,P.hours=$i,P.days=Gi,P.weeks=Zi,P.months=Ki,P.years=Qi,P.humanize=ia,P.toISOString=la,P.toString=la,P.toJSON=la,P.locale=ls,P.localeData=us,P.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),P.lang=ds,r("X",0,0,"unix"),r("x",0,0,"valueOf"),M("x",Ve),M("X",qe),L("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,n){n._d=new Date(y(e))}),//! moment.js
|
|
239
|
-
c.version="2.29.3",R(O),c.fn=A,c.min=nr,c.max=rr,c.now=sr,c.utc=u,c.unix=ui,c.months=pi,c.isDate=W,c.locale=Mn,c.invalid=J,c.duration=j,c.isMoment=_,c.weekdays=gi,c.parseZone=ci,c.localeData=bn,c.isDuration=ur,c.monthsShort=yi,c.weekdaysMin=vi,c.defineLocale=vn,c.updateLocale=Ln,c.locales=Yn,c.weekdaysShort=Mi,c.normalizeUnits=h,c.relativeTimeRounding=ra,c.relativeTimeThreshold=sa,c.calendarFormat=zr,c.prototype=A,c.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"},c}()},89:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(var[r,s]of t)n[r]=s;return n}}},r={},O.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return O.d(t,{a:t}),t},O.d=function(e,t){for(var n in t)O.o(t,n)&&!O.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},O.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),O.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},O.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},O.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},O.p="",j={},function(){"use strict";O.r(j),O.d(j,{default:function(){return E}}),"undefined"!=typeof window&&(e=(e=window.document.currentScript)&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(O.p=e[1]);var l=x(765);const d={id:"hcd-bootstrap"},u={class:"modal fade",id:"listModal",tabindex:"-1","aria-labelledby":"listModalLabel","aria-hidden":"true"},c={class:"modal-dialog modal-xl modal-dialog-centered"},m={class:"modal-content",style:{"background-color":"aliceblue"}},_={class:"modal-header"},f={class:"modal-title h4",id:"listModalLabel"},h=(0,l.createElementVNode)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),p={class:"modal-body"},y=(0,l.createElementVNode)("div",{class:"modal-footer"},[(0,l.createElementVNode)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"},"Cerrar")],-1);var r=O(7692),e=O(6265),s=O.n(e);const a={key:0,class:"table"},o=(0,l.createElementVNode)("thead",null,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("th",{scope:"col"},"Tipo Documento"),(0,l.createElementVNode)("th",{scope:"col"},"Fecha"),(0,l.createElementVNode)("th",{scope:"col"},"Archivo"),(0,l.createElementVNode)("th",{scope:"col"},"Acciones")])],-1),g={scope:"row"},M=["onClick"],v=[(0,l.createElementVNode)("i",{style:{"font-size":"17px"},class:"bi bi-trash-fill"},null,-1)],L=["onClick"],b=[(0,l.createElementVNode)("i",{style:{"font-size":"17px"},class:"bi bi-search"},null,-1)],Y={key:2,class:"btn btn-primary",type:"button",disabled:""},w=[(0,l.createElementVNode)("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1),(0,l.createTextVNode)(" Cargando... ")],k={key:1,class:"alert alert-secondary",role:"alert"};var e={name:"table-image",props:["files"],components:{},data(){return{loading:!1}},mounted(){},methods:{borrar(t,n){this.$swal.fire({title:"Advertencia",text:"Esta por eliminar un archivo, ¿ Desea continuar ?",icon:"warning",showCancelButton:!0,confirmButtonText:"Eliminar",cancelButtonText:"Cancelar",confirmButtonColor:"red"}).then(e=>{e.isConfirmed&&(this.loading=!0,s().post(this.hcdListOptions.base_url+"/escaner/grabarDocEscan",{accion:"B",id_doc_escan:n.id_doc_escan}).then(e=>{200==e.status&&s().post(this.hcdListOptions.base_url+"/escaner/deleteFiles",{archivos:["escaneo/inasistencias/"+n.arch_mostrar]}).then(e=>{200==e.status&&this.$emit("removeElementFromList",t),this.loading=!1}).catch(e=>{console.log(e),this.$emit("addNotification","Ocurrió un error al intentar borrar el documento del FTP"),this.loading=!1}),this.loading=!1}).catch(e=>{console.log(e),this.$emit("addNotification","Ocurrió un error al intentar borrar el documento de la base de datos"),this.loading=!1}))})},abrir(e){this.loading=!0,s().post(this.hcdListOptions.base_url+"/escaner/getFileFromFTP",{fullPath:e.ruta+"/"+e.arch_mostrar}).then(async t=>{var n="";if("pdf"==t.data.extension){var e=await this.b64toBlob(t.data.base64File,"application/pdf"),n=URL.createObjectURL(e);window.open(n)}else{n="<img src='data:image/"+t.data.extension+";base64,"+t.data.base64File+"'>";let e=window.open("");e.document.write(n)}this.loading=!1}).catch(e=>{console.log(e),this.$emit("addNotification","Ocurrio un error al intentar abrir el documento"),this.loading=!1})},async b64toBlob(e,t=""){const n=await fetch(`data:${t};base64,`+e);return await n.blob()}}},t=O(89),e=(0,t.Z)(e,[["render",function(e,t,n,r,s,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",null,[0<n.files.length?((0,l.openBlock)(),(0,l.createElementBlock)("table",a,[o,(0,l.createElementVNode)("tbody",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(n.files,(t,n)=>((0,l.openBlock)(),(0,l.createElementBlock)("tr",{key:t.id_doc_escan},[(0,l.createElementVNode)("th",g,(0,l.toDisplayString)(t.d_tipo_doc_escan),1),(0,l.createElementVNode)("td",null,(0,l.toDisplayString)(e.$filters.formatDate(t.f_segu)),1),(0,l.createElementVNode)("td",null,(0,l.toDisplayString)(t.arch_mostrar),1),(0,l.createElementVNode)("td",null,[s.loading?(0,l.createCommentVNode)("",!0):((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,type:"button",class:"btn btn-danger btn-sm p-0 ps-1 pe-1",onClick:e=>i.borrar(n,t),title:"Eliminar"},v,8,M)),s.loading?(0,l.createCommentVNode)("",!0):((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,type:"button",class:"btn btn-info btn-sm ms-1 p-0 ps-1 pe-1",onClick:e=>i.abrir(t),title:"Previsualizar"},b,8,L)),s.loading?((0,l.openBlock)(),(0,l.createElementBlock)("button",Y,w)):(0,l.createCommentVNode)("",!0)])]))),128))])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",k," No hay elementos "))])}]]);const T={class:"toast-container position-fixed bottom-0 end-0 p-3"},D=(0,l.createElementVNode)("div",{class:"toast-header"},[(0,l.createElementVNode)("strong",{class:"me-auto"},"Notificación"),(0,l.createElementVNode)("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"})],-1),S={class:"toast-body"};var n=(0,t.Z)({name:"list-files",components:{TableImage:e,ToastAlert:(0,t.Z)({name:"toast-alert",components:{},data(){return{toasts:[]}},mounted(){},methods:{async addNotification(e){this.toasts.push({msg:e}),await(0,l.nextTick)();var t=this.toasts.length-1,e=this.$refs["toast"+t][0],n=r.Toast.getOrCreateInstance(e);e.addEventListener("hidden.bs.toast",()=>{this.toasts.splice(t,1)}),n.show()}}},[["render",function(e,t,n,r,s,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",T,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(s.toasts,(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:t,ref_for:!0,ref:"toast"+t,class:"toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[D,(0,l.createElementVNode)("div",S,(0,l.toDisplayString)(e.msg),1)]))),128))])}]])},data(){return{modal:null,files:[],title:""}},mounted(){this.options=this.hcdListOptions,this.modal=new r.Modal("#listModal",{show:!1})},methods:{async show(e,r){return new Promise((t,n)=>{this.title=void 0!==e.title?e.title:"Listado",s().post(this.hcdListOptions.base_url+"/escaner/getDocumentosEscaneados",r).then(e=>{200==e.status&&(this.files=e.data.res,this.modal.show(),t("Exito")),n("Error")}).catch(e=>{n(e.message)})})},removeElementFromList(e){this.files.splice(e,1)},addNotification(e){this.$refs.toastAlert.addNotification(e)}}},[["render",function(e,t,n,r,s,i){var a=(0,l.resolveComponent)("table-image"),o=(0,l.resolveComponent)("toast-alert");return(0,l.openBlock)(),(0,l.createElementBlock)("div",d,[(0,l.createElementVNode)("div",u,[(0,l.createElementVNode)("div",c,[(0,l.createElementVNode)("div",m,[(0,l.createElementVNode)("div",_,[(0,l.createElementVNode)("h5",f,(0,l.toDisplayString)(s.title),1),h]),(0,l.createElementVNode)("div",p,[(0,l.createVNode)(a,{files:s.files,onRemoveElementFromList:i.removeElementFromList,onAddNotification:i.addNotification},null,8,["files","onRemoveElementFromList","onAddNotification"])]),y]),(0,l.createVNode)(o,{ref:"toastAlert"},null,512)])])])}]]),e=O(6797),i=O.n(e),E={install:(e,t)=>{if(e.component("list-files",n),e.use(t.sweetalert),void 0===t.base_url||""==t.base_url)throw"Debe indicar el parámetro 'base_url' en el Plugin Listado de Imágenes";e.config.globalProperties.hcdListOptions={},e.config.globalProperties.hcdListOptions.base_url=t.base_url,e.config.globalProperties.hcdListOptions.title="Listado",e.config.globalProperties.$filters={formatDate(e){return i()(String(e)).format("DD/MM/YYYY")}}}}}(),e.exports=j},3:(e,n,r)=>{"use strict";r.r(n),r.d(n,{BASE_TRANSITION:()=>s,CAMELIZE:()=>_,CAPITALIZE:()=>te,CREATE_BLOCK:()=>a,CREATE_COMMENT:()=>ue,CREATE_ELEMENT_BLOCK:()=>o,CREATE_ELEMENT_VNODE:()=>A,CREATE_SLOTS:()=>K,CREATE_STATIC:()=>P,CREATE_TEXT:()=>H,CREATE_VNODE:()=>j,DOMDirectiveTransforms:()=>Qn,DOMNodeTransforms:()=>Kn,FRAGMENT:()=>p,GUARD_REACTIVE_PROPS:()=>W,IS_MEMO_SAME:()=>Me,IS_REF:()=>ae,KEEP_ALIVE:()=>O,MERGE_PROPS:()=>Q,NORMALIZE_CLASS:()=>Z,NORMALIZE_PROPS:()=>I,NORMALIZE_STYLE:()=>X,OPEN_BLOCK:()=>de,POP_SCOPE_ID:()=>se,PUSH_SCOPE_ID:()=>re,RENDER_LIST:()=>R,RENDER_SLOT:()=>m,RESOLVE_COMPONENT:()=>d,RESOLVE_DIRECTIVE:()=>u,RESOLVE_DYNAMIC_COMPONENT:()=>C,RESOLVE_FILTER:()=>N,SET_BLOCK_TRACKING:()=>ye,SUSPENSE:()=>x,TELEPORT:()=>y,TO_DISPLAY_STRING:()=>pe,TO_HANDLERS:()=>ee,TO_HANDLER_KEY:()=>ne,TRANSITION:()=>Nn,TRANSITION_GROUP:()=>Rn,UNREF:()=>ie,V_MODEL_CHECKBOX:()=>xn,V_MODEL_DYNAMIC:()=>An,V_MODEL_RADIO:()=>En,V_MODEL_SELECT:()=>jn,V_MODEL_TEXT:()=>On,V_ON_WITH_KEYS:()=>Pn,V_ON_WITH_MODIFIERS:()=>Hn,V_SHOW:()=>Cn,WITH_CTX:()=>ge,WITH_DIRECTIVES:()=>he,WITH_MEMO:()=>oe,advancePositionWithClone:()=>Pe,advancePositionWithMutation:()=>Ce,assert:()=>function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},baseCompile:()=>Dn,baseParse:()=>Ze,buildDirectiveArgs:()=>sn,buildProps:()=>nn,buildSlots:()=>Qt,checkCompatEnabled:()=>$e,compile:()=>function(e,t={}){return Dn(e,(0,le.extend)({},Wn,t,{nodeTransforms:[Gn,...Kn,...t.nodeTransforms||[]],directiveTransforms:(0,le.extend)({},Qn,t.directiveTransforms||{}),transformHoist:null}))},createArrayExpression:()=>b,createAssignmentExpression:()=>function(e,t){return{type:24,left:e,right:t,loc:c}},createBlockStatement:()=>we,createCacheExpression:()=>Ye,createCallExpression:()=>U,createCompilerError:()=>F,createCompoundExpression:()=>M,createConditionalExpression:()=>be,createDOMCompilerError:()=>l,createForLoopParams:()=>Jt,createFunctionExpression:()=>Y,createIfStatement:()=>function(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:c}},createInterpolation:()=>function(e,t){return{type:5,loc:t,content:(0,le.isString)(e)?V(e,!1,t):e}},createObjectExpression:()=>B,createObjectProperty:()=>z,createReturnStatement:()=>function(e){return{type:26,returns:e,loc:c}},createRoot:()=>Le,createSequenceExpression:()=>function(e){return{type:25,expressions:e,loc:c}},createSimpleExpression:()=>V,createStructuralDirectiveTransform:()=>Mt,createTemplateLiteral:()=>function(e){return{type:22,elements:e,loc:c}},createTransformContext:()=>pt,createVNodeCall:()=>g,extractIdentifiers:()=>i,findDir:()=>w,findProp:()=>Ne,generate:()=>Yt,generateCodeFrame:()=>le.generateCodeFrame,getBaseTransformPreset:()=>Tn,getConstantType:()=>G,getInnerRange:()=>He,getMemoedVNodeCall:()=>Ve,getVNodeBlockHelper:()=>_e,getVNodeHelper:()=>me,hasDynamicKeyVBind:()=>Re,hasScopeRef:()=>function t(n,r){if(!n||0===Object.keys(r).length)return!1;switch(n.type){case 1:for(let e=0;e<n.props.length;e++){const s=n.props[e];if(7===s.type&&(t(s.arg,r)||t(s.exp,r)))return!0}return n.children.some(e=>t(e,r));case 11:return t(n.source,r)?!0:n.children.some(e=>t(e,r));case 9:return n.branches.some(e=>t(e,r));case 10:return t(n.condition,r)?!0:n.children.some(e=>t(e,r));case 4:return!n.isStatic&&De(n.content)&&!!r[n.content];case 8:return n.children.some(e=>(0,le.isObject)(e)&&t(e,r));case 5:case 12:return t(n.content,r);default:return!1}},helperNameMap:()=>ce,injectProp:()=>ze,isBuiltInType:()=>t,isCoreComponent:()=>ke,isFunctionType:()=>Et,isInDestructureAssignment:()=>function(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1},isMemberExpression:()=>Ae,isMemberExpressionBrowser:()=>Oe,isMemberExpressionNode:()=>je,isReferencedIdentifier:()=>function(e,t,n){return!1},isSimpleIdentifier:()=>De,isSlotOutlet:()=>We,isStaticArgOf:()=>q,isStaticExp:()=>J,isStaticProperty:()=>xt,isStaticPropertyKey:()=>Ot,isTemplateNode:()=>k,isText:()=>Fe,isVSlot:()=>Ie,locStub:()=>c,makeBlock:()=>Ue,noopDirectiveTransform:()=>Sn,parse:()=>function(e,t={}){return Ze(e,(0,le.extend)({},Wn,t))},parserOptions:()=>Wn,processExpression:()=>At,processFor:()=>It,processIf:()=>Pt,processSlotOutlet:()=>un,registerRuntimeHelpers:()=>ve,resolveComponentType:()=>tn,toValidAssetId:()=>v,trackSlotScopes:()=>$t,trackVForSlotScopes:()=>Gt,transform:()=>yt,transformBind:()=>_n,transformElement:()=>en,transformExpression:()=>jt,transformModel:()=>gn,transformOn:()=>mn,transformStyle:()=>Bn,traverseNode:()=>gt,walkBlockDeclarations:()=>function(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(!n.declare)for(const r of n.declarations)for(const s of i(r.id))t(s)}else"FunctionDeclaration"!==n.type&&"ClassDeclaration"!==n.type||!n.declare&&n.id&&t(n.id)},walkFunctionParams:()=>function(e,t){for(const n of e.params)for(const r of i(n))t(r)},walkIdentifiers:()=>function(e,t,n=0,r,s=Object.create(null)){},warnDeprecation:()=>function(e,t,n,...r){var s=qe(e,t);if("suppress-warning"!==s){const{message:i,link:a}=Je[e];s=`(deprecation ${e}) `+("function"==typeof i?i(...r):i)+(a?`
|
|
239
|
+
c.version="2.29.3",R(O),c.fn=A,c.min=nr,c.max=rr,c.now=sr,c.utc=u,c.unix=ui,c.months=pi,c.isDate=W,c.locale=Mn,c.invalid=J,c.duration=j,c.isMoment=_,c.weekdays=gi,c.parseZone=ci,c.localeData=bn,c.isDuration=ur,c.monthsShort=yi,c.weekdaysMin=vi,c.defineLocale=vn,c.updateLocale=Ln,c.locales=Yn,c.weekdaysShort=Mi,c.normalizeUnits=h,c.relativeTimeRounding=ra,c.relativeTimeThreshold=sa,c.calendarFormat=zr,c.prototype=A,c.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"},c}()},89:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(var[r,s]of t)n[r]=s;return n}}},r={},O.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return O.d(t,{a:t}),t},O.d=function(e,t){for(var n in t)O.o(t,n)&&!O.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},O.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),O.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},O.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},O.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},O.p="",j={},function(){"use strict";O.r(j),O.d(j,{default:function(){return E}}),"undefined"!=typeof window&&(e=(e=window.document.currentScript)&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(O.p=e[1]);var l=x(765);const d={id:"hcd-bootstrap"},u={class:"modal fade",id:"listModal",tabindex:"-1","aria-labelledby":"listModalLabel","aria-hidden":"true"},c={class:"modal-dialog modal-xl modal-dialog-centered"},m={class:"modal-content",style:{"background-color":"aliceblue"}},_={class:"modal-header"},f={class:"modal-title h4",id:"listModalLabel"},h=(0,l.createElementVNode)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),p={class:"modal-body"},y=(0,l.createElementVNode)("div",{class:"modal-footer"},[(0,l.createElementVNode)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"},"Cerrar")],-1);var r=O(7692),e=O(6265),s=O.n(e);const a={key:0,class:"table"},o=(0,l.createElementVNode)("thead",null,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("th",{scope:"col"},"Tipo Documento"),(0,l.createElementVNode)("th",{scope:"col"},"Fecha"),(0,l.createElementVNode)("th",{scope:"col"},"Archivo"),(0,l.createElementVNode)("th",{scope:"col"},"Acciones")])],-1),g={scope:"row"},M=["onClick"],v=[(0,l.createElementVNode)("i",{style:{"font-size":"17px"},class:"bi bi-trash-fill"},null,-1)],L=["onClick"],b=[(0,l.createElementVNode)("i",{style:{"font-size":"17px"},class:"bi bi-search"},null,-1)],Y={key:2,class:"btn btn-primary",type:"button",disabled:""},w=[(0,l.createElementVNode)("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1),(0,l.createTextVNode)(" Cargando... ")],k={key:1,class:"alert alert-secondary",role:"alert"};var e={name:"table-image",props:["files"],components:{},data(){return{loading:!1}},mounted(){},methods:{borrar(t,n){this.$swal.fire({title:"Advertencia",text:"Esta por eliminar un archivo, ¿ Desea continuar ?",icon:"warning",showCancelButton:!0,confirmButtonText:"Eliminar",cancelButtonText:"Cancelar",confirmButtonColor:"red"}).then(e=>{e.isConfirmed&&(this.loading=!0,s().post(this.hcdListOptions.base_url+"/escaner/grabarDocEscan",{accion:"B",id_doc_escan:n.id_doc_escan}).then(e=>{200==e.status&&s().post(this.hcdListOptions.base_url+"/escaner/deleteFiles",{archivos:[n.ruta+"/"+n.arch_mostrar]}).then(e=>{200==e.status&&this.$emit("removeElementFromList",t),this.loading=!1}).catch(e=>{console.log(e),this.$emit("addNotification","Ocurrió un error al intentar borrar el documento del FTP"),this.loading=!1}),this.loading=!1}).catch(e=>{console.log(e),this.$emit("addNotification","Ocurrió un error al intentar borrar el documento de la base de datos"),this.loading=!1}))})},abrir(e){this.loading=!0,s().post(this.hcdListOptions.base_url+"/escaner/getFileFromFTP",{fullPath:e.ruta+"/"+e.arch_mostrar}).then(async t=>{var n="";if("pdf"==t.data.extension){var e=await this.b64toBlob(t.data.base64File,"application/pdf"),n=URL.createObjectURL(e);window.open(n)}else{n="<img src='data:image/"+t.data.extension+";base64,"+t.data.base64File+"'>";let e=window.open("");e.document.write(n)}this.loading=!1}).catch(e=>{console.log(e),this.$emit("addNotification","Ocurrio un error al intentar abrir el documento"),this.loading=!1})},async b64toBlob(e,t=""){const n=await fetch(`data:${t};base64,`+e);return await n.blob()}}},t=O(89),e=(0,t.Z)(e,[["render",function(e,t,n,r,s,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",null,[0<n.files.length?((0,l.openBlock)(),(0,l.createElementBlock)("table",a,[o,(0,l.createElementVNode)("tbody",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(n.files,(t,n)=>((0,l.openBlock)(),(0,l.createElementBlock)("tr",{key:t.id_doc_escan},[(0,l.createElementVNode)("th",g,(0,l.toDisplayString)(t.d_tipo_doc_escan),1),(0,l.createElementVNode)("td",null,(0,l.toDisplayString)(e.$filters.formatDate(t.f_segu)),1),(0,l.createElementVNode)("td",null,(0,l.toDisplayString)(t.arch_mostrar),1),(0,l.createElementVNode)("td",null,[s.loading?(0,l.createCommentVNode)("",!0):((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,type:"button",class:"btn btn-danger btn-sm p-0 ps-1 pe-1",onClick:e=>i.borrar(n,t),title:"Eliminar"},v,8,M)),s.loading?(0,l.createCommentVNode)("",!0):((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,type:"button",class:"btn btn-info btn-sm ms-1 p-0 ps-1 pe-1",onClick:e=>i.abrir(t),title:"Previsualizar"},b,8,L)),s.loading?((0,l.openBlock)(),(0,l.createElementBlock)("button",Y,w)):(0,l.createCommentVNode)("",!0)])]))),128))])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",k," No hay elementos "))])}]]);const T={class:"toast-container position-fixed bottom-0 end-0 p-3"},D=(0,l.createElementVNode)("div",{class:"toast-header"},[(0,l.createElementVNode)("strong",{class:"me-auto"},"Notificación"),(0,l.createElementVNode)("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"})],-1),S={class:"toast-body"};var n=(0,t.Z)({name:"list-files",components:{TableImage:e,ToastAlert:(0,t.Z)({name:"toast-alert",components:{},data(){return{toasts:[]}},mounted(){},methods:{async addNotification(e){this.toasts.push({msg:e}),await(0,l.nextTick)();var t=this.toasts.length-1,e=this.$refs["toast"+t][0],n=r.Toast.getOrCreateInstance(e);e.addEventListener("hidden.bs.toast",()=>{this.toasts.splice(t,1)}),n.show()}}},[["render",function(e,t,n,r,s,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",T,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(s.toasts,(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:t,ref_for:!0,ref:"toast"+t,class:"toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[D,(0,l.createElementVNode)("div",S,(0,l.toDisplayString)(e.msg),1)]))),128))])}]])},data(){return{modal:null,files:[],title:""}},mounted(){this.options=this.hcdListOptions,this.modal=new r.Modal("#listModal",{show:!1})},methods:{async show(e,r){return new Promise((t,n)=>{this.title=void 0!==e.title?e.title:"Listado",s().post(this.hcdListOptions.base_url+"/escaner/getDocumentosEscaneados",r).then(e=>{200==e.status&&(this.files=e.data.res,this.modal.show(),t("Exito")),n("Error")}).catch(e=>{n(e.message)})})},removeElementFromList(e){this.files.splice(e,1),0===this.files.length&&this.$emit("lastDocEscanRemoved")},addNotification(e){this.$refs.toastAlert.addNotification(e)}}},[["render",function(e,t,n,r,s,i){var a=(0,l.resolveComponent)("table-image"),o=(0,l.resolveComponent)("toast-alert");return(0,l.openBlock)(),(0,l.createElementBlock)("div",d,[(0,l.createElementVNode)("div",u,[(0,l.createElementVNode)("div",c,[(0,l.createElementVNode)("div",m,[(0,l.createElementVNode)("div",_,[(0,l.createElementVNode)("h5",f,(0,l.toDisplayString)(s.title),1),h]),(0,l.createElementVNode)("div",p,[(0,l.createVNode)(a,{files:s.files,onRemoveElementFromList:i.removeElementFromList,onAddNotification:i.addNotification},null,8,["files","onRemoveElementFromList","onAddNotification"])]),y]),(0,l.createVNode)(o,{ref:"toastAlert"},null,512)])])])}]]),e=O(6797),i=O.n(e),E={install:(e,t)=>{if(e.component("list-files",n),e.use(t.sweetalert),void 0===t.base_url||""==t.base_url)throw"Debe indicar el parámetro 'base_url' en el Plugin Listado de Imágenes";e.config.globalProperties.hcdListOptions={},e.config.globalProperties.hcdListOptions.base_url=t.base_url,e.config.globalProperties.hcdListOptions.title="Listado",e.config.globalProperties.$filters={formatDate(e){return i()(String(e)).format("DD/MM/YYYY")}}}}}(),e.exports=j},3:(e,n,r)=>{"use strict";r.r(n),r.d(n,{BASE_TRANSITION:()=>s,CAMELIZE:()=>_,CAPITALIZE:()=>te,CREATE_BLOCK:()=>a,CREATE_COMMENT:()=>ue,CREATE_ELEMENT_BLOCK:()=>o,CREATE_ELEMENT_VNODE:()=>A,CREATE_SLOTS:()=>K,CREATE_STATIC:()=>P,CREATE_TEXT:()=>H,CREATE_VNODE:()=>j,DOMDirectiveTransforms:()=>Qn,DOMNodeTransforms:()=>Kn,FRAGMENT:()=>p,GUARD_REACTIVE_PROPS:()=>W,IS_MEMO_SAME:()=>Me,IS_REF:()=>ae,KEEP_ALIVE:()=>O,MERGE_PROPS:()=>Q,NORMALIZE_CLASS:()=>Z,NORMALIZE_PROPS:()=>I,NORMALIZE_STYLE:()=>X,OPEN_BLOCK:()=>de,POP_SCOPE_ID:()=>se,PUSH_SCOPE_ID:()=>re,RENDER_LIST:()=>R,RENDER_SLOT:()=>m,RESOLVE_COMPONENT:()=>d,RESOLVE_DIRECTIVE:()=>u,RESOLVE_DYNAMIC_COMPONENT:()=>C,RESOLVE_FILTER:()=>N,SET_BLOCK_TRACKING:()=>ye,SUSPENSE:()=>x,TELEPORT:()=>y,TO_DISPLAY_STRING:()=>pe,TO_HANDLERS:()=>ee,TO_HANDLER_KEY:()=>ne,TRANSITION:()=>Nn,TRANSITION_GROUP:()=>Rn,UNREF:()=>ie,V_MODEL_CHECKBOX:()=>xn,V_MODEL_DYNAMIC:()=>An,V_MODEL_RADIO:()=>En,V_MODEL_SELECT:()=>jn,V_MODEL_TEXT:()=>On,V_ON_WITH_KEYS:()=>Pn,V_ON_WITH_MODIFIERS:()=>Hn,V_SHOW:()=>Cn,WITH_CTX:()=>ge,WITH_DIRECTIVES:()=>he,WITH_MEMO:()=>oe,advancePositionWithClone:()=>Pe,advancePositionWithMutation:()=>Ce,assert:()=>function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},baseCompile:()=>Dn,baseParse:()=>Ze,buildDirectiveArgs:()=>sn,buildProps:()=>nn,buildSlots:()=>Qt,checkCompatEnabled:()=>$e,compile:()=>function(e,t={}){return Dn(e,(0,le.extend)({},Wn,t,{nodeTransforms:[Gn,...Kn,...t.nodeTransforms||[]],directiveTransforms:(0,le.extend)({},Qn,t.directiveTransforms||{}),transformHoist:null}))},createArrayExpression:()=>b,createAssignmentExpression:()=>function(e,t){return{type:24,left:e,right:t,loc:c}},createBlockStatement:()=>we,createCacheExpression:()=>Ye,createCallExpression:()=>U,createCompilerError:()=>F,createCompoundExpression:()=>M,createConditionalExpression:()=>be,createDOMCompilerError:()=>l,createForLoopParams:()=>Jt,createFunctionExpression:()=>Y,createIfStatement:()=>function(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:c}},createInterpolation:()=>function(e,t){return{type:5,loc:t,content:(0,le.isString)(e)?V(e,!1,t):e}},createObjectExpression:()=>B,createObjectProperty:()=>z,createReturnStatement:()=>function(e){return{type:26,returns:e,loc:c}},createRoot:()=>Le,createSequenceExpression:()=>function(e){return{type:25,expressions:e,loc:c}},createSimpleExpression:()=>V,createStructuralDirectiveTransform:()=>Mt,createTemplateLiteral:()=>function(e){return{type:22,elements:e,loc:c}},createTransformContext:()=>pt,createVNodeCall:()=>g,extractIdentifiers:()=>i,findDir:()=>w,findProp:()=>Ne,generate:()=>Yt,generateCodeFrame:()=>le.generateCodeFrame,getBaseTransformPreset:()=>Tn,getConstantType:()=>G,getInnerRange:()=>He,getMemoedVNodeCall:()=>Ve,getVNodeBlockHelper:()=>_e,getVNodeHelper:()=>me,hasDynamicKeyVBind:()=>Re,hasScopeRef:()=>function t(n,r){if(!n||0===Object.keys(r).length)return!1;switch(n.type){case 1:for(let e=0;e<n.props.length;e++){const s=n.props[e];if(7===s.type&&(t(s.arg,r)||t(s.exp,r)))return!0}return n.children.some(e=>t(e,r));case 11:return t(n.source,r)?!0:n.children.some(e=>t(e,r));case 9:return n.branches.some(e=>t(e,r));case 10:return t(n.condition,r)?!0:n.children.some(e=>t(e,r));case 4:return!n.isStatic&&De(n.content)&&!!r[n.content];case 8:return n.children.some(e=>(0,le.isObject)(e)&&t(e,r));case 5:case 12:return t(n.content,r);default:return!1}},helperNameMap:()=>ce,injectProp:()=>ze,isBuiltInType:()=>t,isCoreComponent:()=>ke,isFunctionType:()=>Et,isInDestructureAssignment:()=>function(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1},isMemberExpression:()=>Ae,isMemberExpressionBrowser:()=>Oe,isMemberExpressionNode:()=>je,isReferencedIdentifier:()=>function(e,t,n){return!1},isSimpleIdentifier:()=>De,isSlotOutlet:()=>We,isStaticArgOf:()=>q,isStaticExp:()=>J,isStaticProperty:()=>xt,isStaticPropertyKey:()=>Ot,isTemplateNode:()=>k,isText:()=>Fe,isVSlot:()=>Ie,locStub:()=>c,makeBlock:()=>Ue,noopDirectiveTransform:()=>Sn,parse:()=>function(e,t={}){return Ze(e,(0,le.extend)({},Wn,t))},parserOptions:()=>Wn,processExpression:()=>At,processFor:()=>It,processIf:()=>Pt,processSlotOutlet:()=>un,registerRuntimeHelpers:()=>ve,resolveComponentType:()=>tn,toValidAssetId:()=>v,trackSlotScopes:()=>$t,trackVForSlotScopes:()=>Gt,transform:()=>yt,transformBind:()=>_n,transformElement:()=>en,transformExpression:()=>jt,transformModel:()=>gn,transformOn:()=>mn,transformStyle:()=>Bn,traverseNode:()=>gt,walkBlockDeclarations:()=>function(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(!n.declare)for(const r of n.declarations)for(const s of i(r.id))t(s)}else"FunctionDeclaration"!==n.type&&"ClassDeclaration"!==n.type||!n.declare&&n.id&&t(n.id)},walkFunctionParams:()=>function(e,t){for(const n of e.params)for(const r of i(n))t(r)},walkIdentifiers:()=>function(e,t,n=0,r,s=Object.create(null)){},warnDeprecation:()=>function(e,t,n,...r){var s=qe(e,t);if("suppress-warning"!==s){const{message:i,link:a}=Je[e];s=`(deprecation ${e}) `+("function"==typeof i?i(...r):i)+(a?`
|
|
240
240
|
Details: `+a:"");const o=new SyntaxError(s);o.code=e,n&&(o.loc=n),t.onWarn(o)}}});var le=r(577);function S(e){throw e}function E(e){}function F(e,t,n,r){const s=new SyntaxError(String(e));return s.code=e,s.loc=t,s}const p=Symbol(""),y=Symbol(""),x=Symbol(""),O=Symbol(""),s=Symbol(""),de=Symbol(""),a=Symbol(""),o=Symbol(""),j=Symbol(""),A=Symbol(""),ue=Symbol(""),H=Symbol(""),P=Symbol(""),d=Symbol(""),C=Symbol(""),u=Symbol(""),N=Symbol(""),he=Symbol(""),R=Symbol(""),m=Symbol(""),K=Symbol(""),pe=Symbol(""),Q=Symbol(""),Z=Symbol(""),X=Symbol(""),I=Symbol(""),W=Symbol(""),ee=Symbol(""),_=Symbol(""),te=Symbol(""),ne=Symbol(""),ye=Symbol(""),re=Symbol(""),se=Symbol(""),ge=Symbol(""),ie=Symbol(""),ae=Symbol(""),oe=Symbol(""),Me=Symbol(""),ce={[p]:"Fragment",[y]:"Teleport",[x]:"Suspense",[O]:"KeepAlive",[s]:"BaseTransition",[de]:"openBlock",[a]:"createBlock",[o]:"createElementBlock",[j]:"createVNode",[A]:"createElementVNode",[ue]:"createCommentVNode",[H]:"createTextVNode",[P]:"createStaticVNode",[d]:"resolveComponent",[C]:"resolveDynamicComponent",[u]:"resolveDirective",[N]:"resolveFilter",[he]:"withDirectives",[R]:"renderList",[m]:"renderSlot",[K]:"createSlots",[pe]:"toDisplayString",[Q]:"mergeProps",[Z]:"normalizeClass",[X]:"normalizeStyle",[I]:"normalizeProps",[W]:"guardReactiveProps",[ee]:"toHandlers",[_]:"camelize",[te]:"capitalize",[ne]:"toHandlerKey",[ye]:"setBlockTracking",[re]:"pushScopeId",[se]:"popScopeId",[ge]:"withCtx",[ie]:"unref",[ae]:"isRef",[oe]:"withMemo",[Me]:"isMemoSame"};function ve(t){Object.getOwnPropertySymbols(t).forEach(e=>{ce[e]=t[e]})}const c={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Le(e,t=c){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function g(e,t,n,r,s,i,a,o=!1,l=!1,d=!1,u=c){return e&&(o?(e.helper(de),e.helper(_e(e.inSSR,d))):e.helper(me(e.inSSR,d)),a&&e.helper(he)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:i,directives:a,isBlock:o,disableTracking:l,isComponent:d,loc:u}}function b(e,t=c){return{type:17,loc:t,elements:e}}function B(e,t=c){return{type:15,loc:t,properties:e}}function z(e,t){return{type:16,loc:c,key:(0,le.isString)(e)?V(e,!0):e,value:t}}function V(e,t=!1,n=c,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function M(e,t=c){return{type:8,loc:t,children:e}}function U(e,t=[],n=c){return{type:14,loc:n,callee:e,arguments:t}}function Y(e,t=void 0,n=!1,r=!1,s=c){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function be(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:c}}function Ye(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:c}}function we(e){return{type:21,body:e,loc:c}}const J=e=>4===e.type&&e.isStatic,t=(e,t)=>e===t||e===(0,le.hyphenate)(t);function ke(e){return t(e,"Teleport")?y:t(e,"Suspense")?x:t(e,"KeepAlive")?O:t(e,"BaseTransition")?s:void 0}const Te=/^\d|[^\$\w]/,De=e=>!Te.test(e),Se=/[A-Za-z_$\xA0-\uFFFF]/,Ee=/[\.\?\w$\xA0-\uFFFF]/,xe=/\s+[.[]\s*|\s*[.[]\s+/g,Oe=t=>{t=t.trim().replace(xe,e=>e.trim());let n=0,r=[],s=0,i=0,a=null;for(let e=0;e<t.length;e++){var o=t.charAt(e);switch(n){case 0:if("["===o)r.push(n),n=1,s++;else if("("===o)r.push(n),n=2,i++;else if(!(0===e?Se:Ee).test(o))return!1;break;case 1:"'"===o||'"'===o||"`"===o?(r.push(n),n=3,a=o):"["===o?s++:"]"!==o||--s||(n=r.pop());break;case 2:if("'"===o||'"'===o||"`"===o)r.push(n),n=3,a=o;else if("("===o)i++;else if(")"===o){if(e===t.length-1)return!1;--i||(n=r.pop())}break;case 3:o===a&&(n=r.pop(),a=null)}}return!s&&!i},je=le.NOOP,Ae=Oe;function He(e,t,n){const r={source:e.source.slice(t,t+n),start:Pe(e.start,e.source,t),end:e.end};return null!=n&&(r.end=Pe(e.start,e.source,t+n)),r}function Pe(e,t,n=t.length){return Ce((0,le.extend)({},e),t,n)}function Ce(e,t,n=t.length){let r=0,s=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,s=e);return e.offset+=n,e.line+=r,e.column=-1===s?e.column+n:n-s,e}function w(t,n,r=!1){for(let e=0;e<t.props.length;e++){var s=t.props[e];if(7===s.type&&(r||s.exp)&&((0,le.isString)(n)?s.name===n:n.test(s.name)))return s}}function Ne(t,n,r=!1,s=!1){for(let e=0;e<t.props.length;e++){var i=t.props[e];if(6===i.type){if(!r&&i.name===n&&(i.value||s))return i}else if("bind"===i.name&&(i.exp||s)&&q(i.arg,n))return i}}function q(e,t){return!(!e||!J(e)||e.content!==t)}function Re(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function Fe(e){return 5===e.type||2===e.type}function Ie(e){return 7===e.type&&"slot"===e.name}function k(e){return 1===e.type&&3===e.tagType}function We(e){return 1===e.type&&2===e.tagType}function me(e,t){return e||t?j:A}function _e(e,t){return e||t?a:o}const Be=new Set([I,W]);function ze(e,t,n){let r,s=13===e.type?e.props:e.arguments[2],i=[],a;var o;if(s&&!(0,le.isString)(s)&&14===s.type&&(o=function e(t,n=[]){if(t&&!(0,le.isString)(t)&&14===t.type){var r=t.callee;if(!(0,le.isString)(r)&&Be.has(r))return e(t.arguments[0],n.concat(t))}return[t,n]}(s),s=o[0],i=o[1],a=i[i.length-1]),null==s||(0,le.isString)(s))r=B([t]);else if(14===s.type){const l=s.arguments[0];(0,le.isString)(l)||15!==l.type?s.callee===ee?r=U(n.helper(Q),[B([t]),s]):s.arguments.unshift(B([t])):l.properties.unshift(t),r=r||s}else if(15===s.type){let e=!1;if(4===t.key.type){const d=t.key.content;e=s.properties.some(e=>4===e.key.type&&e.key.content===d)}e||s.properties.unshift(t),r=s}else r=U(n.helper(Q),[B([t]),s]),a&&a.callee===W&&(a=i[i.length-2]);13===e.type?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function v(n,e){return`_${e}_`+n.replace(/[^\w]/g,(e,t)=>"-"===e?"_":n.charCodeAt(t).toString())}function Ve(e){return 14===e.type&&e.callee===oe?e.arguments[1].returns:e}function Ue(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(me(r,e.isComponent)),t(de),t(_e(r,e.isComponent)))}const Je={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>".sync modifier for v-bind has been removed. Use v-model with "+`argument instead. \`v-bind:${e}.sync\` should be changed to `+`\`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_PROP:{message:".prop modifier for v-bind has been removed and no longer necessary. Vue 3 will automatically set a binding as DOM property when appropriate."},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTER:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function qe(e,t){t=(t.options||t).compatConfig,t=t&&t[e];return"MODE"===e?t||3:t}function $(e,t){var n=qe("MODE",t),e=qe(e,t);return 3===n?!0===e:!1!==e}function $e(e,t,n){return $(e,t)}const Ge=/&(gt|lt|amp|apos|quot);/g,Ke={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Qe={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:le.NO,isPreTag:le.NO,isCustomElement:le.NO,decodeEntities:e=>e.replace(Ge,(e,t)=>Ke[t]),onError:S,onWarn:E,comments:!1};function Ze(e,t={}){e=function(e,t){const n=(0,le.extend)({},Qe);let r;for(r in t)n[r]=(void 0===t[r]?Qe:t)[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),t=f(e);return Le(Xe(e,0,[]),h(e,t))}function Xe(n,e,r){var s=at(r),i=s?s.ns:0;const a=[];for(;!function(e,t,n){var r=e.source;switch(t){case 0:if(L(r,"</"))for(let e=n.length-1;0<=e;--e)if(dt(r,n[e].tag))return 1;break;case 1:case 2:var s=at(n);if(s&&dt(r,s.tag))return 1;break;case 3:if(L(r,"]]>"))return 1}return!r}(n,e,r);){var o=n.source;let t=void 0;if(0===e||1===e)if(!n.inVPre&&L(o,n.options.delimiters[0]))t=function(e,t){var[n,r]=e.options.delimiters,s=e.source.indexOf(r,n.length);if(-1===s)return void D(e,25);const i=f(e),a=(T(e,n.length),f(e)),o=f(e),l=s-n.length,d=e.source.slice(0,l),u=it(e,l,t),c=u.trim(),m=u.indexOf(c);0<m&&Ce(a,d,m);s=l-(u.length-c.length-m);return Ce(o,d,s),T(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:c,loc:h(e,a,o)},loc:h(e,i)}}(n,e);else if(0===e&&"<"===o[0])if(1===o.length)D(n,5,1);else if("!"===o[1])t=L(o,"\x3c!--")?function(n){var e=f(n);let r;var s=/--(\!)?>/.exec(n.source);if(s){s.index<=3&&D(n,0),s[1]&&D(n,10),r=n.source.slice(4,s.index);const i=n.source.slice(0,s.index);let e=1,t=0;for(;-1!==(t=i.indexOf("\x3c!--",e));)T(n,t-e+1),t+4<i.length&&D(n,16),e=t+1;T(n,s.index+s[0].length-e+1)}else r=n.source.slice(4),T(n,n.source.length),D(n,7);return{type:3,content:r,loc:h(n,e)}}(n):L(o,"<!DOCTYPE")?tt(n):L(o,"<![CDATA[")?0!==i?function(e,t){T(e,9);t=Xe(e,3,t);0===e.source.length?D(e,6):T(e,3);return t}(n,r):(D(n,1),tt(n)):(D(n,11),tt(n));else if("/"===o[1])if(2===o.length)D(n,5,2);else{if(">"===o[2]){D(n,14,2),T(n,3);continue}if(/[a-z]/i.test(o[2])){D(n,23),rt(n,1,s);continue}D(n,12,2),t=tt(n)}else/[a-z]/i.test(o[1])?(t=function(e,t){const n=e.inPre,r=e.inVPre,s=at(t),i=rt(e,0,s),a=e.inPre&&!n,o=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))a&&(e.inPre=!1),o&&(e.inVPre=!1);else{t.push(i);var l=e.options.getTextMode(i,s),l=Xe(e,l,t);t.pop();{const d=i.props.find(e=>6===e.type&&"inline-template"===e.name);d&&$e("COMPILER_INLINE_TEMPLATE",e,d.loc)&&(t=h(e,i.loc.end),d.value={type:2,content:t.source,loc:t})}i.children=l,dt(e.source,i.tag)?rt(e,1,s):(D(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()&&(t=l[0])&&L(t.loc.source,"\x3c!--")&&D(e,8)),i.loc=h(e,i.loc.start),a&&(e.inPre=!1),o&&(e.inVPre=!1)}return i}(n,r),$("COMPILER_NATIVE_TEMPLATE",n)&&t&&"template"===t.tag&&!t.props.some(e=>7===e.type&&nt(e.name))&&(t=t.children)):"?"===o[1]?(D(n,21,1),t=tt(n)):D(n,12,1);if(t=t||function(t,e){var n=3===e?["]]>"]:["<",t.options.delimiters[0]];let r=t.source.length;for(let e=0;e<n.length;e++){var s=t.source.indexOf(n[e],1);-1!==s&&r>s&&(r=s)}var i=f(t),e=it(t,r,e);return{type:2,content:e,loc:h(t,i)}}(n,e),(0,le.isArray)(t))for(let e=0;e<t.length;e++)et(a,t[e]);else et(a,t)}let t=!1;if(2!==e&&1!==e){var l,d,u="preserve"!==n.options.whitespace;for(let e=0;e<a.length;e++){const c=a[e];n.inPre||2!==c.type?3!==c.type||n.options.comments||(t=!0,a[e]=null):/[^\t\r\n\f ]/.test(c.content)?u&&(c.content=c.content.replace(/[\t\r\n\f ]+/g," ")):(l=a[e-1],d=a[e+1],!l||!d||u&&(3===l.type||3===d.type||1===l.type&&1===d.type&&/[\r\n]/.test(c.content))?(t=!0,a[e]=null):c.content=" ")}if(n.inPre&&s&&n.options.isPreTag(s.tag)){const m=a[0];m&&2===m.type&&(m.content=m.content.replace(/^\r?\n/,""))}}return t?a.filter(Boolean):a}function et(e,t){if(2===t.type){const n=at(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function tt(e){var t=f(e),n="?"===e.source[1]?1:2;let r;var s=e.source.indexOf(">");return-1===s?(r=e.source.slice(n),T(e,e.source.length)):(r=e.source.slice(n,s),T(e,s+1)),{type:3,content:r,loc:h(e,t)}}const nt=(0,le.makeMap)("if,else,else-if,for,slot");function rt(t,e,n){var r=f(t),s=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),i=s[1],n=t.options.getNamespace(i,n),s=(T(t,s[0].length),ot(t),f(t)),a=t.source;t.options.isPreTag(i)&&(t.inPre=!0);let o=st(t,e),l=(0===e&&!t.inVPre&&o.some(e=>7===e.type&&"pre"===e.name)&&(t.inVPre=!0,(0,le.extend)(t,s),t.source=a,o=st(t,e).filter(e=>"v-pre"!==e.name)),!1);if(0===t.source.length?D(t,9):(l=L(t.source,"/>"),1===e&&l&&D(t,4),T(t,l?2:1)),1!==e){let e=0;return t.inVPre||("slot"===i?e=2:"template"===i?o.some(e=>7===e.type&&nt(e.name))&&(e=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return;if("component"===e||/^[A-Z]/.test(e)||ke(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return 1;for(let e=0;e<t.length;e++){const s=t[e];if(6===s.type){if("is"===s.name&&s.value){if(s.value.content.startsWith("vue:"))return 1;if($e("COMPILER_IS_ON_ELEMENT",n,s.loc))return 1}}else{if("is"===s.name)return 1;if("bind"===s.name&&q(s.arg,"is")&&$e("COMPILER_IS_ON_ELEMENT",n,s.loc))return 1}}}(i,o,t)&&(e=1)),{type:1,ns:n,tag:i,tagType:e,props:o,isSelfClosing:l,children:[],loc:h(t,r),codegenNode:void 0}}}function st(e,t){const n=[];for(var r=new Set;0<e.source.length&&!L(e.source,">")&&!L(e.source,"/>");)if(L(e.source,"/"))D(e,22),T(e,1),ot(e);else{1===t&&D(e,3);const s=function(s,e){const i=f(s),a=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(s.source),o=a[0];e.has(o)&&D(s,2);e.add(o),"="===o[0]&&D(s,19);{const n=/["'<]/g;for(var t;t=n.exec(o);)D(s,17,t.index)}T(s,o.length);let l=void 0;/^[\t\r\n\f ]*=/.test(s.source)&&(ot(s),T(s,1),ot(s),(l=function(e){var t=f(e);let n;var r=e.source[0],s='"'===r||"'"===r;if(s){T(e,1);r=e.source.indexOf(r);-1===r?n=it(e,e.source.length,4):(n=it(e,r,4),T(e,1))}else{var i,a=/^[^\t\r\n\f >]+/.exec(e.source);if(!a)return;const o=/["'<=`]/g;for(;i=o.exec(a[0]);)D(e,18,i.index);n=it(e,a[0].length,4)}return{content:n,isQuoted:s,loc:h(e,t)}}(s))||D(s,13));const d=h(s,i);if(!s.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);e=L(o,".");let n=a[1]||(e||L(o,":")?"bind":L(o,"@")?"on":"slot"),r;if(a[2]){var u="slot"===n,c=o.lastIndexOf(a[2]);const d=h(s,lt(s,i,c),lt(s,i,c+a[2].length+(u&&a[3]||"").length));let e=a[2],t=!0;e.startsWith("[")?(t=!1,e=e.endsWith("]")?e.slice(1,e.length-1):(D(s,27),e.slice(1))):u&&(e+=a[3]||""),r={type:4,content:e,isStatic:t,constType:t?3:0,loc:d}}if(l&&l.isQuoted){const _=l.loc;_.start.offset++,_.start.column++,_.end=Pe(_.start,l.content),_.source=_.source.slice(1,-1)}const m=a[3]?a[3].slice(1).split("."):[];return e&&m.push("prop"),"bind"===n&&r&&m.includes("sync")&&$e("COMPILER_V_BIND_SYNC",s,d,r.loc.source)&&(n="model",m.splice(m.indexOf("sync"),1)),{type:7,name:n,exp:l&&{type:4,content:l.content,isStatic:!1,constType:0,loc:l.loc},arg:r,modifiers:m,loc:d}}!s.inVPre&&L(o,"v-")&&D(s,26);return{type:6,name:o,value:l&&{type:2,content:l.content,loc:l.loc},loc:d}}(e,r);6===s.type&&s.value&&"class"===s.name&&(s.value.content=s.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(s),/^[^\t\r\n\f />]/.test(e.source)&&D(e,15),ot(e)}return n}function it(e,t,n){const r=e.source.slice(0,t);return T(e,t),2!==n&&3!==n&&r.includes("&")?e.options.decodeEntities(r,4===n):r}function f(e){var{column:e,line:t,offset:n}=e;return{column:e,line:t,offset:n}}function h(e,t,n){return{start:t,end:n=n||f(e),source:e.originalSource.slice(t.offset,n.offset)}}function at(e){return e[e.length-1]}function L(e,t){return e.startsWith(t)}function T(e,t){const n=e["source"];Ce(e,n,t),e.source=n.slice(t)}function ot(e){var t=/^[\t\r\n\f ]+/.exec(e.source);t&&T(e,t[0].length)}function lt(e,t,n){return Pe(t,e.originalSource.slice(t.offset,n),n)}function D(e,t,n,r=f(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(F(t,{start:r,end:r,source:""}))}function dt(e,t){return L(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function ut(e,t){!function t(e,n,r=!1){const s=e["children"];const i=s.length;let a=0;for(let e=0;e<s.length;e++){const o=s[e];if(1===o.type&&0===o.tagType){const l=r?0:G(o,n);if(0<l){if(2<=l){o.codegenNode.patchFlag="-1",o.codegenNode=n.hoist(o.codegenNode),a++;continue}}else{const d=o.codegenNode;if(13===d.type){const u=ht(d);if((!u||512===u||1===u)&&2<=_t(o,n)){const c=ft(o);c&&(d.props=n.hoist(c))}d.dynamicProps&&(d.dynamicProps=n.hoist(d.dynamicProps))}}}else 12===o.type&&2<=G(o.content,n)&&(o.codegenNode=n.hoist(o.codegenNode),a++);if(1===o.type){const m=1===o.tagType;m&&n.scopes.vSlot++,t(o,n),m&&n.scopes.vSlot--}else if(11===o.type)t(o,n,1===o.children.length);else if(9===o.type)for(let e=0;e<o.branches.length;e++)t(o.branches[e],n,1===o.branches[e].children.length)}a&&n.transformHoist&&n.transformHoist(s,n,e);a&&a===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,le.isArray)(e.codegenNode.children)&&(e.codegenNode.children=n.hoist(b(e.codegenNode.children)))}(e,t,ct(e,e.children[0]))}function ct(e,t){e=e.children;return 1===e.length&&1===t.type&&!We(t)}function G(n,r){const s=r["constantCache"];switch(n.type){case 1:if(0!==n.tagType)return 0;var e=s.get(n);if(void 0!==e)return e;const l=n.codegenNode;if(13!==l.type)return 0;if(l.isBlock&&"svg"!==n.tag&&"foreignObject"!==n.tag)return 0;if(ht(l))return s.set(n,0),0;{let t=3;e=_t(n,r);if(0===e)return s.set(n,0),0;e<t&&(t=e);for(let e=0;e<n.children.length;e++){var i=G(n.children[e],r);if(0===i)return s.set(n,0),0;i<t&&(t=i)}if(1<t)for(let e=0;e<n.props.length;e++){var a=n.props[e];if(7===a.type&&"bind"===a.name&&a.exp){a=G(a.exp,r);if(0===a)return s.set(n,0),0;a<t&&(t=a)}}if(l.isBlock){for(let e=0;e<n.props.length;e++)if(7===n.props[e].type)return s.set(n,0),0;r.removeHelper(de),r.removeHelper(_e(r.inSSR,l.isComponent)),l.isBlock=!1,r.helper(me(r.inSSR,l.isComponent))}return s.set(n,t),t}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return G(n.content,r);case 4:return n.constType;case 8:let t=3;for(let e=0;e<n.children.length;e++){var o=n.children[e];if(!(0,le.isString)(o)&&!(0,le.isSymbol)(o)){o=G(o,r);if(0===o)return 0;o<t&&(t=o)}}return t;default:return 0}}const mt=new Set([Z,X,I,W]);function _t(e,n){let r=3;e=ft(e);if(e&&15===e.type){var s=e["properties"];for(let t=0;t<s.length;t++){var{key:i,value:a}=s[t],i=G(i,n);if(0===i)return i;i<r&&(r=i);let e;if(0===(e=4===a.type?G(a,n):14===a.type?function e(t,n){if(14===t.type&&!(0,le.isString)(t.callee)&&mt.has(t.callee)){if(4===(t=t.arguments[0]).type)return G(t,n);if(14===t.type)return e(t,n)}return 0}(a,n):0))return e;e<r&&(r=e)}}return r}function ft(e){e=e.codegenNode;if(13===e.type)return e.props}function ht(e){e=e.patchFlag;return e?parseInt(e,10):void 0}function pt(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:s=!1,nodeTransforms:i=[],directiveTransforms:a={},transformHoist:o=null,isBuiltInComponent:l=le.NOOP,isCustomElement:d=le.NOOP,expressionPlugins:u=[],scopeId:c=null,slotted:m=!0,ssr:_=!1,inSSR:f=!1,ssrCssVars:h="",bindingMetadata:p=le.EMPTY_OBJ,inline:y=!1,isTS:g=!1,onError:M=S,onWarn:v=E,compatConfig:L}){t=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/);const b={selfName:t&&(0,le.capitalize)((0,le.camelize)(t[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:s,nodeTransforms:i,directiveTransforms:a,transformHoist:o,isBuiltInComponent:l,isCustomElement:d,expressionPlugins:u,scopeId:c,slotted:m,ssr:_,inSSR:f,ssrCssVars:h,bindingMetadata:p,inline:y,isTS:g,onError:M,onWarn:v,compatConfig:L,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){var t=b.helpers.get(e)||0;return b.helpers.set(e,t+1),e},removeHelper(e){var t=b.helpers.get(e);t&&((t=t-1)?b.helpers.set(e,t):b.helpers.delete(e))},helperString(e){return"_"+ce[b.helper(e)]},replaceNode(e){b.parent.children[b.childIndex]=b.currentNode=e},removeNode(e){const t=b.parent.children;var n=e?t.indexOf(e):b.currentNode?b.childIndex:-1;e&&e!==b.currentNode?b.childIndex>n&&(b.childIndex--,b.onNodeRemoved()):(b.currentNode=null,b.onNodeRemoved()),b.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,le.isString)(e)&&(e=V(e)),b.hoists.push(e);const t=V("_hoisted_"+b.hoists.length,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return Ye(b.cached++,e,t)}};return b.filters=new Set,b}function yt(e,t){const n=pt(e,t);if(gt(e,n),t.hoistStatic&&ut(e,n),!t.ssr){t=e;var r=n;const a=r["helper"],o=t["children"];{var s,i;1===o.length?(s=o[0],ct(t,s)&&s.codegenNode?(13===(i=s.codegenNode).type&&Ue(i,r),t.codegenNode=i):t.codegenNode=s):1<o.length&&(le.PatchFlagNames[64],t.codegenNode=g(r,a(p),void 0,t.children,"64",void 0,void 0,!0,void 0,!1))}}e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function gt(t,n){n.currentNode=t;const r=n["nodeTransforms"],s=[];for(let e=0;e<r.length;e++){var i=r[e](t,n);if(i&&((0,le.isArray)(i)?s.push(...i):s.push(i)),!n.currentNode)return;t=n.currentNode}switch(t.type){case 3:n.ssr||n.helper(ue);break;case 5:n.ssr||n.helper(pe);break;case 9:for(let e=0;e<t.branches.length;e++)gt(t.branches[e],n);break;case 10:case 11:case 1:case 0:{var a=t;var o=n;let e=0;for(var l=()=>{e--};e<a.children.length;e++){var d=a.children[e];(0,le.isString)(d)||(o.parent=a,o.childIndex=e,o.onNodeRemoved=l,gt(d,o))}}}n.currentNode=t;let e=s.length;for(;e--;)s[e]()}function Mt(t,a){const o=(0,le.isString)(t)?e=>e===t:e=>t.test(e);return(t,n)=>{if(1===t.type){const s=t["props"];if(3!==t.tagType||!s.some(Ie)){const i=[];for(let e=0;e<s.length;e++){var r=s[e];7===r.type&&o(r.name)&&(s.splice(e,1),e--,(r=a(t,r,n))&&i.push(r))}return i}}}}const vt="/*#__PURE__*/",Lt=e=>ce[e]+": _"+ce[e];function bt(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:s="template.vue.html",scopeId:i=null,optimizeImports:a=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:u=!1,isTS:c=!1,inSSR:m=!1}){const _={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:i,optimizeImports:a,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:d,ssr:u,isTS:c,inSSR:m,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return"_"+ce[e]},push(e,t){_.code+=e},indent(){f(++_.indentLevel)},deindent(e=!1){e?--_.indentLevel:f(--_.indentLevel)},newline(){f(_.indentLevel)}};function f(e){_.push("\n"+" ".repeat(e))}return _}function Yt(t,e={}){const n=bt(t,e),{mode:r,push:s,prefixIdentifiers:i,indent:a,deindent:o,newline:l,ssr:d}=(e.onContextCreated&&e.onContextCreated(n),n);var e=0<t.helpers.length,u=!i&&"module"!==r,c=n;{var m=t;const{push:h,newline:p,runtimeGlobalName:y}=c,g=y;0<m.helpers.length&&(h(`const _Vue = ${g}
|
|
241
241
|
`),m.hoists.length&&(_=[j,A,ue,H,P].filter(e=>m.helpers.includes(e)).map(Lt).join(", "),h(`const { ${_} } = _Vue
|
|
242
242
|
`)));(function(t,n){if(t.length){n.pure=!0;const{push:s,newline:i}=n;i();for(let e=0;e<t.length;e++){var r=t[e];r&&(s(`const _hoisted_${e+1} = `),fe(r,n),i())}n.pure=!1}})(m.hoists,c),p(),h("return ")}var _=d?"ssrRender":"render";const f=d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];c=f.join(", ");if(s(`function ${_}(${c}) {`),a(),u&&(s("with (_ctx) {"),a(),e&&(s(`const { ${t.helpers.map(Lt).join(", ")} } = _Vue`),s(`
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hcd-bsas/list-documents-adapter",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"main": "dist/ListDocuments.min.js",
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"devDependencies": {
|
|
11
|
-
"@hcd-bsas/bootstrap5": "^0.0.2",
|
|
12
|
-
"@hcd-bsas/list-documents-plugin": "^0.0.
|
|
13
|
-
"babel-loader": "^8.2.5",
|
|
14
|
-
"browserify": "^17.0.0",
|
|
15
|
-
"css-loader": "^6.7.1",
|
|
16
|
-
"file-loader": "^6.2.0",
|
|
17
|
-
"html-loader": "^4.1.0",
|
|
18
|
-
"mini-css-extract-plugin": "^2.6.1",
|
|
19
|
-
"postcss": "^8.4.14",
|
|
20
|
-
"postcss-loader": "^7.0.1",
|
|
21
|
-
"sass-loader": "^13.0.2",
|
|
22
|
-
"style-loader": "^3.3.1",
|
|
23
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
24
|
-
"url-loader": "^4.1.1",
|
|
25
|
-
"vue": "^3.2.37",
|
|
26
|
-
"vue-loader": "^17.0.0",
|
|
27
|
-
"vue-style-loader": "^4.1.3",
|
|
28
|
-
"vue-template-compiler": "^2.7.8",
|
|
29
|
-
"webpack": "^5.
|
|
30
|
-
"webpack-cli": "^4.9.2"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"vue-sweetalert2": "^5.0.5"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"serve": "webpack --mode=development",
|
|
37
|
-
"build": "webpack --mode=production"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@hcd-bsas/list-documents-adapter",
|
|
3
|
+
"version": "0.0.9",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/ListDocuments.min.js",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@hcd-bsas/bootstrap5": "^0.0.2",
|
|
12
|
+
"@hcd-bsas/list-documents-plugin": "^0.0.11",
|
|
13
|
+
"babel-loader": "^8.2.5",
|
|
14
|
+
"browserify": "^17.0.0",
|
|
15
|
+
"css-loader": "^6.7.1",
|
|
16
|
+
"file-loader": "^6.2.0",
|
|
17
|
+
"html-loader": "^4.1.0",
|
|
18
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
19
|
+
"postcss": "^8.4.14",
|
|
20
|
+
"postcss-loader": "^7.0.1",
|
|
21
|
+
"sass-loader": "^13.0.2",
|
|
22
|
+
"style-loader": "^3.3.1",
|
|
23
|
+
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
24
|
+
"url-loader": "^4.1.1",
|
|
25
|
+
"vue": "^3.2.37",
|
|
26
|
+
"vue-loader": "^17.0.0",
|
|
27
|
+
"vue-style-loader": "^4.1.3",
|
|
28
|
+
"vue-template-compiler": "^2.7.8",
|
|
29
|
+
"webpack": "^5.75.0",
|
|
30
|
+
"webpack-cli": "^4.9.2"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"vue-sweetalert2": "^5.0.5"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"serve": "webpack --mode=development",
|
|
37
|
+
"build": "webpack --mode=production"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
# js-plugin
|
|
3
|
-
|
|
4
|
-
## Estructura del proyecto
|
|
5
|
-
|
|
6
|
-
Genera una librería javascript que funciona como "adapter" del plugin generado con vue-cli-plugin, la cual permite que se lo pueda utilizar desde cualquier entorno javascript sin necesidad de que el proyecto sea Vue 3.
|
|
7
|
-
|
|
8
|
-
Internamente la librería exporta una app de Vue 3 que usa el Plugin **list-documents-plugin**.
|
|
9
|
-
|
|
10
|
-
## Pre-requisitos
|
|
11
|
-
|
|
12
|
-
### Es necesario tener instalado
|
|
13
|
-
|
|
14
|
-
* [Node Js LTS](https://nodejs.org/en/) La versión utilizada para el primer desarrollo fue 16.14.0 LTS.
|
|
15
|
-
* [yarn](https://yarnpkg.com/)
|
|
16
|
-
|
|
17
|
-
~~~
|
|
18
|
-
npm install -g yarn
|
|
19
|
-
~~~
|
|
20
|
-
|
|
21
|
-
### Recomendaciones opcionales para instalar
|
|
22
|
-
|
|
23
|
-
* [Visual Studio Code](https://code.visualstudio.com/)
|
|
24
|
-
* [CMDER](https://github.com/cmderdev/cmder) es una consola de comandos sencilla con algunas sintaxis linux
|
|
25
|
-
|
|
26
|
-
## Instalación
|
|
27
|
-
|
|
28
|
-
El proyecto javascript esta armado con [webpack](https://webpack.js.org/concepts/) y algunas librerías adicionales.
|
|
29
|
-
|
|
30
|
-
Su instalación es sencilla ejecutando en la raíz del directorio el comando **install** que agregara todas las dependencias necesarias:
|
|
31
|
-
|
|
32
|
-
~~~
|
|
33
|
-
yarn install
|
|
34
|
-
~~~
|
|
35
|
-
|
|
36
|
-
## Compilación desarrollo
|
|
37
|
-
|
|
38
|
-
El comando **serve** compila el proyecto y se lu puede probar desde el test_javascript.html:
|
|
39
|
-
|
|
40
|
-
~~~
|
|
41
|
-
yarn serve
|
|
42
|
-
~~~
|
|
43
|
-
|
|
44
|
-
## Compilación productiva y publicación en NPM
|
|
45
|
-
|
|
46
|
-
### Compilación producción
|
|
47
|
-
|
|
48
|
-
El comando **build** compila el proyecto comprimido para luego poder ser distribuido.
|
|
49
|
-
|
|
50
|
-
~~~
|
|
51
|
-
yarn build
|
|
52
|
-
~~~
|
|
53
|
-
|
|
54
|
-
### Publicación NPM
|
|
55
|
-
|
|
56
|
-
Posteriormente para poder publicar la librería en [NPM](https://www.npmjs.com/) se debe:
|
|
57
|
-
|
|
58
|
-
1) Tener un usuario registrado. [Ir al registro...](https://www.npmjs.com/signup)
|
|
59
|
-
|
|
60
|
-
2) Acceder a la cuenta de NPM de la HDC desde el navegador y agregar como administrador al usuario registrado en la organización **@hcd-bsas**. Credenciales:
|
|
61
|
-
|
|
62
|
-
> Usuario: desarrollohcd
|
|
63
|
-
|
|
64
|
-
> Contraseña: "la misma que se utiliza en el correo hcddesarrolladoras@gmail.com"
|
|
65
|
-
|
|
66
|
-
3) Autenticar con el usuario registrado en el paso 1 desde la linea de comandos
|
|
67
|
-
|
|
68
|
-
~~~
|
|
69
|
-
yarn login
|
|
70
|
-
~~~
|
|
71
|
-
|
|
72
|
-
4) Asegurase de previamente haber compilado la librería en modo producción (comando **build**).
|
|
73
|
-
|
|
74
|
-
5) Publicar librería con el comando **publish**, el cual preguntara cual es el nuevo número de versión. En donde "version": *.*.* --> El primer número corresponde a cambios grandes, el segundo nuevas funcionalidades y el tercero corrección de errores o cambios menores.
|
|
75
|
-
|
|
76
|
-
~~~
|
|
77
|
-
yarn publish
|
|
78
|
-
~~~
|
|
79
|
-
|
|
80
|
-
Nota: En ocasiones da el error "You cannot publish over the previously published versions" al no poder cambiar la versión de la librería desde la linea de comandos. Para ello se debe aumentar el número de versión en la opción **version** del package.json
|
|
81
|
-
|
|
82
|
-
### Como hacer uso de la librería con NPM
|
|
83
|
-
|
|
84
|
-
Pero para poder instalar la librería en cualquier otro proyecto se debe correr el comando en el directorio donde el proyecto contenga las librerías javascript.
|
|
85
|
-
|
|
86
|
-
~~~
|
|
87
|
-
yarn add @hcd-bsas/list-documents-adapter
|
|
88
|
-
~~~
|
|
89
|
-
|
|
90
|
-
Luego se debe indicar en el constructor la url base donde se encuentran los endpoint para obtener la información a visualizar.
|
|
91
|
-
|
|
92
|
-
~~~
|
|
93
|
-
var list = new ImagesList({
|
|
94
|
-
base_url: "http://localhost/admin",
|
|
95
|
-
});
|
|
96
|
-
~~~
|
|
97
|
-
|
|
98
|
-
A partir de la instancia creada se puede invocar al método **open** que recibe 2 parámetros, las opciones de configuración de la app y los parámetros a pasar al endpoint que recupera el listado.
|
|
99
|
-
|
|
100
|
-
Por otro lado el método **open** retorna una promesa que indica cuando el plugin finalizo y esta visible.
|
|
101
|
-
|
|
102
|
-
~~~
|
|
103
|
-
list.open({
|
|
104
|
-
title: "Listado de imágenes escaneadas en Rhys"
|
|
105
|
-
},{
|
|
106
|
-
id_tabla: ****,
|
|
107
|
-
id_tabla_reg: ****,
|
|
108
|
-
id_dependen_responsable: ****,
|
|
109
|
-
id_pers_reso: ****,
|
|
110
|
-
campo_escan: ****
|
|
111
|
-
}).then((response) => {
|
|
112
|
-
console.log(response)
|
|
113
|
-
});
|
|
114
|
-
~~~
|
|
115
|
-
|
|
116
|
-
Nota: Se puede ver un ejemplo funcional completo en el archivo test_javascript.html
|
|
1
|
+
|
|
2
|
+
# js-plugin
|
|
3
|
+
|
|
4
|
+
## Estructura del proyecto
|
|
5
|
+
|
|
6
|
+
Genera una librería javascript que funciona como "adapter" del plugin generado con vue-cli-plugin, la cual permite que se lo pueda utilizar desde cualquier entorno javascript sin necesidad de que el proyecto sea Vue 3.
|
|
7
|
+
|
|
8
|
+
Internamente la librería exporta una app de Vue 3 que usa el Plugin **list-documents-plugin**.
|
|
9
|
+
|
|
10
|
+
## Pre-requisitos
|
|
11
|
+
|
|
12
|
+
### Es necesario tener instalado
|
|
13
|
+
|
|
14
|
+
* [Node Js LTS](https://nodejs.org/en/) La versión utilizada para el primer desarrollo fue 16.14.0 LTS.
|
|
15
|
+
* [yarn](https://yarnpkg.com/)
|
|
16
|
+
|
|
17
|
+
~~~
|
|
18
|
+
npm install -g yarn
|
|
19
|
+
~~~
|
|
20
|
+
|
|
21
|
+
### Recomendaciones opcionales para instalar
|
|
22
|
+
|
|
23
|
+
* [Visual Studio Code](https://code.visualstudio.com/)
|
|
24
|
+
* [CMDER](https://github.com/cmderdev/cmder) es una consola de comandos sencilla con algunas sintaxis linux
|
|
25
|
+
|
|
26
|
+
## Instalación
|
|
27
|
+
|
|
28
|
+
El proyecto javascript esta armado con [webpack](https://webpack.js.org/concepts/) y algunas librerías adicionales.
|
|
29
|
+
|
|
30
|
+
Su instalación es sencilla ejecutando en la raíz del directorio el comando **install** que agregara todas las dependencias necesarias:
|
|
31
|
+
|
|
32
|
+
~~~
|
|
33
|
+
yarn install
|
|
34
|
+
~~~
|
|
35
|
+
|
|
36
|
+
## Compilación desarrollo
|
|
37
|
+
|
|
38
|
+
El comando **serve** compila el proyecto y se lu puede probar desde el test_javascript.html:
|
|
39
|
+
|
|
40
|
+
~~~
|
|
41
|
+
yarn serve
|
|
42
|
+
~~~
|
|
43
|
+
|
|
44
|
+
## Compilación productiva y publicación en NPM
|
|
45
|
+
|
|
46
|
+
### Compilación producción
|
|
47
|
+
|
|
48
|
+
El comando **build** compila el proyecto comprimido para luego poder ser distribuido.
|
|
49
|
+
|
|
50
|
+
~~~
|
|
51
|
+
yarn build
|
|
52
|
+
~~~
|
|
53
|
+
|
|
54
|
+
### Publicación NPM
|
|
55
|
+
|
|
56
|
+
Posteriormente para poder publicar la librería en [NPM](https://www.npmjs.com/) se debe:
|
|
57
|
+
|
|
58
|
+
1) Tener un usuario registrado. [Ir al registro...](https://www.npmjs.com/signup)
|
|
59
|
+
|
|
60
|
+
2) Acceder a la cuenta de NPM de la HDC desde el navegador y agregar como administrador al usuario registrado en la organización **@hcd-bsas**. Credenciales:
|
|
61
|
+
|
|
62
|
+
> Usuario: desarrollohcd
|
|
63
|
+
|
|
64
|
+
> Contraseña: "la misma que se utiliza en el correo hcddesarrolladoras@gmail.com"
|
|
65
|
+
|
|
66
|
+
3) Autenticar con el usuario registrado en el paso 1 desde la linea de comandos
|
|
67
|
+
|
|
68
|
+
~~~
|
|
69
|
+
yarn login
|
|
70
|
+
~~~
|
|
71
|
+
|
|
72
|
+
4) Asegurase de previamente haber compilado la librería en modo producción (comando **build**).
|
|
73
|
+
|
|
74
|
+
5) Publicar librería con el comando **publish**, el cual preguntara cual es el nuevo número de versión. En donde "version": *.*.* --> El primer número corresponde a cambios grandes, el segundo nuevas funcionalidades y el tercero corrección de errores o cambios menores.
|
|
75
|
+
|
|
76
|
+
~~~
|
|
77
|
+
yarn publish
|
|
78
|
+
~~~
|
|
79
|
+
|
|
80
|
+
Nota: En ocasiones da el error "You cannot publish over the previously published versions" al no poder cambiar la versión de la librería desde la linea de comandos. Para ello se debe aumentar el número de versión en la opción **version** del package.json
|
|
81
|
+
|
|
82
|
+
### Como hacer uso de la librería con NPM
|
|
83
|
+
|
|
84
|
+
Pero para poder instalar la librería en cualquier otro proyecto se debe correr el comando en el directorio donde el proyecto contenga las librerías javascript.
|
|
85
|
+
|
|
86
|
+
~~~
|
|
87
|
+
yarn add @hcd-bsas/list-documents-adapter
|
|
88
|
+
~~~
|
|
89
|
+
|
|
90
|
+
Luego se debe indicar en el constructor la url base donde se encuentran los endpoint para obtener la información a visualizar.
|
|
91
|
+
|
|
92
|
+
~~~
|
|
93
|
+
var list = new ImagesList({
|
|
94
|
+
base_url: "http://localhost/admin",
|
|
95
|
+
});
|
|
96
|
+
~~~
|
|
97
|
+
|
|
98
|
+
A partir de la instancia creada se puede invocar al método **open** que recibe 2 parámetros, las opciones de configuración de la app y los parámetros a pasar al endpoint que recupera el listado.
|
|
99
|
+
|
|
100
|
+
Por otro lado el método **open** retorna una promesa que indica cuando el plugin finalizo y esta visible.
|
|
101
|
+
|
|
102
|
+
~~~
|
|
103
|
+
list.open({
|
|
104
|
+
title: "Listado de imágenes escaneadas en Rhys"
|
|
105
|
+
},{
|
|
106
|
+
id_tabla: ****,
|
|
107
|
+
id_tabla_reg: ****,
|
|
108
|
+
id_dependen_responsable: ****,
|
|
109
|
+
id_pers_reso: ****,
|
|
110
|
+
campo_escan: ****
|
|
111
|
+
}).then((response) => {
|
|
112
|
+
console.log(response)
|
|
113
|
+
});
|
|
114
|
+
~~~
|
|
115
|
+
|
|
116
|
+
Nota: Se puede ver un ejemplo funcional completo en el archivo test_javascript.html
|
package/test_javascript.html
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>TEST</title>
|
|
8
|
-
<link rel="stylesheet" href="node_modules/@hcd-bsas/bootstrap5/dist/hcd-bootstrap.min.css">
|
|
9
|
-
<link rel="stylesheet" href="node_modules/sweetalert2/dist/sweetalert2.min.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
|
|
13
|
-
<button onclick="prueba()">Prueba</button>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</body>
|
|
17
|
-
<footer>
|
|
18
|
-
<script src="node_modules/@hcd-bsas/bootstrap5/dist/hcd-bootstrap.min.js"></script>
|
|
19
|
-
<script src="dist/ListDocuments.min.js"></script>
|
|
20
|
-
<script>
|
|
21
|
-
var list = new ImagesList({
|
|
22
|
-
base_url: "http://localhost/admin",
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
function prueba(){
|
|
26
|
-
list.open({
|
|
27
|
-
title: "Listado de imágenes escaneadas en Rhys"
|
|
28
|
-
},{
|
|
29
|
-
id_tabla: 1,
|
|
30
|
-
id_tabla_reg: 3922,
|
|
31
|
-
id_dependen_responsable: 54,
|
|
32
|
-
id_pers_reso: 386,
|
|
33
|
-
campo_escan: "INASISTE"
|
|
34
|
-
})
|
|
35
|
-
.then((response) => {
|
|
36
|
-
console.log(response)
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
</footer>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>TEST</title>
|
|
8
|
+
<link rel="stylesheet" href="node_modules/@hcd-bsas/bootstrap5/dist/hcd-bootstrap.min.css">
|
|
9
|
+
<link rel="stylesheet" href="node_modules/sweetalert2/dist/sweetalert2.min.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
|
|
13
|
+
<button onclick="prueba()">Prueba</button>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
</body>
|
|
17
|
+
<footer>
|
|
18
|
+
<script src="node_modules/@hcd-bsas/bootstrap5/dist/hcd-bootstrap.min.js"></script>
|
|
19
|
+
<script src="dist/ListDocuments.min.js"></script>
|
|
20
|
+
<script>
|
|
21
|
+
var list = new ImagesList({
|
|
22
|
+
base_url: "http://localhost/admin",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
function prueba(){
|
|
26
|
+
list.open({
|
|
27
|
+
title: "Listado de imágenes escaneadas en Rhys"
|
|
28
|
+
},{
|
|
29
|
+
id_tabla: 1,
|
|
30
|
+
id_tabla_reg: 3922,
|
|
31
|
+
id_dependen_responsable: 54,
|
|
32
|
+
id_pers_reso: 386,
|
|
33
|
+
campo_escan: "INASISTE"
|
|
34
|
+
})
|
|
35
|
+
.then((response) => {
|
|
36
|
+
console.log(response)
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
</footer>
|
|
41
41
|
</html>
|
package/webpack.config.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const Webpack = require('webpack');
|
|
3
|
-
const { VueLoaderPlugin } = require('vue-loader');
|
|
4
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
5
|
-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
entry: './src/index.js',
|
|
9
|
-
output: {
|
|
10
|
-
path: path.resolve(__dirname, 'dist'),
|
|
11
|
-
filename: 'ListDocuments.min.js',
|
|
12
|
-
library: {
|
|
13
|
-
name: 'ImagesList',
|
|
14
|
-
type: 'umd',
|
|
15
|
-
export: 'default'
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
module: {
|
|
19
|
-
rules: [
|
|
20
|
-
{
|
|
21
|
-
test: /\.vue$/,
|
|
22
|
-
loader: 'vue-loader',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
test: /\.css$/,
|
|
26
|
-
use: [
|
|
27
|
-
MiniCssExtractPlugin.loader,
|
|
28
|
-
'css-loader',
|
|
29
|
-
'postcss-loader',
|
|
30
|
-
'sass-loader'
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
optimization: {
|
|
36
|
-
minimizer: [
|
|
37
|
-
new UglifyJsPlugin({
|
|
38
|
-
cache: true,
|
|
39
|
-
parallel: true,
|
|
40
|
-
sourceMap: true
|
|
41
|
-
})
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
plugins: [
|
|
45
|
-
// make sure to include the plugin!
|
|
46
|
-
new VueLoaderPlugin(),
|
|
47
|
-
new MiniCssExtractPlugin({
|
|
48
|
-
filename: 'hcd-bootstrap.min.css'
|
|
49
|
-
}),
|
|
50
|
-
new Webpack.DefinePlugin({ __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false }), // to remove warn in browser console: runtime-core.esm-bundler.js:3607 Feature flags __VUE_OPTIONS_API__, __VUE_PROD_DEVTOOLS__ are not explicitly defined...
|
|
51
|
-
]
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const Webpack = require('webpack');
|
|
3
|
+
const { VueLoaderPlugin } = require('vue-loader');
|
|
4
|
+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
5
|
+
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
entry: './src/index.js',
|
|
9
|
+
output: {
|
|
10
|
+
path: path.resolve(__dirname, 'dist'),
|
|
11
|
+
filename: 'ListDocuments.min.js',
|
|
12
|
+
library: {
|
|
13
|
+
name: 'ImagesList',
|
|
14
|
+
type: 'umd',
|
|
15
|
+
export: 'default'
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
module: {
|
|
19
|
+
rules: [
|
|
20
|
+
{
|
|
21
|
+
test: /\.vue$/,
|
|
22
|
+
loader: 'vue-loader',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
test: /\.css$/,
|
|
26
|
+
use: [
|
|
27
|
+
MiniCssExtractPlugin.loader,
|
|
28
|
+
'css-loader',
|
|
29
|
+
'postcss-loader',
|
|
30
|
+
'sass-loader'
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
optimization: {
|
|
36
|
+
minimizer: [
|
|
37
|
+
new UglifyJsPlugin({
|
|
38
|
+
cache: true,
|
|
39
|
+
parallel: true,
|
|
40
|
+
sourceMap: true
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
plugins: [
|
|
45
|
+
// make sure to include the plugin!
|
|
46
|
+
new VueLoaderPlugin(),
|
|
47
|
+
new MiniCssExtractPlugin({
|
|
48
|
+
filename: 'hcd-bootstrap.min.css'
|
|
49
|
+
}),
|
|
50
|
+
new Webpack.DefinePlugin({ __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false }), // to remove warn in browser console: runtime-core.esm-bundler.js:3607 Feature flags __VUE_OPTIONS_API__, __VUE_PROD_DEVTOOLS__ are not explicitly defined...
|
|
51
|
+
]
|
|
52
52
|
};
|