pangea-lib 2.11.301 → 2.11.303
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/main.cjs.js +2 -2
- package/dist/main.css +1 -1
- package/dist/main.es.js +1828 -1828
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -774,7 +774,7 @@ var aM;function A1(){return aM.apply(null,arguments)}function k91(e){aM=e}functi
|
|
|
774
774
|
[`+n+"] ";for(i in arguments[0])i2(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[n];c.push(r)}cM(e+`
|
|
775
775
|
Arguments: `+Array.prototype.slice.call(c).join("")+`
|
|
776
776
|
`+new Error().stack),t=!1}return a.apply(this,arguments)},a)}var Cs={};function rM(e,a){A1.deprecationHandler!=null&&A1.deprecationHandler(e,a),Cs[e]||(cM(a),Cs[e]=!0)}A1.suppressDeprecationWarnings=!1;A1.deprecationHandler=null;function n0(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function A91(e){var a,t;for(t in e)i2(e,t)&&(a=e[t],n0(a)?this[t]=a:this["_"+t]=a);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Xc(e,a){var t=Y0({},e),c;for(c in a)i2(a,c)&&(I6(e[c])&&I6(a[c])?(t[c]={},Y0(t[c],e[c]),Y0(t[c],a[c])):a[c]!=null?t[c]=a[c]:delete t[c]);for(c in e)i2(e,c)&&!i2(a,c)&&I6(e[c])&&(t[c]=Y0({},t[c]));return t}function Z9(e){e!=null&&this.set(e)}var Zc;Object.keys?Zc=Object.keys:Zc=function(e){var a,t=[];for(a in e)i2(e,a)&&t.push(a);return t};var S91={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N91(e,a,t){var c=this._calendar[e]||this._calendar.sameElse;return n0(c)?c.call(a,t):c}function t0(e,a,t){var c=""+Math.abs(e),r=a-c.length,n=e>=0;return(n?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+c}var Q9=/(\[[^\[]*\])|(\\)?([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,l7=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Yt={},Ae={};function R1(e,a,t,c){var r=c;typeof c=="string"&&(r=function(){return this[c]()}),e&&(Ae[e]=r),a&&(Ae[a[0]]=function(){return t0(r.apply(this,arguments),a[1],a[2])}),t&&(Ae[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function T91(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function E91(e){var a=e.match(Q9),t,c;for(t=0,c=a.length;t<c;t++)Ae[a[t]]?a[t]=Ae[a[t]]:a[t]=T91(a[t]);return function(r){var n="",i;for(i=0;i<c;i++)n+=n0(a[i])?a[i].call(r,e):a[i];return n}}function O7(e,a){return e.isValid()?(a=nM(a,e.localeData()),Yt[a]=Yt[a]||E91(a),Yt[a](e)):e.localeData().invalidDate()}function nM(e,a){var t=5;function c(r){return a.longDateFormat(r)||r}for(l7.lastIndex=0;t>=0&&l7.test(e);)e=e.replace(l7,c),l7.lastIndex=0,t-=1;return e}var F91={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 P91(e){var a=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return a||!t?a:(this._longDateFormat[e]=t.match(Q9).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[e])}var D91="Invalid date";function B91(){return this._invalidDate}var O91="%d",R91=/\d{1,2}/;function I91(e){return this._ordinal.replace("%d",e)}var $91={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 U91(e,a,t,c){var r=this._relativeTime[t];return n0(r)?r(e,a,t,c):r.replace(/%d/i,e)}function W91(e,a){var t=this._relativeTime[e>0?"future":"past"];return n0(t)?t(a):t.replace(/%s/i,a)}var Ms={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function h4(e){return typeof e=="string"?Ms[e]||Ms[e.toLowerCase()]:void 0}function K9(e){var a={},t,c;for(c in e)i2(e,c)&&(t=h4(c),t&&(a[t]=e[c]));return a}var Y91={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function q91(e){var a=[],t;for(t in e)i2(e,t)&&a.push({unit:t,priority:Y91[t]});return a.sort(function(c,r){return c.priority-r.priority}),a}var iM=/\d/,t4=/\d\d/,sM=/\d{3}/,J9=/\d{4}/,ft=/[+-]?\d{6}/,w2=/\d\d?/,oM=/\d\d\d\d?/,lM=/\d\d\d\d\d\d?/,ut=/\d{1,3}/,en=/\d{1,4}/,ht=/[+-]?\d{1,6}/,Ze=/\d+/,dt=/[+-]?\d+/,G91=/Z|[+-]\d\d:?\d\d/gi,mt=/Z|[+-]\d\d(?::?\d\d)?/gi,j91=/[+-]?\d+(\.\d{1,3})?/,P5=/[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,Qe=/^[1-9]\d?/,an=/^([1-9]\d|\d)/,na;na={};function N1(e,a,t){na[e]=n0(a)?a:function(c,r){return c&&t?t:a}}function X91(e,a){return i2(na,e)?na[e](a._strict,a._locale):new RegExp(Z91(e))}function Z91(e){return C0(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,t,c,r,n){return t||c||r||n}))}function C0(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s4(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K1(e){var a=+e,t=0;return a!==0&&isFinite(a)&&(t=s4(a)),t}var Qc={};function p2(e,a){var t,c=a,r;for(typeof e=="string"&&(e=[e]),L0(a)&&(c=function(n,i){i[a]=K1(n)}),r=e.length,t=0;t<r;t++)Qc[e[t]]=c}function D5(e,a){p2(e,function(t,c,r,n){r._w=r._w||{},a(t,r._w,r,n)})}function Q91(e,a,t){a!=null&&i2(Qc,e)&&Qc[e](a,t._a,t,e)}function pt(e){return e%4===0&&e%100!==0||e%400===0}var L3=0,v0=1,Y4=2,i3=3,V4=4,g0=5,B6=6,K91=7,J91=8;R1("Y",0,0,function(){var e=this.year();return e<=9999?t0(e,4):"+"+e});R1(0,["YY",2],0,function(){return this.year()%100});R1(0,["YYYY",4],0,"year");R1(0,["YYYYY",5],0,"year");R1(0,["YYYYYY",6,!0],0,"year");N1("Y",dt);N1("YY",w2,t4);N1("YYYY",en,J9);N1("YYYYY",ht,ft);N1("YYYYYY",ht,ft);p2(["YYYYY","YYYYYY"],L3);p2("YYYY",function(e,a){a[L3]=e.length===2?A1.parseTwoDigitYear(e):K1(e)});p2("YY",function(e,a){a[L3]=A1.parseTwoDigitYear(e)});p2("Y",function(e,a){a[L3]=parseInt(e,10)});function S8(e){return pt(e)?366:365}A1.parseTwoDigitYear=function(e){return K1(e)+(K1(e)>68?1900:2e3)};var fM=Ke("FullYear",!0);function en1(){return pt(this.year())}function Ke(e,a){return function(t){return t!=null?(uM(this,e,t),A1.updateOffset(this,a),this):r5(this,e)}}function r5(e,a){if(!e.isValid())return NaN;var t=e._d,c=e._isUTC;switch(a){case"Milliseconds":return c?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return c?t.getUTCSeconds():t.getSeconds();case"Minutes":return c?t.getUTCMinutes():t.getMinutes();case"Hours":return c?t.getUTCHours():t.getHours();case"Date":return c?t.getUTCDate():t.getDate();case"Day":return c?t.getUTCDay():t.getDay();case"Month":return c?t.getUTCMonth():t.getMonth();case"FullYear":return c?t.getUTCFullYear():t.getFullYear();default:return NaN}}function uM(e,a,t){var c,r,n,i,s;if(!(!e.isValid()||isNaN(t))){switch(c=e._d,r=e._isUTC,a){case"Milliseconds":return void(r?c.setUTCMilliseconds(t):c.setMilliseconds(t));case"Seconds":return void(r?c.setUTCSeconds(t):c.setSeconds(t));case"Minutes":return void(r?c.setUTCMinutes(t):c.setMinutes(t));case"Hours":return void(r?c.setUTCHours(t):c.setHours(t));case"Date":return void(r?c.setUTCDate(t):c.setDate(t));case"FullYear":break;default:return}n=t,i=e.month(),s=e.date(),s=s===29&&i===1&&!pt(n)?28:s,r?c.setUTCFullYear(n,i,s):c.setFullYear(n,i,s)}}function an1(e){return e=h4(e),n0(this[e])?this[e]():this}function tn1(e,a){if(typeof e=="object"){e=K9(e);var t=q91(e),c,r=t.length;for(c=0;c<r;c++)this[t[c].unit](e[t[c].unit])}else if(e=h4(e),n0(this[e]))return this[e](a);return this}function cn1(e,a){return(e%a+a)%a}var q2;Array.prototype.indexOf?q2=Array.prototype.indexOf:q2=function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1};function tn(e,a){if(isNaN(e)||isNaN(a))return NaN;var t=cn1(a,12);return e+=(a-t)/12,t===1?pt(e)?29:28:31-t%7%2}R1("M",["MM",2],"Mo",function(){return this.month()+1});R1("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});R1("MMMM",0,0,function(e){return this.localeData().months(this,e)});N1("M",w2,Qe);N1("MM",w2,t4);N1("MMM",function(e,a){return a.monthsShortRegex(e)});N1("MMMM",function(e,a){return a.monthsRegex(e)});p2(["M","MM"],function(e,a){a[v0]=K1(e)-1});p2(["MMM","MMMM"],function(e,a,t,c){var r=t._locale.monthsParse(e,c,t._strict);r!=null?a[v0]=r:G1(t).invalidMonth=e});var rn1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hM="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dM=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nn1=P5,in1=P5;function sn1(e,a){return e?N4(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||dM).test(a)?"format":"standalone"][e.month()]:N4(this._months)?this._months:this._months.standalone}function on1(e,a){return e?N4(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[dM.test(a)?"format":"standalone"][e.month()]:N4(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ln1(e,a,t){var c,r,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)n=r0([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(n,"").toLocaleLowerCase();return t?a==="MMM"?(r=q2.call(this._shortMonthsParse,i),r!==-1?r:null):(r=q2.call(this._longMonthsParse,i),r!==-1?r:null):a==="MMM"?(r=q2.call(this._shortMonthsParse,i),r!==-1?r:(r=q2.call(this._longMonthsParse,i),r!==-1?r:null)):(r=q2.call(this._longMonthsParse,i),r!==-1?r:(r=q2.call(this._shortMonthsParse,i),r!==-1?r:null))}function fn1(e,a,t){var c,r,n;if(this._monthsParseExact)return ln1.call(this,e,a,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(r=r0([2e3,c]),t&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[c]&&(n="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[c]=new RegExp(n.replace(".",""),"i")),t&&a==="MMMM"&&this._longMonthsParse[c].test(e))return c;if(t&&a==="MMM"&&this._shortMonthsParse[c].test(e))return c;if(!t&&this._monthsParse[c].test(e))return c}}function mM(e,a){if(!e.isValid())return e;if(typeof a=="string"){if(/^\d+$/.test(a))a=K1(a);else if(a=e.localeData().monthsParse(a),!L0(a))return e}var t=a,c=e.date();return c=c<29?c:Math.min(c,tn(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,c):e._d.setMonth(t,c),e}function pM(e){return e!=null?(mM(this,e),A1.updateOffset(this,!0),this):r5(this,"Month")}function un1(){return tn(this.year(),this.month())}function hn1(e){return this._monthsParseExact?(i2(this,"_monthsRegex")||vM.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(i2(this,"_monthsShortRegex")||(this._monthsShortRegex=nn1),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function dn1(e){return this._monthsParseExact?(i2(this,"_monthsRegex")||vM.call(this),e?this._monthsStrictRegex:this._monthsRegex):(i2(this,"_monthsRegex")||(this._monthsRegex=in1),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vM(){function e(l,f){return f.length-l.length}var a=[],t=[],c=[],r,n,i,s;for(r=0;r<12;r++)n=r0([2e3,r]),i=C0(this.monthsShort(n,"")),s=C0(this.months(n,"")),a.push(i),t.push(s),c.push(s),c.push(i);a.sort(e),t.sort(e),c.sort(e),this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function mn1(e,a,t,c,r,n,i){var s;return e<100&&e>=0?(s=new Date(e+400,a,t,c,r,n,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,a,t,c,r,n,i),s}function n5(e){var a,t;return e<100&&e>=0?(t=Array.prototype.slice.call(arguments),t[0]=e+400,a=new Date(Date.UTC.apply(null,t)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e)):a=new Date(Date.UTC.apply(null,arguments)),a}function ia(e,a,t){var c=7+a-t,r=(7+n5(e,0,c).getUTCDay()-a)%7;return-r+c-1}function gM(e,a,t,c,r){var n=(7+t-c)%7,i=ia(e,c,r),s=1+7*(a-1)+n+i,l,f;return s<=0?(l=e-1,f=S8(l)+s):s>S8(e)?(l=e+1,f=s-S8(e)):(l=e,f=s),{year:l,dayOfYear:f}}function i5(e,a,t){var c=ia(e.year(),a,t),r=Math.floor((e.dayOfYear()-c-1)/7)+1,n,i;return r<1?(i=e.year()-1,n=r+M0(i,a,t)):r>M0(e.year(),a,t)?(n=r-M0(e.year(),a,t),i=e.year()+1):(i=e.year(),n=r),{week:n,year:i}}function M0(e,a,t){var c=ia(e,a,t),r=ia(e+1,a,t);return(S8(e)-c+r)/7}R1("w",["ww",2],"wo","week");R1("W",["WW",2],"Wo","isoWeek");N1("w",w2,Qe);N1("ww",w2,t4);N1("W",w2,Qe);N1("WW",w2,t4);D5(["w","ww","W","WW"],function(e,a,t,c){a[c.substr(0,1)]=K1(e)});function pn1(e){return i5(e,this._week.dow,this._week.doy).week}var vn1={dow:0,doy:6};function gn1(){return this._week.dow}function xn1(){return this._week.doy}function zn1(e){var a=this.localeData().week(this);return e==null?a:this.add((e-a)*7,"d")}function Cn1(e){var a=i5(this,1,4).week;return e==null?a:this.add((e-a)*7,"d")}R1("d",0,"do","day");R1("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});R1("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});R1("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});R1("e",0,0,"weekday");R1("E",0,0,"isoWeekday");N1("d",w2);N1("e",w2);N1("E",w2);N1("dd",function(e,a){return a.weekdaysMinRegex(e)});N1("ddd",function(e,a){return a.weekdaysShortRegex(e)});N1("dddd",function(e,a){return a.weekdaysRegex(e)});D5(["dd","ddd","dddd"],function(e,a,t,c){var r=t._locale.weekdaysParse(e,c,t._strict);r!=null?a.d=r:G1(t).invalidWeekday=e});D5(["d","e","E"],function(e,a,t,c){a[c]=K1(e)});function Mn1(e,a){return typeof e!="string"?e:isNaN(e)?(e=a.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Hn1(e,a){return typeof e=="string"?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function cn(e,a){return e.slice(a,7).concat(e.slice(0,a))}var Vn1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yn1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bn1=P5,wn1=P5,Ln1=P5;function kn1(e,a){var t=N4(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return e===!0?cn(t,this._week.dow):e?t[e.day()]:t}function _n1(e){return e===!0?cn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function An1(e){return e===!0?cn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Sn1(e,a,t){var c,r,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)n=r0([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(n,"").toLocaleLowerCase();return t?a==="dddd"?(r=q2.call(this._weekdaysParse,i),r!==-1?r:null):a==="ddd"?(r=q2.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=q2.call(this._minWeekdaysParse,i),r!==-1?r:null):a==="dddd"?(r=q2.call(this._weekdaysParse,i),r!==-1||(r=q2.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=q2.call(this._minWeekdaysParse,i),r!==-1?r:null)):a==="ddd"?(r=q2.call(this._shortWeekdaysParse,i),r!==-1||(r=q2.call(this._weekdaysParse,i),r!==-1)?r:(r=q2.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=q2.call(this._minWeekdaysParse,i),r!==-1||(r=q2.call(this._weekdaysParse,i),r!==-1)?r:(r=q2.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function Nn1(e,a,t){var c,r,n;if(this._weekdaysParseExact)return Sn1.call(this,e,a,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(r=r0([2e3,1]).day(c),t&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(n="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[c]=new RegExp(n.replace(".",""),"i")),t&&a==="dddd"&&this._fullWeekdaysParse[c].test(e))return c;if(t&&a==="ddd"&&this._shortWeekdaysParse[c].test(e))return c;if(t&&a==="dd"&&this._minWeekdaysParse[c].test(e))return c;if(!t&&this._weekdaysParse[c].test(e))return c}}function Tn1(e){if(!this.isValid())return e!=null?this:NaN;var a=r5(this,"Day");return e!=null?(e=Mn1(e,this.localeData()),this.add(e-a,"d")):a}function En1(e){if(!this.isValid())return e!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return e==null?a:this.add(e-a,"d")}function Fn1(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var a=Hn1(e,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Pn1(e){return this._weekdaysParseExact?(i2(this,"_weekdaysRegex")||rn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(i2(this,"_weekdaysRegex")||(this._weekdaysRegex=bn1),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Dn1(e){return this._weekdaysParseExact?(i2(this,"_weekdaysRegex")||rn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i2(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wn1),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bn1(e){return this._weekdaysParseExact?(i2(this,"_weekdaysRegex")||rn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i2(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ln1),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function rn(){function e(u,h){return h.length-u.length}var a=[],t=[],c=[],r=[],n,i,s,l,f;for(n=0;n<7;n++)i=r0([2e3,1]).day(n),s=C0(this.weekdaysMin(i,"")),l=C0(this.weekdaysShort(i,"")),f=C0(this.weekdays(i,"")),a.push(s),t.push(l),c.push(f),r.push(s),r.push(l),r.push(f);a.sort(e),t.sort(e),c.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nn(){return this.hours()%12||12}function On1(){return this.hours()||24}R1("H",["HH",2],0,"hour");R1("h",["hh",2],0,nn);R1("k",["kk",2],0,On1);R1("hmm",0,0,function(){return""+nn.apply(this)+t0(this.minutes(),2)});R1("hmmss",0,0,function(){return""+nn.apply(this)+t0(this.minutes(),2)+t0(this.seconds(),2)});R1("Hmm",0,0,function(){return""+this.hours()+t0(this.minutes(),2)});R1("Hmmss",0,0,function(){return""+this.hours()+t0(this.minutes(),2)+t0(this.seconds(),2)});function zM(e,a){R1(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}zM("a",!0);zM("A",!1);function CM(e,a){return a._meridiemParse}N1("a",CM);N1("A",CM);N1("H",w2,an);N1("h",w2,Qe);N1("k",w2,Qe);N1("HH",w2,t4);N1("hh",w2,t4);N1("kk",w2,t4);N1("hmm",oM);N1("hmmss",lM);N1("Hmm",oM);N1("Hmmss",lM);p2(["H","HH"],i3);p2(["k","kk"],function(e,a,t){var c=K1(e);a[i3]=c===24?0:c});p2(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e});p2(["h","hh"],function(e,a,t){a[i3]=K1(e),G1(t).bigHour=!0});p2("hmm",function(e,a,t){var c=e.length-2;a[i3]=K1(e.substr(0,c)),a[V4]=K1(e.substr(c)),G1(t).bigHour=!0});p2("hmmss",function(e,a,t){var c=e.length-4,r=e.length-2;a[i3]=K1(e.substr(0,c)),a[V4]=K1(e.substr(c,2)),a[g0]=K1(e.substr(r)),G1(t).bigHour=!0});p2("Hmm",function(e,a,t){var c=e.length-2;a[i3]=K1(e.substr(0,c)),a[V4]=K1(e.substr(c))});p2("Hmmss",function(e,a,t){var c=e.length-4,r=e.length-2;a[i3]=K1(e.substr(0,c)),a[V4]=K1(e.substr(c,2)),a[g0]=K1(e.substr(r))});function Rn1(e){return(e+"").toLowerCase().charAt(0)==="p"}var In1=/[ap]\.?m?\.?/i,$n1=Ke("Hours",!0);function Un1(e,a,t){return e>11?t?"pm":"PM":t?"am":"AM"}var MM={calendar:S91,longDateFormat:F91,invalidDate:D91,ordinal:O91,dayOfMonthOrdinalParse:R91,relativeTime:$91,months:rn1,monthsShort:hM,week:vn1,weekdays:Vn1,weekdaysMin:yn1,weekdaysShort:xM,meridiemParse:In1},k2={},i8={},s5;function Wn1(e,a){var t,c=Math.min(e.length,a.length);for(t=0;t<c;t+=1)if(e[t]!==a[t])return t;return c}function Hs(e){return e&&e.toLowerCase().replace("_","-")}function Yn1(e){for(var a=0,t,c,r,n;a<e.length;){for(n=Hs(e[a]).split("-"),t=n.length,c=Hs(e[a+1]),c=c?c.split("-"):null;t>0;){if(r=vt(n.slice(0,t).join("-")),r)return r;if(c&&c.length>=t&&Wn1(n,c)>=t-1)break;t--}a++}return s5}function qn1(e){return!!(e&&e.match("^[^/\\\\]*$"))}function vt(e){var a=null,t;if(k2[e]===void 0&&typeof module<"u"&&module&&module.exports&&qn1(e))try{a=s5._abbr,t=require,t("./locale/"+e),c6(a)}catch{k2[e]=null}return k2[e]}function c6(e,a){var t;return e&&($3(a)?t=S0(e):t=sn(e,a),t?s5=t:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),s5._abbr}function sn(e,a){if(a!==null){var t,c=MM;if(a.abbr=e,k2[e]!=null)rM("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."),c=k2[e]._config;else if(a.parentLocale!=null)if(k2[a.parentLocale]!=null)c=k2[a.parentLocale]._config;else if(t=vt(a.parentLocale),t!=null)c=t._config;else return i8[a.parentLocale]||(i8[a.parentLocale]=[]),i8[a.parentLocale].push({name:e,config:a}),null;return k2[e]=new Z9(Xc(c,a)),i8[e]&&i8[e].forEach(function(r){sn(r.name,r.config)}),c6(e),k2[e]}else return delete k2[e],null}function Gn1(e,a){if(a!=null){var t,c,r=MM;k2[e]!=null&&k2[e].parentLocale!=null?k2[e].set(Xc(k2[e]._config,a)):(c=vt(e),c!=null&&(r=c._config),a=Xc(r,a),c==null&&(a.abbr=e),t=new Z9(a),t.parentLocale=k2[e],k2[e]=t),c6(e)}else k2[e]!=null&&(k2[e].parentLocale!=null?(k2[e]=k2[e].parentLocale,e===c6()&&c6(e)):k2[e]!=null&&delete k2[e]);return k2[e]}function S0(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return s5;if(!N4(e)){if(a=vt(e),a)return a;e=[e]}return Yn1(e)}function jn1(){return Zc(k2)}function on(e){var a,t=e._a;return t&&G1(e).overflow===-2&&(a=t[v0]<0||t[v0]>11?v0:t[Y4]<1||t[Y4]>tn(t[L3],t[v0])?Y4:t[i3]<0||t[i3]>24||t[i3]===24&&(t[V4]!==0||t[g0]!==0||t[B6]!==0)?i3:t[V4]<0||t[V4]>59?V4:t[g0]<0||t[g0]>59?g0:t[B6]<0||t[B6]>999?B6:-1,G1(e)._overflowDayOfYear&&(a<L3||a>Y4)&&(a=Y4),G1(e)._overflowWeeks&&a===-1&&(a=K91),G1(e)._overflowWeekday&&a===-1&&(a=J91),G1(e).overflow=a),e}var Xn1=/^\s*((?:[+-]\d{6}|\d{4})-(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P][SD]T)|([Zz])|([+-]\d{4}))$/,ei1={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 HM(e){var a,t,c=e._i,r=Xn1.exec(c)||Zn1.exec(c),n,i,s,l,f=f7.length,u=qt.length;if(r){for(G1(e).iso=!0,a=0,t=f;a<t;a++)if(f7[a][1].exec(r[1])){i=f7[a][0],n=f7[a][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(a=0,t=u;a<t;a++)if(qt[a][1].exec(r[3])){s=(r[2]||" ")+qt[a][0];break}if(s==null){e._isValid=!1;return}}if(!n&&s!=null){e._isValid=!1;return}if(r[4])if(Qn1.exec(r[4]))l="Z";else{e._isValid=!1;return}e._f=i+(s||"")+(l||""),fn(e)}else e._isValid=!1}function ai1(e,a,t,c,r,n){var i=[ti1(e),hM.indexOf(a),parseInt(t,10),parseInt(c,10),parseInt(r,10)];return n&&i.push(parseInt(n,10)),i}function ti1(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function ci1(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ri1(e,a,t){if(e){var c=xM.indexOf(e),r=new Date(a[0],a[1],a[2]).getDay();if(c!==r)return G1(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function ni1(e,a,t){if(e)return ei1[e];if(a)return 0;var c=parseInt(t,10),r=c%100,n=(c-r)/100;return n*60+r}function VM(e){var a=Jn1.exec(ci1(e._i)),t;if(a){if(t=ai1(a[4],a[3],a[2],a[5],a[6],a[7]),!ri1(a[1],t,e))return;e._a=t,e._tzm=ni1(a[8],a[9],a[10]),e._d=n5.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),G1(e).rfc2822=!0}else e._isValid=!1}function ii1(e){var a=Kn1.exec(e._i);if(a!==null){e._d=new Date(+a[1]);return}if(HM(e),e._isValid===!1)delete e._isValid;else return;if(VM(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:A1.createFromInputFallback(e)}A1.createFromInputFallback=u4("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ze(e,a,t){return e??a??t}function si1(e){var a=new Date(A1.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function ln(e){var a,t,c=[],r,n,i;if(!e._d){for(r=si1(e),e._w&&e._a[Y4]==null&&e._a[v0]==null&&oi1(e),e._dayOfYear!=null&&(i=ze(e._a[L3],r[L3]),(e._dayOfYear>S8(i)||e._dayOfYear===0)&&(G1(e)._overflowDayOfYear=!0),t=n5(i,0,e._dayOfYear),e._a[v0]=t.getUTCMonth(),e._a[Y4]=t.getUTCDate()),a=0;a<3&&e._a[a]==null;++a)e._a[a]=c[a]=r[a];for(;a<7;a++)e._a[a]=c[a]=e._a[a]==null?a===2?1:0:e._a[a];e._a[i3]===24&&e._a[V4]===0&&e._a[g0]===0&&e._a[B6]===0&&(e._nextDay=!0,e._a[i3]=0),e._d=(e._useUTC?n5:mn1).apply(null,c),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[i3]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(G1(e).weekdayMismatch=!0)}}function oi1(e){var a,t,c,r,n,i,s,l,f;a=e._w,a.GG!=null||a.W!=null||a.E!=null?(n=1,i=4,t=ze(a.GG,e._a[L3],i5(b2(),1,4).year),c=ze(a.W,1),r=ze(a.E,1),(r<1||r>7)&&(l=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,f=i5(b2(),n,i),t=ze(a.gg,e._a[L3],f.year),c=ze(a.w,f.week),a.d!=null?(r=a.d,(r<0||r>6)&&(l=!0)):a.e!=null?(r=a.e+n,(a.e<0||a.e>6)&&(l=!0)):r=n),c<1||c>M0(t,n,i)?G1(e)._overflowWeeks=!0:l!=null?G1(e)._overflowWeekday=!0:(s=gM(t,c,r,n,i),e._a[L3]=s.year,e._dayOfYear=s.dayOfYear)}A1.ISO_8601=function(){};A1.RFC_2822=function(){};function fn(e){if(e._f===A1.ISO_8601){HM(e);return}if(e._f===A1.RFC_2822){VM(e);return}e._a=[],G1(e).empty=!0;var a=""+e._i,t,c,r,n,i,s=a.length,l=0,f,u;for(r=nM(e._f,e._locale).match(Q9)||[],u=r.length,t=0;t<u;t++)n=r[t],c=(a.match(X91(n,e))||[])[0],c&&(i=a.substr(0,a.indexOf(c)),i.length>0&&G1(e).unusedInput.push(i),a=a.slice(a.indexOf(c)+c.length),l+=c.length),Ae[n]?(c?G1(e).empty=!1:G1(e).unusedTokens.push(n),Q91(n,c,e)):e._strict&&!c&&G1(e).unusedTokens.push(n);G1(e).charsLeftOver=s-l,a.length>0&&G1(e).unusedInput.push(a),e._a[i3]<=12&&G1(e).bigHour===!0&&e._a[i3]>0&&(G1(e).bigHour=void 0),G1(e).parsedDateParts=e._a.slice(0),G1(e).meridiem=e._meridiem,e._a[i3]=li1(e._locale,e._a[i3],e._meridiem),f=G1(e).era,f!==null&&(e._a[L3]=e._locale.erasConvertYear(f,e._a[L3])),ln(e),on(e)}function li1(e,a,t){var c;return t==null?a:e.meridiemHour!=null?e.meridiemHour(a,t):(e.isPM!=null&&(c=e.isPM(t),c&&a<12&&(a+=12),!c&&a===12&&(a=0)),a)}function fi1(e){var a,t,c,r,n,i,s=!1,l=e._f.length;if(l===0){G1(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<l;r++)n=0,i=!1,a=X9({},e),e._useUTC!=null&&(a._useUTC=e._useUTC),a._f=e._f[r],fn(a),j9(a)&&(i=!0),n+=G1(a).charsLeftOver,n+=G1(a).unusedTokens.length*10,G1(a).score=n,s?n<c&&(c=n,t=a):(c==null||n<c||i)&&(c=n,t=a,i&&(s=!0));Y0(e,t||a)}function ui1(e){if(!e._d){var a=K9(e._i),t=a.day===void 0?a.date:a.day;e._a=tM([a.year,a.month,t,a.hour,a.minute,a.second,a.millisecond],function(c){return c&&parseInt(c,10)}),ln(e)}}function hi1(e){var a=new F5(on(yM(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function yM(e){var a=e._i,t=e._f;return e._locale=e._locale||S0(e._l),a===null||t===void 0&&a===""?lt({nullInput:!0}):(typeof a=="string"&&(e._i=a=e._locale.preparse(a)),T4(a)?new F5(on(a)):(E5(a)?e._d=a:N4(t)?fi1(e):t?fn(e):di1(e),j9(e)||(e._d=null),e))}function di1(e){var a=e._i;$3(a)?e._d=new Date(A1.now()):E5(a)?e._d=new Date(a.valueOf()):typeof a=="string"?ii1(e):N4(a)?(e._a=tM(a.slice(0),function(t){return parseInt(t,10)}),ln(e)):I6(a)?ui1(e):L0(a)?e._d=new Date(a):A1.createFromInputFallback(e)}function bM(e,a,t,c,r){var n={};return(a===!0||a===!1)&&(c=a,a=void 0),(t===!0||t===!1)&&(c=t,t=void 0),(I6(e)&&G9(e)||N4(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=r,n._l=t,n._i=e,n._f=a,n._strict=c,hi1(n)}function b2(e,a,t,c){return bM(e,a,t,c,!1)}var mi1=u4("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b2.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:lt()}),pi1=u4("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b2.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:lt()});function wM(e,a){var t,c;if(a.length===1&&N4(a[0])&&(a=a[0]),!a.length)return b2();for(t=a[0],c=1;c<a.length;++c)(!a[c].isValid()||a[c][e](t))&&(t=a[c]);return t}function vi1(){var e=[].slice.call(arguments,0);return wM("isBefore",e)}function gi1(){var e=[].slice.call(arguments,0);return wM("isAfter",e)}var xi1=function(){return Date.now?Date.now():+new Date},s8=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zi1(e){var a,t=!1,c,r=s8.length;for(a in e)if(i2(e,a)&&!(q2.call(s8,a)!==-1&&(e[a]==null||!isNaN(e[a]))))return!1;for(c=0;c<r;++c)if(e[s8[c]]){if(t)return!1;parseFloat(e[s8[c]])!==K1(e[s8[c]])&&(t=!0)}return!0}function Ci1(){return this._isValid}function Mi1(){return F4(NaN)}function gt(e){var a=K9(e),t=a.year||0,c=a.quarter||0,r=a.month||0,n=a.week||a.isoWeek||0,i=a.day||0,s=a.hour||0,l=a.minute||0,f=a.second||0,u=a.millisecond||0;this._isValid=zi1(a),this._milliseconds=+u+f*1e3+l*6e4+s*1e3*60*60,this._days=+i+n*7,this._months=+r+c*3+t*12,this._data={},this._locale=S0(),this._bubble()}function R7(e){return e instanceof gt}function Kc(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Hi1(e,a,t){var c=Math.min(e.length,a.length),r=Math.abs(e.length-a.length),n=0,i;for(i=0;i<c;i++)(t&&e[i]!==a[i]||!t&&K1(e[i])!==K1(a[i]))&&n++;return n+r}function LM(e,a){R1(e,0,0,function(){var t=this.utcOffset(),c="+";return t<0&&(t=-t,c="-"),c+t0(~~(t/60),2)+a+t0(~~t%60,2)})}LM("Z",":");LM("ZZ","");N1("Z",mt);N1("ZZ",mt);p2(["Z","ZZ"],function(e,a,t){t._useUTC=!0,t._tzm=un(mt,e)});var Vi1=/([\+\-]|\d\d)/gi;function un(e,a){var t=(a||"").match(e),c,r,n;return t===null?null:(c=t[t.length-1]||[],r=(c+"").match(Vi1)||["-",0,0],n=+(r[1]*60)+K1(r[2]),n===0?0:r[0]==="+"?n:-n)}function hn(e,a){var t,c;return a._isUTC?(t=a.clone(),c=(T4(e)||E5(e)?e.valueOf():b2(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+c),A1.updateOffset(t,!1),t):b2(e).local()}function Jc(e){return-Math.round(e._d.getTimezoneOffset())}A1.updateOffset=function(){};function yi1(e,a,t){var c=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=un(mt,e),e===null)return this}else Math.abs(e)<16&&!t&&(e=e*60);return!this._isUTC&&a&&(r=Jc(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),c!==e&&(!a||this._changeInProgress?AM(this,F4(e-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,A1.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Jc(this)}function bi1(e,a){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function wi1(e){return this.utcOffset(0,e)}function Li1(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jc(this),"m")),this}function ki1(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=un(G91,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _i1(e){return this.isValid()?(e=e?b2(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ai1(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Si1(){if(!$3(this._isDSTShifted))return this._isDSTShifted;var e={},a;return X9(e,this),e=yM(e),e._a?(a=e._isUTC?r0(e._a):b2(e._a),this._isDSTShifted=this.isValid()&&Hi1(e._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ni1(){return this.isValid()?!this._isUTC:!1}function Ti1(){return this.isValid()?this._isUTC:!1}function kM(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ei1=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fi1=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function F4(e,a){var t=e,c=null,r,n,i;return R7(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:L0(e)||!isNaN(+e)?(t={},a?t[a]=+e:t.milliseconds=+e):(c=Ei1.exec(e))?(r=c[1]==="-"?-1:1,t={y:0,d:K1(c[Y4])*r,h:K1(c[i3])*r,m:K1(c[V4])*r,s:K1(c[g0])*r,ms:K1(Kc(c[B6]*1e3))*r}):(c=Fi1.exec(e))?(r=c[1]==="-"?-1:1,t={y:b6(c[2],r),M:b6(c[3],r),w:b6(c[4],r),d:b6(c[5],r),h:b6(c[6],r),m:b6(c[7],r),s:b6(c[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(i=Pi1(b2(t.from),b2(t.to)),t={},t.ms=i.milliseconds,t.M=i.months),n=new gt(t),R7(e)&&i2(e,"_locale")&&(n._locale=e._locale),R7(e)&&i2(e,"_isValid")&&(n._isValid=e._isValid),n}F4.fn=gt.prototype;F4.invalid=Mi1;function b6(e,a){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*a}function Vs(e,a){var t={};return t.months=a.month()-e.month()+(a.year()-e.year())*12,e.clone().add(t.months,"M").isAfter(a)&&--t.months,t.milliseconds=+a-+e.clone().add(t.months,"M"),t}function Pi1(e,a){var t;return e.isValid()&&a.isValid()?(a=hn(a,e),e.isBefore(a)?t=Vs(e,a):(t=Vs(a,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function _M(e,a){return function(t,c){var r,n;return c!==null&&!isNaN(+c)&&(rM(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=c,c=n),r=F4(t,c),AM(this,r,e),this}}function AM(e,a,t,c){var r=a._milliseconds,n=Kc(a._days),i=Kc(a._months);e.isValid()&&(c=c??!0,i&&mM(e,r5(e,"Month")+i*t),n&&uM(e,"Date",r5(e,"Date")+n*t),r&&e._d.setTime(e._d.valueOf()+r*t),c&&A1.updateOffset(e,n||i))}var Di1=_M(1,"add"),Bi1=_M(-1,"subtract");function SM(e){return typeof e=="string"||e instanceof String}function Oi1(e){return T4(e)||E5(e)||SM(e)||L0(e)||Ii1(e)||Ri1(e)||e===null||e===void 0}function Ri1(e){var a=I6(e)&&!G9(e),t=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,n,i=c.length;for(r=0;r<i;r+=1)n=c[r],t=t||i2(e,n);return a&&t}function Ii1(e){var a=N4(e),t=!1;return a&&(t=e.filter(function(c){return!L0(c)&&SM(e)}).length===0),a&&t}function $i1(e){var a=I6(e)&&!G9(e),t=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,n;for(r=0;r<c.length;r+=1)n=c[r],t=t||i2(e,n);return a&&t}function Ui1(e,a){var t=e.diff(a,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Wi1(e,a){arguments.length===1&&(arguments[0]?Oi1(arguments[0])?(e=arguments[0],a=void 0):$i1(arguments[0])&&(a=arguments[0],e=void 0):(e=void 0,a=void 0));var t=e||b2(),c=hn(t,this).startOf("day"),r=A1.calendarFormat(this,c)||"sameElse",n=a&&(n0(a[r])?a[r].call(this,t):a[r]);return this.format(n||this.localeData().calendar(r,this,b2(t)))}function Yi1(){return new F5(this)}function qi1(e,a){var t=T4(e)?e:b2(e);return this.isValid()&&t.isValid()?(a=h4(a)||"millisecond",a==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(a).valueOf()):!1}function Gi1(e,a){var t=T4(e)?e:b2(e);return this.isValid()&&t.isValid()?(a=h4(a)||"millisecond",a==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(a).valueOf()<t.valueOf()):!1}function ji1(e,a,t,c){var r=T4(e)?e:b2(e),n=T4(a)?a:b2(a);return this.isValid()&&r.isValid()&&n.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(c[1]===")"?this.isBefore(n,t):!this.isAfter(n,t))):!1}function Xi1(e,a){var t=T4(e)?e:b2(e),c;return this.isValid()&&t.isValid()?(a=h4(a)||"millisecond",a==="millisecond"?this.valueOf()===t.valueOf():(c=t.valueOf(),this.clone().startOf(a).valueOf()<=c&&c<=this.clone().endOf(a).valueOf())):!1}function Zi1(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Qi1(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Ki1(e,a,t){var c,r,n;if(!this.isValid())return NaN;if(c=hn(e,this),!c.isValid())return NaN;switch(r=(c.utcOffset()-this.utcOffset())*6e4,a=h4(a),a){case"year":n=I7(this,c)/12;break;case"month":n=I7(this,c);break;case"quarter":n=I7(this,c)/3;break;case"second":n=(this-c)/1e3;break;case"minute":n=(this-c)/6e4;break;case"hour":n=(this-c)/36e5;break;case"day":n=(this-c-r)/864e5;break;case"week":n=(this-c-r)/6048e5;break;default:n=this-c}return t?n:s4(n)}function I7(e,a){if(e.date()<a.date())return-I7(a,e);var t=(a.year()-e.year())*12+(a.month()-e.month()),c=e.clone().add(t,"months"),r,n;return a-c<0?(r=e.clone().add(t-1,"months"),n=(a-c)/(c-r)):(r=e.clone().add(t+1,"months"),n=(a-c)/(r-c)),-(t+n)||0}A1.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";A1.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ji1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function es1(e){if(!this.isValid())return null;var a=e!==!0,t=a?this.clone().utc():this;return t.year()<0||t.year()>9999?O7(t,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):n0(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",O7(t,"Z")):O7(t,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function as1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",a="",t,c,r,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),t="["+e+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(t+c+r+n)}function ts1(e){e||(e=this.isUtc()?A1.defaultFormatUtc:A1.defaultFormat);var a=O7(this,e);return this.localeData().postformat(a)}function cs1(e,a){return this.isValid()&&(T4(e)&&e.isValid()||b2(e).isValid())?F4({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function rs1(e){return this.from(b2(),e)}function ns1(e,a){return this.isValid()&&(T4(e)&&e.isValid()||b2(e).isValid())?F4({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function is1(e){return this.to(b2(),e)}function NM(e){var a;return e===void 0?this._locale._abbr:(a=S0(e),a!=null&&(this._locale=a),this)}var TM=u4("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function EM(){return this._locale}var sa=1e3,Se=60*sa,oa=60*Se,FM=(365*400+97)*24*oa;function Ne(e,a){return(e%a+a)%a}function PM(e,a,t){return e<100&&e>=0?new Date(e+400,a,t)-FM:new Date(e,a,t).valueOf()}function DM(e,a,t){return e<100&&e>=0?Date.UTC(e+400,a,t)-FM:Date.UTC(e,a,t)}function ss1(e){var a,t;if(e=h4(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?DM:PM,e){case"year":a=t(this.year(),0,1);break;case"quarter":a=t(this.year(),this.month()-this.month()%3,1);break;case"month":a=t(this.year(),this.month(),1);break;case"week":a=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=t(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Ne(a+(this._isUTC?0:this.utcOffset()*Se),oa);break;case"minute":a=this._d.valueOf(),a-=Ne(a,Se);break;case"second":a=this._d.valueOf(),a-=Ne(a,sa);break}return this._d.setTime(a),A1.updateOffset(this,!0),this}function os1(e){var a,t;if(e=h4(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?DM:PM,e){case"year":a=t(this.year()+1,0,1)-1;break;case"quarter":a=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=t(this.year(),this.month()+1,1)-1;break;case"week":a=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=oa-Ne(a+(this._isUTC?0:this.utcOffset()*Se),oa)-1;break;case"minute":a=this._d.valueOf(),a+=Se-Ne(a,Se)-1;break;case"second":a=this._d.valueOf(),a+=sa-Ne(a,sa)-1;break}return this._d.setTime(a),A1.updateOffset(this,!0),this}function ls1(){return this._d.valueOf()-(this._offset||0)*6e4}function fs1(){return Math.floor(this.valueOf()/1e3)}function us1(){return new Date(this.valueOf())}function hs1(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ds1(){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 ms1(){return this.isValid()?this.toISOString():null}function ps1(){return j9(this)}function vs1(){return Y0({},G1(this))}function gs1(){return G1(this).overflow}function xs1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}R1("N",0,0,"eraAbbr");R1("NN",0,0,"eraAbbr");R1("NNN",0,0,"eraAbbr");R1("NNNN",0,0,"eraName");R1("NNNNN",0,0,"eraNarrow");R1("y",["y",1],"yo","eraYear");R1("y",["yy",2],0,"eraYear");R1("y",["yyy",3],0,"eraYear");R1("y",["yyyy",4],0,"eraYear");N1("N",dn);N1("NN",dn);N1("NNN",dn);N1("NNNN",_s1);N1("NNNNN",As1);p2(["N","NN","NNN","NNNN","NNNNN"],function(e,a,t,c){var r=t._locale.erasParse(e,c,t._strict);r?G1(t).era=r:G1(t).invalidEra=e});N1("y",Ze);N1("yy",Ze);N1("yyy",Ze);N1("yyyy",Ze);N1("yo",Ss1);p2(["y","yy","yyy","yyyy"],L3);p2(["yo"],function(e,a,t,c){var r;t._locale._eraYearOrdinalRegex&&(r=e.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?a[L3]=t._locale.eraYearOrdinalParse(e,r):a[L3]=parseInt(e,10)});function zs1(e,a){var t,c,r,n=this._eras||S0("en")._eras;for(t=0,c=n.length;t<c;++t){switch(typeof n[t].since){case"string":r=A1(n[t].since).startOf("day"),n[t].since=r.valueOf();break}switch(typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":r=A1(n[t].until).startOf("day").valueOf(),n[t].until=r.valueOf();break}}return n}function Cs1(e,a,t){var c,r,n=this.eras(),i,s,l;for(e=e.toUpperCase(),c=0,r=n.length;c<r;++c)if(i=n[c].name.toUpperCase(),s=n[c].abbr.toUpperCase(),l=n[c].narrow.toUpperCase(),t)switch(a){case"N":case"NN":case"NNN":if(s===e)return n[c];break;case"NNNN":if(i===e)return n[c];break;case"NNNNN":if(l===e)return n[c];break}else if([i,s,l].indexOf(e)>=0)return n[c]}function Ms1(e,a){var t=e.since<=e.until?1:-1;return a===void 0?A1(e.since).year():A1(e.since).year()+(a-e.offset)*t}function Hs1(){var e,a,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return c[e].name;return""}function Vs1(){var e,a,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return c[e].narrow;return""}function ys1(){var e,a,t,c=this.localeData().eras();for(e=0,a=c.length;e<a;++e)if(t=this.clone().startOf("day").valueOf(),c[e].since<=t&&t<=c[e].until||c[e].until<=t&&t<=c[e].since)return c[e].abbr;return""}function bs1(){var e,a,t,c,r=this.localeData().eras();for(e=0,a=r.length;e<a;++e)if(t=r[e].since<=r[e].until?1:-1,c=this.clone().startOf("day").valueOf(),r[e].since<=c&&c<=r[e].until||r[e].until<=c&&c<=r[e].since)return(this.year()-A1(r[e].since).year())*t+r[e].offset;return this.year()}function ws1(e){return i2(this,"_erasNameRegex")||mn.call(this),e?this._erasNameRegex:this._erasRegex}function Ls1(e){return i2(this,"_erasAbbrRegex")||mn.call(this),e?this._erasAbbrRegex:this._erasRegex}function ks1(e){return i2(this,"_erasNarrowRegex")||mn.call(this),e?this._erasNarrowRegex:this._erasRegex}function dn(e,a){return a.erasAbbrRegex(e)}function _s1(e,a){return a.erasNameRegex(e)}function As1(e,a){return a.erasNarrowRegex(e)}function Ss1(e,a){return a._eraYearOrdinalRegex||Ze}function mn(){var e=[],a=[],t=[],c=[],r,n,i,s,l,f=this.eras();for(r=0,n=f.length;r<n;++r)i=C0(f[r].name),s=C0(f[r].abbr),l=C0(f[r].narrow),a.push(i),e.push(s),t.push(l),c.push(i),c.push(s),c.push(l);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}R1(0,["gg",2],0,function(){return this.weekYear()%100});R1(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xt(e,a){R1(0,[e,e.length],0,a)}xt("gggg","weekYear");xt("ggggg","weekYear");xt("GGGG","isoWeekYear");xt("GGGGG","isoWeekYear");N1("G",dt);N1("g",dt);N1("GG",w2,t4);N1("gg",w2,t4);N1("GGGG",en,J9);N1("gggg",en,J9);N1("GGGGG",ht,ft);N1("ggggg",ht,ft);D5(["gggg","ggggg","GGGG","GGGGG"],function(e,a,t,c){a[c.substr(0,2)]=K1(e)});D5(["gg","GG"],function(e,a,t,c){a[c]=A1.parseTwoDigitYear(e)});function Ns1(e){return BM.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ts1(e){return BM.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Es1(){return M0(this.year(),1,4)}function Fs1(){return M0(this.isoWeekYear(),1,4)}function Ps1(){var e=this.localeData()._week;return M0(this.year(),e.dow,e.doy)}function Ds1(){var e=this.localeData()._week;return M0(this.weekYear(),e.dow,e.doy)}function BM(e,a,t,c,r){var n;return e==null?i5(this,c,r).year:(n=M0(e,c,r),a>n&&(a=n),Bs1.call(this,e,a,t,c,r))}function Bs1(e,a,t,c,r){var n=gM(e,a,t,c,r),i=n5(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}R1("Q",0,"Qo","quarter");N1("Q",iM);p2("Q",function(e,a){a[v0]=(K1(e)-1)*3});function Os1(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}R1("D",["DD",2],"Do","date");N1("D",w2,Qe);N1("DD",w2,t4);N1("Do",function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient});p2(["D","DD"],Y4);p2("Do",function(e,a){a[Y4]=K1(e.match(w2)[0])});var OM=Ke("Date",!0);R1("DDD",["DDDD",3],"DDDo","dayOfYear");N1("DDD",ut);N1("DDDD",sM);p2(["DDD","DDDD"],function(e,a,t){t._dayOfYear=K1(e)});function Rs1(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?a:this.add(e-a,"d")}R1("m",["mm",2],0,"minute");N1("m",w2,an);N1("mm",w2,t4);p2(["m","mm"],V4);var Is1=Ke("Minutes",!1);R1("s",["ss",2],0,"second");N1("s",w2,an);N1("ss",w2,t4);p2(["s","ss"],g0);var $s1=Ke("Seconds",!1);R1("S",0,0,function(){return~~(this.millisecond()/100)});R1(0,["SS",2],0,function(){return~~(this.millisecond()/10)});R1(0,["SSS",3],0,"millisecond");R1(0,["SSSS",4],0,function(){return this.millisecond()*10});R1(0,["SSSSS",5],0,function(){return this.millisecond()*100});R1(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});R1(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});R1(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});R1(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});N1("S",ut,iM);N1("SS",ut,t4);N1("SSS",ut,sM);var q0,RM;for(q0="SSSS";q0.length<=9;q0+="S")N1(q0,Ze);function Us1(e,a){a[B6]=K1(("0."+e)*1e3)}for(q0="S";q0.length<=9;q0+="S")p2(q0,Us1);RM=Ke("Milliseconds",!1);R1("z",0,0,"zoneAbbr");R1("zz",0,0,"zoneName");function Ws1(){return this._isUTC?"UTC":""}function Ys1(){return this._isUTC?"Coordinated Universal Time":""}var L1=F5.prototype;L1.add=Di1;L1.calendar=Wi1;L1.clone=Yi1;L1.diff=Ki1;L1.endOf=os1;L1.format=ts1;L1.from=cs1;L1.fromNow=rs1;L1.to=ns1;L1.toNow=is1;L1.get=an1;L1.invalidAt=gs1;L1.isAfter=qi1;L1.isBefore=Gi1;L1.isBetween=ji1;L1.isSame=Xi1;L1.isSameOrAfter=Zi1;L1.isSameOrBefore=Qi1;L1.isValid=ps1;L1.lang=TM;L1.locale=NM;L1.localeData=EM;L1.max=pi1;L1.min=mi1;L1.parsingFlags=vs1;L1.set=tn1;L1.startOf=ss1;L1.subtract=Bi1;L1.toArray=hs1;L1.toObject=ds1;L1.toDate=us1;L1.toISOString=es1;L1.inspect=as1;typeof Symbol<"u"&&Symbol.for!=null&&(L1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});L1.toJSON=ms1;L1.toString=Ji1;L1.unix=fs1;L1.valueOf=ls1;L1.creationData=xs1;L1.eraName=Hs1;L1.eraNarrow=Vs1;L1.eraAbbr=ys1;L1.eraYear=bs1;L1.year=fM;L1.isLeapYear=en1;L1.weekYear=Ns1;L1.isoWeekYear=Ts1;L1.quarter=L1.quarters=Os1;L1.month=pM;L1.daysInMonth=un1;L1.week=L1.weeks=zn1;L1.isoWeek=L1.isoWeeks=Cn1;L1.weeksInYear=Ps1;L1.weeksInWeekYear=Ds1;L1.isoWeeksInYear=Es1;L1.isoWeeksInISOWeekYear=Fs1;L1.date=OM;L1.day=L1.days=Tn1;L1.weekday=En1;L1.isoWeekday=Fn1;L1.dayOfYear=Rs1;L1.hour=L1.hours=$n1;L1.minute=L1.minutes=Is1;L1.second=L1.seconds=$s1;L1.millisecond=L1.milliseconds=RM;L1.utcOffset=yi1;L1.utc=wi1;L1.local=Li1;L1.parseZone=ki1;L1.hasAlignedHourOffset=_i1;L1.isDST=Ai1;L1.isLocal=Ni1;L1.isUtcOffset=Ti1;L1.isUtc=kM;L1.isUTC=kM;L1.zoneAbbr=Ws1;L1.zoneName=Ys1;L1.dates=u4("dates accessor is deprecated. Use date instead.",OM);L1.months=u4("months accessor is deprecated. Use month instead",pM);L1.years=u4("years accessor is deprecated. Use year instead",fM);L1.zone=u4("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bi1);L1.isDSTShifted=u4("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Si1);function qs1(e){return b2(e*1e3)}function Gs1(){return b2.apply(null,arguments).parseZone()}function IM(e){return e}var s2=Z9.prototype;s2.calendar=N91;s2.longDateFormat=P91;s2.invalidDate=B91;s2.ordinal=I91;s2.preparse=IM;s2.postformat=IM;s2.relativeTime=U91;s2.pastFuture=W91;s2.set=A91;s2.eras=zs1;s2.erasParse=Cs1;s2.erasConvertYear=Ms1;s2.erasAbbrRegex=Ls1;s2.erasNameRegex=ws1;s2.erasNarrowRegex=ks1;s2.months=sn1;s2.monthsShort=on1;s2.monthsParse=fn1;s2.monthsRegex=dn1;s2.monthsShortRegex=hn1;s2.week=pn1;s2.firstDayOfYear=xn1;s2.firstDayOfWeek=gn1;s2.weekdays=kn1;s2.weekdaysMin=An1;s2.weekdaysShort=_n1;s2.weekdaysParse=Nn1;s2.weekdaysRegex=Pn1;s2.weekdaysShortRegex=Dn1;s2.weekdaysMinRegex=Bn1;s2.isPM=Rn1;s2.meridiem=Un1;function la(e,a,t,c){var r=S0(),n=r0().set(c,a);return r[t](n,e)}function $M(e,a,t){if(L0(e)&&(a=e,e=void 0),e=e||"",a!=null)return la(e,a,t,"month");var c,r=[];for(c=0;c<12;c++)r[c]=la(e,c,t,"month");return r}function pn(e,a,t,c){typeof e=="boolean"?(L0(a)&&(t=a,a=void 0),a=a||""):(a=e,t=a,e=!1,L0(a)&&(t=a,a=void 0),a=a||"");var r=S0(),n=e?r._week.dow:0,i,s=[];if(t!=null)return la(a,(t+n)%7,c,"day");for(i=0;i<7;i++)s[i]=la(a,(i+n)%7,c,"day");return s}function js1(e,a){return $M(e,a,"months")}function Xs1(e,a){return $M(e,a,"monthsShort")}function Zs1(e,a,t){return pn(e,a,t,"weekdays")}function Qs1(e,a,t){return pn(e,a,t,"weekdaysShort")}function Ks1(e,a,t){return pn(e,a,t,"weekdaysMin")}c6("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10,t=K1(e%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return e+t}});A1.lang=u4("moment.lang is deprecated. Use moment.locale instead.",c6);A1.langData=u4("moment.langData is deprecated. Use moment.localeData instead.",S0);var l0=Math.abs;function Js1(){var e=this._data;return this._milliseconds=l0(this._milliseconds),this._days=l0(this._days),this._months=l0(this._months),e.milliseconds=l0(e.milliseconds),e.seconds=l0(e.seconds),e.minutes=l0(e.minutes),e.hours=l0(e.hours),e.months=l0(e.months),e.years=l0(e.years),this}function UM(e,a,t,c){var r=F4(a,t);return e._milliseconds+=c*r._milliseconds,e._days+=c*r._days,e._months+=c*r._months,e._bubble()}function eo1(e,a){return UM(this,e,a,1)}function ao1(e,a){return UM(this,e,a,-1)}function ys(e){return e<0?Math.floor(e):Math.ceil(e)}function to1(){var e=this._milliseconds,a=this._days,t=this._months,c=this._data,r,n,i,s,l;return e>=0&&a>=0&&t>=0||e<=0&&a<=0&&t<=0||(e+=ys(er(t)+a)*864e5,a=0,t=0),c.milliseconds=e%1e3,r=s4(e/1e3),c.seconds=r%60,n=s4(r/60),c.minutes=n%60,i=s4(n/60),c.hours=i%24,a+=s4(i/24),l=s4(WM(a)),t+=l,a-=ys(er(l)),s=s4(t/12),t%=12,c.days=a,c.months=t,c.years=s,this}function WM(e){return e*4800/146097}function er(e){return e*146097/4800}function co1(e){if(!this.isValid())return NaN;var a,t,c=this._milliseconds;if(e=h4(e),e==="month"||e==="quarter"||e==="year")switch(a=this._days+c/864e5,t=this._months+WM(a),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(a=this._days+Math.round(er(this._months)),e){case"week":return a/7+c/6048e5;case"day":return a+c/864e5;case"hour":return a*24+c/36e5;case"minute":return a*1440+c/6e4;case"second":return a*86400+c/1e3;case"millisecond":return Math.floor(a*864e5)+c;default:throw new Error("Unknown unit "+e)}}function N0(e){return function(){return this.as(e)}}var YM=N0("ms"),ro1=N0("s"),no1=N0("m"),io1=N0("h"),so1=N0("d"),oo1=N0("w"),lo1=N0("M"),fo1=N0("Q"),uo1=N0("y"),ho1=YM;function do1(){return F4(this)}function mo1(e){return e=h4(e),this.isValid()?this[e+"s"]():NaN}function te(e){return function(){return this.isValid()?this._data[e]:NaN}}var po1=te("milliseconds"),vo1=te("seconds"),go1=te("minutes"),xo1=te("hours"),zo1=te("days"),Co1=te("months"),Mo1=te("years");function Ho1(){return s4(this.days()/7)}var d0=Math.round,ye={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vo1(e,a,t,c,r){return r.relativeTime(a||1,!!t,e,c)}function yo1(e,a,t,c){var r=F4(e).abs(),n=d0(r.as("s")),i=d0(r.as("m")),s=d0(r.as("h")),l=d0(r.as("d")),f=d0(r.as("M")),u=d0(r.as("w")),h=d0(r.as("y")),d=n<=t.ss&&["s",n]||n<t.s&&["ss",n]||i<=1&&["m"]||i<t.m&&["mm",i]||s<=1&&["h"]||s<t.h&&["hh",s]||l<=1&&["d"]||l<t.d&&["dd",l];return t.w!=null&&(d=d||u<=1&&["w"]||u<t.w&&["ww",u]),d=d||f<=1&&["M"]||f<t.M&&["MM",f]||h<=1&&["y"]||["yy",h],d[2]=a,d[3]=+e>0,d[4]=c,Vo1.apply(null,d)}function bo1(e){return e===void 0?d0:typeof e=="function"?(d0=e,!0):!1}function wo1(e,a){return ye[e]===void 0?!1:a===void 0?ye[e]:(ye[e]=a,e==="s"&&(ye.ss=a-1),!0)}function Lo1(e,a){if(!this.isValid())return this.localeData().invalidDate();var t=!1,c=ye,r,n;return typeof e=="object"&&(a=e,e=!1),typeof e=="boolean"&&(t=e),typeof a=="object"&&(c=Object.assign({},ye,a),a.s!=null&&a.ss==null&&(c.ss=a.s-1)),r=this.localeData(),n=yo1(this,!t,c,r),t&&(n=r.pastFuture(+this,n)),r.postformat(n)}var Gt=Math.abs;function de(e){return(e>0)-(e<0)||+e}function zt(){if(!this.isValid())return this.localeData().invalidDate();var e=Gt(this._milliseconds)/1e3,a=Gt(this._days),t=Gt(this._months),c,r,n,i,s=this.asSeconds(),l,f,u,h;return s?(c=s4(e/60),r=s4(c/60),e%=60,c%=60,n=s4(t/12),t%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",f=de(this._months)!==de(s)?"-":"",u=de(this._days)!==de(s)?"-":"",h=de(this._milliseconds)!==de(s)?"-":"",l+"P"+(n?f+n+"Y":"")+(t?f+t+"M":"")+(a?u+a+"D":"")+(r||c||e?"T":"")+(r?h+r+"H":"")+(c?h+c+"M":"")+(e?h+i+"S":"")):"P0D"}var c2=gt.prototype;c2.isValid=Ci1;c2.abs=Js1;c2.add=eo1;c2.subtract=ao1;c2.as=co1;c2.asMilliseconds=YM;c2.asSeconds=ro1;c2.asMinutes=no1;c2.asHours=io1;c2.asDays=so1;c2.asWeeks=oo1;c2.asMonths=lo1;c2.asQuarters=fo1;c2.asYears=uo1;c2.valueOf=ho1;c2._bubble=to1;c2.clone=do1;c2.get=mo1;c2.milliseconds=po1;c2.seconds=vo1;c2.minutes=go1;c2.hours=xo1;c2.days=zo1;c2.weeks=Ho1;c2.months=Co1;c2.years=Mo1;c2.humanize=Lo1;c2.toISOString=zt;c2.toString=zt;c2.toJSON=zt;c2.locale=NM;c2.localeData=EM;c2.toIsoString=u4("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zt);c2.lang=TM;R1("X",0,0,"unix");R1("x",0,0,"valueOf");N1("x",dt);N1("X",j91);p2("X",function(e,a,t){t._d=new Date(parseFloat(e)*1e3)});p2("x",function(e,a,t){t._d=new Date(K1(e))});//! moment.js
|
|
777
|
-
A1.version="2.30.1";k91(b2);A1.fn=L1;A1.min=vi1;A1.max=gi1;A1.now=xi1;A1.utc=r0;A1.unix=qs1;A1.months=js1;A1.isDate=E5;A1.locale=c6;A1.invalid=lt;A1.duration=F4;A1.isMoment=T4;A1.weekdays=Zs1;A1.parseZone=Gs1;A1.localeData=S0;A1.isDuration=R7;A1.monthsShort=Xs1;A1.weekdaysMin=Ks1;A1.defineLocale=sn;A1.updateLocale=Gn1;A1.locales=jn1;A1.weekdaysShort=Qs1;A1.normalizeUnits=h4;A1.relativeTimeRounding=bo1;A1.relativeTimeThreshold=wo1;A1.calendarFormat=Ui1;A1.prototype=L1;A1.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"};function ko1(e,a,t){a&&Object.keys(a).forEach(c=>{if(!a[c]||a[c]instanceof File)return e[c]=a[c];if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(a[c])&&A1(a[c],A1.ISO_8601,!0).isValid())return e[c]=new Date(a[c]);typeof a[c]=="object"&&(t!=null&&t[c])?Array.isArray(a[c])?e[c]=a[c].map(r=>new t[c](r)):e[c]=new t[c](a[c]):e[c]=a[c]})}function _o1(e){if(!e)return!1;let a=e;const t=["http://","https://"];for(const c of t)if(e.startsWith(c)){a=e.replace(c,"");break}return a=a.replace(/:(\d*)$/,""),window.location.href.includes(a)}function qM(){window.scrollTo({top:0,behavior:"smooth"})}const Ao1={class:"text"},So1=["textContent"],No1=o.defineComponent({__name:"PgaDisplayText",props:{text:{type:[String,Function]},icon:{}},setup(e){const a=e,t=o.computed(()=>typeof a.text=="string"?a.text:a.text());return(c,r)=>(o.openBlock(),o.createElementBlock("span",Ao1,[c.icon?(o.openBlock(),o.createBlock(S4,{key:0,icon:c.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createElementVNode("span",{textContent:o.toDisplayString(t.value)},null,8,So1)]))}});const x6=d2(No1,[["__scopeId","data-v-5680ba7e"]]),To1={key:1,class:"button--content"},Eo1=["textContent"],Fo1=o.defineComponent({__name:"PgaButton",props:{icon:{},text:{},type:{},size:{default:"m"},color:{default:"primary"},isLoading:{type:Boolean},numberToDisplay:{}},emits:["click"],setup(e,{emit:a}){o.useCssVars(p=>({"75cb9af1":s.value,"904b743e":o.unref(r).input.height,"3cbac0f6":u.value,"358685d0":o.unref(r).input.borderRadius,"20e35d02":l.value,"3a6ae9b4":f.value,"4b47ebd6":h.value,"8b02f6b0":v.value,"7760cf1c":d.value,"4887efac":m.value}));const t=e,c=a,{formOptions:r}=q3.storeToRefs(l4()),n=o.computed(()=>t.type?t.type:l4().buttonOptions.type);function i(p){t.isLoading||c("click",p)}const s=o.computed(()=>{if(t.size==="xs")return"0.8em";if(t.size==="s")return"0.9em";if(t.size==="m")return"1em";if(t.size==="l")return"1.1em";if(t.size==="xl")return"1.2em"}),l=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),f=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color})`:`rgba(var(--pga-color-${t.color}-rgb), 0.1)`),u=o.computed(()=>n.value==="filled"||n.value==="flat"?"none":`var(--pga-color-${t.color})`),h=o.computed(()=>n.value==="filled"?`rgba(var(--pga-color-${t.color}-rgb), 0.9)`:`rgba(var(--pga-color-${t.color}-rgb), 0.2)`),d=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color})`:`var(--pga-color-${t.color}-contrast)`),m=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),v=o.computed(()=>n.value==="flat"?"none":n.value==="filled"?`var(--pga-color-${t.color})`:"none");return(p,g)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["button",{"button__is-loading":p.isLoading}]),onClick:g[1]||(g[1]=z=>i(z))},[p.isLoading?(o.openBlock(),o.createBlock(ot,{key:0,class:"button--spinner",color:p.color},null,8,["color"])):(o.openBlock(),o.createElementBlock("div",To1,[p.icon?(o.openBlock(),o.createBlock(S4,{key:0,icon:p.icon},null,8,["icon"])):o.createCommentVNode("",!0),p.text?(o.openBlock(),o.createBlock(x6,{key:1,text:p.text},null,8,["text"])):o.createCommentVNode("",!0),!p.icon&&!p.text?o.renderSlot(p.$slots,"default",{key:2},void 0,!0):o.createCommentVNode("",!0)])),p.numberToDisplay?(o.openBlock(),o.createElementBlock("div",{key:2,class:"button--number-to-display",onClick:g[0]||(g[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("span",{class:"number-to-display--number",textContent:o.toDisplayString(p.numberToDisplay)},null,8,Eo1)])):o.createCommentVNode("",!0)],2))}});const X6=d2(Fo1,[["__scopeId","data-v-2dbfb9cb"]]),Po1={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},Do1={es:{logoutBtn:"Cerrar sesión"}},Bo1={es:{noItemsText:"No hay resultados"}},Oo1={es:{cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},Ro1={es:{selectFileLabel:"Seleccione un archivo",removeBtn:"Eliminar archivo",newFileError:"Formato inválido"}},Io1={es:{optionalLabel:"Opcional"}},$o1={es:{inputLabelUsername:"Usuario",inputLabelPassword:"Contraseña",inputValidationErrorUsernameRequired:"Debe ingresar un usuario",inputValidationErrorPasswordRequired:"Debe ingresar una contraseña",loginBtn:"Iniciar sesión"}},Uo1={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},Wo1={es:{removeAllBtn:"Eliminar todo"}},Yo1={alert:Po1,pgaLogoutButton:Do1,pgaDisplayNoItems:Bo1,pgaDatePicker:Oo1,pgaInputFile:Ro1,pgaInputGroup:Io1,pgaLoginForm:$o1,pgaModal:Uo1,notifications:Wo1};function qo1(e,a){return q3.defineStore(e,()=>({language:o.ref(a)}),{persist:!0})}function GM(e,a,t){const c=qo1(e,a);function r(){return c().language}function n(s){c().language=s}function i(s,l){return function(f,u={}){const h=c().language,d=t==null?void 0:t[s],m=d==null?void 0:d[h],v=l?`${l}__${f}`:f,p=(m==null?void 0:m[v])||"",g=u.count?u.count:0,z=p.split("|").map(x=>x.trim());let M=z[0];z.length===2?M=g===1?z[0]:z[1]:z.length===3&&(M=g===0?z[0]:g===1?z[1]:z[2]),M=M.replace(new RegExp("{count}","g"),g.toString());for(const x in u)x!=="count"&&u[x]&&(M=M.replace(new RegExp(`{${x}}`,"g"),u[x].toString()));return M}}return{getLanguage:r,setLanguage:n,useI18n:i}}const{getLanguage:Go1,setLanguage:jo1,useI18n:T0}=GM("pga-i18n","es",Yo1),Xo1={class:"modal--header"},Zo1=["textContent"],Qo1={class:"modal--body"},Ko1={key:0,class:"modal--footer"},Jo1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=a,r=T0("pgaModal");return o.watch(t,n=>ra(!n)),(n,i)=>t.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>t.value=!1)},[o.createElementVNode("div",{class:"modal--content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Xo1,[o.createElementVNode("span",{class:"modal--title",textContent:o.toDisplayString(n.title)},null,8,Zo1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>t.value=!1)},[o.createVNode(S4,{icon:"xmark"})])]),o.createElementVNode("div",Qo1,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),n.confirmButtons?(o.openBlock(),o.createElementBlock("div",Ko1,[n.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(X6,{key:0,text:o.unref(r)("cancelBtn"),color:"danger",onClick:i[1]||(i[1]=s=>t.value=!1)},null,8,["text"])),o.createVNode(X6,{text:o.unref(r)("acceptBtn"),color:"success",disabled:n.isLoading,isLoading:n.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["text","disabled","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const el1=d2(Jo1,[["__scopeId","data-v-a1b09eb3"]]),al1={delayTime:300},tl1={class:"user-menu"},cl1={key:0,class:"user-menu--dropdown"},rl1=["onClick"],nl1=o.defineComponent({__name:"PgaUserMenu",props:{dropdownOptions:{}},setup(e){let a=!1,t;const c=o.ref(!1);function r(){a||(c.value=!0)}function n(){clearTimeout(t),a=!0,c.value=!1,t=setTimeout(()=>a=!1,al1.delayTime)}function i(s){s.handleClickFn(),c.value=!1}return(s,l)=>{const f=o.resolveComponent("PgaIcon"),u=o.resolveComponent("PgaDisplayText"),h=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",tl1,[o.createElementVNode("div",{class:"user-menu--icon-container",onClick:l[0]||(l[0]=d=>r())},[o.createVNode(f,{class:"user-menu--user-icon",icon:["far","user"]})]),c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",cl1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.dropdownOptions,(d,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:"dropdown--option",style:o.normalizeStyle({color:d.color}),onClick:v=>i(d)},[o.createVNode(f,{class:"option--icon",icon:d.icon},null,8,["icon"]),o.createVNode(u,{class:"option--label",text:d.label},null,8,["text"])],12,rl1))),128))])),[[h,n]]):o.createCommentVNode("",!0)])}}});const il1=d2(nl1,[["__scopeId","data-v-1dcfef0a"]]),sl1={class:"button-link"},ol1=o.defineComponent({__name:"PgaButtonLink",props:{text:{},size:{default:"inherit"}},setup(e){return o.useCssVars(a=>({"2253c841":a.size})),(a,t)=>(o.openBlock(),o.createElementBlock("button",sl1,[o.createVNode(x6,{class:"button-link--text",text:a.text},null,8,["text"])]))}});const jM=d2(ol1,[["__scopeId","data-v-a03e85d0"]]),ll1={class:"alert"},fl1={class:"alert--content"},ul1=["textContent"],hl1={class:"alert--buttons"},dl1=o.defineComponent({__name:"Alert",props:{message:{type:[String,Function]},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const a=kr.directive,t=T0("alert");return o.onMounted(()=>ra(!1)),o.onUnmounted(()=>ra(!0)),(c,r)=>(o.openBlock(),o.createElementBlock("div",ll1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",fl1,[o.createVNode(S4,{class:"alert--icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert--title",textContent:o.toDisplayString(o.unref(t)("alertTitle"))},null,8,ul1),o.createVNode(x6,{class:"alert--message",text:c.message},null,8,["text"]),o.createElementVNode("div",hl1,[o.createVNode(X6,{class:"alert--button",text:o.unref(t)("cancelBtn"),type:"filled",color:"grey",onClick:r[0]||(r[0]=n=>c.handleCloseFn())},null,8,["text"]),o.createVNode(X6,{class:"alert--button",text:o.unref(t)("acceptBtn"),type:"filled",color:"danger",onClick:r[1]||(r[1]=n=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(a),()=>c.handleCloseFn()]])]))}});const ml1=d2(dl1,[["__scopeId","data-v-102d409f"]]);function XM(e,a){const t=document.createElement("div");document.body.appendChild(t);const c=o.createApp({render(){return o.h(ml1,{message:e,handleAcceptFn:n,handleCloseFn:r})}});c.mount(t);function r(){c.unmount(),document.body.removeChild(t)}function n(){r(),a()}}const pl1=o.defineComponent({__name:"PgaDeleteButton",props:{confirmDeleteText:{type:[String,Function]}},emits:["deleteConfirmed"],setup(e,{emit:a}){const t=e,c=a;function r(){XM(t.confirmDeleteText,()=>c("deleteConfirmed"))}return(n,i)=>{const s=o.resolveComponent("PgaButton");return o.openBlock(),o.createBlock(s,{class:"delete-button",icon:["fas","trash"],size:"xs",color:"danger",onClick:r})}}}),vl1={};function gl1(e,a){const t=o.resolveComponent("PgaButton");return o.openBlock(),o.createBlock(t,{class:"edit-button",icon:["far","pen-to-square"],size:"xs"})}const xl1=d2(vl1,[["render",gl1]]),zl1=["href","target"],Cl1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:a.href,target:a.target},[o.createVNode(x6,{text:a.text},null,8,["text"])],8,zl1))}});const Ml1=d2(Cl1,[["__scopeId","data-v-ecae3b04"]]),Hl1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:a}){const t=a,c=T0("pgaLogoutButton");return(r,n)=>(o.openBlock(),o.createBlock(X6,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:n[0]||(n[0]=i=>t("click",i))},null,8,["text"]))}});/*!
|
|
777
|
+
A1.version="2.30.1";k91(b2);A1.fn=L1;A1.min=vi1;A1.max=gi1;A1.now=xi1;A1.utc=r0;A1.unix=qs1;A1.months=js1;A1.isDate=E5;A1.locale=c6;A1.invalid=lt;A1.duration=F4;A1.isMoment=T4;A1.weekdays=Zs1;A1.parseZone=Gs1;A1.localeData=S0;A1.isDuration=R7;A1.monthsShort=Xs1;A1.weekdaysMin=Ks1;A1.defineLocale=sn;A1.updateLocale=Gn1;A1.locales=jn1;A1.weekdaysShort=Qs1;A1.normalizeUnits=h4;A1.relativeTimeRounding=bo1;A1.relativeTimeThreshold=wo1;A1.calendarFormat=Ui1;A1.prototype=L1;A1.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"};function ko1(e,a,t){a&&Object.keys(a).forEach(c=>{if(!a[c]||a[c]instanceof File)return e[c]=a[c];if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(a[c])&&A1(a[c],A1.ISO_8601,!0).isValid())return e[c]=new Date(a[c]);typeof a[c]=="object"&&(t!=null&&t[c])?Array.isArray(a[c])?e[c]=a[c].map(r=>new t[c](r)):e[c]=new t[c](a[c]):e[c]=a[c]})}function _o1(e){if(!e)return!1;let a=e;const t=["http://","https://"];for(const c of t)if(e.startsWith(c)){a=e.replace(c,"");break}return a=a.replace(/:(\d*)$/,""),window.location.href.includes(a)}function qM(){window.scrollTo({top:0,behavior:"smooth"})}const Ao1={class:"text"},So1=["textContent"],No1=o.defineComponent({__name:"PgaDisplayText",props:{text:{type:[String,Function]},icon:{}},setup(e){const a=e,t=o.computed(()=>typeof a.text=="string"?a.text:a.text());return(c,r)=>(o.openBlock(),o.createElementBlock("span",Ao1,[c.icon?(o.openBlock(),o.createBlock(S4,{key:0,icon:c.icon},null,8,["icon"])):o.createCommentVNode("",!0),o.createElementVNode("span",{textContent:o.toDisplayString(t.value)},null,8,So1)]))}});const x6=d2(No1,[["__scopeId","data-v-5680ba7e"]]),To1={key:1,class:"button--content"},Eo1=["textContent"],Fo1=o.defineComponent({__name:"PgaButton",props:{icon:{},text:{},type:{},size:{default:"m"},color:{default:"primary"},isLoading:{type:Boolean},numberToDisplay:{}},emits:["click"],setup(e,{emit:a}){o.useCssVars(p=>({87641860:s.value,dbcce13c:o.unref(r).input.height,"775ec7b7":u.value,"232521d9":o.unref(r).input.borderRadius,e4806efa:l.value,"3b88b016":f.value,a5ae2396:h.value,"44f3f872":v.value,"4d7c5d0a":d.value,"22a0dfc9":m.value}));const t=e,c=a,{formOptions:r}=q3.storeToRefs(l4()),n=o.computed(()=>t.type?t.type:l4().buttonOptions.type);function i(p){t.isLoading||c("click",p)}const s=o.computed(()=>{if(t.size==="xs")return"0.8em";if(t.size==="s")return"0.9em";if(t.size==="m")return"1em";if(t.size==="l")return"1.1em";if(t.size==="xl")return"1.2em"}),l=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),f=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color})`:`rgba(var(--pga-color-${t.color}-rgb), 0.1)`),u=o.computed(()=>n.value==="filled"||n.value==="flat"?"none":`var(--pga-color-${t.color})`),h=o.computed(()=>n.value==="filled"?`rgba(var(--pga-color-${t.color}-rgb), 0.9)`:`rgba(var(--pga-color-${t.color}-rgb), 0.2)`),d=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color})`:`var(--pga-color-${t.color}-contrast)`),m=o.computed(()=>n.value==="filled"?`var(--pga-color-${t.color}-contrast)`:`var(--pga-color-${t.color})`),v=o.computed(()=>n.value==="flat"?"none":n.value==="filled"?`var(--pga-color-${t.color})`:"none");return(p,g)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["button",{"button__is-loading":p.isLoading}]),onClick:g[1]||(g[1]=z=>i(z))},[p.isLoading?(o.openBlock(),o.createBlock(ot,{key:0,class:"button--spinner",color:p.color},null,8,["color"])):(o.openBlock(),o.createElementBlock("div",To1,[p.icon?(o.openBlock(),o.createBlock(S4,{key:0,icon:p.icon},null,8,["icon"])):o.createCommentVNode("",!0),p.text?(o.openBlock(),o.createBlock(x6,{key:1,text:p.text},null,8,["text"])):o.createCommentVNode("",!0),!p.icon&&!p.text?o.renderSlot(p.$slots,"default",{key:2},void 0,!0):o.createCommentVNode("",!0)])),p.numberToDisplay?(o.openBlock(),o.createElementBlock("div",{key:2,class:"button--number-to-display",onClick:g[0]||(g[0]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("span",{class:"number-to-display--number",textContent:o.toDisplayString(p.numberToDisplay)},null,8,Eo1)])):o.createCommentVNode("",!0)],2))}});const X6=d2(Fo1,[["__scopeId","data-v-7e5300bc"]]),Po1={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},Do1={es:{logoutBtn:"Cerrar sesión"}},Bo1={es:{noItemsText:"No hay resultados"}},Oo1={es:{cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},Ro1={es:{selectFileLabel:"Seleccione un archivo",removeBtn:"Eliminar archivo",newFileError:"Formato inválido"}},Io1={es:{optionalLabel:"Opcional"}},$o1={es:{inputLabelUsername:"Usuario",inputLabelPassword:"Contraseña",inputValidationErrorUsernameRequired:"Debe ingresar un usuario",inputValidationErrorPasswordRequired:"Debe ingresar una contraseña",loginBtn:"Iniciar sesión"}},Uo1={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},Wo1={es:{removeAllBtn:"Eliminar todo"}},Yo1={alert:Po1,pgaLogoutButton:Do1,pgaDisplayNoItems:Bo1,pgaDatePicker:Oo1,pgaInputFile:Ro1,pgaInputGroup:Io1,pgaLoginForm:$o1,pgaModal:Uo1,notifications:Wo1};function qo1(e,a){return q3.defineStore(e,()=>({language:o.ref(a)}),{persist:!0})}function GM(e,a,t){const c=qo1(e,a);function r(){return c().language}function n(s){c().language=s}function i(s,l){return function(f,u={}){const h=c().language,d=t==null?void 0:t[s],m=d==null?void 0:d[h],v=l?`${l}__${f}`:f,p=(m==null?void 0:m[v])||"",g=u.count?u.count:0,z=p.split("|").map(x=>x.trim());let M=z[0];z.length===2?M=g===1?z[0]:z[1]:z.length===3&&(M=g===0?z[0]:g===1?z[1]:z[2]),M=M.replace(new RegExp("{count}","g"),g.toString());for(const x in u)x!=="count"&&u[x]&&(M=M.replace(new RegExp(`{${x}}`,"g"),u[x].toString()));return M}}return{getLanguage:r,setLanguage:n,useI18n:i}}const{getLanguage:Go1,setLanguage:jo1,useI18n:T0}=GM("pga-i18n","es",Yo1),Xo1={class:"modal--header"},Zo1=["textContent"],Qo1={class:"modal--body"},Ko1={key:0,class:"modal--footer"},Jo1=o.defineComponent({__name:"PgaModal",props:o.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:o.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=a,r=T0("pgaModal");return o.watch(t,n=>ra(!n)),(n,i)=>t.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"modal",onMousedown:i[4]||(i[4]=s=>t.value=!1)},[o.createElementVNode("div",{class:"modal--content",onMousedown:i[3]||(i[3]=o.withModifiers(()=>{},["stop"]))},[o.createElementVNode("div",Xo1,[o.createElementVNode("span",{class:"modal--title",textContent:o.toDisplayString(n.title)},null,8,Zo1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>t.value=!1)},[o.createVNode(S4,{icon:"xmark"})])]),o.createElementVNode("div",Qo1,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),n.confirmButtons?(o.openBlock(),o.createElementBlock("div",Ko1,[n.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(X6,{key:0,text:o.unref(r)("cancelBtn"),color:"danger",onClick:i[1]||(i[1]=s=>t.value=!1)},null,8,["text"])),o.createVNode(X6,{text:o.unref(r)("acceptBtn"),color:"success",disabled:n.isLoading,isLoading:n.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["text","disabled","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const el1=d2(Jo1,[["__scopeId","data-v-a1b09eb3"]]),al1={delayTime:300},tl1={class:"user-menu"},cl1={key:0,class:"user-menu--dropdown"},rl1=["onClick"],nl1=o.defineComponent({__name:"PgaUserMenu",props:{dropdownOptions:{}},setup(e){let a=!1,t;const c=o.ref(!1);function r(){a||(c.value=!0)}function n(){clearTimeout(t),a=!0,c.value=!1,t=setTimeout(()=>a=!1,al1.delayTime)}function i(s){s.handleClickFn(),c.value=!1}return(s,l)=>{const f=o.resolveComponent("PgaIcon"),u=o.resolveComponent("PgaDisplayText"),h=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",tl1,[o.createElementVNode("div",{class:"user-menu--icon-container",onClick:l[0]||(l[0]=d=>r())},[o.createVNode(f,{class:"user-menu--user-icon",icon:["far","user"]})]),c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",cl1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.dropdownOptions,(d,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:"dropdown--option",style:o.normalizeStyle({color:d.color}),onClick:v=>i(d)},[o.createVNode(f,{class:"option--icon",icon:d.icon},null,8,["icon"]),o.createVNode(u,{class:"option--label",text:d.label},null,8,["text"])],12,rl1))),128))])),[[h,n]]):o.createCommentVNode("",!0)])}}});const il1=d2(nl1,[["__scopeId","data-v-1dcfef0a"]]),sl1={class:"button-link"},ol1=o.defineComponent({__name:"PgaButtonLink",props:{text:{},size:{default:"inherit"}},setup(e){return o.useCssVars(a=>({"2253c841":a.size})),(a,t)=>(o.openBlock(),o.createElementBlock("button",sl1,[o.createVNode(x6,{class:"button-link--text",text:a.text},null,8,["text"])]))}});const jM=d2(ol1,[["__scopeId","data-v-a03e85d0"]]),ll1={class:"alert"},fl1={class:"alert--content"},ul1=["textContent"],hl1={class:"alert--buttons"},dl1=o.defineComponent({__name:"Alert",props:{message:{type:[String,Function]},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const a=kr.directive,t=T0("alert");return o.onMounted(()=>ra(!1)),o.onUnmounted(()=>ra(!0)),(c,r)=>(o.openBlock(),o.createElementBlock("div",ll1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",fl1,[o.createVNode(S4,{class:"alert--icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert--title",textContent:o.toDisplayString(o.unref(t)("alertTitle"))},null,8,ul1),o.createVNode(x6,{class:"alert--message",text:c.message},null,8,["text"]),o.createElementVNode("div",hl1,[o.createVNode(X6,{class:"alert--button",text:o.unref(t)("cancelBtn"),type:"filled",color:"grey",onClick:r[0]||(r[0]=n=>c.handleCloseFn())},null,8,["text"]),o.createVNode(X6,{class:"alert--button",text:o.unref(t)("acceptBtn"),type:"filled",color:"danger",onClick:r[1]||(r[1]=n=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(a),()=>c.handleCloseFn()]])]))}});const ml1=d2(dl1,[["__scopeId","data-v-102d409f"]]);function XM(e,a){const t=document.createElement("div");document.body.appendChild(t);const c=o.createApp({render(){return o.h(ml1,{message:e,handleAcceptFn:n,handleCloseFn:r})}});c.mount(t);function r(){c.unmount(),document.body.removeChild(t)}function n(){r(),a()}}const pl1=o.defineComponent({__name:"PgaDeleteButton",props:{confirmDeleteText:{type:[String,Function]}},emits:["deleteConfirmed"],setup(e,{emit:a}){const t=e,c=a;function r(){XM(t.confirmDeleteText,()=>c("deleteConfirmed"))}return(n,i)=>{const s=o.resolveComponent("PgaButton");return o.openBlock(),o.createBlock(s,{class:"delete-button",icon:["fas","trash"],size:"xs",color:"danger",onClick:r})}}}),vl1={};function gl1(e,a){const t=o.resolveComponent("PgaButton");return o.openBlock(),o.createBlock(t,{class:"edit-button",icon:["far","pen-to-square"],size:"xs"})}const xl1=d2(vl1,[["render",gl1]]),zl1=["href","target"],Cl1=o.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("a",{class:"hyperlink",href:a.href,target:a.target},[o.createVNode(x6,{text:a.text},null,8,["text"])],8,zl1))}});const Ml1=d2(Cl1,[["__scopeId","data-v-ecae3b04"]]),Hl1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:a}){const t=a,c=T0("pgaLogoutButton");return(r,n)=>(o.openBlock(),o.createBlock(X6,{icon:["fas","right-from-bracket"],text:o.unref(c)("logoutBtn"),color:"danger",onClick:n[0]||(n[0]=i=>t("click",i))},null,8,["text"]))}});/*!
|
|
778
778
|
* @kurkle/color v0.3.2
|
|
779
779
|
* https://github.com/kurkle/color#readme
|
|
780
780
|
* (c) 2023 Jukka Kurkela
|
|
@@ -828,4 +828,4 @@ A1.version="2.30.1";k91(b2);A1.fn=L1;A1.min=vi1;A1.max=gi1;A1.now=xi1;A1.utc=r0;
|
|
|
828
828
|
`),t=r2(a.replace(/<[^>]*>/g,""));return[t]}var ff={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function sb(e,a){var t=a||{},c=ni(e),r=[],n,i,s={name:""},l="",f=0,u,h,d={},m=[],v=t.dense?[]:{},p,g,z={value:""},M="",x=0,y=[],k=-1,N=-1,H={s:{r:1e6,c:1e7},e:{r:0,c:0}},F=0,A={},q=[],Q={},T=0,a1=0,i1=[],P=1,I=1,X=[],m1={Names:[]},J={},p1=["",""],c1=[],L={},w="",E=0,W=!1,D=!1,O=0;for(z5.lastIndex=0,c=c.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");p=z5.exec(c);)switch(p[3]=p[3].replace(/_.*$/,"")){case"table":case"工作表":p[1]==="/"?(H.e.c>=H.s.c&&H.e.r>=H.s.r?v["!ref"]=t2(H):v["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=H.e.r&&(v["!fullref"]=v["!ref"],H.e.r=t.sheetRows-1,v["!ref"]=t2(H)),q.length&&(v["!merges"]=q),i1.length&&(v["!rows"]=i1),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),m.push(u.name),d[u.name]=v,D=!1):p[0].charAt(p[0].length-2)!=="/"&&(u=$1(p[0],!1),k=N=-1,H.s.r=H.s.c=1e7,H.e.r=H.e.c=0,v=t.dense?[]:{},q=[],i1=[],D=!0);break;case"table-row-group":p[1]==="/"?--F:++F;break;case"table-row":case"行":if(p[1]==="/"){k+=P,P=1;break}if(h=$1(p[0],!1),h.行号?k=h.行号-1:k==-1&&(k=0),P=+h["number-rows-repeated"]||1,P<10)for(O=0;O<P;++O)F>0&&(i1[k+O]={level:F});N=-1;break;case"covered-table-cell":p[1]!=="/"&&++N,t.sheetStubs&&(t.dense?(v[k]||(v[k]=[]),v[k][N]={t:"z"}):v[W1({r:k,c:N})]={t:"z"}),M="",y=[];break;case"table-cell":case"数据":if(p[0].charAt(p[0].length-2)==="/")++N,z=$1(p[0],!1),I=parseInt(z["number-columns-repeated"]||"1",10),g={t:"z",v:null},z.formula&&t.cellFormula!=!1&&(g.f=cf(r2(z.formula))),(z.数据类型||z["value-type"])=="string"&&(g.t="s",g.v=r2(z["string-value"]||""),t.dense?(v[k]||(v[k]=[]),v[k][N]=g):v[W1({r:k,c:N})]=g),N+=I-1;else if(p[1]!=="/"){++N,M="",x=0,y=[],I=1;var u1=P?k+P-1:k;if(N>H.e.c&&(H.e.c=N),N<H.s.c&&(H.s.c=N),k<H.s.r&&(H.s.r=k),u1>H.e.r&&(H.e.r=u1),z=$1(p[0],!1),c1=[],L={},g={t:z.数据类型||z["value-type"],v:null},t.cellFormula)if(z.formula&&(z.formula=r2(z.formula)),z["number-matrix-columns-spanned"]&&z["number-matrix-rows-spanned"]&&(T=parseInt(z["number-matrix-rows-spanned"],10)||0,a1=parseInt(z["number-matrix-columns-spanned"],10)||0,Q={s:{r:k,c:N},e:{r:k+T-1,c:N+a1-1}},g.F=t2(Q),X.push([Q,g.F])),z.formula)g.f=cf(z.formula);else for(O=0;O<X.length;++O)k>=X[O][0].s.r&&k<=X[O][0].e.r&&N>=X[O][0].s.c&&N<=X[O][0].e.c&&(g.F=X[O][1]);switch((z["number-columns-spanned"]||z["number-rows-spanned"])&&(T=parseInt(z["number-rows-spanned"],10)||0,a1=parseInt(z["number-columns-spanned"],10)||0,Q={s:{r:k,c:N},e:{r:k+T-1,c:N+a1-1}},q.push(Q)),z["number-columns-repeated"]&&(I=parseInt(z["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=_2(z["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(z.value);break;case"percentage":g.t="n",g.v=parseFloat(z.value);break;case"currency":g.t="n",g.v=parseFloat(z.value);break;case"date":g.t="d",g.v=p3(z["date-value"]),t.cellDates||(g.t="n",g.v=B3(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=pz1(z["time-value"])/86400,t.cellDates&&(g.t="d",g.v=St(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(z.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",z["string-value"]!=null&&(M=r2(z["string-value"]),y=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(W=!1,g.t==="s"&&(g.v=M||"",y.length&&(g.R=y),W=x==0),J.Target&&(g.l=J),c1.length>0&&(g.c=c1,c1=[]),M&&t.cellText!==!1&&(g.w=M),W&&(g.t="z",delete g.v),(!W||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=k))for(var r1=0;r1<P;++r1){if(I=parseInt(z["number-columns-repeated"]||"1",10),t.dense)for(v[k+r1]||(v[k+r1]=[]),v[k+r1][N]=r1==0?g:x3(g);--I>0;)v[k+r1][N+I]=x3(g);else for(v[W1({r:k+r1,c:N})]=g;--I>0;)v[W1({r:k+r1,c:N+I})]=x3(g);H.e.c<=N&&(H.e.c=N)}I=parseInt(z["number-columns-repeated"]||"1",10),N+=I-1,I=0,g={},M="",y=[]}J={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(p[1]==="/"){if((n=r.pop())[0]!==p[3])throw"Bad state: "+n}else p[0].charAt(p[0].length-2)!=="/"&&r.push([p[3],!0]);break;case"annotation":if(p[1]==="/"){if((n=r.pop())[0]!==p[3])throw"Bad state: "+n;L.t=M,y.length&&(L.R=y),L.a=w,c1.push(L)}else p[0].charAt(p[0].length-2)!=="/"&&r.push([p[3],!1]);w="",E=0,M="",x=0,y=[];break;case"creator":p[1]==="/"?w=c.slice(E,p.index):E=p.index+p[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(p[1]==="/"){if((n=r.pop())[0]!==p[3])throw"Bad state: "+n}else p[0].charAt(p[0].length-2)!=="/"&&r.push([p[3],!1]);M="",x=0,y=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(p[1]==="/"){if(A[s.name]=l,(n=r.pop())[0]!==p[3])throw"Bad state: "+n}else p[0].charAt(p[0].length-2)!=="/"&&(l="",s=$1(p[0],!1),r.push([p[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(r[r.length-1][0]){case"time-style":case"date-style":i=$1(p[0],!1),l+=ff[p[3]][i.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(r[r.length-1][0]){case"time-style":case"date-style":i=$1(p[0],!1),l+=ff[p[3]][i.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(p[0].slice(-2)==="/>")break;if(p[1]==="/")switch(r[r.length-1][0]){case"number-style":case"date-style":case"time-style":l+=c.slice(f,p.index);break}else f=p.index+p[0].length;break;case"named-range":i=$1(p[0],!1),p1=bc(i["cell-range-address"]);var h1={Name:i.name,Ref:p1[0]+"!"+p1[1]};D&&(h1.Sheet=m.length),m1.Names.push(h1);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(r[r.length-1][0])>-1)break;if(p[1]==="/"&&(!z||!z["string-value"])){var z1=aL1(c.slice(x,p.index));M=(M.length>0?M+`
|
|
829
829
|
`:"")+z1[0]}else $1(p[0],!1),x=p.index+p[0].length;break;case"s":break;case"database-range":if(p[1]==="/")break;try{p1=bc($1(p[0])["target-range-address"]),d[p1[0]]["!autofilter"]={ref:p1[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(p[1]!=="/"){if(J=$1(p[0],!1),!J.href)break;J.Target=r2(J.href),delete J.href,J.Target.charAt(0)=="#"&&J.Target.indexOf(".")>-1?(p1=bc(J.Target.slice(1)),J.Target="#"+p1[0]+"!"+p1[1]):J.Target.match(/^\.\.[\\\/]/)&&(J.Target=J.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(p[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(t.WTF)throw new Error(p)}}var V={Sheets:d,SheetNames:m,Workbook:m1};return t.bookSheets&&delete V.Sheets,V}function uf(e,a){a=a||{},i4(e,"META-INF/manifest.xml")&&gC1(J2(e,"META-INF/manifest.xml"),a);var t=Z3(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var c=sb(C2(t),a);return i4(e,"meta.xml")&&(c.Props=Cy(J2(e,"meta.xml"))),c}function hf(e,a){return sb(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function xi(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function yr(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):C2(se(e))}function br(e){var a=e.reduce(function(r,n){return r+n.length},0),t=new Uint8Array(a),c=0;return e.forEach(function(r){t.set(r,c),c+=r.length}),t}function df(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function tL1(e,a){for(var t=(e[a+15]&127)<<7|e[a+14]>>1,c=e[a+14]&1,r=a+13;r>=a;--r)c=c*256+e[r];return(e[a+15]&128?-c:c)*Math.pow(10,t-6176)}function V5(e,a){var t=a?a[0]:0,c=e[t]&127;e:if(e[t++]>=128&&(c|=(e[t]&127)<<7,e[t++]<128||(c|=(e[t]&127)<<14,e[t++]<128)||(c|=(e[t]&127)<<21,e[t++]<128)||(c+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(c+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(c+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return a&&(a[0]=t),c}function o3(e){var a=0,t=e[a]&127;e:if(e[a++]>=128){if(t|=(e[a]&127)<<7,e[a++]<128||(t|=(e[a]&127)<<14,e[a++]<128)||(t|=(e[a]&127)<<21,e[a++]<128))break e;t|=(e[a]&127)<<28}return t}function w3(e){for(var a=[],t=[0];t[0]<e.length;){var c=t[0],r=V5(e,t),n=r&7;r=Math.floor(r/8);var i=0,s;if(r==0)break;switch(n){case 0:{for(var l=t[0];e[t[0]++]>=128;);s=e.slice(l,t[0])}break;case 5:i=4,s=e.slice(t[0],t[0]+i),t[0]+=i;break;case 1:i=8,s=e.slice(t[0],t[0]+i),t[0]+=i;break;case 2:i=V5(e,t),s=e.slice(t[0],t[0]+i),t[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(n," for Field ").concat(r," at offset ").concat(c))}var f={data:s,type:n};a[r]==null?a[r]=[f]:a[r].push(f)}return a}function zi(e,a){return(e==null?void 0:e.map(function(t){return a(t.data)}))||[]}function cL1(e){for(var a,t=[],c=[0];c[0]<e.length;){var r=V5(e,c),n=w3(e.slice(c[0],c[0]+r));c[0]+=r;var i={id:o3(n[1][0].data),messages:[]};n[2].forEach(function(s){var l=w3(s.data),f=o3(l[3][0].data);i.messages.push({meta:l,data:e.slice(c[0],c[0]+f)}),c[0]+=f}),(a=n[3])!=null&&a[0]&&(i.merge=o3(n[3][0].data)>>>0>0),t.push(i)}return t}function rL1(e,a){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],c=V5(a,t),r=[];t[0]<a.length;){var n=a[t[0]]&3;if(n==0){var i=a[t[0]++]>>2;if(i<60)++i;else{var s=i-59;i=a[t[0]],s>1&&(i|=a[t[0]+1]<<8),s>2&&(i|=a[t[0]+2]<<16),s>3&&(i|=a[t[0]+3]<<24),i>>>=0,i++,t[0]+=s}r.push(a.slice(t[0],t[0]+i)),t[0]+=i;continue}else{var l=0,f=0;if(n==1?(f=(a[t[0]]>>2&7)+4,l=(a[t[0]++]&224)<<3,l|=a[t[0]++]):(f=(a[t[0]++]>>2)+1,n==2?(l=a[t[0]]|a[t[0]+1]<<8,t[0]+=2):(l=(a[t[0]]|a[t[0]+1]<<8|a[t[0]+2]<<16|a[t[0]+3]<<24)>>>0,t[0]+=4)),r=[br(r)],l==0)throw new Error("Invalid offset 0");if(l>r[0].length)throw new Error("Invalid offset beyond length");if(f>=l)for(r.push(r[0].slice(-l)),f-=l;f>=r[r.length-1].length;)r.push(r[r.length-1]),f-=r[r.length-1].length;r.push(r[0].slice(-l,-l+f))}}var u=br(r);if(u.length!=c)throw new Error("Unexpected length: ".concat(u.length," != ").concat(c));return u}function nL1(e){for(var a=[],t=0;t<e.length;){var c=e[t++],r=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,a.push(rL1(c,e.slice(t,t+r))),t+=r}if(t!==e.length)throw new Error("data is not a valid framed stream!");return br(a)}function iL1(e,a,t,c){var r=xi(e),n=r.getUint32(4,!0),i=(c>1?12:8)+df(n&(c>1?3470:398))*4,s=-1,l=-1,f=NaN,u=new Date(2001,0,1);n&512&&(s=r.getUint32(i,!0),i+=4),i+=df(n&(c>1?12288:4096))*4,n&16&&(l=r.getUint32(i,!0),i+=4),n&32&&(f=r.getFloat64(i,!0),i+=8),n&64&&(u.setTime(u.getTime()+r.getFloat64(i,!0)*1e3),i+=8);var h;switch(e[2]){case 0:break;case 2:h={t:"n",v:f};break;case 3:h={t:"s",v:a[l]};break;case 5:h={t:"d",v:u};break;case 6:h={t:"b",v:f>0};break;case 7:h={t:"n",v:f/86400};break;case 8:h={t:"e",v:0};break;case 9:if(s>-1)h={t:"s",v:t[s]};else if(l>-1)h={t:"s",v:a[l]};else if(!isNaN(f))h={t:"n",v:f};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return h}function sL1(e,a,t){var c=xi(e),r=c.getUint32(8,!0),n=12,i=-1,s=-1,l=NaN,f=NaN,u=new Date(2001,0,1);r&1&&(l=tL1(e,n),n+=16),r&2&&(f=c.getFloat64(n,!0),n+=8),r&4&&(u.setTime(u.getTime()+c.getFloat64(n,!0)*1e3),n+=8),r&8&&(s=c.getUint32(n,!0),n+=4),r&16&&(i=c.getUint32(n,!0),n+=4);var h;switch(e[1]){case 0:break;case 2:h={t:"n",v:l};break;case 3:h={t:"s",v:a[s]};break;case 5:h={t:"d",v:u};break;case 6:h={t:"b",v:f>0};break;case 7:h={t:"n",v:f/86400};break;case 8:h={t:"e",v:0};break;case 9:if(i>-1)h={t:"s",v:t[i]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(r&31," : ").concat(e.slice(0,4)));break;case 10:h={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(r&31," : ").concat(e.slice(0,4)))}return h}function oL1(e,a,t){switch(e[0]){case 0:case 1:case 2:case 3:return iL1(e,a,t,e[0]);case 5:return sL1(e,a,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function l6(e){var a=w3(e);return V5(a[1][0].data)}function mf(e,a){var t=w3(a.data),c=o3(t[1][0].data),r=t[3],n=[];return(r||[]).forEach(function(i){var s=w3(i.data),l=o3(s[1][0].data)>>>0;switch(c){case 1:n[l]=yr(s[3][0].data);break;case 8:{var f=e[l6(s[9][0].data)][0],u=w3(f.data),h=e[l6(u[1][0].data)][0],d=o3(h.meta[1][0].data);if(d!=2001)throw new Error("2000 unexpected reference to ".concat(d));var m=w3(h.data);n[l]=m[3].map(function(v){return yr(v.data)}).join("")}break}}),n}function lL1(e,a){var t,c,r,n,i,s,l,f,u,h,d,m,v,p,g=w3(e),z=o3(g[1][0].data)>>>0,M=o3(g[2][0].data)>>>0,x=((c=(t=g[8])==null?void 0:t[0])==null?void 0:c.data)&&o3(g[8][0].data)>0||!1,y,k;if((n=(r=g[7])==null?void 0:r[0])!=null&&n.data&&a!=0)y=(s=(i=g[7])==null?void 0:i[0])==null?void 0:s.data,k=(f=(l=g[6])==null?void 0:l[0])==null?void 0:f.data;else if((h=(u=g[4])==null?void 0:u[0])!=null&&h.data&&a!=1)y=(m=(d=g[4])==null?void 0:d[0])==null?void 0:m.data,k=(p=(v=g[3])==null?void 0:v[0])==null?void 0:p.data;else throw"NUMBERS Tile missing ".concat(a," cell storage");for(var N=x?4:1,H=xi(y),F=[],A=0;A<y.length/2;++A){var q=H.getUint16(A*2,!0);q<65535&&F.push([A,q])}if(F.length!=M)throw"Expected ".concat(M," cells, found ").concat(F.length);var Q=[];for(A=0;A<F.length-1;++A)Q[F[A][0]]=k.subarray(F[A][1]*N,F[A+1][1]*N);return F.length>=1&&(Q[F[F.length-1][0]]=k.subarray(F[F.length-1][1]*N)),{R:z,cells:Q}}function fL1(e,a){var t,c=w3(a.data),r=(t=c==null?void 0:c[7])!=null&&t[0]?o3(c[7][0].data)>>>0>0?1:0:-1,n=zi(c[5],function(i){return lL1(i,r)});return{nrows:o3(c[4][0].data)>>>0,data:n.reduce(function(i,s){return i[s.R]||(i[s.R]=[]),s.cells.forEach(function(l,f){if(i[s.R][f])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(f));i[s.R][f]=l}),i},[])}}function uL1(e,a,t){var c,r=w3(a.data),n={s:{r:0,c:0},e:{r:0,c:0}};if(n.e.r=(o3(r[6][0].data)>>>0)-1,n.e.r<0)throw new Error("Invalid row varint ".concat(r[6][0].data));if(n.e.c=(o3(r[7][0].data)>>>0)-1,n.e.c<0)throw new Error("Invalid col varint ".concat(r[7][0].data));t["!ref"]=t2(n);var i=w3(r[4][0].data),s=mf(e,e[l6(i[4][0].data)][0]),l=(c=i[17])!=null&&c[0]?mf(e,e[l6(i[17][0].data)][0]):[],f=w3(i[3][0].data),u=0;f[1].forEach(function(h){var d=w3(h.data),m=e[l6(d[2][0].data)][0],v=o3(m.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var p=fL1(e,m);p.data.forEach(function(g,z){g.forEach(function(M,x){var y=W1({r:u+z,c:x}),k=oL1(M,s,l);k&&(t[y]=k)})}),u+=p.nrows})}function hL1(e,a){var t=w3(a.data),c={"!ref":"A1"},r=e[l6(t[2][0].data)],n=o3(r[0].meta[1][0].data);if(n!=6001)throw new Error("6000 unexpected reference to ".concat(n));return uL1(e,r[0],c),c}function dL1(e,a){var t,c=w3(a.data),r={name:(t=c[1])!=null&&t[0]?yr(c[1][0].data):"",sheets:[]},n=zi(c[2],l6);return n.forEach(function(i){e[i].forEach(function(s){var l=o3(s.meta[1][0].data);l==6e3&&r.sheets.push(hL1(e,s))})}),r}function mL1(e,a){var t=Hi(),c=w3(a.data),r=zi(c[1],l6);if(r.forEach(function(n){e[n].forEach(function(i){var s=o3(i.meta[1][0].data);if(s==2){var l=dL1(e,i);l.sheets.forEach(function(f,u){Vi(t,f,u==0?l.name:l.name+"_"+u,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function Lc(e){var a,t,c,r,n={},i=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var f;try{f=nL1(l.content)}catch(h){return console.log("?? "+l.content.length+" "+(h.message||h))}var u;try{u=cL1(f)}catch(h){return console.log("## "+(h.message||h))}u.forEach(function(h){n[h.id]=h.messages,i.push(h.id)})}}),!i.length)throw new Error("File has no messages");var s=((r=(c=(t=(a=n==null?void 0:n[1])==null?void 0:a[0])==null?void 0:t.meta)==null?void 0:c[1])==null?void 0:r[0].data)&&o3(n[1][0].meta[1][0].data)==1&&n[1][0];if(s||i.forEach(function(l){n[l].forEach(function(f){var u=o3(f.meta[1][0].data)>>>0;if(u==1)if(!s)s=f;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return mL1(n,s)}function pL1(e){return function(t){for(var c=0;c!=e.length;++c){var r=e[c];t[r[0]]===void 0&&(t[r[0]]=r[1]),r[2]==="n"&&(t[r[0]]=Number(t[r[0]]))}}}function Ci(e){pL1([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function vL1(e){return Le.WS.indexOf(e)>-1?"sheet":e==Le.CS?"chart":e==Le.DS?"dialog":e==Le.MS?"macro":e&&e.length?e:"sheet"}function gL1(e,a){if(!e)return 0;try{e=a.map(function(c){return c.id||(c.id=c.strRelID),[c.name,e["!id"][c.id].Target,vL1(e["!id"][c.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function xL1(e,a,t,c,r,n,i,s,l,f,u,h){try{n[c]=$8(Z3(e,t,!0),a);var d=J2(e,a),m;switch(s){case"sheet":m=yw1(d,a,r,l,n[c],f,u,h);break;case"chart":if(m=bw1(d,a,r,l,n[c],f,u,h),!m||!m["!drawel"])break;var v=H8(m["!drawel"].Target,a),p=zr(v),g=VV1(Z3(e,v,!0),$8(Z3(e,p,!0),v)),z=H8(g,v),M=zr(z);m=sw1(Z3(e,z,!0),z,l,$8(Z3(e,M,!0),z),f,m);break;case"macro":m=ww1(d,a,r,l,n[c],f,u,h);break;case"dialog":m=Lw1(d,a,r,l,n[c],f,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}i[c]=m;var x=[];n&&n[c]&&c0(n[c]).forEach(function(y){var k="";if(n[c][y].Type==Le.CMNT){k=H8(n[c][y].Target,a);var N=Sw1(J2(e,k,!0),k,l);if(!N||!N.length)return;Kl(m,N,!1)}n[c][y].Type==Le.TCMNT&&(k=H8(n[c][y].Target,a),x=x.concat(bV1(J2(e,k,!0),l)))}),x&&x.length&&Kl(m,x,!0,l.people||[])}catch(y){if(l.WTF)throw y}}function r4(e){return e.charAt(0)=="/"?e.slice(1):e}function zL1(e,a){if(WV(),a=a||{},Ci(a),i4(e,"META-INF/manifest.xml")||i4(e,"objectdata.xml"))return uf(e,a);if(i4(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Lc<"u"){if(e.FileIndex)return Lc(e);var t=a2.utils.cfb_new();return bl(e).forEach(function(i1){Cz1(t,i1,ZV(e,i1))}),Lc(t)}throw new Error("Unsupported NUMBERS file")}if(!i4(e,"[Content_Types].xml"))throw i4(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):i4(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c=bl(e),r=pC1(Z3(e,"[Content_Types].xml")),n=!1,i,s;if(r.workbooks.length===0&&(s="xl/workbook.xml",J2(e,s,!0)&&r.workbooks.push(s)),r.workbooks.length===0){if(s="xl/workbook.bin",!J2(e,s,!0))throw new Error("Could not find workbook");r.workbooks.push(s),n=!0}r.workbooks[0].slice(-3)=="bin"&&(n=!0);var l={},f={};if(!a.bookSheets&&!a.bookProps){if(Y8=[],r.sst)try{Y8=Aw1(J2(e,r4(r.sst)),r.sst,a)}catch(i1){if(a.WTF)throw i1}a.cellStyles&&r.themes.length&&(l=_w1(Z3(e,r.themes[0].replace(/^\//,""),!0)||"",r.themes[0],a)),r.style&&(f=kw1(J2(e,r4(r.style)),r.style,l,a))}r.links.map(function(i1){try{var P=$8(Z3(e,zr(r4(i1))),i1);return Tw1(J2(e,r4(i1)),P,i1,a)}catch{}});var u=Vw1(J2(e,r4(r.workbooks[0])),r.workbooks[0],a),h={},d="";r.coreprops.length&&(d=J2(e,r4(r.coreprops[0]),!0),d&&(h=Cy(d)),r.extprops.length!==0&&(d=J2(e,r4(r.extprops[0]),!0),d&&CC1(d,h,a)));var m={};(!a.bookSheets||a.bookProps)&&r.custprops.length!==0&&(d=Z3(e,r4(r.custprops[0]),!0),d&&(m=HC1(d,a)));var v={};if((a.bookSheets||a.bookProps)&&(u.Sheets?i=u.Sheets.map(function(P){return P.name}):h.Worksheets&&h.SheetNames.length>0&&(i=h.SheetNames),a.bookProps&&(v.Props=h,v.Custprops=m),a.bookSheets&&typeof i<"u"&&(v.SheetNames=i),a.bookSheets?v.SheetNames:a.bookProps))return v;i={};var p={};a.bookDeps&&r.calcchain&&(p=Nw1(J2(e,r4(r.calcchain)),r.calcchain));var g=0,z={},M,x;{var y=u.Sheets;h.Worksheets=y.length,h.SheetNames=[];for(var k=0;k!=y.length;++k)h.SheetNames[k]=y[k].name}var N=n?"bin":"xml",H=r.workbooks[0].lastIndexOf("/"),F=(r.workbooks[0].slice(0,H+1)+"_rels/"+r.workbooks[0].slice(H+1)+".rels").replace(/^\//,"");i4(e,F)||(F="xl/_rels/workbook."+N+".rels");var A=$8(Z3(e,F,!0),F.replace(/_rels.*/,"s5s"));(r.metadata||[]).length>=1&&(a.xlmeta=Ew1(J2(e,r4(r.metadata[0])),r.metadata[0],a)),(r.people||[]).length>=1&&(a.people=wV1(J2(e,r4(r.people[0])),a)),A&&(A=gL1(A,u.Sheets));var q=J2(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=h.Worksheets;++g){var Q="sheet";if(A&&A[g]?(M="xl/"+A[g][1].replace(/[\/]?xl\//,""),i4(e,M)||(M=A[g][1]),i4(e,M)||(M=F.replace(/_rels\/.*$/,"")+A[g][1]),Q=A[g][2]):(M="xl/worksheets/sheet"+(g+1-q)+"."+N,M=M.replace(/sheet0\./,"sheet.")),x=M.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),a&&a.sheets!=null)switch(typeof a.sheets){case"number":if(g!=a.sheets)continue e;break;case"string":if(h.SheetNames[g].toLowerCase()!=a.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(a.sheets)){for(var T=!1,a1=0;a1!=a.sheets.length;++a1)typeof a.sheets[a1]=="number"&&a.sheets[a1]==g&&(T=1),typeof a.sheets[a1]=="string"&&a.sheets[a1].toLowerCase()==h.SheetNames[g].toLowerCase()&&(T=1);if(!T)continue e}}xL1(e,M,x,h.SheetNames[g],g,z,i,Q,a,u,l,f)}return v={Directory:r,Workbook:u,Props:h,Custprops:m,Deps:p,Sheets:i,SheetNames:h.SheetNames,Strings:Y8,Styles:f,Themes:l,SSF:x3(Y1)},a&&a.bookFiles&&(e.files?(v.keys=c,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(i1,P){i1=i1.replace(/^Root Entry[\/]/,""),v.keys.push(i1),v.files[i1]=e.FileIndex[P]}))),a&&a.bookVBA&&(r.vba.length>0?v.vbaraw=J2(e,r4(r.vba[0]),!0):r.defaults&&r.defaults.bin===AV1&&(v.vbaraw=J2(e,"xl/vbaProject.bin",!0))),v}function CL1(e,a){var t=a||{},c="Workbook",r=a2.find(e,c);try{if(c="/!DataSpaces/Version",r=a2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(hH1(r.content),c="/!DataSpaces/DataSpaceMap",r=a2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var n=mH1(r.content);if(n.length!==1||n[0].comps.length!==1||n[0].comps[0].t!==0||n[0].name!=="StrongEncryptionDataSpace"||n[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",r=a2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var i=pH1(r.content);if(i.length!=1||i[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",r=a2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);gH1(r.content)}catch{}if(c="/EncryptionInfo",r=a2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var s=xH1(r.content);if(c="/EncryptedPackage",r=a2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],r.content,t.password||"",t);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],r.content,t.password||"",t);throw new Error("File is password-protected")}function Mi(e,a){var t="";switch((a||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=e4(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(a&&a.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function ML1(e,a){return a2.find(e,"EncryptedPackage")?CL1(e,a):rb(e,a)}function HL1(e,a){var t,c=e,r=a||{};return r.type||(r.type=J1&&Buffer.isBuffer(e)?"buffer":"base64"),t=QV(c,r),zL1(t,r)}function ob(e,a){var t=0;e:for(;t<e.length;)switch(e.charCodeAt(t)){case 10:case 13:case 32:++t;break;case 60:return Hr(e.slice(t),a);default:break e}return C5.to_workbook(e,a)}function VL1(e,a){var t="",c=Mi(e,a);switch(a.type){case"base64":t=e4(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=J6(e);break;default:throw new Error("Unrecognized type "+a.type)}return c[0]==239&&c[1]==187&&c[2]==191&&(t=C2(t)),a.type="binary",ob(t,a)}function yL1(e,a){var t=e;return a.type=="base64"&&(t=e4(t)),t=U0.utils.decode(1200,t.slice(2),"str"),a.type="binary",ob(t,a)}function bL1(e){return e.match(/[^\x00-\x7F]/)?V8(e):e}function kc(e,a,t,c){return c?(t.type="string",C5.to_workbook(e,t)):C5.to_workbook(a,t)}function wr(e,a){NV();var t=a||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return wr(new Uint8Array(e),(t=x3(t),t.type="array",t));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var c=e,r=[0,0,0,0],n=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),Pe={},t.dateNF&&(Pe.dateNF=t.dateNF),t.type||(t.type=J1&&Buffer.isBuffer(e)?"buffer":"base64"),t.type=="file"&&(t.type=J1?"buffer":"binary",c=dz1(e),typeof Uint8Array<"u"&&!J1&&(t.type="array")),t.type=="string"&&(n=!0,t.type="binary",t.codepage=65001,c=bL1(e)),t.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var i=new ArrayBuffer(3),s=new Uint8Array(i);if(s.foo="bar",!s.foo)return t=x3(t),t.type="array",wr(Jn(c),t)}switch((r=Mi(c,t))[0]){case 208:if(r[1]===207&&r[2]===17&&r[3]===224&&r[4]===161&&r[5]===177&&r[6]===26&&r[7]===225)return ML1(a2.read(c,t),t);break;case 9:if(r[1]<=8)return rb(c,t);break;case 60:return Hr(c,t);case 73:if(r[1]===73&&r[2]===42&&r[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(r[1]===68)return JM1(c,t);break;case 84:if(r[1]===65&&r[2]===66&&r[3]===76)return QM1.to_workbook(c,t);break;case 80:return r[1]===75&&r[2]<9&&r[3]<9?HL1(c,t):kc(e,c,t,n);case 239:return r[3]===60?Hr(c,t):kc(e,c,t,n);case 255:if(r[1]===254)return yL1(c,t);if(r[1]===0&&r[2]===2&&r[3]===0)return W8.to_workbook(c,t);break;case 0:if(r[1]===0&&(r[2]>=2&&r[3]===0||r[2]===0&&(r[3]===8||r[3]===9)))return W8.to_workbook(c,t);break;case 3:case 131:case 139:case 140:return Ql.to_workbook(c,t);case 123:if(r[1]===92&&r[2]===114&&r[3]===116)return AH1.to_workbook(c,t);break;case 10:case 13:case 32:return VL1(c,t);case 137:if(r[1]===80&&r[2]===78&&r[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return XM1.indexOf(r[0])>-1&&r[2]<=12&&r[3]<=31?Ql.to_workbook(c,t):kc(e,c,t,n)}function wL1(e,a,t,c,r,n,i,s){var l=z3(t),f=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=r===1?[]:{};if(r!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:t,enumerable:!1})}catch{d.__rowNum__=t}else d.__rowNum__=t;if(!i||e[t])for(var m=a.s.c;m<=a.e.c;++m){var v=i?e[t][m]:e[c[m]+l];if(v===void 0||v.t===void 0){if(f===void 0)continue;n[m]!=null&&(d[n[m]]=f);continue}var p=v.v;switch(v.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(n[m]!=null){if(p==null)if(v.t=="e"&&p===null)d[n[m]]=null;else if(f!==void 0)d[n[m]]=f;else if(u&&p===null)d[n[m]]=null;else continue;else d[n[m]]=u&&(v.t!=="n"||v.t==="n"&&s.rawNumbers!==!1)?p:_0(v,p,s);p!=null&&(h=!1)}}return{row:d,isempty:h}}function Lr(e,a){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},c=0,r=1,n=[],i=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},f=a||{},u=f.range!=null?f.range:e["!ref"];switch(f.header===1?c=1:f.header==="A"?c=2:Array.isArray(f.header)?c=3:f.header==null&&(c=0),typeof u){case"string":l=$2(u);break;case"number":l=$2(e["!ref"]),l.s.r=u;break;default:l=u}c>0&&(r=0);var h=z3(l.s.r),d=[],m=[],v=0,p=0,g=Array.isArray(e),z=l.s.r,M=0,x={};g&&!e[z]&&(e[z]=[]);var y=f.skipHidden&&e["!cols"]||[],k=f.skipHidden&&e["!rows"]||[];for(M=l.s.c;M<=l.e.c;++M)if(!(y[M]||{}).hidden)switch(d[M]=s3(M),t=g?e[z][M]:e[d[M]+h],c){case 1:n[M]=M-l.s.c;break;case 2:n[M]=d[M];break;case 3:n[M]=f.header[M-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),s=i=_0(t,null,f),p=x[i]||0,!p)x[i]=1;else{do s=i+"_"+p++;while(x[s]);x[i]=p,x[s]=1}n[M]=s}for(z=l.s.r+r;z<=l.e.r;++z)if(!(k[z]||{}).hidden){var N=wL1(e,l,z,d,c,n,g,f);(N.isempty===!1||(c===1?f.blankrows!==!1:f.blankrows))&&(m[v++]=N.row)}return m.length=v,m}var pf=/"/g;function LL1(e,a,t,c,r,n,i,s){for(var l=!0,f=[],u="",h=z3(t),d=a.s.c;d<=a.e.c;++d)if(c[d]){var m=s.dense?(e[t]||[])[d]:e[c[d]+h];if(m==null)u="";else if(m.v!=null){l=!1,u=""+(s.rawNumbers&&m.t=="n"?m.v:_0(m,null,s));for(var v=0,p=0;v!==u.length;++v)if((p=u.charCodeAt(v))===r||p===n||p===34||s.forceQuotes){u='"'+u.replace(pf,'""')+'"';break}u=="ID"&&(u='"ID"')}else m.f!=null&&!m.F?(l=!1,u="="+m.f,u.indexOf(",")>=0&&(u='"'+u.replace(pf,'""')+'"')):u="";f.push(u)}return s.blankrows===!1&&l?null:f.join(i)}function lb(e,a){var t=[],c=a??{};if(e==null||e["!ref"]==null)return"";var r=$2(e["!ref"]),n=c.FS!==void 0?c.FS:",",i=n.charCodeAt(0),s=c.RS!==void 0?c.RS:`
|
|
830
830
|
`,l=s.charCodeAt(0),f=new RegExp((n=="|"?"\\|":n)+"+$"),u="",h=[];c.dense=Array.isArray(e);for(var d=c.skipHidden&&e["!cols"]||[],m=c.skipHidden&&e["!rows"]||[],v=r.s.c;v<=r.e.c;++v)(d[v]||{}).hidden||(h[v]=s3(v));for(var p=0,g=r.s.r;g<=r.e.r;++g)(m[g]||{}).hidden||(u=LL1(e,r,g,h,i,l,n,c),u!=null&&(c.strip&&(u=u.replace(f,"")),(u||c.blankrows!==!1)&&t.push((p++?s:"")+u)));return delete c.dense,t.join("")}function kL1(e,a){a||(a={}),a.FS=" ",a.RS=`
|
|
831
|
-
`;var t=lb(e,a);return t}function _L1(e){var a="",t,c="";if(e==null||e["!ref"]==null)return[];var r=$2(e["!ref"]),n="",i=[],s,l=[],f=Array.isArray(e);for(s=r.s.c;s<=r.e.c;++s)i[s]=s3(s);for(var u=r.s.r;u<=r.e.r;++u)for(n=z3(u),s=r.s.c;s<=r.e.c;++s)if(a=i[s]+n,t=f?(e[u]||[])[s]:e[a],c="",t!==void 0){if(t.F!=null){if(a=t.F,!t.f)continue;c=t.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(t.f!=null)c=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)c=""+t.v;else if(t.t=="b")c=t.v?"TRUE":"FALSE";else if(t.w!==void 0)c="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?c="'"+t.v:c=""+t.v}}l[l.length]=a+"="+c}return l}function fb(e,a,t){var c=t||{},r=+!c.skipHeader,n=e||{},i=0,s=0;if(n&&c.origin!=null)if(typeof c.origin=="number")i=c.origin;else{var l=typeof c.origin=="string"?F3(c.origin):c.origin;i=l.r,s=l.c}var f,u={s:{c:0,r:0},e:{c:s,r:i+a.length-1+r}};if(n["!ref"]){var h=$2(n["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),i==-1&&(i=h.e.r+1,u.e.r=i+a.length-1+r)}else i==-1&&(i=0,u.e.r=a.length-1+r);var d=c.header||[],m=0;a.forEach(function(p,g){c0(p).forEach(function(z){(m=d.indexOf(z))==-1&&(d[m=d.length]=z);var M=p[z],x="z",y="",k=W1({c:s+m,r:i+g+r});f=y5(n,k),M&&typeof M=="object"&&!(M instanceof Date)?n[k]=M:(typeof M=="number"?x="n":typeof M=="boolean"?x="b":typeof M=="string"?x="s":M instanceof Date?(x="d",c.cellDates||(x="n",M=B3(M)),y=c.dateNF||Y1[14]):M===null&&c.nullError&&(x="e",M=0),f?(f.t=x,f.v=M,delete f.w,delete f.R,y&&(f.z=y)):n[k]=f={t:x,v:M},y&&(f.z=y))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var v=z3(i);if(r)for(m=0;m<d.length;++m)n[s3(m+s)+v]={t:"s",v:d[m]};return n["!ref"]=t2(u),n}function AL1(e,a){return fb(null,e,a)}function y5(e,a,t){if(typeof a=="string"){if(Array.isArray(e)){var c=F3(a);return e[c.r]||(e[c.r]=[]),e[c.r][c.c]||(e[c.r][c.c]={t:"z"})}return e[a]||(e[a]={t:"z"})}return typeof a!="number"?y5(e,W1(a)):y5(e,W1({r:a,c:t||0}))}function SL1(e,a){if(typeof a=="number"){if(a>=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var t=e.SheetNames.indexOf(a);if(t>-1)return t;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function Hi(){return{SheetNames:[],Sheets:{}}}function Vi(e,a,t,c){var r=1;if(!t)for(;r<=65535&&e.SheetNames.indexOf(t="Sheet"+r)!=-1;++r,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(c&&e.SheetNames.indexOf(t)>=0){var n=t.match(/(^.*?)(\d+)$/);r=n&&+n[2]||0;var i=n&&n[1]||t;for(++r;r<=65535&&e.SheetNames.indexOf(t=i+r)!=-1;++r);}if(pw1(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=a,t}function NL1(e,a,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var c=SL1(e,a);switch(e.Workbook.Sheets[c]||(e.Workbook.Sheets[c]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[c].Hidden=t}function TL1(e,a){return e.z=a,e}function ub(e,a,t){return a?(e.l={Target:a},t&&(e.l.Tooltip=t)):delete e.l,e}function EL1(e,a,t){return ub(e,"#"+a,t)}function FL1(e,a,t){e.c||(e.c=[]),e.c.push({t:a,a:t||"SheetJS"})}function PL1(e,a,t,c){for(var r=typeof a!="string"?a:$2(a),n=typeof a=="string"?a:t2(a),i=r.s.r;i<=r.e.r;++i)for(var s=r.s.c;s<=r.e.c;++s){var l=y5(e,i,s);l.t="n",l.F=n,delete l.v,i==r.s.r&&s==r.s.c&&(l.f=t,c&&(l.D=!0))}return e}var DL1={encode_col:s3,encode_row:z3,encode_cell:W1,encode_range:t2,decode_col:oi,decode_row:si,split_cell:jz1,decode_cell:F3,decode_range:a8,format_cell:_0,sheet_add_aoa:py,sheet_add_json:fb,sheet_add_dom:nb,aoa_to_sheet:t8,json_to_sheet:AL1,table_to_sheet:ib,table_to_book:Jw1,sheet_to_csv:lb,sheet_to_txt:kL1,sheet_to_json:Lr,sheet_to_html:Kw1,sheet_to_formulae:_L1,sheet_to_row_object_array:Lr,sheet_get_cell:y5,book_new:Hi,book_append_sheet:Vi,book_set_sheet_visibility:NL1,cell_set_number_format:TL1,cell_set_hyperlink:ub,cell_set_internal_link:EL1,cell_add_comment:FL1,sheet_set_array_formula:PL1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const BL1=o.defineComponent({__name:"PgaInputFileExcel",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{},excelConfig:{}},{isReadingFile:{type:Boolean,default:!1},isReadingFileModifiers:{}}),emits:o.mergeModels(["newFile","newFileRead"],["update:isReadingFile"]),setup(e,{expose:a,emit:t}){const c=o.useModel(e,"isReadingFile"),r=e,n=t;a({resetInput:s});const i=o.ref();function s(){i.value&&i.value.resetInput()}function l(f){if(n("newFile",f),r.excelConfig){if(!f){n("newFileRead",[]);return}const u=new FileReader;u.onload=function(h){var d;try{c.value=!0;const m=new Uint8Array((d=h.target)==null?void 0:d.result),v=wr(m,{type:"array"}),p=v.SheetNames[0],g=v.Sheets[p],z=r.excelConfig.columns,M=Math.max(...Object.values(z)),x=Array(M).map((k,N)=>`empty${N+1}`);Object.entries(z).forEach(([k,N])=>x[N-1]=k);const y=DL1.sheet_to_json(g,{header:x,range:r.excelConfig.firstRow-1});n("newFileRead",y)}finally{c.value=!1}},u.readAsArrayBuffer(f)}}return(f,u)=>(o.openBlock(),o.createBlock(AV,{ref_key:"inputFile",ref:i,label:f.label,withOptionalLabel:f.withOptionalLabel,withLabelSpace:f.withLabelSpace,errors:f.errors,disabled:f.disabled,grow:f.grow,acceptedFormats:["xls","xlsx"],onNewFile:u[0]||(u[0]=h=>l(h))},null,8,["label","withOptionalLabel","withLabelSpace","errors","disabled","grow"]))}}),OL1={class:"select"},RL1={key:0,class:"input--empty-options"},IL1={key:1},$L1=["textContent"],UL1={key:0,class:"select--dropdown"},WL1=["onClick"],YL1=["textContent"],qL1=o.defineComponent({__name:"PgaSelect",props:o.mergeModels({options:{},emptyOptionsMsg:{type:[String,Function]},reduceNameFunction:{type:Function},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:a}){o.useCssVars(x=>({"3a414c6b":o.unref(i).input.height,"6b30a977":u.value,"4959945a":o.unref(i).input.borderColor,b03997bc:o.unref(i).input.borderRadius,"3bd3a811":o.unref(i).input.backgroundColor,e390b4a6:o.unref(i).input.backgroundColorDisabled,"596dd479":o.unref(i).input.colorFocus,a4022d66:o.unref(i).input.padding,"2f30b952":l.value}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=kr.directive,{formOptions:i}=q3.storeToRefs(l4()),s=o.ref(),l=o.ref("0"),f=o.ref(),u=o.ref("0"),h=o.ref(!1),d=o.computed(()=>!!c.options.length),m=o.computed(()=>c.options.find(x=>x.id===t.value));o.watch(t,x=>r("change",x)),o.watch(f,x=>{x&&new ResizeObserver(M).observe(x)});function v(){!c.disabled&&d.value&&(h.value=!h.value)}function p(){h.value=!1}function g(x){t.value=x.id,h.value=!1}function z(){s.value&&(l.value=`${s.value.getBoundingClientRect().height}px`)}function M(){f.value&&(u.value=`${f.value.getBoundingClientRect().width}px`)}return o.onMounted(()=>{new ResizeObserver(z).observe(s.value),f.value&&new ResizeObserver(M).observe(f.value)}),(x,y)=>{const k=o.resolveComponent("PgaDisplayText"),N=o.resolveComponent("PgaIcon"),H=o.resolveComponent("PgaInputGroup");return o.openBlock(),o.createBlock(H,{label:x.label,withOptionalLabel:x.withOptionalLabel,withLabelSpace:x.withLabelSpace,errors:x.errors,grow:x.grow},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",OL1,[o.createElementVNode("div",{ref_key:"inputRef",ref:s,class:o.normalizeClass(["select--input",{"select--input__disabled":x.disabled,"select--input__dropdown-active":h.value}]),onClick:y[1]||(y[1]=F=>v())},[!d.value&&x.emptyOptionsMsg?(o.openBlock(),o.createElementBlock("div",RL1,[o.createVNode(k,{class:"empty-options--text",text:x.emptyOptionsMsg},null,8,["text"])])):m.value?(o.openBlock(),o.createElementBlock("div",IL1,[x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",{key:0,class:"reduce-name-function",textContent:o.toDisplayString(x.reduceNameFunction(m.value))},null,8,$L1)):o.renderSlot(x.$slots,"dropdownOption",{key:1,option:m.value},void 0,!0)])):o.createCommentVNode("",!0),x.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:2,ref_key:"inputIconsRef",ref:f,class:"input--icons"},[m.value?(o.openBlock(),o.createBlock(N,{key:0,class:"input--icon",icon:"xmark",clickable:"",onClick:y[0]||(y[0]=o.withModifiers(F=>t.value=null,["stop"]))})):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(N,{key:1,class:"input--icon",icon:"chevron-down",clickable:""})):o.createCommentVNode("",!0)],512))],2),h.value?(o.openBlock(),o.createElementBlock("ul",UL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.options,F=>(o.openBlock(),o.createElementBlock("li",{key:F.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":F.id===t.value}]),onClick:A=>g(F)},[x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",{key:0,class:"reduce-name-function",textContent:o.toDisplayString(x.reduceNameFunction(F))},null,8,YL1)):o.renderSlot(x.$slots,"dropdownOption",{key:1,option:F},void 0,!0)],10,WL1))),128))])):o.createCommentVNode("",!0)])),[[o.unref(n),p]])]),_:3},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const GL1=d2(qL1,[["__scopeId","data-v-4d766816"]]),jL1=e=>(o.pushScopeId("data-v-4cff5de2"),e=e(),o.popScopeId(),e),XL1={class:"switch-container"},ZL1=["checked","disabled"],QL1=jL1(()=>o.createElementVNode("div",{class:"switch--slider"},null,-1)),KL1=o.defineComponent({__name:"PgaSwitch",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(r=>({"3c8866a0":o.unref(t).input.height}));const a=o.useModel(e,"modelValue"),{formOptions:t}=q3.storeToRefs(l4());function c(){a.value=!a.value}return(r,n)=>(o.openBlock(),o.createBlock(yt,{label:r.label,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,errors:r.errors,grow:r.grow},{default:o.withCtx(()=>[o.createElementVNode("div",XL1,[o.createElementVNode("label",{class:o.normalizeClass(["switch",{switch__disabled:r.disabled}])},[o.createElementVNode("input",{class:"switch--input",type:"checkbox",checked:a.value,disabled:r.disabled,onClick:n[0]||(n[0]=i=>c())},null,8,ZL1),QL1],2)])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const JL1=d2(KL1,[["__scopeId","data-v-4cff5de2"]]),ek1={class:"switch-options"},ak1=["onClick"],tk1=o.defineComponent({__name:"PgaSwitchOptions",props:o.mergeModels({items:{},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(c=>({"39dbee92":o.unref(t).input.borderRadius,"0b9aca4a":o.unref(t).input.height,"43216d63":o.unref(t).input.borderColor,"1b9b97a1":o.unref(t).input.backgroundColor,"0a326ae9":o.unref(t).input.colorFocus,a0552c92:o.unref(t).input.backgroundColorFocus,a01c43ca:o.unref(t).input.backgroundColorHover}));const a=o.useModel(e,"modelValue"),{formOptions:t}=q3.storeToRefs(l4());return(c,r)=>{const n=o.resolveComponent("PgaInputGroup");return o.openBlock(),o.createBlock(n,{label:c.label,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,errors:c.errors,grow:c.grow},{default:o.withCtx(()=>[o.createElementVNode("div",ek1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.items,(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["switch-options--item",{"switch-options--item__first-item":s===0,"switch-options--item__last-item":s+1===c.items.length,"switch-options--item__active":a.value===i.id}]),key:i.id,onClick:l=>a.value=i.id},[o.createVNode(x6,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,ak1))),128))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const ck1=d2(tk1,[["__scopeId","data-v-14b11a15"]]),rk1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2M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AAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsILneC9De/f80cccBHG7pwfUoBCpfRGTYscy5Zf//v7As2W9LyCSbsg4BKaRgW0pL4Xaui9kUqwjtleN5cj9cPDzMW01f9O4+zf/08y+mAADgJ0IAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAEFgAAAILAACBBQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAAjFRgB3E+dTtcQhi0MpwwBBBaQ8aK6jOPXtaN6vXHe6xnIaBQmCrOz06sri5NBoLdAYA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IBMs0AO+bDIJe4ClCAIEF3JIwnHr2bcUcAG7CJUIAAIEFACCwgHT+e+fzA462Tk87na4pDUn/E4cGfEEQFEwJMsw9WJBlpVLUarWvPLSzW0s2I0rFZBAUwylzgCz/iGsEkFVhOLXx5HFhwjslY2ej8tgQQGABd1VUDH/8fiOKQqMYE0nv/vDd18VwKvQOFmSaS4SQcckL+dON9fNe72V1t93uGEhaJoNgo/JYWoHAArLTWP3MSvYv4/h17ajRPG2fdXNxbDjDjqrZmemlxXL/jitpBQILyGBm9XcqX62aBsBQuQcLAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAACCwBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",nk1=["src"],ik1=o.defineComponent({__name:"PgaImage",props:{image:{},source:{},size:{},height:{},width:{},borderRadius:{}},setup(e){const a=e,t=o.ref(!1),c=o.computed(()=>a.source?a.source:l4().imageOptions.source),r=o.computed(()=>{const i=[];return a.size?i.push({height:a.size,width:a.size}):(a.height&&i.push({height:a.height,width:"auto"}),a.width&&i.push({height:"auto",width:a.width}),a.height&&a.width&&i.push({height:a.height,width:a.width})),i}),n=o.computed(()=>{const i=[];return a.borderRadius&&i.push({borderRadius:a.borderRadius}),i});return o.watch(()=>a.image,()=>t.value=!1),(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:"img-container",style:o.normalizeStyle(r.value)},[t.value||!a.image?(o.openBlock(),o.createElementBlock("img",{key:0,class:"img",src:rk1,style:o.normalizeStyle(n.value)},null,4)):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:`${c.value}/${a.image}`,style:o.normalizeStyle(n.value),onError:s[0]||(s[0]=l=>t.value=!0)},null,44,nk1))],4))}});const sk1=d2(ik1,[["__scopeId","data-v-eb6577b4"]]),hb=e=>(o.pushScopeId("data-v-09dde44c"),e=e(),o.popScopeId(),e),ok1={key:0,class:"pagination"},lk1={key:0,class:"pagination--item-container"},fk1=hb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),uk1=["textContent","onClick"],hk1={key:1,class:"pagination--item-container"},dk1=hb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),mk1=["textContent"],pk1=o.defineComponent({__name:"PgaPagination",props:o.mergeModels({totalCount:{},pageSize:{},preventScrollToTop:{type:Boolean}},{modelValue:{required:!0,default:1},modelModifiers:{}}),emits:o.mergeModels(["newPage"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=e,r=a,n=o.computed(()=>Math.ceil(c.totalCount/c.pageSize)),i=o.computed(()=>{const h=[t.value];for(let d=t.value-1;d>=t.value-3&&d>=1;d--)h.unshift(d);for(let d=t.value+1;d<=t.value+3&&d<=n.value;d++)h.push(d);if(h.length===7)return h;if(h.includes(1))for(let d=h[h.length-1]+1;d<=7-h.length+h[h.length-1]&&d<=n.value;d++)h.push(d);else for(let d=h[0]-1;d>=-(7-h.length)+h[0]&&d>=1;d--)h.unshift(d);return h}),s=o.computed(()=>!i.value.includes(1)),l=o.computed(()=>!i.value.includes(n.value));return o.watch(t,f=>{r("newPage",f),c.preventScrollToTop||qM()}),(f,u)=>n.value>1?(o.openBlock(),o.createElementBlock("div",ok1,[s.value?(o.openBlock(),o.createElementBlock("div",lk1,[o.createElementVNode("div",{class:"pagination--item",textContent:"1",onClick:u[0]||(u[0]=h=>t.value=1)}),fk1])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createElementBlock("div",{key:h,class:o.normalizeClass(["pagination--item",{"pagination--item__current":h===t.value}]),textContent:o.toDisplayString(h),onClick:d=>t.value=h},null,10,uk1))),128)),l.value?(o.openBlock(),o.createElementBlock("div",hk1,[dk1,o.createElementVNode("div",{class:"pagination--item",textContent:o.toDisplayString(n.value),onClick:u[1]||(u[1]=h=>t.value=n.value)},null,8,mk1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)}});const vk1=d2(pk1,[["__scopeId","data-v-09dde44c"]]),gk1={class:"table"},xk1={class:"table-header"},zk1={class:"table-container"},Ck1={key:0,style:{"text-align":"center"}},Mk1={key:0,class:"td__fit-content"},Hk1={class:"td--content td--content__center"},Vk1={class:"indentation-content"},yk1={key:0,class:"indentation-line"},bk1=o.defineComponent({__name:"PgaTable",props:o.mergeModels({columns:{},items:{},totalCount:{},searchInputPlaceholder:{},indentation:{},isLoading:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["refreshList"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=e,r=a,n=o.ref([]),i=o.computed(()=>{if(!c.indentation)return!1;for(const d of c.items)if(d[c.indentation.propName].length>0)return!0;return!1}),s=o.computed(()=>{if(!i.value)return c.items;const d=[];for(const m of c.items)d.push(m),f(m)&&d.push(...m[c.indentation.propName]);return d});o.watch(t,()=>r("refreshList"),{deep:!0});function l(d){return c.items.map(v=>v.id).includes(d.id)}function f(d){return n.value.includes(d.id)}function u(d){n.value.push(d.id)}function h(d){n.value=n.value.filter(m=>m!==d.id)}return(d,m)=>{const v=o.resolveComponent("PgaInput"),p=o.resolveComponent("PgaSpinner"),g=o.resolveComponent("PgaDisplayText"),z=o.resolveComponent("PgaIcon"),M=o.resolveComponent("PgaPagination"),x=o.resolveComponent("PgaDisplayNoItems");return o.openBlock(),o.createElementBlock("div",gk1,[o.createElementVNode("div",xk1,[o.createVNode(v,{class:"header--search",modelValue:t.value.search,"onUpdate:modelValue":m[0]||(m[0]=y=>t.value.search=y),placeholder:d.searchInputPlaceholder},null,8,["modelValue","placeholder"]),d.isLoading?(o.openBlock(),o.createBlock(p,{key:0,size:"0.7em"})):o.createCommentVNode("",!0),o.renderSlot(d.$slots,"header",{},void 0,!0)]),o.createElementVNode("div",zk1,[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[i.value?(o.openBlock(),o.createElementBlock("th",Ck1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.columns,(y,k)=>(o.openBlock(),o.createElementBlock("th",{key:k,style:o.normalizeStyle({"text-align":y.align?y.align:"center"})},[o.createVNode(g,{text:y.title},null,8,["text"])],4))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(y,k)=>(o.openBlock(),o.createElementBlock("tr",{key:y.id,class:o.normalizeClass([k%2===0?"tr__even":"tr__odd"])},[i.value?(o.openBlock(),o.createElementBlock("td",Mk1,[o.createElementVNode("div",Hk1,[o.createElementVNode("div",Vk1,[l(y)?f(y)?(o.openBlock(),o.createBlock(z,{key:1,icon:"caret-down",clickable:"",onClick:N=>h(y)},null,8,["onClick"])):y[c.indentation.propName].length>0?(o.openBlock(),o.createBlock(z,{key:2,icon:"caret-right",clickable:"",onClick:N=>u(y)},null,8,["onClick"])):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",yk1))])])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.columns,(N,H)=>(o.openBlock(),o.createElementBlock("td",{key:H,class:o.normalizeClass({"td__fit-content":N.fitContent})},[o.createElementVNode("div",{class:o.normalizeClass(["td--content",[`td--content__${N.align?N.align:"center"}`]])},[o.renderSlot(d.$slots,H,{item:y},void 0,!0)],2)],2))),128))],2))),128))])])]),o.createVNode(M,{modelValue:t.value.page,"onUpdate:modelValue":m[1]||(m[1]=y=>t.value.page=y),pageSize:t.value.pageSize,totalCount:d.totalCount},null,8,["modelValue","pageSize","totalCount"]),o.createVNode(x,{items:s.value,isLoading:d.isLoading},null,8,["items","isLoading"])])}}});const wk1=d2(bk1,[["__scopeId","data-v-fabac115"]]),Lk1=Object.freeze(Object.defineProperty({__proto__:null,PgaBadge:Zr1,PgaButton:X6,PgaButtonLink:jM,PgaChartBar:Cd1,PgaDatePicker:wx1,PgaDeleteButton:pl1,PgaDisplayInfo:Ld1,PgaDisplayNoItems:Sd1,PgaDisplayText:x6,PgaEditButton:xl1,PgaForm:Td1,PgaFormRow:Dd1,PgaIcon:S4,PgaImage:sk1,PgaInfoCardFullPage:M91,PgaInput:Sx1,PgaInputFile:AV,PgaInputFileExcel:BL1,PgaInputGroup:yt,PgaItemSelected:V91,PgaLink:Ml1,PgaLoginForm:mm1,PgaLogoutButton:Hl1,PgaModal:el1,PgaPagination:vk1,PgaSelect:GL1,PgaSpinner:ot,PgaSwitch:JL1,PgaSwitchOptions:ck1,PgaTable:wk1,PgaUserMenu:il1},Symbol.toStringTag,{value:"Module"})),kk1={class:"notifications"},_k1=o.defineComponent({__name:"Notifications",setup(e){const a=T0("notifications"),{notificationsOptions:t}=q3.storeToRefs(l4()),{notifications:c}=q3.storeToRefs(o6());return(r,n)=>(o.openBlock(),o.createElementBlock("div",kk1,[o.createVNode(o.TransitionGroup,{name:"notifications--transition-group"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),i=>(o.openBlock(),o.createElementBlock("div",{key:i.id,class:"notifications--notification",style:o.normalizeStyle({"border-left-color":`var(--pga-color-${i.type})`})},[o.createVNode(x6,{class:"notifications--message",text:i.message},null,8,["text"]),o.unref(t).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(S4,{key:0,class:"notifications--xmark",icon:"xmark",onClick:s=>o.unref(Zn)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(t).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(jM,{key:0,class:"notifications--remove-all-btn",text:o.unref(a)("removeAllBtn"),onClick:n[0]||(n[0]=i=>o.unref(_V)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const Ak1=d2(_k1,[["__scopeId","data-v-45c95570"]]);function Sk1(){const e=document.createElement("div");document.body.appendChild(e),o.createApp({render(){return o.h(Ak1)}}).mount(e)}Gr.add(N21);Gr.add($01);Gr.add(jr1);const Nk1=(e,a)=>{const t=j8.mergeDeep(Cb,a);l4().options=j8.removeProps(t,["colors"]),qf(t.colors),e.use(kr),e.use(Hw),Object.entries(Lk1).forEach(([c,r])=>{e.component(c,r)}),Sk1()};exports.addNotification=kV;exports.animation=w91;exports.clearNotifications=_V;exports.copyModelFields=ko1;exports.createI18n=GM;exports.default=Nk1;exports.displayAlert=XM;exports.getCoinAmountInString=y91;exports.getDatetimeInString=L91;exports.getLanguage=Go1;exports.getNumberInString=eM;exports.getTheme=Ec;exports.isCurrentUrl=_o1;exports.removeNotification=Zn;exports.rgba=b91;exports.scrollToTop=qM;exports.setBodyOverflow=ra;exports.setColor=bw;exports.setColors=qf;exports.setLanguage=jo1;exports.setTheme=yw;exports.useColorsStore=Tr;
|
|
831
|
+
`;var t=lb(e,a);return t}function _L1(e){var a="",t,c="";if(e==null||e["!ref"]==null)return[];var r=$2(e["!ref"]),n="",i=[],s,l=[],f=Array.isArray(e);for(s=r.s.c;s<=r.e.c;++s)i[s]=s3(s);for(var u=r.s.r;u<=r.e.r;++u)for(n=z3(u),s=r.s.c;s<=r.e.c;++s)if(a=i[s]+n,t=f?(e[u]||[])[s]:e[a],c="",t!==void 0){if(t.F!=null){if(a=t.F,!t.f)continue;c=t.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(t.f!=null)c=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)c=""+t.v;else if(t.t=="b")c=t.v?"TRUE":"FALSE";else if(t.w!==void 0)c="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?c="'"+t.v:c=""+t.v}}l[l.length]=a+"="+c}return l}function fb(e,a,t){var c=t||{},r=+!c.skipHeader,n=e||{},i=0,s=0;if(n&&c.origin!=null)if(typeof c.origin=="number")i=c.origin;else{var l=typeof c.origin=="string"?F3(c.origin):c.origin;i=l.r,s=l.c}var f,u={s:{c:0,r:0},e:{c:s,r:i+a.length-1+r}};if(n["!ref"]){var h=$2(n["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),i==-1&&(i=h.e.r+1,u.e.r=i+a.length-1+r)}else i==-1&&(i=0,u.e.r=a.length-1+r);var d=c.header||[],m=0;a.forEach(function(p,g){c0(p).forEach(function(z){(m=d.indexOf(z))==-1&&(d[m=d.length]=z);var M=p[z],x="z",y="",k=W1({c:s+m,r:i+g+r});f=y5(n,k),M&&typeof M=="object"&&!(M instanceof Date)?n[k]=M:(typeof M=="number"?x="n":typeof M=="boolean"?x="b":typeof M=="string"?x="s":M instanceof Date?(x="d",c.cellDates||(x="n",M=B3(M)),y=c.dateNF||Y1[14]):M===null&&c.nullError&&(x="e",M=0),f?(f.t=x,f.v=M,delete f.w,delete f.R,y&&(f.z=y)):n[k]=f={t:x,v:M},y&&(f.z=y))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var v=z3(i);if(r)for(m=0;m<d.length;++m)n[s3(m+s)+v]={t:"s",v:d[m]};return n["!ref"]=t2(u),n}function AL1(e,a){return fb(null,e,a)}function y5(e,a,t){if(typeof a=="string"){if(Array.isArray(e)){var c=F3(a);return e[c.r]||(e[c.r]=[]),e[c.r][c.c]||(e[c.r][c.c]={t:"z"})}return e[a]||(e[a]={t:"z"})}return typeof a!="number"?y5(e,W1(a)):y5(e,W1({r:a,c:t||0}))}function SL1(e,a){if(typeof a=="number"){if(a>=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var t=e.SheetNames.indexOf(a);if(t>-1)return t;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function Hi(){return{SheetNames:[],Sheets:{}}}function Vi(e,a,t,c){var r=1;if(!t)for(;r<=65535&&e.SheetNames.indexOf(t="Sheet"+r)!=-1;++r,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(c&&e.SheetNames.indexOf(t)>=0){var n=t.match(/(^.*?)(\d+)$/);r=n&&+n[2]||0;var i=n&&n[1]||t;for(++r;r<=65535&&e.SheetNames.indexOf(t=i+r)!=-1;++r);}if(pw1(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=a,t}function NL1(e,a,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var c=SL1(e,a);switch(e.Workbook.Sheets[c]||(e.Workbook.Sheets[c]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[c].Hidden=t}function TL1(e,a){return e.z=a,e}function ub(e,a,t){return a?(e.l={Target:a},t&&(e.l.Tooltip=t)):delete e.l,e}function EL1(e,a,t){return ub(e,"#"+a,t)}function FL1(e,a,t){e.c||(e.c=[]),e.c.push({t:a,a:t||"SheetJS"})}function PL1(e,a,t,c){for(var r=typeof a!="string"?a:$2(a),n=typeof a=="string"?a:t2(a),i=r.s.r;i<=r.e.r;++i)for(var s=r.s.c;s<=r.e.c;++s){var l=y5(e,i,s);l.t="n",l.F=n,delete l.v,i==r.s.r&&s==r.s.c&&(l.f=t,c&&(l.D=!0))}return e}var DL1={encode_col:s3,encode_row:z3,encode_cell:W1,encode_range:t2,decode_col:oi,decode_row:si,split_cell:jz1,decode_cell:F3,decode_range:a8,format_cell:_0,sheet_add_aoa:py,sheet_add_json:fb,sheet_add_dom:nb,aoa_to_sheet:t8,json_to_sheet:AL1,table_to_sheet:ib,table_to_book:Jw1,sheet_to_csv:lb,sheet_to_txt:kL1,sheet_to_json:Lr,sheet_to_html:Kw1,sheet_to_formulae:_L1,sheet_to_row_object_array:Lr,sheet_get_cell:y5,book_new:Hi,book_append_sheet:Vi,book_set_sheet_visibility:NL1,cell_set_number_format:TL1,cell_set_hyperlink:ub,cell_set_internal_link:EL1,cell_add_comment:FL1,sheet_set_array_formula:PL1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const BL1=o.defineComponent({__name:"PgaInputFileExcel",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{},excelConfig:{}},{isReadingFile:{type:Boolean,default:!1},isReadingFileModifiers:{}}),emits:o.mergeModels(["newFile","newFileRead"],["update:isReadingFile"]),setup(e,{expose:a,emit:t}){const c=o.useModel(e,"isReadingFile"),r=e,n=t;a({resetInput:s});const i=o.ref();function s(){i.value&&i.value.resetInput()}function l(f){if(n("newFile",f),r.excelConfig){if(!f){n("newFileRead",[]);return}const u=new FileReader;u.onload=function(h){var d;try{c.value=!0;const m=new Uint8Array((d=h.target)==null?void 0:d.result),v=wr(m,{type:"array"}),p=v.SheetNames[0],g=v.Sheets[p],z=r.excelConfig.columns,M=Math.max(...Object.values(z)),x=Array(M).map((k,N)=>`empty${N+1}`);Object.entries(z).forEach(([k,N])=>x[N-1]=k);const y=DL1.sheet_to_json(g,{header:x,range:r.excelConfig.firstRow-1});n("newFileRead",y)}finally{c.value=!1}},u.readAsArrayBuffer(f)}}return(f,u)=>(o.openBlock(),o.createBlock(AV,{ref_key:"inputFile",ref:i,label:f.label,withOptionalLabel:f.withOptionalLabel,withLabelSpace:f.withLabelSpace,errors:f.errors,disabled:f.disabled,grow:f.grow,acceptedFormats:["xls","xlsx"],onNewFile:u[0]||(u[0]=h=>l(h))},null,8,["label","withOptionalLabel","withLabelSpace","errors","disabled","grow"]))}}),OL1={class:"select"},RL1={key:0,class:"input--empty-options"},IL1={key:1},$L1=["textContent"],UL1={key:0,class:"select--dropdown"},WL1=["onClick"],YL1=["textContent"],qL1=o.defineComponent({__name:"PgaSelect",props:o.mergeModels({options:{},emptyOptionsMsg:{type:[String,Function]},reduceNameFunction:{type:Function},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:a}){o.useCssVars(x=>({"3a414c6b":o.unref(i).input.height,"6b30a977":u.value,"4959945a":o.unref(i).input.borderColor,b03997bc:o.unref(i).input.borderRadius,"3bd3a811":o.unref(i).input.backgroundColor,e390b4a6:o.unref(i).input.backgroundColorDisabled,"596dd479":o.unref(i).input.colorFocus,a4022d66:o.unref(i).input.padding,"2f30b952":l.value}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=kr.directive,{formOptions:i}=q3.storeToRefs(l4()),s=o.ref(),l=o.ref("0"),f=o.ref(),u=o.ref("0"),h=o.ref(!1),d=o.computed(()=>!!c.options.length),m=o.computed(()=>c.options.find(x=>x.id===t.value));o.watch(t,x=>r("change",x)),o.watch(f,x=>{x&&new ResizeObserver(M).observe(x)});function v(){!c.disabled&&d.value&&(h.value=!h.value)}function p(){h.value=!1}function g(x){t.value=x.id,h.value=!1}function z(){s.value&&(l.value=`${s.value.getBoundingClientRect().height}px`)}function M(){f.value&&(u.value=`${f.value.getBoundingClientRect().width}px`)}return o.onMounted(()=>{new ResizeObserver(z).observe(s.value),f.value&&new ResizeObserver(M).observe(f.value)}),(x,y)=>{const k=o.resolveComponent("PgaDisplayText"),N=o.resolveComponent("PgaIcon"),H=o.resolveComponent("PgaInputGroup");return o.openBlock(),o.createBlock(H,{label:x.label,withOptionalLabel:x.withOptionalLabel,withLabelSpace:x.withLabelSpace,errors:x.errors,grow:x.grow},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",OL1,[o.createElementVNode("div",{ref_key:"inputRef",ref:s,class:o.normalizeClass(["select--input",{"select--input__disabled":x.disabled,"select--input__dropdown-active":h.value}]),onClick:y[1]||(y[1]=F=>v())},[!d.value&&x.emptyOptionsMsg?(o.openBlock(),o.createElementBlock("div",RL1,[o.createVNode(k,{class:"empty-options--text",text:x.emptyOptionsMsg},null,8,["text"])])):m.value?(o.openBlock(),o.createElementBlock("div",IL1,[x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",{key:0,class:"reduce-name-function",textContent:o.toDisplayString(x.reduceNameFunction(m.value))},null,8,$L1)):o.renderSlot(x.$slots,"dropdownOption",{key:1,option:m.value},void 0,!0)])):o.createCommentVNode("",!0),x.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:2,ref_key:"inputIconsRef",ref:f,class:"input--icons"},[m.value?(o.openBlock(),o.createBlock(N,{key:0,class:"input--icon",icon:"xmark",clickable:"",onClick:y[0]||(y[0]=o.withModifiers(F=>t.value=null,["stop"]))})):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(N,{key:1,class:"input--icon",icon:"chevron-down",clickable:""})):o.createCommentVNode("",!0)],512))],2),h.value?(o.openBlock(),o.createElementBlock("ul",UL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.options,F=>(o.openBlock(),o.createElementBlock("li",{key:F.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":F.id===t.value}]),onClick:A=>g(F)},[x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",{key:0,class:"reduce-name-function",textContent:o.toDisplayString(x.reduceNameFunction(F))},null,8,YL1)):o.renderSlot(x.$slots,"dropdownOption",{key:1,option:F},void 0,!0)],10,WL1))),128))])):o.createCommentVNode("",!0)])),[[o.unref(n),p]])]),_:3},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const GL1=d2(qL1,[["__scopeId","data-v-4d766816"]]),jL1=e=>(o.pushScopeId("data-v-4cff5de2"),e=e(),o.popScopeId(),e),XL1={class:"switch-container"},ZL1=["checked","disabled"],QL1=jL1(()=>o.createElementVNode("div",{class:"switch--slider"},null,-1)),KL1=o.defineComponent({__name:"PgaSwitch",props:o.mergeModels({label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(r=>({"3c8866a0":o.unref(t).input.height}));const a=o.useModel(e,"modelValue"),{formOptions:t}=q3.storeToRefs(l4());function c(){a.value=!a.value}return(r,n)=>(o.openBlock(),o.createBlock(yt,{label:r.label,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,errors:r.errors,grow:r.grow},{default:o.withCtx(()=>[o.createElementVNode("div",XL1,[o.createElementVNode("label",{class:o.normalizeClass(["switch",{switch__disabled:r.disabled}])},[o.createElementVNode("input",{class:"switch--input",type:"checkbox",checked:a.value,disabled:r.disabled,onClick:n[0]||(n[0]=i=>c())},null,8,ZL1),QL1],2)])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const JL1=d2(KL1,[["__scopeId","data-v-4cff5de2"]]),ek1={class:"switch-options"},ak1=["onClick"],tk1=o.defineComponent({__name:"PgaSwitchOptions",props:o.mergeModels({items:{},label:{},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},errors:{},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(c=>({"39dbee92":o.unref(t).input.borderRadius,"0b9aca4a":o.unref(t).input.height,"43216d63":o.unref(t).input.borderColor,"1b9b97a1":o.unref(t).input.backgroundColor,"0a326ae9":o.unref(t).input.colorFocus,a0552c92:o.unref(t).input.backgroundColorFocus,a01c43ca:o.unref(t).input.backgroundColorHover}));const a=o.useModel(e,"modelValue"),{formOptions:t}=q3.storeToRefs(l4());return(c,r)=>{const n=o.resolveComponent("PgaInputGroup");return o.openBlock(),o.createBlock(n,{label:c.label,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,errors:c.errors,grow:c.grow},{default:o.withCtx(()=>[o.createElementVNode("div",ek1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.items,(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["switch-options--item",{"switch-options--item__first-item":s===0,"switch-options--item__last-item":s+1===c.items.length,"switch-options--item__active":a.value===i.id}]),key:i.id,onClick:l=>a.value=i.id},[o.createVNode(x6,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,ak1))),128))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const ck1=d2(tk1,[["__scopeId","data-v-14b11a15"]]),rk1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ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KQqMYE0nv/vDd18VwKvQOFmSaS4SQcckL+dON9fNe72V1t93uGEhaJoNgo/JYWoHAArLTWP3MSvYv4/h17ajRPG2fdXNxbDjDjqrZmemlxXL/jitpBQILyGBm9XcqX62aBsBQuQcLAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAACCwBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",nk1=["src"],ik1=o.defineComponent({__name:"PgaImage",props:{image:{},source:{},size:{},height:{},width:{},borderRadius:{}},setup(e){const a=e,t=o.ref(!1),c=o.computed(()=>a.source?a.source:l4().imageOptions.source),r=o.computed(()=>{const i=[];return a.size?i.push({height:a.size,width:a.size}):(a.height&&i.push({height:a.height,width:"auto"}),a.width&&i.push({height:"auto",width:a.width}),a.height&&a.width&&i.push({height:a.height,width:a.width})),i}),n=o.computed(()=>{const i=[];return a.borderRadius&&i.push({borderRadius:a.borderRadius}),i});return o.watch(()=>a.image,()=>t.value=!1),(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:"img-container",style:o.normalizeStyle(r.value)},[t.value||!a.image?(o.openBlock(),o.createElementBlock("img",{key:0,class:"img",src:rk1,style:o.normalizeStyle(n.value)},null,4)):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:`${c.value}/${a.image}`,style:o.normalizeStyle(n.value),onError:s[0]||(s[0]=l=>t.value=!0)},null,44,nk1))],4))}});const sk1=d2(ik1,[["__scopeId","data-v-eb6577b4"]]),hb=e=>(o.pushScopeId("data-v-09dde44c"),e=e(),o.popScopeId(),e),ok1={key:0,class:"pagination"},lk1={key:0,class:"pagination--item-container"},fk1=hb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),uk1=["textContent","onClick"],hk1={key:1,class:"pagination--item-container"},dk1=hb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),mk1=["textContent"],pk1=o.defineComponent({__name:"PgaPagination",props:o.mergeModels({totalCount:{},pageSize:{},preventScrollToTop:{type:Boolean}},{modelValue:{required:!0,default:1},modelModifiers:{}}),emits:o.mergeModels(["newPage"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=e,r=a,n=o.computed(()=>Math.ceil(c.totalCount/c.pageSize)),i=o.computed(()=>{const h=[t.value];for(let d=t.value-1;d>=t.value-3&&d>=1;d--)h.unshift(d);for(let d=t.value+1;d<=t.value+3&&d<=n.value;d++)h.push(d);if(h.length===7)return h;if(h.includes(1))for(let d=h[h.length-1]+1;d<=7-h.length+h[h.length-1]&&d<=n.value;d++)h.push(d);else for(let d=h[0]-1;d>=-(7-h.length)+h[0]&&d>=1;d--)h.unshift(d);return h}),s=o.computed(()=>!i.value.includes(1)),l=o.computed(()=>!i.value.includes(n.value));return o.watch(t,f=>{r("newPage",f),c.preventScrollToTop||qM()}),(f,u)=>n.value>1?(o.openBlock(),o.createElementBlock("div",ok1,[s.value?(o.openBlock(),o.createElementBlock("div",lk1,[o.createElementVNode("div",{class:"pagination--item",textContent:"1",onClick:u[0]||(u[0]=h=>t.value=1)}),fk1])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createElementBlock("div",{key:h,class:o.normalizeClass(["pagination--item",{"pagination--item__current":h===t.value}]),textContent:o.toDisplayString(h),onClick:d=>t.value=h},null,10,uk1))),128)),l.value?(o.openBlock(),o.createElementBlock("div",hk1,[dk1,o.createElementVNode("div",{class:"pagination--item",textContent:o.toDisplayString(n.value),onClick:u[1]||(u[1]=h=>t.value=n.value)},null,8,mk1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)}});const vk1=d2(pk1,[["__scopeId","data-v-09dde44c"]]),gk1={class:"table"},xk1={class:"table-header"},zk1={class:"table-container"},Ck1={key:0,style:{"text-align":"center"}},Mk1={key:0,class:"td__fit-content"},Hk1={class:"td--content td--content__center"},Vk1={class:"indentation-content"},yk1={key:0,class:"indentation-line"},bk1=o.defineComponent({__name:"PgaTable",props:o.mergeModels({columns:{},items:{},totalCount:{},searchInputPlaceholder:{},indentation:{},isLoading:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:o.mergeModels(["refreshList"],["update:modelValue"]),setup(e,{emit:a}){const t=o.useModel(e,"modelValue"),c=e,r=a,n=o.ref([]),i=o.computed(()=>{if(!c.indentation)return!1;for(const d of c.items)if(d[c.indentation.propName].length>0)return!0;return!1}),s=o.computed(()=>{if(!i.value)return c.items;const d=[];for(const m of c.items)d.push(m),f(m)&&d.push(...m[c.indentation.propName]);return d});o.watch(t,()=>r("refreshList"),{deep:!0});function l(d){return c.items.map(v=>v.id).includes(d.id)}function f(d){return n.value.includes(d.id)}function u(d){n.value.push(d.id)}function h(d){n.value=n.value.filter(m=>m!==d.id)}return(d,m)=>{const v=o.resolveComponent("PgaSpinner"),p=o.resolveComponent("PgaInput"),g=o.resolveComponent("PgaDisplayText"),z=o.resolveComponent("PgaIcon"),M=o.resolveComponent("PgaPagination"),x=o.resolveComponent("PgaDisplayNoItems");return o.openBlock(),o.createElementBlock("div",gk1,[o.createElementVNode("div",xk1,[o.renderSlot(d.$slots,"header",{},void 0,!0),d.isLoading?(o.openBlock(),o.createBlock(v,{key:0,size:"0.7em"})):o.createCommentVNode("",!0),o.createVNode(p,{class:"header--search",modelValue:t.value.search,"onUpdate:modelValue":m[0]||(m[0]=y=>t.value.search=y),placeholder:d.searchInputPlaceholder},null,8,["modelValue","placeholder"])]),o.createElementVNode("div",zk1,[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[i.value?(o.openBlock(),o.createElementBlock("th",Ck1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.columns,(y,k)=>(o.openBlock(),o.createElementBlock("th",{key:k,style:o.normalizeStyle({"text-align":y.align?y.align:"center"})},[o.createVNode(g,{text:y.title},null,8,["text"])],4))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(y,k)=>(o.openBlock(),o.createElementBlock("tr",{key:y.id,class:o.normalizeClass([k%2===0?"tr__even":"tr__odd"])},[i.value?(o.openBlock(),o.createElementBlock("td",Mk1,[o.createElementVNode("div",Hk1,[o.createElementVNode("div",Vk1,[l(y)?f(y)?(o.openBlock(),o.createBlock(z,{key:1,icon:"caret-down",clickable:"",onClick:N=>h(y)},null,8,["onClick"])):y[c.indentation.propName].length>0?(o.openBlock(),o.createBlock(z,{key:2,icon:"caret-right",clickable:"",onClick:N=>u(y)},null,8,["onClick"])):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",yk1))])])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.columns,(N,H)=>(o.openBlock(),o.createElementBlock("td",{key:H,class:o.normalizeClass({"td__fit-content":N.fitContent})},[o.createElementVNode("div",{class:o.normalizeClass(["td--content",[`td--content__${N.align?N.align:"center"}`]])},[o.renderSlot(d.$slots,H,{item:y},void 0,!0)],2)],2))),128))],2))),128))])])]),o.createVNode(M,{modelValue:t.value.page,"onUpdate:modelValue":m[1]||(m[1]=y=>t.value.page=y),pageSize:t.value.pageSize,totalCount:d.totalCount},null,8,["modelValue","pageSize","totalCount"]),o.createVNode(x,{items:s.value,isLoading:d.isLoading},null,8,["items","isLoading"])])}}});const wk1=d2(bk1,[["__scopeId","data-v-0e0652bc"]]),Lk1=Object.freeze(Object.defineProperty({__proto__:null,PgaBadge:Zr1,PgaButton:X6,PgaButtonLink:jM,PgaChartBar:Cd1,PgaDatePicker:wx1,PgaDeleteButton:pl1,PgaDisplayInfo:Ld1,PgaDisplayNoItems:Sd1,PgaDisplayText:x6,PgaEditButton:xl1,PgaForm:Td1,PgaFormRow:Dd1,PgaIcon:S4,PgaImage:sk1,PgaInfoCardFullPage:M91,PgaInput:Sx1,PgaInputFile:AV,PgaInputFileExcel:BL1,PgaInputGroup:yt,PgaItemSelected:V91,PgaLink:Ml1,PgaLoginForm:mm1,PgaLogoutButton:Hl1,PgaModal:el1,PgaPagination:vk1,PgaSelect:GL1,PgaSpinner:ot,PgaSwitch:JL1,PgaSwitchOptions:ck1,PgaTable:wk1,PgaUserMenu:il1},Symbol.toStringTag,{value:"Module"})),kk1={class:"notifications"},_k1=o.defineComponent({__name:"Notifications",setup(e){const a=T0("notifications"),{notificationsOptions:t}=q3.storeToRefs(l4()),{notifications:c}=q3.storeToRefs(o6());return(r,n)=>(o.openBlock(),o.createElementBlock("div",kk1,[o.createVNode(o.TransitionGroup,{name:"notifications--transition-group"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),i=>(o.openBlock(),o.createElementBlock("div",{key:i.id,class:"notifications--notification",style:o.normalizeStyle({"border-left-color":`var(--pga-color-${i.type})`})},[o.createVNode(x6,{class:"notifications--message",text:i.message},null,8,["text"]),o.unref(t).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(S4,{key:0,class:"notifications--xmark",icon:"xmark",onClick:s=>o.unref(Zn)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(t).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(jM,{key:0,class:"notifications--remove-all-btn",text:o.unref(a)("removeAllBtn"),onClick:n[0]||(n[0]=i=>o.unref(_V)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const Ak1=d2(_k1,[["__scopeId","data-v-45c95570"]]);function Sk1(){const e=document.createElement("div");document.body.appendChild(e),o.createApp({render(){return o.h(Ak1)}}).mount(e)}Gr.add(N21);Gr.add($01);Gr.add(jr1);const Nk1=(e,a)=>{const t=j8.mergeDeep(Cb,a);l4().options=j8.removeProps(t,["colors"]),qf(t.colors),e.use(kr),e.use(Hw),Object.entries(Lk1).forEach(([c,r])=>{e.component(c,r)}),Sk1()};exports.addNotification=kV;exports.animation=w91;exports.clearNotifications=_V;exports.copyModelFields=ko1;exports.createI18n=GM;exports.default=Nk1;exports.displayAlert=XM;exports.getCoinAmountInString=y91;exports.getDatetimeInString=L91;exports.getLanguage=Go1;exports.getNumberInString=eM;exports.getTheme=Ec;exports.isCurrentUrl=_o1;exports.removeNotification=Zn;exports.rgba=b91;exports.scrollToTop=qM;exports.setBodyOverflow=ra;exports.setColor=bw;exports.setColors=qf;exports.setLanguage=jo1;exports.setTheme=yw;exports.useColorsStore=Tr;
|