@soton.ac.uk/cape3 3.2.0 → 3.3.0

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/cape3.es.js CHANGED
@@ -8892,7 +8892,7 @@ function vk(e, t) {
8892
8892
  xT('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>', 6)
8893
8893
  ]));
8894
8894
  }
8895
- const hk = /* @__PURE__ */ eo(fk, [["render", vk]]), pk = "3.1.0", _k = { class: "cape-plugin-version" }, mk = /* @__PURE__ */ Me({
8895
+ const hk = /* @__PURE__ */ eo(fk, [["render", vk]]), pk = "3.2.0", _k = { class: "cape-plugin-version" }, mk = /* @__PURE__ */ Me({
8896
8896
  __name: "CapeVersion",
8897
8897
  setup(e) {
8898
8898
  return (t, r) => (Y(), j("span", _k, "v" + xe(ie(pk)), 1));
package/dist/cape3.umd.js CHANGED
@@ -50,7 +50,7 @@ Arguments: `+Array.prototype.slice.call(r).join("")+`
50
50
  `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var g_={};function y_(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),g_[e]||(__(t),g_[e]=!0)}ae.suppressDeprecationWarnings=!1,ae.deprecationHandler=null;function jn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Uw(e){var t,n;for(n in e)Ge(e,n)&&(t=e[n],jn(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function sd(e,t){var n=ri({},e),r;for(r in t)Ge(t,r)&&(Ui(e[r])&&Ui(t[r])?(n[r]={},ri(n[r],e[r]),ri(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ge(e,r)&&!Ge(t,r)&&Ui(e[r])&&(n[r]=ri({},n[r]));return n}function ld(e){e!=null&&this.set(e)}var cd;Object.keys?cd=Object.keys:cd=function(e){var t,n=[];for(t in e)Ge(e,t)&&n.push(t);return n};var Hw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gw(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return jn(r)?r.call(t,n):r}function zn(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var ud=/(\[[^\[]*\])|(\\)?([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,uc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fd={},to={};function ge(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(to[e]=i),t&&(to[t[0]]=function(){return zn(i.apply(this,arguments),t[1],t[2])}),n&&(to[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Ww(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function jw(e){var t=e.match(ud),n,r;for(n=0,r=t.length;n<r;n++)to[t[n]]?t[n]=to[t[n]]:t[n]=Ww(t[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=jn(t[s])?t[s].call(i,e):t[s];return a}}function fc(e,t){return e.isValid()?(t=S_(t,e.localeData()),fd[t]=fd[t]||jw(t),fd[t](e)):e.localeData().invalidDate()}function S_(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(uc.lastIndex=0;n>=0&&uc.test(e);)e=e.replace(uc,r),uc.lastIndex=0,n-=1;return e}var zw={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 Kw(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ud).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qw="Invalid date";function Xw(){return this._invalidDate}var Jw="%d",Qw=/\d{1,2}/;function Zw(e){return this._ordinal.replace("%d",e)}var eb={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 tb(e,t,n,r){var i=this._relativeTime[n];return jn(i)?i(e,t,n,r):i.replace(/%d/i,e)}function nb(e,t){var n=this._relativeTime[e>0?"future":"past"];return jn(n)?n(t):n.replace(/%s/i,t)}var E_={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 vn(e){return typeof e=="string"?E_[e]||E_[e.toLowerCase()]:void 0}function dd(e){var t={},n,r;for(r in e)Ge(e,r)&&(n=vn(r),n&&(t[n]=e[r]));return t}var rb={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 ib(e){var t=[],n;for(n in e)Ge(e,n)&&t.push({unit:n,priority:rb[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var T_=/\d/,an=/\d\d/,N_=/\d{3}/,hd=/\d{4}/,dc=/[+-]?\d{6}/,it=/\d\d?/,w_=/\d\d\d\d?/,b_=/\d\d\d\d\d\d?/,hc=/\d{1,3}/,pd=/\d{1,4}/,pc=/[+-]?\d{1,6}/,no=/\d+/,mc=/[+-]?\d+/,ab=/Z|[+-]\d\d:?\d\d/gi,vc=/Z|[+-]\d\d(?::?\d\d)?/gi,ob=/[+-]?\d+(\.\d{1,3})?/,Ns=/[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,ro=/^[1-9]\d?/,md=/^([1-9]\d|\d)/,_c;_c={};function le(e,t,n){_c[e]=jn(t)?t:function(r,i){return r&&n?n:t}}function sb(e,t){return Ge(_c,e)?_c[e](t._strict,t._locale):new RegExp(lb(e))}function lb(e){return Tr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Tr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _n(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ve(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=_n(t)),n}var vd={};function qe(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Er(t)&&(r=function(a,s){s[t]=Ve(a)}),i=e.length,n=0;n<i;n++)vd[e[n]]=r}function ws(e,t){qe(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function cb(e,t,n){t!=null&&Ge(vd,e)&&vd[e](t,n._a,n,e)}function gc(e){return e%4===0&&e%100!==0||e%400===0}var Lt=0,Nr=1,Kn=2,Tt=3,On=4,wr=5,Hi=6,ub=7,fb=8;ge("Y",0,0,function(){var e=this.year();return e<=9999?zn(e,4):"+"+e}),ge(0,["YY",2],0,function(){return this.year()%100}),ge(0,["YYYY",4],0,"year"),ge(0,["YYYYY",5],0,"year"),ge(0,["YYYYYY",6,!0],0,"year"),le("Y",mc),le("YY",it,an),le("YYYY",pd,hd),le("YYYYY",pc,dc),le("YYYYYY",pc,dc),qe(["YYYYY","YYYYYY"],Lt),qe("YYYY",function(e,t){t[Lt]=e.length===2?ae.parseTwoDigitYear(e):Ve(e)}),qe("YY",function(e,t){t[Lt]=ae.parseTwoDigitYear(e)}),qe("Y",function(e,t){t[Lt]=parseInt(e,10)});function bs(e){return gc(e)?366:365}ae.parseTwoDigitYear=function(e){return Ve(e)+(Ve(e)>68?1900:2e3)};var D_=io("FullYear",!0);function db(){return gc(this.year())}function io(e,t){return function(n){return n!=null?(k_(this,e,n),ae.updateOffset(this,t),this):Ds(this,e)}}function Ds(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function k_(e,t,n){var r,i,a,s,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),l=e.date(),l=l===29&&s===1&&!gc(a)?28:l,i?r.setUTCFullYear(a,s,l):r.setFullYear(a,s,l)}}function hb(e){return e=vn(e),jn(this[e])?this[e]():this}function pb(e,t){if(typeof e=="object"){e=dd(e);var n=ib(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=vn(e),jn(this[e]))return this[e](t);return this}function mb(e,t){return(e%t+t)%t}var pt;Array.prototype.indexOf?pt=Array.prototype.indexOf:pt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function _d(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=mb(t,12);return e+=(t-n)/12,n===1?gc(e)?29:28:31-n%7%2}ge("M",["MM",2],"Mo",function(){return this.month()+1}),ge("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ge("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",it,ro),le("MM",it,an),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),qe(["M","MM"],function(e,t){t[Nr]=Ve(e)-1}),qe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Nr]=i:Ce(n).invalidMonth=e});var vb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),C_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),I_=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_b=Ns,gb=Ns;function yb(e,t){return e?In(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||I_).test(t)?"format":"standalone"][e.month()]:In(this._months)?this._months:this._months.standalone}function Sb(e,t){return e?In(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[I_.test(t)?"format":"standalone"][e.month()]:In(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Eb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Wn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null):(i=pt.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:(i=pt.call(this._longMonthsParse,s),i!==-1?i:null)):(i=pt.call(this._longMonthsParse,s),i!==-1?i:(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null))}function Tb(e,t,n){var r,i,a;if(this._monthsParseExact)return Eb.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Wn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function R_(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ve(t);else if(t=e.localeData().monthsParse(t),!Er(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,_d(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function O_(e){return e!=null?(R_(this,e),ae.updateOffset(this,!0),this):Ds(this,"Month")}function Nb(){return _d(this.year(),this.month())}function wb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=_b),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=gb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function P_(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,a,s,l;for(i=0;i<12;i++)a=Wn([2e3,i]),s=Tr(this.monthsShort(a,"")),l=Tr(this.months(a,"")),t.push(s),n.push(l),r.push(l),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Db(e,t,n,r,i,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,a,s),l}function ks(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yc(e,t,n){var r=7+t-n,i=(7+ks(e,0,r).getUTCDay()-t)%7;return-i+r-1}function A_(e,t,n,r,i){var a=(7+n-r)%7,s=yc(e,r,i),l=1+7*(t-1)+a+s,c,u;return l<=0?(c=e-1,u=bs(c)+l):l>bs(e)?(c=e+1,u=l-bs(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Cs(e,t,n){var r=yc(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+br(s,t,n)):i>br(e.year(),t,n)?(a=i-br(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function br(e,t,n){var r=yc(e,t,n),i=yc(e+1,t,n);return(bs(e)-r+i)/7}ge("w",["ww",2],"wo","week"),ge("W",["WW",2],"Wo","isoWeek"),le("w",it,ro),le("ww",it,an),le("W",it,ro),le("WW",it,an),ws(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ve(e)});function kb(e){return Cs(e,this._week.dow,this._week.doy).week}var Cb={dow:0,doy:6};function Ib(){return this._week.dow}function Rb(){return this._week.doy}function Ob(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pb(e){var t=Cs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ge("d",0,"do","day"),ge("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ge("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ge("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ge("e",0,0,"weekday"),ge("E",0,0,"isoWeekday"),le("d",it),le("e",it),le("E",it),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ws(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ce(n).invalidWeekday=e}),ws(["d","e","E"],function(e,t,n,r){t[r]=Ve(e)});function Ab(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Mb(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var xb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),M_="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lb=Ns,Fb=Ns,Yb=Ns;function $b(e,t){var n=In(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gd(n,this._week.dow):e?n[e.day()]:n}function Bb(e){return e===!0?gd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ub(e){return e===!0?gd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Wn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1||(i=pt.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=pt.call(this._minWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Gb(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Hb.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Wn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wb(e){if(!this.isValid())return e!=null?this:NaN;var t=Ds(this,"Day");return e!=null?(e=Ab(e,this.localeData()),this.add(e-t,"d")):t}function jb(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function zb(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Mb(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Kb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=Lb),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fb),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yb),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yd(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],i=[],a,s,l,c,u;for(a=0;a<7;a++)s=Wn([2e3,1]).day(a),l=Tr(this.weekdaysMin(s,"")),c=Tr(this.weekdaysShort(s,"")),u=Tr(this.weekdays(s,"")),t.push(l),n.push(c),r.push(u),i.push(l),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sd(){return this.hours()%12||12}function Jb(){return this.hours()||24}ge("H",["HH",2],0,"hour"),ge("h",["hh",2],0,Sd),ge("k",["kk",2],0,Jb),ge("hmm",0,0,function(){return""+Sd.apply(this)+zn(this.minutes(),2)}),ge("hmmss",0,0,function(){return""+Sd.apply(this)+zn(this.minutes(),2)+zn(this.seconds(),2)}),ge("Hmm",0,0,function(){return""+this.hours()+zn(this.minutes(),2)}),ge("Hmmss",0,0,function(){return""+this.hours()+zn(this.minutes(),2)+zn(this.seconds(),2)});function x_(e,t){ge(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}x_("a",!0),x_("A",!1);function V_(e,t){return t._meridiemParse}le("a",V_),le("A",V_),le("H",it,md),le("h",it,ro),le("k",it,ro),le("HH",it,an),le("hh",it,an),le("kk",it,an),le("hmm",w_),le("hmmss",b_),le("Hmm",w_),le("Hmmss",b_),qe(["H","HH"],Tt),qe(["k","kk"],function(e,t,n){var r=Ve(e);t[Tt]=r===24?0:r}),qe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),qe(["h","hh"],function(e,t,n){t[Tt]=Ve(e),Ce(n).bigHour=!0}),qe("hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r)),Ce(n).bigHour=!0}),qe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[wr]=Ve(e.substr(i)),Ce(n).bigHour=!0}),qe("Hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r))}),qe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[wr]=Ve(e.substr(i))});function Qb(e){return(e+"").toLowerCase().charAt(0)==="p"}var Zb=/[ap]\.?m?\.?/i,eD=io("Hours",!0);function tD(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var L_={calendar:Hw,longDateFormat:zw,invalidDate:qw,ordinal:Jw,dayOfMonthOrdinalParse:Qw,relativeTime:eb,months:vb,monthsShort:C_,week:Cb,weekdays:xb,weekdaysMin:Vb,weekdaysShort:M_,meridiemParse:Zb},st={},Is={},Rs;function nD(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function F_(e){return e&&e.toLowerCase().replace("_","-")}function rD(e){for(var t=0,n,r,i,a;t<e.length;){for(a=F_(e[t]).split("-"),n=a.length,r=F_(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=Sc(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&nD(a,r)>=n-1)break;n--}t++}return Rs}function iD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sc(e){var t=null,n;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&iD(e))try{t=Rs._abbr,n=require,n("./locale/"+e),ii(t)}catch{st[e]=null}return st[e]}function ii(e,t){var n;return e&&(Jt(t)?n=Dr(e):n=Ed(e,t),n?Rs=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rs._abbr}function Ed(e,t){if(t!==null){var n,r=L_;if(t.abbr=e,st[e]!=null)y_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)r=st[t.parentLocale]._config;else if(n=Sc(t.parentLocale),n!=null)r=n._config;else return Is[t.parentLocale]||(Is[t.parentLocale]=[]),Is[t.parentLocale].push({name:e,config:t}),null;return st[e]=new ld(sd(r,t)),Is[e]&&Is[e].forEach(function(i){Ed(i.name,i.config)}),ii(e),st[e]}else return delete st[e],null}function aD(e,t){if(t!=null){var n,r,i=L_;st[e]!=null&&st[e].parentLocale!=null?st[e].set(sd(st[e]._config,t)):(r=Sc(e),r!=null&&(i=r._config),t=sd(i,t),r==null&&(t.abbr=e),n=new ld(t),n.parentLocale=st[e],st[e]=n),ii(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===ii()&&ii(e)):st[e]!=null&&delete st[e]);return st[e]}function Dr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rs;if(!In(e)){if(t=Sc(e),t)return t;e=[e]}return rD(e)}function oD(){return cd(st)}function Td(e){var t,n=e._a;return n&&Ce(e).overflow===-2&&(t=n[Nr]<0||n[Nr]>11?Nr:n[Kn]<1||n[Kn]>_d(n[Lt],n[Nr])?Kn:n[Tt]<0||n[Tt]>24||n[Tt]===24&&(n[On]!==0||n[wr]!==0||n[Hi]!==0)?Tt:n[On]<0||n[On]>59?On:n[wr]<0||n[wr]>59?wr:n[Hi]<0||n[Hi]>999?Hi:-1,Ce(e)._overflowDayOfYear&&(t<Lt||t>Kn)&&(t=Kn),Ce(e)._overflowWeeks&&t===-1&&(t=ub),Ce(e)._overflowWeekday&&t===-1&&(t=fb),Ce(e).overflow=t),e}var sD=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lD=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cD=/Z|[+-]\d\d(?::?\d\d)?/,Ec=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uD=/^\/?Date\((-?\d+)/i,fD=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dD={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Y_(e){var t,n,r=e._i,i=sD.exec(r)||lD.exec(r),a,s,l,c,u=Ec.length,f=Nd.length;if(i){for(Ce(e).iso=!0,t=0,n=u;t<n;t++)if(Ec[t][1].exec(i[1])){s=Ec[t][0],a=Ec[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(Nd[t][1].exec(i[3])){l=(i[2]||" ")+Nd[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(i[4])if(cD.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),bd(e)}else e._isValid=!1}function hD(e,t,n,r,i,a){var s=[pD(e),C_.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function pD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function mD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vD(e,t,n){if(e){var r=M_.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Ce(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _D(e,t,n){if(e)return dD[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function $_(e){var t=fD.exec(mD(e._i)),n;if(t){if(n=hD(t[4],t[3],t[2],t[5],t[6],t[7]),!vD(t[1],n,e))return;e._a=n,e._tzm=_D(t[8],t[9],t[10]),e._d=ks.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ce(e).rfc2822=!0}else e._isValid=!1}function gD(e){var t=uD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Y_(e),e._isValid===!1)delete e._isValid;else return;if($_(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ae.createFromInputFallback(e)}ae.createFromInputFallback=mn("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 ao(e,t,n){return e??t??n}function yD(e){var t=new Date(ae.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wd(e){var t,n,r=[],i,a,s;if(!e._d){for(i=yD(e),e._w&&e._a[Kn]==null&&e._a[Nr]==null&&SD(e),e._dayOfYear!=null&&(s=ao(e._a[Lt],i[Lt]),(e._dayOfYear>bs(s)||e._dayOfYear===0)&&(Ce(e)._overflowDayOfYear=!0),n=ks(s,0,e._dayOfYear),e._a[Nr]=n.getUTCMonth(),e._a[Kn]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Tt]===24&&e._a[On]===0&&e._a[wr]===0&&e._a[Hi]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?ks:Db).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Ce(e).weekdayMismatch=!0)}}function SD(e){var t,n,r,i,a,s,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=ao(t.GG,e._a[Lt],Cs(at(),1,4).year),r=ao(t.W,1),i=ao(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Cs(at(),a,s),n=ao(t.gg,e._a[Lt],u.year),r=ao(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):i=a),r<1||r>br(n,a,s)?Ce(e)._overflowWeeks=!0:c!=null?Ce(e)._overflowWeekday=!0:(l=A_(n,r,i,a,s),e._a[Lt]=l.year,e._dayOfYear=l.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function bd(e){if(e._f===ae.ISO_8601){Y_(e);return}if(e._f===ae.RFC_2822){$_(e);return}e._a=[],Ce(e).empty=!0;var t=""+e._i,n,r,i,a,s,l=t.length,c=0,u,f;for(i=S_(e._f,e._locale).match(ud)||[],f=i.length,n=0;n<f;n++)a=i[n],r=(t.match(sb(a,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&Ce(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),to[a]?(r?Ce(e).empty=!1:Ce(e).unusedTokens.push(a),cb(a,r,e)):e._strict&&!r&&Ce(e).unusedTokens.push(a);Ce(e).charsLeftOver=l-c,t.length>0&&Ce(e).unusedInput.push(t),e._a[Tt]<=12&&Ce(e).bigHour===!0&&e._a[Tt]>0&&(Ce(e).bigHour=void 0),Ce(e).parsedDateParts=e._a.slice(0),Ce(e).meridiem=e._meridiem,e._a[Tt]=ED(e._locale,e._a[Tt],e._meridiem),u=Ce(e).era,u!==null&&(e._a[Lt]=e._locale.erasConvertYear(u,e._a[Lt])),wd(e),Td(e)}function ED(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function TD(e){var t,n,r,i,a,s,l=!1,c=e._f.length;if(c===0){Ce(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,s=!1,t=od({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],bd(t),id(t)&&(s=!0),a+=Ce(t).charsLeftOver,a+=Ce(t).unusedTokens.length*10,Ce(t).score=a,l?a<r&&(r=a,n=t):(r==null||a<r||s)&&(r=a,n=t,s&&(l=!0));ri(e,n||t)}function ND(e){if(!e._d){var t=dd(e._i),n=t.day===void 0?t.date:t.day;e._a=m_([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wd(e)}}function wD(e){var t=new Ts(Td(B_(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function B_(e){var t=e._i,n=e._f;return e._locale=e._locale||Dr(e._l),t===null||n===void 0&&t===""?cc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Rn(t)?new Ts(Td(t)):(Es(t)?e._d=t:In(n)?TD(e):n?bd(e):bD(e),id(e)||(e._d=null),e))}function bD(e){var t=e._i;Jt(t)?e._d=new Date(ae.now()):Es(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gD(e):In(t)?(e._a=m_(t.slice(0),function(n){return parseInt(n,10)}),wd(e)):Ui(t)?ND(e):Er(t)?e._d=new Date(t):ae.createFromInputFallback(e)}function U_(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ui(e)&&nd(e)||In(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,wD(a)}function at(e,t,n,r){return U_(e,t,n,r,!1)}var DD=mn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cc()}),kD=mn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cc()});function H_(e,t){var n,r;if(t.length===1&&In(t[0])&&(t=t[0]),!t.length)return at();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function CD(){var e=[].slice.call(arguments,0);return H_("isBefore",e)}function ID(){var e=[].slice.call(arguments,0);return H_("isAfter",e)}var RD=function(){return Date.now?Date.now():+new Date},Os=["year","quarter","month","week","day","hour","minute","second","millisecond"];function OD(e){var t,n=!1,r,i=Os.length;for(t in e)if(Ge(e,t)&&!(pt.call(Os,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Os[r]]){if(n)return!1;parseFloat(e[Os[r]])!==Ve(e[Os[r]])&&(n=!0)}return!0}function PD(){return this._isValid}function AD(){return Pn(NaN)}function Tc(e){var t=dd(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=OD(t),this._milliseconds=+f+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Dr(),this._bubble()}function Nc(e){return e instanceof Tc}function Dd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function MD(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,s;for(s=0;s<r;s++)Ve(e[s])!==Ve(t[s])&&a++;return a+i}function G_(e,t){ge(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+zn(~~(n/60),2)+t+zn(~~n%60,2)})}G_("Z",":"),G_("ZZ",""),le("Z",vc),le("ZZ",vc),qe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=kd(vc,e)});var xD=/([\+\-]|\d\d)/gi;function kd(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(xD)||["-",0,0],a=+(i[1]*60)+Ve(i[2]),a===0?0:i[0]==="+"?a:-a)}function Cd(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Rn(e)||Es(e)?e.valueOf():at(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ae.updateOffset(n,!1),n):at(e).local()}function Id(e){return-Math.round(e._d.getTimezoneOffset())}ae.updateOffset=function(){};function VD(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=kd(vc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Id(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?K_(this,Pn(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Id(this)}function LD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FD(e){return this.utcOffset(0,e)}function YD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Id(this),"m")),this}function $D(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kd(ab,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function BD(e){return this.isValid()?(e=e?at(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function UD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function HD(){if(!Jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return od(e,this),e=B_(e),e._a?(t=e._isUTC?Wn(e._a):at(e._a),this._isDSTShifted=this.isValid()&&MD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GD(){return this.isValid()?!this._isUTC:!1}function WD(){return this.isValid()?this._isUTC:!1}function W_(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zD=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(e,t){var n=e,r=null,i,a,s;return Nc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Er(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=jD.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Ve(r[Kn])*i,h:Ve(r[Tt])*i,m:Ve(r[On])*i,s:Ve(r[wr])*i,ms:Ve(Dd(r[Hi]*1e3))*i}):(r=zD.exec(e))?(i=r[1]==="-"?-1:1,n={y:Gi(r[2],i),M:Gi(r[3],i),w:Gi(r[4],i),d:Gi(r[5],i),h:Gi(r[6],i),m:Gi(r[7],i),s:Gi(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=KD(at(n.from),at(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new Tc(n),Nc(e)&&Ge(e,"_locale")&&(a._locale=e._locale),Nc(e)&&Ge(e,"_isValid")&&(a._isValid=e._isValid),a}Pn.fn=Tc.prototype,Pn.invalid=AD;function Gi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function j_(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function KD(e,t){var n;return e.isValid()&&t.isValid()?(t=Cd(t,e),e.isBefore(t)?n=j_(e,t):(n=j_(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function z_(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(y_(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Pn(n,r),K_(this,i,e),this}}function K_(e,t,n,r){var i=t._milliseconds,a=Dd(t._days),s=Dd(t._months);e.isValid()&&(r=r??!0,s&&R_(e,Ds(e,"Month")+s*n),a&&k_(e,"Date",Ds(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ae.updateOffset(e,a||s))}var qD=z_(1,"add"),XD=z_(-1,"subtract");function q_(e){return typeof e=="string"||e instanceof String}function JD(e){return Rn(e)||Es(e)||q_(e)||Er(e)||ZD(e)||QD(e)||e===null||e===void 0}function QD(e){var t=Ui(e)&&!nd(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function ZD(e){var t=In(e),n=!1;return t&&(n=e.filter(function(r){return!Er(r)&&q_(e)}).length===0),t&&n}function ek(e){var t=Ui(e)&&!nd(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function tk(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function nk(e,t){arguments.length===1&&(arguments[0]?JD(arguments[0])?(e=arguments[0],t=void 0):ek(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||at(),r=Cd(n,this).startOf("day"),i=ae.calendarFormat(this,r)||"sameElse",a=t&&(jn(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,at(n)))}function rk(){return new Ts(this)}function ik(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ak(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ok(e,t,n,r){var i=Rn(e)?e:at(e),a=Rn(t)?t:at(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function sk(e,t){var n=Rn(e)?e:at(e),r;return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function lk(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ck(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function uk(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=Cd(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=vn(t),t){case"year":a=wc(this,r)/12;break;case"month":a=wc(this,r);break;case"quarter":a=wc(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:_n(a)}function wc(e,t){if(e.date()<t.date())return-wc(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dk(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?fc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fc(n,"Z")):fc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function pk(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=fc(this,e);return this.localeData().postformat(t)}function mk(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vk(e){return this.from(at(),e)}function _k(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gk(e){return this.to(at(),e)}function X_(e){var t;return e===void 0?this._locale._abbr:(t=Dr(e),t!=null&&(this._locale=t),this)}var J_=mn("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 Q_(){return this._locale}var bc=1e3,oo=60*bc,Dc=60*oo,Z_=(365*400+97)*24*Dc;function so(e,t){return(e%t+t)%t}function eg(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Z_:new Date(e,t,n).valueOf()}function tg(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Z_:Date.UTC(e,t,n)}function yk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=so(t+(this._isUTC?0:this.utcOffset()*oo),Dc);break;case"minute":t=this._d.valueOf(),t-=so(t,oo);break;case"second":t=this._d.valueOf(),t-=so(t,bc);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Sk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Dc-so(t+(this._isUTC?0:this.utcOffset()*oo),Dc)-1;break;case"minute":t=this._d.valueOf(),t+=oo-so(t,oo)-1;break;case"second":t=this._d.valueOf(),t+=bc-so(t,bc)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Ek(){return this._d.valueOf()-(this._offset||0)*6e4}function Tk(){return Math.floor(this.valueOf()/1e3)}function Nk(){return new Date(this.valueOf())}function wk(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bk(){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 Dk(){return this.isValid()?this.toISOString():null}function kk(){return id(this)}function Ck(){return ri({},Ce(this))}function Ik(){return Ce(this).overflow}function Rk(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ge("N",0,0,"eraAbbr"),ge("NN",0,0,"eraAbbr"),ge("NNN",0,0,"eraAbbr"),ge("NNNN",0,0,"eraName"),ge("NNNNN",0,0,"eraNarrow"),ge("y",["y",1],"yo","eraYear"),ge("y",["yy",2],0,"eraYear"),ge("y",["yyy",3],0,"eraYear"),ge("y",["yyyy",4],0,"eraYear"),le("N",Rd),le("NN",Rd),le("NNN",Rd),le("NNNN",Bk),le("NNNNN",Uk),qe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ce(n).era=i:Ce(n).invalidEra=e}),le("y",no),le("yy",no),le("yyy",no),le("yyyy",no),le("yo",Hk),qe(["y","yy","yyy","yyyy"],Lt),qe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lt]=n._locale.eraYearOrdinalParse(e,i):t[Lt]=parseInt(e,10)});function Ok(e,t){var n,r,i,a=this._eras||Dr("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ae(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ae(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function Pk(e,t,n){var r,i,a=this.eras(),s,l,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(s===e)return a[r];break;case"NNNNN":if(c===e)return a[r];break}else if([s,l,c].indexOf(e)>=0)return a[r]}function Ak(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*n}function Mk(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function xk(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Vk(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Lk(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-ae(i[e].since).year())*n+i[e].offset;return this.year()}function Fk(e){return Ge(this,"_erasNameRegex")||Od.call(this),e?this._erasNameRegex:this._erasRegex}function Yk(e){return Ge(this,"_erasAbbrRegex")||Od.call(this),e?this._erasAbbrRegex:this._erasRegex}function $k(e){return Ge(this,"_erasNarrowRegex")||Od.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rd(e,t){return t.erasAbbrRegex(e)}function Bk(e,t){return t.erasNameRegex(e)}function Uk(e,t){return t.erasNarrowRegex(e)}function Hk(e,t){return t._eraYearOrdinalRegex||no}function Od(){var e=[],t=[],n=[],r=[],i,a,s,l,c,u=this.eras();for(i=0,a=u.length;i<a;++i)s=Tr(u[i].name),l=Tr(u[i].abbr),c=Tr(u[i].narrow),t.push(s),e.push(l),n.push(c),r.push(s),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ge(0,["gg",2],0,function(){return this.weekYear()%100}),ge(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kc(e,t){ge(0,[e,e.length],0,t)}kc("gggg","weekYear"),kc("ggggg","weekYear"),kc("GGGG","isoWeekYear"),kc("GGGGG","isoWeekYear"),le("G",mc),le("g",mc),le("GG",it,an),le("gg",it,an),le("GGGG",pd,hd),le("gggg",pd,hd),le("GGGGG",pc,dc),le("ggggg",pc,dc),ws(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ve(e)}),ws(["gg","GG"],function(e,t,n,r){t[r]=ae.parseTwoDigitYear(e)});function Gk(e){return ng.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Wk(e){return ng.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function jk(){return br(this.year(),1,4)}function zk(){return br(this.isoWeekYear(),1,4)}function Kk(){var e=this.localeData()._week;return br(this.year(),e.dow,e.doy)}function qk(){var e=this.localeData()._week;return br(this.weekYear(),e.dow,e.doy)}function ng(e,t,n,r,i){var a;return e==null?Cs(this,r,i).year:(a=br(e,r,i),t>a&&(t=a),Xk.call(this,e,t,n,r,i))}function Xk(e,t,n,r,i){var a=A_(e,t,n,r,i),s=ks(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ge("Q",0,"Qo","quarter"),le("Q",T_),qe("Q",function(e,t){t[Nr]=(Ve(e)-1)*3});function Jk(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ge("D",["DD",2],"Do","date"),le("D",it,ro),le("DD",it,an),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qe(["D","DD"],Kn),qe("Do",function(e,t){t[Kn]=Ve(e.match(it)[0])});var rg=io("Date",!0);ge("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",hc),le("DDDD",N_),qe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ve(e)});function Qk(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ge("m",["mm",2],0,"minute"),le("m",it,md),le("mm",it,an),qe(["m","mm"],On);var Zk=io("Minutes",!1);ge("s",["ss",2],0,"second"),le("s",it,md),le("ss",it,an),qe(["s","ss"],wr);var eC=io("Seconds",!1);ge("S",0,0,function(){return~~(this.millisecond()/100)}),ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ge(0,["SSS",3],0,"millisecond"),ge(0,["SSSS",4],0,function(){return this.millisecond()*10}),ge(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ge(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ge(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ge(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ge(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),le("S",hc,T_),le("SS",hc,an),le("SSS",hc,N_);var ai,ig;for(ai="SSSS";ai.length<=9;ai+="S")le(ai,no);function tC(e,t){t[Hi]=Ve(("0."+e)*1e3)}for(ai="S";ai.length<=9;ai+="S")qe(ai,tC);ig=io("Milliseconds",!1),ge("z",0,0,"zoneAbbr"),ge("zz",0,0,"zoneName");function nC(){return this._isUTC?"UTC":""}function rC(){return this._isUTC?"Coordinated Universal Time":""}var J=Ts.prototype;J.add=qD,J.calendar=nk,J.clone=rk,J.diff=uk,J.endOf=Sk,J.format=pk,J.from=mk,J.fromNow=vk,J.to=_k,J.toNow=gk,J.get=hb,J.invalidAt=Ik,J.isAfter=ik,J.isBefore=ak,J.isBetween=ok,J.isSame=sk,J.isSameOrAfter=lk,J.isSameOrBefore=ck,J.isValid=kk,J.lang=J_,J.locale=X_,J.localeData=Q_,J.max=kD,J.min=DD,J.parsingFlags=Ck,J.set=pb,J.startOf=yk,J.subtract=XD,J.toArray=wk,J.toObject=bk,J.toDate=Nk,J.toISOString=dk,J.inspect=hk,typeof Symbol<"u"&&Symbol.for!=null&&(J[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),J.toJSON=Dk,J.toString=fk,J.unix=Tk,J.valueOf=Ek,J.creationData=Rk,J.eraName=Mk,J.eraNarrow=xk,J.eraAbbr=Vk,J.eraYear=Lk,J.year=D_,J.isLeapYear=db,J.weekYear=Gk,J.isoWeekYear=Wk,J.quarter=J.quarters=Jk,J.month=O_,J.daysInMonth=Nb,J.week=J.weeks=Ob,J.isoWeek=J.isoWeeks=Pb,J.weeksInYear=Kk,J.weeksInWeekYear=qk,J.isoWeeksInYear=jk,J.isoWeeksInISOWeekYear=zk,J.date=rg,J.day=J.days=Wb,J.weekday=jb,J.isoWeekday=zb,J.dayOfYear=Qk,J.hour=J.hours=eD,J.minute=J.minutes=Zk,J.second=J.seconds=eC,J.millisecond=J.milliseconds=ig,J.utcOffset=VD,J.utc=FD,J.local=YD,J.parseZone=$D,J.hasAlignedHourOffset=BD,J.isDST=UD,J.isLocal=GD,J.isUtcOffset=WD,J.isUtc=W_,J.isUTC=W_,J.zoneAbbr=nC,J.zoneName=rC,J.dates=mn("dates accessor is deprecated. Use date instead.",rg),J.months=mn("months accessor is deprecated. Use month instead",O_),J.years=mn("years accessor is deprecated. Use year instead",D_),J.zone=mn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LD),J.isDSTShifted=mn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HD);function iC(e){return at(e*1e3)}function aC(){return at.apply(null,arguments).parseZone()}function ag(e){return e}var We=ld.prototype;We.calendar=Gw,We.longDateFormat=Kw,We.invalidDate=Xw,We.ordinal=Zw,We.preparse=ag,We.postformat=ag,We.relativeTime=tb,We.pastFuture=nb,We.set=Uw,We.eras=Ok,We.erasParse=Pk,We.erasConvertYear=Ak,We.erasAbbrRegex=Yk,We.erasNameRegex=Fk,We.erasNarrowRegex=$k,We.months=yb,We.monthsShort=Sb,We.monthsParse=Tb,We.monthsRegex=bb,We.monthsShortRegex=wb,We.week=kb,We.firstDayOfYear=Rb,We.firstDayOfWeek=Ib,We.weekdays=$b,We.weekdaysMin=Ub,We.weekdaysShort=Bb,We.weekdaysParse=Gb,We.weekdaysRegex=Kb,We.weekdaysShortRegex=qb,We.weekdaysMinRegex=Xb,We.isPM=Qb,We.meridiem=tD;function Cc(e,t,n,r){var i=Dr(),a=Wn().set(r,t);return i[n](a,e)}function og(e,t,n){if(Er(e)&&(t=e,e=void 0),e=e||"",t!=null)return Cc(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Cc(e,r,n,"month");return i}function Pd(e,t,n,r){typeof e=="boolean"?(Er(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Er(t)&&(n=t,t=void 0),t=t||"");var i=Dr(),a=e?i._week.dow:0,s,l=[];if(n!=null)return Cc(t,(n+a)%7,r,"day");for(s=0;s<7;s++)l[s]=Cc(t,(s+a)%7,r,"day");return l}function oC(e,t){return og(e,t,"months")}function sC(e,t){return og(e,t,"monthsShort")}function lC(e,t,n){return Pd(e,t,n,"weekdays")}function cC(e,t,n){return Pd(e,t,n,"weekdaysShort")}function uC(e,t,n){return Pd(e,t,n,"weekdaysMin")}ii("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 t=e%10,n=Ve(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ae.lang=mn("moment.lang is deprecated. Use moment.locale instead.",ii),ae.langData=mn("moment.langData is deprecated. Use moment.localeData instead.",Dr);var kr=Math.abs;function fC(){var e=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),e.milliseconds=kr(e.milliseconds),e.seconds=kr(e.seconds),e.minutes=kr(e.minutes),e.hours=kr(e.hours),e.months=kr(e.months),e.years=kr(e.years),this}function sg(e,t,n,r){var i=Pn(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dC(e,t){return sg(this,e,t,1)}function hC(e,t){return sg(this,e,t,-1)}function lg(e){return e<0?Math.floor(e):Math.ceil(e)}function pC(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=lg(Ad(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=_n(e/1e3),r.seconds=i%60,a=_n(i/60),r.minutes=a%60,s=_n(a/60),r.hours=s%24,t+=_n(s/24),c=_n(cg(t)),n+=c,t-=lg(Ad(c)),l=_n(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function cg(e){return e*4800/146097}function Ad(e){return e*146097/4800}function mC(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=vn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cg(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ad(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Cr(e){return function(){return this.as(e)}}var ug=Cr("ms"),vC=Cr("s"),_C=Cr("m"),gC=Cr("h"),yC=Cr("d"),SC=Cr("w"),EC=Cr("M"),TC=Cr("Q"),NC=Cr("y"),wC=ug;function bC(){return Pn(this)}function DC(e){return e=vn(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var kC=Wi("milliseconds"),CC=Wi("seconds"),IC=Wi("minutes"),RC=Wi("hours"),OC=Wi("days"),PC=Wi("months"),AC=Wi("years");function MC(){return _n(this.days()/7)}var Ir=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xC(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function VC(e,t,n,r){var i=Pn(e).abs(),a=Ir(i.as("s")),s=Ir(i.as("m")),l=Ir(i.as("h")),c=Ir(i.as("d")),u=Ir(i.as("M")),f=Ir(i.as("w")),d=Ir(i.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||f<=1&&["w"]||f<n.w&&["ww",f]),p=p||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,xC.apply(null,p)}function LC(e){return e===void 0?Ir:typeof e=="function"?(Ir=e,!0):!1}function FC(e,t){return lo[e]===void 0?!1:t===void 0?lo[e]:(lo[e]=t,e==="s"&&(lo.ss=t-1),!0)}function YC(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=lo,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},lo,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=VC(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var Md=Math.abs;function co(e){return(e>0)-(e<0)||+e}function Ic(){if(!this.isValid())return this.localeData().invalidDate();var e=Md(this._milliseconds)/1e3,t=Md(this._days),n=Md(this._months),r,i,a,s,l=this.asSeconds(),c,u,f,d;return l?(r=_n(e/60),i=_n(r/60),e%=60,r%=60,a=_n(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=co(this._months)!==co(l)?"-":"",f=co(this._days)!==co(l)?"-":"",d=co(this._milliseconds)!==co(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var $e=Tc.prototype;$e.isValid=PD,$e.abs=fC,$e.add=dC,$e.subtract=hC,$e.as=mC,$e.asMilliseconds=ug,$e.asSeconds=vC,$e.asMinutes=_C,$e.asHours=gC,$e.asDays=yC,$e.asWeeks=SC,$e.asMonths=EC,$e.asQuarters=TC,$e.asYears=NC,$e.valueOf=wC,$e._bubble=pC,$e.clone=bC,$e.get=DC,$e.milliseconds=kC,$e.seconds=CC,$e.minutes=IC,$e.hours=RC,$e.days=OC,$e.weeks=MC,$e.months=PC,$e.years=AC,$e.humanize=YC,$e.toISOString=Ic,$e.toString=Ic,$e.toJSON=Ic,$e.locale=X_,$e.localeData=Q_,$e.toIsoString=mn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ic),$e.lang=J_,ge("X",0,0,"unix"),ge("x",0,0,"valueOf"),le("x",mc),le("X",ob),qe("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),qe("x",function(e,t,n){n._d=new Date(Ve(e))});//! moment.js
51
51
  ae.version="2.30.1",$w(at),ae.fn=J,ae.min=CD,ae.max=ID,ae.now=RD,ae.utc=Wn,ae.unix=iC,ae.months=oC,ae.isDate=Es,ae.locale=ii,ae.invalid=cc,ae.duration=Pn,ae.isMoment=Rn,ae.weekdays=lC,ae.parseZone=aC,ae.localeData=Dr,ae.isDuration=Nc,ae.monthsShort=sC,ae.weekdaysMin=uC,ae.defineLocale=Ed,ae.updateLocale=aD,ae.locales=oD,ae.weekdaysShort=cC,ae.normalizeUnits=vn,ae.relativeTimeRounding=LC,ae.relativeTimeThreshold=FC,ae.calendarFormat=tk,ae.prototype=J,ae.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"};const $C=["title"],BC=o.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=o.computed(()=>t.fieldValuePair.field),r=o.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=ae(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const s=o.resolveComponent("cape-link-value");return o.openBlock(),o.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[i.link?(o.openBlock(),o.createBlock(s,{key:0,"field-value-pair":i.fieldValuePair},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.value),1)]),_:1},8,["field-value-pair"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(r.value),1)],64))],8,$C)}}}),UC={class:"cape-filter-label"},HC=["for"],GC={class:"cape-filter-mode"},WC={class:"cape-filter-term"},jC=["id","placeholder"],zC=["id","placeholder"],KC=o.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",UC,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,HC)]),o.createElementVNode("div",GC,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[3]||(s[3]=[o.createElementVNode("option",{value:"contains"},"contains",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",WC,[r.value.mode==="contains"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.term=l),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,jC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.term=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,zC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0)])],64))}}),qC={class:"cape-filter-label"},XC=["for"],JC={class:"cape-filter-wide-term"},QC=["id","placeholder"],ZC=o.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId));return(i,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",qC,[o.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,XC)]),o.createElementVNode("div",JC,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.term=s),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,QC),[[o.vModelText,r.value.term]])])],64))}}),eI={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},tI=["for"],nI={class:"cape-sort-order-controls"},rI=["id"],iI=["value"],aI=["id"],oI=["value"],sI=["value"],lI=o.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=It(),n=Bt(),r=e,i=o.computed(()=>`cape-sort-order-${r.idDistinguisher}`),a=o.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(s,l)=>o.unref(n).hasSortFields&&o.unref(n).visibleCount>0?(o.openBlock(),o.createElementBlock("div",eI,[o.createElementVNode("label",{for:i.value},"Order results by: ",8,tI),o.createElementVNode("div",nI,[o.withDirectives(o.createElementVNode("select",{id:i.value,class:"cape-sort-order-field","onUpdate:modelValue":l[0]||(l[0]=c=>o.unref(n).sortFieldId=c)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).sortableFields,c=>(o.openBlock(),o.createElementBlock("option",{key:c.id,value:c.id},o.toDisplayString(c.label),9,iI))),128))],8,rI),[[o.vModelSelect,o.unref(n).sortFieldId]]),o.withDirectives(o.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":l[1]||(l[1]=c=>o.unref(n).sortDirection=c),"aria-label":"Sort direction",id:a.value},[o.createElementVNode("option",{value:o.unref(ni).Ascending},"Ascending",8,oI),o.createElementVNode("option",{value:o.unref(ni).Descending},"Descending",8,sI)],8,aI),[[o.vModelSelect,o.unref(n).sortDirection]])])])):o.createCommentVNode("",!0)}}),cI={class:"cape-filter-label"},uI=["for"],fI={class:"cape-filter-mode"},dI={class:"cape-filter-term"},hI=o.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>{const l=o.resolveComponent("cape-filter-field-enum-one-of-checkbox"),c=o.resolveComponent("cape-filter-field-enum-one-of-multiselect"),u=o.resolveComponent("cape-filter-field-enum-is-select"),f=o.resolveComponent("cape-filter-field-enum-is-radio");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",cI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id,"data-test":"filter-label"},o.toDisplayString(o.unref(r).field.label),9,uI)]),o.createElementVNode("div",fI,[o.unref(r).field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(r).mode=d),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[1]||(s[1]=[o.createElementVNode("option",{value:"oneOf"},"is one of",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,o.unref(r).mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",dI,[o.unref(r).mode==="oneOf"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.unref(i).filterInputStyleOnOneOf==="checkbox"?(o.openBlock(),o.createBlock(l,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(c,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0),o.unref(r).mode==="is"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.unref(i).filterInputStyleOnIs==="select"?(o.openBlock(),o.createBlock(u,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(f,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0)])],64)}}}),pI={class:"cape-filter-label"},mI=["for"],vI={class:"cape-filter-mode"},_I={class:"cape-filter-term"},gI=["id","placeholder","min","max","step"],yI=["id","placeholder","min","max","step"],SI=["id","placeholder","min","max","step"],EI=o.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",pI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,mI)]),o.createElementVNode("div",vI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",_I,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,gI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,yI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[3]||(s[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,SI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),TI={class:"cape-filter-label"},NI=["for"],wI={class:"cape-filter-mode"},bI={class:"cape-filter-term"},DI=["id","placeholder"],kI=["id","placeholder"],CI=["id","placeholder"],II=o.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",TI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,NI)]),o.createElementVNode("div",wI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",bI,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,DI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,kI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":s[3]||(s[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,CI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),RI={class:"cape-results-controls flex justify-between"},OI={class:"flex justify-start"},PI={key:0,class:"cape-show-all-results-toggle switch switch-sm"},AI=["for"],MI=o.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Bt(),r=o.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=o.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(a,s)=>{const l=o.resolveComponent("cape-results-info"),c=o.resolveComponent("cape-show-all-results-toggle"),u=o.resolveComponent("cape-sort-order");return o.openBlock(),o.createElementBlock("div",RI,[o.createElementVNode("div",OI,[o.createVNode(l),r.value?(o.openBlock(),o.createElementBlock("div",PI,[o.createVNode(c,{class:"cape-results-toggle",id:i.value},null,8,["id"]),o.createElementVNode("label",{for:i.value},"Show All Results",8,AI)])):o.createCommentVNode("",!0)]),o.createVNode(u,{"id-distinguisher":a.idDistinguisher},null,8,["id-distinguisher"])])}}});function xI(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const i=window.document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function VI(){const e=[[]],t=Za(),n=Sr();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(i=>{const a=r[i.id].value??"";return i.isMultiple&&Array.isArray(a)?a.join("; "):`${a}`}))}),e}function LI(e){return e.map(n=>'"'+n.map(i=>{let a="";return i!=null&&(a=i.toString()),a.replace(/"/g,'""').replace(/\r\n/g,`
52
52
  `)}).join('","')+`"
53
- `).join("")}const FI=o.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=VI(),r=LI(n);xI("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(o.openBlock(),o.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),YI={},$I={href:"/site-data.json",class:"cape-button"};function BI(e,t){return o.openBlock(),o.createElementBlock("a",$I,"Download JSON")}const UI=Bi(YI,[["render",BI]]),HI={class:"cape-fields-table"},GI={key:0},WI=o.defineComponent({__name:"CapeFieldsTable",setup(e){const t=Za(),n=o.computed(()=>t.all);return(r,i)=>(o.openBlock(),o.createElementBlock("table",HI,[i[0]||(i[0]=o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{scope:"col"},"Field id"),o.createElementVNode("th",{scope:"col"},"Field name"),o.createElementVNode("th",{scope:"col"},"Field type"),o.createElementVNode("th",{scope:"col"},"Description")])],-1)),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("tr",{key:a.id},[o.createElementVNode("td",null,o.toDisplayString(a.id),1),o.createElementVNode("td",null,o.toDisplayString(a.label),1),o.createElementVNode("td",null,[o.createTextVNode(o.toDisplayString(a.type)+" ",1),a.isMultiple?(o.openBlock(),o.createElementBlock("span",GI," list")):o.createCommentVNode("",!0)]),o.createElementVNode("td",null,o.toDisplayString(a.description),1)]))),128))])]))}});function jI(e){const n=It().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const zI=o.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=o.computed(()=>jI(t.record));return(r,i)=>{const a=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(a,{to:n.value},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["to"])}}}),KI={key:0,class:"cape-next-result"},qI={key:1,class:"cape-next-result cape-next-result-null"},XI=o.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",KI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",qI,[o.renderSlot(i.$slots,"otherwise")]))}}}),JI={key:0,class:"cape-previous-result"},QI={key:1,class:"cape-previous-result cape-previous-result-null"},ZI=o.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",JI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",QI,[o.renderSlot(i.$slots,"otherwise")]))}}}),e1={key:0,class:"cape-previous-record"},t1={key:1,class:"cape-previous-record cape-previous-record-null"},n1=o.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",e1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",t1,[o.renderSlot(i.$slots,"otherwise")]))}}}),r1={key:0,class:"cape-next-record"},i1={key:1,class:"cape-next-record cape-next-record-null"},a1=o.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",r1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",i1,[o.renderSlot(i.$slots,"otherwise")]))}}}),us=class us{static add(t){us.functions.push(t)}static all(){return us.functions}static async execute(t,n){for(const r of us.all().sort((i,a)=>i.priority-a.priority))try{await r.action(t,n)}catch(i){console.error("Error executing action:",i);return}}};Pe(us,"functions",[]);let Ps=us;const fg={High:10,Low:1e3},Ha=class Ha{static async fetchIndexPageTitle(){if(Ha.indexHtmlTitle)return Ha.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),a=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ha.indexHtmlTitle=(a==null?void 0:a.text)||void 0,Ha.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:r,params:i,meta:a}=t;if(r==="record"&&n.recordPageTitleExpression){const c=i==null?void 0:i.id;if(!c)throw new Error("Record ID is required but not specified.");if(ti().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const d=Sr().byId(c);return n.recordPageTitleExpression(d)}if(a!=null&&a.title)return a.title;const s=await this.fetchIndexPageTitle();return s||It().title}};Pe(Ha,"indexHtmlTitle");let xd=Ha;const o1={class:"cape-labelled-value"},s1={key:0,class:"cape-error cape-labelled-value-error"},l1=["title"],c1={key:1,class:"cape-labelled-value-label"},u1=o.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=o.computed(()=>{var r;return(r=t.fieldValue)==null?void 0:r.field});return(r,i)=>(o.openBlock(),o.createElementBlock("div",o1,[!r.fieldValue||!n.value?(o.openBlock(),o.createElementBlock("div",s1," [Error, trying to render label for a non-existent field] ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(o.openBlock(),o.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},o.toDisplayString(n.value.label),9,l1)):(o.openBlock(),o.createElementBlock("div",c1,o.toDisplayString(n.value.label),1)),o.renderSlot(r.$slots,"default")],64))]))}}),f1=o.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>t.fieldValuePair.value),i=o.computed(()=>t.fieldValuePair.field),a=o.computed(()=>{const s="/",l={};try{n.byId(`field-${i.value.id}`).display==="advanced"&&(l.advanced="true"),l.jump="true",l[`field-${i.value.id}-mode`]="is",l[`field-${i.value.id}-term`]=`${r.value}`}catch{console.error(`Attempt to create link from field ${i.value.id} which has no related filter.`)}return{path:s,query:l}});return(s,l)=>{const c=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(c,{to:a.value},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["to"])}}}),d1=o.defineComponent({__name:"CapePercentageValue",props:{value:String},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r*100+"%"});return(r,i)=>o.toDisplayString(n.value)}}),h1=o.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r.toFixed(t.digits)});return(r,i)=>o.toDisplayString(n.value)}}),p1={__name:"CapeShowAllResultsToggle",setup(e){const t=Bt();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAllResults]])}},m1={key:0,class:"cape-results-info"},v1={key:0},_1={key:1},g1={key:1,class:"cape-results-count"},y1=o.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Bt();return(n,r)=>o.unref(t).allResultsAreVisible?(o.openBlock(),o.createElementBlock("div",m1,[o.unref(t).visibleCount==1?(o.openBlock(),o.createElementBlock("div",v1,"Showing 1 matching record.")):(o.openBlock(),o.createElementBlock("div",_1,"Showing all "+o.toDisplayString(o.unref(t).visibleCount)+" matching records.",1))])):(o.openBlock(),o.createElementBlock("div",g1," Showing first "+o.toDisplayString(o.unref(t).visibleCount)+" of "+o.toDisplayString(o.unref(t).totalCount)+" matching records. ",1))}}),S1={class:"cape-results-count"},E1=o.defineComponent({__name:"CapeResultsCount",setup(e){const t=Bt();return(n,r)=>(o.openBlock(),o.createElementBlock("span",S1,o.toDisplayString(o.unref(t).totalCount),1))}}),T1={class:"cape-filter-field-enum-is-radio"},N1={class:"form-check form-check-inline"},w1=["id"],b1=["for"],D1=["id","value"],k1=["for"],C1=o.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",T1,[o.createElementVNode("li",N1,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),type:"radio",value:""},null,8,w1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"},s[2]||(s[2]=[o.createElementVNode("em",null,"any",-1)]),8,b1)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[1]||(s[1]=c=>o.unref(r).isTerm=c),value:l,type:"radio"},null,8,D1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,k1)]))),128))]))}}),I1=["aria-label"],R1=["value"],O1=o.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),"aria-label":"Select "+o.unref(i).label+" value."},[s[1]||(s[1]=o.createElementVNode("option",{key:"",value:""},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("option",{key:l,value:l},o.toDisplayString(l),9,R1))),128))],8,I1)),[[o.vModelSelect,o.unref(r).isTerm]])}}),P1={class:"cape-filter-field-enum-one-of-checkbox"},A1=["id","value"],M1=["for"],x1=o.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",P1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[0]||(s[0]=c=>o.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,A1),[[o.vModelCheckbox,o.unref(r).oneOfTerms]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,M1)]))),128))]))}});function Vd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function V1(e){return(...t)=>!e(...t)}function L1(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function F1(e){return e.filter(t=>!t.$isLabel)}function Ld(e,t){return n=>n.reduce((r,i)=>i[e]&&i[e].length?(r.push({$groupLabel:i[t],$isLabel:!0}),r.concat(i[e])):r,[])}const dg=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Y1={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Vd(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Ld(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(V1(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return dg(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Ld(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return dg(Ld(this.groupValues,this.groupLabel),F1)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Vd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Vd(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(i=>i[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(i=>n.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(i=>L1(r(i,n),t)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):r(i,n).length-r(a,n).length):e},filterGroups(e,t,n,r,i){return a=>a.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(s[n],e,t,i);return l.length?{[r]:s[r],[n]:l}:[]})}}},$1={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},hg={name:"vue-multiselect",mixins:[Y1,$1],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const B1=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],U1={ref:"tags",class:"multiselect__tags"},H1={class:"multiselect__tags-wrap"},G1=["textContent"],W1=["onKeypress","onMousedown"],j1=["textContent"],z1={class:"multiselect__spinner"},K1=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],q1=["id","aria-multiselectable"],X1={key:0},J1={class:"multiselect__option"},Q1=["aria-selected","id","role"],Z1=["onClick","onMouseenter","data-select","data-selected","data-deselect"],eR=["data-select","data-deselect","onMouseenter","onMousedown"],tR={class:"multiselect__option"},nR={class:"multiselect__option"};function rR(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:o.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=s=>e.activate()),onBlur:t[15]||(t[15]=s=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=o.withKeys(s=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[o.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[o.createElementVNode("div",{onMousedown:t[0]||(t[0]=o.withModifiers(s=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o.renderSlot(e.$slots,"clear",{search:e.search}),o.createElementVNode("div",U1,[o.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[o.withDirectives(o.createElementVNode("div",H1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.visibleValues,(s,l)=>o.renderSlot(e.$slots,"tag",{option:s,search:e.search,remove:e.removeElement},()=>[(o.openBlock(),o.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("span",{textContent:o.toDisplayString(e.getOptionLabel(s))},null,8,G1),o.createElementVNode("i",{tabindex:"1",onKeypress:o.withKeys(o.withModifiers(c=>e.removeElement(s),["prevent"]),["enter"]),onMousedown:o.withModifiers(c=>e.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,W1)],32))])),256))],512),[[o.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?o.renderSlot(e.$slots,"limit",{key:0},()=>[o.createElementVNode("strong",{class:"multiselect__strong",textContent:o.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,j1)]):o.createCommentVNode("v-if",!0)]),o.createVNode(o.Transition,{name:"multiselect__loading"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"loading",{},()=>[o.withDirectives(o.createElementVNode("div",z1,null,512),[[o.vShow,n.loading]])])]),_:3}),e.searchable?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:o.normalizeStyle(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=s=>e.updateSearch(s.target.value)),onFocus:t[3]||(t[3]=o.withModifiers(s=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=o.withModifiers(s=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=o.withKeys(s=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=o.withKeys(o.withModifiers(s=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,K1)):o.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(o.openBlock(),o.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[o.createTextVNode(o.toDisplayString(e.currentOptionLabel),1)])],32)):o.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(o.openBlock(),o.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"placeholder",{},()=>[o.createTextVNode(o.toDisplayString(e.placeholder),1)])],32)):o.createCommentVNode("v-if",!0)],512),o.createVNode(o.Transition,{name:"multiselect",persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...s)=>e.activate&&e.activate(...s)),tabindex:"-1",onMousedown:t[13]||(t[13]=o.withModifiers(()=>{},["prevent"])),style:o.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[o.createElementVNode("ul",{class:"multiselect__content",style:o.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[o.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(o.openBlock(),o.createElementBlock("li",X1,[o.createElementVNode("span",J1,[o.renderSlot(e.$slots,"maxElements",{},()=>[o.createTextVNode("Maximum of "+o.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):o.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.filteredOptions,(s,l)=>(o.openBlock(),o.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(s),id:e.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.optionHighlight(l,s),"multiselect__option"]),onClick:o.withModifiers(c=>e.select(s),["stop"]),onMouseenter:o.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":s&&s.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,Z1)),s&&(s.$isLabel||s.$isDisabled)?(o.openBlock(),o.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:o.normalizeClass([e.groupHighlight(l,s),"multiselect__option"]),onMouseenter:o.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:o.withModifiers(c=>e.selectGroup(s),["prevent"])},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,eR)):o.createCommentVNode("v-if",!0)],8,Q1))),128)):o.createCommentVNode("v-if",!0),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",tR,[o.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=o.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[o.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",nR,[o.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=o.createTextVNode("List is empty."))])])],512),[[o.vShow,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),o.renderSlot(e.$slots,"afterList")],12,q1)],36),[[o.vShow,e.isOpen]])]),_:3})],42,B1)}hg.render=rR;const iR=o.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createBlock(o.unref(hg),{id:"filter-multiselect-"+o.unref(i).id,modelValue:o.unref(r).oneOfTerms,"onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:o.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),aR={};function oR(e,t){const n=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("p",null,[t[0]||(t[0]=o.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=o.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=o.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=o.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=o.createTextVNode(" team at the ")),t[5]||(t[5]=o.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=o.createTextVNode(", UK. This site uses Cape ")),o.createVNode(n),t[7]||(t[7]=o.createTextVNode(". "))])}const sR=Bi(aR,[["render",oR]]),lR={},cR={class:"border border-black p-1 fixed right-1 top-1"};function uR(e,t){return o.openBlock(),o.createElementBlock("div",cR,t[0]||(t[0]=[o.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const fR=Bi(lR,[["render",uR]]),dR="3.1.0",hR={class:"cape-plugin-version"},pR=o.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("span",hR,"v"+o.toDisplayString(o.unref(dR)),1))}}),mR={class:"cape-content-page"},vR=["href"],_R=["href"],gR={key:0},yR={key:0},SR=["href"],ER=o.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=It();return(n,r)=>{var u,f,d,p,h,m,v,_,g,S,C,A,V,z,b;const i=o.resolveComponent("cape-record-count"),a=o.resolveComponent("cape-download-json-button"),s=o.resolveComponent("cape-download-csv-button"),l=o.resolveComponent("cape-software"),c=o.resolveComponent("cape-fields-table");return o.openBlock(),o.createElementBlock("div",mR,[r[8]||(r[8]=o.createElementVNode("h2",null,"About the data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),o.createVNode(i),r[1]||(r[1]=o.createTextVNode(" records. The fields in the dataset are described below. "))]),o.createElementVNode("p",null,[r[2]||(r[2]=o.createTextVNode(" This data is copyright ")),o.createElementVNode("a",{href:(f=(u=o.unref(t))==null?void 0:u.copyright)==null?void 0:f.url},o.toDisplayString(((p=(d=o.unref(t))==null?void 0:d.copyright)==null?void 0:p.title)??"MISSING DATA"),9,vR),r[3]||(r[3]=o.createTextVNode(" and may be reused under the ")),o.createElementVNode("a",{href:(m=(h=o.unref(t))==null?void 0:h.license)==null?void 0:m.url},o.toDisplayString(((_=(v=o.unref(t))==null?void 0:v.license)==null?void 0:_.title)??"MISSING DATA"),9,_R),r[4]||(r[4]=o.createTextVNode(" license. "))]),(g=o.unref(t))!=null&&g.creators?(o.openBlock(),o.createElementBlock("p",gR,[r[5]||(r[5]=o.createTextVNode(" This dataset was created by ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).creators,(I,B)=>{var k;return o.openBlock(),o.createElementBlock("span",{key:B},[o.createElementVNode("span",null,o.toDisplayString(I.name),1),B+1<((k=o.unref(t).creators)==null?void 0:k.length)?(o.openBlock(),o.createElementBlock("span",yR,", ")):o.createCommentVNode("",!0)])}),128)),r[6]||(r[6]=o.createTextVNode(". "))])):o.createCommentVNode("",!0),o.createElementVNode("p",null,[o.createTextVNode(' If using this data, please attribute it as "'+o.toDisplayString(((C=(S=o.unref(t))==null?void 0:S.attribution)==null?void 0:C.title)??"MISSING DATA")+'" with a link to ',1),o.createElementVNode("a",{href:(V=(A=o.unref(t))==null?void 0:A.attribution)==null?void 0:V.url},o.toDisplayString(((b=(z=o.unref(t))==null?void 0:z.attribution)==null?void 0:b.url)??"MISSING DATA"),9,SR),r[7]||(r[7]=o.createTextVNode(". "))]),o.createElementVNode("p",null,[o.createVNode(a,{style:{"margin-right":"1rem"}}),o.createVNode(s)]),r[9]||(r[9]=o.createElementVNode("h2",null,"About this software",-1)),o.createVNode(l),r[10]||(r[10]=o.createElementVNode("h2",null,"Schema",-1)),r[11]||(r[11]=o.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),o.createVNode(c)])}}}),TR=o.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value"),i=o.resolveComponent("cape-record-link");return o.openBlock(),o.createBlock(i,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),NR={class:"cape-navigation"},wR={class:"cape-navigation-items"},bR={class:"cape-navigation-item"},DR=o.defineComponent({__name:"CapeNavigation",setup(e){const t=It(),n=o.computed(()=>t.pages);return(r,i)=>{const a=o.resolveComponent("router-link"),s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",NR,[o.createElementVNode("nav",null,[o.createElementVNode("ul",wR,[o.createElementVNode("li",bR,[o.createVNode(a,{class:"cape-navigation-link",to:"/"},{default:o.withCtx(()=>i[0]||(i[0]=[o.createTextVNode("Search")])),_:1,__:[0]})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,l=>(o.openBlock(),o.createElementBlock("li",{class:"cape-navigation-item",key:l.path},[o.createVNode(a,{class:"cape-navigation-link",to:l.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.label),1)]),_:2},1032,["to"])]))),128))])]),o.createElementVNode("main",null,[o.createVNode(s)])])}}}),kR={class:"cape-record-card bg-blue-100 py-2 px-4"},CR={class:"text-xl border-black border-b mb-4"},IR={class:"border-b mb-4 pb-4 border-b-black"},RR={class:"md:grid md:grid-cols-2 md:gap-4"},OR={class:"border-b mb-4 pb-4 border-b-black"},PR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"md:grid md:grid-cols-2 md:gap-4"},MR={class:"mb-5"},xR=o.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-previous-result"),i=o.resolveComponent("cape-next-result"),a=o.resolveComponent("cape-previous-record"),s=o.resolveComponent("cape-next-record"),l=o.resolveComponent("cape-labelled-value");return o.openBlock(),o.createElementBlock("div",kR,[o.createElementVNode("h2",CR,"RecordCard Placeholder ID: "+o.toDisplayString(t.record.record_number.value),1),o.createElementVNode("div",IR,[o.createElementVNode("div",RR,[o.createVNode(r,{record:t.record},{before:o.withCtx(()=>n[0]||(n[0]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[1]||(n[1]=[o.createTextVNode("[start of results]")])),_:1},8,["record"]),o.createVNode(i,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[3]||(n[3]=[o.createTextVNode("[end of results]")])),_:1},8,["record"])])]),o.createElementVNode("div",OR,[o.createElementVNode("div",PR,[o.createVNode(a,{record:t.record},{before:o.withCtx(()=>n[4]||(n[4]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[5]||(n[5]=[o.createTextVNode("[start of dataset]")])),_:1},8,["record"]),o.createVNode(s,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[6]||(n[6]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[7]||(n[7]=[o.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),o.createElementVNode("div",AR,[o.createElementVNode("ul",MR,[o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=o.createElementVNode("div",null," Column 2 ",-1))])])}}}),VR={};function LR(e,t){const n=o.resolveComponent("cape-page-width-indicator"),r=o.resolveComponent("cape-non-prod-warning");return o.openBlock(),o.createElementBlock("header",null,[o.createVNode(n),t[0]||(t[0]=o.createElementVNode("h1",{class:"text-4xl"},[o.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),o.createVNode(r)])}const FR=Bi(VR,[["render",LR]]),YR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},$R={class:"text-left"},BR=["href"],UR={class:"text-right"},HR={__name:"CapeFooter",setup(e){const{metadata:t}=It();return(n,r)=>{var a,s,l,c;const i=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("footer",YR,[o.createElementVNode("div",$R,[r[0]||(r[0]=o.createTextVNode(" © ")),o.createElementVNode("a",{href:(s=(a=o.unref(t))==null?void 0:a.copyright)==null?void 0:s.url},o.toDisplayString(((c=(l=o.unref(t))==null?void 0:l.copyright)==null?void 0:c.title)??"MISSING COPYRIGHT METADATA"),9,BR)]),r[2]||(r[2]=o.createElementVNode("div",{class:"text-center"},null,-1)),o.createElementVNode("div",UR,[r[1]||(r[1]=o.createTextVNode(" Powered by Cape ")),o.createVNode(i)])])}}},GR={class:"cape-record-label"},WR=o.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value");return o.openBlock(),o.createElementBlock("span",GR,[o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" # ")),o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),jR={class:"cape-filter-controls cape-filter-controls-top"},zR={class:"cape-advanced-search-toggle-control switch switch-sm"},KR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},qR={class:"cape-advanced-search-toggle-control switch switch-sm"},XR=o.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=_t(),n=o.computed(()=>t.showAdvanced);return(r,i)=>{const a=o.resolveComponent("cape-intro"),s=o.resolveComponent("cape-advanced-search-toggle"),l=o.resolveComponent("cape-form-reset-button"),c=o.resolveComponent("cape-filters"),u=o.resolveComponent("cape-results");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(a),o.createElementVNode("div",jR,[o.createElementVNode("div",zR,[o.createVNode(s,{id:"cape-advanced-search-toggle-top"}),i[0]||(i[0]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),o.createVNode(l)]),o.createElementVNode("div",null,[o.createVNode(c)]),n.value?(o.openBlock(),o.createElementBlock("div",KR,[o.createElementVNode("div",qR,[o.createVNode(s,{id:"cape-advanced-search-toggle-bottom"}),i[1]||(i[1]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),o.createVNode(l)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(u)])],64)}}}),JR={},QR={class:"cape-intro mb-10"};function ZR(e,t){const n=o.resolveComponent("cape-record-count");return o.openBlock(),o.createElementBlock("p",QR,[t[0]||(t[0]=o.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=o.createTextVNode(" This repository contains ")),o.createVNode(n),t[2]||(t[2]=o.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const eO=Bi(JR,[["render",ZR]]),tO=o.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return It().metadata}}}),nO={template:"#templateCapeSummaryCard",props:["record"]},rO={template:"#templateCapeNavigation",computed:{...Jf(It,["pages"])}},iO={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},aO={template:"#templateCapeHeader"},oO={template:"#templateCapeFooter"},sO={template:"#templateCapeRecordLabel",props:["record"]},lO={template:"#templateCapeHomepageLayout",computed:{...Jf(_t,["showAdvanced"]),...Jf(Bt,{hasMatches:e=>e.totalCount>0})}},pg={install:function(e,t){e.use(IN());const n=this.makeComponentMap(t);this.registerComponents(e,n),It().setOptions(t),this.registerRoutes(e,t.pages,ed);const i=async a=>{const s=await xd.getPageTitle(a,t);s&&(document.title=s)};Ps.add({priority:fg.High,action:i}),ed.afterEach(async(a,s)=>{ti().onLoaded(async()=>{await Ps.execute(a,s)})}),e.use(ed)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&o.toRaw(t).forEach(r=>{const i={path:r.path,component:e.component(r.component)};r.title&&(i.meta={title:r.title}),n.addRoute(i)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=tO,t.CapeFooter=oO,t.CapeHeader=aO,t.CapeHomepageLayout=lO,t.CapeNavigation=rO,t.CapeRecordCard=iO,t.CapeRecordLabel=sO,t.CapeSummaryCard=nO),e.additionalComponents!==void 0)for(const[n,r]of Object.entries(e.additionalComponents))t[n]=r;return t},builtInComponentsMap(){return{CapeFilterFieldDate:II,CapeFilterFieldEnum:hI,CapeFilterFieldEnumIsRadio:C1,CapeFilterFieldEnumIsSelect:O1,CapeFilterFieldEnumOneOfCheckbox:x1,CapeFilterFieldEnumOneOfMultiselect:iR,CapeFilterFieldInteger:EI,CapeFilterFieldText:KC,CapeFilterFreeText:ZC,CapeAboutPage:ER,CapeFooter:HR,CapeHeader:FR,CapeHomepageLayout:XR,CapeIntro:eO,CapeNavigation:DR,CapeRecordCard:xR,CapeRecordLabel:WR,CapeSummaryCard:TR,CapeAdvancedSearchToggle:uw,CapeFilters:dw,CapeFormResetButton:hw,CapeResults:Aw,CapeResultsControls:MI,CapeResultsCount:E1,CapeResultsInfo:y1,CapeShowAllResultsToggle:p1,CapeSortOrder:lI,CapeDownloadCsvButton:FI,CapeDownloadJsonButton:UI,CapeFieldsTable:WI,CapeFixedNumericValue:h1,CapeLabelledContent:u1,CapeLabelledValue:Yw,CapeLinkValue:f1,CapeNextRecord:a1,CapeNextResult:XI,CapePercentageValue:d1,CapePreviousRecord:n1,CapePreviousResult:ZI,CapeRecordCount:cw,CapeRecordLink:zI,CapeSingleValue:BC,CapeSoftware:sR,CapeValue:Fw,CapeVersion:pR,CapeHomePage:mw,CapeLoadError:gw,CapeLoading:Tw,CapeNonProdWarning:kw,CapePageWidthIndicator:fR,CapeRecordPage:Rw,CapeRoot:sw}}},cO={};function uO(e,t){const n=o.resolveComponent("CapeHeader"),r=o.resolveComponent("CapeRoot"),i=o.resolveComponent("CapeLoading"),a=o.resolveComponent("CapeFooter");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(n),(o.openBlock(),o.createBlock(o.Suspense,null,{default:o.withCtx(()=>[o.createVNode(r)]),fallback:o.withCtx(()=>[o.createVNode(i)]),_:1})),o.createVNode(a)],64)}const fO=Bi(cO,[["render",uO]]),dO=e=>{const t=o.createApp(fO);return t.use(pg,e),t},qr=class qr{static register(t){qr.loggers.push(t)}static clear(){qr.loggers=[]}static debug(t,n){qr.loggers.forEach(r=>r.debug(t,n))}static info(t,n){qr.loggers.forEach(r=>r.info(t,n))}static warn(t,n){qr.loggers.forEach(r=>r.warn(t,n))}static error(t,n){qr.loggers.forEach(r=>r.error(t,n))}};Pe(qr,"loggers",[]);let As=qr;var Qt=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Qt||{});class hO{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Qt.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Qt.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Qt.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Qt.Error&&console.error(t,n??"")}}const pO={install:function(e,t){const n=new hO(t.loggingLevel);As.register(n)}};class mO{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Qt.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Debug}})}info(t,n){this.loggingLevel>=Qt.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Info}})}warn(t,n){this.loggingLevel>=Qt.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Warn}})}error(t,n){this.loggingLevel>=Qt.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function Zt(e,t){return e||t}function ut(e,t){return e[t]}var Ut=void 0,Nt=null,Fd="",Rc="function",Ms="object",Rr="prototype",Oc="__proto__",ji="undefined",Pc="constructor",Yd="Symbol",uo="length",Ac="name",Rt="call",xs="toString",$d="getOwnPropertyDescriptor",Ht=Zt(Object),Bd=ut(Ht,Rr),mg=Zt(String),zi=ut(mg,Rr),Vs=Zt(Math),vg=Zt(Array),Mc=ut(vg,Rr),Or=ut(Mc,"slice"),_g="_polyfill",gg="__nw21$polytype__";function ft(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function vO(e,t,n){var r=ft(e,n);return r.e?t:r.v}var Ud;function xc(e){return function(t){return typeof t===e}}function yg(e){var t="[object "+e+"]";return function(n){return!!(n&&_O(n)===t)}}function _O(e){return Bd[xs].call(e)}function dt(e){return typeof e===ji||e===ji}function gO(e){return e===Ut}function K(e){return e===Nt||dt(e)}function Hd(e){return e===Nt||e===Ut}function yO(e){return!!e||e!==Ut}function SO(e){return!Ud&&(Ud=["string","number","boolean",ji,"symbol","bigint"]),e!==Ms&&Ud.indexOf(e)!==-1}var ye=xc("string"),Se=xc(Rc);function en(e){return!e&&K(e)?!1:!!e&&typeof e===Ms}var ke=ut(vg,"isArray"),EO=yg("Date"),Ls=xc("number"),Sg=xc("boolean"),Gd=yg("Error");function oi(e){return!!(e&&e.then&&Se(e.then))}function Vc(e){return!(!e||vO(function(){return!(e&&0+e)},!e))}function Wd(){}function TO(){return!1}var Gt=Zt(mg),NO="[object Error]";function se(e,t){var n=Fd,r=Bd[xs][Rt](e);r===NO&&(e={stack:Gt(e.stack),message:Gt(e.message),name:Gt(e.name)});try{n=JSON.stringify(e,Nt,t?typeof t=="number"?t:4:Ut),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Nt)||Gt(e)}catch(i){n=" - "+se(i,t)}return r+": "+n}function on(e){throw new Error(e)}function qn(e){throw new TypeError(e)}function Lc(e){Hd(e)&&qn("Cannot convert undefined or null to object")}function wO(e){ye(e)||qn("'"+se(e)+"' is not a string")}function gn(e,t){return!!e&&Bd.hasOwnProperty[Rt](e,t)}var bO=Zt(ut(Ht,$d),Wd),si=Zt(ut(Ht,"hasOwn"),DO);function DO(e,t){return Lc(e),gn(e,t)||!!bO(e,t)}function Me(e,t,n){if(e&&(en(e)||Se(e))){for(var r in e)if(si(e,r)&&t[Rt](e,r,e[r])===-1)break}}function oe(e,t,n){if(e)for(var r=e[uo]>>>0,i=0;i<r&&!(i in e&&t[Rt](e,e[i],i,e)===-1);i++);}var Ki=Fc;function Fc(e,t,n){var r=t?t[e]:Nt;return function(i){var a=(i?i[e]:Nt)||r;if(a||n){var s=arguments;return(a||n).apply(i,a?Or[Rt](s,1):s)}qn('"'+Gt(e)+'" not defined for '+se(i))}}function kO(e){return function(t){return t[e]}}var CO=Zt(ut(Ht,$d),Wd),Yc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function IO(e){var t={};if(t[Yc.c]=!0,t[Yc.e]=!0,e.l){t.get=function(){return e.l.v};var n=CO(e.l,"v");n&&n.set&&(t.set=function(r){e.l.v=r})}return Me(e,function(r,i){t[Yc[r]]=gO(i)?t[Yc[r]]:i}),t}var Pr=ut(Ht,"defineProperty"),RO=ut(Ht,"defineProperties");function Le(e,t,n){return Pr(e,t,IO(n))}function Eg(e,t,n,r,i){var a={};return Me(e,function(s,l){$c(a,s,t?l:s),$c(a,l,s)}),r?r(a):a}function $c(e,t,n,r){Pr(e,t,{value:n,enumerable:!0,writable:!1})}var OO=Zt(ut(Ht,"isFrozen"),TO),Tg=ut(Ht,"freeze");function PO(e){return e}function AO(e){return Lc(e),e[Oc]||Nt}var jd=ut(Ht,"assign"),Ar=ut(Ht,"keys");function Ng(e,t){if((ke(e)||en(e)||Se(e))&&!OO(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Me(e,function(r,i){Ng(i,t)}),An(e)}return e}function Fs(e){return Tg?Ng(e,[]):e}var An=Zt(Tg,PO),zd=Zt(ut(Ht,"getPrototypeOf"),AO);function MO(e){return Eg(e,1,0,An)}function xO(e){return Eg(e,0,0,An)}function VO(e){var t={};return Me(e,function(n,r){$c(t,n,r[1]),$c(t,r[0],r[1])}),An(t)}function LO(e){return VO(e)}var wg=xO({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),bg="__tsUtils$gblCfg",Kd;function Dg(){var e;return typeof globalThis!==ji&&(e=globalThis),!e&&typeof self!==ji&&(e=self),!e&&typeof window!==ji&&(e=window),!e&&typeof global!==ji&&(e=global),e}function Bc(){if(!Kd){var e=ft(Dg).v||{};Kd=e[bg]=e[bg]||{}}return Kd}var kg=ut(Vs,"min"),Ys=ut(Vs,"max"),Cg=Ki("slice",zi),Xn=Ki("substring",zi),li=Fc("substr",zi,FO);function FO(e,t,n){return Lc(e),n<0?Fd:(t=t||0,t<0&&(t=Ys(t+e[uo],0)),dt(n)?Cg(e,t):Cg(e,t,t+n))}function qd(e,t){return Xn(e,0,t)}function YO(e,t){return e&&(ft(function(){e[_g]=!0,e[gg]=t}),ft(Le,[e,_g,{v:!0,w:!1,e:!1}]),ft(Le,[e,gg,{v:t,w:!1,e:!1}])),e}var Mr=Zt(ut(Ht,"create"),$O);function $O(e,t){var n=null;function r(){}if(Hd(e))n={};else{var i=typeof e;i!==Ms&&i!==Rc&&qn("Prototype must be an Object or function: "+se(e)),r[Rr]=e,ft(function(){r[Oc]=e}),n=new r}return t&&ft(RO,[n,t]),n}function Mn(){return(Date.now||BO)()}function BO(){return new Date().getTime()}function qi(e,t,n){return e.apply(t,n)}var gt;function ci(){gt=Bc()}function Ig(e,t){var n={};return!gt&&ci(),n.b=gt.lzy,Pr(n,"v",{configurable:!0,get:function(){var r=qi(e,null,t);return gt.lzy||Pr(n,"v",{value:r}),n.b=gt.lzy,r}}),n}var UO=ut(Vs,"random"),HO=Ig(function(){for(var e=Mn().toString(36).slice(2);e.length<16;)e+=UO().toString(36).slice(2);return e=e.substring(0,16),e}),Rg="_urid",GO="$nw21sym",Xd,WO=0;function jO(){if(!Xd){var e=Bc();Xd=e.gblSym=e.gblSym||{k:{},s:{}}}return Xd}var Uc;function Jd(e){var t="_"+WO+++"_"+HO.v,n=Yd+"("+e+")";function r(a,s){Le(i,a,{v:s,e:!1,w:!1})}var i=Mr(null);return r("description",Gt(e)),r(xs,function(){return n+GO+t}),r("valueOf",function(){return i}),r("v",n),r("_uid",t),YO(i,"symbol")}function zO(e){var t=jO();if(!si(t.k,e)){var n=Jd(e),r=Ar(t.s).length;n[Rg]=function(){return r+"_"+n[xs]()},t.k[e]=n,t.s[n[Rg]()]=Gt(e)}return t.k[e]}function KO(e){!Uc&&(Uc={});var t,n=wg[e];return n&&(t=Uc[n]=Uc[n]||Jd(Yd+"."+n)),t}function yn(e){return Pr({toJSON:function(){return e}},"v",{value:e})}var Og="window",$s;function fo(e,t){var n;return function(){return!gt&&ci(),(!n||gt.lzy)&&(n=yn(ft(e,t).v)),n.v}}function Sn(e){return!gt&&ci(),(!$s||e===!1||gt.lzy)&&($s=yn(ft(Dg).v||Nt)),$s.v}function ot(e,t){var n;if(!$s||t===!1?n=Sn(t):n=$s.v,n&&n[e])return n[e];if(e===Og)try{return window}catch{}return Nt}function Pg(){return!!Ot()}var Ot=fo(ot,["document"]);function Hc(){return!!sn()}var sn=fo(ot,[Og]);function qO(){return!!Jn()}var Jn=fo(ot,["navigator"]);function XO(){return!!Ag()}var Ag=fo(ot,["history"]),JO=fo(function(){return!!ft(function(){return process&&(process.versions||{}).node}).v}),Mg=fo(function(){return!!ft(function(){return self&&self instanceof WorkerGlobalScope}).v}),ho,Qd;function Gc(){return ho=yn(ft(ot,[Yd]).v),ho}function QO(e){var t=(gt.lzy?0:ho)||Gc();return t.v?t.v[e]:Ut}function ZO(){return!!eP()}function eP(){return!gt&&ci(),((gt.lzy?0:ho)||Gc()).v}function Zd(e,t){var n=wg[e];!gt&&ci();var r=(gt.lzy?0:ho)||Gc();return r.v?r.v[n||e]:KO(e)}function Bs(e,t){!gt&&ci();var n=(gt.lzy?0:ho)||Gc();return n.v?n.v(e):Jd(e)}function eh(e){return!gt&&ci(),Qd=(gt.lzy?0:Qd)||yn(ft(QO,["for"]).v),(Qd.v||zO)(e)}function th(e){return!!e&&Se(e.next)}function xg(e){return!Hd(e)&&Se(e[Zd(3)])}var Wc;function nh(e,t,n){if(e&&(th(e)||(!Wc&&(Wc=yn(Zd(3))),e=e[Wc.v]?e[Wc.v]():Nt),th(e))){var r=Ut,i=Ut;try{for(var a=0;!(i=e.next()).done&&t[Rt](n||e,i.value,a,e)!==-1;)a++}catch(s){r={e:s},e.throw&&(i=Nt,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function po(e,t){return!dt(t)&&e&&(ke(t)?qi(e.push,e,t):th(t)||xg(t)?nh(t,function(n){e.push(n)}):e.push(t)),e}var Ft=Ki("indexOf",Mc),Us=Ki("map",Mc);function jc(e,t,n){return((e?e.slice:Nt)||Or).apply(e,Or[Rt](arguments,1))}var tP=Ki("reduce",Mc),rh,Vg=Zt(ut(Ht,"setPrototypeOf"),nP);function nP(e,t){var n;return!rh&&(rh=yn((n={},n[Oc]=[],n instanceof Array))),rh.v?e[Oc]=t:Me(t,function(r,i){return e[r]=i}),e}function rP(e,t,n){ft(Le,[t,Ac,{v:e,c:!0,e:!1}]),t=Vg(t,n);function r(){this[Pc]=t,ft(Le,[this,Ac,{v:e,c:!0,e:!1}])}return t[Rr]=n===Nt?Mr(n):(r[Rr]=n[Rr],new r),t}function Lg(e,t){t&&(e[Ac]=t)}function Fg(e,t,n){var r=Error,i=r[Rr][Ac],a=Error.captureStackTrace;return rP(e,function(){var s=this,l=arguments;try{ft(Lg,[r,e]);var c=qi(r,s,Or[Rt](l))||s;if(c!==s){var u=zd(s);u!==zd(c)&&Vg(c,u)}return a&&a(c,s[Pc]),t&&t(c,l),c}finally{ft(Lg,[r,i])}},r)}var ih;function iP(e){throw ih||(ih=Fg("UnsupportedError")),new ih(e)}function aP(e){return function(n){return Lc(n),n&&n.replace&&(n=n.replace(e,Fd)),n}}var oP=aP(/^\s+|(?=\s)\s+$/g),Ze=Fc("trim",zi,oP),ln=ut(Vs,"floor"),ah,oh,sh;function Wt(e){if(!e||typeof e!==Ms)return!1;sh||(sh=Hc()?sn():!0);var t=!1;if(e!==sh){oh||(ah=Function[Rr][xs],oh=ah[Rt](Ht));try{var n=zd(e);t=!n,t||(gn(n,Pc)&&(n=n[Pc]),t=!!(n&&typeof n===Rc&&ah[Rt](n)===oh))}catch{}}return t}function sP(e){return e.value&&Bg(e),!0}var Yg=[fP,Bg,hP,dP];function lP(e,t,n,r){var i;return oe(e,function(a){if(a.k===t)return i=a,-1}),i||(i={k:t,v:t},e.push(i),r(i)),i.v}function lh(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],s={handler:n.handler,src:n.src,path:a},l=typeof t,c=!1,u=t===Nt;u||(t&&l===Ms?c=Wt(t):u=SO(l));var f={type:l,isPrim:u,isPlain:c,value:t,result:t,path:a,origin:n.src,copy:function(d,p){return lh(e,d,p?s:n,p)},copyTo:function(d,p){return $g(e,d,p,s)}};return f.isPrim?i&&i[Rt](n,f)?f.result:t:lP(e,t,a,function(d){Le(f,"result",{g:function(){return d.v},s:function(m){d.v=m}});for(var p=0,h=i;!(h||(p<Yg.length?Yg[p++]:sP))[Rt](n,f);)h=Nt})}function $g(e,t,n,r){if(!K(n))for(var i in n)t[i]=lh(e,n[i],r,i);return t}function cP(e,t,n){var r={handler:n,src:t,path:[]};return $g([],e,t,r)}function uP(e,t){var n={handler:t,src:e};return lh([],e,n)}function fP(e){var t=e.value;if(ke(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function dP(e){var t=e.value;return EO(t)?(e.result=new Date(t.getTime()),!0):!1}function hP(e){return e.type===Rc}function Bg(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function Ug(e,t){return oe(t,function(n){cP(e,n)}),e}function Hg(e,t,n,r,i,a,s){return Ug(uP(e)||{},Or[Rt](arguments))}function pP(e,t,n,r,i,a,s){return Ug(e||{},Or[Rt](arguments))}var Gg=Ki("split",zi);function Wg(e,t,n){if(e&&t){var r=Gg(t,"."),i=r.pop();oe(r,function(a){K(e[a])&&(e[a]={}),e=e[a]}),e[i]=n}}var mP=kO(uo),ch;function xr(){return!gt&&ci(),(!ch||gt.lzy)&&(ch=yn(ft(ot,["performance"]).v)),ch.v}var jg=ut(Vs,"round"),vP=Zt(ut(Ht,$d),Wd),zg=Fc("endsWith",zi,_P);function _P(e,t,n){wO(e);var r=ye(t)?t:Gt(t),i=!dt(n)&&n<e[uo]?n:e[uo];return Xn(e,i-r[uo],i)===r}var jt=Ki("indexOf",zi),uh="ref",fh="unref",dh="hasRef",gP="enabled";function yP(e,t,n){var r=!0,i=e?t(Nt):Nt,a;function s(){return r=!1,i&&i[fh]&&i[fh](),a}function l(){i&&n(i),i=Nt}function c(){return i=t(i),r||s(),a}function u(f){!f&&i&&l(),f&&!i&&c()}return a={cancel:l,refresh:c},a[dh]=function(){return i&&i[dh]?i[dh]():r},a[uh]=function(){return r=!0,i&&i[uh]&&i[uh](),a},a[fh]=s,a=Pr(a,gP,{get:function(){return!!i},set:u}),{h:a,dn:function(){i=Nt}}}var SP,EP;function TP(e){var t=Se(e)?e:SP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>0&&Se(n[0])&&(t=n[0])}return t||setTimeout}function NP(e){var t=Se(e)?e:EP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>1&&Se(n[1])&&(t=n[1])}return t||clearTimeout}function Kg(e,t,n){var r=ke(t),i=r?t.length:0,a=TP(i>0?t[0]:r?Ut:t),s=NP(i>1?t[1]:Ut),l=n[0];n[0]=function(){c.dn(),qi(l,Ut,Or[Rt](arguments))};var c=yP(e,function(u){if(u){if(u.refresh)return u.refresh(),u;qi(s,Ut,[u])}return qi(a,Ut,n)},function(u){qi(s,Ut,[u])});return c.h}function En(e,t){return Kg(!0,Ut,Or[Rt](arguments))}function wP(e,t){return Kg(!1,Ut,Or[Rt](arguments))}var zc,Kc="constructor",Vr="prototype",qc="function",Xc="_dynInstFuncs",hh="_isDynProxy",mo="_dynClass",bP="_dynCls$",ph="_dynInstChk",Hs=ph,qg="_dfOpts",Xg="_unknown_",mh="__proto__",Jc="_dyn"+mh,Jg="__dynProto$Gbl",vh="_dynInstProto",Qc="useBaseInst",_h="setInstFuncs",gh=Object,Gs=gh.getPrototypeOf,Qg=gh.getOwnPropertyNames,Zg=Sn(),yh=Zg[Jg]||(Zg[Jg]={o:(zc={},zc[_h]=!0,zc[Qc]=!0,zc),n:1e3});function Zc(e){return e&&(e===gh[Vr]||e===Array[Vr])}function Sh(e){return Zc(e)||e===Function[Vr]}function Xi(e){var t;if(e){if(Gs)return Gs(e);var n=e[mh]||e[Vr]||(e[Kc]?e[Kc][Vr]:null);t=e[Jc]||n,gn(e,Jc)||(delete e[vh],t=e[Jc]=e[vh]||e[Jc],e[vh]=n)}return t}function eu(e,t){var n=[];if(Qg)n=Qg(e);else for(var r in e)typeof r=="string"&&gn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Eh(e,t,n){return t!==Kc&&typeof e[t]===qc&&(n||gn(e,t))&&t!==mh&&t!==Vr}function tu(e){qn("DynamicProto: "+e)}function DP(e){var t=Mr(null);return eu(e,function(n){!t[n]&&Eh(e,n,!1)&&(t[n]=e[n])}),t}function Th(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function kP(e,t,n,r){function i(c,u,f){var d=u[f];if(d[hh]&&r){var p=c[Xc]||{};p[Hs]!==!1&&(d=(p[u[mo]]||{})[f]||d)}return function(){return d.apply(c,arguments)}}var a=Mr(null);eu(n,function(c){a[c]=i(t,n,c)});for(var s=Xi(e),l=[];s&&!Sh(s)&&!Th(l,s);)eu(s,function(c){!a[c]&&Eh(s,c,!Gs)&&(a[c]=i(t,s,c))}),l.push(s),s=Xi(s);return a}function CP(e,t,n,r){var i=null;if(e&&gn(n,mo)){var a=e[Xc]||Mr(null);if(i=(a[n[mo]]||Mr(null))[t],i||tu("Missing ["+t+"] "+qc),!i[ph]&&a[Hs]!==!1){for(var s=!gn(e,t),l=Xi(e),c=[];s&&l&&!Sh(l)&&!Th(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=Xi(l)}try{s&&(e[t]=i),i[ph]=1}catch{a[Hs]=!1}}}return i}function IP(e,t,n){var r=t[e];return r===n&&(r=Xi(t)[e]),typeof r!==qc&&tu("["+e+"] is not a "+qc),r}function RP(e,t,n,r,i){function a(c,u){var f=function(){var d=CP(this,u,c,f)||IP(u,c,f);return d.apply(this,arguments)};return f[hh]=1,f}if(!Zc(e)){var s=n[Xc]=n[Xc]||Mr(null);if(!Zc(s)){var l=s[t]=s[t]||Mr(null);s[Hs]!==!1&&(s[Hs]=!!i),Zc(l)||eu(n,function(c){Eh(n,c,!1)&&n[c]!==r[c]&&(l[c]=n[c],delete n[c],(!gn(e,c)||e[c]&&!e[c][hh])&&(e[c]=a(e,c)))})}}}function OP(e,t){if(Gs){for(var n=[],r=Xi(t);r&&!Sh(r)&&!Th(n,r);){if(r===e)return!0;n.push(r),r=Xi(r)}return!1}return!0}function Nh(e,t){return gn(e,Vr)?e.name||t||Xg:((e||{})[Kc]||{}).name||t||Xg}function et(e,t,n,r){gn(e,Vr)||tu("theClass is an invalid class definition.");var i=e[Vr];OP(i,t)||tu("["+Nh(e)+"] not in hierarchy of ["+Nh(t)+"]");var a=null;gn(i,mo)?a=i[mo]:(a=bP+Nh(e,"_")+"$"+yh.n,yh.n++,i[mo]=a);var s=et[qg],l=!!s[Qc];l&&r&&r[Qc]!==void 0&&(l=!!r[Qc]);var c=DP(t),u=kP(i,t,c,l);n(t,u);var f=!!Gs&&!!s[_h];f&&r&&(f=!!r[_h]),RP(i,a,t,c,f!==!1)}et[qg]=yh.o;var ey="function",ty="object",wh="undefined",Qn="prototype",bh=Object,PP=bh[Qn];(Sn()||{}).Symbol,(Sn()||{}).Reflect;var ny="hasOwnProperty",AP=function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)PP[ny].call(t,i)&&(e[i]=t[i])}return e},zt=jd||AP,Dh=function(e,t){return Dh=bh.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r[ny](i)&&(n[i]=r[i])},Dh(e,t)};function Lr(e,t){typeof t!==ey&&t!==null&&qn("Class extends value "+String(t)+" is not a constructor or null"),Dh(e,t);function n(){this.constructor=e}e[Qn]=t===null?Mr(t):(n[Qn]=t[Qn],new n)}function ry(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var iy=MO,MP=LO,ui=iy({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),vo="toLowerCase",we="length",nu="warnToConsole",Ws="throwInternal",Ji="watch",Qi="apply",Be="push",_o="splice",yt="logger",Zi="cancel",js="initialize",fi="identifier",ru="removeNotificationListener",iu="addNotificationListener",Zn="isInitialized",au="getNotifyMgr",zs="getPlugin",ea="name",Kt="processNext",ay="getProcessTelContext",ta="value",go="enabled",oy="stopPollingInternalLogs",na="unload",ou="onComplete",kh="version",sy="loggingLevelConsole",ra="createNew",Fr="teardown",su="messageId",ia="message",Yr="diagLog",lu="_doTeardown",Ks="update",er="getNext",qs="setNextPlugin",Ch="userAgent",yo="split",aa="replace",di="type",ly="evtName",$r="status",xP="indexOf",cy="getAllResponseHeaders",Ih="isChildEvt",xn="data",So="getCtx",tr="setCtx",uy="itemsReceived",cu="headers",Xs="urlString",Eo="timeout",Rh="traceFlags",Oh="getAttribute",Ph;function VP(e,t){Ph||(Ph=Fg("AggregationError",function(r,i){i[we]>1&&(r.errors=i[1])}));var n=e;throw oe(t,function(r,i){n+=`
53
+ `).join("")}const FI=o.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=VI(),r=LI(n);xI("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(o.openBlock(),o.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),YI={},$I={href:"/site-data.json",class:"cape-button"};function BI(e,t){return o.openBlock(),o.createElementBlock("a",$I,"Download JSON")}const UI=Bi(YI,[["render",BI]]),HI={class:"cape-fields-table"},GI={key:0},WI=o.defineComponent({__name:"CapeFieldsTable",setup(e){const t=Za(),n=o.computed(()=>t.all);return(r,i)=>(o.openBlock(),o.createElementBlock("table",HI,[i[0]||(i[0]=o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{scope:"col"},"Field id"),o.createElementVNode("th",{scope:"col"},"Field name"),o.createElementVNode("th",{scope:"col"},"Field type"),o.createElementVNode("th",{scope:"col"},"Description")])],-1)),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("tr",{key:a.id},[o.createElementVNode("td",null,o.toDisplayString(a.id),1),o.createElementVNode("td",null,o.toDisplayString(a.label),1),o.createElementVNode("td",null,[o.createTextVNode(o.toDisplayString(a.type)+" ",1),a.isMultiple?(o.openBlock(),o.createElementBlock("span",GI," list")):o.createCommentVNode("",!0)]),o.createElementVNode("td",null,o.toDisplayString(a.description),1)]))),128))])]))}});function jI(e){const n=It().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const zI=o.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=o.computed(()=>jI(t.record));return(r,i)=>{const a=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(a,{to:n.value},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["to"])}}}),KI={key:0,class:"cape-next-result"},qI={key:1,class:"cape-next-result cape-next-result-null"},XI=o.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",KI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",qI,[o.renderSlot(i.$slots,"otherwise")]))}}}),JI={key:0,class:"cape-previous-result"},QI={key:1,class:"cape-previous-result cape-previous-result-null"},ZI=o.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",JI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",QI,[o.renderSlot(i.$slots,"otherwise")]))}}}),e1={key:0,class:"cape-previous-record"},t1={key:1,class:"cape-previous-record cape-previous-record-null"},n1=o.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",e1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",t1,[o.renderSlot(i.$slots,"otherwise")]))}}}),r1={key:0,class:"cape-next-record"},i1={key:1,class:"cape-next-record cape-next-record-null"},a1=o.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",r1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",i1,[o.renderSlot(i.$slots,"otherwise")]))}}}),us=class us{static add(t){us.functions.push(t)}static all(){return us.functions}static async execute(t,n){for(const r of us.all().sort((i,a)=>i.priority-a.priority))try{await r.action(t,n)}catch(i){console.error("Error executing action:",i);return}}};Pe(us,"functions",[]);let Ps=us;const fg={High:10,Low:1e3},Ha=class Ha{static async fetchIndexPageTitle(){if(Ha.indexHtmlTitle)return Ha.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),a=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ha.indexHtmlTitle=(a==null?void 0:a.text)||void 0,Ha.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:r,params:i,meta:a}=t;if(r==="record"&&n.recordPageTitleExpression){const c=i==null?void 0:i.id;if(!c)throw new Error("Record ID is required but not specified.");if(ti().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const d=Sr().byId(c);return n.recordPageTitleExpression(d)}if(a!=null&&a.title)return a.title;const s=await this.fetchIndexPageTitle();return s||It().title}};Pe(Ha,"indexHtmlTitle");let xd=Ha;const o1={class:"cape-labelled-value"},s1={key:0,class:"cape-error cape-labelled-value-error"},l1=["title"],c1={key:1,class:"cape-labelled-value-label"},u1=o.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=o.computed(()=>{var r;return(r=t.fieldValue)==null?void 0:r.field});return(r,i)=>(o.openBlock(),o.createElementBlock("div",o1,[!r.fieldValue||!n.value?(o.openBlock(),o.createElementBlock("div",s1," [Error, trying to render label for a non-existent field] ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(o.openBlock(),o.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},o.toDisplayString(n.value.label),9,l1)):(o.openBlock(),o.createElementBlock("div",c1,o.toDisplayString(n.value.label),1)),o.renderSlot(r.$slots,"default")],64))]))}}),f1=o.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>t.fieldValuePair.value),i=o.computed(()=>t.fieldValuePair.field),a=o.computed(()=>{const s="/",l={};try{n.byId(`field-${i.value.id}`).display==="advanced"&&(l.advanced="true"),l.jump="true",l[`field-${i.value.id}-mode`]="is",l[`field-${i.value.id}-term`]=`${r.value}`}catch{console.error(`Attempt to create link from field ${i.value.id} which has no related filter.`)}return{path:s,query:l}});return(s,l)=>{const c=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(c,{to:a.value},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["to"])}}}),d1=o.defineComponent({__name:"CapePercentageValue",props:{value:String},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r*100+"%"});return(r,i)=>o.toDisplayString(n.value)}}),h1=o.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r.toFixed(t.digits)});return(r,i)=>o.toDisplayString(n.value)}}),p1={__name:"CapeShowAllResultsToggle",setup(e){const t=Bt();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAllResults]])}},m1={key:0,class:"cape-results-info"},v1={key:0},_1={key:1},g1={key:1,class:"cape-results-count"},y1=o.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Bt();return(n,r)=>o.unref(t).allResultsAreVisible?(o.openBlock(),o.createElementBlock("div",m1,[o.unref(t).visibleCount==1?(o.openBlock(),o.createElementBlock("div",v1,"Showing 1 matching record.")):(o.openBlock(),o.createElementBlock("div",_1,"Showing all "+o.toDisplayString(o.unref(t).visibleCount)+" matching records.",1))])):(o.openBlock(),o.createElementBlock("div",g1," Showing first "+o.toDisplayString(o.unref(t).visibleCount)+" of "+o.toDisplayString(o.unref(t).totalCount)+" matching records. ",1))}}),S1={class:"cape-results-count"},E1=o.defineComponent({__name:"CapeResultsCount",setup(e){const t=Bt();return(n,r)=>(o.openBlock(),o.createElementBlock("span",S1,o.toDisplayString(o.unref(t).totalCount),1))}}),T1={class:"cape-filter-field-enum-is-radio"},N1={class:"form-check form-check-inline"},w1=["id"],b1=["for"],D1=["id","value"],k1=["for"],C1=o.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",T1,[o.createElementVNode("li",N1,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),type:"radio",value:""},null,8,w1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"},s[2]||(s[2]=[o.createElementVNode("em",null,"any",-1)]),8,b1)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[1]||(s[1]=c=>o.unref(r).isTerm=c),value:l,type:"radio"},null,8,D1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,k1)]))),128))]))}}),I1=["aria-label"],R1=["value"],O1=o.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),"aria-label":"Select "+o.unref(i).label+" value."},[s[1]||(s[1]=o.createElementVNode("option",{key:"",value:""},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("option",{key:l,value:l},o.toDisplayString(l),9,R1))),128))],8,I1)),[[o.vModelSelect,o.unref(r).isTerm]])}}),P1={class:"cape-filter-field-enum-one-of-checkbox"},A1=["id","value"],M1=["for"],x1=o.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",P1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[0]||(s[0]=c=>o.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,A1),[[o.vModelCheckbox,o.unref(r).oneOfTerms]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,M1)]))),128))]))}});function Vd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function V1(e){return(...t)=>!e(...t)}function L1(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function F1(e){return e.filter(t=>!t.$isLabel)}function Ld(e,t){return n=>n.reduce((r,i)=>i[e]&&i[e].length?(r.push({$groupLabel:i[t],$isLabel:!0}),r.concat(i[e])):r,[])}const dg=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Y1={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Vd(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Ld(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(V1(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return dg(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Ld(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return dg(Ld(this.groupValues,this.groupLabel),F1)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Vd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Vd(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(i=>i[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(i=>n.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(i=>L1(r(i,n),t)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):r(i,n).length-r(a,n).length):e},filterGroups(e,t,n,r,i){return a=>a.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(s[n],e,t,i);return l.length?{[r]:s[r],[n]:l}:[]})}}},$1={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},hg={name:"vue-multiselect",mixins:[Y1,$1],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const B1=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],U1={ref:"tags",class:"multiselect__tags"},H1={class:"multiselect__tags-wrap"},G1=["textContent"],W1=["onKeypress","onMousedown"],j1=["textContent"],z1={class:"multiselect__spinner"},K1=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],q1=["id","aria-multiselectable"],X1={key:0},J1={class:"multiselect__option"},Q1=["aria-selected","id","role"],Z1=["onClick","onMouseenter","data-select","data-selected","data-deselect"],eR=["data-select","data-deselect","onMouseenter","onMousedown"],tR={class:"multiselect__option"},nR={class:"multiselect__option"};function rR(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:o.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=s=>e.activate()),onBlur:t[15]||(t[15]=s=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=o.withKeys(s=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[o.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[o.createElementVNode("div",{onMousedown:t[0]||(t[0]=o.withModifiers(s=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o.renderSlot(e.$slots,"clear",{search:e.search}),o.createElementVNode("div",U1,[o.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[o.withDirectives(o.createElementVNode("div",H1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.visibleValues,(s,l)=>o.renderSlot(e.$slots,"tag",{option:s,search:e.search,remove:e.removeElement},()=>[(o.openBlock(),o.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("span",{textContent:o.toDisplayString(e.getOptionLabel(s))},null,8,G1),o.createElementVNode("i",{tabindex:"1",onKeypress:o.withKeys(o.withModifiers(c=>e.removeElement(s),["prevent"]),["enter"]),onMousedown:o.withModifiers(c=>e.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,W1)],32))])),256))],512),[[o.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?o.renderSlot(e.$slots,"limit",{key:0},()=>[o.createElementVNode("strong",{class:"multiselect__strong",textContent:o.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,j1)]):o.createCommentVNode("v-if",!0)]),o.createVNode(o.Transition,{name:"multiselect__loading"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"loading",{},()=>[o.withDirectives(o.createElementVNode("div",z1,null,512),[[o.vShow,n.loading]])])]),_:3}),e.searchable?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:o.normalizeStyle(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=s=>e.updateSearch(s.target.value)),onFocus:t[3]||(t[3]=o.withModifiers(s=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=o.withModifiers(s=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=o.withKeys(s=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=o.withKeys(o.withModifiers(s=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,K1)):o.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(o.openBlock(),o.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[o.createTextVNode(o.toDisplayString(e.currentOptionLabel),1)])],32)):o.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(o.openBlock(),o.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"placeholder",{},()=>[o.createTextVNode(o.toDisplayString(e.placeholder),1)])],32)):o.createCommentVNode("v-if",!0)],512),o.createVNode(o.Transition,{name:"multiselect",persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...s)=>e.activate&&e.activate(...s)),tabindex:"-1",onMousedown:t[13]||(t[13]=o.withModifiers(()=>{},["prevent"])),style:o.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[o.createElementVNode("ul",{class:"multiselect__content",style:o.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[o.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(o.openBlock(),o.createElementBlock("li",X1,[o.createElementVNode("span",J1,[o.renderSlot(e.$slots,"maxElements",{},()=>[o.createTextVNode("Maximum of "+o.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):o.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.filteredOptions,(s,l)=>(o.openBlock(),o.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(s),id:e.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.optionHighlight(l,s),"multiselect__option"]),onClick:o.withModifiers(c=>e.select(s),["stop"]),onMouseenter:o.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":s&&s.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,Z1)),s&&(s.$isLabel||s.$isDisabled)?(o.openBlock(),o.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:o.normalizeClass([e.groupHighlight(l,s),"multiselect__option"]),onMouseenter:o.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:o.withModifiers(c=>e.selectGroup(s),["prevent"])},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,eR)):o.createCommentVNode("v-if",!0)],8,Q1))),128)):o.createCommentVNode("v-if",!0),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",tR,[o.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=o.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[o.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",nR,[o.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=o.createTextVNode("List is empty."))])])],512),[[o.vShow,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),o.renderSlot(e.$slots,"afterList")],12,q1)],36),[[o.vShow,e.isOpen]])]),_:3})],42,B1)}hg.render=rR;const iR=o.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createBlock(o.unref(hg),{id:"filter-multiselect-"+o.unref(i).id,modelValue:o.unref(r).oneOfTerms,"onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:o.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),aR={};function oR(e,t){const n=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("p",null,[t[0]||(t[0]=o.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=o.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=o.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=o.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=o.createTextVNode(" team at the ")),t[5]||(t[5]=o.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=o.createTextVNode(", UK. This site uses Cape ")),o.createVNode(n),t[7]||(t[7]=o.createTextVNode(". "))])}const sR=Bi(aR,[["render",oR]]),lR={},cR={class:"border border-black p-1 fixed right-1 top-1"};function uR(e,t){return o.openBlock(),o.createElementBlock("div",cR,t[0]||(t[0]=[o.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const fR=Bi(lR,[["render",uR]]),dR="3.2.0",hR={class:"cape-plugin-version"},pR=o.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("span",hR,"v"+o.toDisplayString(o.unref(dR)),1))}}),mR={class:"cape-content-page"},vR=["href"],_R=["href"],gR={key:0},yR={key:0},SR=["href"],ER=o.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=It();return(n,r)=>{var u,f,d,p,h,m,v,_,g,S,C,A,V,z,b;const i=o.resolveComponent("cape-record-count"),a=o.resolveComponent("cape-download-json-button"),s=o.resolveComponent("cape-download-csv-button"),l=o.resolveComponent("cape-software"),c=o.resolveComponent("cape-fields-table");return o.openBlock(),o.createElementBlock("div",mR,[r[8]||(r[8]=o.createElementVNode("h2",null,"About the data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),o.createVNode(i),r[1]||(r[1]=o.createTextVNode(" records. The fields in the dataset are described below. "))]),o.createElementVNode("p",null,[r[2]||(r[2]=o.createTextVNode(" This data is copyright ")),o.createElementVNode("a",{href:(f=(u=o.unref(t))==null?void 0:u.copyright)==null?void 0:f.url},o.toDisplayString(((p=(d=o.unref(t))==null?void 0:d.copyright)==null?void 0:p.title)??"MISSING DATA"),9,vR),r[3]||(r[3]=o.createTextVNode(" and may be reused under the ")),o.createElementVNode("a",{href:(m=(h=o.unref(t))==null?void 0:h.license)==null?void 0:m.url},o.toDisplayString(((_=(v=o.unref(t))==null?void 0:v.license)==null?void 0:_.title)??"MISSING DATA"),9,_R),r[4]||(r[4]=o.createTextVNode(" license. "))]),(g=o.unref(t))!=null&&g.creators?(o.openBlock(),o.createElementBlock("p",gR,[r[5]||(r[5]=o.createTextVNode(" This dataset was created by ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).creators,(I,B)=>{var k;return o.openBlock(),o.createElementBlock("span",{key:B},[o.createElementVNode("span",null,o.toDisplayString(I.name),1),B+1<((k=o.unref(t).creators)==null?void 0:k.length)?(o.openBlock(),o.createElementBlock("span",yR,", ")):o.createCommentVNode("",!0)])}),128)),r[6]||(r[6]=o.createTextVNode(". "))])):o.createCommentVNode("",!0),o.createElementVNode("p",null,[o.createTextVNode(' If using this data, please attribute it as "'+o.toDisplayString(((C=(S=o.unref(t))==null?void 0:S.attribution)==null?void 0:C.title)??"MISSING DATA")+'" with a link to ',1),o.createElementVNode("a",{href:(V=(A=o.unref(t))==null?void 0:A.attribution)==null?void 0:V.url},o.toDisplayString(((b=(z=o.unref(t))==null?void 0:z.attribution)==null?void 0:b.url)??"MISSING DATA"),9,SR),r[7]||(r[7]=o.createTextVNode(". "))]),o.createElementVNode("p",null,[o.createVNode(a,{style:{"margin-right":"1rem"}}),o.createVNode(s)]),r[9]||(r[9]=o.createElementVNode("h2",null,"About this software",-1)),o.createVNode(l),r[10]||(r[10]=o.createElementVNode("h2",null,"Schema",-1)),r[11]||(r[11]=o.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),o.createVNode(c)])}}}),TR=o.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value"),i=o.resolveComponent("cape-record-link");return o.openBlock(),o.createBlock(i,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),NR={class:"cape-navigation"},wR={class:"cape-navigation-items"},bR={class:"cape-navigation-item"},DR=o.defineComponent({__name:"CapeNavigation",setup(e){const t=It(),n=o.computed(()=>t.pages);return(r,i)=>{const a=o.resolveComponent("router-link"),s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",NR,[o.createElementVNode("nav",null,[o.createElementVNode("ul",wR,[o.createElementVNode("li",bR,[o.createVNode(a,{class:"cape-navigation-link",to:"/"},{default:o.withCtx(()=>i[0]||(i[0]=[o.createTextVNode("Search")])),_:1,__:[0]})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,l=>(o.openBlock(),o.createElementBlock("li",{class:"cape-navigation-item",key:l.path},[o.createVNode(a,{class:"cape-navigation-link",to:l.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.label),1)]),_:2},1032,["to"])]))),128))])]),o.createElementVNode("main",null,[o.createVNode(s)])])}}}),kR={class:"cape-record-card bg-blue-100 py-2 px-4"},CR={class:"text-xl border-black border-b mb-4"},IR={class:"border-b mb-4 pb-4 border-b-black"},RR={class:"md:grid md:grid-cols-2 md:gap-4"},OR={class:"border-b mb-4 pb-4 border-b-black"},PR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"md:grid md:grid-cols-2 md:gap-4"},MR={class:"mb-5"},xR=o.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-previous-result"),i=o.resolveComponent("cape-next-result"),a=o.resolveComponent("cape-previous-record"),s=o.resolveComponent("cape-next-record"),l=o.resolveComponent("cape-labelled-value");return o.openBlock(),o.createElementBlock("div",kR,[o.createElementVNode("h2",CR,"RecordCard Placeholder ID: "+o.toDisplayString(t.record.record_number.value),1),o.createElementVNode("div",IR,[o.createElementVNode("div",RR,[o.createVNode(r,{record:t.record},{before:o.withCtx(()=>n[0]||(n[0]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[1]||(n[1]=[o.createTextVNode("[start of results]")])),_:1},8,["record"]),o.createVNode(i,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[3]||(n[3]=[o.createTextVNode("[end of results]")])),_:1},8,["record"])])]),o.createElementVNode("div",OR,[o.createElementVNode("div",PR,[o.createVNode(a,{record:t.record},{before:o.withCtx(()=>n[4]||(n[4]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[5]||(n[5]=[o.createTextVNode("[start of dataset]")])),_:1},8,["record"]),o.createVNode(s,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[6]||(n[6]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[7]||(n[7]=[o.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),o.createElementVNode("div",AR,[o.createElementVNode("ul",MR,[o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=o.createElementVNode("div",null," Column 2 ",-1))])])}}}),VR={};function LR(e,t){const n=o.resolveComponent("cape-page-width-indicator"),r=o.resolveComponent("cape-non-prod-warning");return o.openBlock(),o.createElementBlock("header",null,[o.createVNode(n),t[0]||(t[0]=o.createElementVNode("h1",{class:"text-4xl"},[o.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),o.createVNode(r)])}const FR=Bi(VR,[["render",LR]]),YR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},$R={class:"text-left"},BR=["href"],UR={class:"text-right"},HR={__name:"CapeFooter",setup(e){const{metadata:t}=It();return(n,r)=>{var a,s,l,c;const i=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("footer",YR,[o.createElementVNode("div",$R,[r[0]||(r[0]=o.createTextVNode(" © ")),o.createElementVNode("a",{href:(s=(a=o.unref(t))==null?void 0:a.copyright)==null?void 0:s.url},o.toDisplayString(((c=(l=o.unref(t))==null?void 0:l.copyright)==null?void 0:c.title)??"MISSING COPYRIGHT METADATA"),9,BR)]),r[2]||(r[2]=o.createElementVNode("div",{class:"text-center"},null,-1)),o.createElementVNode("div",UR,[r[1]||(r[1]=o.createTextVNode(" Powered by Cape ")),o.createVNode(i)])])}}},GR={class:"cape-record-label"},WR=o.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value");return o.openBlock(),o.createElementBlock("span",GR,[o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" # ")),o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),jR={class:"cape-filter-controls cape-filter-controls-top"},zR={class:"cape-advanced-search-toggle-control switch switch-sm"},KR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},qR={class:"cape-advanced-search-toggle-control switch switch-sm"},XR=o.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=_t(),n=o.computed(()=>t.showAdvanced);return(r,i)=>{const a=o.resolveComponent("cape-intro"),s=o.resolveComponent("cape-advanced-search-toggle"),l=o.resolveComponent("cape-form-reset-button"),c=o.resolveComponent("cape-filters"),u=o.resolveComponent("cape-results");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(a),o.createElementVNode("div",jR,[o.createElementVNode("div",zR,[o.createVNode(s,{id:"cape-advanced-search-toggle-top"}),i[0]||(i[0]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),o.createVNode(l)]),o.createElementVNode("div",null,[o.createVNode(c)]),n.value?(o.openBlock(),o.createElementBlock("div",KR,[o.createElementVNode("div",qR,[o.createVNode(s,{id:"cape-advanced-search-toggle-bottom"}),i[1]||(i[1]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),o.createVNode(l)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(u)])],64)}}}),JR={},QR={class:"cape-intro mb-10"};function ZR(e,t){const n=o.resolveComponent("cape-record-count");return o.openBlock(),o.createElementBlock("p",QR,[t[0]||(t[0]=o.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=o.createTextVNode(" This repository contains ")),o.createVNode(n),t[2]||(t[2]=o.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const eO=Bi(JR,[["render",ZR]]),tO=o.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return It().metadata}}}),nO={template:"#templateCapeSummaryCard",props:["record"]},rO={template:"#templateCapeNavigation",computed:{...Jf(It,["pages"])}},iO={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},aO={template:"#templateCapeHeader"},oO={template:"#templateCapeFooter"},sO={template:"#templateCapeRecordLabel",props:["record"]},lO={template:"#templateCapeHomepageLayout",computed:{...Jf(_t,["showAdvanced"]),...Jf(Bt,{hasMatches:e=>e.totalCount>0})}},pg={install:function(e,t){e.use(IN());const n=this.makeComponentMap(t);this.registerComponents(e,n),It().setOptions(t),this.registerRoutes(e,t.pages,ed);const i=async a=>{const s=await xd.getPageTitle(a,t);s&&(document.title=s)};Ps.add({priority:fg.High,action:i}),ed.afterEach(async(a,s)=>{ti().onLoaded(async()=>{await Ps.execute(a,s)})}),e.use(ed)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&o.toRaw(t).forEach(r=>{const i={path:r.path,component:e.component(r.component)};r.title&&(i.meta={title:r.title}),n.addRoute(i)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=tO,t.CapeFooter=oO,t.CapeHeader=aO,t.CapeHomepageLayout=lO,t.CapeNavigation=rO,t.CapeRecordCard=iO,t.CapeRecordLabel=sO,t.CapeSummaryCard=nO),e.additionalComponents!==void 0)for(const[n,r]of Object.entries(e.additionalComponents))t[n]=r;return t},builtInComponentsMap(){return{CapeFilterFieldDate:II,CapeFilterFieldEnum:hI,CapeFilterFieldEnumIsRadio:C1,CapeFilterFieldEnumIsSelect:O1,CapeFilterFieldEnumOneOfCheckbox:x1,CapeFilterFieldEnumOneOfMultiselect:iR,CapeFilterFieldInteger:EI,CapeFilterFieldText:KC,CapeFilterFreeText:ZC,CapeAboutPage:ER,CapeFooter:HR,CapeHeader:FR,CapeHomepageLayout:XR,CapeIntro:eO,CapeNavigation:DR,CapeRecordCard:xR,CapeRecordLabel:WR,CapeSummaryCard:TR,CapeAdvancedSearchToggle:uw,CapeFilters:dw,CapeFormResetButton:hw,CapeResults:Aw,CapeResultsControls:MI,CapeResultsCount:E1,CapeResultsInfo:y1,CapeShowAllResultsToggle:p1,CapeSortOrder:lI,CapeDownloadCsvButton:FI,CapeDownloadJsonButton:UI,CapeFieldsTable:WI,CapeFixedNumericValue:h1,CapeLabelledContent:u1,CapeLabelledValue:Yw,CapeLinkValue:f1,CapeNextRecord:a1,CapeNextResult:XI,CapePercentageValue:d1,CapePreviousRecord:n1,CapePreviousResult:ZI,CapeRecordCount:cw,CapeRecordLink:zI,CapeSingleValue:BC,CapeSoftware:sR,CapeValue:Fw,CapeVersion:pR,CapeHomePage:mw,CapeLoadError:gw,CapeLoading:Tw,CapeNonProdWarning:kw,CapePageWidthIndicator:fR,CapeRecordPage:Rw,CapeRoot:sw}}},cO={};function uO(e,t){const n=o.resolveComponent("CapeHeader"),r=o.resolveComponent("CapeRoot"),i=o.resolveComponent("CapeLoading"),a=o.resolveComponent("CapeFooter");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(n),(o.openBlock(),o.createBlock(o.Suspense,null,{default:o.withCtx(()=>[o.createVNode(r)]),fallback:o.withCtx(()=>[o.createVNode(i)]),_:1})),o.createVNode(a)],64)}const fO=Bi(cO,[["render",uO]]),dO=e=>{const t=o.createApp(fO);return t.use(pg,e),t},qr=class qr{static register(t){qr.loggers.push(t)}static clear(){qr.loggers=[]}static debug(t,n){qr.loggers.forEach(r=>r.debug(t,n))}static info(t,n){qr.loggers.forEach(r=>r.info(t,n))}static warn(t,n){qr.loggers.forEach(r=>r.warn(t,n))}static error(t,n){qr.loggers.forEach(r=>r.error(t,n))}};Pe(qr,"loggers",[]);let As=qr;var Qt=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Qt||{});class hO{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Qt.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Qt.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Qt.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Qt.Error&&console.error(t,n??"")}}const pO={install:function(e,t){const n=new hO(t.loggingLevel);As.register(n)}};class mO{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Qt.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Debug}})}info(t,n){this.loggingLevel>=Qt.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Info}})}warn(t,n){this.loggingLevel>=Qt.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Warn}})}error(t,n){this.loggingLevel>=Qt.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function Zt(e,t){return e||t}function ut(e,t){return e[t]}var Ut=void 0,Nt=null,Fd="",Rc="function",Ms="object",Rr="prototype",Oc="__proto__",ji="undefined",Pc="constructor",Yd="Symbol",uo="length",Ac="name",Rt="call",xs="toString",$d="getOwnPropertyDescriptor",Ht=Zt(Object),Bd=ut(Ht,Rr),mg=Zt(String),zi=ut(mg,Rr),Vs=Zt(Math),vg=Zt(Array),Mc=ut(vg,Rr),Or=ut(Mc,"slice"),_g="_polyfill",gg="__nw21$polytype__";function ft(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function vO(e,t,n){var r=ft(e,n);return r.e?t:r.v}var Ud;function xc(e){return function(t){return typeof t===e}}function yg(e){var t="[object "+e+"]";return function(n){return!!(n&&_O(n)===t)}}function _O(e){return Bd[xs].call(e)}function dt(e){return typeof e===ji||e===ji}function gO(e){return e===Ut}function K(e){return e===Nt||dt(e)}function Hd(e){return e===Nt||e===Ut}function yO(e){return!!e||e!==Ut}function SO(e){return!Ud&&(Ud=["string","number","boolean",ji,"symbol","bigint"]),e!==Ms&&Ud.indexOf(e)!==-1}var ye=xc("string"),Se=xc(Rc);function en(e){return!e&&K(e)?!1:!!e&&typeof e===Ms}var ke=ut(vg,"isArray"),EO=yg("Date"),Ls=xc("number"),Sg=xc("boolean"),Gd=yg("Error");function oi(e){return!!(e&&e.then&&Se(e.then))}function Vc(e){return!(!e||vO(function(){return!(e&&0+e)},!e))}function Wd(){}function TO(){return!1}var Gt=Zt(mg),NO="[object Error]";function se(e,t){var n=Fd,r=Bd[xs][Rt](e);r===NO&&(e={stack:Gt(e.stack),message:Gt(e.message),name:Gt(e.name)});try{n=JSON.stringify(e,Nt,t?typeof t=="number"?t:4:Ut),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Nt)||Gt(e)}catch(i){n=" - "+se(i,t)}return r+": "+n}function on(e){throw new Error(e)}function qn(e){throw new TypeError(e)}function Lc(e){Hd(e)&&qn("Cannot convert undefined or null to object")}function wO(e){ye(e)||qn("'"+se(e)+"' is not a string")}function gn(e,t){return!!e&&Bd.hasOwnProperty[Rt](e,t)}var bO=Zt(ut(Ht,$d),Wd),si=Zt(ut(Ht,"hasOwn"),DO);function DO(e,t){return Lc(e),gn(e,t)||!!bO(e,t)}function Me(e,t,n){if(e&&(en(e)||Se(e))){for(var r in e)if(si(e,r)&&t[Rt](e,r,e[r])===-1)break}}function oe(e,t,n){if(e)for(var r=e[uo]>>>0,i=0;i<r&&!(i in e&&t[Rt](e,e[i],i,e)===-1);i++);}var Ki=Fc;function Fc(e,t,n){var r=t?t[e]:Nt;return function(i){var a=(i?i[e]:Nt)||r;if(a||n){var s=arguments;return(a||n).apply(i,a?Or[Rt](s,1):s)}qn('"'+Gt(e)+'" not defined for '+se(i))}}function kO(e){return function(t){return t[e]}}var CO=Zt(ut(Ht,$d),Wd),Yc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function IO(e){var t={};if(t[Yc.c]=!0,t[Yc.e]=!0,e.l){t.get=function(){return e.l.v};var n=CO(e.l,"v");n&&n.set&&(t.set=function(r){e.l.v=r})}return Me(e,function(r,i){t[Yc[r]]=gO(i)?t[Yc[r]]:i}),t}var Pr=ut(Ht,"defineProperty"),RO=ut(Ht,"defineProperties");function Le(e,t,n){return Pr(e,t,IO(n))}function Eg(e,t,n,r,i){var a={};return Me(e,function(s,l){$c(a,s,t?l:s),$c(a,l,s)}),r?r(a):a}function $c(e,t,n,r){Pr(e,t,{value:n,enumerable:!0,writable:!1})}var OO=Zt(ut(Ht,"isFrozen"),TO),Tg=ut(Ht,"freeze");function PO(e){return e}function AO(e){return Lc(e),e[Oc]||Nt}var jd=ut(Ht,"assign"),Ar=ut(Ht,"keys");function Ng(e,t){if((ke(e)||en(e)||Se(e))&&!OO(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Me(e,function(r,i){Ng(i,t)}),An(e)}return e}function Fs(e){return Tg?Ng(e,[]):e}var An=Zt(Tg,PO),zd=Zt(ut(Ht,"getPrototypeOf"),AO);function MO(e){return Eg(e,1,0,An)}function xO(e){return Eg(e,0,0,An)}function VO(e){var t={};return Me(e,function(n,r){$c(t,n,r[1]),$c(t,r[0],r[1])}),An(t)}function LO(e){return VO(e)}var wg=xO({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),bg="__tsUtils$gblCfg",Kd;function Dg(){var e;return typeof globalThis!==ji&&(e=globalThis),!e&&typeof self!==ji&&(e=self),!e&&typeof window!==ji&&(e=window),!e&&typeof global!==ji&&(e=global),e}function Bc(){if(!Kd){var e=ft(Dg).v||{};Kd=e[bg]=e[bg]||{}}return Kd}var kg=ut(Vs,"min"),Ys=ut(Vs,"max"),Cg=Ki("slice",zi),Xn=Ki("substring",zi),li=Fc("substr",zi,FO);function FO(e,t,n){return Lc(e),n<0?Fd:(t=t||0,t<0&&(t=Ys(t+e[uo],0)),dt(n)?Cg(e,t):Cg(e,t,t+n))}function qd(e,t){return Xn(e,0,t)}function YO(e,t){return e&&(ft(function(){e[_g]=!0,e[gg]=t}),ft(Le,[e,_g,{v:!0,w:!1,e:!1}]),ft(Le,[e,gg,{v:t,w:!1,e:!1}])),e}var Mr=Zt(ut(Ht,"create"),$O);function $O(e,t){var n=null;function r(){}if(Hd(e))n={};else{var i=typeof e;i!==Ms&&i!==Rc&&qn("Prototype must be an Object or function: "+se(e)),r[Rr]=e,ft(function(){r[Oc]=e}),n=new r}return t&&ft(RO,[n,t]),n}function Mn(){return(Date.now||BO)()}function BO(){return new Date().getTime()}function qi(e,t,n){return e.apply(t,n)}var gt;function ci(){gt=Bc()}function Ig(e,t){var n={};return!gt&&ci(),n.b=gt.lzy,Pr(n,"v",{configurable:!0,get:function(){var r=qi(e,null,t);return gt.lzy||Pr(n,"v",{value:r}),n.b=gt.lzy,r}}),n}var UO=ut(Vs,"random"),HO=Ig(function(){for(var e=Mn().toString(36).slice(2);e.length<16;)e+=UO().toString(36).slice(2);return e=e.substring(0,16),e}),Rg="_urid",GO="$nw21sym",Xd,WO=0;function jO(){if(!Xd){var e=Bc();Xd=e.gblSym=e.gblSym||{k:{},s:{}}}return Xd}var Uc;function Jd(e){var t="_"+WO+++"_"+HO.v,n=Yd+"("+e+")";function r(a,s){Le(i,a,{v:s,e:!1,w:!1})}var i=Mr(null);return r("description",Gt(e)),r(xs,function(){return n+GO+t}),r("valueOf",function(){return i}),r("v",n),r("_uid",t),YO(i,"symbol")}function zO(e){var t=jO();if(!si(t.k,e)){var n=Jd(e),r=Ar(t.s).length;n[Rg]=function(){return r+"_"+n[xs]()},t.k[e]=n,t.s[n[Rg]()]=Gt(e)}return t.k[e]}function KO(e){!Uc&&(Uc={});var t,n=wg[e];return n&&(t=Uc[n]=Uc[n]||Jd(Yd+"."+n)),t}function yn(e){return Pr({toJSON:function(){return e}},"v",{value:e})}var Og="window",$s;function fo(e,t){var n;return function(){return!gt&&ci(),(!n||gt.lzy)&&(n=yn(ft(e,t).v)),n.v}}function Sn(e){return!gt&&ci(),(!$s||e===!1||gt.lzy)&&($s=yn(ft(Dg).v||Nt)),$s.v}function ot(e,t){var n;if(!$s||t===!1?n=Sn(t):n=$s.v,n&&n[e])return n[e];if(e===Og)try{return window}catch{}return Nt}function Pg(){return!!Ot()}var Ot=fo(ot,["document"]);function Hc(){return!!sn()}var sn=fo(ot,[Og]);function qO(){return!!Jn()}var Jn=fo(ot,["navigator"]);function XO(){return!!Ag()}var Ag=fo(ot,["history"]),JO=fo(function(){return!!ft(function(){return process&&(process.versions||{}).node}).v}),Mg=fo(function(){return!!ft(function(){return self&&self instanceof WorkerGlobalScope}).v}),ho,Qd;function Gc(){return ho=yn(ft(ot,[Yd]).v),ho}function QO(e){var t=(gt.lzy?0:ho)||Gc();return t.v?t.v[e]:Ut}function ZO(){return!!eP()}function eP(){return!gt&&ci(),((gt.lzy?0:ho)||Gc()).v}function Zd(e,t){var n=wg[e];!gt&&ci();var r=(gt.lzy?0:ho)||Gc();return r.v?r.v[n||e]:KO(e)}function Bs(e,t){!gt&&ci();var n=(gt.lzy?0:ho)||Gc();return n.v?n.v(e):Jd(e)}function eh(e){return!gt&&ci(),Qd=(gt.lzy?0:Qd)||yn(ft(QO,["for"]).v),(Qd.v||zO)(e)}function th(e){return!!e&&Se(e.next)}function xg(e){return!Hd(e)&&Se(e[Zd(3)])}var Wc;function nh(e,t,n){if(e&&(th(e)||(!Wc&&(Wc=yn(Zd(3))),e=e[Wc.v]?e[Wc.v]():Nt),th(e))){var r=Ut,i=Ut;try{for(var a=0;!(i=e.next()).done&&t[Rt](n||e,i.value,a,e)!==-1;)a++}catch(s){r={e:s},e.throw&&(i=Nt,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function po(e,t){return!dt(t)&&e&&(ke(t)?qi(e.push,e,t):th(t)||xg(t)?nh(t,function(n){e.push(n)}):e.push(t)),e}var Ft=Ki("indexOf",Mc),Us=Ki("map",Mc);function jc(e,t,n){return((e?e.slice:Nt)||Or).apply(e,Or[Rt](arguments,1))}var tP=Ki("reduce",Mc),rh,Vg=Zt(ut(Ht,"setPrototypeOf"),nP);function nP(e,t){var n;return!rh&&(rh=yn((n={},n[Oc]=[],n instanceof Array))),rh.v?e[Oc]=t:Me(t,function(r,i){return e[r]=i}),e}function rP(e,t,n){ft(Le,[t,Ac,{v:e,c:!0,e:!1}]),t=Vg(t,n);function r(){this[Pc]=t,ft(Le,[this,Ac,{v:e,c:!0,e:!1}])}return t[Rr]=n===Nt?Mr(n):(r[Rr]=n[Rr],new r),t}function Lg(e,t){t&&(e[Ac]=t)}function Fg(e,t,n){var r=Error,i=r[Rr][Ac],a=Error.captureStackTrace;return rP(e,function(){var s=this,l=arguments;try{ft(Lg,[r,e]);var c=qi(r,s,Or[Rt](l))||s;if(c!==s){var u=zd(s);u!==zd(c)&&Vg(c,u)}return a&&a(c,s[Pc]),t&&t(c,l),c}finally{ft(Lg,[r,i])}},r)}var ih;function iP(e){throw ih||(ih=Fg("UnsupportedError")),new ih(e)}function aP(e){return function(n){return Lc(n),n&&n.replace&&(n=n.replace(e,Fd)),n}}var oP=aP(/^\s+|(?=\s)\s+$/g),Ze=Fc("trim",zi,oP),ln=ut(Vs,"floor"),ah,oh,sh;function Wt(e){if(!e||typeof e!==Ms)return!1;sh||(sh=Hc()?sn():!0);var t=!1;if(e!==sh){oh||(ah=Function[Rr][xs],oh=ah[Rt](Ht));try{var n=zd(e);t=!n,t||(gn(n,Pc)&&(n=n[Pc]),t=!!(n&&typeof n===Rc&&ah[Rt](n)===oh))}catch{}}return t}function sP(e){return e.value&&Bg(e),!0}var Yg=[fP,Bg,hP,dP];function lP(e,t,n,r){var i;return oe(e,function(a){if(a.k===t)return i=a,-1}),i||(i={k:t,v:t},e.push(i),r(i)),i.v}function lh(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],s={handler:n.handler,src:n.src,path:a},l=typeof t,c=!1,u=t===Nt;u||(t&&l===Ms?c=Wt(t):u=SO(l));var f={type:l,isPrim:u,isPlain:c,value:t,result:t,path:a,origin:n.src,copy:function(d,p){return lh(e,d,p?s:n,p)},copyTo:function(d,p){return $g(e,d,p,s)}};return f.isPrim?i&&i[Rt](n,f)?f.result:t:lP(e,t,a,function(d){Le(f,"result",{g:function(){return d.v},s:function(m){d.v=m}});for(var p=0,h=i;!(h||(p<Yg.length?Yg[p++]:sP))[Rt](n,f);)h=Nt})}function $g(e,t,n,r){if(!K(n))for(var i in n)t[i]=lh(e,n[i],r,i);return t}function cP(e,t,n){var r={handler:n,src:t,path:[]};return $g([],e,t,r)}function uP(e,t){var n={handler:t,src:e};return lh([],e,n)}function fP(e){var t=e.value;if(ke(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function dP(e){var t=e.value;return EO(t)?(e.result=new Date(t.getTime()),!0):!1}function hP(e){return e.type===Rc}function Bg(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function Ug(e,t){return oe(t,function(n){cP(e,n)}),e}function Hg(e,t,n,r,i,a,s){return Ug(uP(e)||{},Or[Rt](arguments))}function pP(e,t,n,r,i,a,s){return Ug(e||{},Or[Rt](arguments))}var Gg=Ki("split",zi);function Wg(e,t,n){if(e&&t){var r=Gg(t,"."),i=r.pop();oe(r,function(a){K(e[a])&&(e[a]={}),e=e[a]}),e[i]=n}}var mP=kO(uo),ch;function xr(){return!gt&&ci(),(!ch||gt.lzy)&&(ch=yn(ft(ot,["performance"]).v)),ch.v}var jg=ut(Vs,"round"),vP=Zt(ut(Ht,$d),Wd),zg=Fc("endsWith",zi,_P);function _P(e,t,n){wO(e);var r=ye(t)?t:Gt(t),i=!dt(n)&&n<e[uo]?n:e[uo];return Xn(e,i-r[uo],i)===r}var jt=Ki("indexOf",zi),uh="ref",fh="unref",dh="hasRef",gP="enabled";function yP(e,t,n){var r=!0,i=e?t(Nt):Nt,a;function s(){return r=!1,i&&i[fh]&&i[fh](),a}function l(){i&&n(i),i=Nt}function c(){return i=t(i),r||s(),a}function u(f){!f&&i&&l(),f&&!i&&c()}return a={cancel:l,refresh:c},a[dh]=function(){return i&&i[dh]?i[dh]():r},a[uh]=function(){return r=!0,i&&i[uh]&&i[uh](),a},a[fh]=s,a=Pr(a,gP,{get:function(){return!!i},set:u}),{h:a,dn:function(){i=Nt}}}var SP,EP;function TP(e){var t=Se(e)?e:SP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>0&&Se(n[0])&&(t=n[0])}return t||setTimeout}function NP(e){var t=Se(e)?e:EP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>1&&Se(n[1])&&(t=n[1])}return t||clearTimeout}function Kg(e,t,n){var r=ke(t),i=r?t.length:0,a=TP(i>0?t[0]:r?Ut:t),s=NP(i>1?t[1]:Ut),l=n[0];n[0]=function(){c.dn(),qi(l,Ut,Or[Rt](arguments))};var c=yP(e,function(u){if(u){if(u.refresh)return u.refresh(),u;qi(s,Ut,[u])}return qi(a,Ut,n)},function(u){qi(s,Ut,[u])});return c.h}function En(e,t){return Kg(!0,Ut,Or[Rt](arguments))}function wP(e,t){return Kg(!1,Ut,Or[Rt](arguments))}var zc,Kc="constructor",Vr="prototype",qc="function",Xc="_dynInstFuncs",hh="_isDynProxy",mo="_dynClass",bP="_dynCls$",ph="_dynInstChk",Hs=ph,qg="_dfOpts",Xg="_unknown_",mh="__proto__",Jc="_dyn"+mh,Jg="__dynProto$Gbl",vh="_dynInstProto",Qc="useBaseInst",_h="setInstFuncs",gh=Object,Gs=gh.getPrototypeOf,Qg=gh.getOwnPropertyNames,Zg=Sn(),yh=Zg[Jg]||(Zg[Jg]={o:(zc={},zc[_h]=!0,zc[Qc]=!0,zc),n:1e3});function Zc(e){return e&&(e===gh[Vr]||e===Array[Vr])}function Sh(e){return Zc(e)||e===Function[Vr]}function Xi(e){var t;if(e){if(Gs)return Gs(e);var n=e[mh]||e[Vr]||(e[Kc]?e[Kc][Vr]:null);t=e[Jc]||n,gn(e,Jc)||(delete e[vh],t=e[Jc]=e[vh]||e[Jc],e[vh]=n)}return t}function eu(e,t){var n=[];if(Qg)n=Qg(e);else for(var r in e)typeof r=="string"&&gn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Eh(e,t,n){return t!==Kc&&typeof e[t]===qc&&(n||gn(e,t))&&t!==mh&&t!==Vr}function tu(e){qn("DynamicProto: "+e)}function DP(e){var t=Mr(null);return eu(e,function(n){!t[n]&&Eh(e,n,!1)&&(t[n]=e[n])}),t}function Th(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function kP(e,t,n,r){function i(c,u,f){var d=u[f];if(d[hh]&&r){var p=c[Xc]||{};p[Hs]!==!1&&(d=(p[u[mo]]||{})[f]||d)}return function(){return d.apply(c,arguments)}}var a=Mr(null);eu(n,function(c){a[c]=i(t,n,c)});for(var s=Xi(e),l=[];s&&!Sh(s)&&!Th(l,s);)eu(s,function(c){!a[c]&&Eh(s,c,!Gs)&&(a[c]=i(t,s,c))}),l.push(s),s=Xi(s);return a}function CP(e,t,n,r){var i=null;if(e&&gn(n,mo)){var a=e[Xc]||Mr(null);if(i=(a[n[mo]]||Mr(null))[t],i||tu("Missing ["+t+"] "+qc),!i[ph]&&a[Hs]!==!1){for(var s=!gn(e,t),l=Xi(e),c=[];s&&l&&!Sh(l)&&!Th(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=Xi(l)}try{s&&(e[t]=i),i[ph]=1}catch{a[Hs]=!1}}}return i}function IP(e,t,n){var r=t[e];return r===n&&(r=Xi(t)[e]),typeof r!==qc&&tu("["+e+"] is not a "+qc),r}function RP(e,t,n,r,i){function a(c,u){var f=function(){var d=CP(this,u,c,f)||IP(u,c,f);return d.apply(this,arguments)};return f[hh]=1,f}if(!Zc(e)){var s=n[Xc]=n[Xc]||Mr(null);if(!Zc(s)){var l=s[t]=s[t]||Mr(null);s[Hs]!==!1&&(s[Hs]=!!i),Zc(l)||eu(n,function(c){Eh(n,c,!1)&&n[c]!==r[c]&&(l[c]=n[c],delete n[c],(!gn(e,c)||e[c]&&!e[c][hh])&&(e[c]=a(e,c)))})}}}function OP(e,t){if(Gs){for(var n=[],r=Xi(t);r&&!Sh(r)&&!Th(n,r);){if(r===e)return!0;n.push(r),r=Xi(r)}return!1}return!0}function Nh(e,t){return gn(e,Vr)?e.name||t||Xg:((e||{})[Kc]||{}).name||t||Xg}function et(e,t,n,r){gn(e,Vr)||tu("theClass is an invalid class definition.");var i=e[Vr];OP(i,t)||tu("["+Nh(e)+"] not in hierarchy of ["+Nh(t)+"]");var a=null;gn(i,mo)?a=i[mo]:(a=bP+Nh(e,"_")+"$"+yh.n,yh.n++,i[mo]=a);var s=et[qg],l=!!s[Qc];l&&r&&r[Qc]!==void 0&&(l=!!r[Qc]);var c=DP(t),u=kP(i,t,c,l);n(t,u);var f=!!Gs&&!!s[_h];f&&r&&(f=!!r[_h]),RP(i,a,t,c,f!==!1)}et[qg]=yh.o;var ey="function",ty="object",wh="undefined",Qn="prototype",bh=Object,PP=bh[Qn];(Sn()||{}).Symbol,(Sn()||{}).Reflect;var ny="hasOwnProperty",AP=function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)PP[ny].call(t,i)&&(e[i]=t[i])}return e},zt=jd||AP,Dh=function(e,t){return Dh=bh.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r[ny](i)&&(n[i]=r[i])},Dh(e,t)};function Lr(e,t){typeof t!==ey&&t!==null&&qn("Class extends value "+String(t)+" is not a constructor or null"),Dh(e,t);function n(){this.constructor=e}e[Qn]=t===null?Mr(t):(n[Qn]=t[Qn],new n)}function ry(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var iy=MO,MP=LO,ui=iy({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),vo="toLowerCase",we="length",nu="warnToConsole",Ws="throwInternal",Ji="watch",Qi="apply",Be="push",_o="splice",yt="logger",Zi="cancel",js="initialize",fi="identifier",ru="removeNotificationListener",iu="addNotificationListener",Zn="isInitialized",au="getNotifyMgr",zs="getPlugin",ea="name",Kt="processNext",ay="getProcessTelContext",ta="value",go="enabled",oy="stopPollingInternalLogs",na="unload",ou="onComplete",kh="version",sy="loggingLevelConsole",ra="createNew",Fr="teardown",su="messageId",ia="message",Yr="diagLog",lu="_doTeardown",Ks="update",er="getNext",qs="setNextPlugin",Ch="userAgent",yo="split",aa="replace",di="type",ly="evtName",$r="status",xP="indexOf",cy="getAllResponseHeaders",Ih="isChildEvt",xn="data",So="getCtx",tr="setCtx",uy="itemsReceived",cu="headers",Xs="urlString",Eo="timeout",Rh="traceFlags",Oh="getAttribute",Ph;function VP(e,t){Ph||(Ph=Fg("AggregationError",function(r,i){i[we]>1&&(r.errors=i[1])}));var n=e;throw oe(t,function(r,i){n+=`
54
54
  `.concat(i," > ").concat(se(r))}),new Ph(n,t||[])}/*!
55
55
  * NevWare21 Solutions LLC - ts-async, 0.5.4
56
56
  * https://github.com/nevware21/ts-async
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soton.ac.uk/cape3",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/cape3.umd.js",