{r=p,s=n.now(),o||(o=n.schedule(c,e),i.add(o));},()=>{a(),i.complete();},void 0,()=>{r=o=null;}));})}function Ts$1(e){return ve$5((n,t)=>{let i=!1;n.subscribe(ze$6(t,o=>{i=!0,t.next(o);},()=>{i||t.next(e),t.complete();}));})}function fe$2(e){return e<=0?()=>He$5:ve$5((n,t)=>{let i=0;n.subscribe(ze$6(t,o=>{++i<=e&&(t.next(o),e<=i&&t.complete());}));})}function vy(){return ve$5((e,n)=>{e.subscribe(ze$6(n,Mi$3));})}function Ey(e){return q$4(()=>e)}function uM(e,n){return n?t=>hi$4(n.pipe(fe$2(1),vy()),t.pipe(uM(e))):J0((t,i)=>e0(e(t,i)).pipe(fe$2(1),Ey(t)))}function Qa(e,n=lo$1){let t=Q1(e,n);return uM(()=>t)}function m0(e,n=$t$2){return e=e??K8,ve$5((t,i)=>{let o,r=!0;t.subscribe(ze$6(i,s=>{let a=n(s);(r||!e(o,a))&&(r=!1,o=a,i.next(s));}));})}function K8(e,n){return e===n}function lA(e,n){return m0((t,i)=>t[e]===i[e])}function dM(e=Q8){return ve$5((n,t)=>{let i=!1;n.subscribe(ze$6(t,o=>{i=!0,t.next(o);},()=>i?t.complete():t.error(e())));})}function Q8(){return new fi$4}function pA(...e){return n=>hi$4(n,B$2(...e))}function Ry(e,n){return n?t=>t.pipe(Ry((i,o)=>e0(e(i,o)).pipe(q$4((r,s)=>n(i,r,o,s))))):ve$5((t,i)=>{let o=0,r=null,s=!1;t.subscribe(ze$6(i,a=>{r||(r=ze$6(i,void 0,()=>{r=null,s&&i.complete();}),e0(e(a,o++)).subscribe(r));},()=>{s=!0,!r&&i.complete();}));})}function uA(e,n=1/0,t){return n=(n||0)<1?1/0:n,ve$5((i,o)=>Il$1(i,o,e,n,void 0,!0,t))}function S1(e){return ve$5((n,t)=>{try{n.subscribe(t);}finally{t.add(e);}})}function Yo$1(e,n){let t=arguments.length>=2;return i=>i.pipe(e?re$3((o,r)=>e(o,r,i)):$t$2,fe$2(1),t?Ts$1(n):dM(()=>new fi$4))}function Za(e){return e<=0?()=>He$5:ve$5((n,t)=>{let i=[];n.subscribe(ze$6(t,o=>{i.push(o),e
p?1:0}),a}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=Kn$1({name:"sortByNumber",type:t,pure:true,standalone:false});}}return t})();var xr=(()=>{class t{transform(e){return SEe(e.url,e.iconPath)}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=Kn$1({name:"addonCleanUpUrl",type:t,pure:true,standalone:false});}}return t})();var Mr=(()=>{class t{constructor(e){this.translate=e;}transform(e){if(e.everyoneIncludingNew)return this.translate.instant("GLOBAL.EVERYONE_LABEL");let r=[...e.groups,...e.users];return r.reduce((i,o,a)=>i+=(o.name||o.email)+`${a!==r.length-1?", ":""}`,"")}static{this.\u0275fac=function(r){return new(r||t)(N$5(K0,16))};}static{this.\u0275pipe=Kn$1({name:"assigneesNameFormatPipe",type:t,pure:true,standalone:false});}}return t})();var k$1=(function(t){return t.WEEKLY="WEEKLY",t.SEMI_MONTHLY="SEMI_MONTHLY",t.MONTHLY="MONTHLY",t})(k$1||{});var E$3=class t{static{this.ABSOLUTE=new t("ABSOLUTE","");}static{this.TODAY=new t("TODAY",w4.TODAY);}static{this.YESTERDAY=new t("YESTERDAY",w4.YESTERDAY);}static{this.THIS_WEEK=new t("THIS_WEEK",w4.THIS_WEEK);}static{this.LAST_WEEK=new t("LAST_WEEK",w4.LAST_WEEK);}static{this.THIS_MONTH=new t("THIS_MONTH",w4.THIS_MONTH);}static{this.LAST_MONTH=new t("LAST_MONTH",w4.LAST_MONTH);}static{this.THIS_YEAR=new t("THIS_YEAR",w4.THIS_YEAR);}static{this.LAST_YEAR=new t("LAST_YEAR",w4.LAST_YEAR);}static{this.PAST_TWO_WEEKS=new t("PAST_TWO_WEEKS",w4.PAST_TWO_WEEKS);}static{this.CURRENT_PERIOD=new t("CURRENT_PERIOD",w4.CURRENT_PERIOD);}static{this.LAST_PERIOD=new t("LAST_PERIOD",w4.LAST_PERIOD);}static{this.ALL_TIME=new t("ALL_TIME",w4.ALL_TIME);}constructor(n,e){this._type=n,this._label=e;}get type(){return this._type}get label(){return this._label}};c1(U2());var Yt$2=(()=>{class t{constructor(e){this.translate=e;}transform(e,r,i,o,a=false,s="ddd, MMM D"){return Z$3(e,r,this.translate,i,o,a,s)}static{this.\u0275fac=function(r){return new(r||t)(N$5(K0,16))};}static{this.\u0275pipe=Kn$1({name:"dateFormat",type:t,pure:true,standalone:false});}}return t})();var h$2=c1(X1());function $r(t,n,e,r,i=false,o="",a=false){if(t.isAllTime)return {labelPrint:o+e.instant("GLOBAL.ALL_TIME_LABEL"),zoomLevel:null,dateRangeType:E$3.ALL_TIME,label:o+e.instant("GLOBAL.ALL_TIME_LABEL"),customDateRangeLabel:o+e.instant("REPORTS.SHARE_REPORT.DATE_RANGE.ALL_TIME_LABEL")};n=n||I4.MONDAY;let s=t.start.clone(),c=t.end.clone(),f=se$2(s,c,i,r);if(s.isSame(c,"day"))return ie$2(s,f,o,e,r,i);if(ce$3(s,c,n))return {labelPrint:f,zoomLevel:Wz.WEEK,dateRangeType:E$3.THIS_WEEK,label:o+e.instant("TRACKER.APPROVAL.THIS_WEEK"),customDateRangeLabel:o+e.instant("REPORTS.SHARE_REPORT.DATE_RANGE.THIS_WEEK")};if(fe$1(s,c,n))return {labelPrint:f,zoomLevel:Wz.WEEK,dateRangeType:E$3.LAST_WEEK,label:o+e.instant("TRACKER.APPROVAL.LAST_WEEK"),customDateRangeLabel:o+e.instant("REPORTS.SHARE_REPORT.DATE_RANGE.LAST_WEEK")};if(me$5(s,c,n))return {labelPrint:f,zoomLevel:Wz.WEEK,dateRangeType:E$3.PAST_TWO_WEEKS,label:o+e.instant("GLOBAL.PAST_2_WEEKS_LABEL"),customDateRangeLabel:o+e.instant("REPORTS.SHARE_REPORT.DATE_RANGE.PAST_2_WEEKS_LABEL")};let p=Le$4(s,c),l=Ae$3(s,c),g=Se$4(s,c)&&!Nt$3(s,c);return p&&(l||g)?oe$1(s,c,f,o,e):de$1(s,c)&&a?{labelPrint:f,zoomLevel:Wz.SEMI,dateRangeType:E$3.CURRENT_PERIOD,label:o+e.instant("GLOBAL.CURRENT_PERIOD"),customDateRangeLabel:o+e.instant("REPORTS.SHARE_REPORT.DATE_RANGE.CURRENT_PERIOD")}:he$4(s,c)&&a?{labelPrint:f,zoomLevel:Wz.SEMI,dateRangeType:E$3.LAST_PERIOD,label:o+e.instant("GLOBAL.LAST_PERIOD"),customDateRangeLabel:o+e.instant("REPORTS.SHARE_REPORT.DATE_RANGE.LAST_PERIOD")}:Nt$3(s,c)?ae$1(s,c,f,o,e):{labelPrint:f,zoomLevel:ue$2(c,s,a),dateRangeType:E$3.ABSOLUTE,label:f}}function ie$2(t,n,e,r,i,o){return tt$2(t)?{labelPrint:n,zoomLevel:null,dateRangeType:E$3.TODAY,label:e+r.instant("GLOBAL.TODAY_LABEL"),customDateRangeLabel:e+r.instant("REPORTS.SHARE_REPORT.DATE_RANGE.TODAY_LABEL")}:et$1(t)?{labelPrint:n,zoomLevel:null,dateRangeType:E$3.YESTERDAY,label:e+r.instant("GLOBAL.YESTERDAY_LABEL"),customDateRangeLabel:e+r.instant("REPORTS.SHARE_REPORT.DATE_RANGE.YESTERDAY_LABEL")}:{labelPrint:n,zoomLevel:null,dateRangeType:E$3.ABSOLUTE,label:`${Z$3(t,i,r,"",false,false,"ddd, MMM D",o)}`}}function oe$1(t,n,e,r,i){if(pe$1(t,n))return {labelPrint:e,zoomLevel:Wz.MONTH,dateRangeType:E$3.THIS_MONTH,label:r+i.instant("GLOBAL.THIS_MONTH_LABEL"),customDateRangeLabel:r+i.instant("REPORTS.SHARE_REPORT.DATE_RANGE.THIS_MONTH_LABEL")};if(le$4(t,n))return {labelPrint:e,zoomLevel:Wz.MONTH,dateRangeType:E$3.LAST_MONTH,label:r+i.instant("GLOBAL.LAST_MONTH_LABEL"),customDateRangeLabel:r+i.instant("REPORTS.SHARE_REPORT.DATE_RANGE.LAST_MONTH_LABEL")};let o=t.isSame(n,"month")?`${t.format("MMMM, YYYY")}`:`${t.format("MMMM, YYYY")} - ${n.format("MMMM, YYYY")}`;return {labelPrint:e,zoomLevel:Wz.MONTH,dateRangeType:E$3.ABSOLUTE,label:o}}function ae$1(t,n,e,r,i){if(Ee$4(t,n))return {labelPrint:e,zoomLevel:Wz.YEAR,dateRangeType:E$3.THIS_YEAR,label:r+i.instant("GLOBAL.THIS_YEAR_LABEL"),customDateRangeLabel:r+i.instant("REPORTS.SHARE_REPORT.DATE_RANGE.THIS_YEAR_LABEL")};if(ye$4(t,n))return {labelPrint:e,zoomLevel:Wz.YEAR,dateRangeType:E$3.LAST_YEAR,label:r+i.instant("GLOBAL.LAST_YEAR_LABEL"),customDateRangeLabel:r+i.instant("REPORTS.SHARE_REPORT.DATE_RANGE.LAST_YEAR_LABEL")};let o=t.isSame(n,"year")?`${t.format("YYYY")}`:`${t.format("YYYY")} - ${n.format("YYYY")}`;return {labelPrint:e,zoomLevel:Wz.YEAR,dateRangeType:E$3.ABSOLUTE,label:o}}function se$2(t,n,e,r){return e?`${t.locale(r).format("MMM D, YYYY")} -
+ ${n.locale(r).format("MMM D, YYYY")}`:`${t.locale(r).format("MMM D")} -
+ ${n.locale(r).format("MMM D")}`}function ue$2(t,n,e){return t.diff(n,"day")>1&&t.diff(n,"day")<=7?Wz.WEEK:Ft$1(n,t)?Wz.YEAR:t.diff(n,"day")>7&&e?Wz.SEMI:Wz.WEEK}function tt$2(t){let n=(0, h$2.default)().startOf("day");return t.isSame(n,"d")}function et$1(t){let n=(0, h$2.default)().subtract(1,"days").startOf("day");return t.isSame(n,"d")}function ce$3(t,n,e){let r=jQ(e),i=r,o=(0, h$2.default)(r).add(6,"days").endOf("day");return i.isSame(t,"d")&&o.isSame(n,"d")}function fe$1(t,n,e){let r=jQ(e),i=(0, h$2.default)(r).subtract(1,"week"),o=(0, h$2.default)(r).subtract(1,"day").endOf("day");return i.isSame(t,"d")&&o.isSame(n,"d")}function me$5(t,n,e){let r=jQ(e),i=(0, h$2.default)(r).subtract(2,"week"),o=(0, h$2.default)(r).subtract(1,"day").endOf("day");return i.isSame(t,"d")&&o.isSame(n,"d")}function pe$1(t,n){let e=(0, h$2.default)().startOf("month"),r=(0, h$2.default)().endOf("month");return e.isSame(t,"d")&&r.isSame(n,"d")}function le$4(t,n){let e=(0, h$2.default)().subtract(1,"month").startOf("month"),r=(0, h$2.default)().subtract(1,"month").endOf("month");return e.isSame(t,"d")&&r.isSame(n,"d")}function de$1(t,n){let e=(0, h$2.default)();if(e.date()<=15){let r=e.clone().startOf("month"),i=e.clone().startOf("month").add(14,"day").endOf("day");return r.isSame(t,"d")&&i.isSame(n,"d")}else {let r=e.clone().startOf("month").add(15,"day").startOf("day"),i=e.clone().endOf("month");return r.isSame(t,"d")&&i.isSame(n,"d")}}function he$4(t,n){let e=(0, h$2.default)();if(e.date()<15){let r=e.clone().startOf("month").subtract(1,"month").add(15,"day").startOf("day"),i=e.clone().subtract(1,"month").endOf("month");return r.isSame(t,"d")&&i.isSame(n,"d")}else {let r=e.clone().startOf("month"),i=e.clone().startOf("month").add(14,"day").endOf("day");return r.isSame(t,"d")&&i.isSame(n,"d")}}function Ee$4(t,n){let e=(0, h$2.default)().startOf("year"),r=(0, h$2.default)().endOf("year");return e.isSame(t,"d")&&r.isSame(n,"d")}function ye$4(t,n){let e=(0, h$2.default)().subtract(1,"year").startOf("year"),r=(0, h$2.default)().subtract(1,"year").endOf("year");return e.isSame(t,"d")&&r.isSame(n,"d")}function _t$5(t){return t.date()===1}function wt$1(t){return t.daysInMonth()===t.date()}function Ae$3(t,n){return _t$5(t)&&wt$1(n)&&t.month()===n.month()}function Se$4(t,n){return _t$5(t)&&wt$1(n)}function Te$6(t){return t.isSame((0, h$2.default)(t).startOf("year"),"day")}function Pe$4(t){return t.isSame((0, h$2.default)(t).endOf("year"),"day")}function Nt$3(t,n){return Te$6(t)&&Pe$4(n)}function Le$4(t,n){return !Ft$1(t,n)}function Ft$1(t,n){let e=t.clone().add(1,"year").subtract(1,"day");return n.isSameOrAfter(e)}var R$4=(function(t){return t.NONE="",t.UPON_RECEIPT="GLOBAL.UPON_RECEIPT_LABEL",t.AFTER_10="GLOBAL.AFTER_10_DAYS_LABEL",t.AFTER_15="GLOBAL.AFTER_15_DAYS_LABEL",t.AFTER_30="GLOBAL.AFTER_30_DAYS_LABEL",t.AFTER_60="GLOBAL.AFTER_60_DAYS_LABEL",t.AFTER_90="GLOBAL.AFTER_90_DAYS_LABEL",t.TODAY="GLOBAL.TODAY_LABEL",t.YESTERDAY="GLOBAL.YESTERDAY_LABEL",t.SELECT_DATE="GLOBAL.SELECT_DATE",t})(R$4||{});var y$1=c1(X1()),Xr={start:(0, y$1.default)().subtract(1,"month"),end:(0, y$1.default)().subtract(1,"month"),isAllTime:true},Ct$3=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"];function tn$2(t,n,e){switch(t=t.clone(),e){case k$1.MONTHLY:t=y$1.default.utc(t).startOf("month").startOf("day");break;case k$1.SEMI_MONTHLY:t=t.date()<16?t.startOf("month").startOf("day"):t.startOf("month").add("15","days").startOf("day");break;case k$1.WEEKLY:for(;t.day()!==Ct$3.indexOf(n.toUpperCase());)t=t.subtract(1,"day").startOf("day");break;}return t}function en$2(t,n){for(t=t.clone();t.day()!==Ct$3.indexOf(n.toUpperCase());)t=t.subtract(1,"day").startOf("day");return t}function I$3(t,n,e){let i=(t&&t.clone()||(0, y$1.default)()).add(e,"days").startOf("day");return n.isSame(i,"d")}function rn$2(t){let n=y$1.default.utc(t.start),e=(0, y$1.default)().set({date:n.date(),month:n.month(),year:n.year()}).startOf("day"),r=y$1.default.utc(t.end),i=(0, y$1.default)().set({date:r.date(),month:r.month(),year:r.year()}).startOf("day");return {start:e,end:i}}function nn$2(t,n){return tt$2(t)?{label:n.instant("GLOBAL.TODAY_LABEL")}:et$1(t)?{label:n.instant("GLOBAL.YESTERDAY_LABEL")}:{label:R$4.NONE}}function on$2(t,n){let e=t.clone(),r={label:R$4.NONE};return I$3(n,e,0)?(r.label=R$4.UPON_RECEIPT,r):I$3(n,e,10)?(r.label=R$4.AFTER_10,r):I$3(n,e,15)?(r.label=R$4.AFTER_15,r):I$3(n,e,30)?(r.label=R$4.AFTER_30,r):I$3(n,e,60)?(r.label=R$4.AFTER_60,r):(I$3(n,e,90)&&(r.label=R$4.AFTER_90),r)}function an$2(t,n){if(!t)return null;if(n=n||I4.MONDAY,t===w4.TODAY)return {start:y$1.default.utc().startOf("day"),end:y$1.default.utc().endOf("day")};if(t===w4.YESTERDAY)return {start:y$1.default.utc().subtract(1,"day").startOf("day"),end:y$1.default.utc().subtract(1,"day").endOf("day")};if(t===w4.THIS_WEEK)return Zw(n,new Jw);if(t===w4.LAST_WEEK){let e=Zw(n,new Jw);return {start:e.start.subtract(1,"week"),end:e.end.subtract(1,"week")}}else if(t===w4.PAST_TWO_WEEKS){let e=Zw(n,new Jw);return {start:e.start.subtract(2,"week"),end:e.end.subtract(1,"week")}}else {if(t===w4.THIS_MONTH)return {start:y$1.default.utc().startOf("month"),end:y$1.default.utc().endOf("month")};if(t===w4.LAST_MONTH)return {start:y$1.default.utc().subtract(1,"month").startOf("month"),end:y$1.default.utc().subtract(1,"month").endOf("month")}}return null}function sn$2(t,n,e,r){let i=n?.map(s=>s.toString());if(i&&!i.includes(t.locale("en").format("dddd").toUpperCase()))return true;let o=e?.some(s=>{let c=s.occursAnnually?t.format("MM-DD"):t.format("YYYY-MM-DD"),f=s.occursAnnually?s.day.format("MM-DD"):s.day.format("YYYY-MM-DD");return c===f}),a=r?.some(s=>s.format("YYYY-MM-DD")===t.format("YYYY-MM-DD"));return o||a}function un$3(t,n){return !!n?.some(e=>e.format("YYYY-MM-DD")===t.format("YYYY-MM-DD"))}function It$3(t,n){return Array.from({length:7},(e,r)=>(0, y$1.default)().locale(t).day(r).format(n))}var mn$3=(()=>{class t{transform(e,r){let i=It$3(r," ddd");return e.sort((a,s)=>a-s).map(a=>a===6?i[0]:i[a+1]).toString()}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=Kn$1({name:"displayDayOfWeek",type:t,pure:true,standalone:false});}}return t})();var dn$3=(()=>{class t{transform(e){let i=e.sort(Eve(o=>o.toLowerCase(),false));return "".concat(i.map(o=>o).join(", "))}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=Kn$1({name:"displayNames",type:t,pure:true,standalone:false});}}return t})();var yn$3=(()=>{class t{constructor(e){this.translate=e;}transform(e,r){return e.accessEnabled?r.membershipStatus==t0.PENDING?this.handlePendingUser(e.name||""):this.handleActiveUser(e,r.currentUserId):this.handleBannedUser(e.name||"")}handleBannedUser(e=""){return `${e} (${this.translate.instant("GLOBAL.BANNED")})`}handlePendingUser(e=""){return `${e} ${this.translate.instant("GLOBAL.PENDING_USER_LABEL")}`}handleActiveUser(e,r){let i=this.translate.instant("TEAMS.CURRENT_USER_LABEL");return e.id===r?`${e.name} ${i}`:e.name}static{this.\u0275fac=function(r){return new(r||t)(N$5(K0,16))};}static{this.\u0275pipe=Kn$1({name:"displayTeamMemberNamelabelPipe",type:t,pure:true,standalone:false});}}return t})();var Q$2=c1(X1());var Pn$2=(()=>{class t{constructor(e){this.translate=e;}transform(e,r,i,o=void 0){if(!e)return this.translate.instant("GLOBAL.IN_PROGRESS_LABEL");let a=o?(0, Q$2.default)(r).tz(o):(0, Q$2.default)(r);return a.diff((0, Q$2.default)().subtract(1,"month"))>=0?a.locale(i).fromNow():a.locale(i).format("DD MMM YYYY")}static{this.\u0275fac=function(r){return new(r||t)(N$5(K0,16))};}static{this.\u0275pipe=Kn$1({name:"durationToHumanize",type:t,pure:true,standalone:false});}}return t})();var bn$3=(()=>{class t{transform(e,r,i,o){return !r||!i?e:e.filter(a=>be$2(i(a),r))}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=Kn$1({name:"filter",type:t,pure:true,standalone:false});}}return t})();function be$2(t,n){return !t||!n?false:t.toLowerCase().indexOf(n.toLowerCase())!==-1}var rt$5=c1(X1());var Rn$2=(()=>{class t{constructor(e){this.translate=e;}transform(e,r,i,o){let a=o&&o===Jp.HOUR12?"h:mm A":"HH:mm",s=i?rt$5.default.tz(e,i):(0, rt$5.default)(e);return s.locale(r),this.translate.instant("GLOBAL.STARTED_ON_DATE_LABEL",{date:s.format("MMM DD, YYYY"),time:s.format(a)})}static{this.\u0275fac=function(r){return new(r||t)(N$5(K0,16))};}static{this.\u0275pipe=Kn$1({name:"formatStart",type:t,pure:true,standalone:false});}}return t})();var Oe$5={grad:.9,turn:360,rad:360/(2*Math.PI)},Y$2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},A=function(t,n,e){return n===void 0&&(n=0),e===void 0&&(e=Math.pow(10,n)),Math.round(e*t)/e+0},O$5=function(t,n,e){return n===void 0&&(n=0),e===void 0&&(e=1),t>e?e:t>n?t:n},Gt=function(t){return (t=isFinite(t)?t%360:0)>0?t:t+360},vt$2=function(t){return {r:O$5(t.r,0,255),g:O$5(t.g,0,255),b:O$5(t.b,0,255),a:O$5(t.a)}},nt$3=function(t){return {r:A(t.r),g:A(t.g),b:A(t.b),a:A(t.a,3)}},ge$2=/^#([0-9a-f]{3,8})$/i,X$4=function(t){var n=t.toString(16);return n.length<2?"0"+n:n},Wt$2=function(t){var n=t.r,e=t.g,r=t.b,i=t.a,o=Math.max(n,e,r),a=o-Math.min(n,e,r),s=a?o===n?(e-r)/a:o===e?2+(r-n)/a:4+(n-e)/a:0;return {h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:i}},Kt$3=function(t){var n=t.h,e=t.s,r=t.v,i=t.a;n=n/360*6,e/=100,r/=100;var o=Math.floor(n),a=r*(1-e),s=r*(1-(n-o)*e),c=r*(1-(1-n+o)*e),f=o%6;return {r:255*[r,s,a,a,c,r][f],g:255*[c,r,r,s,a,a][f],b:255*[a,a,c,r,r,s][f],a:i}},Bt$3=function(t){return {h:Gt(t.h),s:O$5(t.s,0,100),l:O$5(t.l,0,100),a:O$5(t.a)}},Ut$1=function(t){return {h:A(t.h),s:A(t.s),l:A(t.l),a:A(t.a,3)}},Ht$1=function(t){return Kt$3((e=(n=t).s,{h:n.h,s:(e*=((r=n.l)<50?r:100-r)/100)>0?2*e/(r+e)*100:0,v:r+e,a:n.a}));var n,e,r;},z$1=function(t){return {h:(n=Wt$2(t)).h,s:(i=(200-(e=n.s))*(r=n.v)/100)>0&&i<200?e*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:n.a};var n,e,r,i;},Re$4=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xe$2=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,De$3=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Me$7=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,at$4={string:[[function(t){var n=ge$2.exec(t);return n?(t=n[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?A(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?A(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var n=De$3.exec(t)||Me$7.exec(t);return n?n[2]!==n[4]||n[4]!==n[6]?null:vt$2({r:Number(n[1])/(n[2]?100/255:1),g:Number(n[3])/(n[4]?100/255:1),b:Number(n[5])/(n[6]?100/255:1),a:n[7]===void 0?1:Number(n[7])/(n[8]?100:1)}):null},"rgb"],[function(t){var n=Re$4.exec(t)||xe$2.exec(t);if(!n)return null;var e,r,i=Bt$3({h:(e=n[1],r=n[2],r===void 0&&(r="deg"),Number(e)*(Oe$5[r]||1)),s:Number(n[3]),l:Number(n[4]),a:n[5]===void 0?1:Number(n[5])/(n[6]?100:1)});return Ht$1(i)},"hsl"]],object:[[function(t){var n=t.r,e=t.g,r=t.b,i=t.a,o=i===void 0?1:i;return Y$2(n)&&Y$2(e)&&Y$2(r)?vt$2({r:Number(n),g:Number(e),b:Number(r),a:Number(o)}):null},"rgb"],[function(t){var n=t.h,e=t.s,r=t.l,i=t.a,o=i===void 0?1:i;if(!Y$2(n)||!Y$2(e)||!Y$2(r))return null;var a=Bt$3({h:Number(n),s:Number(e),l:Number(r),a:Number(o)});return Ht$1(a)},"hsl"],[function(t){var n=t.h,e=t.s,r=t.v,i=t.a,o=i===void 0?1:i;if(!Y$2(n)||!Y$2(e)||!Y$2(r))return null;var a=(function(s){return {h:Gt(s.h),s:O$5(s.s,0,100),v:O$5(s.v,0,100),a:O$5(s.a)}})({h:Number(n),s:Number(e),v:Number(r),a:Number(o)});return Kt$3(a)},"hsv"]]},kt$1=function(t,n){for(var e=0;eT&&(m=T);}return {[h]:b,[f]:m}}}};function ut$1(){return typeof window<"u"}function Ve$2(e){return Un(e)?(e.nodeName||"").toLowerCase():"#document"}function N$4(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return (t=(Un(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Un(e){return ut$1()?e instanceof Node||e instanceof N$4(e).Node:false}function q$1(e){return ut$1()?e instanceof Element||e instanceof N$4(e).Element:false}function ne$2(e){return ut$1()?e instanceof HTMLElement||e instanceof N$4(e).HTMLElement:false}function wn$2(e){return !ut$1()||typeof ShadowRoot>"u"?false:e instanceof ShadowRoot||e instanceof N$4(e).ShadowRoot}function Je$1(e){let{overflow:t,overflowX:n,overflowY:i,display:o}=Y$1(e);return /auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function zi$2(e){return ["table","td","th"].includes(Ve$2(e))}function dt$2(e){return [":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return false}})}function Wt$1(e){let t=$t(),n=q$1(e)?Y$1(e):e;return ["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":false)||(n.containerType?n.containerType!=="normal":false)||!t&&(n.backdropFilter?n.backdropFilter!=="none":false)||!t&&(n.filter?n.filter!=="none":false)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function qi$1(e){let t=be$1(e);for(;ne$2(t)&&!je$3(t);){if(Wt$1(t))return t;if(dt$2(t))return null;t=be$1(t);}return null}function $t(){return typeof CSS>"u"||!CSS.supports?false:CSS.supports("-webkit-backdrop-filter","none")}function je$3(e){return ["html","body","#document"].includes(Ve$2(e))}function Y$1(e){return N$4(e).getComputedStyle(e)}function ht$1(e){return q$1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function be$1(e){if(Ve$2(e)==="html")return e;let t=e.assignedSlot||e.parentNode||wn$2(e)&&e.host||oe(e);return wn$2(t)?t.host:t}function Wn(e){let t=be$1(e);return je$3(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne$2(t)&&Je$1(t)?t:Wn(t)}function Xe$2(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=true);let o=Wn(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=N$4(o);if(s){let l=Dt$1(r);return t.concat(r,r.visualViewport||[],Je$1(o)?o:[],l&&n?Xe$2(l):[])}return t.concat(o,Xe$2(o,[],n))}function Dt$1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $n$1(e){let t=Y$1(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=ne$2(e),s=o?e.offsetWidth:n,r=o?e.offsetHeight:i,l=rt$4(n)!==s||rt$4(i)!==r;return l&&(n=s,i=r),{width:n,height:i,$:l}}function zt(e){return q$1(e)?e:e.contextElement}function Le$3(e){let t=zt(e);if(!ne$2(t))return te$2(1);let n=t.getBoundingClientRect(),{width:i,height:o,$:s}=$n$1(t),r=(s?rt$4(n.width):n.width)/i,l=(s?rt$4(n.height):n.height)/o;return (!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var Yi$1=te$2(0);function zn(e){let t=N$4(e);return !$t()||!t.visualViewport?Yi$1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xi$1(e,t,n){return t===void 0&&(t=false),!n||t&&n!==N$4(e)?false:t}function Ae$1(e,t,n,i){t===void 0&&(t=false),n===void 0&&(n=false);let o=e.getBoundingClientRect(),s=zt(e),r=te$2(1);t&&(i?q$1(i)&&(r=Le$3(i)):r=Le$3(e));let l=Xi$1(s,n,i)?zn(s):te$2(0),c=(o.left+l.x)/r.x,a=(o.top+l.y)/r.y,u=o.width/r.x,d=o.height/r.y;if(s){let f=N$4(s),h=i&&q$1(i)?N$4(i):i,b=f,m=Dt$1(b);for(;m&&i&&h!==b;){let y=Le$3(m),w=m.getBoundingClientRect(),E=Y$1(m),x=w.left+(m.clientLeft+parseFloat(E.paddingLeft))*y.x,g=w.top+(m.clientTop+parseFloat(E.paddingTop))*y.y;c*=y.x,a*=y.y,u*=y.x,d*=y.y,c+=x,a+=g,b=N$4(m),m=Dt$1(b);}}return at$2({width:u,height:d,x:c,y:a})}function qt$1(e,t){let n=ht$1(e).scrollLeft;return t?t.left+n:Ae$1(oe(e)).left+n}function qn$1(e,t,n){n===void 0&&(n=false);let i=e.getBoundingClientRect(),o=i.left+t.scrollLeft-(n?0:qt$1(e,i)),s=i.top+t.scrollTop;return {x:o,y:s}}function Zi$1(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e,s=o==="fixed",r=oe(i),l=t?dt$2(t.floating):false;if(i===r||l&&s)return n;let c={scrollLeft:0,scrollTop:0},a=te$2(1),u=te$2(0),d=ne$2(i);if((d||!d&&!s)&&((Ve$2(i)!=="body"||Je$1(r))&&(c=ht$1(i)),ne$2(i))){let h=Ae$1(i);a=Le$3(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop;}let f=r&&!d&&!s?qn$1(r,c,true):te$2(0);return {width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+f.x,y:n.y*a.y-c.scrollTop*a.y+u.y+f.y}}function Gi$2(e){return Array.from(e.getClientRects())}function Ji$2(e){let t=oe(e),n=ht$1(e),i=e.ownerDocument.body,o=De$1(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=De$1(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),r=-n.scrollLeft+qt$1(e),l=-n.scrollTop;return Y$1(i).direction==="rtl"&&(r+=De$1(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}function Qi$2(e,t){let n=N$4(e),i=oe(e),o=n.visualViewport,s=i.clientWidth,r=i.clientHeight,l=0,c=0;if(o){s=o.width,r=o.height;let a=$t();(!a||a&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop);}return {width:s,height:r,x:l,y:c}}function eo(e,t){let n=Ae$1(e,true,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=ne$2(e)?Le$3(e):te$2(1),r=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,a=i*s.y;return {width:r,height:l,x:c,y:a}}function vn$2(e,t,n){let i;if(t==="viewport")i=Qi$2(e,n);else if(t==="document")i=Ji$2(oe(e));else if(q$1(t))i=eo(t,n);else {let o=zn(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height};}return at$2(i)}function Yn(e,t){let n=be$1(e);return n===t||!q$1(n)||je$3(n)?false:Y$1(n).position==="fixed"||Yn(n,t)}function to(e,t){let n=t.get(e);if(n)return n;let i=Xe$2(e,[],false).filter(l=>q$1(l)&&Ve$2(l)!=="body"),o=null,s=Y$1(e).position==="fixed",r=s?be$1(e):e;for(;q$1(r)&&!je$3(r);){let l=Y$1(r),c=Wt$1(r);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Je$1(r)&&!c&&Yn(e,r))?i=i.filter(u=>u!==r):o=l,r=be$1(r);}return t.set(e,i),i}function no(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e,r=[...n==="clippingAncestors"?dt$2(t)?[]:to(t,this._c):[].concat(n),i],l=r[0],c=r.reduce((a,u)=>{let d=vn$2(t,u,o);return a.top=De$1(d.top,a.top),a.right=Be$3(d.right,a.right),a.bottom=Be$3(d.bottom,a.bottom),a.left=De$1(d.left,a.left),a},vn$2(t,l,o));return {width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function io(e){let{width:t,height:n}=$n$1(e);return {width:t,height:n}}function oo(e,t,n){let i=ne$2(t),o=oe(t),s=n==="fixed",r=Ae$1(e,true,s,t),l={scrollLeft:0,scrollTop:0},c=te$2(0);function a(){c.x=qt$1(o);}if(i||!i&&!s)if((Ve$2(t)!=="body"||Je$1(o))&&(l=ht$1(t)),i){let h=Ae$1(t,true,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop;}else o&&a();s&&!i&&o&&a();let u=o&&!i&&!s?qn$1(o,l):te$2(0),d=r.left+l.scrollLeft-c.x-u.x,f=r.top+l.scrollTop-c.y-u.y;return {x:d,y:f,width:r.width,height:r.height}}function wt(e){return Y$1(e).position==="static"}function yn$2(e,t){if(!ne$2(e)||Y$1(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function Xn$1(e,t){let n=N$4(e);if(dt$2(e))return n;if(!ne$2(e)){let o=be$1(e);for(;o&&!je$3(o);){if(q$1(o)&&!wt(o))return o;o=be$1(o);}return n}let i=yn$2(e,t);for(;i&&zi$2(i)&&wt(i);)i=yn$2(i,t);return i&&je$3(i)&&wt(i)&&!Wt$1(i)?n:i||qi$1(e)||n}var so=function(t){return $n$2(this,null,function*(){let n=this.getOffsetParent||Xn$1,i=this.getDimensions,o=yield i(t.floating);return {reference:oo(t.reference,yield n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}})};function ro(e){return Y$1(e).direction==="rtl"}var lo={convertOffsetParentRelativeRectToViewportRelativeRect:Zi$1,getDocumentElement:oe,getClippingRect:no,getOffsetParent:Xn$1,getElementRects:so,getClientRects:Gi$2,getDimensions:io,getScale:Le$3,isElement:q$1,isRTL:ro};function Zn$1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function co(e,t){let n=null,i,o=oe(e);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null;}function r(l,c){l===void 0&&(l=false),c===void 0&&(c=1),s();let a=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=a;if(l||t(),!f||!h)return;let b=ot$2(d),m=ot$2(o.clientWidth-(u+f)),y=ot$2(o.clientHeight-(d+h)),w=ot$2(u),x={rootMargin:-b+"px "+-m+"px "+-y+"px "+-w+"px",threshold:De$1(0,Be$3(1,c))||1},g=true;function v(S){let T=S[0].intersectionRatio;if(T!==c){if(!g)return r();T?r(false,T):i=setTimeout(()=>{r(false,1e-7);},1e3);}T===1&&!Zn$1(a,e.getBoundingClientRect())&&r(),g=false;}try{n=new IntersectionObserver(v,B({},x,{root:o.ownerDocument}));}catch{n=new IntersectionObserver(v,x);}n.observe(e);}return r(true),s}function ao(e,t,n,i){i===void 0&&(i={});let{ancestorScroll:o=true,ancestorResize:s=true,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=false}=i,a=zt(e),u=o||s?[...a?Xe$2(a):[],...Xe$2(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:true}),s&&w.addEventListener("resize",n);});let d=a&&l?co(a,n):null,f=-1,h=null;r&&(h=new ResizeObserver(w=>{let[E]=w;E&&E.target===a&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t);})),n();}),a&&!c&&h.observe(a),h.observe(t));let b,m=c?Ae$1(e):null;c&&y();function y(){let w=Ae$1(e);m&&!Zn$1(m,w)&&n(),m=w,b=requestAnimationFrame(y);}return n(),()=>{var w;u.forEach(E=>{o&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n);}),d?.(),(w=h)==null||w.disconnect(),h=null,c&&cancelAnimationFrame(b);}}var fo=Vi$2,uo=Wi$1,ho=Ui$2,po=Ni$1,mo=$i$1,go=(e,t,n)=>{let i=new Map,o=B({platform:lo},n),s=B({},o.platform,{_c:i});return ji$1(e,t,B({},o,{platform:s}))};function bo(e){e.cleanup&&e.cleanup();let t=e._getResolvedAttachToOptions(),n=t.element,i=Do(t,e),o=jn(t);return o&&(n=document.body,e.shepherdElementComponent.getElement().classList.add("shepherd-centered")),e.cleanup=ao(n,e.el,()=>{if(!e.el){e.cleanup==null||e.cleanup();return}yo(n,e,i,o);}),e.target=t.element,i}function wo(e,t){return {floatingUIOptions:Bt$2(e.floatingUIOptions||{},t.floatingUIOptions||{})}}function vo(e){e.cleanup&&e.cleanup(),e.cleanup=null;}function yo(e,t,n,i){return go(e,t.el,n).then(xo(t,i)).then(o=>new Promise(s=>{setTimeout(()=>s(o),300);})).then(o=>{o!=null&&o.el&&(o.el.tabIndex=0,o.el.focus({preventScroll:true}));})}function xo(e,t){return ({x:n,y:i,placement:o,middlewareData:s})=>(e.el&&(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${n}px`,top:`${i}px`}),e.el.dataset.popperPlacement=o,Eo(e.el,s)),e)}function Eo(e,t){let n=e.querySelector(".shepherd-arrow");if(He$3(n)&&t.arrow){let{x:i,y:o}=t.arrow;Object.assign(n.style,{left:i!=null?`${i}px`:"",top:o!=null?`${o}px`:""});}}function Do(e,t){var n,i,o;let s={strategy:"absolute"};s.middleware=[];let r=_o(t),l=jn(e),c=(n=e.on)==null?void 0:n.includes("auto"),a=(e==null||(i=e.on)==null?void 0:i.includes("-start"))||(e==null||(o=e.on)==null?void 0:o.includes("-end"));if(!l){if(c){var u;s.middleware.push(fo({crossAxis:true,alignment:a?e==null||(u=e.on)==null?void 0:u.split("-").pop():null}));}else s.middleware.push(ho());if(s.middleware.push(uo({limiter:mo(),crossAxis:true})),r){let d=typeof t.options.arrow=="object"?t.options.arrow:{padding:4};s.middleware.push(po({element:r,padding:a?d.padding:0}));}c||(s.placement=e.on);}return Bt$2(s,t.options.floatingUIOptions||{})}function _o(e){return e.options.arrow&&e.el?e.el.querySelector(".shepherd-arrow"):false}function K$5(){}function Oo(e,t){for(let n in t)e[n]=t[n];return e}function Gn(e){return e()}function xn$1(){return Object.create(null)}function Qe$1(e){e.forEach(Gn);}function Yt$1(e){return typeof e=="function"}function le$3(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Co(e){return Object.keys(e).length===0}function Ne$3(e,t){e.appendChild(t);}function Z$1(e,t,n){e.insertBefore(t,n||null);}function W$4(e){e.parentNode&&e.parentNode.removeChild(e);}function So(e,t){for(let n=0;n1?o-1:0),S=1;S