pangea-lib 2.11.478 → 2.11.479

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 CHANGED
@@ -774,7 +774,7 @@ var pM;function A1(){return pM.apply(null,arguments)}function K91(e){pM=e}functi
774
774
  [`+n+"] ";for(i in arguments[0])s2(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[n];c.push(r)}gM(e+`
775
775
  Arguments: `+Array.prototype.slice.call(c).join("")+`
776
776
  `+new Error().stack),t=!1}return a.apply(this,arguments)},a)}var Ss={};function xM(e,a){A1.deprecationHandler!=null&&A1.deprecationHandler(e,a),Ss[e]||(gM(a),Ss[e]=!0)}A1.suppressDeprecationWarnings=!1;A1.deprecationHandler=null;function s0(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function en1(e){var a,t;for(t in e)s2(e,t)&&(a=e[t],s0(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 cr(e,a){var t=G0({},e),c;for(c in a)s2(a,c)&&($6(e[c])&&$6(a[c])?(t[c]={},G0(t[c],e[c]),G0(t[c],a[c])):a[c]!=null?t[c]=a[c]:delete t[c]);for(c in e)s2(e,c)&&!s2(a,c)&&$6(e[c])&&(t[c]=G0({},t[c]));return t}function sn(e){e!=null&&this.set(e)}var rr;Object.keys?rr=Object.keys:rr=function(e){var a,t=[];for(a in e)s2(e,a)&&t.push(a);return t};var an1={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function tn1(e,a,t){var c=this._calendar[e]||this._calendar.sameElse;return s0(c)?c.call(a,t):c}function r0(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 on=/(\[[^\[]*\])|(\\)?([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,ua=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zt={},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 r0(r.apply(this,arguments),a[1],a[2])}),t&&(Ae[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function cn1(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function rn1(e){var a=e.match(on),t,c;for(t=0,c=a.length;t<c;t++)Ae[a[t]]?a[t]=Ae[a[t]]:a[t]=cn1(a[t]);return function(r){var n="",i;for(i=0;i<c;i++)n+=s0(a[i])?a[i].call(r,e):a[i];return n}}function Ua(e,a){return e.isValid()?(a=zM(a,e.localeData()),Zt[a]=Zt[a]||rn1(a),Zt[a](e)):e.localeData().invalidDate()}function zM(e,a){var t=5;function c(r){return a.longDateFormat(r)||r}for(ua.lastIndex=0;t>=0&&ua.test(e);)e=e.replace(ua,c),ua.lastIndex=0,t-=1;return e}var nn1={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 in1(e){var a=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return a||!t?a:(this._longDateFormat[e]=t.match(on).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[e])}var sn1="Invalid date";function on1(){return this._invalidDate}var ln1="%d",fn1=/\d{1,2}/;function un1(e){return this._ordinal.replace("%d",e)}var hn1={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 dn1(e,a,t,c){var r=this._relativeTime[t];return s0(r)?r(e,a,t,c):r.replace(/%d/i,e)}function mn1(e,a){var t=this._relativeTime[e>0?"future":"past"];return s0(t)?t(a):t.replace(/%s/i,a)}var Ns={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 p4(e){return typeof e=="string"?Ns[e]||Ns[e.toLowerCase()]:void 0}function ln(e){var a={},t,c;for(c in e)s2(e,c)&&(t=p4(c),t&&(a[t]=e[c]));return a}var pn1={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 vn1(e){var a=[],t;for(t in e)s2(e,t)&&a.push({unit:t,priority:pn1[t]});return a.sort(function(c,r){return c.priority-r.priority}),a}var CM=/\d/,n4=/\d\d/,MM=/\d{3}/,fn=/\d{4}/,vt=/[+-]?\d{6}/,w2=/\d\d?/,HM=/\d\d\d\d?/,VM=/\d\d\d\d\d\d?/,gt=/\d{1,3}/,un=/\d{1,4}/,xt=/[+-]?\d{1,6}/,Ze=/\d+/,zt=/[+-]?\d+/,gn1=/Z|[+-]\d\d:?\d\d/gi,Ct=/Z|[+-]\d\d(?::?\d\d)?/gi,xn1=/[+-]?\d+(\.\d{1,3})?/,B5=/[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?/,hn=/^([1-9]\d|\d)/,l7;l7={};function N1(e,a,t){l7[e]=s0(a)?a:function(c,r){return c&&t?t:a}}function zn1(e,a){return s2(l7,e)?l7[e](a._strict,a._locale):new RegExp(Cn1(e))}function Cn1(e){return H0(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,t,c,r,n){return t||c||r||n}))}function H0(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function u4(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J1(e){var a=+e,t=0;return a!==0&&isFinite(a)&&(t=u4(a)),t}var nr={};function p2(e,a){var t,c=a,r;for(typeof e=="string"&&(e=[e]),_0(a)&&(c=function(n,i){i[a]=J1(n)}),r=e.length,t=0;t<r;t++)nr[e[t]]=c}function O5(e,a){p2(e,function(t,c,r,n){r._w=r._w||{},a(t,r._w,r,n)})}function Mn1(e,a,t){a!=null&&s2(nr,e)&&nr[e](a,t._a,t,e)}function Mt(e){return e%4===0&&e%100!==0||e%400===0}var L3=0,x0=1,G4=2,i3=3,w4=4,z0=5,O6=6,Hn1=7,Vn1=8;R1("Y",0,0,function(){var e=this.year();return e<=9999?r0(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",zt);N1("YY",w2,n4);N1("YYYY",un,fn);N1("YYYYY",xt,vt);N1("YYYYYY",xt,vt);p2(["YYYYY","YYYYYY"],L3);p2("YYYY",function(e,a){a[L3]=e.length===2?A1.parseTwoDigitYear(e):J1(e)});p2("YY",function(e,a){a[L3]=A1.parseTwoDigitYear(e)});p2("Y",function(e,a){a[L3]=parseInt(e,10)});function N8(e){return Mt(e)?366:365}A1.parseTwoDigitYear=function(e){return J1(e)+(J1(e)>68?1900:2e3)};var yM=Ke("FullYear",!0);function yn1(){return Mt(this.year())}function Ke(e,a){return function(t){return t!=null?(bM(this,e,t),A1.updateOffset(this,a),this):n5(this,e)}}function n5(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 bM(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&&!Mt(n)?28:s,r?c.setUTCFullYear(n,i,s):c.setFullYear(n,i,s)}}function bn1(e){return e=p4(e),s0(this[e])?this[e]():this}function wn1(e,a){if(typeof e=="object"){e=ln(e);var t=vn1(e),c,r=t.length;for(c=0;c<r;c++)this[t[c].unit](e[t[c].unit])}else if(e=p4(e),s0(this[e]))return this[e](a);return this}function kn1(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 dn(e,a){if(isNaN(e)||isNaN(a))return NaN;var t=kn1(a,12);return e+=(a-t)/12,t===1?Mt(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,n4);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[x0]=J1(e)-1});p2(["MMM","MMMM"],function(e,a,t,c){var r=t._locale.monthsParse(e,c,t._strict);r!=null?a[x0]=r:G1(t).invalidMonth=e});var Ln1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wM="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),kM=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_n1=B5,An1=B5;function Sn1(e,a){return e?E4(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||kM).test(a)?"format":"standalone"][e.month()]:E4(this._months)?this._months:this._months.standalone}function Nn1(e,a){return e?E4(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[kM.test(a)?"format":"standalone"][e.month()]:E4(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Tn1(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=i0([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 En1(e,a,t){var c,r,n;if(this._monthsParseExact)return Tn1.call(this,e,a,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(r=i0([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 LM(e,a){if(!e.isValid())return e;if(typeof a=="string"){if(/^\d+$/.test(a))a=J1(a);else if(a=e.localeData().monthsParse(a),!_0(a))return e}var t=a,c=e.date();return c=c<29?c:Math.min(c,dn(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,c):e._d.setMonth(t,c),e}function _M(e){return e!=null?(LM(this,e),A1.updateOffset(this,!0),this):n5(this,"Month")}function Fn1(){return dn(this.year(),this.month())}function Pn1(e){return this._monthsParseExact?(s2(this,"_monthsRegex")||AM.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s2(this,"_monthsShortRegex")||(this._monthsShortRegex=_n1),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Dn1(e){return this._monthsParseExact?(s2(this,"_monthsRegex")||AM.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s2(this,"_monthsRegex")||(this._monthsRegex=An1),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function AM(){function e(l,f){return f.length-l.length}var a=[],t=[],c=[],r,n,i,s;for(r=0;r<12;r++)n=i0([2e3,r]),i=H0(this.monthsShort(n,"")),s=H0(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 Bn1(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 i5(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 f7(e,a,t){var c=7+a-t,r=(7+i5(e,0,c).getUTCDay()-a)%7;return-r+c-1}function SM(e,a,t,c,r){var n=(7+t-c)%7,i=f7(e,c,r),s=1+7*(a-1)+n+i,l,f;return s<=0?(l=e-1,f=N8(l)+s):s>N8(e)?(l=e+1,f=s-N8(e)):(l=e,f=s),{year:l,dayOfYear:f}}function s5(e,a,t){var c=f7(e.year(),a,t),r=Math.floor((e.dayOfYear()-c-1)/7)+1,n,i;return r<1?(i=e.year()-1,n=r+V0(i,a,t)):r>V0(e.year(),a,t)?(n=r-V0(e.year(),a,t),i=e.year()+1):(i=e.year(),n=r),{week:n,year:i}}function V0(e,a,t){var c=f7(e,a,t),r=f7(e+1,a,t);return(N8(e)-c+r)/7}R1("w",["ww",2],"wo","week");R1("W",["WW",2],"Wo","isoWeek");N1("w",w2,Qe);N1("ww",w2,n4);N1("W",w2,Qe);N1("WW",w2,n4);O5(["w","ww","W","WW"],function(e,a,t,c){a[c.substr(0,1)]=J1(e)});function On1(e){return s5(e,this._week.dow,this._week.doy).week}var Rn1={dow:0,doy:6};function In1(){return this._week.dow}function $n1(){return this._week.doy}function Un1(e){var a=this.localeData().week(this);return e==null?a:this.add((e-a)*7,"d")}function Wn1(e){var a=s5(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)});O5(["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});O5(["d","e","E"],function(e,a,t,c){a[c]=J1(e)});function Yn1(e,a){return typeof e!="string"?e:isNaN(e)?(e=a.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function qn1(e,a){return typeof e=="string"?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}function mn(e,a){return e.slice(a,7).concat(e.slice(0,a))}var Gn1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),NM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jn1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xn1=B5,Zn1=B5,Qn1=B5;function Kn1(e,a){var t=E4(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return e===!0?mn(t,this._week.dow):e?t[e.day()]:t}function Jn1(e){return e===!0?mn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ei1(e){return e===!0?mn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ai1(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=i0([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 ti1(e,a,t){var c,r,n;if(this._weekdaysParseExact)return ai1.call(this,e,a,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(r=i0([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 ci1(e){if(!this.isValid())return e!=null?this:NaN;var a=n5(this,"Day");return e!=null?(e=Yn1(e,this.localeData()),this.add(e-a,"d")):a}function ri1(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 ni1(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var a=qn1(e,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function ii1(e){return this._weekdaysParseExact?(s2(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s2(this,"_weekdaysRegex")||(this._weekdaysRegex=Xn1),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function si1(e){return this._weekdaysParseExact?(s2(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s2(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zn1),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function oi1(e){return this._weekdaysParseExact?(s2(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s2(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qn1),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pn(){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=i0([2e3,1]).day(n),s=H0(this.weekdaysMin(i,"")),l=H0(this.weekdaysShort(i,"")),f=H0(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 vn(){return this.hours()%12||12}function li1(){return this.hours()||24}R1("H",["HH",2],0,"hour");R1("h",["hh",2],0,vn);R1("k",["kk",2],0,li1);R1("hmm",0,0,function(){return""+vn.apply(this)+r0(this.minutes(),2)});R1("hmmss",0,0,function(){return""+vn.apply(this)+r0(this.minutes(),2)+r0(this.seconds(),2)});R1("Hmm",0,0,function(){return""+this.hours()+r0(this.minutes(),2)});R1("Hmmss",0,0,function(){return""+this.hours()+r0(this.minutes(),2)+r0(this.seconds(),2)});function TM(e,a){R1(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}TM("a",!0);TM("A",!1);function EM(e,a){return a._meridiemParse}N1("a",EM);N1("A",EM);N1("H",w2,hn);N1("h",w2,Qe);N1("k",w2,Qe);N1("HH",w2,n4);N1("hh",w2,n4);N1("kk",w2,n4);N1("hmm",HM);N1("hmmss",VM);N1("Hmm",HM);N1("Hmmss",VM);p2(["H","HH"],i3);p2(["k","kk"],function(e,a,t){var c=J1(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]=J1(e),G1(t).bigHour=!0});p2("hmm",function(e,a,t){var c=e.length-2;a[i3]=J1(e.substr(0,c)),a[w4]=J1(e.substr(c)),G1(t).bigHour=!0});p2("hmmss",function(e,a,t){var c=e.length-4,r=e.length-2;a[i3]=J1(e.substr(0,c)),a[w4]=J1(e.substr(c,2)),a[z0]=J1(e.substr(r)),G1(t).bigHour=!0});p2("Hmm",function(e,a,t){var c=e.length-2;a[i3]=J1(e.substr(0,c)),a[w4]=J1(e.substr(c))});p2("Hmmss",function(e,a,t){var c=e.length-4,r=e.length-2;a[i3]=J1(e.substr(0,c)),a[w4]=J1(e.substr(c,2)),a[z0]=J1(e.substr(r))});function fi1(e){return(e+"").toLowerCase().charAt(0)==="p"}var ui1=/[ap]\.?m?\.?/i,hi1=Ke("Hours",!0);function di1(e,a,t){return e>11?t?"pm":"PM":t?"am":"AM"}var FM={calendar:an1,longDateFormat:nn1,invalidDate:sn1,ordinal:ln1,dayOfMonthOrdinalParse:fn1,relativeTime:hn1,months:Ln1,monthsShort:wM,week:Rn1,weekdays:Gn1,weekdaysMin:jn1,weekdaysShort:NM,meridiemParse:ui1},L2={},s8={},o5;function mi1(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 Ts(e){return e&&e.toLowerCase().replace("_","-")}function pi1(e){for(var a=0,t,c,r,n;a<e.length;){for(n=Ts(e[a]).split("-"),t=n.length,c=Ts(e[a+1]),c=c?c.split("-"):null;t>0;){if(r=Ht(n.slice(0,t).join("-")),r)return r;if(c&&c.length>=t&&mi1(n,c)>=t-1)break;t--}a++}return o5}function vi1(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ht(e){var a=null,t;if(L2[e]===void 0&&typeof module<"u"&&module&&module.exports&&vi1(e))try{a=o5._abbr,t=require,t("./locale/"+e),n6(a)}catch{L2[e]=null}return L2[e]}function n6(e,a){var t;return e&&(Y3(a)?t=E0(e):t=gn(e,a),t?o5=t:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),o5._abbr}function gn(e,a){if(a!==null){var t,c=FM;if(a.abbr=e,L2[e]!=null)xM("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=L2[e]._config;else if(a.parentLocale!=null)if(L2[a.parentLocale]!=null)c=L2[a.parentLocale]._config;else if(t=Ht(a.parentLocale),t!=null)c=t._config;else return s8[a.parentLocale]||(s8[a.parentLocale]=[]),s8[a.parentLocale].push({name:e,config:a}),null;return L2[e]=new sn(cr(c,a)),s8[e]&&s8[e].forEach(function(r){gn(r.name,r.config)}),n6(e),L2[e]}else return delete L2[e],null}function gi1(e,a){if(a!=null){var t,c,r=FM;L2[e]!=null&&L2[e].parentLocale!=null?L2[e].set(cr(L2[e]._config,a)):(c=Ht(e),c!=null&&(r=c._config),a=cr(r,a),c==null&&(a.abbr=e),t=new sn(a),t.parentLocale=L2[e],L2[e]=t),n6(e)}else L2[e]!=null&&(L2[e].parentLocale!=null?(L2[e]=L2[e].parentLocale,e===n6()&&n6(e)):L2[e]!=null&&delete L2[e]);return L2[e]}function E0(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return o5;if(!E4(e)){if(a=Ht(e),a)return a;e=[e]}return pi1(e)}function xi1(){return rr(L2)}function xn(e){var a,t=e._a;return t&&G1(e).overflow===-2&&(a=t[x0]<0||t[x0]>11?x0:t[G4]<1||t[G4]>dn(t[L3],t[x0])?G4:t[i3]<0||t[i3]>24||t[i3]===24&&(t[w4]!==0||t[z0]!==0||t[O6]!==0)?i3:t[w4]<0||t[w4]>59?w4:t[z0]<0||t[z0]>59?z0:t[O6]<0||t[O6]>999?O6:-1,G1(e)._overflowDayOfYear&&(a<L3||a>G4)&&(a=G4),G1(e)._overflowWeeks&&a===-1&&(a=Hn1),G1(e)._overflowWeekday&&a===-1&&(a=Vn1),G1(e).overflow=a),e}var zi1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d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60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function PM(e){var a,t,c=e._i,r=zi1.exec(c)||Ci1.exec(c),n,i,s,l,f=ha.length,u=Qt.length;if(r){for(G1(e).iso=!0,a=0,t=f;a<t;a++)if(ha[a][1].exec(r[1])){i=ha[a][0],n=ha[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(Mi1.exec(r[4]))l="Z";else{e._isValid=!1;return}e._f=i+(s||"")+(l||""),Cn(e)}else e._isValid=!1}function bi1(e,a,t,c,r,n){var i=[wi1(e),wM.indexOf(a),parseInt(t,10),parseInt(c,10),parseInt(r,10)];return n&&i.push(parseInt(n,10)),i}function wi1(e){var a=parseInt(e,10);return a<=49?2e3+a:a<=999?1900+a:a}function ki1(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Li1(e,a,t){if(e){var c=NM.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 _i1(e,a,t){if(e)return yi1[e];if(a)return 0;var c=parseInt(t,10),r=c%100,n=(c-r)/100;return n*60+r}function DM(e){var a=Vi1.exec(ki1(e._i)),t;if(a){if(t=bi1(a[4],a[3],a[2],a[5],a[6],a[7]),!Li1(a[1],t,e))return;e._a=t,e._tzm=_i1(a[8],a[9],a[10]),e._d=i5.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),G1(e).rfc2822=!0}else e._isValid=!1}function Ai1(e){var a=Hi1.exec(e._i);if(a!==null){e._d=new Date(+a[1]);return}if(PM(e),e._isValid===!1)delete e._isValid;else return;if(DM(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:A1.createFromInputFallback(e)}A1.createFromInputFallback=m4("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 zn(e){var a,t,c=[],r,n,i;if(!e._d){for(r=Si1(e),e._w&&e._a[G4]==null&&e._a[x0]==null&&Ni1(e),e._dayOfYear!=null&&(i=ze(e._a[L3],r[L3]),(e._dayOfYear>N8(i)||e._dayOfYear===0)&&(G1(e)._overflowDayOfYear=!0),t=i5(i,0,e._dayOfYear),e._a[x0]=t.getUTCMonth(),e._a[G4]=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[w4]===0&&e._a[z0]===0&&e._a[O6]===0&&(e._nextDay=!0,e._a[i3]=0),e._d=(e._useUTC?i5:Bn1).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 Ni1(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],s5(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=s5(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>V0(t,n,i)?G1(e)._overflowWeeks=!0:l!=null?G1(e)._overflowWeekday=!0:(s=SM(t,c,r,n,i),e._a[L3]=s.year,e._dayOfYear=s.dayOfYear)}A1.ISO_8601=function(){};A1.RFC_2822=function(){};function Cn(e){if(e._f===A1.ISO_8601){PM(e);return}if(e._f===A1.RFC_2822){DM(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=zM(e._f,e._locale).match(on)||[],u=r.length,t=0;t<u;t++)n=r[t],c=(a.match(zn1(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),Mn1(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]=Ti1(e._locale,e._a[i3],e._meridiem),f=G1(e).era,f!==null&&(e._a[L3]=e._locale.erasConvertYear(f,e._a[L3])),zn(e),xn(e)}function Ti1(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 Ei1(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=nn({},e),e._useUTC!=null&&(a._useUTC=e._useUTC),a._f=e._f[r],Cn(a),rn(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));G0(e,t||a)}function Fi1(e){if(!e._d){var a=ln(e._i),t=a.day===void 0?a.date:a.day;e._a=vM([a.year,a.month,t,a.hour,a.minute,a.second,a.millisecond],function(c){return c&&parseInt(c,10)}),zn(e)}}function Pi1(e){var a=new D5(xn(BM(e)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function BM(e){var a=e._i,t=e._f;return e._locale=e._locale||E0(e._l),a===null||t===void 0&&a===""?pt({nullInput:!0}):(typeof a=="string"&&(e._i=a=e._locale.preparse(a)),F4(a)?new D5(xn(a)):(P5(a)?e._d=a:E4(t)?Ei1(e):t?Cn(e):Di1(e),rn(e)||(e._d=null),e))}function Di1(e){var a=e._i;Y3(a)?e._d=new Date(A1.now()):P5(a)?e._d=new Date(a.valueOf()):typeof a=="string"?Ai1(e):E4(a)?(e._a=vM(a.slice(0),function(t){return parseInt(t,10)}),zn(e)):$6(a)?Fi1(e):_0(a)?e._d=new Date(a):A1.createFromInputFallback(e)}function OM(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),($6(e)&&cn(e)||E4(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,Pi1(n)}function b2(e,a,t,c){return OM(e,a,t,c,!1)}var Bi1=m4("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:pt()}),Oi1=m4("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:pt()});function RM(e,a){var t,c;if(a.length===1&&E4(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 Ri1(){var e=[].slice.call(arguments,0);return RM("isBefore",e)}function Ii1(){var e=[].slice.call(arguments,0);return RM("isAfter",e)}var $i1=function(){return Date.now?Date.now():+new Date},o8=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ui1(e){var a,t=!1,c,r=o8.length;for(a in e)if(s2(e,a)&&!(q2.call(o8,a)!==-1&&(e[a]==null||!isNaN(e[a]))))return!1;for(c=0;c<r;++c)if(e[o8[c]]){if(t)return!1;parseFloat(e[o8[c]])!==J1(e[o8[c]])&&(t=!0)}return!0}function Wi1(){return this._isValid}function Yi1(){return D4(NaN)}function Vt(e){var a=ln(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=Ui1(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=E0(),this._bubble()}function Wa(e){return e instanceof Vt}function ir(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function qi1(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&&J1(e[i])!==J1(a[i]))&&n++;return n+r}function IM(e,a){R1(e,0,0,function(){var t=this.utcOffset(),c="+";return t<0&&(t=-t,c="-"),c+r0(~~(t/60),2)+a+r0(~~t%60,2)})}IM("Z",":");IM("ZZ","");N1("Z",Ct);N1("ZZ",Ct);p2(["Z","ZZ"],function(e,a,t){t._useUTC=!0,t._tzm=Mn(Ct,e)});var Gi1=/([\+\-]|\d\d)/gi;function Mn(e,a){var t=(a||"").match(e),c,r,n;return t===null?null:(c=t[t.length-1]||[],r=(c+"").match(Gi1)||["-",0,0],n=+(r[1]*60)+J1(r[2]),n===0?0:r[0]==="+"?n:-n)}function Hn(e,a){var t,c;return a._isUTC?(t=a.clone(),c=(F4(e)||P5(e)?e.valueOf():b2(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+c),A1.updateOffset(t,!1),t):b2(e).local()}function sr(e){return-Math.round(e._d.getTimezoneOffset())}A1.updateOffset=function(){};function ji1(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=Mn(Ct,e),e===null)return this}else Math.abs(e)<16&&!t&&(e=e*60);return!this._isUTC&&a&&(r=sr(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),c!==e&&(!a||this._changeInProgress?WM(this,D4(e-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,A1.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:sr(this)}function Xi1(e,a){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}function Zi1(e){return this.utcOffset(0,e)}function Qi1(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(sr(this),"m")),this}function Ki1(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mn(gn1,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ji1(e){return this.isValid()?(e=e?b2(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function es1(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function as1(){if(!Y3(this._isDSTShifted))return this._isDSTShifted;var e={},a;return nn(e,this),e=BM(e),e._a?(a=e._isUTC?i0(e._a):b2(e._a),this._isDSTShifted=this.isValid()&&qi1(e._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ts1(){return this.isValid()?!this._isUTC:!1}function cs1(){return this.isValid()?this._isUTC:!1}function $M(){return this.isValid()?this._isUTC&&this._offset===0:!1}var rs1=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ns1=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function D4(e,a){var t=e,c=null,r,n,i;return Wa(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:_0(e)||!isNaN(+e)?(t={},a?t[a]=+e:t.milliseconds=+e):(c=rs1.exec(e))?(r=c[1]==="-"?-1:1,t={y:0,d:J1(c[G4])*r,h:J1(c[i3])*r,m:J1(c[w4])*r,s:J1(c[z0])*r,ms:J1(ir(c[O6]*1e3))*r}):(c=ns1.exec(e))?(r=c[1]==="-"?-1:1,t={y:w6(c[2],r),M:w6(c[3],r),w:w6(c[4],r),d:w6(c[5],r),h:w6(c[6],r),m:w6(c[7],r),s:w6(c[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(i=is1(b2(t.from),b2(t.to)),t={},t.ms=i.milliseconds,t.M=i.months),n=new Vt(t),Wa(e)&&s2(e,"_locale")&&(n._locale=e._locale),Wa(e)&&s2(e,"_isValid")&&(n._isValid=e._isValid),n}D4.fn=Vt.prototype;D4.invalid=Yi1;function w6(e,a){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*a}function Es(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 is1(e,a){var t;return e.isValid()&&a.isValid()?(a=Hn(a,e),e.isBefore(a)?t=Es(e,a):(t=Es(a,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function UM(e,a){return function(t,c){var r,n;return c!==null&&!isNaN(+c)&&(xM(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=D4(t,c),WM(this,r,e),this}}function WM(e,a,t,c){var r=a._milliseconds,n=ir(a._days),i=ir(a._months);e.isValid()&&(c=c??!0,i&&LM(e,n5(e,"Month")+i*t),n&&bM(e,"Date",n5(e,"Date")+n*t),r&&e._d.setTime(e._d.valueOf()+r*t),c&&A1.updateOffset(e,n||i))}var ss1=UM(1,"add"),os1=UM(-1,"subtract");function YM(e){return typeof e=="string"||e instanceof String}function ls1(e){return F4(e)||P5(e)||YM(e)||_0(e)||us1(e)||fs1(e)||e===null||e===void 0}function fs1(e){var a=$6(e)&&!cn(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||s2(e,n);return a&&t}function us1(e){var a=E4(e),t=!1;return a&&(t=e.filter(function(c){return!_0(c)&&YM(e)}).length===0),a&&t}function hs1(e){var a=$6(e)&&!cn(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||s2(e,n);return a&&t}function ds1(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 ms1(e,a){arguments.length===1&&(arguments[0]?ls1(arguments[0])?(e=arguments[0],a=void 0):hs1(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&&(s0(a[r])?a[r].call(this,t):a[r]);return this.format(n||this.localeData().calendar(r,this,b2(t)))}function ps1(){return new D5(this)}function vs1(e,a){var t=F4(e)?e:b2(e);return this.isValid()&&t.isValid()?(a=p4(a)||"millisecond",a==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(a).valueOf()):!1}function gs1(e,a){var t=F4(e)?e:b2(e);return this.isValid()&&t.isValid()?(a=p4(a)||"millisecond",a==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(a).valueOf()<t.valueOf()):!1}function xs1(e,a,t,c){var r=F4(e)?e:b2(e),n=F4(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 zs1(e,a){var t=F4(e)?e:b2(e),c;return this.isValid()&&t.isValid()?(a=p4(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 Cs1(e,a){return this.isSame(e,a)||this.isAfter(e,a)}function Ms1(e,a){return this.isSame(e,a)||this.isBefore(e,a)}function Hs1(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=p4(a),a){case"year":n=Ya(this,c)/12;break;case"month":n=Ya(this,c);break;case"quarter":n=Ya(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:u4(n)}function Ya(e,a){if(e.date()<a.date())return-Ya(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 Vs1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ys1(e){if(!this.isValid())return null;var a=e!==!0,t=a?this.clone().utc():this;return t.year()<0||t.year()>9999?Ua(t,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):s0(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ua(t,"Z")):Ua(t,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function bs1(){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 ws1(e){e||(e=this.isUtc()?A1.defaultFormatUtc:A1.defaultFormat);var a=Ua(this,e);return this.localeData().postformat(a)}function ks1(e,a){return this.isValid()&&(F4(e)&&e.isValid()||b2(e).isValid())?D4({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Ls1(e){return this.from(b2(),e)}function _s1(e,a){return this.isValid()&&(F4(e)&&e.isValid()||b2(e).isValid())?D4({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function As1(e){return this.to(b2(),e)}function qM(e){var a;return e===void 0?this._locale._abbr:(a=E0(e),a!=null&&(this._locale=a),this)}var GM=m4("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 jM(){return this._locale}var u7=1e3,Se=60*u7,h7=60*Se,XM=(365*400+97)*24*h7;function Ne(e,a){return(e%a+a)%a}function ZM(e,a,t){return e<100&&e>=0?new Date(e+400,a,t)-XM:new Date(e,a,t).valueOf()}function QM(e,a,t){return e<100&&e>=0?Date.UTC(e+400,a,t)-XM:Date.UTC(e,a,t)}function Ss1(e){var a,t;if(e=p4(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?QM:ZM,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),h7);break;case"minute":a=this._d.valueOf(),a-=Ne(a,Se);break;case"second":a=this._d.valueOf(),a-=Ne(a,u7);break}return this._d.setTime(a),A1.updateOffset(this,!0),this}function Ns1(e){var a,t;if(e=p4(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?QM:ZM,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+=h7-Ne(a+(this._isUTC?0:this.utcOffset()*Se),h7)-1;break;case"minute":a=this._d.valueOf(),a+=Se-Ne(a,Se)-1;break;case"second":a=this._d.valueOf(),a+=u7-Ne(a,u7)-1;break}return this._d.setTime(a),A1.updateOffset(this,!0),this}function Ts1(){return this._d.valueOf()-(this._offset||0)*6e4}function Es1(){return Math.floor(this.valueOf()/1e3)}function Fs1(){return new Date(this.valueOf())}function Ps1(){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 Bs1(){return this.isValid()?this.toISOString():null}function Os1(){return rn(this)}function Rs1(){return G0({},G1(this))}function Is1(){return G1(this).overflow}function $s1(){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",Vn);N1("NN",Vn);N1("NNN",Vn);N1("NNNN",Js1);N1("NNNNN",eo1);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",ao1);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 Us1(e,a){var t,c,r,n=this._eras||E0("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 Ws1(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 Ys1(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 qs1(){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 Gs1(){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 js1(){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 Xs1(){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 Zs1(e){return s2(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex}function Qs1(e){return s2(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ks1(e){return s2(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex}function Vn(e,a){return a.erasAbbrRegex(e)}function Js1(e,a){return a.erasNameRegex(e)}function eo1(e,a){return a.erasNarrowRegex(e)}function ao1(e,a){return a._eraYearOrdinalRegex||Ze}function yn(){var e=[],a=[],t=[],c=[],r,n,i,s,l,f=this.eras();for(r=0,n=f.length;r<n;++r)i=H0(f[r].name),s=H0(f[r].abbr),l=H0(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 yt(e,a){R1(0,[e,e.length],0,a)}yt("gggg","weekYear");yt("ggggg","weekYear");yt("GGGG","isoWeekYear");yt("GGGGG","isoWeekYear");N1("G",zt);N1("g",zt);N1("GG",w2,n4);N1("gg",w2,n4);N1("GGGG",un,fn);N1("gggg",un,fn);N1("GGGGG",xt,vt);N1("ggggg",xt,vt);O5(["gggg","ggggg","GGGG","GGGGG"],function(e,a,t,c){a[c.substr(0,2)]=J1(e)});O5(["gg","GG"],function(e,a,t,c){a[c]=A1.parseTwoDigitYear(e)});function to1(e){return KM.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function co1(e){return KM.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ro1(){return V0(this.year(),1,4)}function no1(){return V0(this.isoWeekYear(),1,4)}function io1(){var e=this.localeData()._week;return V0(this.year(),e.dow,e.doy)}function so1(){var e=this.localeData()._week;return V0(this.weekYear(),e.dow,e.doy)}function KM(e,a,t,c,r){var n;return e==null?s5(this,c,r).year:(n=V0(e,c,r),a>n&&(a=n),oo1.call(this,e,a,t,c,r))}function oo1(e,a,t,c,r){var n=SM(e,a,t,c,r),i=i5(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",CM);p2("Q",function(e,a){a[x0]=(J1(e)-1)*3});function lo1(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,n4);N1("Do",function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient});p2(["D","DD"],G4);p2("Do",function(e,a){a[G4]=J1(e.match(w2)[0])});var JM=Ke("Date",!0);R1("DDD",["DDDD",3],"DDDo","dayOfYear");N1("DDD",gt);N1("DDDD",MM);p2(["DDD","DDDD"],function(e,a,t){t._dayOfYear=J1(e)});function fo1(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,hn);N1("mm",w2,n4);p2(["m","mm"],w4);var uo1=Ke("Minutes",!1);R1("s",["ss",2],0,"second");N1("s",w2,hn);N1("ss",w2,n4);p2(["s","ss"],z0);var ho1=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",gt,CM);N1("SS",gt,n4);N1("SSS",gt,MM);var j0,eH;for(j0="SSSS";j0.length<=9;j0+="S")N1(j0,Ze);function do1(e,a){a[O6]=J1(("0."+e)*1e3)}for(j0="S";j0.length<=9;j0+="S")p2(j0,do1);eH=Ke("Milliseconds",!1);R1("z",0,0,"zoneAbbr");R1("zz",0,0,"zoneName");function mo1(){return this._isUTC?"UTC":""}function po1(){return this._isUTC?"Coordinated Universal Time":""}var k1=D5.prototype;k1.add=ss1;k1.calendar=ms1;k1.clone=ps1;k1.diff=Hs1;k1.endOf=Ns1;k1.format=ws1;k1.from=ks1;k1.fromNow=Ls1;k1.to=_s1;k1.toNow=As1;k1.get=bn1;k1.invalidAt=Is1;k1.isAfter=vs1;k1.isBefore=gs1;k1.isBetween=xs1;k1.isSame=zs1;k1.isSameOrAfter=Cs1;k1.isSameOrBefore=Ms1;k1.isValid=Os1;k1.lang=GM;k1.locale=qM;k1.localeData=jM;k1.max=Oi1;k1.min=Bi1;k1.parsingFlags=Rs1;k1.set=wn1;k1.startOf=Ss1;k1.subtract=os1;k1.toArray=Ps1;k1.toObject=Ds1;k1.toDate=Fs1;k1.toISOString=ys1;k1.inspect=bs1;typeof Symbol<"u"&&Symbol.for!=null&&(k1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});k1.toJSON=Bs1;k1.toString=Vs1;k1.unix=Es1;k1.valueOf=Ts1;k1.creationData=$s1;k1.eraName=qs1;k1.eraNarrow=Gs1;k1.eraAbbr=js1;k1.eraYear=Xs1;k1.year=yM;k1.isLeapYear=yn1;k1.weekYear=to1;k1.isoWeekYear=co1;k1.quarter=k1.quarters=lo1;k1.month=_M;k1.daysInMonth=Fn1;k1.week=k1.weeks=Un1;k1.isoWeek=k1.isoWeeks=Wn1;k1.weeksInYear=io1;k1.weeksInWeekYear=so1;k1.isoWeeksInYear=ro1;k1.isoWeeksInISOWeekYear=no1;k1.date=JM;k1.day=k1.days=ci1;k1.weekday=ri1;k1.isoWeekday=ni1;k1.dayOfYear=fo1;k1.hour=k1.hours=hi1;k1.minute=k1.minutes=uo1;k1.second=k1.seconds=ho1;k1.millisecond=k1.milliseconds=eH;k1.utcOffset=ji1;k1.utc=Zi1;k1.local=Qi1;k1.parseZone=Ki1;k1.hasAlignedHourOffset=Ji1;k1.isDST=es1;k1.isLocal=ts1;k1.isUtcOffset=cs1;k1.isUtc=$M;k1.isUTC=$M;k1.zoneAbbr=mo1;k1.zoneName=po1;k1.dates=m4("dates accessor is deprecated. Use date instead.",JM);k1.months=m4("months accessor is deprecated. Use month instead",_M);k1.years=m4("years accessor is deprecated. Use year instead",yM);k1.zone=m4("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Xi1);k1.isDSTShifted=m4("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",as1);function vo1(e){return b2(e*1e3)}function go1(){return b2.apply(null,arguments).parseZone()}function aH(e){return e}var o2=sn.prototype;o2.calendar=tn1;o2.longDateFormat=in1;o2.invalidDate=on1;o2.ordinal=un1;o2.preparse=aH;o2.postformat=aH;o2.relativeTime=dn1;o2.pastFuture=mn1;o2.set=en1;o2.eras=Us1;o2.erasParse=Ws1;o2.erasConvertYear=Ys1;o2.erasAbbrRegex=Qs1;o2.erasNameRegex=Zs1;o2.erasNarrowRegex=Ks1;o2.months=Sn1;o2.monthsShort=Nn1;o2.monthsParse=En1;o2.monthsRegex=Dn1;o2.monthsShortRegex=Pn1;o2.week=On1;o2.firstDayOfYear=$n1;o2.firstDayOfWeek=In1;o2.weekdays=Kn1;o2.weekdaysMin=ei1;o2.weekdaysShort=Jn1;o2.weekdaysParse=ti1;o2.weekdaysRegex=ii1;o2.weekdaysShortRegex=si1;o2.weekdaysMinRegex=oi1;o2.isPM=fi1;o2.meridiem=di1;function d7(e,a,t,c){var r=E0(),n=i0().set(c,a);return r[t](n,e)}function tH(e,a,t){if(_0(e)&&(a=e,e=void 0),e=e||"",a!=null)return d7(e,a,t,"month");var c,r=[];for(c=0;c<12;c++)r[c]=d7(e,c,t,"month");return r}function bn(e,a,t,c){typeof e=="boolean"?(_0(a)&&(t=a,a=void 0),a=a||""):(a=e,t=a,e=!1,_0(a)&&(t=a,a=void 0),a=a||"");var r=E0(),n=e?r._week.dow:0,i,s=[];if(t!=null)return d7(a,(t+n)%7,c,"day");for(i=0;i<7;i++)s[i]=d7(a,(i+n)%7,c,"day");return s}function xo1(e,a){return tH(e,a,"months")}function zo1(e,a){return tH(e,a,"monthsShort")}function Co1(e,a,t){return bn(e,a,t,"weekdays")}function Mo1(e,a,t){return bn(e,a,t,"weekdaysShort")}function Ho1(e,a,t){return bn(e,a,t,"weekdaysMin")}n6("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=J1(e%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return e+t}});A1.lang=m4("moment.lang is deprecated. Use moment.locale instead.",n6);A1.langData=m4("moment.langData is deprecated. Use moment.localeData instead.",E0);var u0=Math.abs;function Vo1(){var e=this._data;return this._milliseconds=u0(this._milliseconds),this._days=u0(this._days),this._months=u0(this._months),e.milliseconds=u0(e.milliseconds),e.seconds=u0(e.seconds),e.minutes=u0(e.minutes),e.hours=u0(e.hours),e.months=u0(e.months),e.years=u0(e.years),this}function cH(e,a,t,c){var r=D4(a,t);return e._milliseconds+=c*r._milliseconds,e._days+=c*r._days,e._months+=c*r._months,e._bubble()}function yo1(e,a){return cH(this,e,a,1)}function bo1(e,a){return cH(this,e,a,-1)}function Fs(e){return e<0?Math.floor(e):Math.ceil(e)}function wo1(){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+=Fs(or(t)+a)*864e5,a=0,t=0),c.milliseconds=e%1e3,r=u4(e/1e3),c.seconds=r%60,n=u4(r/60),c.minutes=n%60,i=u4(n/60),c.hours=i%24,a+=u4(i/24),l=u4(rH(a)),t+=l,a-=Fs(or(l)),s=u4(t/12),t%=12,c.days=a,c.months=t,c.years=s,this}function rH(e){return e*4800/146097}function or(e){return e*146097/4800}function ko1(e){if(!this.isValid())return NaN;var a,t,c=this._milliseconds;if(e=p4(e),e==="month"||e==="quarter"||e==="year")switch(a=this._days+c/864e5,t=this._months+rH(a),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(a=this._days+Math.round(or(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 F0(e){return function(){return this.as(e)}}var nH=F0("ms"),Lo1=F0("s"),_o1=F0("m"),Ao1=F0("h"),So1=F0("d"),No1=F0("w"),To1=F0("M"),Eo1=F0("Q"),Fo1=F0("y"),Po1=nH;function Do1(){return D4(this)}function Bo1(e){return e=p4(e),this.isValid()?this[e+"s"]():NaN}function te(e){return function(){return this.isValid()?this._data[e]:NaN}}var Oo1=te("milliseconds"),Ro1=te("seconds"),Io1=te("minutes"),$o1=te("hours"),Uo1=te("days"),Wo1=te("months"),Yo1=te("years");function qo1(){return u4(this.days()/7)}var p0=Math.round,ye={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Go1(e,a,t,c,r){return r.relativeTime(a||1,!!t,e,c)}function jo1(e,a,t,c){var r=D4(e).abs(),n=p0(r.as("s")),i=p0(r.as("m")),s=p0(r.as("h")),l=p0(r.as("d")),f=p0(r.as("M")),u=p0(r.as("w")),h=p0(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,Go1.apply(null,d)}function Xo1(e){return e===void 0?p0:typeof e=="function"?(p0=e,!0):!1}function Zo1(e,a){return ye[e]===void 0?!1:a===void 0?ye[e]:(ye[e]=a,e==="s"&&(ye.ss=a-1),!0)}function Qo1(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=jo1(this,!t,c,r),t&&(n=r.pastFuture(+this,n)),r.postformat(n)}var Kt=Math.abs;function de(e){return(e>0)-(e<0)||+e}function bt(){if(!this.isValid())return this.localeData().invalidDate();var e=Kt(this._milliseconds)/1e3,a=Kt(this._days),t=Kt(this._months),c,r,n,i,s=this.asSeconds(),l,f,u,h;return s?(c=u4(e/60),r=u4(c/60),e%=60,c%=60,n=u4(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 r2=Vt.prototype;r2.isValid=Wi1;r2.abs=Vo1;r2.add=yo1;r2.subtract=bo1;r2.as=ko1;r2.asMilliseconds=nH;r2.asSeconds=Lo1;r2.asMinutes=_o1;r2.asHours=Ao1;r2.asDays=So1;r2.asWeeks=No1;r2.asMonths=To1;r2.asQuarters=Eo1;r2.asYears=Fo1;r2.valueOf=Po1;r2._bubble=wo1;r2.clone=Do1;r2.get=Bo1;r2.milliseconds=Oo1;r2.seconds=Ro1;r2.minutes=Io1;r2.hours=$o1;r2.days=Uo1;r2.weeks=qo1;r2.months=Wo1;r2.years=Yo1;r2.humanize=Qo1;r2.toISOString=bt;r2.toString=bt;r2.toJSON=bt;r2.locale=qM;r2.localeData=jM;r2.toIsoString=m4("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bt);r2.lang=GM;R1("X",0,0,"unix");R1("x",0,0,"valueOf");N1("x",zt);N1("X",xn1);p2("X",function(e,a,t){t._d=new Date(parseFloat(e)*1e3)});p2("x",function(e,a,t){t._d=new Date(J1(e))});//! moment.js
777
- A1.version="2.30.1";K91(b2);A1.fn=k1;A1.min=Ri1;A1.max=Ii1;A1.now=$i1;A1.utc=i0;A1.unix=vo1;A1.months=xo1;A1.isDate=P5;A1.locale=n6;A1.invalid=pt;A1.duration=D4;A1.isMoment=F4;A1.weekdays=Co1;A1.parseZone=go1;A1.localeData=E0;A1.isDuration=Wa;A1.monthsShort=zo1;A1.weekdaysMin=Ho1;A1.defineLocale=gn;A1.updateLocale=gi1;A1.locales=xi1;A1.weekdaysShort=Mo1;A1.normalizeUnits=p4;A1.relativeTimeRounding=Xo1;A1.relativeTimeThreshold=Zo1;A1.calendarFormat=ds1;A1.prototype=k1;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(e.hasOwnProperty(c)&&a[c]!==void 0){if(a[c]===null){e[c]=null;return}if(a[c]instanceof File){const r=a[c];e[c]=new File([r],r.name,{type:r.type,lastModified:r.lastModified});return}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()){e[c]=new Date(a[c]);return}if(typeof a[c]=="object"){if(t!=null&&t[c]){if(Array.isArray(a[c])){e[c]=a[c].map(r=>new t[c](r));return}e[c]=new t[c](a[c]);return}if(Array.isArray(a[c])){e[c]=a[c].map(r=>X8.cloneObjectProperties(r));return}e[c]=X8.cloneObjectProperties(a[c]);return}e[c]=a[c]}})}function Jo1(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 iH(){window.scrollTo({top:0,behavior:"smooth"})}const el1={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},al1={es:{text:"Eliminar"}},tl1={es:{text:"Editar"}},cl1={es:{logoutBtn:"Cerrar sesión"}},rl1={es:{noItemsText:"No hay resultados"}},nl1={es:{cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},il1={es:{selectFileLabel:"Seleccione un archivo",removeBtn:"Eliminar archivo",newFileError:"Formato inválido"}},sl1={es:{optionalLabel:"Opcional"}},ol1={es:{emptyOptionsText:"No hay opciones"}},ll1={es:{inputLabelUsername:"Usuario",inputLabelPassword:"Contraseña",inputValidationErrorUsernameRequired:"Debe ingresar un usuario",inputValidationErrorPasswordRequired:"Debe ingresar una contraseña",loginBtn:"Iniciar sesión"}},fl1={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:"}},ul1={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},hl1={es:{removeAllBtn:"Eliminar todo"}},dl1={alert:el1,pgaDeleteButton:al1,pgaEditButton:tl1,pgaLogoutButton:cl1,pgaDisplayNoItems:rl1,pgaDatePicker:nl1,pgaInputFile:il1,pgaInputGroup:sl1,pgaInputSelect:ol1,pgaLoginForm:ll1,pgaTable:fl1,pgaModal:ul1,notifications:hl1};function ml1(e,a){return A3.defineStore(e,()=>({language:o.ref(a)}),{persist:!0})}function sH(e,a,t){const c=ml1(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],p=l?`${l}__${f}`:f,v=(m==null?void 0:m[p])||"",g=u.count?u.count:0,z=v.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:m7,setLanguage:pl1,useI18n:i4}=sH("pga-i18n","es",dl1),vl1={class:"modal--header"},gl1=["textContent"],xl1={class:"modal--body"},zl1={key:0,class:"modal--footer"},Cl1=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=i4("pgaModal");return o.watch(t,n=>o7(!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",vl1,[o.createElementVNode("span",{class:"modal--title",textContent:o.toDisplayString(n.title)},null,8,gl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>t.value=!1)},[o.createVNode(C3,{icon:"xmark"})])]),o.createElementVNode("div",xl1,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),n.confirmButtons?(o.openBlock(),o.createElementBlock("div",zl1,[n.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(X3,{key:0,text:o.unref(r)("cancelBtn"),color:"danger",onClick:i[1]||(i[1]=s=>t.value=!1)},null,8,["text"])),o.createVNode(X3,{text:o.unref(r)("acceptBtn"),color:"success",isLoading:n.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const Ml1=Q1(Cl1,[["__scopeId","data-v-43977872"]]);const Hl1={},Vl1={class:"separator"};function yl1(e,a){return o.openBlock(),o.createElementBlock("div",Vl1)}const oH=Q1(Hl1,[["render",yl1],["__scopeId","data-v-0efe914f"]]),bl1={delayTime:300},wl1={class:"user-menu"},kl1={key:0,class:"user-menu--dropdown"},Ll1=["onClick"],_l1=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,bl1.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",wl1,[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",kl1,[(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:p=>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,Ll1))),128))])),[[h,n]]):o.createCommentVNode("",!0)])}}});const Al1=Q1(_l1,[["__scopeId","data-v-4d1e5d6c"]]),Sl1={class:"button-link",type:"button"},Nl1=o.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},preventUnderline:{type:Boolean}},setup(e){o.useCssVars(r=>({"59a441d3":r.size,"0c87aff2":t.value,"1de55f2c":c.value}));const a=e,t=o.computed(()=>`var(--pga-color-${a.color})`),c=o.computed(()=>`rgba(var(--pga-color-${a.color}-rgb), 0.8)`);return(r,n)=>(o.openBlock(),o.createElementBlock("button",Sl1,[r.text?(o.openBlock(),o.createBlock(T0,{key:0,class:o.normalizeClass(["button-link--text",{"button-link--text__with-underline":!r.preventUnderline}]),text:r.text,icon:r.icon},null,8,["class","text","icon"])):o.renderSlot(r.$slots,"default",{key:1},void 0,!0)]))}});const wn=Q1(Nl1,[["__scopeId","data-v-5ce19627"]]),Tl1={class:"alert"},El1={class:"alert--content"},Fl1=["textContent"],Pl1={class:"alert--buttons"},Dl1=o.defineComponent({__name:"Alert",props:{message:{type:[String,Function]},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const a=Br.directive,t=i4("alert");return o.onMounted(()=>o7(!1)),o.onUnmounted(()=>o7(!0)),(c,r)=>(o.openBlock(),o.createElementBlock("div",Tl1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",El1,[o.createVNode(C3,{class:"alert--icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert--title",textContent:o.toDisplayString(o.unref(t)("alertTitle"))},null,8,Fl1),o.createVNode(T0,{class:"alert--message",text:c.message},null,8,["text"]),o.createElementVNode("div",Pl1,[o.createVNode(X3,{class:"alert--button",text:o.unref(t)("cancelBtn"),buttonType:"filled",color:"grey",onClick:r[0]||(r[0]=n=>c.handleCloseFn())},null,8,["text"]),o.createVNode(X3,{class:"alert--button",text:o.unref(t)("acceptBtn"),buttonType:"filled",color:"danger",onClick:r[1]||(r[1]=n=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(a),()=>c.handleCloseFn()]])]))}});const Bl1=Q1(Dl1,[["__scopeId","data-v-d071fd0a"]]);function lH(e,a){const t=document.createElement("div");document.body.appendChild(t);const c=o.createApp({render(){return o.h(Bl1,{message:e,handleAcceptFn:n,handleCloseFn:r})}});c.mount(t);function r(){c.unmount(),document.body.removeChild(t)}function n(){r(),a()}}const lr=o.defineComponent({__name:"PgaDeleteButton",props:{withoutText:{type:Boolean},confirmDeleteText:{type:[String,Function]}},emits:["deleteConfirmed"],setup(e,{emit:a}){const t=e,c=a,r=i4("pgaDeleteButton");function n(){lH(t.confirmDeleteText,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(X3,{class:"delete-button",buttonType:"flat",icon:["fas","trash"],text:i.withoutText?void 0:o.unref(r)("text"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>n())},null,8,["text"]))}}),fr=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean}},setup(e){const a=i4("pgaEditButton");return(t,c)=>(o.openBlock(),o.createBlock(X3,{class:"edit-button",buttonType:"flat",color:"sky",icon:["far","pen-to-square"],text:t.withoutText?void 0:o.unref(a)("text"),size:"s",align:"left"},null,8,["text"]))}}),Ol1=["href","target"],Rl1=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(T0,{text:a.text,withUnderlineOnHover:""},null,8,["text"])],8,Ol1))}});const Il1=Q1(Rl1,[["__scopeId","data-v-b946d5e6"]]),$l1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:a}){const t=a,c=i4("pgaLogoutButton");return(r,n)=>(o.openBlock(),o.createBlock(X3,{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=k1;A1.min=Ri1;A1.max=Ii1;A1.now=$i1;A1.utc=i0;A1.unix=vo1;A1.months=xo1;A1.isDate=P5;A1.locale=n6;A1.invalid=pt;A1.duration=D4;A1.isMoment=F4;A1.weekdays=Co1;A1.parseZone=go1;A1.localeData=E0;A1.isDuration=Wa;A1.monthsShort=zo1;A1.weekdaysMin=Ho1;A1.defineLocale=gn;A1.updateLocale=gi1;A1.locales=xi1;A1.weekdaysShort=Mo1;A1.normalizeUnits=p4;A1.relativeTimeRounding=Xo1;A1.relativeTimeThreshold=Zo1;A1.calendarFormat=ds1;A1.prototype=k1;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(e.hasOwnProperty(c)&&a[c]!==void 0){if(a[c]===null){e[c]=null;return}if(a[c]instanceof File){const r=a[c];e[c]=new File([r],r.name,{type:r.type,lastModified:r.lastModified});return}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()){e[c]=new Date(a[c]);return}if(typeof a[c]=="object"){if(t!=null&&t[c]){if(Array.isArray(a[c])){e[c]=a[c].map(r=>new t[c](r));return}e[c]=new t[c](a[c]);return}if(Array.isArray(a[c])){e[c]=a[c].map(r=>X8.cloneObjectProperties(r));return}e[c]=X8.cloneObjectProperties(a[c]);return}e[c]=a[c]}})}function Jo1(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 iH(){window.scrollTo({top:0,behavior:"smooth"})}const el1={es:{alertTitle:"¿Estás seguro?",cancelBtn:"Cancelar",acceptBtn:"Eliminar"}},al1={es:{text:"Eliminar",confirmDeleteText:"¿Estás seguro?"}},tl1={es:{text:"Editar"}},cl1={es:{logoutBtn:"Cerrar sesión"}},rl1={es:{noItemsText:"No hay resultados"}},nl1={es:{cancelBtn:"Cancelar",selectBtn:"Seleccionar"}},il1={es:{selectFileLabel:"Seleccione un archivo",removeBtn:"Eliminar archivo",newFileError:"Formato inválido"}},sl1={es:{optionalLabel:"Opcional"}},ol1={es:{emptyOptionsText:"No hay opciones"}},ll1={es:{inputLabelUsername:"Usuario",inputLabelPassword:"Contraseña",inputValidationErrorUsernameRequired:"Debe ingresar un usuario",inputValidationErrorPasswordRequired:"Debe ingresar una contraseña",loginBtn:"Iniciar sesión"}},fl1={es:{columnTitleActions:"",selectAllBtn:"Seleccionar todo",withTheSelectedItemsText:"Con los seleccionados:"}},ul1={es:{cancelBtn:"Cancelar",acceptBtn:"Guardar"}},hl1={es:{removeAllBtn:"Eliminar todo"}},dl1={alert:el1,pgaDeleteButton:al1,pgaEditButton:tl1,pgaLogoutButton:cl1,pgaDisplayNoItems:rl1,pgaDatePicker:nl1,pgaInputFile:il1,pgaInputGroup:sl1,pgaInputSelect:ol1,pgaLoginForm:ll1,pgaTable:fl1,pgaModal:ul1,notifications:hl1};function ml1(e,a){return A3.defineStore(e,()=>({language:o.ref(a)}),{persist:!0})}function sH(e,a,t){const c=ml1(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],p=l?`${l}__${f}`:f,v=(m==null?void 0:m[p])||"",g=u.count?u.count:0,z=v.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:m7,setLanguage:pl1,useI18n:i4}=sH("pga-i18n","es",dl1),vl1={class:"modal--header"},gl1=["textContent"],xl1={class:"modal--body"},zl1={key:0,class:"modal--footer"},Cl1=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=i4("pgaModal");return o.watch(t,n=>o7(!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",vl1,[o.createElementVNode("span",{class:"modal--title",textContent:o.toDisplayString(n.title)},null,8,gl1),o.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=s=>t.value=!1)},[o.createVNode(C3,{icon:"xmark"})])]),o.createElementVNode("div",xl1,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),n.confirmButtons?(o.openBlock(),o.createElementBlock("div",zl1,[n.isLoading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(X3,{key:0,text:o.unref(r)("cancelBtn"),color:"danger",onClick:i[1]||(i[1]=s=>t.value=!1)},null,8,["text"])),o.createVNode(X3,{text:o.unref(r)("acceptBtn"),color:"success",isLoading:n.isLoading,onClick:i[2]||(i[2]=s=>c("accept"))},null,8,["text","isLoading"])])):o.createCommentVNode("",!0)],32)],32)):o.createCommentVNode("",!0)}});const Ml1=Q1(Cl1,[["__scopeId","data-v-43977872"]]);const Hl1={},Vl1={class:"separator"};function yl1(e,a){return o.openBlock(),o.createElementBlock("div",Vl1)}const oH=Q1(Hl1,[["render",yl1],["__scopeId","data-v-0efe914f"]]),bl1={delayTime:300},wl1={class:"user-menu"},kl1={key:0,class:"user-menu--dropdown"},Ll1=["onClick"],_l1=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,bl1.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",wl1,[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",kl1,[(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:p=>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,Ll1))),128))])),[[h,n]]):o.createCommentVNode("",!0)])}}});const Al1=Q1(_l1,[["__scopeId","data-v-4d1e5d6c"]]),Sl1={class:"button-link",type:"button"},Nl1=o.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},preventUnderline:{type:Boolean}},setup(e){o.useCssVars(r=>({"59a441d3":r.size,"0c87aff2":t.value,"1de55f2c":c.value}));const a=e,t=o.computed(()=>`var(--pga-color-${a.color})`),c=o.computed(()=>`rgba(var(--pga-color-${a.color}-rgb), 0.8)`);return(r,n)=>(o.openBlock(),o.createElementBlock("button",Sl1,[r.text?(o.openBlock(),o.createBlock(T0,{key:0,class:o.normalizeClass(["button-link--text",{"button-link--text__with-underline":!r.preventUnderline}]),text:r.text,icon:r.icon},null,8,["class","text","icon"])):o.renderSlot(r.$slots,"default",{key:1},void 0,!0)]))}});const wn=Q1(Nl1,[["__scopeId","data-v-5ce19627"]]),Tl1={class:"alert"},El1={class:"alert--content"},Fl1=["textContent"],Pl1={class:"alert--buttons"},Dl1=o.defineComponent({__name:"Alert",props:{message:{type:[String,Function]},handleAcceptFn:{type:Function},handleCloseFn:{type:Function}},setup(e){const a=Br.directive,t=i4("alert");return o.onMounted(()=>o7(!1)),o.onUnmounted(()=>o7(!0)),(c,r)=>(o.openBlock(),o.createElementBlock("div",Tl1,[o.withDirectives((o.openBlock(),o.createElementBlock("div",El1,[o.createVNode(C3,{class:"alert--icon",icon:"land-mine-on"}),o.createElementVNode("span",{class:"alert--title",textContent:o.toDisplayString(o.unref(t)("alertTitle"))},null,8,Fl1),o.createVNode(T0,{class:"alert--message",text:c.message},null,8,["text"]),o.createElementVNode("div",Pl1,[o.createVNode(X3,{class:"alert--button",text:o.unref(t)("cancelBtn"),buttonType:"filled",color:"grey",onClick:r[0]||(r[0]=n=>c.handleCloseFn())},null,8,["text"]),o.createVNode(X3,{class:"alert--button",text:o.unref(t)("acceptBtn"),buttonType:"filled",color:"danger",onClick:r[1]||(r[1]=n=>c.handleAcceptFn())},null,8,["text"])])])),[[o.unref(a),()=>c.handleCloseFn()]])]))}});const Bl1=Q1(Dl1,[["__scopeId","data-v-d071fd0a"]]);function lH(e,a){const t=document.createElement("div");document.body.appendChild(t);const c=o.createApp({render(){return o.h(Bl1,{message:e,handleAcceptFn:n,handleCloseFn:r})}});c.mount(t);function r(){c.unmount(),document.body.removeChild(t)}function n(){r(),a()}}const lr=o.defineComponent({__name:"PgaDeleteButton",props:{withoutText:{type:Boolean},confirmDeleteText:{type:[String,Function]}},emits:["deleteConfirmed"],setup(e,{emit:a}){const t=e,c=a,r=i4("pgaDeleteButton");function n(){const i=t.confirmDeleteText?t.confirmDeleteText:r("confirmDeleteText");lH(i,()=>c("deleteConfirmed"))}return(i,s)=>(o.openBlock(),o.createBlock(X3,{class:"delete-button",buttonType:"flat",icon:["fas","trash"],text:i.withoutText?void 0:o.unref(r)("text"),size:"s",align:"left",color:"danger",onClick:s[0]||(s[0]=l=>n())},null,8,["text"]))}}),fr=o.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean}},setup(e){const a=i4("pgaEditButton");return(t,c)=>(o.openBlock(),o.createBlock(X3,{class:"edit-button",buttonType:"flat",color:"sky",icon:["far","pen-to-square"],text:t.withoutText?void 0:o.unref(a)("text"),size:"s",align:"left"},null,8,["text"]))}}),Ol1=["href","target"],Rl1=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(T0,{text:a.text,withUnderlineOnHover:""},null,8,["text"])],8,Ol1))}});const Il1=Q1(Rl1,[["__scopeId","data-v-b946d5e6"]]),$l1=o.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:a}){const t=a,c=i4("pgaLogoutButton");return(r,n)=>(o.openBlock(),o.createBlock(X3,{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=k1;A1.min=Ri1;A1.max=Ii1;A1.now=$i1;A1.utc=i0;
828
828
  `),t=n2(a.replace(/<[^>]*>/g,""));return[t]}var Hf={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 Vb(e,a){var t=a||{},c=vi(e),r=[],n,i,s={name:""},l="",f=0,u,h,d={},m=[],p=t.dense?[]:{},v,g,z={value:""},M="",x=0,y=[],L=-1,_=-1,H={s:{r:1e6,c:1e7},e:{r:0,c:0}},E=0,k={},W=[],X={},T=0,K=0,i1=[],P=1,I=1,Z=[],m1={Names:[]},e1={},p1=["",""],c1=[],A={},w="",F=0,Y=!1,D=!1,O=0;for(C5.lastIndex=0,c=c.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");v=C5.exec(c);)switch(v[3]=v[3].replace(/_.*$/,"")){case"table":case"工作表":v[1]==="/"?(H.e.c>=H.s.c&&H.e.r>=H.s.r?p["!ref"]=c2(H):p["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=H.e.r&&(p["!fullref"]=p["!ref"],H.e.r=t.sheetRows-1,p["!ref"]=c2(H)),W.length&&(p["!merges"]=W),i1.length&&(p["!rows"]=i1),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),m.push(u.name),d[u.name]=p,D=!1):v[0].charAt(v[0].length-2)!=="/"&&(u=$1(v[0],!1),L=_=-1,H.s.r=H.s.c=1e7,H.e.r=H.e.c=0,p=t.dense?[]:{},W=[],i1=[],D=!0);break;case"table-row-group":v[1]==="/"?--E:++E;break;case"table-row":case"行":if(v[1]==="/"){L+=P,P=1;break}if(h=$1(v[0],!1),h.行号?L=h.行号-1:L==-1&&(L=0),P=+h["number-rows-repeated"]||1,P<10)for(O=0;O<P;++O)E>0&&(i1[L+O]={level:E});_=-1;break;case"covered-table-cell":v[1]!=="/"&&++_,t.sheetStubs&&(t.dense?(p[L]||(p[L]=[]),p[L][_]={t:"z"}):p[W1({r:L,c:_})]={t:"z"}),M="",y=[];break;case"table-cell":case"数据":if(v[0].charAt(v[0].length-2)==="/")++_,z=$1(v[0],!1),I=parseInt(z["number-columns-repeated"]||"1",10),g={t:"z",v:null},z.formula&&t.cellFormula!=!1&&(g.f=vf(n2(z.formula))),(z.数据类型||z["value-type"])=="string"&&(g.t="s",g.v=n2(z["string-value"]||""),t.dense?(p[L]||(p[L]=[]),p[L][_]=g):p[W1({r:L,c:_})]=g),_+=I-1;else if(v[1]!=="/"){++_,M="",x=0,y=[],I=1;var u1=P?L+P-1:L;if(_>H.e.c&&(H.e.c=_),_<H.s.c&&(H.s.c=_),L<H.s.r&&(H.s.r=L),u1>H.e.r&&(H.e.r=u1),z=$1(v[0],!1),c1=[],A={},g={t:z.数据类型||z["value-type"],v:null},t.cellFormula)if(z.formula&&(z.formula=n2(z.formula)),z["number-matrix-columns-spanned"]&&z["number-matrix-rows-spanned"]&&(T=parseInt(z["number-matrix-rows-spanned"],10)||0,K=parseInt(z["number-matrix-columns-spanned"],10)||0,X={s:{r:L,c:_},e:{r:L+T-1,c:_+K-1}},g.F=c2(X),Z.push([X,g.F])),z.formula)g.f=vf(z.formula);else for(O=0;O<Z.length;++O)L>=Z[O][0].s.r&&L<=Z[O][0].e.r&&_>=Z[O][0].s.c&&_<=Z[O][0].e.c&&(g.F=Z[O][1]);switch((z["number-columns-spanned"]||z["number-rows-spanned"])&&(T=parseInt(z["number-rows-spanned"],10)||0,K=parseInt(z["number-columns-spanned"],10)||0,X={s:{r:L,c:_},e:{r:L+T-1,c:_+K-1}},W.push(X)),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=I3(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=Yz1(z["time-value"])/86400,t.cellDates&&(g.t="d",g.v=Pt(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=n2(z["string-value"]),y=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(Y=!1,g.t==="s"&&(g.v=M||"",y.length&&(g.R=y),Y=x==0),e1.Target&&(g.l=e1),c1.length>0&&(g.c=c1,c1=[]),M&&t.cellText!==!1&&(g.w=M),Y&&(g.t="z",delete g.v),(!Y||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=L))for(var r1=0;r1<P;++r1){if(I=parseInt(z["number-columns-repeated"]||"1",10),t.dense)for(p[L+r1]||(p[L+r1]=[]),p[L+r1][_]=r1==0?g:x3(g);--I>0;)p[L+r1][_+I]=x3(g);else for(p[W1({r:L+r1,c:_})]=g;--I>0;)p[W1({r:L+r1,c:_+I})]=x3(g);H.e.c<=_&&(H.e.c=_)}I=parseInt(z["number-columns-repeated"]||"1",10),_+=I-1,I=0,g={},M="",y=[]}e1={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(v[1]==="/"){if((n=r.pop())[0]!==v[3])throw"Bad state: "+n}else v[0].charAt(v[0].length-2)!=="/"&&r.push([v[3],!0]);break;case"annotation":if(v[1]==="/"){if((n=r.pop())[0]!==v[3])throw"Bad state: "+n;A.t=M,y.length&&(A.R=y),A.a=w,c1.push(A)}else v[0].charAt(v[0].length-2)!=="/"&&r.push([v[3],!1]);w="",F=0,M="",x=0,y=[];break;case"creator":v[1]==="/"?w=c.slice(F,v.index):F=v.index+v[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(v[1]==="/"){if((n=r.pop())[0]!==v[3])throw"Bad state: "+n}else v[0].charAt(v[0].length-2)!=="/"&&r.push([v[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(v[1]==="/"){if(k[s.name]=l,(n=r.pop())[0]!==v[3])throw"Bad state: "+n}else v[0].charAt(v[0].length-2)!=="/"&&(l="",s=$1(v[0],!1),r.push([v[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(v[0],!1),l+=Hf[v[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(v[0],!1),l+=Hf[v[3]][i.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(v[0].slice(-2)==="/>")break;if(v[1]==="/")switch(r[r.length-1][0]){case"number-style":case"date-style":case"time-style":l+=c.slice(f,v.index);break}else f=v.index+v[0].length;break;case"named-range":i=$1(v[0],!1),p1=Nc(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(v[1]==="/"&&(!z||!z["string-value"])){var z1=Sk1(c.slice(x,v.index));M=(M.length>0?M+`
829
829
  `:"")+z1[0]}else $1(v[0],!1),x=v.index+v[0].length;break;case"s":break;case"database-range":if(v[1]==="/")break;try{p1=Nc($1(v[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(v[1]!=="/"){if(e1=$1(v[0],!1),!e1.href)break;e1.Target=n2(e1.href),delete e1.href,e1.Target.charAt(0)=="#"&&e1.Target.indexOf(".")>-1?(p1=Nc(e1.Target.slice(1)),e1.Target="#"+p1[0]+"!"+p1[1]):e1.Target.match(/^\.\.[\\\/]/)&&(e1.Target=e1.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(v[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(v)}}var V={Sheets:d,SheetNames:m,Workbook:m1};return t.bookSheets&&delete V.Sheets,V}function Vf(e,a){a=a||{},f4(e,"META-INF/manifest.xml")&&GC1(J2(e,"META-INF/manifest.xml"),a);var t=J3(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var c=Vb(C2(t),a);return f4(e,"meta.xml")&&(c.Props=Py(J2(e,"meta.xml"))),c}function yf(e,a){return Vb(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function _i(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Er(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):C2(se(e))}function Fr(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 bf(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Nk1(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 y5(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 k3(e){for(var a=[],t=[0];t[0]<e.length;){var c=t[0],r=y5(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=y5(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 Ai(e,a){return(e==null?void 0:e.map(function(t){return a(t.data)}))||[]}function Tk1(e){for(var a,t=[],c=[0];c[0]<e.length;){var r=y5(e,c),n=k3(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=k3(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 Ek1(e,a){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],c=y5(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=[Fr(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=Fr(r);if(u.length!=c)throw new Error("Unexpected length: ".concat(u.length," != ").concat(c));return u}function Fk1(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(Ek1(c,e.slice(t,t+r))),t+=r}if(t!==e.length)throw new Error("data is not a valid framed stream!");return Fr(a)}function Pk1(e,a,t,c){var r=_i(e),n=r.getUint32(4,!0),i=(c>1?12:8)+bf(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+=bf(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 Dk1(e,a,t){var c=_i(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=Nk1(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 Bk1(e,a,t){switch(e[0]){case 0:case 1:case 2:case 3:return Pk1(e,a,t,e[0]);case 5:return Dk1(e,a,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function u6(e){var a=k3(e);return y5(a[1][0].data)}function wf(e,a){var t=k3(a.data),c=o3(t[1][0].data),r=t[3],n=[];return(r||[]).forEach(function(i){var s=k3(i.data),l=o3(s[1][0].data)>>>0;switch(c){case 1:n[l]=Er(s[3][0].data);break;case 8:{var f=e[u6(s[9][0].data)][0],u=k3(f.data),h=e[u6(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=k3(h.data);n[l]=m[3].map(function(p){return Er(p.data)}).join("")}break}}),n}function Ok1(e,a){var t,c,r,n,i,s,l,f,u,h,d,m,p,v,g=k3(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,L;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,L=(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,L=(v=(p=g[3])==null?void 0:p[0])==null?void 0:v.data;else throw"NUMBERS Tile missing ".concat(a," cell storage");for(var _=x?4:1,H=_i(y),E=[],k=0;k<y.length/2;++k){var W=H.getUint16(k*2,!0);W<65535&&E.push([k,W])}if(E.length!=M)throw"Expected ".concat(M," cells, found ").concat(E.length);var X=[];for(k=0;k<E.length-1;++k)X[E[k][0]]=L.subarray(E[k][1]*_,E[k+1][1]*_);return E.length>=1&&(X[E[E.length-1][0]]=L.subarray(E[E.length-1][1]*_)),{R:z,cells:X}}function Rk1(e,a){var t,c=k3(a.data),r=(t=c==null?void 0:c[7])!=null&&t[0]?o3(c[7][0].data)>>>0>0?1:0:-1,n=Ai(c[5],function(i){return Ok1(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 Ik1(e,a,t){var c,r=k3(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"]=c2(n);var i=k3(r[4][0].data),s=wf(e,e[u6(i[4][0].data)][0]),l=(c=i[17])!=null&&c[0]?wf(e,e[u6(i[17][0].data)][0]):[],f=k3(i[3][0].data),u=0;f[1].forEach(function(h){var d=k3(h.data),m=e[u6(d[2][0].data)][0],p=o3(m.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var v=Rk1(e,m);v.data.forEach(function(g,z){g.forEach(function(M,x){var y=W1({r:u+z,c:x}),L=Bk1(M,s,l);L&&(t[y]=L)})}),u+=v.nrows})}function $k1(e,a){var t=k3(a.data),c={"!ref":"A1"},r=e[u6(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 Ik1(e,r[0],c),c}function Uk1(e,a){var t,c=k3(a.data),r={name:(t=c[1])!=null&&t[0]?Er(c[1][0].data):"",sheets:[]},n=Ai(c[2],u6);return n.forEach(function(i){e[i].forEach(function(s){var l=o3(s.meta[1][0].data);l==6e3&&r.sheets.push($k1(e,s))})}),r}function Wk1(e,a){var t=Ti(),c=k3(a.data),r=Ai(c[1],u6);if(r.forEach(function(n){e[n].forEach(function(i){var s=o3(i.meta[1][0].data);if(s==2){var l=Uk1(e,i);l.sheets.forEach(function(f,u){Ei(t,f,u==0?l.name:l.name+"_"+u,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function Ec(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=Fk1(l.content)}catch(h){return console.log("?? "+l.content.length+" "+(h.message||h))}var u;try{u=Tk1(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 Wk1(n,s)}function Yk1(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 Si(e){Yk1([["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 qk1(e){return ke.WS.indexOf(e)>-1?"sheet":e==ke.CS?"chart":e==ke.DS?"dialog":e==ke.MS?"macro":e&&e.length?e:"sheet"}function Gk1(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,qk1(e["!id"][c.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function jk1(e,a,t,c,r,n,i,s,l,f,u,h){try{n[c]=U8(J3(e,t,!0),a);var d=J2(e,a),m;switch(s){case"sheet":m=ek1(d,a,r,l,n[c],f,u,h);break;case"chart":if(m=ak1(d,a,r,l,n[c],f,u,h),!m||!m["!drawel"])break;var p=V8(m["!drawel"].Target,a),v=_r(p),g=JV1(J3(e,p,!0),U8(J3(e,v,!0),p)),z=V8(g,p),M=_r(z);m=Dw1(J3(e,z,!0),z,l,U8(J3(e,M,!0),z),f,m);break;case"macro":m=tk1(d,a,r,l,n[c],f,u,h);break;case"dialog":m=ck1(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]&&n0(n[c]).forEach(function(y){var L="";if(n[c][y].Type==ke.CMNT){L=V8(n[c][y].Target,a);var _=sk1(J2(e,L,!0),L,l);if(!_||!_.length)return;uf(m,_,!1)}n[c][y].Type==ke.TCMNT&&(L=V8(n[c][y].Target,a),x=x.concat(ay1(J2(e,L,!0),l)))}),x&&x.length&&uf(m,x,!0,l.people||[])}catch(y){if(l.WTF)throw y}}function o4(e){return e.charAt(0)=="/"?e.slice(1):e}function Xk1(e,a){if(iy(),a=a||{},Si(a),f4(e,"META-INF/manifest.xml")||f4(e,"objectdata.xml"))return Vf(e,a);if(f4(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Ec<"u"){if(e.FileIndex)return Ec(e);var t=t2.utils.cfb_new();return Dl(e).forEach(function(i1){Zz1(t,i1,hy(e,i1))}),Ec(t)}throw new Error("Unsupported NUMBERS file")}if(!f4(e,"[Content_Types].xml"))throw f4(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):f4(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c=Dl(e),r=YC1(J3(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(q8=[],r.sst)try{q8=ik1(J2(e,o4(r.sst)),r.sst,a)}catch(i1){if(a.WTF)throw i1}a.cellStyles&&r.themes.length&&(l=nk1(J3(e,r.themes[0].replace(/^\//,""),!0)||"",r.themes[0],a)),r.style&&(f=rk1(J2(e,o4(r.style)),r.style,l,a))}r.links.map(function(i1){try{var P=U8(J3(e,_r(o4(i1))),i1);return lk1(J2(e,o4(i1)),P,i1,a)}catch{}});var u=Jw1(J2(e,o4(r.workbooks[0])),r.workbooks[0],a),h={},d="";r.coreprops.length&&(d=J2(e,o4(r.coreprops[0]),!0),d&&(h=Py(d)),r.extprops.length!==0&&(d=J2(e,o4(r.extprops[0]),!0),d&&ZC1(d,h,a)));var m={};(!a.bookSheets||a.bookProps)&&r.custprops.length!==0&&(d=J3(e,o4(r.custprops[0]),!0),d&&(m=KC1(d,a)));var p={};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&&(p.Props=h,p.Custprops=m),a.bookSheets&&typeof i<"u"&&(p.SheetNames=i),a.bookSheets?p.SheetNames:a.bookProps))return p;i={};var v={};a.bookDeps&&r.calcchain&&(v=ok1(J2(e,o4(r.calcchain)),r.calcchain));var g=0,z={},M,x;{var y=u.Sheets;h.Worksheets=y.length,h.SheetNames=[];for(var L=0;L!=y.length;++L)h.SheetNames[L]=y[L].name}var _=n?"bin":"xml",H=r.workbooks[0].lastIndexOf("/"),E=(r.workbooks[0].slice(0,H+1)+"_rels/"+r.workbooks[0].slice(H+1)+".rels").replace(/^\//,"");f4(e,E)||(E="xl/_rels/workbook."+_+".rels");var k=U8(J3(e,E,!0),E.replace(/_rels.*/,"s5s"));(r.metadata||[]).length>=1&&(a.xlmeta=fk1(J2(e,o4(r.metadata[0])),r.metadata[0],a)),(r.people||[]).length>=1&&(a.people=ty1(J2(e,o4(r.people[0])),a)),k&&(k=Gk1(k,u.Sheets));var W=J2(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=h.Worksheets;++g){var X="sheet";if(k&&k[g]?(M="xl/"+k[g][1].replace(/[\/]?xl\//,""),f4(e,M)||(M=k[g][1]),f4(e,M)||(M=E.replace(/_rels\/.*$/,"")+k[g][1]),X=k[g][2]):(M="xl/worksheets/sheet"+(g+1-W)+"."+_,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,K=0;K!=a.sheets.length;++K)typeof a.sheets[K]=="number"&&a.sheets[K]==g&&(T=1),typeof a.sheets[K]=="string"&&a.sheets[K].toLowerCase()==h.SheetNames[g].toLowerCase()&&(T=1);if(!T)continue e}}jk1(e,M,x,h.SheetNames[g],g,z,i,X,a,u,l,f)}return p={Directory:r,Workbook:u,Props:h,Custprops:m,Deps:v,Sheets:i,SheetNames:h.SheetNames,Strings:q8,Styles:f,Themes:l,SSF:x3(Y1)},a&&a.bookFiles&&(e.files?(p.keys=c,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(i1,P){i1=i1.replace(/^Root Entry[\/]/,""),p.keys.push(i1),p.files[i1]=e.FileIndex[P]}))),a&&a.bookVBA&&(r.vba.length>0?p.vbaraw=J2(e,o4(r.vba[0]),!0):r.defaults&&r.defaults.bin===iy1&&(p.vbaraw=J2(e,"xl/vbaProject.bin",!0))),p}function Zk1(e,a){var t=a||{},c="Workbook",r=t2.find(e,c);try{if(c="/!DataSpaces/Version",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);if($H1(r.content),c="/!DataSpaces/DataSpaceMap",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var n=WH1(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=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var i=YH1(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=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);GH1(r.content)}catch{}if(c="/EncryptionInfo",r=t2.find(e,c),!r||!r.content)throw new Error("ECMA-376 Encrypted file missing "+c);var s=jH1(r.content);if(c="/EncryptedPackage",r=t2.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 Ni(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=c4(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 Qk1(e,a){return t2.find(e,"EncryptedPackage")?Zk1(e,a):Cb(e,a)}function Kk1(e,a){var t,c=e,r=a||{};return r.type||(r.type=e2&&Buffer.isBuffer(e)?"buffer":"base64"),t=dy(c,r),Xk1(t,r)}function yb(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 Nr(e.slice(t),a);default:break e}return M5.to_workbook(e,a)}function Jk1(e,a){var t="",c=Ni(e,a);switch(a.type){case"base64":t=c4(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",yb(t,a)}function eL1(e,a){var t=e;return a.type=="base64"&&(t=c4(t)),t=Y0.utils.decode(1200,t.slice(2),"str"),a.type="binary",yb(t,a)}function aL1(e){return e.match(/[^\x00-\x7F]/)?y8(e):e}function Fc(e,a,t,c){return c?(t.type="string",M5.to_workbook(e,t)):M5.to_workbook(a,t)}function Pr(e,a){jV();var t=a||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return Pr(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=e2&&Buffer.isBuffer(e)?"buffer":"base64"),t.type=="file"&&(t.type=e2?"buffer":"binary",c=Uz1(e),typeof Uint8Array<"u"&&!e2&&(t.type="array")),t.type=="string"&&(n=!0,t.type="binary",t.codepage=65001,c=aL1(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",Pr(fi(c),t)}switch((r=Ni(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 Qk1(t2.read(c,t),t);break;case 9:if(r[1]<=8)return Cb(c,t);break;case 60:return Nr(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 _H1(c,t);break;case 84:if(r[1]===65&&r[2]===66&&r[3]===76)return kH1.to_workbook(c,t);break;case 80:return r[1]===75&&r[2]<9&&r[3]<9?Kk1(c,t):Fc(e,c,t,n);case 239:return r[3]===60?Nr(c,t):Fc(e,c,t,n);case 255:if(r[1]===254)return eL1(c,t);if(r[1]===0&&r[2]===2&&r[3]===0)return Y8.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 Y8.to_workbook(c,t);break;case 3:case 131:case 139:case 140:return ff.to_workbook(c,t);case 123:if(r[1]===92&&r[2]===114&&r[3]===116)return iV1.to_workbook(c,t);break;case 10:case 13:case 32:return Jk1(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 bH1.indexOf(r[0])>-1&&r[2]<=12&&r[3]<=31?ff.to_workbook(c,t):Fc(e,c,t,n)}function tL1(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 p=i?e[t][m]:e[c[m]+l];if(p===void 0||p.t===void 0){if(f===void 0)continue;n[m]!=null&&(d[n[m]]=f);continue}var v=p.v;switch(p.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(n[m]!=null){if(v==null)if(p.t=="e"&&v===null)d[n[m]]=null;else if(f!==void 0)d[n[m]]=f;else if(u&&v===null)d[n[m]]=null;else continue;else d[n[m]]=u&&(p.t!=="n"||p.t==="n"&&s.rawNumbers!==!1)?v:S0(p,v,s);v!=null&&(h=!1)}}return{row:d,isempty:h}}function Dr(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=[],p=0,v=0,g=Array.isArray(e),z=l.s.r,M=0,x={};g&&!e[z]&&(e[z]=[]);var y=f.skipHidden&&e["!cols"]||[],L=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=S0(t,null,f),v=x[i]||0,!v)x[i]=1;else{do s=i+"_"+v++;while(x[s]);x[i]=v,x[s]=1}n[M]=s}for(z=l.s.r+r;z<=l.e.r;++z)if(!(L[z]||{}).hidden){var _=tL1(e,l,z,d,c,n,g,f);(_.isempty===!1||(c===1?f.blankrows!==!1:f.blankrows))&&(m[p++]=_.row)}return m.length=p,m}var kf=/"/g;function cL1(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:S0(m,null,s));for(var p=0,v=0;p!==u.length;++p)if((v=u.charCodeAt(p))===r||v===n||v===34||s.forceQuotes){u='"'+u.replace(kf,'""')+'"';break}u=="ID"&&(u='"ID"')}else m.f!=null&&!m.F?(l=!1,u="="+m.f,u.indexOf(",")>=0&&(u='"'+u.replace(kf,'""')+'"')):u="";f.push(u)}return s.blankrows===!1&&l?null:f.join(i)}function bb(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"]||[],p=r.s.c;p<=r.e.c;++p)(d[p]||{}).hidden||(h[p]=s3(p));for(var v=0,g=r.s.r;g<=r.e.r;++g)(m[g]||{}).hidden||(u=cL1(e,r,g,h,i,l,n,c),u!=null&&(c.strip&&(u=u.replace(f,"")),(u||c.blankrows!==!1)&&t.push((v++?s:"")+u)));return delete c.dense,t.join("")}function rL1(e,a){a||(a={}),a.FS=" ",a.RS=`
831
- `;var t=bb(e,a);return t}function nL1(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 wb(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"?D3(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(v,g){n0(v).forEach(function(z){(m=d.indexOf(z))==-1&&(d[m=d.length]=z);var M=v[z],x="z",y="",L=W1({c:s+m,r:i+g+r});f=b5(n,L),M&&typeof M=="object"&&!(M instanceof Date)?n[L]=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=I3(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[L]=f={t:x,v:M},y&&(f.z=y))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var p=z3(i);if(r)for(m=0;m<d.length;++m)n[s3(m+s)+p]={t:"s",v:d[m]};return n["!ref"]=c2(u),n}function iL1(e,a){return wb(null,e,a)}function b5(e,a,t){if(typeof a=="string"){if(Array.isArray(e)){var c=D3(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"?b5(e,W1(a)):b5(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 Ti(){return{SheetNames:[],Sheets:{}}}function Ei(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(Yw1(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 oL1(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 lL1(e,a){return e.z=a,e}function kb(e,a,t){return a?(e.l={Target:a},t&&(e.l.Tooltip=t)):delete e.l,e}function fL1(e,a,t){return kb(e,"#"+a,t)}function uL1(e,a,t){e.c||(e.c=[]),e.c.push({t:a,a:t||"SheetJS"})}function hL1(e,a,t,c){for(var r=typeof a!="string"?a:$2(a),n=typeof a=="string"?a:c2(a),i=r.s.r;i<=r.e.r;++i)for(var s=r.s.c;s<=r.e.c;++s){var l=b5(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:c2,decode_col:zi,decode_row:xi,split_cell:yC1,decode_cell:D3,decode_range:t8,format_cell:S0,sheet_add_aoa:Sy,sheet_add_json:wb,sheet_add_dom:Mb,aoa_to_sheet:c8,json_to_sheet:iL1,table_to_sheet:Hb,table_to_book:_k1,sheet_to_csv:bb,sheet_to_txt:rL1,sheet_to_json:Dr,sheet_to_html:Lk1,sheet_to_formulae:nL1,sheet_to_row_object_array:Dr,sheet_get_cell:b5,book_new:Ti,book_append_sheet:Ei,book_set_sheet_visibility:oL1,cell_set_number_format:lL1,cell_set_hyperlink:kb,cell_set_internal_link:fL1,cell_add_comment:uL1,sheet_set_array_formula:hL1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const mL1=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(){var f;(f=i.value)==null||f.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),p=Pr(m,{type:"array"}),v=p.SheetNames[0],g=p.Sheets[v],z=r.excelConfig.columns,M=Math.max(...Object.values(z)),x=Array(M).map((L,_)=>`empty${_+1}`);Object.entries(z).forEach(([L,_])=>x[_-1]=L);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(qV,{ref_key:"inputFileRef",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"]))}}),pL1={class:"input-container"},vL1=["placeholder","disabled"],gL1={key:2,class:"input-dropdown"},xL1=["onMousedown"],zL1=["textContent"],CL1=o.defineComponent({__name:"PgaInputSelect",props:o.mergeModels({options:{},descriptionField:{},emptyOptionsText:{type:[String,Function]},placeholder:{type:[String,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(T=>({"2d7292e4":o.unref(i).input.height,"40b278ec":o.unref(i).input.padding,"364cace0":o.unref(i).input.borderColor,"61a98ff6":o.unref(i).input.borderRadius,"714ff54e":o.unref(i).input.backgroundColor,"54c915c8":o.unref(i).input.colorFocus,"716565ea":o.unref(i).input.backgroundColorDisabled,"9a4ae7ee":o.unref(i).input.paddingWithIcon,"106bfa57":o.unref(i).input.placeholderColor}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=i4("pgaInputSelect"),{formOptions:i}=A3.storeToRefs(O3()),s=o.ref(),l=o.ref(""),f=o.ref(!1),u=o.ref(!1),h=o.computed(()=>c.options.find(T=>T.id===t.value)),d=o.computed(()=>!!c.options.length),m=o.computed(()=>u.value?c.options:c.options.filter(T=>T[c.descriptionField].toLowerCase().includes(l.value.toLowerCase()))),p=o.computed(()=>c.disabled||!d.value),v=o.computed(()=>{if(d.value){if(c.placeholder)return typeof c.placeholder=="string"?c.placeholder:c.placeholder()}else return c.emptyOptionsText?typeof c.emptyOptionsText=="string"?c.emptyOptionsText:c.emptyOptionsText():n("emptyOptionsText")}),g=o.computed(()=>p.value?!1:!!(l.value||t.value)),z=o.computed(()=>p.value?!1:!g.value&&!f.value),M=o.computed(()=>!!(g.value||z.value));o.watch(t,T=>{r("change",T),k(),W()});function x(){u.value=!0,f.value=!0}function y(){k(),f.value=!1}function L(){u.value=!1}function _(T){t.value=T.id}function H(){l.value="",t.value=null}function E(){var T;(T=s.value)==null||T.focus()}function k(){const T=h.value;l.value=T?T[c.descriptionField]:""}function W(){d.value||(t.value=null)}function X(){k(),W()}return X(),(T,K)=>(o.openBlock(),o.createBlock(Je,{label:T.label,withOptionalLabel:T.withOptionalLabel,withLabelSpace:T.withLabelSpace,errors:T.errors,grow:T.grow},{default:o.withCtx(()=>[o.createElementVNode("div",pL1,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":K[0]||(K[0]=i1=>l.value=i1),ref_key:"inputRef",ref:s,class:o.normalizeClass(["input",{input__disabled:p.value,"input__with-btn":M.value}]),type:"text",placeholder:v.value,disabled:p.value,onFocus:K[1]||(K[1]=i1=>x()),onBlur:K[2]||(K[2]=i1=>y()),onInput:K[3]||(K[3]=i1=>L())},null,42,vL1),[[o.vModelText,l.value]]),g.value?(o.openBlock(),o.createBlock(k7,{key:0,icon:"xmark",onMousedown:K[4]||(K[4]=o.withModifiers(i1=>H(),["prevent"]))})):o.createCommentVNode("",!0),z.value?(o.openBlock(),o.createBlock(k7,{key:1,icon:"chevron-down",onMousedown:K[5]||(K[5]=o.withModifiers(i1=>E(),["prevent"]))})):o.createCommentVNode("",!0),f.value&&m.value.length?(o.openBlock(),o.createElementBlock("ul",gL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,i1=>(o.openBlock(),o.createElementBlock("li",{key:i1.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":i1.id===t.value}]),onMousedown:P=>_(i1)},[o.createElementVNode("span",{textContent:o.toDisplayString(i1[T.descriptionField])},null,8,zL1)],42,xL1))),128))])):o.createCommentVNode("",!0)])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const ML1=Q1(CL1,[["__scopeId","data-v-820d789c"]]),HL1={class:"select"},VL1={key:0,class:"input--text-container"},yL1={key:1,class:"input--text-container"},bL1={key:3,class:"input--text-container"},wL1={key:0,class:"select--dropdown"},kL1=["onClick"],LL1=["textContent"],_L1=o.defineComponent({__name:"PgaSelect",props:o.mergeModels({options:{},emptyOptionsText:{type:[String,Function]},reduceNameFunction:{type:Function},placeholder:{type:[String,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=>({"15aa2add":o.unref(i).input.height,"3a8f0bc5":u.value,"774d8ea1":o.unref(i).input.borderColor,e99815d8:o.unref(i).input.borderRadius,"2e38e9df":o.unref(i).input.backgroundColor,"0a458d0a":o.unref(i).input.backgroundColorDisabled,"7f7e29eb":o.unref(i).input.colorFocus,"3fb1d91b":o.unref(i).input.padding,"1ebcd034":o.unref(i).input.placeholderColor,"6ec872a0":l.value}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=Br.directive,{formOptions:i}=A3.storeToRefs(O3()),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 p(){!c.disabled&&d.value&&(h.value=!h.value)}function v(){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 L=o.resolveComponent("PgaDisplayText"),_=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",HL1,[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]=E=>p())},[!d.value&&(x.placeholder||x.emptyOptionsText)?(o.openBlock(),o.createElementBlock("div",VL1,[x.placeholder?(o.openBlock(),o.createBlock(L,{key:0,class:"input--placeholder",text:x.placeholder},null,8,["text"])):(o.openBlock(),o.createBlock(L,{key:1,class:"input--empty-options-text",text:x.emptyOptionsText},null,8,["text"]))])):m.value&&x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",yL1,[o.createVNode(L,{class:"input--name-fn",text:x.reduceNameFunction(m.value)},null,8,["text"])])):m.value?o.renderSlot(x.$slots,"dropdownOption",{key:2,option:m.value},void 0,!0):x.placeholder?(o.openBlock(),o.createElementBlock("div",bL1,[o.createVNode(L,{class:"input--placeholder",text:x.placeholder},null,8,["text"])])):o.createCommentVNode("",!0),x.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:4,ref_key:"inputIconsRef",ref:f,class:"input--icons"},[m.value?(o.openBlock(),o.createBlock(_,{key:0,class:"input--icon",icon:"xmark",clickable:"",onClick:y[0]||(y[0]=o.withModifiers(E=>t.value=null,["stop"]))})):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(_,{key:1,class:"input--icon",icon:"chevron-down",clickable:""})):o.createCommentVNode("",!0)],512))],2),h.value?(o.openBlock(),o.createElementBlock("ul",wL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.options,E=>(o.openBlock(),o.createElementBlock("li",{key:E.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":E.id===t.value}]),onClick:k=>g(E)},[x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dropdown--option--name-fn",textContent:o.toDisplayString(x.reduceNameFunction(E))},null,8,LL1)):o.renderSlot(x.$slots,"dropdownOption",{key:1,option:E},void 0,!0)],10,kL1))),128))])):o.createCommentVNode("",!0)])),[[o.unref(n),v]])]),_:3},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const AL1=Q1(_L1,[["__scopeId","data-v-cef55095"]]),SL1=e=>(o.pushScopeId("data-v-4cff5de2"),e=e(),o.popScopeId(),e),NL1={class:"switch-container"},TL1=["checked","disabled"],EL1=SL1(()=>o.createElementVNode("div",{class:"switch--slider"},null,-1)),FL1=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}=A3.storeToRefs(O3());function c(){a.value=!a.value}return(r,n)=>(o.openBlock(),o.createBlock(Je,{label:r.label,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,errors:r.errors,grow:r.grow},{default:o.withCtx(()=>[o.createElementVNode("div",NL1,[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,TL1),EL1],2)])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const PL1=Q1(FL1,[["__scopeId","data-v-4cff5de2"]]),DL1={class:"switch-options"},BL1=["onClick"],OL1=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}=A3.storeToRefs(O3());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",DL1,[(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(T0,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,BL1))),128))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const RL1=Q1(OL1,[["__scopeId","data-v-14b11a15"]]),IL1="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MEY3NjIxREQxMkEwMTFFNjg4QjdFMzIwQjE1Q0RCNTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MEY3NjIxREUxMkEwMTFFNjg4QjdFMzIwQjE1Q0RCNTMiPiA8eG1wTU06RGVyaXZlZEZyb20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wBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",$L1=["src"],UL1=["src"],WL1=o.defineComponent({__name:"PgaImage",props:o.mergeModels({source:{default:"dynamic"},image:{},defaultImage:{},uploadFn:{},deleteFn:{},size:{},height:{},width:{},borderRadius:{},rounded:{type:Boolean}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=o.useModel(e,"modelValue"),t=e,c=o.ref(!1),r=o.computed(()=>a.value?a.value:t.image),n=o.computed(()=>`${O3().imageOptions[`${t.source}Url`]}/${r.value}`),i=o.computed(()=>!!(!r.value||c.value)),s=o.computed(()=>t.defaultImage?`${O3().imageOptions.staticUrl}/${t.defaultImage}`:IL1),l=o.computed(()=>{const h=[];return t.size?h.push({height:t.size,width:t.size}):(t.height&&h.push({height:t.height,width:"auto"}),t.width&&h.push({height:"auto",width:t.width}),t.height&&t.width&&h.push({height:t.height,width:t.width})),h}),f=o.computed(()=>{const h=[];return t.rounded?h.push({borderRadius:t.borderRadius}):t.borderRadius&&h.push({borderRadius:t.borderRadius}),h});o.watch(n,()=>c.value=!1);function u(){c.value=!0}return(h,d)=>(o.openBlock(),o.createElementBlock("div",{class:"img-container",style:o.normalizeStyle(l.value)},[i.value?(o.openBlock(),o.createElementBlock("img",{key:0,class:"img",src:s.value,style:o.normalizeStyle(f.value)},null,12,$L1)):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:n.value,style:o.normalizeStyle(f.value),onError:d[0]||(d[0]=m=>u())},null,44,UL1))],4))}});const YL1=Q1(WL1,[["__scopeId","data-v-573dd586"]]),Lb=e=>(o.pushScopeId("data-v-09dde44c"),e=e(),o.popScopeId(),e),qL1={key:0,class:"pagination"},GL1={key:0,class:"pagination--item-container"},jL1=Lb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),XL1=["textContent","onClick"],ZL1={key:1,class:"pagination--item-container"},QL1=Lb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),KL1=["textContent"],JL1=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||iH()}),(f,u)=>n.value>1?(o.openBlock(),o.createElementBlock("div",qL1,[s.value?(o.openBlock(),o.createElementBlock("div",GL1,[o.createElementVNode("div",{class:"pagination--item",textContent:"1",onClick:u[0]||(u[0]=h=>t.value=1)}),jL1])):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,XL1))),128)),l.value?(o.openBlock(),o.createElementBlock("div",ZL1,[QL1,o.createElementVNode("div",{class:"pagination--item",textContent:o.toDisplayString(n.value),onClick:u[1]||(u[1]=h=>t.value=n.value)},null,8,KL1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)}});const _b=Q1(JL1,[["__scopeId","data-v-09dde44c"]]),e_1=o.defineComponent({__name:"PgaTr",props:{index:{}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("tr",{class:o.normalizeClass([typeof a.index>"u"?"":a.index%2===0?"tr__even":"tr__odd"])},[o.renderSlot(a.$slots,"default",{},void 0,!0)],2))}});const Lf=Q1(e_1,[["__scopeId","data-v-dd6d415a"]]),a_1=o.defineComponent({__name:"PgaTh",props:{title:{type:[String,Function],default:""},align:{default:"center"}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("th",{style:o.normalizeStyle({"text-align":a.align})},[o.createVNode(T0,{text:a.title},null,8,["text"])],4))}});const Ba=Q1(a_1,[["__scopeId","data-v-82ce67c0"]]),t_1={class:"td--content"},c_1=o.defineComponent({__name:"PgaTd",props:{align:{default:"center"},fitContent:{type:Boolean}},setup(e){o.useCssVars(c=>({"4a84e9d3":t.value}));const a=e,t=o.computed(()=>{if(a.align==="center")return"center";if(a.align==="left")return"flex-start";if(a.align==="right")return"flex-end"});return(c,r)=>(o.openBlock(),o.createElementBlock("td",{class:o.normalizeClass({"td__fit-content":!!c.fitContent})},[o.createElementVNode("div",t_1,[o.renderSlot(c.$slots,"default",{},void 0,!0)])],2))}});const Oa=Q1(c_1,[["__scopeId","data-v-188261c5"]]),r_1={class:"table"},n_1={class:"table-header"},i_1={class:"header--search-container"},s_1={class:"indentation-content"},o_1={key:0,class:"indentation-line"},l_1={key:0,class:"small-devices-list"},f_1={class:"small-devices-list--item-container"},u_1={key:1,class:"items-selected"},h_1=["textContent"],d_1=o.defineComponent({__name:"PgaTable",props:o.mergeModels({columns:{},createItemBtnText:{},withEditButton:{type:Boolean},confirmDeleteText:{type:Function},actionsOptions:{},useDropdown:{type:Boolean},items:{},totalCount:{},searchInputPlaceholder:{},indentation:{},isLoading:{type:Boolean}},{searchParams:{},searchParamsModifiers:{},itemsSelected:{},itemsSelectedModifiers:{}}),emits:o.mergeModels(["createItem","editItem","deleteItem","refreshList"],["update:searchParams","update:itemsSelected"]),setup(e,{emit:a}){const t=o.useModel(e,"searchParams"),c=o.useModel(e,"itemsSelected"),r=e,n=a,i=i4("pgaTable"),s=o.ref([]),l=o.ref(),f=o.computed(()=>{const H={};for(const E in r.columns){const k=r.columns[E];k.hide||(H[E]=k)}return H}),u=o.computed(()=>{if(!r.indentation)return!1;for(const H of r.items)if(H[r.indentation.propName].length>0)return!0;return!1}),h=o.computed(()=>{if(!u.value)return r.items;const H=[];for(const E of r.items)H.push(E),x(E)&&H.push(...E[r.indentation.propName]);return H}),d=o.computed(()=>!!c.value),m=o.computed(()=>{var H;return!!(r.withEditButton||r.confirmDeleteText||(H=r.actionsOptions)!=null&&H.length)}),p=o.computed(()=>{var H;return(H=r.actionsOptions)!=null&&H.length?!0:r.useDropdown}),v=o.computed(()=>{var H,E;return((H=t.value)==null?void 0:H.page)&&((E=t.value)==null?void 0:E.pageSize)&&r.totalCount}),g=o.computed(()=>{var H;return((H=t.value)==null?void 0:H.search)!==void 0});o.watch(()=>r.items,()=>{d.value&&(c.value=[])});function z(){t.value.page=1,n("refreshList")}function M(H){return r.items.map(k=>k.id).includes(H.id)}function x(H){return s.value.includes(H.id)}function y(H){s.value.push(H.id)}function L(H){s.value=s.value.filter(E=>E!==H.id)}function _(){l.value.toggleItemSelected()}return(H,E)=>(o.openBlock(),o.createElementBlock("div",r_1,[o.createElementVNode("div",n_1,[H.createItemBtnText?(o.openBlock(),o.createBlock(X3,{key:0,icon:"plus",text:H.createItemBtnText,onClick:E[0]||(E[0]=k=>n("createItem"))},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(H.$slots,"header",{},void 0,!0),o.createElementVNode("div",i_1,[g.value?(o.openBlock(),o.createBlock(L7,{key:0,class:"header--search",modelValue:t.value.search,"onUpdate:modelValue":E[1]||(E[1]=k=>t.value.search=k),placeholder:H.searchInputPlaceholder,onEnter:E[2]||(E[2]=k=>z()),onValueCleared:E[3]||(E[3]=k=>z())},null,8,["modelValue","placeholder"])):o.createCommentVNode("",!0),(v.value||g.value)&&H.isLoading?(o.openBlock(),o.createBlock(F5,{key:1,size:"0.7em"})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["table-container",{"table-container__with-small-devices-list":H.$slots.smallDevicesItem}])},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[o.createVNode(Lf,null,{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock(Ba,{key:0})):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock(Ba,{key:1})):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(k,W)=>(o.openBlock(),o.createBlock(Ba,{key:W,title:k.title,align:k.align},null,8,["title","align"]))),128)),m.value?(o.openBlock(),o.createBlock(Ba,{key:2,title:o.unref(i)("columnTitleActions")},null,8,["title"])):o.createCommentVNode("",!0)]),_:1})]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(k,W)=>(o.openBlock(),o.createBlock(Lf,{key:k.id,index:W},{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock(Oa,{key:0,fitContent:""},{default:o.withCtx(()=>[o.createVNode(ar,{modelValue:c.value,"onUpdate:modelValue":E[4]||(E[4]=X=>c.value=X),items:h.value,item:k},null,8,["modelValue","items","item"])]),_:2},1024)):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock(Oa,{key:1,fitContent:""},{default:o.withCtx(()=>[o.createElementVNode("div",s_1,[M(k)?x(k)?(o.openBlock(),o.createBlock(C3,{key:1,icon:"caret-down",clickable:"",onClick:X=>L(k)},null,8,["onClick"])):k[r.indentation.propName].length>0?(o.openBlock(),o.createBlock(C3,{key:2,icon:"caret-right",clickable:"",onClick:X=>y(k)},null,8,["onClick"])):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",o_1))])]),_:2},1024)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(X,T)=>(o.openBlock(),o.createBlock(Oa,{key:T,align:X.align,fitContent:X.fitContent},{default:o.withCtx(()=>[o.renderSlot(H.$slots,T,{item:k},void 0,!0)]),_:2},1032,["align","fitContent"]))),128)),m.value?(o.openBlock(),o.createBlock(Oa,{key:2,fitContent:""},{default:o.withCtx(()=>[p.value?(o.openBlock(),o.createBlock(dM,{key:0,item:k,options:H.actionsOptions,align:"right"},{default:o.withCtx(()=>[H.withEditButton?(o.openBlock(),o.createBlock(fr,{key:0,onClick:X=>n("editItem",k)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(lr,{key:1,confirmDeleteText:H.confirmDeleteText(k),onDeleteConfirmed:X=>n("deleteItem",k)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)]),_:2},1032,["item","options"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[H.withEditButton?(o.openBlock(),o.createBlock(fr,{key:0,onClick:X=>n("editItem",k)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(lr,{key:1,confirmDeleteText:H.confirmDeleteText(k),onDeleteConfirmed:X=>n("deleteItem",k)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)],64))]),_:2},1024)):o.createCommentVNode("",!0)]),_:2},1032,["index"]))),128))])])],2),H.$slots.smallDevicesItem?(o.openBlock(),o.createElementBlock("div",l_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(k,W)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:k.id},[o.createElementVNode("div",f_1,[o.renderSlot(H.$slots,"smallDevicesItem",{item:k},void 0,!0)]),W+1<h.value.length?(o.openBlock(),o.createBlock(oH,{key:0})):o.createCommentVNode("",!0)],64))),128))])):o.createCommentVNode("",!0),o.createVNode(XH,{items:h.value,isLoading:H.isLoading},null,8,["items","isLoading"]),d.value&&h.value.length>0?(o.openBlock(),o.createElementBlock("div",u_1,[o.createVNode(ar,{ref_key:"itemsSelectedRef",ref:l,modelValue:c.value,"onUpdate:modelValue":E[5]||(E[5]=k=>c.value=k),items:h.value},null,8,["modelValue","items"]),o.createVNode(wn,{class:"items-selected--select-all-btn",text:o.unref(i)("selectAllBtn"),onClick:E[6]||(E[6]=k=>_())},null,8,["text"]),o.createElementVNode("span",{class:"items-selected--selected-items-text",textContent:o.toDisplayString(o.unref(i)("withTheSelectedItemsText"))},null,8,h_1),o.renderSlot(H.$slots,"itemsSelected",{},void 0,!0)])):o.createCommentVNode("",!0),v.value?(o.openBlock(),o.createBlock(_b,{key:2,modelValue:t.value.page,"onUpdate:modelValue":E[7]||(E[7]=k=>t.value.page=k),pageSize:t.value.pageSize,totalCount:H.totalCount,onNewPage:E[8]||(E[8]=k=>n("refreshList"))},null,8,["modelValue","pageSize","totalCount"])):o.createCommentVNode("",!0)]))}});const m_1=Q1(d_1,[["__scopeId","data-v-e3b6d37d"]]),p_1=Object.freeze(Object.defineProperty({__proto__:null,PgaBadge:d91,PgaButton:X3,PgaButtonLink:wn,PgaChartBar:Rd1,PgaDatePicker:sz1,PgaDeleteButton:lr,PgaDisplayDatetime:Wd1,PgaDisplayInfo:Qd1,PgaDisplayNoItems:XH,PgaDisplayPrice:om1,PgaDisplayText:T0,PgaDropdown:dM,PgaEditButton:fr,PgaForm:ZH,PgaFormRow:dm1,PgaIcon:C3,PgaImage:YL1,PgaInfoCardFullPage:Y91,PgaInput:L7,PgaInputFile:qV,PgaInputFileExcel:mL1,PgaInputGroup:Je,PgaInputSelect:ML1,PgaIsEnabled:q91,PgaItemSelected:ar,PgaLink:Il1,PgaLoginForm:Xm1,PgaLogoutButton:$l1,PgaModal:Ml1,PgaPagination:_b,PgaSelect:AL1,PgaSeparator:oH,PgaSpinner:F5,PgaSwitch:PL1,PgaSwitchOptions:RL1,PgaTable:m_1,PgaUserMenu:Al1},Symbol.toStringTag,{value:"Module"})),v_1={class:"notifications"},g_1=o.defineComponent({__name:"Notifications",setup(e){const a=i4("notifications"),{notificationsOptions:t}=A3.storeToRefs(O3()),{notifications:c}=A3.storeToRefs(f6());return(r,n)=>(o.openBlock(),o.createElementBlock("div",v_1,[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(T0,{class:"notifications--message",text:i.message},null,8,["text"]),o.unref(t).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(C3,{key:0,class:"notifications--xmark",icon:"xmark",onClick:s=>o.unref(si)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(t).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(wn,{key:0,class:"notifications--remove-all-btn",text:o.unref(a)("removeAllBtn"),onClick:n[0]||(n[0]=i=>o.unref(YV)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const x_1=Q1(g_1,[["__scopeId","data-v-45c95570"]]);function z_1(){const e=document.createElement("div");document.body.appendChild(e),o.createApp({render(){return o.h(x_1)}}).mount(e)}c9.add(X21);c9.add(n61);c9.add(u91);const C_1=(e,a)=>{const t=X8.mergeDeep(Db,a);O3().options=X8.removeProps(t,"colors"),nu(t.colors),e.use(Br),e.use(Ow),Object.entries(p_1).forEach(([c,r])=>{e.component(c,r)}),z_1()};exports.addNotification=WV;exports.animation=Z91;exports.clearNotifications=YV;exports.copyModelFields=Ko1;exports.createI18n=sH;exports.default=C_1;exports.displayAlert=lH;exports.getCoinAmountInString=j91;exports.getDatetimeInString=Q91;exports.getLanguage=m7;exports.getNumberInString=mM;exports.getTheme=Ic;exports.isCurrentUrl=Jo1;exports.removeNotification=si;exports.rgba=X91;exports.scrollToTop=iH;exports.setBodyOverflow=o7;exports.setColor=$w;exports.setColors=nu;exports.setLanguage=pl1;exports.setTheme=Iw;exports.useColorsStore=Ur;
831
+ `;var t=bb(e,a);return t}function nL1(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 wb(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"?D3(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(v,g){n0(v).forEach(function(z){(m=d.indexOf(z))==-1&&(d[m=d.length]=z);var M=v[z],x="z",y="",L=W1({c:s+m,r:i+g+r});f=b5(n,L),M&&typeof M=="object"&&!(M instanceof Date)?n[L]=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=I3(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[L]=f={t:x,v:M},y&&(f.z=y))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var p=z3(i);if(r)for(m=0;m<d.length;++m)n[s3(m+s)+p]={t:"s",v:d[m]};return n["!ref"]=c2(u),n}function iL1(e,a){return wb(null,e,a)}function b5(e,a,t){if(typeof a=="string"){if(Array.isArray(e)){var c=D3(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"?b5(e,W1(a)):b5(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 Ti(){return{SheetNames:[],Sheets:{}}}function Ei(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(Yw1(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 oL1(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 lL1(e,a){return e.z=a,e}function kb(e,a,t){return a?(e.l={Target:a},t&&(e.l.Tooltip=t)):delete e.l,e}function fL1(e,a,t){return kb(e,"#"+a,t)}function uL1(e,a,t){e.c||(e.c=[]),e.c.push({t:a,a:t||"SheetJS"})}function hL1(e,a,t,c){for(var r=typeof a!="string"?a:$2(a),n=typeof a=="string"?a:c2(a),i=r.s.r;i<=r.e.r;++i)for(var s=r.s.c;s<=r.e.c;++s){var l=b5(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:c2,decode_col:zi,decode_row:xi,split_cell:yC1,decode_cell:D3,decode_range:t8,format_cell:S0,sheet_add_aoa:Sy,sheet_add_json:wb,sheet_add_dom:Mb,aoa_to_sheet:c8,json_to_sheet:iL1,table_to_sheet:Hb,table_to_book:_k1,sheet_to_csv:bb,sheet_to_txt:rL1,sheet_to_json:Dr,sheet_to_html:Lk1,sheet_to_formulae:nL1,sheet_to_row_object_array:Dr,sheet_get_cell:b5,book_new:Ti,book_append_sheet:Ei,book_set_sheet_visibility:oL1,cell_set_number_format:lL1,cell_set_hyperlink:kb,cell_set_internal_link:fL1,cell_add_comment:uL1,sheet_set_array_formula:hL1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const mL1=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(){var f;(f=i.value)==null||f.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),p=Pr(m,{type:"array"}),v=p.SheetNames[0],g=p.Sheets[v],z=r.excelConfig.columns,M=Math.max(...Object.values(z)),x=Array(M).map((L,_)=>`empty${_+1}`);Object.entries(z).forEach(([L,_])=>x[_-1]=L);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(qV,{ref_key:"inputFileRef",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"]))}}),pL1={class:"input-container"},vL1=["placeholder","disabled"],gL1={key:2,class:"input-dropdown"},xL1=["onMousedown"],zL1=["textContent"],CL1=o.defineComponent({__name:"PgaInputSelect",props:o.mergeModels({options:{},descriptionField:{},emptyOptionsText:{type:[String,Function]},placeholder:{type:[String,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(T=>({"2d7292e4":o.unref(i).input.height,"40b278ec":o.unref(i).input.padding,"364cace0":o.unref(i).input.borderColor,"61a98ff6":o.unref(i).input.borderRadius,"714ff54e":o.unref(i).input.backgroundColor,"54c915c8":o.unref(i).input.colorFocus,"716565ea":o.unref(i).input.backgroundColorDisabled,"9a4ae7ee":o.unref(i).input.paddingWithIcon,"106bfa57":o.unref(i).input.placeholderColor}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=i4("pgaInputSelect"),{formOptions:i}=A3.storeToRefs(O3()),s=o.ref(),l=o.ref(""),f=o.ref(!1),u=o.ref(!1),h=o.computed(()=>c.options.find(T=>T.id===t.value)),d=o.computed(()=>!!c.options.length),m=o.computed(()=>u.value?c.options:c.options.filter(T=>T[c.descriptionField].toLowerCase().includes(l.value.toLowerCase()))),p=o.computed(()=>c.disabled||!d.value),v=o.computed(()=>{if(d.value){if(c.placeholder)return typeof c.placeholder=="string"?c.placeholder:c.placeholder()}else return c.emptyOptionsText?typeof c.emptyOptionsText=="string"?c.emptyOptionsText:c.emptyOptionsText():n("emptyOptionsText")}),g=o.computed(()=>p.value?!1:!!(l.value||t.value)),z=o.computed(()=>p.value?!1:!g.value&&!f.value),M=o.computed(()=>!!(g.value||z.value));o.watch(t,T=>{r("change",T),k(),W()});function x(){u.value=!0,f.value=!0}function y(){k(),f.value=!1}function L(){u.value=!1}function _(T){t.value=T.id}function H(){l.value="",t.value=null}function E(){var T;(T=s.value)==null||T.focus()}function k(){const T=h.value;l.value=T?T[c.descriptionField]:""}function W(){d.value||(t.value=null)}function X(){k(),W()}return X(),(T,K)=>(o.openBlock(),o.createBlock(Je,{label:T.label,withOptionalLabel:T.withOptionalLabel,withLabelSpace:T.withLabelSpace,errors:T.errors,grow:T.grow},{default:o.withCtx(()=>[o.createElementVNode("div",pL1,[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":K[0]||(K[0]=i1=>l.value=i1),ref_key:"inputRef",ref:s,class:o.normalizeClass(["input",{input__disabled:p.value,"input__with-btn":M.value}]),type:"text",placeholder:v.value,disabled:p.value,onFocus:K[1]||(K[1]=i1=>x()),onBlur:K[2]||(K[2]=i1=>y()),onInput:K[3]||(K[3]=i1=>L())},null,42,vL1),[[o.vModelText,l.value]]),g.value?(o.openBlock(),o.createBlock(k7,{key:0,icon:"xmark",onMousedown:K[4]||(K[4]=o.withModifiers(i1=>H(),["prevent"]))})):o.createCommentVNode("",!0),z.value?(o.openBlock(),o.createBlock(k7,{key:1,icon:"chevron-down",onMousedown:K[5]||(K[5]=o.withModifiers(i1=>E(),["prevent"]))})):o.createCommentVNode("",!0),f.value&&m.value.length?(o.openBlock(),o.createElementBlock("ul",gL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,i1=>(o.openBlock(),o.createElementBlock("li",{key:i1.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":i1.id===t.value}]),onMousedown:P=>_(i1)},[o.createElementVNode("span",{textContent:o.toDisplayString(i1[T.descriptionField])},null,8,zL1)],42,xL1))),128))])):o.createCommentVNode("",!0)])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const ML1=Q1(CL1,[["__scopeId","data-v-820d789c"]]),HL1={class:"select"},VL1={key:0,class:"input--text-container"},yL1={key:1,class:"input--text-container"},bL1={key:3,class:"input--text-container"},wL1={key:0,class:"select--dropdown"},kL1=["onClick"],LL1=["textContent"],_L1=o.defineComponent({__name:"PgaSelect",props:o.mergeModels({options:{},emptyOptionsText:{type:[String,Function]},reduceNameFunction:{type:Function},placeholder:{type:[String,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=>({"15aa2add":o.unref(i).input.height,"3a8f0bc5":u.value,"774d8ea1":o.unref(i).input.borderColor,e99815d8:o.unref(i).input.borderRadius,"2e38e9df":o.unref(i).input.backgroundColor,"0a458d0a":o.unref(i).input.backgroundColorDisabled,"7f7e29eb":o.unref(i).input.colorFocus,"3fb1d91b":o.unref(i).input.padding,"1ebcd034":o.unref(i).input.placeholderColor,"6ec872a0":l.value}));const t=o.useModel(e,"modelValue"),c=e,r=a,n=Br.directive,{formOptions:i}=A3.storeToRefs(O3()),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 p(){!c.disabled&&d.value&&(h.value=!h.value)}function v(){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 L=o.resolveComponent("PgaDisplayText"),_=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",HL1,[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]=E=>p())},[!d.value&&(x.placeholder||x.emptyOptionsText)?(o.openBlock(),o.createElementBlock("div",VL1,[x.placeholder?(o.openBlock(),o.createBlock(L,{key:0,class:"input--placeholder",text:x.placeholder},null,8,["text"])):(o.openBlock(),o.createBlock(L,{key:1,class:"input--empty-options-text",text:x.emptyOptionsText},null,8,["text"]))])):m.value&&x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",yL1,[o.createVNode(L,{class:"input--name-fn",text:x.reduceNameFunction(m.value)},null,8,["text"])])):m.value?o.renderSlot(x.$slots,"dropdownOption",{key:2,option:m.value},void 0,!0):x.placeholder?(o.openBlock(),o.createElementBlock("div",bL1,[o.createVNode(L,{class:"input--placeholder",text:x.placeholder},null,8,["text"])])):o.createCommentVNode("",!0),x.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:4,ref_key:"inputIconsRef",ref:f,class:"input--icons"},[m.value?(o.openBlock(),o.createBlock(_,{key:0,class:"input--icon",icon:"xmark",clickable:"",onClick:y[0]||(y[0]=o.withModifiers(E=>t.value=null,["stop"]))})):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(_,{key:1,class:"input--icon",icon:"chevron-down",clickable:""})):o.createCommentVNode("",!0)],512))],2),h.value?(o.openBlock(),o.createElementBlock("ul",wL1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.options,E=>(o.openBlock(),o.createElementBlock("li",{key:E.id,class:o.normalizeClass(["dropdown--option",{"dropdown--option__selected":E.id===t.value}]),onClick:k=>g(E)},[x.reduceNameFunction?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dropdown--option--name-fn",textContent:o.toDisplayString(x.reduceNameFunction(E))},null,8,LL1)):o.renderSlot(x.$slots,"dropdownOption",{key:1,option:E},void 0,!0)],10,kL1))),128))])):o.createCommentVNode("",!0)])),[[o.unref(n),v]])]),_:3},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const AL1=Q1(_L1,[["__scopeId","data-v-cef55095"]]),SL1=e=>(o.pushScopeId("data-v-4cff5de2"),e=e(),o.popScopeId(),e),NL1={class:"switch-container"},TL1=["checked","disabled"],EL1=SL1(()=>o.createElementVNode("div",{class:"switch--slider"},null,-1)),FL1=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}=A3.storeToRefs(O3());function c(){a.value=!a.value}return(r,n)=>(o.openBlock(),o.createBlock(Je,{label:r.label,withOptionalLabel:r.withOptionalLabel,withLabelSpace:r.withLabelSpace,errors:r.errors,grow:r.grow},{default:o.withCtx(()=>[o.createElementVNode("div",NL1,[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,TL1),EL1],2)])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"]))}});const PL1=Q1(FL1,[["__scopeId","data-v-4cff5de2"]]),DL1={class:"switch-options"},BL1=["onClick"],OL1=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}=A3.storeToRefs(O3());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",DL1,[(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(T0,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,BL1))),128))])]),_:1},8,["label","withOptionalLabel","withLabelSpace","errors","grow"])}}});const RL1=Q1(OL1,[["__scopeId","data-v-14b11a15"]]),IL1="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAA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AAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",$L1={class:"img-wrapper"},UL1=["src"],WL1=["src"],YL1=o.defineComponent({__name:"PgaImage",props:o.mergeModels({source:{default:"dynamic"},image:{},defaultImage:{},uploadFn:{},deleteFn:{},size:{},height:{},width:{},borderRadius:{},rounded:{type:Boolean}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){o.useCssVars(p=>({"4855c730":n.value}));const a=o.useModel(e,"modelValue"),t=e,c=o.ref(!1),r=o.ref(),n=o.ref("0"),i=o.computed(()=>a.value?a.value:t.image),s=o.computed(()=>`${O3().imageOptions[`${t.source}Url`]}/${i.value}`),l=o.computed(()=>!!(!i.value||c.value)),f=o.computed(()=>t.defaultImage?`${O3().imageOptions.staticUrl}/${t.defaultImage}`:IL1),u=o.computed(()=>{const p=[];return t.size?p.push({height:t.size,width:t.size}):(t.height&&p.push({height:t.height,width:"auto"}),t.width&&p.push({height:"auto",width:t.width}),t.height&&t.width&&p.push({height:t.height,width:t.width})),p}),h=o.computed(()=>{const p=[];return t.rounded?p.push({borderRadius:"100%"}):t.borderRadius&&p.push({borderRadius:t.borderRadius}),p});o.watch(s,()=>c.value=!1);function d(){c.value=!0}function m(){r.value&&(n.value=`${r.value.getBoundingClientRect().width}px`)}return o.onMounted(()=>{r.value&&new ResizeObserver(m).observe(r.value)}),(p,v)=>{const g=o.resolveComponent("PgaButton"),z=o.resolveComponent("PgaDeleteButton");return o.openBlock(),o.createElementBlock("div",$L1,[o.createElementVNode("div",{class:"img-container",style:o.normalizeStyle(u.value)},[l.value?(o.openBlock(),o.createElementBlock("img",{key:0,class:"img",src:f.value,style:o.normalizeStyle(h.value)},null,12,UL1)):(o.openBlock(),o.createElementBlock("img",{key:1,class:"img",src:s.value,style:o.normalizeStyle(h.value),onError:v[0]||(v[0]=M=>d())},null,44,WL1))],4),p.uploadFn||p.deleteFn?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"imgButtonsRef",ref:r,class:"img-buttons"},[p.uploadFn?(o.openBlock(),o.createBlock(g,{key:0,buttonType:"flat",size:"s",icon:"camera"})):o.createCommentVNode("",!0),p.deleteFn?(o.openBlock(),o.createBlock(z,{key:1,withoutText:""})):o.createCommentVNode("",!0)],512)):o.createCommentVNode("",!0)])}}});const qL1=Q1(YL1,[["__scopeId","data-v-39067329"]]),Lb=e=>(o.pushScopeId("data-v-09dde44c"),e=e(),o.popScopeId(),e),GL1={key:0,class:"pagination"},jL1={key:0,class:"pagination--item-container"},XL1=Lb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),ZL1=["textContent","onClick"],QL1={key:1,class:"pagination--item-container"},KL1=Lb(()=>o.createElementVNode("span",{textContent:"..."},null,-1)),JL1=["textContent"],e_1=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||iH()}),(f,u)=>n.value>1?(o.openBlock(),o.createElementBlock("div",GL1,[s.value?(o.openBlock(),o.createElementBlock("div",jL1,[o.createElementVNode("div",{class:"pagination--item",textContent:"1",onClick:u[0]||(u[0]=h=>t.value=1)}),XL1])):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,ZL1))),128)),l.value?(o.openBlock(),o.createElementBlock("div",QL1,[KL1,o.createElementVNode("div",{class:"pagination--item",textContent:o.toDisplayString(n.value),onClick:u[1]||(u[1]=h=>t.value=n.value)},null,8,JL1)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)}});const _b=Q1(e_1,[["__scopeId","data-v-09dde44c"]]),a_1=o.defineComponent({__name:"PgaTr",props:{index:{}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("tr",{class:o.normalizeClass([typeof a.index>"u"?"":a.index%2===0?"tr__even":"tr__odd"])},[o.renderSlot(a.$slots,"default",{},void 0,!0)],2))}});const Lf=Q1(a_1,[["__scopeId","data-v-dd6d415a"]]),t_1=o.defineComponent({__name:"PgaTh",props:{title:{type:[String,Function],default:""},align:{default:"center"}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("th",{style:o.normalizeStyle({"text-align":a.align})},[o.createVNode(T0,{text:a.title},null,8,["text"])],4))}});const Ba=Q1(t_1,[["__scopeId","data-v-82ce67c0"]]),c_1={class:"td--content"},r_1=o.defineComponent({__name:"PgaTd",props:{align:{default:"center"},fitContent:{type:Boolean}},setup(e){o.useCssVars(c=>({"4a84e9d3":t.value}));const a=e,t=o.computed(()=>{if(a.align==="center")return"center";if(a.align==="left")return"flex-start";if(a.align==="right")return"flex-end"});return(c,r)=>(o.openBlock(),o.createElementBlock("td",{class:o.normalizeClass({"td__fit-content":!!c.fitContent})},[o.createElementVNode("div",c_1,[o.renderSlot(c.$slots,"default",{},void 0,!0)])],2))}});const Oa=Q1(r_1,[["__scopeId","data-v-188261c5"]]),n_1={class:"table"},i_1={class:"table-header"},s_1={class:"header--search-container"},o_1={class:"indentation-content"},l_1={key:0,class:"indentation-line"},f_1={key:0,class:"small-devices-list"},u_1={class:"small-devices-list--item-container"},h_1={key:1,class:"items-selected"},d_1=["textContent"],m_1=o.defineComponent({__name:"PgaTable",props:o.mergeModels({columns:{},createItemBtnText:{},withEditButton:{type:Boolean},confirmDeleteText:{type:Function},actionsOptions:{},useDropdown:{type:Boolean},items:{},totalCount:{},searchInputPlaceholder:{},indentation:{},isLoading:{type:Boolean}},{searchParams:{},searchParamsModifiers:{},itemsSelected:{},itemsSelectedModifiers:{}}),emits:o.mergeModels(["createItem","editItem","deleteItem","refreshList"],["update:searchParams","update:itemsSelected"]),setup(e,{emit:a}){const t=o.useModel(e,"searchParams"),c=o.useModel(e,"itemsSelected"),r=e,n=a,i=i4("pgaTable"),s=o.ref([]),l=o.ref(),f=o.computed(()=>{const H={};for(const E in r.columns){const k=r.columns[E];k.hide||(H[E]=k)}return H}),u=o.computed(()=>{if(!r.indentation)return!1;for(const H of r.items)if(H[r.indentation.propName].length>0)return!0;return!1}),h=o.computed(()=>{if(!u.value)return r.items;const H=[];for(const E of r.items)H.push(E),x(E)&&H.push(...E[r.indentation.propName]);return H}),d=o.computed(()=>!!c.value),m=o.computed(()=>{var H;return!!(r.withEditButton||r.confirmDeleteText||(H=r.actionsOptions)!=null&&H.length)}),p=o.computed(()=>{var H;return(H=r.actionsOptions)!=null&&H.length?!0:r.useDropdown}),v=o.computed(()=>{var H,E;return((H=t.value)==null?void 0:H.page)&&((E=t.value)==null?void 0:E.pageSize)&&r.totalCount}),g=o.computed(()=>{var H;return((H=t.value)==null?void 0:H.search)!==void 0});o.watch(()=>r.items,()=>{d.value&&(c.value=[])});function z(){t.value.page=1,n("refreshList")}function M(H){return r.items.map(k=>k.id).includes(H.id)}function x(H){return s.value.includes(H.id)}function y(H){s.value.push(H.id)}function L(H){s.value=s.value.filter(E=>E!==H.id)}function _(){l.value.toggleItemSelected()}return(H,E)=>(o.openBlock(),o.createElementBlock("div",n_1,[o.createElementVNode("div",i_1,[H.createItemBtnText?(o.openBlock(),o.createBlock(X3,{key:0,icon:"plus",text:H.createItemBtnText,onClick:E[0]||(E[0]=k=>n("createItem"))},null,8,["text"])):o.createCommentVNode("",!0),o.renderSlot(H.$slots,"header",{},void 0,!0),o.createElementVNode("div",s_1,[g.value?(o.openBlock(),o.createBlock(L7,{key:0,class:"header--search",modelValue:t.value.search,"onUpdate:modelValue":E[1]||(E[1]=k=>t.value.search=k),placeholder:H.searchInputPlaceholder,onEnter:E[2]||(E[2]=k=>z()),onValueCleared:E[3]||(E[3]=k=>z())},null,8,["modelValue","placeholder"])):o.createCommentVNode("",!0),(v.value||g.value)&&H.isLoading?(o.openBlock(),o.createBlock(F5,{key:1,size:"0.7em"})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["table-container",{"table-container__with-small-devices-list":H.$slots.smallDevicesItem}])},[o.createElementVNode("table",null,[o.createElementVNode("thead",null,[o.createVNode(Lf,null,{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock(Ba,{key:0})):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock(Ba,{key:1})):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(k,W)=>(o.openBlock(),o.createBlock(Ba,{key:W,title:k.title,align:k.align},null,8,["title","align"]))),128)),m.value?(o.openBlock(),o.createBlock(Ba,{key:2,title:o.unref(i)("columnTitleActions")},null,8,["title"])):o.createCommentVNode("",!0)]),_:1})]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(k,W)=>(o.openBlock(),o.createBlock(Lf,{key:k.id,index:W},{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createBlock(Oa,{key:0,fitContent:""},{default:o.withCtx(()=>[o.createVNode(ar,{modelValue:c.value,"onUpdate:modelValue":E[4]||(E[4]=X=>c.value=X),items:h.value,item:k},null,8,["modelValue","items","item"])]),_:2},1024)):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createBlock(Oa,{key:1,fitContent:""},{default:o.withCtx(()=>[o.createElementVNode("div",o_1,[M(k)?x(k)?(o.openBlock(),o.createBlock(C3,{key:1,icon:"caret-down",clickable:"",onClick:X=>L(k)},null,8,["onClick"])):k[r.indentation.propName].length>0?(o.openBlock(),o.createBlock(C3,{key:2,icon:"caret-right",clickable:"",onClick:X=>y(k)},null,8,["onClick"])):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",l_1))])]),_:2},1024)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(X,T)=>(o.openBlock(),o.createBlock(Oa,{key:T,align:X.align,fitContent:X.fitContent},{default:o.withCtx(()=>[o.renderSlot(H.$slots,T,{item:k},void 0,!0)]),_:2},1032,["align","fitContent"]))),128)),m.value?(o.openBlock(),o.createBlock(Oa,{key:2,fitContent:""},{default:o.withCtx(()=>[p.value?(o.openBlock(),o.createBlock(dM,{key:0,item:k,options:H.actionsOptions,align:"right"},{default:o.withCtx(()=>[H.withEditButton?(o.openBlock(),o.createBlock(fr,{key:0,onClick:X=>n("editItem",k)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(lr,{key:1,confirmDeleteText:H.confirmDeleteText(k),onDeleteConfirmed:X=>n("deleteItem",k)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)]),_:2},1032,["item","options"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[H.withEditButton?(o.openBlock(),o.createBlock(fr,{key:0,onClick:X=>n("editItem",k)},null,8,["onClick"])):o.createCommentVNode("",!0),H.confirmDeleteText?(o.openBlock(),o.createBlock(lr,{key:1,confirmDeleteText:H.confirmDeleteText(k),onDeleteConfirmed:X=>n("deleteItem",k)},null,8,["confirmDeleteText","onDeleteConfirmed"])):o.createCommentVNode("",!0)],64))]),_:2},1024)):o.createCommentVNode("",!0)]),_:2},1032,["index"]))),128))])])],2),H.$slots.smallDevicesItem?(o.openBlock(),o.createElementBlock("div",f_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,(k,W)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:k.id},[o.createElementVNode("div",u_1,[o.renderSlot(H.$slots,"smallDevicesItem",{item:k},void 0,!0)]),W+1<h.value.length?(o.openBlock(),o.createBlock(oH,{key:0})):o.createCommentVNode("",!0)],64))),128))])):o.createCommentVNode("",!0),o.createVNode(XH,{items:h.value,isLoading:H.isLoading},null,8,["items","isLoading"]),d.value&&h.value.length>0?(o.openBlock(),o.createElementBlock("div",h_1,[o.createVNode(ar,{ref_key:"itemsSelectedRef",ref:l,modelValue:c.value,"onUpdate:modelValue":E[5]||(E[5]=k=>c.value=k),items:h.value},null,8,["modelValue","items"]),o.createVNode(wn,{class:"items-selected--select-all-btn",text:o.unref(i)("selectAllBtn"),onClick:E[6]||(E[6]=k=>_())},null,8,["text"]),o.createElementVNode("span",{class:"items-selected--selected-items-text",textContent:o.toDisplayString(o.unref(i)("withTheSelectedItemsText"))},null,8,d_1),o.renderSlot(H.$slots,"itemsSelected",{},void 0,!0)])):o.createCommentVNode("",!0),v.value?(o.openBlock(),o.createBlock(_b,{key:2,modelValue:t.value.page,"onUpdate:modelValue":E[7]||(E[7]=k=>t.value.page=k),pageSize:t.value.pageSize,totalCount:H.totalCount,onNewPage:E[8]||(E[8]=k=>n("refreshList"))},null,8,["modelValue","pageSize","totalCount"])):o.createCommentVNode("",!0)]))}});const p_1=Q1(m_1,[["__scopeId","data-v-e3b6d37d"]]),v_1=Object.freeze(Object.defineProperty({__proto__:null,PgaBadge:d91,PgaButton:X3,PgaButtonLink:wn,PgaChartBar:Rd1,PgaDatePicker:sz1,PgaDeleteButton:lr,PgaDisplayDatetime:Wd1,PgaDisplayInfo:Qd1,PgaDisplayNoItems:XH,PgaDisplayPrice:om1,PgaDisplayText:T0,PgaDropdown:dM,PgaEditButton:fr,PgaForm:ZH,PgaFormRow:dm1,PgaIcon:C3,PgaImage:qL1,PgaInfoCardFullPage:Y91,PgaInput:L7,PgaInputFile:qV,PgaInputFileExcel:mL1,PgaInputGroup:Je,PgaInputSelect:ML1,PgaIsEnabled:q91,PgaItemSelected:ar,PgaLink:Il1,PgaLoginForm:Xm1,PgaLogoutButton:$l1,PgaModal:Ml1,PgaPagination:_b,PgaSelect:AL1,PgaSeparator:oH,PgaSpinner:F5,PgaSwitch:PL1,PgaSwitchOptions:RL1,PgaTable:p_1,PgaUserMenu:Al1},Symbol.toStringTag,{value:"Module"})),g_1={class:"notifications"},x_1=o.defineComponent({__name:"Notifications",setup(e){const a=i4("notifications"),{notificationsOptions:t}=A3.storeToRefs(O3()),{notifications:c}=A3.storeToRefs(f6());return(r,n)=>(o.openBlock(),o.createElementBlock("div",g_1,[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(T0,{class:"notifications--message",text:i.message},null,8,["text"]),o.unref(t).preventRemove?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(C3,{key:0,class:"notifications--xmark",icon:"xmark",onClick:s=>o.unref(si)(i.id)},null,8,["onClick"]))],4))),128))]),_:1}),!o.unref(t).preventRemove&&o.unref(c).length?(o.openBlock(),o.createBlock(wn,{key:0,class:"notifications--remove-all-btn",text:o.unref(a)("removeAllBtn"),onClick:n[0]||(n[0]=i=>o.unref(YV)())},null,8,["text"])):o.createCommentVNode("",!0)]))}});const z_1=Q1(x_1,[["__scopeId","data-v-45c95570"]]);function C_1(){const e=document.createElement("div");document.body.appendChild(e),o.createApp({render(){return o.h(z_1)}}).mount(e)}c9.add(X21);c9.add(n61);c9.add(u91);const M_1=(e,a)=>{const t=X8.mergeDeep(Db,a);O3().options=X8.removeProps(t,"colors"),nu(t.colors),e.use(Br),e.use(Ow),Object.entries(v_1).forEach(([c,r])=>{e.component(c,r)}),C_1()};exports.addNotification=WV;exports.animation=Z91;exports.clearNotifications=YV;exports.copyModelFields=Ko1;exports.createI18n=sH;exports.default=M_1;exports.displayAlert=lH;exports.getCoinAmountInString=j91;exports.getDatetimeInString=Q91;exports.getLanguage=m7;exports.getNumberInString=mM;exports.getTheme=Ic;exports.isCurrentUrl=Jo1;exports.removeNotification=si;exports.rgba=X91;exports.scrollToTop=iH;exports.setBodyOverflow=o7;exports.setColor=$w;exports.setColors=nu;exports.setLanguage=pl1;exports.setTheme=Iw;exports.useColorsStore=Ur;