@soton.ac.uk/cape3 0.5.0 → 0.7.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 +2796 -2634
- package/dist/cape3.umd.js +21 -19
- package/dist/plugins/CapeOptions.d.ts +4 -0
- package/dist/plugins/CapePlugin.d.ts +1 -0
- package/dist/site.css +8 -1
- package/dist/stores/helpers/nextRecordInSet.d.ts +2 -0
- package/dist/stores/helpers/previousrRecordInSet.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/styles/cape-content-page.css +19 -0
- package/dist/styles/defaults.css +1 -0
- package/package.json +1 -1
package/dist/cape3.umd.js
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
(function(J,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(J=typeof globalThis<"u"?globalThis:J||self,s(J.Cape3={},J.Vue))})(this,function(J,s){"use strict";var
|
|
1
|
+
(function(J,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(J=typeof globalThis<"u"?globalThis:J||self,s(J.Cape3={},J.Vue))})(this,function(J,s){"use strict";var sm=Object.defineProperty;var om=(J,s,Ze)=>s in J?sm(J,s,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):J[s]=Ze;var $=(J,s,Ze)=>(om(J,typeof s!="symbol"?s+"":s,Ze),Ze);function Ze(){return Ar().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ar(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ci=typeof Proxy=="function",di="devtools-plugin:setup",ui="plugin:settings:set";let it,Tn;function fi(){var e;return it!==void 0||(typeof window<"u"&&window.performance?(it=!0,Tn=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(it=!0,Tn=global.perf_hooks.performance):it=!1),it}function hi(){return fi()?Tn.now():Date.now()}class pi{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const l=t.settings[a];r[a]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const a=localStorage.getItem(o),l=JSON.parse(a);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}i=a},now(){return hi()}},n&&n.on(ui,(a,l)=>{a===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(a,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Mn(e,t){const n=e,r=Ar(),o=Ze(),i=ci&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(di,e,t);else{const a=i?new pi(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
|
|
2
2
|
* vue-router v4.2.5
|
|
3
3
|
* (c) 2023 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const Te=typeof window<"u";function
|
|
5
|
+
*/const Te=typeof window<"u";function mi(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const F=Object.assign;function Vn(e,t){const n={};for(const r in t){const o=t[r];n[r]=le(o)?o.map(e):e(o)}return n}const Et=()=>{},le=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const gi=/\/$/,_i=e=>e.replace(gi,"");function Cn(e,t,n="/"){let r,o={},i="",a="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),a=t.slice(l,t.length)),r=Si(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function yi(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Fr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yr(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ye(t.matched[r],n.matched[o])&&Lr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ye(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Lr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wi(e[n],t[n]))return!1;return!0}function wi(e,t){return le(e)?Ur(e,t):le(t)?Ur(t,e):e===t}function Ur(e,t){return le(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Si(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,l;for(a=0;a<r.length;a++)if(l=r[a],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var vt;(function(e){e.pop="pop",e.push="push"})(vt||(vt={}));var Ot;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ot||(Ot={}));function ki(e){if(!e)if(Te){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_i(e)}const bi=/^[^#]+#/;function Ei(e,t){return e.replace(bi,"#")+t}function vi(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Kt=()=>({left:window.pageXOffset,top:window.pageYOffset});function Oi(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!r||!document.getElementById(e.el.slice(1))))try{const i=document.querySelector(e.el);if(r&&i){P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=vi(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Wr(e,t){return(history.state?history.state.position-t:-1)+e}const Rn=new Map;function Di(e,t){Rn.set(e,t)}function Ni(e){const t=Rn.get(e);return Rn.delete(e),t}let Ti=()=>location.protocol+"//"+location.host;function jr(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),Fr(c,"")}return Fr(n,e)+r+o}function Mi(e,t,n,r){let o=[],i=[],a=null;const l=({state:h})=>{const g=jr(e,location),v=n.value,U=t.value;let I=0;if(h){if(n.value=g,t.value=h,a&&a===v){a=null;return}I=U?h.position-U.position:0}else r(g);o.forEach(N=>{N(n.value,v,{delta:I,type:vt.pop,direction:I?I>0?Ot.forward:Ot.back:Ot.unknown})})};function c(){a=n.value}function u(h){o.push(h);const g=()=>{const v=o.indexOf(h);v>-1&&o.splice(v,1)};return i.push(g),g}function d(){const{history:h}=window;h.state&&h.replaceState(F({},h.state,{scroll:Kt()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function Hr(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Kt():null}}function Vi(e){const{history:t,location:n}=window,r={value:jr(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:Ti()+e+c;try{t[d?"replaceState":"pushState"](u,"",h),o.value=u}catch(g){process.env.NODE_ENV!=="production"?P("Error with push/replace State",g):console.error(g),n[d?"replace":"assign"](h)}}function a(c,u){const d=F({},t.state,Hr(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,d,!0),r.value=c}function l(c,u){const d=F({},o.value,t.state,{forward:c,scroll:Kt()});process.env.NODE_ENV!=="production"&&!t.state&&P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
6
6
|
|
|
7
7
|
history.replaceState(history.state, '', url)
|
|
8
8
|
|
|
9
|
-
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),
|
|
10
|
-
"${e}" should be "${e.replace(/#.*$/,"#")}".`),
|
|
9
|
+
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),i(d.current,d,!0);const f=F({},Hr(r.value,c,null),{position:d.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:l,replace:a}}function Ci(e){e=ki(e);const t=Vi(e),n=Mi(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=F({location:"",base:e,go:r,createHref:Ei.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Ri(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),process.env.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&P(`A hash base must end with a "#":
|
|
10
|
+
"${e}" should be "${e.replace(/#.*$/,"#")}".`),Ci(e)}function $i(e){return typeof e=="string"||e&&typeof e=="object"}function Gr(e){return typeof e=="string"||typeof e=="symbol"}const Le={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$n=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var zr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(zr||(zr={}));const Pi={1({location:e,currentLocation:t}){return`No match for
|
|
11
11
|
${JSON.stringify(e)}${t?`
|
|
12
12
|
while being at
|
|
13
|
-
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${
|
|
14
|
-
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=
|
|
13
|
+
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Ii(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function at(e,t){return process.env.NODE_ENV!=="production"?F(new Error(Pi[e](t)),{type:e,[$n]:!0},t):F(new Error,{type:e,[$n]:!0},t)}function Me(e,t){return e instanceof Error&&$n in e&&(t==null||!!(e.type&t))}const xi=["params","query","hash"];function Ii(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of xi)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Kr="[^/]+?",Bi={sensitive:!1,strict:!1,start:!0,end:!0},Ai=/[.+*?^${}()[\]/\\]/g;function Fi(e,t){const n=F({},Bi,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const h=u[f];let g=40+(n.sensitive?.25:0);if(h.type===0)f||(o+="/"),o+=h.value.replace(Ai,"\\$&"),g+=40;else if(h.type===1){const{value:v,repeatable:U,optional:I,regexp:N}=h;i.push({name:v,repeatable:U,optional:I});const O=N||Kr;if(O!==Kr){g+=10;try{new RegExp(`(${O})`)}catch(ee){throw new Error(`Invalid custom RegExp for param "${v}" (${O}): `+ee.message)}}let W=U?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;f||(W=I&&u.length<2?`(?:/${W})`:"/"+W),I&&(W+="?"),o+=W,g+=20,I&&(g+=-8),U&&(g+=-20),O===".*"&&(g+=-50)}d.push(g)}r.push(d)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function l(u){const d=u.match(a),f={};if(!d)return null;for(let h=1;h<d.length;h++){const g=d[h]||"",v=i[h-1];f[v.name]=g&&v.repeatable?g.split("/"):g}return f}function c(u){let d="",f=!1;for(const h of e){(!f||!d.endsWith("/"))&&(d+="/"),f=!1;for(const g of h)if(g.type===0)d+=g.value;else if(g.type===1){const{value:v,repeatable:U,optional:I}=g,N=v in u?u[v]:"";if(le(N)&&!U)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const O=le(N)?N.join("/"):N;if(!O)if(I)h.length<2&&(d.endsWith("/")?d=d.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);d+=O}}return d||"/"}return{re:a,score:r,keys:i,parse:l,stringify:c}}function Yi(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Li(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=Yi(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(qr(r))return 1;if(qr(o))return-1}return o.length-r.length}function qr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ui={type:0,value:""},Wi=/[a-zA-Z0-9_]/;function ji(e){if(!e)return[[]];if(e==="/")return[[Ui]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let l=0,c,u="",d="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):h();break;case 4:h(),n=r;break;case 1:c==="("?n=2:Wi.test(c)?h():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=3:d+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function Hi(e,t,n){const r=Fi(ji(e.path),n);if(process.env.NODE_ENV!=="production"){const i=new Set;for(const a of r.keys)i.has(a.name)&&P(`Found duplicated params with name "${a.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),i.add(a.name)}const o=F(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Gi(e,t){const n=[],r=new Map;t=Qr({strict:!1,end:!0,sensitive:!1},t);function o(d){return r.get(d)}function i(d,f,h){const g=!h,v=zi(d);process.env.NODE_ENV!=="production"&&Ji(v,f),v.aliasOf=h&&h.record;const U=Qr(t,d),I=[v];if("alias"in d){const W=typeof d.alias=="string"?[d.alias]:d.alias;for(const ee of W)I.push(F({},v,{components:h?h.record.components:v.components,path:ee,aliasOf:h?h.record:v}))}let N,O;for(const W of I){const{path:ee}=W;if(f&&ee[0]!=="/"){const pe=f.record.path,me=pe[pe.length-1]==="/"?"":"/";W.path=f.record.path+(ee&&me+ee)}if(process.env.NODE_ENV!=="production"&&W.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
14
|
+
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=Hi(W,f,U),process.env.NODE_ENV!=="production"&&f&&ee[0]==="/"&&Qi(N,f),h?(h.alias.push(N),process.env.NODE_ENV!=="production"&&Zi(h,N)):(O=O||N,O!==N&&O.alias.push(N),g&&d.name&&!Jr(N)&&a(d.name)),v.children){const pe=v.children;for(let me=0;me<pe.length;me++)i(pe[me],N,h&&h.children[me])}h=h||N,(N.record.components&&Object.keys(N.record.components).length||N.record.name||N.record.redirect)&&c(N)}return O?()=>{a(O)}:Et}function a(d){if(Gr(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function l(){return n}function c(d){let f=0;for(;f<n.length&&Li(d,n[f])>=0&&(d.record.path!==n[f].record.path||!Xr(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!Jr(d)&&r.set(d.record.name,d)}function u(d,f){let h,g={},v,U;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw at(1,{location:d});if(process.env.NODE_ENV!=="production"){const O=Object.keys(d.params||{}).filter(W=>!h.keys.find(ee=>ee.name===W));O.length&&P(`Discarded invalid param(s) "${O.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}U=h.record.name,g=F(Zr(f.params,h.keys.filter(O=>!O.optional).map(O=>O.name)),d.params&&Zr(d.params,h.keys.map(O=>O.name))),v=h.stringify(g)}else if("path"in d)v=d.path,process.env.NODE_ENV!=="production"&&!v.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(O=>O.re.test(v)),h&&(g=h.parse(v),U=h.record.name);else{if(h=f.name?r.get(f.name):n.find(O=>O.re.test(f.path)),!h)throw at(1,{location:d,currentLocation:f});U=h.record.name,g=F({},f.params,d.params),v=h.stringify(g)}const I=[];let N=h;for(;N;)I.unshift(N.record),N=N.parent;return{name:U,path:v,params:g,matched:I,meta:qi(I)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:l,getRecordMatcher:o}}function Zr(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function zi(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ki(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Ki(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Jr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qi(e){return e.reduce((t,n)=>F(t,n.meta),{})}function Qr(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Pn(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Zi(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Pn.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Pn.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Ji(e,t){t&&t.record.name&&!e.name&&!e.path&&P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Qi(e,t){for(const n of t.keys)if(!e.keys.find(Pn.bind(null,n)))return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Xr(e,t){return t.children.some(n=>n===e||Xr(e,n))}const es=/#/g,Xi=/&/g,ea=/\//g,ta=/=/g,na=/\?/g,ts=/\+/g,ra=/%5B/g,sa=/%5D/g,ns=/%5E/g,oa=/%60/g,rs=/%7B/g,ia=/%7C/g,ss=/%7D/g,aa=/%20/g;function xn(e){return encodeURI(""+e).replace(ia,"|").replace(ra,"[").replace(sa,"]")}function la(e){return xn(e).replace(rs,"{").replace(ss,"}").replace(ns,"^")}function In(e){return xn(e).replace(ts,"%2B").replace(aa,"+").replace(es,"%23").replace(Xi,"%26").replace(oa,"`").replace(rs,"{").replace(ss,"}").replace(ns,"^")}function ca(e){return In(e).replace(ta,"%3D")}function da(e){return xn(e).replace(es,"%23").replace(na,"%3F")}function ua(e){return e==null?"":da(e).replace(ea,"%2F")}function Dt(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}function fa(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(ts," "),a=i.indexOf("="),l=Dt(a<0?i:i.slice(0,a)),c=a<0?null:Dt(i.slice(a+1));if(l in t){let u=t[l];le(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function os(e){let t="";for(let n in e){const r=e[n];if(n=ca(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(le(r)?r.map(i=>i&&In(i)):[r&&In(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function ha(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=le(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const pa=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),is=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"router":""),An=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Fn=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Nt(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ue(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(at(4,{from:n,to:t})):f instanceof Error?l(f):$i(f)?l(at(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,process.env.NODE_ENV!=="production"?ma(c,t,n):c);let d=Promise.resolve(u);if(e.length<3&&(d=d.then(c)),process.env.NODE_ENV!=="production"&&e.length>2){const f=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
|
|
15
15
|
${e.toString()}
|
|
16
|
-
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof u=="object"&&"then"in u)d=d.then(
|
|
16
|
+
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof u=="object"&&"then"in u)d=d.then(h=>c._called?h:(P(f),Promise.reject(new Error("Invalid navigation guard"))));else if(u!==void 0&&!c._called){P(f),l(new Error("Invalid navigation guard"));return}}d.catch(f=>l(f))})}function ma(e,t,n){let r=0;return function(){r++===1&&P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,r===1&&e.apply(null,arguments)}}function Yn(e,t,n,r){const o=[];for(const i of e){process.env.NODE_ENV!=="production"&&!i.components&&!i.children.length&&P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const a in i.components){let l=i.components[a];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw P(`Component "${a}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){P(`Component "${a}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const c=l;l=()=>c}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,P(`Component "${a}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(ga(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Ue(u,n,r,i,a))}else{let c=l();process.env.NODE_ENV!=="production"&&!("catch"in c)&&(P(`Component "${a}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),c=Promise.resolve(c)),o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const d=mi(u)?u.default:u;i.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&Ue(h,n,r,i,a)()}))}}}return o}function ga(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function as(e){const t=s.inject(Bn),n=s.inject(An),r=s.computed(()=>t.resolve(s.unref(e.to))),o=s.computed(()=>{const{matched:c}=r.value,{length:u}=c,d=c[u-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(Ye.bind(null,d));if(h>-1)return h;const g=ls(c[u-2]);return u>1&&ls(d)===g&&f[f.length-1].path!==g?f.findIndex(Ye.bind(null,c[u-2])):h}),i=s.computed(()=>o.value>-1&&wa(n.params,r.value.params)),a=s.computed(()=>o.value>-1&&o.value===n.matched.length-1&&Lr(n.params,r.value.params));function l(c={}){return ya(c)?t[s.unref(e.replace)?"replace":"push"](s.unref(e.to)).catch(Et):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Te){const c=s.getCurrentInstance();if(c){const u={route:r.value,isActive:i.value,isExactActive:a.value};c.__vrl_devtools=c.__vrl_devtools||[],c.__vrl_devtools.push(u),s.watchEffect(()=>{u.route=r.value,u.isActive=i.value,u.isExactActive=a.value},{flush:"post"})}}return{route:r,href:s.computed(()=>r.value.href),isActive:i,isExactActive:a,navigate:l}}const _a=s.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:as,setup(e,{slots:t}){const n=s.reactive(as(e)),{options:r}=s.inject(Bn),o=s.computed(()=>({[cs(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[cs(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:s.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}});function ya(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function wa(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!le(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function ls(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const cs=(e,t,n)=>e??t??n,Sa=s.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&ba();const r=s.inject(Fn),o=s.computed(()=>e.route||r.value),i=s.inject(is,0),a=s.computed(()=>{let u=s.unref(i);const{matched:d}=o.value;let f;for(;(f=d[u])&&!f.components;)u++;return u}),l=s.computed(()=>o.value.matched[a.value]);s.provide(is,s.computed(()=>a.value+1)),s.provide(pa,l),s.provide(Fn,o);const c=s.ref();return s.watch(()=>[c.value,l.value,e.name],([u,d,f],[h,g,v])=>{d&&(d.instances[f]=u,g&&g!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!Ye(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(U=>U(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,f=l.value,h=f&&f.components[d];if(!h)return ds(n.default,{Component:h,route:u});const g=f.props[d],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,U=N=>{N.component.isUnmounted&&(f.instances[d]=null)},I=s.h(h,F({},v,t,{onVnodeUnmounted:U,ref:c}));if(process.env.NODE_ENV!=="production"&&Te&&I.ref){const N={depth:a.value,name:f.name,path:f.path,meta:f.meta};(le(I.ref)?I.ref.map(W=>W.i):[I.ref.i]).forEach(W=>{W.__vrv_devtools=N})}return ds(n.default,{Component:I,route:u})||I}}});function ds(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ka=Sa;function ba(){const e=s.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const r=t==="KeepAlive"?"keep-alive":"transition";P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
17
17
|
Use slot props instead:
|
|
18
18
|
|
|
19
19
|
<router-view v-slot="{ Component }">
|
|
20
20
|
<${r}>
|
|
21
21
|
<component :is="Component" />
|
|
22
22
|
</${r}>
|
|
23
|
-
</router-view>`)}}function
|
|
24
|
-
${JSON.stringify(
|
|
25
|
-
when navigating to "${p.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return
|
|
26
|
-
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):
|
|
23
|
+
</router-view>`)}}function Tt(e,t){const n=F({},e,{matched:e.matched.map(r=>Ca(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function qt(e){return{_custom:{display:e}}}let Ea=0;function va(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=Ea++;Mn({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},o=>{typeof o.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),o.on.inspectComponent((d,f)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Tt(t.currentRoute.value,"Current Route")})}),o.on.visitComponentTree(({treeNode:d,componentInstance:f})=>{if(f.__vrv_devtools){const h=f.__vrv_devtools;d.tags.push({label:(h.name?`${h.name.toString()}: `:"")+h.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:us})}le(f.__vrl_devtools)&&(f.__devtoolsApi=o,f.__vrl_devtools.forEach(h=>{let g=ps,v="";h.isExactActive?(g=hs,v="This is exactly active"):h.isActive&&(g=fs,v="This link is active"),d.tags.push({label:h.route.path,textColor:0,tooltip:v,backgroundColor:g})}))}),s.watch(t.currentRoute,()=>{c(),o.notifyComponentUpdate(),o.sendInspectorTree(l),o.sendInspectorState(l)});const i="router:navigations:"+r;o.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((d,f)=>{o.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:f.fullPath,logType:"error",time:o.now(),data:{error:d},groupId:f.meta.__navigationId}})});let a=0;t.beforeEach((d,f)=>{const h={guard:qt("beforeEach"),from:Tt(f,"Current Location during this navigation"),to:Tt(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:a++}),o.addTimelineEvent({layerId:i,event:{time:o.now(),title:"Start of navigation",subtitle:d.fullPath,data:h,groupId:d.meta.__navigationId}})}),t.afterEach((d,f,h)=>{const g={guard:qt("afterEach")};h?(g.failure={_custom:{type:Error,readOnly:!0,display:h?h.message:"",tooltip:"Navigation Failure",value:h}},g.status=qt("❌")):g.status=qt("✅"),g.from=Tt(f,"Current Location during this navigation"),g.to=Tt(d,"Target location"),o.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:d.fullPath,time:o.now(),data:g,logType:h?"warning":"default",groupId:d.meta.__navigationId}})});const l="router-inspector:"+r;o.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function c(){if(!u)return;const d=u;let f=n.getRoutes().filter(h=>!h.parent||!h.parent.record.components);f.forEach(_s),d.filter&&(f=f.filter(h=>Ln(h,d.filter.toLowerCase()))),f.forEach(h=>gs(h,t.currentRoute.value)),d.rootNodes=f.map(ms)}let u;o.on.getInspectorTree(d=>{u=d,d.app===e&&d.inspectorId===l&&c()}),o.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===l){const h=n.getRoutes().find(g=>g.record.__vd_id===d.nodeId);h&&(d.state={options:Da(h)})}}),o.sendInspectorTree(l),o.sendInspectorState(l)})}function Oa(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Da(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${Oa(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const us=15485081,fs=2450411,hs=8702998,Na=2282478,ps=16486972,Ta=6710886;function ms(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Na}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:ps}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:us}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:hs}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:fs}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Ta});let r=n.__vd_id;return r==null&&(r=String(Ma++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(ms)}}let Ma=0;const Va=/^\/(.*)\/([a-z]*)$/;function gs(e,t){const n=t.matched.length&&Ye(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Ye(r,e.record))),e.children.forEach(r=>gs(r,t))}function _s(e){e.__vd_match=!1,e.children.forEach(_s)}function Ln(e,t){const n=String(e.re).match(Va);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(a=>Ln(a,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),i=Dt(o);return!t.startsWith("/")&&(i.includes(t)||o.includes(t))||i.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Ln(a,t))}function Ca(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function Ra(e){const t=Gi(e.routes,e),n=e.parseQuery||fa,r=e.stringifyQuery||os,o=e.history;if(process.env.NODE_ENV!=="production"&&!o)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=Nt(),a=Nt(),l=Nt(),c=s.shallowRef(Le);let u=Le;Te&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Vn.bind(null,p=>""+p),f=Vn.bind(null,ua),h=Vn.bind(null,Dt);function g(p,S){let y,b;return Gr(p)?(y=t.getRecordMatcher(p),b=S):b=p,t.addRoute(b,y)}function v(p){const S=t.getRecordMatcher(p);S?t.removeRoute(S):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(p)}"`)}function U(){return t.getRoutes().map(p=>p.record)}function I(p){return!!t.getRecordMatcher(p)}function N(p,S){if(S=F({},S||c.value),typeof p=="string"){const V=Cn(n,p,S.path),q=t.resolve({path:V.path},S),ot=o.createHref(V.fullPath);return process.env.NODE_ENV!=="production"&&(ot.startsWith("//")?P(`Location "${p}" resolved to "${ot}". A resolved location cannot start with multiple slashes.`):q.matched.length||P(`No match found for location with path "${p}"`)),F(V,q,{params:h(q.params),hash:Dt(V.hash),redirectedFrom:void 0,href:ot})}let y;if("path"in p)process.env.NODE_ENV!=="production"&&"params"in p&&!("name"in p)&&Object.keys(p.params).length&&P(`Path "${p.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),y=F({},p,{path:Cn(n,p.path,S.path).path});else{const V=F({},p.params);for(const q in V)V[q]==null&&delete V[q];y=F({},p,{params:f(V)}),S.params=f(S.params)}const b=t.resolve(y,S),Y=p.hash||"";process.env.NODE_ENV!=="production"&&Y&&!Y.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${Y}" with "#${Y}".`),b.params=d(h(b.params));const Q=yi(r,F({},p,{hash:la(Y),path:b.path})),R=o.createHref(Q);return process.env.NODE_ENV!=="production"&&(R.startsWith("//")?P(`Location "${p}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):b.matched.length||P(`No match found for location with path "${"path"in p?p.path:p}"`)),F({fullPath:Q,hash:Y,query:r===os?ha(p.query):p.query||{}},b,{redirectedFrom:void 0,href:R})}function O(p){return typeof p=="string"?Cn(n,p,c.value.path):F({},p)}function W(p,S){if(u!==p)return at(8,{from:S,to:p})}function ee(p){return T(p)}function pe(p){return ee(F(O(p),{replace:!0}))}function me(p){const S=p.matched[p.matched.length-1];if(S&&S.redirect){const{redirect:y}=S;let b=typeof y=="function"?y(p):y;if(typeof b=="string"&&(b=b.includes("?")||b.includes("#")?b=O(b):{path:b},b.params={}),process.env.NODE_ENV!=="production"&&!("path"in b)&&!("name"in b))throw P(`Invalid redirect found:
|
|
24
|
+
${JSON.stringify(b,null,2)}
|
|
25
|
+
when navigating to "${p.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return F({query:p.query,hash:p.hash,params:"path"in b?{}:p.params},b)}}function T(p,S){const y=u=N(p),b=c.value,Y=p.state,Q=p.force,R=p.replace===!0,V=me(y);if(V)return T(F(O(V),{state:typeof V=="object"?F({},Y,V.state):Y,force:Q,replace:R}),S||y);const q=y;q.redirectedFrom=S;let ot;return!Q&&Yr(r,b,y)&&(ot=at(16,{to:q,from:b}),ai(b,b,!0,!1)),(ot?Promise.resolve(ot):D(q,b)).catch(ie=>Me(ie)?Me(ie,2)?ie:xr(ie):oe(ie,q,b)).then(ie=>{if(ie){if(Me(ie,2))return process.env.NODE_ENV!=="production"&&Yr(r,N(ie.to),q)&&S&&(S._count=S._count?S._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${b.fullPath}" to "${q.fullPath}". Aborting to avoid a Stack Overflow.
|
|
26
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):T(F({replace:R},O(ie.to),{state:typeof ie.to=="object"?F({},Y,ie.to.state):Y,force:Q}),S||q)}else ie=G(q,b,!0,R,Y);return k(q,b,ie),ie})}function ii(p,S){const y=W(p,S);return y?Promise.reject(y):Promise.resolve()}function ke(p){const S=Nn.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(p):p()}function D(p,S){let y;const[b,Y,Q]=$a(p,S);y=Yn(b.reverse(),"beforeRouteLeave",p,S);for(const V of b)V.leaveGuards.forEach(q=>{y.push(Ue(q,p,S))});const R=ii.bind(null,p,S);return y.push(R),bt(y).then(()=>{y=[];for(const V of i.list())y.push(Ue(V,p,S));return y.push(R),bt(y)}).then(()=>{y=Yn(Y,"beforeRouteUpdate",p,S);for(const V of Y)V.updateGuards.forEach(q=>{y.push(Ue(q,p,S))});return y.push(R),bt(y)}).then(()=>{y=[];for(const V of Q)if(V.beforeEnter)if(le(V.beforeEnter))for(const q of V.beforeEnter)y.push(Ue(q,p,S));else y.push(Ue(V.beforeEnter,p,S));return y.push(R),bt(y)}).then(()=>(p.matched.forEach(V=>V.enterCallbacks={}),y=Yn(Q,"beforeRouteEnter",p,S),y.push(R),bt(y))).then(()=>{y=[];for(const V of a.list())y.push(Ue(V,p,S));return y.push(R),bt(y)}).catch(V=>Me(V,8)?V:Promise.reject(V))}function k(p,S,y){l.list().forEach(b=>ke(()=>b(p,S,y)))}function G(p,S,y,b,Y){const Q=W(p,S);if(Q)return Q;const R=S===Le,V=Te?history.state:{};y&&(b||R?o.replace(p.fullPath,F({scroll:R&&V&&V.scroll},Y)):o.push(p.fullPath,Y)),c.value=p,ai(p,S,y,R),xr()}let te;function st(){te||(te=o.listen((p,S,y)=>{if(!li.listening)return;const b=N(p),Y=me(b);if(Y){T(F(Y,{replace:!0}),b).catch(Et);return}u=b;const Q=c.value;Te&&Di(Wr(Q.fullPath,y.delta),Kt()),D(b,Q).catch(R=>Me(R,12)?R:Me(R,2)?(T(R.to,b).then(V=>{Me(V,20)&&!y.delta&&y.type===vt.pop&&o.go(-1,!1)}).catch(Et),Promise.reject()):(y.delta&&o.go(-y.delta,!1),oe(R,b,Q))).then(R=>{R=R||G(b,Q,!1),R&&(y.delta&&!Me(R,8)?o.go(-y.delta,!1):y.type===vt.pop&&Me(R,20)&&o.go(-1,!1)),k(b,Q,R)}).catch(Et)}))}let zt=Nt(),Dn=Nt(),Ne;function oe(p,S,y){xr(p);const b=Dn.list();return b.length?b.forEach(Y=>Y(p,S,y)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(p)),Promise.reject(p)}function rm(){return Ne&&c.value!==Le?Promise.resolve():new Promise((p,S)=>{zt.add([p,S])})}function xr(p){return Ne||(Ne=!p,st(),zt.list().forEach(([S,y])=>p?y(p):S()),zt.reset()),p}function ai(p,S,y,b){const{scrollBehavior:Y}=e;if(!Te||!Y)return Promise.resolve();const Q=!y&&Ni(Wr(p.fullPath,0))||(b||!y)&&history.state&&history.state.scroll||null;return s.nextTick().then(()=>Y(p,S,Q)).then(R=>R&&Oi(R)).catch(R=>oe(R,p,S))}const Ir=p=>o.go(p);let Br;const Nn=new Set,li={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,hasRoute:I,getRoutes:U,resolve:N,options:e,push:ee,replace:pe,go:Ir,back:()=>Ir(-1),forward:()=>Ir(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:Dn.add,isReady:rm,install(p){const S=this;p.component("RouterLink",_a),p.component("RouterView",ka),p.config.globalProperties.$router=S,Object.defineProperty(p.config.globalProperties,"$route",{enumerable:!0,get:()=>s.unref(c)}),Te&&!Br&&c.value===Le&&(Br=!0,ee(o.location).catch(Y=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",Y)}));const y={};for(const Y in Le)Object.defineProperty(y,Y,{get:()=>c.value[Y],enumerable:!0});p.provide(Bn,S),p.provide(An,s.shallowReactive(y)),p.provide(Fn,c);const b=p.unmount;Nn.add(p),p.unmount=function(){Nn.delete(p),Nn.size<1&&(u=Le,te&&te(),te=null,c.value=Le,Br=!1,Ne=!1),b()},process.env.NODE_ENV!=="production"&&Te&&va(p,S,t)}};function bt(p){return p.reduce((S,y)=>S.then(()=>ke(y)),Promise.resolve())}return li}function $a(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const l=t.matched[a];l&&(e.matched.find(u=>Ye(u,l))?r.push(l):n.push(l));const c=e.matched[a];c&&(t.matched.find(u=>Ye(u,c))||o.push(c))}return[n,r,o]}function Pa(){return s.inject(An)}var ys=!1;function Zt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Un(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
27
27
|
* pinia v2.1.7
|
|
28
28
|
* (c) 2023 Eduardo San Martin Morote
|
|
29
29
|
* @license MIT
|
|
30
|
-
*/let
|
|
30
|
+
*/let Mt;const Vt=e=>Mt=e,ws=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Je(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var be;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(be||(be={}));const Jt=typeof window<"u",Ct=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Jt,Ss=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function xa(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Wn(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Es(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function ks(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Qt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Xt=typeof navigator=="object"?navigator:{userAgent:""},bs=/Macintosh/.test(Xt.userAgent)&&/AppleWebKit/.test(Xt.userAgent)&&!/Safari/.test(Xt.userAgent),Es=Jt?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!bs?Ia:"msSaveOrOpenBlob"in Xt?Ba:Aa:()=>{};function Ia(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?ks(r.href)?Wn(e,t,n):(r.target="_blank",Qt(r)):Qt(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Qt(r)},0))}function Ba(e,t="download",n){if(typeof e=="string")if(ks(e))Wn(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Qt(r)})}else navigator.msSaveOrOpenBlob(xa(e,n),t)}function Aa(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Wn(e,t,n);const o=e.type==="application/octet-stream",i=/constructor/i.test(String(Ss.HTMLElement))||"safari"in Ss,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i||bs)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=a?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function ne(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function jn(e){return"_a"in e&&"install"in e}function vs(){if(!("clipboard"in navigator))return ne("Your browser doesn't support the Clipboard API","error"),!0}function Os(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(ne('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Fa(e){if(!vs())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),ne("Global state copied to clipboard.")}catch(t){if(Os(t))return;ne("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ya(e){if(!vs())try{Ds(e,JSON.parse(await navigator.clipboard.readText())),ne("Global state pasted from clipboard.")}catch(t){if(Os(t))return;ne("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function La(e){try{Es(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){ne("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Ve;function Ua(){Ve||(Ve=document.createElement("input"),Ve.type="file",Ve.accept=".json");function e(){return new Promise((t,n)=>{Ve.onchange=async()=>{const r=Ve.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},Ve.oncancel=()=>t(null),Ve.onerror=n,Ve.click()})}return e}async function Wa(e){try{const n=await Ua()();if(!n)return;const{text:r,file:o}=n;Ds(e,JSON.parse(r)),ne(`Global state imported from "${o.name}".`)}catch(t){ne("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Ds(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function ge(e){return{_custom:{display:e}}}const Ns="🍍 Pinia (root)",Hn="_root";function ja(e){return jn(e)?{id:Hn,label:Ns}:{id:e.$id,label:e.$id}}function Ha(e){if(jn(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(i=>({editable:!0,key:i,value:e.state.value[i]})),getters:n.filter(i=>r.get(i)._getters).map(i=>{const a=r.get(i);return{editable:!1,key:i,value:a._getters.reduce((l,c)=>(l[c]=a[c],l),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Ga(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:ge(e.type),key:ge(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function za(e){switch(e){case be.direct:return"mutation";case be.patchFunction:return"$patch";case be.patchObject:return"$patch";default:return"unknown"}}let lt=!0;const en=[],Qe="pinia:mutations",re="pinia",{assign:Ka}=Object,tn=e=>"🍍 "+e;function qa(e,t){Mn({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:en,app:e},n=>{typeof n.now!="function"&&ne("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Qe,label:"Pinia 🍍",color:15064968}),n.addInspector({id:re,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Fa(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ya(t),n.sendInspectorTree(re),n.sendInspectorState(re)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{La(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Wa(t),n.sendInspectorTree(re),n.sendInspectorState(re)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?ne(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),ne(`Store "${r}" reset.`)):ne(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const i=r.componentInstance&&r.componentInstance.proxy;if(i&&i._pStores){const a=r.componentInstance.proxy._pStores;Object.values(a).forEach(l=>{r.instanceData.state.push({type:tn(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:s.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,u)=>(c[u]=l.$state[u],c),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:tn(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,u)=>{try{c[u]=l[u]}catch(d){c[u]=d}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===re){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(i=>"$id"in i?i.$id.toLowerCase().includes(r.filter.toLowerCase()):Ns.toLowerCase().includes(r.filter.toLowerCase())):o).map(ja)}}),n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===re){const o=r.nodeId===Hn?t:t._s.get(r.nodeId);if(!o)return;o&&(r.state=Ha(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===re){const i=r.nodeId===Hn?t:t._s.get(r.nodeId);if(!i)return ne(`store "${r.nodeId}" not found`,"error");const{path:a}=r;jn(i)?a.unshift("state"):(a.length!==1||!i._customProperties.has(a[0])||a[0]in i.$state)&&a.unshift("$state"),lt=!1,r.set(i,a,r.state.value),lt=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),i=t._s.get(o);if(!i)return ne(`store "${o}" not found`,"error");const{path:a}=r;if(a[0]!=="state")return ne(`Invalid path for store "${o}":
|
|
31
31
|
${a}
|
|
32
|
-
Only state can be modified.`);a[0]="$state",
|
|
32
|
+
Only state can be modified.`);a[0]="$state",lt=!1,r.set(i,a,r.state.value),lt=!0}})})}function Za(e,t){en.includes(tn(t.$id))||en.push(tn(t.$id)),Mn({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:en,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:a,onError:l,name:c,args:u})=>{const d=Ts++;n.addTimelineEvent({layerId:Qe,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:ge(t.$id),action:ge(c),args:u},groupId:d}}),a(f=>{We=void 0,n.addTimelineEvent({layerId:Qe,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:ge(t.$id),action:ge(c),args:u,result:f},groupId:d}})}),l(f=>{We=void 0,n.addTimelineEvent({layerId:Qe,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:ge(t.$id),action:ge(c),args:u,error:f},groupId:d}})})},!0),t._customProperties.forEach(a=>{s.watch(()=>s.unref(t[a]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(re),lt&&n.addTimelineEvent({layerId:Qe,event:{time:r(),title:"Change",subtitle:a,data:{newValue:l,oldValue:c},groupId:We}})},{deep:!0})}),t.$subscribe(({events:a,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(re),!lt)return;const u={time:r(),title:za(l),data:Ka({store:ge(t.$id)},Ga(a)),groupId:We};l===be.patchFunction?u.subtitle="⤵️":l===be.patchObject?u.subtitle="🧩":a&&!Array.isArray(a)&&(u.subtitle=a.type),a&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),n.addTimelineEvent({layerId:Qe,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=s.markRaw(a=>{o(a),n.addTimelineEvent({layerId:Qe,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:ge(t.$id),info:ge("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(re),n.sendInspectorState(re)});const{$dispose:i}=t;t.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(re),n.sendInspectorState(re),n.getSettings().logStoreChanges&&ne(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(re),n.sendInspectorState(re),n.getSettings().logStoreChanges&&ne(`"${t.$id}" store installed 🆕`)})}let Ts=0,We;function Ms(e,t,n){const r=t.reduce((o,i)=>(o[i]=s.toRaw(e)[i],o),{});for(const o in r)e[o]=function(){const i=Ts,a=n?new Proxy(e,{get(...c){return We=i,Reflect.get(...c)},set(...c){return We=i,Reflect.set(...c)}}):e;We=i;const l=r[o].apply(a,arguments);return We=void 0,l}}function Ja({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,Ms(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;s.toRaw(t)._hotUpdate=function(o){r.apply(this,arguments),Ms(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)},Za(e,t)}function Qa(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],r=[];const o=s.markRaw({install(i){Vt(o),o._a=i,i.provide(ws,o),i.config.globalProperties.$pinia=o,Ct&&qa(i,o),r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!ys?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Ct&&typeof Proxy<"u"&&o.use(Ja),o}function Vs(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Je(o)&&Je(r)&&!s.isRef(r)&&!s.isReactive(r)?e[n]=Vs(o,r):e[n]=r}return e}const Cs=()=>{};function Rs(e,t,n,r=Cs){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&s.getCurrentScope()&&s.onScopeDispose(o),o}function ct(e,...t){e.slice().forEach(n=>{n(...t)})}const Xa=e=>e();function Gn(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Je(o)&&Je(r)&&e.hasOwnProperty(n)&&!s.isRef(r)&&!s.isReactive(r)?e[n]=Gn(o,r):e[n]=r}return e}const el=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function tl(e){return!Je(e)||!e.hasOwnProperty(el)}const{assign:de}=Object;function $s(e){return!!(s.isRef(e)&&e.effect)}function Ps(e,t,n,r){const{state:o,actions:i,getters:a}=t,l=n.state.value[e];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const d=process.env.NODE_ENV!=="production"&&r?s.toRefs(s.ref(o?o():{}).value):s.toRefs(n.state.value[e]);return de(d,i,Object.keys(a||{}).reduce((f,h)=>(process.env.NODE_ENV!=="production"&&h in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${e}".`),f[h]=s.markRaw(s.computed(()=>{Vt(n);const g=n._s.get(e);return a[h].call(g,g)})),f),{}))}return c=zn(e,u,t,n,r,!0),c}function zn(e,t,n={},r,o,i){let a;const l=de({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&!ys&&(c.onTrigger=D=>{u?g=D:u==!1&&!T._hotUpdating&&(Array.isArray(g)?g.push(D):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,d,f=[],h=[],g;const v=r.state.value[e];!i&&!v&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const U=s.ref({});let I;function N(D){let k;u=d=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof D=="function"?(D(r.state.value[e]),k={type:be.patchFunction,storeId:e,events:g}):(Gn(r.state.value[e],D),k={type:be.patchObject,payload:D,storeId:e,events:g});const G=I=Symbol();s.nextTick().then(()=>{I===G&&(u=!0)}),d=!0,ct(f,k,r.state.value[e])}const O=i?function(){const{state:k}=n,G=k?k():{};this.$patch(te=>{de(te,G)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Cs;function W(){a.stop(),f=[],h=[],r._s.delete(e)}function ee(D,k){return function(){Vt(r);const G=Array.from(arguments),te=[],st=[];function zt(oe){te.push(oe)}function Dn(oe){st.push(oe)}ct(h,{args:G,name:D,store:T,after:zt,onError:Dn});let Ne;try{Ne=k.apply(this&&this.$id===e?this:T,G)}catch(oe){throw ct(st,oe),oe}return Ne instanceof Promise?Ne.then(oe=>(ct(te,oe),oe)).catch(oe=>(ct(st,oe),Promise.reject(oe))):(ct(te,Ne),Ne)}}const pe=s.markRaw({actions:{},getters:{},state:[],hotState:U}),me={_p:r,$id:e,$onAction:Rs.bind(null,h),$patch:N,$reset:O,$subscribe(D,k={}){const G=Rs(f,D,k.detached,()=>te()),te=a.run(()=>s.watch(()=>r.state.value[e],st=>{(k.flush==="sync"?d:u)&&D({storeId:e,type:be.direct,events:g},st)},de({},c,k)));return G},$dispose:W},T=s.reactive(process.env.NODE_ENV!=="production"||Ct?de({_hmrPayload:pe,_customProperties:s.markRaw(new Set)},me):me);r._s.set(e,T);const ke=(r._a&&r._a.runWithContext||Xa)(()=>r._e.run(()=>(a=s.effectScope()).run(t)));for(const D in ke){const k=ke[D];if(s.isRef(k)&&!$s(k)||s.isReactive(k))process.env.NODE_ENV!=="production"&&o?Zt(U.value,D,s.toRef(ke,D)):i||(v&&tl(k)&&(s.isRef(k)?k.value=v[D]:Gn(k,v[D])),r.state.value[e][D]=k),process.env.NODE_ENV!=="production"&&pe.state.push(D);else if(typeof k=="function"){const G=process.env.NODE_ENV!=="production"&&o?k:ee(D,k);ke[D]=G,process.env.NODE_ENV!=="production"&&(pe.actions[D]=k),l.actions[D]=k}else process.env.NODE_ENV!=="production"&&$s(k)&&(pe.getters[D]=i?n.getters[D]:k,Jt&&(ke._getters||(ke._getters=s.markRaw([]))).push(D))}if(de(T,ke),de(s.toRaw(T),ke),Object.defineProperty(T,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?U.value:r.state.value[e],set:D=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");N(k=>{de(k,D)})}}),process.env.NODE_ENV!=="production"&&(T._hotUpdate=s.markRaw(D=>{T._hotUpdating=!0,D._hmrPayload.state.forEach(k=>{if(k in T.$state){const G=D.$state[k],te=T.$state[k];typeof G=="object"&&Je(G)&&Je(te)?Vs(G,te):D.$state[k]=te}Zt(T,k,s.toRef(D.$state,k))}),Object.keys(T.$state).forEach(k=>{k in D.$state||Un(T,k)}),u=!1,d=!1,r.state.value[e]=s.toRef(D._hmrPayload,"hotState"),d=!0,s.nextTick().then(()=>{u=!0});for(const k in D._hmrPayload.actions){const G=D[k];Zt(T,k,ee(k,G))}for(const k in D._hmrPayload.getters){const G=D._hmrPayload.getters[k],te=i?s.computed(()=>(Vt(r),G.call(T,T))):G;Zt(T,k,te)}Object.keys(T._hmrPayload.getters).forEach(k=>{k in D._hmrPayload.getters||Un(T,k)}),Object.keys(T._hmrPayload.actions).forEach(k=>{k in D._hmrPayload.actions||Un(T,k)}),T._hmrPayload=D._hmrPayload,T._getters=D._getters,T._hotUpdating=!1})),Ct){const D={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(k=>{Object.defineProperty(T,k,de({value:T[k]},D))})}return r._p.forEach(D=>{if(Ct){const k=a.run(()=>D({store:T,app:r._a,pinia:r,options:l}));Object.keys(k||{}).forEach(G=>T._customProperties.add(G)),de(T,k)}else de(T,a.run(()=>D({store:T,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&T.$state&&typeof T.$state=="object"&&typeof T.$state.constructor=="function"&&!T.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
33
33
|
state: () => new MyClass()
|
|
34
|
-
Found in store "${
|
|
34
|
+
Found in store "${T.$id}".`),v&&i&&n.hydrate&&n.hydrate(T.$state,v),u=!0,d=!0,T}function dt(e,t,n){let r,o;const i=typeof t=="function";if(typeof e=="string")r=e,o=i?n:t;else if(o=e,r=e.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(l,c){const u=s.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Mt&&Mt._testing?null:l)||(u?s.inject(ws,null):null),l&&Vt(l),process.env.NODE_ENV!=="production"&&!Mt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
35
35
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
36
|
-
This will fail in production.`);l=Nt,l._s.has(r)||(o?Gn(r,t,i,l):$s(r,i,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+r,f=o?Gn(h,t,i,l,!0):$s(h,de({},i),l,!0);c._hotUpdate(f),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&Kt){const h=s.getCurrentInstance();if(h&&h.proxy&&!c){const f=h.proxy,g="_pStores"in f?f._pStores:f._pStores={};g[r]=d}}return d}return a.$id=r,a}function Ps(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const i=e(this.$pinia),o=t[r];return typeof o=="function"?o.call(this,i):i[o]},n),{})}class qa extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const K=ct("filter",()=>{const e=s.ref(!1),t=s.ref([]),n=s.computed(()=>t.value),r=s.computed(()=>n.value.length),i=f=>{t.value.push(f)},o=()=>{t.value=[]};function a(){t.value.forEach(f=>f.reset())}const l=s.computed(()=>d.value.filter(f=>f.isActive())),c=s.computed(()=>l.value.length>0),u=s.computed(()=>t.value.sort((f,g)=>f.displayPosition<g.displayPosition?-1:f.displayPosition>g.displayPosition?1:0)),d=s.computed(()=>e.value===!0?u.value:u.value.filter(f=>f.display==="quick"));return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:d,byId:f=>{const g=t.value.find(b=>b.id===f);if(g===void 0)throw new qa(f);return g},reset:a,add:i,clear:o}});class Za extends Error{constructor(t){super(`The record ${t} was not found.`)}}const Xt=ct("records",()=>{const e=s.ref([]),t=s.computed(()=>e.value.length),n=s.computed(()=>e.value);function r(o){const a=e.value.find(l=>l.record_number.value===o);if(a===void 0)throw new Za(o);return a}function i(o){e.value=o}return{all:n,count:t,byId:r,set:i,records:e}});class zn extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Vt={SourceDataFile:"./site-data.json",UnknownEnvironment:"UNKNOWN",ShortenedRecordCount:50};class xs extends Error{constructor(n,r){super(n);$(this,"innerError");r&&(this.innerError=r)}}class Ja{async getData(){try{const t=await fetch(Vt.SourceDataFile);if(!t.ok)throw new xs(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new xs("Failed to read source data.",t)}}}function Qa(e){const t={},n=en();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new zn(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function Xa(e){return e.map(t=>Qa(t))}const Ct=ct("dataset",()=>{const e=s.ref(!1),t=s.ref(""),n=s.ref(!1),r=s.ref();async function i(){try{e.value=!0;const a=new Ja;r.value=await a.getData(),n.value=!0,Xt().set(Xa(r.value.records))}catch{t.value="Failed to fetch site-data.json from the website root. Ensure the file exists and is in the expected CapeDataSet format."}finally{e.value=!1}}const o=s.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:o,loadData:i,dataset:r}}),en=ct("fields",()=>{const e=Ct(),t=s.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=s.computed(()=>t.value.length);function r(i){const o=t.value.find(a=>a.id===i);if(o===void 0)throw new zn(i);return o}return{all:t,count:n,byId:r}}),Kn=ct("properties",()=>{var u;const e=en(),n=(u=Ct().dataset)==null?void 0:u.properties,r=s.computed(()=>(n==null?void 0:n.extraPages)??[]),i=s.computed(()=>(n==null?void 0:n.metadata)??void 0),o=s.computed(()=>(n==null?void 0:n.title)??"Loading..."),a=s.computed(()=>(n==null?void 0:n.resultMode)??"filter"),l=s.computed(()=>n!=null&&n.sortableFields?n==null?void 0:n.sortableFields.map(d=>e.byId(d)):[]),c=s.computed(()=>{if(n!=null&&n.idField)return e.byId(n==null?void 0:n.idField);throw new zn("UNDEFINED")});return{extraPages:r,metadata:i,title:o,idField:c,sortableFields:l,resultMode:a}});var je=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(je||{});function el(e,t,n,r){var a,l;if(!n||!r)return 0;const i=(a=e[n])==null?void 0:a.value,o=(l=t[n])==null?void 0:l.value;return!i&&!o?0:!i&&o?r===je.Ascending?1:-1:i&&!o||i.toString().localeCompare(o.toString())<0?r===je.Ascending?-1:1:i.toString().localeCompare(o.toString())>0?r===je.Ascending?1:-1:0}const He=ct("searchResults",()=>{const e=Xt(),t=Kn(),n=K(),r=s.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((I,B)=>B.filterRecords(I),e.all)),i=s.computed(()=>{let I=r.value;return c.value&&(I=I.sort((B,N)=>el(B,N,u.value,d.value))),I=h.value?I:I.slice(0,Vt.ShortenedRecordCount),I}),o=s.computed(()=>r.value.length),a=s.computed(()=>i.value.length),l=s.computed(()=>a.value===o.value),c=s.computed(()=>t.sortableFields.length>0),u=s.ref(b()),d=s.ref(g()),h=s.ref(!1);function f(){u.value=b(),d.value=g()}function g(){return c.value?je.Ascending:void 0}function b(){return c.value?t.sortableFields[0].id:void 0}return{all:r,totalCount:o,visible:i,visibleCount:a,showAllResults:h,allResultsAreVisible:l,hasSortFields:c,sortFieldId:u,sortDirection:d,reset:f}}),Is={template:"#templateCapeHomepageLayout",computed:{...Ps(K,["showAdvanced"]),...Ps(He,{hasMatches:e=>e.totalCount>0})}},tl={class:"cape-home-page"},Bs=s.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("form",tl,[s.createVNode(Is)]))}}),As={template:"#templateCapeRecordCard",props:["record"]},nl={key:0,class:"cape-record-page-record-not-found"},rl={class:"cape-record-page-record-id"},Fs=s.defineComponent({__name:"CapeRecordPage",setup(e){const t=Na(),n=Xt(),r=s.computed(()=>parseInt(t.params.id)),i=s.computed(()=>{try{return n.byId(r.value)}catch{return}});return(o,a)=>i.value===void 0?(s.openBlock(),s.createElementBlock("div",nl,[s.createTextVNode("The record with Record ID "),s.createElementVNode("span",rl,s.toDisplayString(r.value),1),s.createTextVNode(" does not exist.")])):(s.openBlock(),s.createBlock(As,{key:1,record:i.value},null,8,["record"]))}}),sl=Oa({history:Oo("/"),routes:[{name:"root",path:"/",component:Bs},{name:"record",path:"/record/:id",component:Fs}],linkActiveClass:"active",linkExactActiveClass:"active"}),Ys={template:"#templateCapeNavigation"},il={class:"cape-load-error cape-error"},ol=s.createElementVNode("h2",null,"Unable to load data",-1),al={class:"cape-load-error-message"},Ls=s.defineComponent({__name:"CapeLoadError",setup(e){const t=Ct();return(n,r)=>(s.openBlock(),s.createElementBlock("div",il,[ol,s.createElementVNode("p",null,[s.createTextVNode("An error has occurred. The error was: "),s.createElementVNode("span",al,s.toDisplayString(s.unref(t).errorMessage),1),s.createTextVNode(".")])]))}});function Us(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),r=function(o){return t[o.toUpperCase()]??o},i=n.replace(/\S/g,r);return new RegExp(i,"g")}class qn{constructor(t,n,r,i){$(this,"id");$(this,"componentId");$(this,"displayPosition");$(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=i}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function dt(e){return Array.isArray(e)?e:[e]}class ll extends qn{constructor(n,r,i,o,a,l){super(n,r,i,o);$(this,"term");$(this,"defaultTerm");$(this,"placeholder");this.defaultTerm=a,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(i=>{const o=Us(i);return this.termRegexpMatchesRecord(o,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return dt(r).some(o=>`${o}`.match(n))}}class tn extends qn{constructor(n,r,i,o,a){super(n,r,i,o);$(this,"field");a.changeFilterMode||(a.changeFilterMode=!0),this.field=a}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function cl(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=dt(e);return n.every(i=>{const o=Us(i);return r.some(a=>`${a}`.match(o))})}function Rt(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function nn(e){return!Rt(e)}function Zn(e,t){return e===""||e===void 0?!1:dt(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class dl extends tn{constructor(n,r,i,o,a,l,c){super(n,r,i,o,a);$(this,"term");$(this,"defaultTerm");$(this,"mode");$(this,"defaultMode");this.defaultMode=c,this.defaultTerm=l,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return cl(n,this.term);case"is":return Zn(n,this.term);case"set":return Rt(n);case"notSet":return nn(n)}}}function Ws(e,t){return e===""||e===void 0?!1:dt(e).find(i=>`${i}`===t)!==void 0}function ul(e,t){return t.find(r=>Ws(e,r))!==void 0}class fl extends tn{constructor(n,r,i,o,a,l,c,u){super(n,r,i,o,a);$(this,"isTerm");$(this,"oneOfTerms");$(this,"mode");$(this,"defaultIsTerm");$(this,"defaultOneOfTerms");$(this,"defaultMode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return ul(n,this.oneOfTerms);case"is":return Ws(n,this.isTerm);case"set":return Rt(n);case"notSet":return nn(n)}}}function hl(e,t,n){return e===""||e===void 0?!1:dt(e).find(o=>o>=t&&o<=n)!==void 0}function Qe(e){if(e!="")return e}function js(e,t){const n=Qe(e);return n??t}class pl extends tn{constructor(n,r,i,o,a,l,c,u,d){super(n,r,i,o,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Qe(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Qe(this.lowerBoundTerm)==this.defaultLowerBound&&Qe(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Qe(this.isTerm)!==void 0;case"between":return Qe(this.lowerBoundTerm)!==void 0||Qe(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return Zn(n,`${this.isTerm}`);case"between":{const r=js(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=js(this.upperBoundTerm,Number.POSITIVE_INFINITY);return hl(n,r,i)}case"set":return Rt(n);case"notSet":return nn(n)}}}function ml(e,t,n){return e===""||e===void 0?!1:dt(e).find(o=>(t===void 0||o>=t)&&(n===void 0||o<=n))!==void 0}class gl extends tn{constructor(n,r,i,o,a,l,c,u,d){super(n,r,i,o,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(i=>parseInt(i)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(i=>parseInt(i)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return Zn(n,this.termToISO(this.isTerm)??"");case"between":return ml(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Rt(n);case"notSet":return nn(n)}}}function _l(e){yl(),wl(),Sl(),Ol(e)}function yl(){K().clear()}function wl(){K().add(new ll("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function Sl(){const e=en();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":kl(t,n,r);break;case"enum":bl(t,n,r);break;case"integer":El(t,n,r);break;case"date":vl(t,n,r);break}})}function kl(e,t,n){K().add(new dl("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function bl(e,t,n){K().add(new fl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function El(e,t,n){K().add(new pl("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function vl(e,t,n){K().add(new gl("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function Ol(e){const t=K();e.forEach(n=>t.add(n))}const Hs=s.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=Ct();[t,n]=s.withAsyncContext(()=>r.loadData()),await t,n();const i=s.inject("capeOptions");return _l(i.additionalFilters??[]),(o,a)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(r).status==="ERROR"?(s.openBlock(),s.createBlock(Ls,{key:0})):s.createCommentVNode("",!0),s.unref(r).status=="OK"?(s.openBlock(),s.createBlock(Ys,{key:1})):s.createCommentVNode("",!0)]))}}),Dl={class:"cape-record-count"},Nl=s.defineComponent({__name:"CapeRecordCount",setup(e){const t=Xt();return(n,r)=>(s.openBlock(),s.createElementBlock("span",Dl,s.toDisplayString(s.unref(t).count),1))}}),Tl={__name:"CapeAdvancedSearchToggle",setup(e){const t=K();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>s.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAdvanced]])}},Ml={class:"cape-filters"},Vl=s.defineComponent({__name:"CapeFilters",setup(e){const t=K();return(n,r)=>(s.openBlock(),s.createElementBlock("div",Ml,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).forDisplay,i=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),Cl={__name:"CapeFormResetButton",setup(e){const t=K(),n=He();function r(){t.reset(),n.reset()}return(i,o)=>(s.openBlock(),s.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[s.renderSlot(i.$slots,"default",{},()=>[s.createTextVNode(" New search ")])]))}},Gs={template:"#templateCapeHeader"},Rl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},$l={},Pl={class:"cape-loading"},xl=[s.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[s.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),s.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function Il(e,t){return s.openBlock(),s.createElementBlock("div",Pl,xl)}const zs=Rl($l,[["render",Il]]);var Bl={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Al=function(){const e=Bl.VITE_ENVIRONMENT_NAME;return e||(console.warn(`Cannot identify your environment name. Add a "VITE_ENVIRONMENT_NAME" setting to your .env file with one of the following values: "DEV", "PPRD", "PROD", "TEST". Defaulting to "${Vt.UnknownEnvironment}".`),Vt.UnknownEnvironment)},Fl={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Yl=s.createElementVNode("strong",null,"WARNING",-1),Ll={class:"cape-non-prod-warning-environment"},Ul={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},Wl=s.createElementVNode("code",null,[s.createTextVNode("VITE_ENVIRONMENT_NAME=["),s.createElementVNode("em",null,"Environment name goes here..."),s.createTextVNode("]")],-1),jl=s.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Al(),n=s.ref(!1),r=s.computed(()=>t!="PROD"&&!n.value),i=s.computed(()=>t===Vt.UnknownEnvironment),o=function(){n.value=!0};return(a,l)=>r.value?(s.openBlock(),s.createElementBlock("div",Fl,[Yl,s.createTextVNode(": This is a "),s.createElementVNode("span",Ll,s.toDisplayString(s.unref(t)),1),s.createTextVNode(" instance of this service. "),i.value?(s.openBlock(),s.createElementBlock("span",Ul,[s.createTextVNode(" Note: This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. To set the environment create a '.env' file in the application root directory with contents as follows: "),Wl])):s.createCommentVNode("",!0),s.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:o,onKeyup:s.withKeys(o,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):s.createCommentVNode("",!0)}}),Ks={template:"#templateCapeSummaryCard",props:["record"]},Hl={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},Gl=["value"],zl=["value"],Kl=["value"],qs=s.defineComponent({__name:"CapeSortOrder",setup(e){const t=Kn(),n=He();return(r,i)=>s.unref(n).hasSortFields&&s.unref(n).visibleCount>0?(s.openBlock(),s.createElementBlock("div",Hl,[s.createElementVNode("label",null,[s.createTextVNode("Order results by: "),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-field","onUpdate:modelValue":i[0]||(i[0]=o=>s.unref(n).sortFieldId=o)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).sortableFields,o=>(s.openBlock(),s.createElementBlock("option",{key:o.id,value:o.id},s.toDisplayString(o.label),9,Gl))),128))],512),[[s.vModelSelect,s.unref(n).sortFieldId]])]),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":i[1]||(i[1]=o=>s.unref(n).sortDirection=o),"aria-label":"Sort direction"},[s.createElementVNode("option",{value:s.unref(je).Ascending},"Ascending",8,zl),s.createElementVNode("option",{value:s.unref(je).Descending},"Descending",8,Kl)],512),[[s.vModelSelect,s.unref(n).sortDirection]])])):s.createCommentVNode("",!0)}}),ql={__name:"CapeShowAllResultsToggle",setup(e){const t=He();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>s.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAllResults]])}},Zl={key:0,class:"cape-results-info"},Jl={key:0},Ql={key:1},Xl={key:1,class:"cape-results-count"},ec=s.defineComponent({__name:"CapeResultsInfo",setup(e){const t=He();return(n,r)=>s.unref(t).allResultsAreVisible?(s.openBlock(),s.createElementBlock("div",Zl,[s.unref(t).visibleCount==1?(s.openBlock(),s.createElementBlock("div",Jl,"Showing 1 matching record.")):(s.openBlock(),s.createElementBlock("div",Ql,"Showing all "+s.toDisplayString(s.unref(t).visibleCount)+" matching records.",1))])):(s.openBlock(),s.createElementBlock("div",Xl," Showing first "+s.toDisplayString(s.unref(t).visibleCount)+" of "+s.toDisplayString(s.unref(t).totalCount)+" matching records. ",1))}}),tc={class:"cape-results-controls flex justify-between"},nc={class:"flex justify-start"},rc={key:0,class:"cape-show-all-results-toggle switch switch-sm"},sc=["for"],Jn=s.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=He(),r=s.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=s.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(o,a)=>(s.openBlock(),s.createElementBlock("div",tc,[s.createElementVNode("div",nc,[s.createVNode(ec),r.value?(s.openBlock(),s.createElementBlock("div",rc,[s.createVNode(ql,{class:"cape-results-toggle",id:i.value},null,8,["id"]),s.createElementVNode("label",{for:i.value},"Show All Results",8,sc)])):s.createCommentVNode("",!0)]),s.createVNode(qs)]))}}),ic={class:"cape-results"},oc={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},ac=s.defineComponent({__name:"CapeResults",setup(e){const t=He();return(n,r)=>(s.openBlock(),s.createElementBlock("div",ic,[s.unref(t).totalCount===0?(s.openBlock(),s.createElementBlock("div",oc,"No matches ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(Jn,{class:"cape-results-controls-top","id-distinguisher":"top"}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).visible,(i,o)=>(s.openBlock(),s.createBlock(Ks,{key:o,record:i},null,8,["record"]))),128)),s.createVNode(Jn,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
36
|
+
This will fail in production.`);l=Mt,l._s.has(r)||(i?zn(r,t,o,l):Ps(r,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const f="__hot:"+r,h=i?zn(f,t,o,l,!0):Ps(f,de({},o),l,!0);c._hotUpdate(h),delete l.state.value[f],l._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Jt){const f=s.getCurrentInstance();if(f&&f.proxy&&!c){const h=f.proxy,g="_pStores"in h?h._pStores:h._pStores={};g[r]=d}}return d}return a.$id=r,a}function Kn(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const o=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,o):o[i]},n),{})}class nl extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const K=dt("filter",()=>{const e=s.ref(!1),t=s.ref([]),n=s.computed(()=>t.value),r=s.computed(()=>n.value.length),o=h=>{t.value.push(h)},i=()=>{t.value=[]};function a(){t.value.forEach(h=>h.reset())}const l=s.computed(()=>d.value.filter(h=>h.isActive())),c=s.computed(()=>l.value.length>0),u=s.computed(()=>t.value.sort((h,g)=>h.displayPosition<g.displayPosition?-1:h.displayPosition>g.displayPosition?1:0)),d=s.computed(()=>e.value===!0?u.value:u.value.filter(h=>h.display==="quick"));return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:d,byId:h=>{const g=t.value.find(v=>v.id===h);if(g===void 0)throw new nl(h);return g},reset:a,add:o,clear:i}});class rl extends Error{constructor(t){super(`The record ${t} was not found.`)}}function xs(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function Is(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}const Rt=dt("records",()=>{const e=s.ref([]),t=s.computed(()=>e.value.length),n=s.computed(()=>e.value);function r(l){const c=e.value.find(u=>u.record_number.value===l);if(c===void 0)throw new rl(l);return c}function o(l){e.value=l}function i(l){return xs(n.value,l)}function a(l){return Is(n.value,l)}return{all:n,count:t,byId:r,set:o,next:i,previous:a,records:e}});class qn extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Bs={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class As extends Error{constructor(n,r){super(n);$(this,"innerError");r&&(this.innerError=r)}}class sl{async getData(){try{const t=await fetch(Bs.SourceDataFile);if(!t.ok)throw new As(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new As("Failed to read source data.",t)}}}function ol(e){const t={},n=ut();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new qn(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function il(e){return e.map(t=>ol(t))}const $t=dt("dataset",()=>{const e=s.ref(!1),t=s.ref(""),n=s.ref(!1),r=s.ref();async function o(){try{e.value=!0;const a=new sl;r.value=await a.getData(),n.value=!0,Rt().set(il(r.value.records))}catch{t.value="Failed to fetch site-data.json from the website root. Ensure the file exists and is in the expected CapeDataSet format."}finally{e.value=!1}}const i=s.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:i,loadData:o,dataset:r}}),ut=dt("fields",()=>{const e=$t(),t=s.computed(()=>{var o;return((o=e.dataset)==null?void 0:o.fields)??[]}),n=s.computed(()=>t.value.length);function r(o){const i=t.value.find(a=>a.id===o);if(i===void 0)throw new qn(o);return i}return{all:t,count:n,byId:r}}),je=dt("properties",()=>{const e=ut(),t=$t(),n=s.ref({}),r=s.computed(()=>{var f;return(f=t.dataset)==null?void 0:f.properties}),o=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.metadata)??void 0}),i=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.title)??"Loading..."}),a=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.resultMode)??"filter"}),l=s.computed(()=>{var f,h;return(f=r==null?void 0:r.value)!=null&&f.sortableFields?(h=r==null?void 0:r.value)==null?void 0:h.sortableFields.map(g=>e.byId(g)):[]}),c=s.computed(()=>{var f,h;if((f=r==null?void 0:r.value)!=null&&f.idField)return e.byId((h=r==null?void 0:r.value)==null?void 0:h.idField);throw new qn("UNDEFINED")});function u(f){n.value=f}return{pages:s.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),metadata:o,title:i,idField:c,sortableFields:l,resultMode:a,setOptions:u,options:n}});var He=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(He||{});function al(e,t,n,r){var a,l;if(!n||!r)return 0;const o=(a=e[n])==null?void 0:a.value,i=(l=t[n])==null?void 0:l.value;return!o&&!i?0:!o&&i?r===He.Ascending?1:-1:o&&!i||o.toString().localeCompare(i.toString())<0?r===He.Ascending?-1:1:o.toString().localeCompare(i.toString())>0?r===He.Ascending?1:-1:0}const Ge=dt("searchResults",()=>{const e=Rt(),t=je(),n=K(),r=s.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((O,W)=>W.filterRecords(O),e.all)),o=s.computed(()=>{let O=r.value;return u.value&&(O=O.sort((W,ee)=>al(W,ee,d.value,f.value))),O}),i=s.computed(()=>{let O=o.value;return O=h.value?O:O.slice(0,Bs.ShortenedRecordCount),O}),a=s.computed(()=>r.value.length),l=s.computed(()=>i.value.length),c=s.computed(()=>l.value===a.value),u=s.computed(()=>t.sortableFields.length>0),d=s.ref(N()),f=s.ref(I()),h=s.ref(!1);function g(){d.value=N(),f.value=I()}function v(O){return xs(o.value,O)}function U(O){return Is(o.value,O)}function I(){return u.value?He.Ascending:void 0}function N(){return u.value?t.sortableFields[0].id:void 0}return{all:r,totalCount:a,visible:i,visibleCount:l,showAllResults:h,allResultsAreVisible:c,hasSortFields:u,sortFieldId:d,sortDirection:f,reset:g,next:v,previous:U}}),Fs={template:"#templateCapeHomepageLayout",computed:{...Kn(K,["showAdvanced"]),...Kn(Ge,{hasMatches:e=>e.totalCount>0})}},ll={class:"cape-home-page"},Ys=s.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("form",ll,[s.createVNode(Fs)]))}}),Ls={template:"#templateCapeRecordCard",props:["record"]},cl={key:0,class:"cape-record-page-record-not-found"},dl={class:"cape-record-page-record-id"},Us=s.defineComponent({__name:"CapeRecordPage",setup(e){const t=Pa(),n=Rt(),r=s.computed(()=>parseInt(t.params.id)),o=s.computed(()=>{try{return n.byId(r.value)}catch{return}});return(i,a)=>o.value===void 0?(s.openBlock(),s.createElementBlock("div",cl,[s.createTextVNode("The record with Record ID "),s.createElementVNode("span",dl,s.toDisplayString(r.value),1),s.createTextVNode(" does not exist.")])):(s.openBlock(),s.createBlock(Ls,{key:1,record:o.value},null,8,["record"]))}}),Ws=Ra({history:Ri("/"),routes:[{name:"root",path:"/",component:Ys},{name:"record",path:"/record/:id",component:Us}],linkActiveClass:"active",linkExactActiveClass:"active"}),js={template:"#templateCapeNavigation",computed:{...Kn(je,["pages"])}},ul={class:"cape-load-error cape-error"},fl=s.createElementVNode("h2",null,"Unable to load data",-1),hl={class:"cape-load-error-message"},Hs=s.defineComponent({__name:"CapeLoadError",setup(e){const t=$t();return(n,r)=>(s.openBlock(),s.createElementBlock("div",ul,[fl,s.createElementVNode("p",null,[s.createTextVNode("An error has occurred. The error was: "),s.createElementVNode("span",hl,s.toDisplayString(s.unref(t).errorMessage),1),s.createTextVNode(".")])]))}});function Gs(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),r=function(i){return t[i.toUpperCase()]??i},o=n.replace(/\S/g,r);return new RegExp(o,"g")}class Zn{constructor(t,n,r,o){$(this,"id");$(this,"componentId");$(this,"displayPosition");$(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=o}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function ft(e){return Array.isArray(e)?e:[e]}class pl extends Zn{constructor(n,r,o,i,a,l){super(n,r,o,i);$(this,"term");$(this,"defaultTerm");$(this,"placeholder");this.defaultTerm=a,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(o=>{const i=Gs(o);return this.termRegexpMatchesRecord(i,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(o=>this.termRegexpMatchesValue(n,o.value))}termRegexpMatchesValue(n,r){return ft(r).some(i=>`${i}`.match(n))}}class nn extends Zn{constructor(n,r,o,i,a){super(n,r,o,i);$(this,"field");a.changeFilterMode||(a.changeFilterMode=!0),this.field=a}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function ml(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=ft(e);return n.every(o=>{const i=Gs(o);return r.some(a=>`${a}`.match(i))})}function Pt(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function rn(e){return!Pt(e)}function Jn(e,t){return e===""||e===void 0?!1:ft(e).find(o=>`${o}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class gl extends nn{constructor(n,r,o,i,a,l,c){super(n,r,o,i,a);$(this,"term");$(this,"defaultTerm");$(this,"mode");$(this,"defaultMode");this.defaultMode=c,this.defaultTerm=l,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return ml(n,this.term);case"is":return Jn(n,this.term);case"set":return Pt(n);case"notSet":return rn(n)}}}function zs(e,t){return e===""||e===void 0?!1:ft(e).find(o=>`${o}`===t)!==void 0}function _l(e,t){return t.find(r=>zs(e,r))!==void 0}class yl extends nn{constructor(n,r,o,i,a,l,c,u){super(n,r,o,i,a);$(this,"isTerm");$(this,"oneOfTerms");$(this,"mode");$(this,"defaultIsTerm");$(this,"defaultOneOfTerms");$(this,"defaultMode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return _l(n,this.oneOfTerms);case"is":return zs(n,this.isTerm);case"set":return Pt(n);case"notSet":return rn(n)}}}function wl(e,t,n){return e===""||e===void 0?!1:ft(e).find(i=>i>=t&&i<=n)!==void 0}function Xe(e){if(e!="")return e}function Ks(e,t){const n=Xe(e);return n??t}class Sl extends nn{constructor(n,r,o,i,a,l,c,u,d){super(n,r,o,i,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Xe(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Xe(this.lowerBoundTerm)==this.defaultLowerBound&&Xe(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Xe(this.isTerm)!==void 0;case"between":return Xe(this.lowerBoundTerm)!==void 0||Xe(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return Jn(n,`${this.isTerm}`);case"between":{const r=Ks(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),o=Ks(this.upperBoundTerm,Number.POSITIVE_INFINITY);return wl(n,r,o)}case"set":return Pt(n);case"notSet":return rn(n)}}}function kl(e,t,n){return e===""||e===void 0?!1:ft(e).find(i=>(t===void 0||i>=t)&&(n===void 0||i<=n))!==void 0}class bl extends nn{constructor(n,r,o,i,a,l,c,u,d){super(n,r,o,i,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(o=>parseInt(o)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(o=>parseInt(o)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return Jn(n,this.termToISO(this.isTerm)??"");case"between":return kl(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Pt(n);case"notSet":return rn(n)}}}function El(){vl(),Ol(),Dl(),Cl()}function vl(){K().clear()}function Ol(){K().add(new pl("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function Dl(){const e=ut();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":Nl(t,n,r);break;case"enum":Tl(t,n,r);break;case"integer":Ml(t,n,r);break;case"date":Vl(t,n,r);break}})}function Nl(e,t,n){K().add(new gl("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function Tl(e,t,n){K().add(new yl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function Ml(e,t,n){K().add(new Sl("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function Vl(e,t,n){K().add(new bl("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function Cl(){var n;const e=K(),t=je();((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}const qs=s.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=$t();return[t,n]=s.withAsyncContext(()=>r.loadData()),await t,n(),El(),(o,i)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(r).status==="ERROR"?(s.openBlock(),s.createBlock(Hs,{key:0})):s.createCommentVNode("",!0),s.unref(r).status=="OK"?(s.openBlock(),s.createBlock(js,{key:1})):s.createCommentVNode("",!0)]))}}),Rl={class:"cape-record-count"},Zs=s.defineComponent({__name:"CapeRecordCount",setup(e){const t=Rt();return(n,r)=>(s.openBlock(),s.createElementBlock("span",Rl,s.toDisplayString(s.unref(t).count),1))}}),$l={__name:"CapeAdvancedSearchToggle",setup(e){const t=K();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=o=>s.unref(t).showAdvanced=o),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAdvanced]])}},Pl={class:"cape-filters"},xl=s.defineComponent({__name:"CapeFilters",setup(e){const t=K();return(n,r)=>(s.openBlock(),s.createElementBlock("div",Pl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).forDisplay,o=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.componentId),{key:o,filterId:o.id},null,8,["filterId"]))),128))]))}}),Il={__name:"CapeFormResetButton",setup(e){const t=K(),n=Ge();function r(){t.reset(),n.reset()}return(o,i)=>(s.openBlock(),s.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[s.renderSlot(o.$slots,"default",{},()=>[s.createTextVNode(" New search ")])]))}},Js={template:"#templateCapeHeader"},Qs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Bl={},Al={class:"cape-loading"},Fl=[s.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[s.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),s.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function Yl(e,t){return s.openBlock(),s.createElementBlock("div",Al,Fl)}const Xs=Qs(Bl,[["render",Yl]]);var xt=(e=>(e[e.DEV=0]="DEV",e[e.TEST=1]="TEST",e[e.PPRD=2]="PPRD",e[e.PROD=3]="PROD",e[e.UNKNOWN=4]="UNKNOWN",e))(xt||{});const Ll=function(){var n;const e=je(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn(`Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "${xt.UNKNOWN}".`),xt.UNKNOWN)},Ul={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Wl=s.createElementVNode("strong",null,"WARNING",-1),jl={class:"cape-non-prod-warning-environment"},Hl={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},Gl=s.createElementVNode("code",null,[s.createTextVNode("VITE_ENVIRONMENT_NAME=["),s.createElementVNode("em",null,"Environment name goes here..."),s.createTextVNode("]")],-1),zl=s.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Ll(),n=s.ref(!1),r=s.computed(()=>t!=xt.PROD&&!n.value),o=s.computed(()=>t===xt.UNKNOWN),i=function(){n.value=!0};return(a,l)=>r.value?(s.openBlock(),s.createElementBlock("div",Ul,[Wl,s.createTextVNode(": This is a "),s.createElementVNode("span",jl,s.toDisplayString(s.unref(t)),1),s.createTextVNode(" instance of this service. "),o.value?(s.openBlock(),s.createElementBlock("span",Hl,[s.createTextVNode(" Note: This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. To set the environment create a '.env' file in the application root directory with contents as follows: "),Gl])):s.createCommentVNode("",!0),s.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:i,onKeyup:s.withKeys(i,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):s.createCommentVNode("",!0)}}),eo={template:"#templateCapeSummaryCard",props:["record"]},Kl={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},ql=s.createElementVNode("label",{for:"cape-sort-order"},"Order results by: ",-1),Zl={class:"cape-sort-order-controls"},Jl=["value"],Ql=["value"],Xl=["value"],to=s.defineComponent({__name:"CapeSortOrder",setup(e){const t=je(),n=Ge();return(r,o)=>s.unref(n).hasSortFields&&s.unref(n).visibleCount>0?(s.openBlock(),s.createElementBlock("div",Kl,[ql,s.createElementVNode("div",Zl,[s.withDirectives(s.createElementVNode("select",{id:"cape-sort-order",class:"cape-sort-order-field","onUpdate:modelValue":o[0]||(o[0]=i=>s.unref(n).sortFieldId=i)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).sortableFields,i=>(s.openBlock(),s.createElementBlock("option",{key:i.id,value:i.id},s.toDisplayString(i.label),9,Jl))),128))],512),[[s.vModelSelect,s.unref(n).sortFieldId]]),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":o[1]||(o[1]=i=>s.unref(n).sortDirection=i),"aria-label":"Sort direction"},[s.createElementVNode("option",{value:s.unref(He).Ascending},"Ascending",8,Ql),s.createElementVNode("option",{value:s.unref(He).Descending},"Descending",8,Xl)],512),[[s.vModelSelect,s.unref(n).sortDirection]])])])):s.createCommentVNode("",!0)}}),ec={__name:"CapeShowAllResultsToggle",setup(e){const t=Ge();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=o=>s.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAllResults]])}},tc={key:0,class:"cape-results-info"},nc={key:0},rc={key:1},sc={key:1,class:"cape-results-count"},oc=s.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Ge();return(n,r)=>s.unref(t).allResultsAreVisible?(s.openBlock(),s.createElementBlock("div",tc,[s.unref(t).visibleCount==1?(s.openBlock(),s.createElementBlock("div",nc,"Showing 1 matching record.")):(s.openBlock(),s.createElementBlock("div",rc,"Showing all "+s.toDisplayString(s.unref(t).visibleCount)+" matching records.",1))])):(s.openBlock(),s.createElementBlock("div",sc," Showing first "+s.toDisplayString(s.unref(t).visibleCount)+" of "+s.toDisplayString(s.unref(t).totalCount)+" matching records. ",1))}}),ic={class:"cape-results-controls flex justify-between"},ac={class:"flex justify-start"},lc={key:0,class:"cape-show-all-results-toggle switch switch-sm"},cc=["for"],Qn=s.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Ge(),r=s.computed(()=>!n.allResultsAreVisible||n.showAllResults),o=s.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(i,a)=>(s.openBlock(),s.createElementBlock("div",ic,[s.createElementVNode("div",ac,[s.createVNode(oc),r.value?(s.openBlock(),s.createElementBlock("div",lc,[s.createVNode(ec,{class:"cape-results-toggle",id:o.value},null,8,["id"]),s.createElementVNode("label",{for:o.value},"Show All Results",8,cc)])):s.createCommentVNode("",!0)]),s.createVNode(to)]))}}),dc={class:"cape-results"},uc={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},fc=s.defineComponent({__name:"CapeResults",setup(e){const t=Ge();return(n,r)=>(s.openBlock(),s.createElementBlock("div",dc,[s.unref(t).totalCount===0?(s.openBlock(),s.createElementBlock("div",uc,"No matches ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(Qn,{class:"cape-results-controls-top","id-distinguisher":"top"}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).visible,(o,i)=>(s.openBlock(),s.createBlock(eo,{key:i,record:o},null,8,["record"]))),128)),s.createVNode(Qn,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
37
37
|
//! version : 2.30.1
|
|
38
38
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
39
39
|
//! license : MIT
|
|
40
40
|
//! momentjs.com
|
|
41
|
-
var
|
|
42
|
-
[`+
|
|
41
|
+
var no;function _(){return no.apply(null,arguments)}function hc(e){no=e}function _e(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function et(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xn(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(B(e,t))return!1;return!0}function ae(e){return e===void 0}function Ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function It(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ro(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function ze(e,t){for(var n in t)B(t,n)&&(e[n]=t[n]);return B(t,"toString")&&(e.toString=t.toString),B(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ee(e,t,n,r){return Co(e,t,n,r,!0).utc()}function pc(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function M(e){return e._pf==null&&(e._pf=pc()),e._pf}var er;Array.prototype.some?er=Array.prototype.some:er=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function tr(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=M(e),n=er.call(t.parsedDateParts,function(o){return o!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function sn(e){var t=Ee(NaN);return e!=null?ze(M(t),e):M(t).userInvalidated=!0,t}var so=_.momentProperties=[],nr=!1;function rr(e,t){var n,r,o,i=so.length;if(ae(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ae(t._i)||(e._i=t._i),ae(t._f)||(e._f=t._f),ae(t._l)||(e._l=t._l),ae(t._strict)||(e._strict=t._strict),ae(t._tzm)||(e._tzm=t._tzm),ae(t._isUTC)||(e._isUTC=t._isUTC),ae(t._offset)||(e._offset=t._offset),ae(t._pf)||(e._pf=M(t)),ae(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=so[n],o=t[r],ae(o)||(e[r]=o);return e}function Bt(e){rr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),nr===!1&&(nr=!0,_.updateOffset(this),nr=!1)}function ye(e){return e instanceof Bt||e!=null&&e._isAMomentObject!=null}function oo(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ue(e,t){var n=!0;return ze(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var r=[],o,i,a,l=arguments.length;for(i=0;i<l;i++){if(o="",typeof arguments[i]=="object"){o+=`
|
|
42
|
+
[`+i+"] ";for(a in arguments[0])B(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}oo(e+`
|
|
43
43
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
44
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var ei={};function ti(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),ei[e]||(Xs(t),ei[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function ve(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function dc(e){var t,n;for(n in e)A(e,n)&&(t=e[n],ve(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 rr(e,t){var n=Ge({},e),r;for(r in t)A(t,r)&&(Xe(e[r])&&Xe(t[r])?(n[r]={},Ge(n[r],e[r]),Ge(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)A(e,r)&&!A(t,r)&&Xe(e[r])&&(n[r]=Ge({},n[r]));return n}function sr(e){e!=null&&this.set(e)}var ir;Object.keys?ir=Object.keys:ir=function(e){var t,n=[];for(t in e)A(e,t)&&n.push(t);return n};var uc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function fc(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ve(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var or=/(\[[^\[]*\])|(\\)?([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,sn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ar={},ut={};function v(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ut[e]=i),t&&(ut[t[0]]=function(){return Oe(i.apply(this,arguments),t[1],t[2])}),n&&(ut[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function hc(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pc(e){var t=e.match(or),n,r;for(n=0,r=t.length;n<r;n++)ut[t[n]]?t[n]=ut[t[n]]:t[n]=hc(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=ve(t[a])?t[a].call(i,e):t[a];return o}}function on(e,t){return e.isValid()?(t=ni(t,e.localeData()),ar[t]=ar[t]||pc(t),ar[t](e)):e.localeData().invalidDate()}function ni(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(sn.lastIndex=0;n>=0&&sn.test(e);)e=e.replace(sn,r),sn.lastIndex=0,n-=1;return e}var mc={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 gc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(or).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var _c="Invalid date";function yc(){return this._invalidDate}var wc="%d",Sc=/\d{1,2}/;function kc(e){return this._ordinal.replace("%d",e)}var bc={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 Ec(e,t,n,r){var i=this._relativeTime[n];return ve(i)?i(e,t,n,r):i.replace(/%d/i,e)}function vc(e,t){var n=this._relativeTime[e>0?"future":"past"];return ve(n)?n(t):n.replace(/%s/i,t)}var ri={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 fe(e){return typeof e=="string"?ri[e]||ri[e.toLowerCase()]:void 0}function lr(e){var t={},n,r;for(r in e)A(e,r)&&(n=fe(r),n&&(t[n]=e[r]));return t}var Oc={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 Dc(e){var t=[],n;for(n in e)A(e,n)&&t.push({unit:n,priority:Oc[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var si=/\d/,ce=/\d\d/,ii=/\d{3}/,cr=/\d{4}/,an=/[+-]?\d{6}/,W=/\d\d?/,oi=/\d\d\d\d?/,ai=/\d\d\d\d\d\d?/,ln=/\d{1,3}/,dr=/\d{1,4}/,cn=/[+-]?\d{1,6}/,ft=/\d+/,dn=/[+-]?\d+/,Nc=/Z|[+-]\d\d:?\d\d/gi,un=/Z|[+-]\d\d(?::?\d\d)?/gi,Tc=/[+-]?\d+(\.\d{1,3})?/,xt=/[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,ht=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,fn;fn={};function w(e,t,n){fn[e]=ve(t)?t:function(r,i){return r&&n?n:t}}function Mc(e,t){return A(fn,e)?fn[e](t._strict,t._locale):new RegExp(Vc(e))}function Vc(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=he(t)),n}var fr={};function U(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Ce(t)&&(r=function(o,a){a[t]=C(o)}),i=e.length,n=0;n<i;n++)fr[e[n]]=r}function It(e,t){U(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Cc(e,t,n){t!=null&&A(fr,e)&&fr[e](t,n._a,n,e)}function hn(e){return e%4===0&&e%100!==0||e%400===0}var se=0,$e=1,De=2,X=3,we=4,Pe=5,et=6,Rc=7,$c=8;v("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),v(0,["YY",2],0,function(){return this.year()%100}),v(0,["YYYY",4],0,"year"),v(0,["YYYYY",5],0,"year"),v(0,["YYYYYY",6,!0],0,"year"),w("Y",dn),w("YY",W,ce),w("YYYY",dr,cr),w("YYYYY",cn,an),w("YYYYYY",cn,an),U(["YYYYY","YYYYYY"],se),U("YYYY",function(e,t){t[se]=e.length===2?_.parseTwoDigitYear(e):C(e)}),U("YY",function(e,t){t[se]=_.parseTwoDigitYear(e)}),U("Y",function(e,t){t[se]=parseInt(e,10)});function Bt(e){return hn(e)?366:365}_.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var li=pt("FullYear",!0);function Pc(){return hn(this.year())}function pt(e,t){return function(n){return n!=null?(ci(this,e,n),_.updateOffset(this,t),this):At(this,e)}}function At(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 ci(e,t,n){var r,i,o,a,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}o=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!hn(o)?28:l,i?r.setUTCFullYear(o,a,l):r.setFullYear(o,a,l)}}function xc(e){return e=fe(e),ve(this[e])?this[e]():this}function Ic(e,t){if(typeof e=="object"){e=lr(e);var n=Dc(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=fe(e),ve(this[e]))return this[e](t);return this}function Bc(e,t){return(e%t+t)%t}var Z;Array.prototype.indexOf?Z=Array.prototype.indexOf:Z=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function hr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Bc(t,12);return e+=(t-n)/12,n===1?hn(e)?29:28:31-n%7%2}v("M",["MM",2],"Mo",function(){return this.month()+1}),v("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),v("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",W,ht),w("MM",W,ce),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),U(["M","MM"],function(e,t){t[$e]=C(e)-1}),U(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[$e]=i:T(n).invalidMonth=e});var Ac="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),di="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ui=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fc=xt,Yc=xt;function Lc(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ui).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function Uc(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ui.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Wc(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Ee([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=Z.call(this._shortMonthsParse,a),i!==-1?i:null):(i=Z.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=Z.call(this._shortMonthsParse,a),i!==-1?i:(i=Z.call(this._longMonthsParse,a),i!==-1?i:null)):(i=Z.call(this._longMonthsParse,a),i!==-1?i:(i=Z.call(this._shortMonthsParse,a),i!==-1?i:null))}function jc(e,t,n){var r,i,o;if(this._monthsParseExact)return Wc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Ee([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]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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 fi(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=C(t);else if(t=e.localeData().monthsParse(t),!Ce(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,hr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function hi(e){return e!=null?(fi(this,e),_.updateOffset(this,!0),this):At(this,"Month")}function Hc(){return hr(this.year(),this.month())}function Gc(e){return this._monthsParseExact?(A(this,"_monthsRegex")||pi.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Fc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function zc(e){return this._monthsParseExact?(A(this,"_monthsRegex")||pi.call(this),e?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=Yc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pi(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,o,a,l;for(i=0;i<12;i++)o=Ee([2e3,i]),a=Re(this.monthsShort(o,"")),l=Re(this.months(o,"")),t.push(a),n.push(l),r.push(l),r.push(a);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 Kc(e,t,n,r,i,o,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,o,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,o,a),l}function Ft(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 pn(e,t,n){var r=7+t-n,i=(7+Ft(e,0,r).getUTCDay()-t)%7;return-i+r-1}function mi(e,t,n,r,i){var o=(7+n-r)%7,a=pn(e,r,i),l=1+7*(t-1)+o+a,c,u;return l<=0?(c=e-1,u=Bt(c)+l):l>Bt(e)?(c=e+1,u=l-Bt(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Yt(e,t,n){var r=pn(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+xe(a,t,n)):i>xe(e.year(),t,n)?(o=i-xe(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function xe(e,t,n){var r=pn(e,t,n),i=pn(e+1,t,n);return(Bt(e)-r+i)/7}v("w",["ww",2],"wo","week"),v("W",["WW",2],"Wo","isoWeek"),w("w",W,ht),w("ww",W,ce),w("W",W,ht),w("WW",W,ce),It(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=C(e)});function qc(e){return Yt(e,this._week.dow,this._week.doy).week}var Zc={dow:0,doy:6};function Jc(){return this._week.dow}function Qc(){return this._week.doy}function Xc(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ed(e){var t=Yt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}v("d",0,"do","day"),v("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),v("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),v("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),v("e",0,0,"weekday"),v("E",0,0,"isoWeekday"),w("d",W),w("e",W),w("E",W),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),It(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:T(n).invalidWeekday=e}),It(["d","e","E"],function(e,t,n,r){t[r]=C(e)});function td(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function nd(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var rd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),id=xt,od=xt,ad=xt;function ld(e,t){var n=_e(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?pr(n,this._week.dow):e?n[e.day()]:n}function cd(e){return e===!0?pr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function dd(e){return e===!0?pr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ud(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Ee([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Z.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Z.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Z.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Z.call(this._weekdaysParse,a),i!==-1||(i=Z.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Z.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Z.call(this._shortWeekdaysParse,a),i!==-1||(i=Z.call(this._weekdaysParse,a),i!==-1)?i:(i=Z.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Z.call(this._minWeekdaysParse,a),i!==-1||(i=Z.call(this._weekdaysParse,a),i!==-1)?i:(i=Z.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function fd(e,t,n){var r,i,o;if(this._weekdaysParseExact)return ud.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Ee([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]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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 hd(e){if(!this.isValid())return e!=null?this:NaN;var t=At(this,"Day");return e!=null?(e=td(e,this.localeData()),this.add(e-t,"d")):t}function pd(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 md(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=nd(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function gd(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=id),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function _d(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=od),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function yd(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ad),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mr(){function e(d,h){return h.length-d.length}var t=[],n=[],r=[],i=[],o,a,l,c,u;for(o=0;o<7;o++)a=Ee([2e3,1]).day(o),l=Re(this.weekdaysMin(a,"")),c=Re(this.weekdaysShort(a,"")),u=Re(this.weekdays(a,"")),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 gr(){return this.hours()%12||12}function wd(){return this.hours()||24}v("H",["HH",2],0,"hour"),v("h",["hh",2],0,gr),v("k",["kk",2],0,wd),v("hmm",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)}),v("hmmss",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),v("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),v("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function _i(e,t){v(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}_i("a",!0),_i("A",!1);function yi(e,t){return t._meridiemParse}w("a",yi),w("A",yi),w("H",W,ur),w("h",W,ht),w("k",W,ht),w("HH",W,ce),w("hh",W,ce),w("kk",W,ce),w("hmm",oi),w("hmmss",ai),w("Hmm",oi),w("Hmmss",ai),U(["H","HH"],X),U(["k","kk"],function(e,t,n){var r=C(e);t[X]=r===24?0:r}),U(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),U(["h","hh"],function(e,t,n){t[X]=C(e),T(n).bigHour=!0}),U("hmm",function(e,t,n){var r=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r)),T(n).bigHour=!0}),U("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r,2)),t[Pe]=C(e.substr(i)),T(n).bigHour=!0}),U("Hmm",function(e,t,n){var r=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r))}),U("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r,2)),t[Pe]=C(e.substr(i))});function Sd(e){return(e+"").toLowerCase().charAt(0)==="p"}var kd=/[ap]\.?m?\.?/i,bd=pt("Hours",!0);function Ed(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var wi={calendar:uc,longDateFormat:mc,invalidDate:_c,ordinal:wc,dayOfMonthOrdinalParse:Sc,relativeTime:bc,months:Ac,monthsShort:di,week:Zc,weekdays:rd,weekdaysMin:sd,weekdaysShort:gi,meridiemParse:kd},G={},Lt={},Ut;function vd(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 Si(e){return e&&e.toLowerCase().replace("_","-")}function Od(e){for(var t=0,n,r,i,o;t<e.length;){for(o=Si(e[t]).split("-"),n=o.length,r=Si(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=mn(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&vd(o,r)>=n-1)break;n--}t++}return Ut}function Dd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mn(e){var t=null,n;if(G[e]===void 0&&typeof module<"u"&&module&&module.exports&&Dd(e))try{t=Ut._abbr,n=require,n("./locale/"+e),ze(t)}catch{G[e]=null}return G[e]}function ze(e,t){var n;return e&&(ae(t)?n=Ie(e):n=_r(e,t),n?Ut=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ut._abbr}function _r(e,t){if(t!==null){var n,r=wi;if(t.abbr=e,G[e]!=null)ti("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=G[e]._config;else if(t.parentLocale!=null)if(G[t.parentLocale]!=null)r=G[t.parentLocale]._config;else if(n=mn(t.parentLocale),n!=null)r=n._config;else return Lt[t.parentLocale]||(Lt[t.parentLocale]=[]),Lt[t.parentLocale].push({name:e,config:t}),null;return G[e]=new sr(rr(r,t)),Lt[e]&&Lt[e].forEach(function(i){_r(i.name,i.config)}),ze(e),G[e]}else return delete G[e],null}function Nd(e,t){if(t!=null){var n,r,i=wi;G[e]!=null&&G[e].parentLocale!=null?G[e].set(rr(G[e]._config,t)):(r=mn(e),r!=null&&(i=r._config),t=rr(i,t),r==null&&(t.abbr=e),n=new sr(t),n.parentLocale=G[e],G[e]=n),ze(e)}else G[e]!=null&&(G[e].parentLocale!=null?(G[e]=G[e].parentLocale,e===ze()&&ze(e)):G[e]!=null&&delete G[e]);return G[e]}function Ie(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ut;if(!_e(e)){if(t=mn(e),t)return t;e=[e]}return Od(e)}function Td(){return ir(G)}function yr(e){var t,n=e._a;return n&&T(e).overflow===-2&&(t=n[$e]<0||n[$e]>11?$e:n[De]<1||n[De]>hr(n[se],n[$e])?De:n[X]<0||n[X]>24||n[X]===24&&(n[we]!==0||n[Pe]!==0||n[et]!==0)?X:n[we]<0||n[we]>59?we:n[Pe]<0||n[Pe]>59?Pe:n[et]<0||n[et]>999?et:-1,T(e)._overflowDayOfYear&&(t<se||t>De)&&(t=De),T(e)._overflowWeeks&&t===-1&&(t=Rc),T(e)._overflowWeekday&&t===-1&&(t=$c),T(e).overflow=t),e}var Md=/^\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)?)?$/,Vd=/^\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)?/,gn=[["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]],wr=[["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/]],Rd=/^\/?Date\((-?\d+)/i,$d=/^(?:(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}))$/,Pd={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 ki(e){var t,n,r=e._i,i=Md.exec(r)||Vd.exec(r),o,a,l,c,u=gn.length,d=wr.length;if(i){for(T(e).iso=!0,t=0,n=u;t<n;t++)if(gn[t][1].exec(i[1])){a=gn[t][0],o=gn[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=d;t<n;t++)if(wr[t][1].exec(i[3])){l=(i[2]||" ")+wr[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(i[4])if(Cd.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),kr(e)}else e._isValid=!1}function xd(e,t,n,r,i,o){var a=[Id(e),di.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Id(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Bd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ad(e,t,n){if(e){var r=gi.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return T(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Fd(e,t,n){if(e)return Pd[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function bi(e){var t=$d.exec(Bd(e._i)),n;if(t){if(n=xd(t[4],t[3],t[2],t[5],t[6],t[7]),!Ad(t[1],n,e))return;e._a=n,e._tzm=Fd(t[8],t[9],t[10]),e._d=Ft.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function Yd(e){var t=Rd.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ki(e),e._isValid===!1)delete e._isValid;else return;if(bi(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=ue("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 mt(e,t,n){return e??t??n}function Ld(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Sr(e){var t,n,r=[],i,o,a;if(!e._d){for(i=Ld(e),e._w&&e._a[De]==null&&e._a[$e]==null&&Ud(e),e._dayOfYear!=null&&(a=mt(e._a[se],i[se]),(e._dayOfYear>Bt(a)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),n=Ft(a,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[De]=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[X]===24&&e._a[we]===0&&e._a[Pe]===0&&e._a[et]===0&&(e._nextDay=!0,e._a[X]=0),e._d=(e._useUTC?Ft:Kc).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[X]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(T(e).weekdayMismatch=!0)}}function Ud(e){var t,n,r,i,o,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=mt(t.GG,e._a[se],Yt(j(),1,4).year),r=mt(t.W,1),i=mt(t.E,1),(i<1||i>7)&&(c=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Yt(j(),o,a),n=mt(t.gg,e._a[se],u.year),r=mt(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o),r<1||r>xe(n,o,a)?T(e)._overflowWeeks=!0:c!=null?T(e)._overflowWeekday=!0:(l=mi(n,r,i,o,a),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function kr(e){if(e._f===_.ISO_8601){ki(e);return}if(e._f===_.RFC_2822){bi(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,n,r,i,o,a,l=t.length,c=0,u,d;for(i=ni(e._f,e._locale).match(or)||[],d=i.length,n=0;n<d;n++)o=i[n],r=(t.match(Mc(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&T(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ut[o]?(r?T(e).empty=!1:T(e).unusedTokens.push(o),Cc(o,r,e)):e._strict&&!r&&T(e).unusedTokens.push(o);T(e).charsLeftOver=l-c,t.length>0&&T(e).unusedInput.push(t),e._a[X]<=12&&T(e).bigHour===!0&&e._a[X]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[X]=Wd(e._locale,e._a[X],e._meridiem),u=T(e).era,u!==null&&(e._a[se]=e._locale.erasConvertYear(u,e._a[se])),Sr(e),yr(e)}function Wd(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 jd(e){var t,n,r,i,o,a,l=!1,c=e._f.length;if(c===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)o=0,a=!1,t=nr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],kr(t),er(t)&&(a=!0),o+=T(t).charsLeftOver,o+=T(t).unusedTokens.length*10,T(t).score=o,l?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(l=!0));Ge(e,n||t)}function Hd(e){if(!e._d){var t=lr(e._i),n=t.day===void 0?t.date:t.day;e._a=Js([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Sr(e)}}function Gd(e){var t=new Pt(yr(Ei(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ei(e){var t=e._i,n=e._f;return e._locale=e._locale||Ie(e._l),t===null||n===void 0&&t===""?rn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ye(t)?new Pt(yr(t)):($t(t)?e._d=t:_e(n)?jd(e):n?kr(e):zd(e),er(e)||(e._d=null),e))}function zd(e){var t=e._i;ae(t)?e._d=new Date(_.now()):$t(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Yd(e):_e(t)?(e._a=Js(t.slice(0),function(n){return parseInt(n,10)}),Sr(e)):Xe(t)?Hd(e):Ce(t)?e._d=new Date(t):_.createFromInputFallback(e)}function vi(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Xe(e)&&Qn(e)||_e(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Gd(o)}function j(e,t,n,r){return vi(e,t,n,r,!1)}var Kd=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=j.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:rn()}),qd=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=j.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:rn()});function Oi(e,t){var n,r;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return j();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Zd(){var e=[].slice.call(arguments,0);return Oi("isBefore",e)}function Jd(){var e=[].slice.call(arguments,0);return Oi("isAfter",e)}var Qd=function(){return Date.now?Date.now():+new Date},Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Xd(e){var t,n=!1,r,i=Wt.length;for(t in e)if(A(e,t)&&!(Z.call(Wt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Wt[r]]){if(n)return!1;parseFloat(e[Wt[r]])!==C(e[Wt[r]])&&(n=!0)}return!0}function eu(){return this._isValid}function tu(){return Se(NaN)}function _n(e){var t=lr(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=Xd(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=Ie(),this._bubble()}function yn(e){return e instanceof _n}function br(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function nu(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&C(e[a])!==C(t[a]))&&o++;return o+i}function Di(e,t){v(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Oe(~~(n/60),2)+t+Oe(~~n%60,2)})}Di("Z",":"),Di("ZZ",""),w("Z",un),w("ZZ",un),U(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Er(un,e)});var ru=/([\+\-]|\d\d)/gi;function Er(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(ru)||["-",0,0],o=+(i[1]*60)+C(i[2]),o===0?0:i[0]==="+"?o:-o)}function vr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ye(e)||$t(e)?e.valueOf():j(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):j(e).local()}function Or(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function su(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=Er(un,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Or(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Vi(this,Se(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Or(this)}function iu(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ou(e){return this.utcOffset(0,e)}function au(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Or(this),"m")),this}function lu(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Er(Nc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function cu(e){return this.isValid()?(e=e?j(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function du(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uu(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return nr(e,this),e=Ei(e),e._a?(t=e._isUTC?Ee(e._a):j(e._a),this._isDSTShifted=this.isValid()&&nu(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function fu(){return this.isValid()?!this._isUTC:!1}function hu(){return this.isValid()?this._isUTC:!1}function Ni(){return this.isValid()?this._isUTC&&this._offset===0:!1}var pu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mu=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Se(e,t){var n=e,r=null,i,o,a;return yn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ce(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=pu.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:C(r[De])*i,h:C(r[X])*i,m:C(r[we])*i,s:C(r[Pe])*i,ms:C(br(r[et]*1e3))*i}):(r=mu.exec(e))?(i=r[1]==="-"?-1:1,n={y:tt(r[2],i),M:tt(r[3],i),w:tt(r[4],i),d:tt(r[5],i),h:tt(r[6],i),m:tt(r[7],i),s:tt(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=gu(j(n.from),j(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new _n(n),yn(e)&&A(e,"_locale")&&(o._locale=e._locale),yn(e)&&A(e,"_isValid")&&(o._isValid=e._isValid),o}Se.fn=_n.prototype,Se.invalid=tu;function tt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ti(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 gu(e,t){var n;return e.isValid()&&t.isValid()?(t=vr(t,e),e.isBefore(t)?n=Ti(e,t):(n=Ti(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Mi(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(ti(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."),o=n,n=r,r=o),i=Se(n,r),Vi(this,i,e),this}}function Vi(e,t,n,r){var i=t._milliseconds,o=br(t._days),a=br(t._months);e.isValid()&&(r=r??!0,a&&fi(e,At(e,"Month")+a*n),o&&ci(e,"Date",At(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&_.updateOffset(e,o||a))}var _u=Mi(1,"add"),yu=Mi(-1,"subtract");function Ci(e){return typeof e=="string"||e instanceof String}function wu(e){return ye(e)||$t(e)||Ci(e)||Ce(e)||ku(e)||Su(e)||e===null||e===void 0}function Su(e){var t=Xe(e)&&!Qn(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,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||A(e,o);return t&&n}function ku(e){var t=_e(e),n=!1;return t&&(n=e.filter(function(r){return!Ce(r)&&Ci(e)}).length===0),t&&n}function bu(e){var t=Xe(e)&&!Qn(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||A(e,o);return t&&n}function Eu(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 vu(e,t){arguments.length===1&&(arguments[0]?wu(arguments[0])?(e=arguments[0],t=void 0):bu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||j(),r=vr(n,this).startOf("day"),i=_.calendarFormat(this,r)||"sameElse",o=t&&(ve(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,j(n)))}function Ou(){return new Pt(this)}function Du(e,t){var n=ye(e)?e:j(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Nu(e,t){var n=ye(e)?e:j(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Tu(e,t,n,r){var i=ye(e)?e:j(e),o=ye(t)?t:j(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function Mu(e,t){var n=ye(e)?e:j(e),r;return this.isValid()&&n.isValid()?(t=fe(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 Vu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Cu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ru(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=vr(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=fe(t),t){case"year":o=wn(this,r)/12;break;case"month":o=wn(this,r);break;case"quarter":o=wn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:he(o)}function wn(e,t){if(e.date()<t.date())return-wn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function $u(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Pu(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?on(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ve(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",on(n,"Z")):on(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;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",o=t+'[")]',this.format(n+r+i+o)}function Iu(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=on(this,e);return this.localeData().postformat(t)}function Bu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||j(e).isValid())?Se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Au(e){return this.from(j(),e)}function Fu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||j(e).isValid())?Se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Yu(e){return this.to(j(),e)}function Ri(e){var t;return e===void 0?this._locale._abbr:(t=Ie(e),t!=null&&(this._locale=t),this)}var $i=ue("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 Pi(){return this._locale}var Sn=1e3,gt=60*Sn,kn=60*gt,xi=(365*400+97)*24*kn;function _t(e,t){return(e%t+t)%t}function Ii(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xi:new Date(e,t,n).valueOf()}function Bi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xi:Date.UTC(e,t,n)}function Lu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Bi:Ii,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-=_t(t+(this._isUTC?0:this.utcOffset()*gt),kn);break;case"minute":t=this._d.valueOf(),t-=_t(t,gt);break;case"second":t=this._d.valueOf(),t-=_t(t,Sn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Uu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Bi:Ii,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+=kn-_t(t+(this._isUTC?0:this.utcOffset()*gt),kn)-1;break;case"minute":t=this._d.valueOf(),t+=gt-_t(t,gt)-1;break;case"second":t=this._d.valueOf(),t+=Sn-_t(t,Sn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Wu(){return this._d.valueOf()-(this._offset||0)*6e4}function ju(){return Math.floor(this.valueOf()/1e3)}function Hu(){return new Date(this.valueOf())}function Gu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zu(){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 Ku(){return this.isValid()?this.toISOString():null}function qu(){return er(this)}function Zu(){return Ge({},T(this))}function Ju(){return T(this).overflow}function Qu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}v("N",0,0,"eraAbbr"),v("NN",0,0,"eraAbbr"),v("NNN",0,0,"eraAbbr"),v("NNNN",0,0,"eraName"),v("NNNNN",0,0,"eraNarrow"),v("y",["y",1],"yo","eraYear"),v("y",["yy",2],0,"eraYear"),v("y",["yyy",3],0,"eraYear"),v("y",["yyyy",4],0,"eraYear"),w("N",Dr),w("NN",Dr),w("NNN",Dr),w("NNNN",df),w("NNNNN",uf),U(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?T(n).era=i:T(n).invalidEra=e}),w("y",ft),w("yy",ft),w("yyy",ft),w("yyyy",ft),w("yo",ff),U(["y","yy","yyy","yyyy"],se),U(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[se]=n._locale.eraYearOrdinalParse(e,i):t[se]=parseInt(e,10)});function Xu(e,t){var n,r,i,o=this._eras||Ie("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=_(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=_(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function ef(e,t,n){var r,i,o=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),l=o[r].abbr.toUpperCase(),c=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(c===e)return o[r];break}else if([a,l,c].indexOf(e)>=0)return o[r]}function tf(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function nf(){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 rf(){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 sf(){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 of(){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()-_(i[e].since).year())*n+i[e].offset;return this.year()}function af(e){return A(this,"_erasNameRegex")||Nr.call(this),e?this._erasNameRegex:this._erasRegex}function lf(e){return A(this,"_erasAbbrRegex")||Nr.call(this),e?this._erasAbbrRegex:this._erasRegex}function cf(e){return A(this,"_erasNarrowRegex")||Nr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dr(e,t){return t.erasAbbrRegex(e)}function df(e,t){return t.erasNameRegex(e)}function uf(e,t){return t.erasNarrowRegex(e)}function ff(e,t){return t._eraYearOrdinalRegex||ft}function Nr(){var e=[],t=[],n=[],r=[],i,o,a,l,c,u=this.eras();for(i=0,o=u.length;i<o;++i)a=Re(u[i].name),l=Re(u[i].abbr),c=Re(u[i].narrow),t.push(a),e.push(l),n.push(c),r.push(a),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")}v(0,["gg",2],0,function(){return this.weekYear()%100}),v(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bn(e,t){v(0,[e,e.length],0,t)}bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),w("G",dn),w("g",dn),w("GG",W,ce),w("gg",W,ce),w("GGGG",dr,cr),w("gggg",dr,cr),w("GGGGG",cn,an),w("ggggg",cn,an),It(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=C(e)}),It(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function hf(e){return Ai.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function pf(e){return Ai.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function mf(){return xe(this.year(),1,4)}function gf(){return xe(this.isoWeekYear(),1,4)}function _f(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function yf(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function Ai(e,t,n,r,i){var o;return e==null?Yt(this,r,i).year:(o=xe(e,r,i),t>o&&(t=o),wf.call(this,e,t,n,r,i))}function wf(e,t,n,r,i){var o=mi(e,t,n,r,i),a=Ft(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}v("Q",0,"Qo","quarter"),w("Q",si),U("Q",function(e,t){t[$e]=(C(e)-1)*3});function Sf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}v("D",["DD",2],"Do","date"),w("D",W,ht),w("DD",W,ce),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),U(["D","DD"],De),U("Do",function(e,t){t[De]=C(e.match(W)[0])});var Fi=pt("Date",!0);v("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",ln),w("DDDD",ii),U(["DDD","DDDD"],function(e,t,n){n._dayOfYear=C(e)});function kf(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}v("m",["mm",2],0,"minute"),w("m",W,ur),w("mm",W,ce),U(["m","mm"],we);var bf=pt("Minutes",!1);v("s",["ss",2],0,"second"),w("s",W,ur),w("ss",W,ce),U(["s","ss"],Pe);var Ef=pt("Seconds",!1);v("S",0,0,function(){return~~(this.millisecond()/100)}),v(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),v(0,["SSS",3],0,"millisecond"),v(0,["SSSS",4],0,function(){return this.millisecond()*10}),v(0,["SSSSS",5],0,function(){return this.millisecond()*100}),v(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),v(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),v(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),v(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",ln,si),w("SS",ln,ce),w("SSS",ln,ii);var Ke,Yi;for(Ke="SSSS";Ke.length<=9;Ke+="S")w(Ke,ft);function vf(e,t){t[et]=C(("0."+e)*1e3)}for(Ke="S";Ke.length<=9;Ke+="S")U(Ke,vf);Yi=pt("Milliseconds",!1),v("z",0,0,"zoneAbbr"),v("zz",0,0,"zoneName");function Of(){return this._isUTC?"UTC":""}function Df(){return this._isUTC?"Coordinated Universal Time":""}var m=Pt.prototype;m.add=_u,m.calendar=vu,m.clone=Ou,m.diff=Ru,m.endOf=Uu,m.format=Iu,m.from=Bu,m.fromNow=Au,m.to=Fu,m.toNow=Yu,m.get=xc,m.invalidAt=Ju,m.isAfter=Du,m.isBefore=Nu,m.isBetween=Tu,m.isSame=Mu,m.isSameOrAfter=Vu,m.isSameOrBefore=Cu,m.isValid=qu,m.lang=$i,m.locale=Ri,m.localeData=Pi,m.max=qd,m.min=Kd,m.parsingFlags=Zu,m.set=Ic,m.startOf=Lu,m.subtract=yu,m.toArray=Gu,m.toObject=zu,m.toDate=Hu,m.toISOString=Pu,m.inspect=xu,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=Ku,m.toString=$u,m.unix=ju,m.valueOf=Wu,m.creationData=Qu,m.eraName=nf,m.eraNarrow=rf,m.eraAbbr=sf,m.eraYear=of,m.year=li,m.isLeapYear=Pc,m.weekYear=hf,m.isoWeekYear=pf,m.quarter=m.quarters=Sf,m.month=hi,m.daysInMonth=Hc,m.week=m.weeks=Xc,m.isoWeek=m.isoWeeks=ed,m.weeksInYear=_f,m.weeksInWeekYear=yf,m.isoWeeksInYear=mf,m.isoWeeksInISOWeekYear=gf,m.date=Fi,m.day=m.days=hd,m.weekday=pd,m.isoWeekday=md,m.dayOfYear=kf,m.hour=m.hours=bd,m.minute=m.minutes=bf,m.second=m.seconds=Ef,m.millisecond=m.milliseconds=Yi,m.utcOffset=su,m.utc=ou,m.local=au,m.parseZone=lu,m.hasAlignedHourOffset=cu,m.isDST=du,m.isLocal=fu,m.isUtcOffset=hu,m.isUtc=Ni,m.isUTC=Ni,m.zoneAbbr=Of,m.zoneName=Df,m.dates=ue("dates accessor is deprecated. Use date instead.",Fi),m.months=ue("months accessor is deprecated. Use month instead",hi),m.years=ue("years accessor is deprecated. Use year instead",li),m.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",iu),m.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uu);function Nf(e){return j(e*1e3)}function Tf(){return j.apply(null,arguments).parseZone()}function Li(e){return e}var F=sr.prototype;F.calendar=fc,F.longDateFormat=gc,F.invalidDate=yc,F.ordinal=kc,F.preparse=Li,F.postformat=Li,F.relativeTime=Ec,F.pastFuture=vc,F.set=dc,F.eras=Xu,F.erasParse=ef,F.erasConvertYear=tf,F.erasAbbrRegex=lf,F.erasNameRegex=af,F.erasNarrowRegex=cf,F.months=Lc,F.monthsShort=Uc,F.monthsParse=jc,F.monthsRegex=zc,F.monthsShortRegex=Gc,F.week=qc,F.firstDayOfYear=Qc,F.firstDayOfWeek=Jc,F.weekdays=ld,F.weekdaysMin=dd,F.weekdaysShort=cd,F.weekdaysParse=fd,F.weekdaysRegex=gd,F.weekdaysShortRegex=_d,F.weekdaysMinRegex=yd,F.isPM=Sd,F.meridiem=Ed;function En(e,t,n,r){var i=Ie(),o=Ee().set(r,t);return i[n](o,e)}function Ui(e,t,n){if(Ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return En(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=En(e,r,n,"month");return i}function Tr(e,t,n,r){typeof e=="boolean"?(Ce(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ce(t)&&(n=t,t=void 0),t=t||"");var i=Ie(),o=e?i._week.dow:0,a,l=[];if(n!=null)return En(t,(n+o)%7,r,"day");for(a=0;a<7;a++)l[a]=En(t,(a+o)%7,r,"day");return l}function Mf(e,t){return Ui(e,t,"months")}function Vf(e,t){return Ui(e,t,"monthsShort")}function Cf(e,t,n){return Tr(e,t,n,"weekdays")}function Rf(e,t,n){return Tr(e,t,n,"weekdaysShort")}function $f(e,t,n){return Tr(e,t,n,"weekdaysMin")}ze("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=C(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=ue("moment.lang is deprecated. Use moment.locale instead.",ze),_.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Be=Math.abs;function Pf(){var e=this._data;return this._milliseconds=Be(this._milliseconds),this._days=Be(this._days),this._months=Be(this._months),e.milliseconds=Be(e.milliseconds),e.seconds=Be(e.seconds),e.minutes=Be(e.minutes),e.hours=Be(e.hours),e.months=Be(e.months),e.years=Be(e.years),this}function Wi(e,t,n,r){var i=Se(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function xf(e,t){return Wi(this,e,t,1)}function If(e,t){return Wi(this,e,t,-1)}function ji(e){return e<0?Math.floor(e):Math.ceil(e)}function Bf(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ji(Mr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=he(e/1e3),r.seconds=i%60,o=he(i/60),r.minutes=o%60,a=he(o/60),r.hours=a%24,t+=he(a/24),c=he(Hi(t)),n+=c,t-=ji(Mr(c)),l=he(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Hi(e){return e*4800/146097}function Mr(e){return e*146097/4800}function Af(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Hi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mr(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 Ae(e){return function(){return this.as(e)}}var Gi=Ae("ms"),Ff=Ae("s"),Yf=Ae("m"),Lf=Ae("h"),Uf=Ae("d"),Wf=Ae("w"),jf=Ae("M"),Hf=Ae("Q"),Gf=Ae("y"),zf=Gi;function Kf(){return Se(this)}function qf(e){return e=fe(e),this.isValid()?this[e+"s"]():NaN}function nt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zf=nt("milliseconds"),Jf=nt("seconds"),Qf=nt("minutes"),Xf=nt("hours"),eh=nt("days"),th=nt("months"),nh=nt("years");function rh(){return he(this.days()/7)}var Fe=Math.round,yt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sh(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ih(e,t,n,r){var i=Se(e).abs(),o=Fe(i.as("s")),a=Fe(i.as("m")),l=Fe(i.as("h")),c=Fe(i.as("d")),u=Fe(i.as("M")),d=Fe(i.as("w")),h=Fe(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(f=f||d<=1&&["w"]||d<n.w&&["ww",d]),f=f||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h],f[2]=t,f[3]=+e>0,f[4]=r,sh.apply(null,f)}function oh(e){return e===void 0?Fe:typeof e=="function"?(Fe=e,!0):!1}function ah(e,t){return yt[e]===void 0?!1:t===void 0?yt[e]:(yt[e]=t,e==="s"&&(yt.ss=t-1),!0)}function lh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=yt,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},yt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=ih(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Vr=Math.abs;function wt(e){return(e>0)-(e<0)||+e}function vn(){if(!this.isValid())return this.localeData().invalidDate();var e=Vr(this._milliseconds)/1e3,t=Vr(this._days),n=Vr(this._months),r,i,o,a,l=this.asSeconds(),c,u,d,h;return l?(r=he(e/60),i=he(r/60),e%=60,r%=60,o=he(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=wt(this._months)!==wt(l)?"-":"",d=wt(this._days)!==wt(l)?"-":"",h=wt(this._milliseconds)!==wt(l)?"-":"",c+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?h+i+"H":"")+(r?h+r+"M":"")+(e?h+a+"S":"")):"P0D"}var x=_n.prototype;x.isValid=eu,x.abs=Pf,x.add=xf,x.subtract=If,x.as=Af,x.asMilliseconds=Gi,x.asSeconds=Ff,x.asMinutes=Yf,x.asHours=Lf,x.asDays=Uf,x.asWeeks=Wf,x.asMonths=jf,x.asQuarters=Hf,x.asYears=Gf,x.valueOf=zf,x._bubble=Bf,x.clone=Kf,x.get=qf,x.milliseconds=Zf,x.seconds=Jf,x.minutes=Qf,x.hours=Xf,x.days=eh,x.weeks=rh,x.months=th,x.years=nh,x.humanize=lh,x.toISOString=vn,x.toString=vn,x.toJSON=vn,x.locale=Ri,x.localeData=Pi,x.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vn),x.lang=$i,v("X",0,0,"unix"),v("x",0,0,"valueOf"),w("x",dn),w("X",Tc),U("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),U("x",function(e,t,n){n._d=new Date(C(e))});//! moment.js
|
|
45
|
-
_.version="2.30.1",lc(j),_.fn=m,_.min=Zd,_.max=Jd,_.now=Qd,_.utc=Ee,_.unix=Nf,_.months=Mf,_.isDate=$t,_.locale=ze,_.invalid=rn,_.duration=Se,_.isMoment=ye,_.weekdays=Cf,_.parseZone=Tf,_.localeData=Ie,_.isDuration=yn,_.monthsShort=Vf,_.weekdaysMin=$f,_.defineLocale=_r,_.updateLocale=Nd,_.locales=Td,_.weekdaysShort=Rf,_.normalizeUnits=fe,_.relativeTimeRounding=oh,_.relativeTimeThreshold=ah,_.calendarFormat=Eu,_.prototype=m,_.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 ch=["title"],Cr=s.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=s.computed(()=>t.fieldValuePair.value),r=s.computed(()=>t.fieldValuePair.field),i=s.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=_(o).format("dddd, D MMMM YYYY")),o});return(o,a)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[o.link?(s.openBlock(),s.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(i.value),1)]),_:1},8,["to"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],8,ch)}}}),dh={key:0,class:"cape-error cape-value-error"},uh={key:1,class:"cape-value"},fh={key:0,class:"cape-value-null"},hh={key:0,class:"cape-value-multiple"},zi=s.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),i=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,a)=>!o.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",dh," [Error: field value pair does not exist!] ")):!o.hideIfEmpty||!i.value?(s.openBlock(),s.createElementBlock("div",uh,[i.value?(s.openBlock(),s.createElementBlock("div",fh,"undefined")):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(s.openBlock(),s.createElementBlock("ol",hh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c},[s.createVNode(Cr,{"field-value-pair":{field:r.value,value:l},link:o.link},null,8,["field-value-pair","link"])]))),128))])):(s.openBlock(),s.createBlock(Cr,{key:1,"field-value-pair":o.fieldValue,link:o.link},null,8,["field-value-pair","link"]))],2))])):s.createCommentVNode("",!0)}}),ph={key:0,class:"cape-labelled-value"},mh={key:0,class:"cape-error cape-labelled-value-error"},gh=["title"],_h={key:1,class:"cape-labelled-value-label"},yh=s.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),i=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,a)=>!o.hideIfEmpty||!i.value?(s.openBlock(),s.createElementBlock("div",ph,[!o.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",mh," [Error, trying to render non-existent field] ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(s.openBlock(),s.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},s.toDisplayString(r.value.label),9,gh)):(s.openBlock(),s.createElementBlock("div",_h,s.toDisplayString(r.value.label),1)),s.createVNode(zi,{link:o.link,"field-value":o.fieldValue},null,8,["link","field-value"])],64))])):s.createCommentVNode("",!0)}}),wh={class:"cape-filter-label"},Sh=["for"],kh={class:"cape-filter-mode"},bh=[s.createElementVNode("option",{value:"contains"},"contains",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Eh={class:"cape-filter-term"},vh=["id","placeholder"],Oh=["id","placeholder"],Dh=s.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",wh,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Sh)]),s.createElementVNode("div",kh,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},bh,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Eh,[r.value.mode==="contains"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.term=l),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,vh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.term=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Oh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0)])],64))}}),Nh={class:"cape-filter-label"},Th=["for"],Mh={class:"cape-filter-wide-term"},Vh=["id","placeholder"],Ch=s.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId));return(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Nh,[s.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,Th)]),s.createElementVNode("div",Mh,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":o[0]||(o[0]=a=>r.value.term=a),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,Vh),[[s.vModelText,r.value.term]])])],64))}}),Rh={class:"cape-filter-field-enum-one-of-checkbox"},$h=["id","value"],Ph=["for"],xh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock("ul",Rh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[0]||(a[0]=c=>s.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,$h),[[s.vModelCheckbox,s.unref(r).oneOfTerms]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,Ph)]))),128))]))}});function Rr(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Ih(e){return(...t)=>!e(...t)}function Bh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function Ki(e,t,n,r){return t?e.filter(i=>Bh(r(i,n),t)).sort((i,o)=>r(i,n).length-r(o,n).length):e}function Ah(e){return e.filter(t=>!t.$isLabel)}function $r(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,[])}function Fh(e,t,n,r,i){return o=>o.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Ki(a[n],e,t,i);return l.length?{[r]:a[r],[n]:l}:[]})}const qi=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Yh={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 Rr(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}},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):Ki(n,t,this.label,this.customLabel):n=this.groupValues?$r(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Ih(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 qi(Fh(t,n,this.groupValues,this.groupLabel,this.customLabel),$r(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return qi($r(this.groupValues,this.groupLabel),Ah)(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(Rr(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Rr(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.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let 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))}}},Lh={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}}},Zi={name:"vue-multiselect",mixins:[Yh,Lh],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},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},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)}}};const Uh={ref:"tags",class:"multiselect__tags"},Wh={class:"multiselect__tags-wrap"},jh={class:"multiselect__spinner"},Hh={key:0},Gh={class:"multiselect__option"},zh={class:"multiselect__option"},Kh=s.createTextVNode("No elements found. Consider changing the search query."),qh={class:"multiselect__option"},Zh=s.createTextVNode("List is empty.");function Jh(e,t,n,r,i,o){return s.openBlock(),s.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":o.isAbove,"multiselect--has-options-group":o.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=a=>e.activate()),onBlur:t[15]||(t[15]=a=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=s.withKeys(a=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[s.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[s.createVNode("div",{onMousedown:t[1]||(t[1]=s.withModifiers(a=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),s.renderSlot(e.$slots,"clear",{search:e.search}),s.createVNode("div",Uh,[s.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:o.visibleValues,isOpen:e.isOpen},()=>[s.withDirectives(s.createVNode("div",Wh,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.visibleValues,(a,l)=>s.renderSlot(e.$slots,"tag",{option:a,search:e.search,remove:e.removeElement},()=>[(s.openBlock(),s.createBlock("span",{class:"multiselect__tag",key:l},[s.createVNode("span",{textContent:s.toDisplayString(e.getOptionLabel(a))},null,8,["textContent"]),s.createVNode("i",{tabindex:"1",onKeypress:s.withKeys(s.withModifiers(c=>e.removeElement(a),["prevent"]),["enter"]),onMousedown:s.withModifiers(c=>e.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[s.vShow,o.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?s.renderSlot(e.$slots,"limit",{key:0},()=>[s.createVNode("strong",{class:"multiselect__strong",textContent:s.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):s.createCommentVNode("v-if",!0)]),s.createVNode(s.Transition,{name:"multiselect__loading"},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"loading",{},()=>[s.withDirectives(s.createVNode("div",jh,null,512),[[s.vShow,n.loading]])])]),_:3}),e.searchable?(s.openBlock(),s.createBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:o.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=a=>e.updateSearch(a.target.value)),onFocus:t[3]||(t[3]=s.withModifiers(a=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=s.withModifiers(a=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=s.withKeys(a=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=s.withKeys(s.withModifiers(a=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):s.createCommentVNode("v-if",!0),o.isSingleLabelVisible?(s.openBlock(),s.createBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"singleLabel",{option:o.singleValue},()=>[s.createTextVNode(s.toDisplayString(e.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),o.isPlaceholderVisible?(s.openBlock(),s.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"placeholder",{},()=>[s.createTextVNode(s.toDisplayString(e.placeholder),1)])],32)):s.createCommentVNode("v-if",!0)],512),s.createVNode(s.Transition,{name:"multiselect"},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...a)=>e.activate&&e.activate(...a)),tabindex:"-1",onMousedown:t[13]||(t[13]=s.withModifiers(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[s.createVNode("ul",{class:"multiselect__content",style:o.contentStyle,role:"listbox",id:"listbox-"+e.id},[s.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(s.openBlock(),s.createBlock("li",Hh,[s.createVNode("span",Gh,[s.renderSlot(e.$slots,"maxElements",{},()=>[s.createTextVNode("Maximum of "+s.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):s.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(e.filteredOptions,(a,l)=>(s.openBlock(),s.createBlock("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock("span",{key:0,class:[e.optionHighlight(l,a),"multiselect__option"],onClick:s.withModifiers(c=>e.select(a),["stop"]),onMouseenter:s.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":a&&a.isTag?e.tagPlaceholder:o.selectLabelText,"data-selected":o.selectedLabelText,"data-deselect":o.deselectLabelText},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(s.openBlock(),s.createBlock("span",{key:1,"data-select":e.groupSelect&&o.selectGroupLabelText,"data-deselect":e.groupSelect&&o.deselectGroupLabelText,class:[e.groupHighlight(l,a),"multiselect__option"],onMouseenter:s.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:s.withModifiers(c=>e.selectGroup(a),["prevent"])},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):s.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):s.createCommentVNode("v-if",!0),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",zh,[s.renderSlot(e.$slots,"noResult",{search:e.search},()=>[Kh])])],512),[[s.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",qh,[s.renderSlot(e.$slots,"noOptions",{},()=>[Zh])])],512),[[s.vShow,n.showNoOptions&&(e.options.length===0||o.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),s.renderSlot(e.$slots,"afterList")],12,["id"])],36),[[s.vShow,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}Zi.render=Jh;const Qh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createBlock(s.unref(Zi),{id:"filter-multiselect-"+s.unref(i).id,modelValue:s.unref(r).oneOfTerms,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:s.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),Xh=["aria-label"],ep=s.createElementVNode("option",{key:"",value:""},null,-1),tp=["value"],np=s.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),"aria-label":"Select "+s.unref(i).label+" value."},[ep,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("option",{key:l,value:l},s.toDisplayString(l),9,tp))),128))],8,Xh)),[[s.vModelSelect,s.unref(r).isTerm]])}}),rp={class:"cape-filter-field-enum-is-radio"},sp={class:"form-check form-check-inline"},ip=["id"],op=["for"],ap=[s.createElementVNode("em",null,"any",-1)],lp=["id","value"],cp=["for"],dp=s.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock("ul",rp,[s.createElementVNode("li",sp,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),type:"radio",value:""},null,8,ip),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"},ap,8,op)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[1]||(a[1]=c=>s.unref(r).isTerm=c),value:l,type:"radio"},null,8,lp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,cp)]))),128))]))}}),up={class:"cape-filter-label"},fp=["for"],hp={class:"cape-filter-mode"},pp=[s.createElementVNode("option",{value:"oneOf"},"is one of",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],mp={class:"cape-filter-term"},gp=s.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",up,[s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id,"data-test":"filter-label"},s.toDisplayString(s.unref(r).field.label),9,fp)]),s.createElementVNode("div",hp,[s.unref(r).field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},pp,512)),[[s.vModelSelect,s.unref(r).mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",mp,[s.unref(r).mode==="oneOf"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.unref(i).filterInputStyleOnOneOf==="checkbox"?(s.openBlock(),s.createBlock(xh,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(Qh,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0),s.unref(r).mode==="is"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(i).filterInputStyleOnIs==="select"?(s.openBlock(),s.createBlock(np,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(dp,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0)])],64))}}),_p={class:"cape-filter-label"},yp=["for"],wp={class:"cape-filter-mode"},Sp=[s.createElementVNode("option",{value:"between"},"between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],kp={class:"cape-filter-term"},bp=["id","placeholder","min","max","step"],Ep=s.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),vp=["id","placeholder","min","max","step"],Op=["id","placeholder","min","max","step"],Dp=s.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",_p,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,yp)]),s.createElementVNode("div",wp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Sp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",kp,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[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,bp),[[s.vModelText,r.value.lowerBoundTerm]]),Ep,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[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,vp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[3]||(a[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,Op)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Np={class:"cape-filter-label"},Tp=["for"],Mp={class:"cape-filter-mode"},Vp=[s.createElementVNode("option",{value:"between"},"between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Cp={class:"cape-filter-term"},Rp=["id","placeholder"],$p=s.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),Pp=["id","placeholder"],xp=["id","placeholder"],Ip=s.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Np,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Tp)]),s.createElementVNode("div",Mp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select"},Vp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Cp,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[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,Rp),[[s.vModelText,r.value.lowerBoundTerm]]),$p,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[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,Pp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,xp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Ji={install:function(e,t){e.use(sl),e.use(Ha()),e.provide("capeOptions",t),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",Hs),e.component("CapeAdvancedSearchToggle",Tl),e.component("CapeFilters",Vl),e.component("CapeFormResetButton",Cl),e.component("CapeHeader",Gs),e.component("CapeHomePage",Bs),e.component("CapeHomepageLayout",Is),e.component("CapeLoadError",Ls),e.component("CapeLoading",zs),e.component("CapeNavigation",Ys),e.component("CapeNonProdWarning",jl),e.component("CapeRecordCount",Nl),e.component("CapeRecordCard",As),e.component("CapeRecordPage",Fs),e.component("CapeResults",ac),e.component("CapeSummaryCard",Ks),e.component("CapeLabelledValue",yh),e.component("CapeValue",zi),e.component("CapeSingleValue",Cr),e.component("CapeFilterFieldText",Dh),e.component("CapeFilterFieldEnum",gp),e.component("CapeFilterFreeText",Ch),e.component("CapeFilterFieldInteger",Dp),e.component("CapeFilterFieldDate",Ip),e.component("CapeSortOrder",qs),e.component("CapeResultsControls",Jn),t.additionalComponents!==void 0&&Object.keys(t.additionalComponents).forEach(n=>{t.additionalComponents!==void 0&&e.component(n,t.additionalComponents[n])})}},Bp={template:"#templateCapeFooter"},Ap=s.defineComponent({__name:"App",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Gs),(s.openBlock(),s.createBlock(s.Suspense,null,{default:s.withCtx(()=>[s.createVNode(Hs)]),fallback:s.withCtx(()=>[s.createVNode(zs)]),_:1})),s.createVNode(Bp)],64))}}),Fp=e=>{const t=s.createApp(Ap);return t.use(Ji,e),t};J.CapePlugin=Ji,J.Filter=qn,J.createCapeApp=Fp,J.useDatasetStore=Ct,J.useFieldStore=en,J.useFilterStore=K,J.usePropertyStore=Kn,J.useSearchResultsStore=He,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|
|
44
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var io={};function ao(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),io[e]||(oo(t),io[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function ve(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function mc(e){var t,n;for(n in e)B(e,n)&&(t=e[n],ve(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 sr(e,t){var n=ze({},e),r;for(r in t)B(t,r)&&(et(e[r])&&et(t[r])?(n[r]={},ze(n[r],e[r]),ze(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)B(e,r)&&!B(t,r)&&et(e[r])&&(n[r]=ze({},n[r]));return n}function or(e){e!=null&&this.set(e)}var ir;Object.keys?ir=Object.keys:ir=function(e){var t,n=[];for(t in e)B(e,t)&&n.push(t);return n};var gc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function _c(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ve(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var ar=/(\[[^\[]*\])|(\\)?([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,on=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,lr={},ht={};function E(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(ht[e]=o),t&&(ht[t[0]]=function(){return Oe(o.apply(this,arguments),t[1],t[2])}),n&&(ht[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function yc(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function wc(e){var t=e.match(ar),n,r;for(n=0,r=t.length;n<r;n++)ht[t[n]]?t[n]=ht[t[n]]:t[n]=yc(t[n]);return function(o){var i="",a;for(a=0;a<r;a++)i+=ve(t[a])?t[a].call(o,e):t[a];return i}}function an(e,t){return e.isValid()?(t=lo(t,e.localeData()),lr[t]=lr[t]||wc(t),lr[t](e)):e.localeData().invalidDate()}function lo(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(on.lastIndex=0;n>=0&&on.test(e);)e=e.replace(on,r),on.lastIndex=0,n-=1;return e}var Sc={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 kc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ar).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var bc="Invalid date";function Ec(){return this._invalidDate}var vc="%d",Oc=/\d{1,2}/;function Dc(e){return this._ordinal.replace("%d",e)}var Nc={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 Tc(e,t,n,r){var o=this._relativeTime[n];return ve(o)?o(e,t,n,r):o.replace(/%d/i,e)}function Mc(e,t){var n=this._relativeTime[e>0?"future":"past"];return ve(n)?n(t):n.replace(/%s/i,t)}var co={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 fe(e){return typeof e=="string"?co[e]||co[e.toLowerCase()]:void 0}function cr(e){var t={},n,r;for(r in e)B(e,r)&&(n=fe(r),n&&(t[n]=e[r]));return t}var Vc={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 Cc(e){var t=[],n;for(n in e)B(e,n)&&t.push({unit:n,priority:Vc[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var uo=/\d/,ce=/\d\d/,fo=/\d{3}/,dr=/\d{4}/,ln=/[+-]?\d{6}/,j=/\d\d?/,ho=/\d\d\d\d?/,po=/\d\d\d\d\d\d?/,cn=/\d{1,3}/,ur=/\d{1,4}/,dn=/[+-]?\d{1,6}/,pt=/\d+/,un=/[+-]?\d+/,Rc=/Z|[+-]\d\d:?\d\d/gi,fn=/Z|[+-]\d\d(?::?\d\d)?/gi,$c=/[+-]?\d+(\.\d{1,3})?/,At=/[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,mt=/^[1-9]\d?/,fr=/^([1-9]\d|\d)/,hn;hn={};function w(e,t,n){hn[e]=ve(t)?t:function(r,o){return r&&n?n:t}}function Pc(e,t){return B(hn,e)?hn[e](t._strict,t._locale):new RegExp(xc(e))}function xc(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=he(t)),n}var hr={};function L(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Ce(t)&&(r=function(i,a){a[t]=C(i)}),o=e.length,n=0;n<o;n++)hr[e[n]]=r}function Ft(e,t){L(e,function(n,r,o,i){o._w=o._w||{},t(n,o._w,o,i)})}function Ic(e,t,n){t!=null&&B(hr,e)&&hr[e](t,n._a,n,e)}function pn(e){return e%4===0&&e%100!==0||e%400===0}var se=0,$e=1,De=2,X=3,we=4,Pe=5,tt=6,Bc=7,Ac=8;E("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),w("Y",un),w("YY",j,ce),w("YYYY",ur,dr),w("YYYYY",dn,ln),w("YYYYYY",dn,ln),L(["YYYYY","YYYYYY"],se),L("YYYY",function(e,t){t[se]=e.length===2?_.parseTwoDigitYear(e):C(e)}),L("YY",function(e,t){t[se]=_.parseTwoDigitYear(e)}),L("Y",function(e,t){t[se]=parseInt(e,10)});function Yt(e){return pn(e)?366:365}_.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var mo=gt("FullYear",!0);function Fc(){return pn(this.year())}function gt(e,t){return function(n){return n!=null?(go(this,e,n),_.updateOffset(this,t),this):Lt(this,e)}}function Lt(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 go(e,t,n){var r,o,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!pn(i)?28:l,o?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function Yc(e){return e=fe(e),ve(this[e])?this[e]():this}function Lc(e,t){if(typeof e=="object"){e=cr(e);var n=Cc(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=fe(e),ve(this[e]))return this[e](t);return this}function Uc(e,t){return(e%t+t)%t}var Z;Array.prototype.indexOf?Z=Array.prototype.indexOf:Z=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function pr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Uc(t,12);return e+=(t-n)/12,n===1?pn(e)?29:28:31-n%7%2}E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),E("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",j,mt),w("MM",j,ce),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[$e]=C(e)-1}),L(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[$e]=o:M(n).invalidMonth=e});var Wc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_o="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jc=At,Hc=At;function Gc(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||yo).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function zc(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[yo.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Kc(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Ee([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(o=Z.call(this._shortMonthsParse,a),o!==-1?o:null):(o=Z.call(this._longMonthsParse,a),o!==-1?o:null):t==="MMM"?(o=Z.call(this._shortMonthsParse,a),o!==-1?o:(o=Z.call(this._longMonthsParse,a),o!==-1?o:null)):(o=Z.call(this._longMonthsParse,a),o!==-1?o:(o=Z.call(this._shortMonthsParse,a),o!==-1?o:null))}function qc(e,t,n){var r,o,i;if(this._monthsParseExact)return Kc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=Ee([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.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 wo(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=C(t);else if(t=e.localeData().monthsParse(t),!Ce(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,pr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function So(e){return e!=null?(wo(this,e),_.updateOffset(this,!0),this):Lt(this,"Month")}function Zc(){return pr(this.year(),this.month())}function Jc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||ko.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(B(this,"_monthsShortRegex")||(this._monthsShortRegex=jc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Qc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||ko.call(this),e?this._monthsStrictRegex:this._monthsRegex):(B(this,"_monthsRegex")||(this._monthsRegex=Hc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ko(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],o,i,a,l;for(o=0;o<12;o++)i=Ee([2e3,o]),a=Re(this.monthsShort(i,"")),l=Re(this.months(i,"")),t.push(a),n.push(l),r.push(l),r.push(a);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 Xc(e,t,n,r,o,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function Ut(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 mn(e,t,n){var r=7+t-n,o=(7+Ut(e,0,r).getUTCDay()-t)%7;return-o+r-1}function bo(e,t,n,r,o){var i=(7+n-r)%7,a=mn(e,r,o),l=1+7*(t-1)+i+a,c,u;return l<=0?(c=e-1,u=Yt(c)+l):l>Yt(e)?(c=e+1,u=l-Yt(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Wt(e,t,n){var r=mn(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+xe(a,t,n)):o>xe(e.year(),t,n)?(i=o-xe(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function xe(e,t,n){var r=mn(e,t,n),o=mn(e+1,t,n);return(Yt(e)-r+o)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),w("w",j,mt),w("ww",j,ce),w("W",j,mt),w("WW",j,ce),Ft(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=C(e)});function ed(e){return Wt(e,this._week.dow,this._week.doy).week}var td={dow:0,doy:6};function nd(){return this._week.dow}function rd(){return this._week.doy}function sd(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function od(e){var t=Wt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}E("d",0,"do","day"),E("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),E("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),E("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),w("d",j),w("e",j),w("E",j),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Ft(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:M(n).invalidWeekday=e}),Ft(["d","e","E"],function(e,t,n,r){t[r]=C(e)});function id(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ad(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function mr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ld="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Eo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dd=At,ud=At,fd=At;function hd(e,t){var n=_e(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?mr(n,this._week.dow):e?n[e.day()]:n}function pd(e){return e===!0?mr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function md(e){return e===!0?mr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function gd(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ee([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Z.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Z.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Z.call(this._weekdaysParse,a),o!==-1||(o=Z.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Z.call(this._shortWeekdaysParse,a),o!==-1||(o=Z.call(this._weekdaysParse,a),o!==-1)?o:(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Z.call(this._minWeekdaysParse,a),o!==-1||(o=Z.call(this._weekdaysParse,a),o!==-1)?o:(o=Z.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function _d(e,t,n){var r,o,i;if(this._weekdaysParseExact)return gd.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Ee([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.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 yd(e){if(!this.isValid())return e!=null?this:NaN;var t=Lt(this,"Day");return e!=null?(e=id(e,this.localeData()),this.add(e-t,"d")):t}function wd(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 Sd(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ad(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function kd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||gr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(B(this,"_weekdaysRegex")||(this._weekdaysRegex=dd),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function bd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||gr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(B(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ud),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ed(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||gr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(B(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fd),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gr(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],i,a,l,c,u;for(i=0;i<7;i++)a=Ee([2e3,1]).day(i),l=Re(this.weekdaysMin(a,"")),c=Re(this.weekdaysShort(a,"")),u=Re(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),o.push(l),o.push(c),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.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 _r(){return this.hours()%12||12}function vd(){return this.hours()||24}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,_r),E("k",["kk",2],0,vd),E("hmm",0,0,function(){return""+_r.apply(this)+Oe(this.minutes(),2)}),E("hmmss",0,0,function(){return""+_r.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function vo(e,t){E(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}vo("a",!0),vo("A",!1);function Oo(e,t){return t._meridiemParse}w("a",Oo),w("A",Oo),w("H",j,fr),w("h",j,mt),w("k",j,mt),w("HH",j,ce),w("hh",j,ce),w("kk",j,ce),w("hmm",ho),w("hmmss",po),w("Hmm",ho),w("Hmmss",po),L(["H","HH"],X),L(["k","kk"],function(e,t,n){var r=C(e);t[X]=r===24?0:r}),L(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),L(["h","hh"],function(e,t,n){t[X]=C(e),M(n).bigHour=!0}),L("hmm",function(e,t,n){var r=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r)),M(n).bigHour=!0}),L("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r,2)),t[Pe]=C(e.substr(o)),M(n).bigHour=!0}),L("Hmm",function(e,t,n){var r=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r))}),L("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r,2)),t[Pe]=C(e.substr(o))});function Od(e){return(e+"").toLowerCase().charAt(0)==="p"}var Dd=/[ap]\.?m?\.?/i,Nd=gt("Hours",!0);function Td(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Do={calendar:gc,longDateFormat:Sc,invalidDate:bc,ordinal:vc,dayOfMonthOrdinalParse:Oc,relativeTime:Nc,months:Wc,monthsShort:_o,week:td,weekdays:ld,weekdaysMin:cd,weekdaysShort:Eo,meridiemParse:Dd},z={},jt={},Ht;function Md(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 No(e){return e&&e.toLowerCase().replace("_","-")}function Vd(e){for(var t=0,n,r,o,i;t<e.length;){for(i=No(e[t]).split("-"),n=i.length,r=No(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=gn(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&Md(i,r)>=n-1)break;n--}t++}return Ht}function Cd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function gn(e){var t=null,n;if(z[e]===void 0&&typeof module<"u"&&module&&module.exports&&Cd(e))try{t=Ht._abbr,n=require,n("./locale/"+e),Ke(t)}catch{z[e]=null}return z[e]}function Ke(e,t){var n;return e&&(ae(t)?n=Ie(e):n=yr(e,t),n?Ht=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ht._abbr}function yr(e,t){if(t!==null){var n,r=Do;if(t.abbr=e,z[e]!=null)ao("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=z[e]._config;else if(t.parentLocale!=null)if(z[t.parentLocale]!=null)r=z[t.parentLocale]._config;else if(n=gn(t.parentLocale),n!=null)r=n._config;else return jt[t.parentLocale]||(jt[t.parentLocale]=[]),jt[t.parentLocale].push({name:e,config:t}),null;return z[e]=new or(sr(r,t)),jt[e]&&jt[e].forEach(function(o){yr(o.name,o.config)}),Ke(e),z[e]}else return delete z[e],null}function Rd(e,t){if(t!=null){var n,r,o=Do;z[e]!=null&&z[e].parentLocale!=null?z[e].set(sr(z[e]._config,t)):(r=gn(e),r!=null&&(o=r._config),t=sr(o,t),r==null&&(t.abbr=e),n=new or(t),n.parentLocale=z[e],z[e]=n),Ke(e)}else z[e]!=null&&(z[e].parentLocale!=null?(z[e]=z[e].parentLocale,e===Ke()&&Ke(e)):z[e]!=null&&delete z[e]);return z[e]}function Ie(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ht;if(!_e(e)){if(t=gn(e),t)return t;e=[e]}return Vd(e)}function $d(){return ir(z)}function wr(e){var t,n=e._a;return n&&M(e).overflow===-2&&(t=n[$e]<0||n[$e]>11?$e:n[De]<1||n[De]>pr(n[se],n[$e])?De:n[X]<0||n[X]>24||n[X]===24&&(n[we]!==0||n[Pe]!==0||n[tt]!==0)?X:n[we]<0||n[we]>59?we:n[Pe]<0||n[Pe]>59?Pe:n[tt]<0||n[tt]>999?tt:-1,M(e)._overflowDayOfYear&&(t<se||t>De)&&(t=De),M(e)._overflowWeeks&&t===-1&&(t=Bc),M(e)._overflowWeekday&&t===-1&&(t=Ac),M(e).overflow=t),e}var Pd=/^\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)?)?$/,xd=/^\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)?)?$/,Id=/Z|[+-]\d\d(?::?\d\d)?/,_n=[["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]],Sr=[["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/]],Bd=/^\/?Date\((-?\d+)/i,Ad=/^(?:(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}))$/,Fd={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 To(e){var t,n,r=e._i,o=Pd.exec(r)||xd.exec(r),i,a,l,c,u=_n.length,d=Sr.length;if(o){for(M(e).iso=!0,t=0,n=u;t<n;t++)if(_n[t][1].exec(o[1])){a=_n[t][0],i=_n[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(o[3]){for(t=0,n=d;t<n;t++)if(Sr[t][1].exec(o[3])){l=(o[2]||" ")+Sr[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(o[4])if(Id.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),br(e)}else e._isValid=!1}function Yd(e,t,n,r,o,i){var a=[Ld(e),_o.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Ld(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ud(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Wd(e,t,n){if(e){var r=Eo.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return M(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function jd(e,t,n){if(e)return Fd[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}function Mo(e){var t=Ad.exec(Ud(e._i)),n;if(t){if(n=Yd(t[4],t[3],t[2],t[5],t[6],t[7]),!Wd(t[1],n,e))return;e._a=n,e._tzm=jd(t[8],t[9],t[10]),e._d=Ut.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function Hd(e){var t=Bd.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(To(e),e._isValid===!1)delete e._isValid;else return;if(Mo(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=ue("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 _t(e,t,n){return e??t??n}function Gd(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function kr(e){var t,n,r=[],o,i,a;if(!e._d){for(o=Gd(e),e._w&&e._a[De]==null&&e._a[$e]==null&&zd(e),e._dayOfYear!=null&&(a=_t(e._a[se],o[se]),(e._dayOfYear>Yt(a)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),n=Ut(a,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[X]===24&&e._a[we]===0&&e._a[Pe]===0&&e._a[tt]===0&&(e._nextDay=!0,e._a[X]=0),e._d=(e._useUTC?Ut:Xc).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[X]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(M(e).weekdayMismatch=!0)}}function zd(e){var t,n,r,o,i,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=_t(t.GG,e._a[se],Wt(H(),1,4).year),r=_t(t.W,1),o=_t(t.E,1),(o<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Wt(H(),i,a),n=_t(t.gg,e._a[se],u.year),r=_t(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(c=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>xe(n,i,a)?M(e)._overflowWeeks=!0:c!=null?M(e)._overflowWeekday=!0:(l=bo(n,r,o,i,a),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function br(e){if(e._f===_.ISO_8601){To(e);return}if(e._f===_.RFC_2822){Mo(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,n,r,o,i,a,l=t.length,c=0,u,d;for(o=lo(e._f,e._locale).match(ar)||[],d=o.length,n=0;n<d;n++)i=o[n],r=(t.match(Pc(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&M(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ht[i]?(r?M(e).empty=!1:M(e).unusedTokens.push(i),Ic(i,r,e)):e._strict&&!r&&M(e).unusedTokens.push(i);M(e).charsLeftOver=l-c,t.length>0&&M(e).unusedInput.push(t),e._a[X]<=12&&M(e).bigHour===!0&&e._a[X]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[X]=Kd(e._locale,e._a[X],e._meridiem),u=M(e).era,u!==null&&(e._a[se]=e._locale.erasConvertYear(u,e._a[se])),kr(e),wr(e)}function Kd(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 qd(e){var t,n,r,o,i,a,l=!1,c=e._f.length;if(c===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)i=0,a=!1,t=rr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],br(t),tr(t)&&(a=!0),i+=M(t).charsLeftOver,i+=M(t).unusedTokens.length*10,M(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||a)&&(r=i,n=t,a&&(l=!0));ze(e,n||t)}function Zd(e){if(!e._d){var t=cr(e._i),n=t.day===void 0?t.date:t.day;e._a=ro([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),kr(e)}}function Jd(e){var t=new Bt(wr(Vo(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vo(e){var t=e._i,n=e._f;return e._locale=e._locale||Ie(e._l),t===null||n===void 0&&t===""?sn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ye(t)?new Bt(wr(t)):(It(t)?e._d=t:_e(n)?qd(e):n?br(e):Qd(e),tr(e)||(e._d=null),e))}function Qd(e){var t=e._i;ae(t)?e._d=new Date(_.now()):It(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Hd(e):_e(t)?(e._a=ro(t.slice(0),function(n){return parseInt(n,10)}),kr(e)):et(t)?Zd(e):Ce(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Co(e,t,n,r,o){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(et(e)&&Xn(e)||_e(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Jd(i)}function H(e,t,n,r){return Co(e,t,n,r,!1)}var Xd=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:sn()}),eu=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:sn()});function Ro(e,t){var n,r;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return H();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function tu(){var e=[].slice.call(arguments,0);return Ro("isBefore",e)}function nu(){var e=[].slice.call(arguments,0);return Ro("isAfter",e)}var ru=function(){return Date.now?Date.now():+new Date},Gt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function su(e){var t,n=!1,r,o=Gt.length;for(t in e)if(B(e,t)&&!(Z.call(Gt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[Gt[r]]){if(n)return!1;parseFloat(e[Gt[r]])!==C(e[Gt[r]])&&(n=!0)}return!0}function ou(){return this._isValid}function iu(){return Se(NaN)}function yn(e){var t=cr(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=su(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+o+r*3+n*12,this._data={},this._locale=Ie(),this._bubble()}function wn(e){return e instanceof yn}function Er(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function au(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&C(e[a])!==C(t[a]))&&i++;return i+o}function $o(e,t){E(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Oe(~~(n/60),2)+t+Oe(~~n%60,2)})}$o("Z",":"),$o("ZZ",""),w("Z",fn),w("ZZ",fn),L(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=vr(fn,e)});var lu=/([\+\-]|\d\d)/gi;function vr(e,t){var n=(t||"").match(e),r,o,i;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(lu)||["-",0,0],i=+(o[1]*60)+C(o[2]),i===0?0:o[0]==="+"?i:-i)}function Or(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ye(e)||It(e)?e.valueOf():H(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):H(e).local()}function Dr(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function cu(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=vr(fn,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Dr(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?Bo(this,Se(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Dr(this)}function du(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function uu(e){return this.utcOffset(0,e)}function fu(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dr(this),"m")),this}function hu(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=vr(Rc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function pu(e){return this.isValid()?(e=e?H(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function mu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function gu(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return rr(e,this),e=Vo(e),e._a?(t=e._isUTC?Ee(e._a):H(e._a),this._isDSTShifted=this.isValid()&&au(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _u(){return this.isValid()?!this._isUTC:!1}function yu(){return this.isValid()?this._isUTC:!1}function Po(){return this.isValid()?this._isUTC&&this._offset===0:!1}var wu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Su=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Se(e,t){var n=e,r=null,o,i,a;return wn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ce(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=wu.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:C(r[De])*o,h:C(r[X])*o,m:C(r[we])*o,s:C(r[Pe])*o,ms:C(Er(r[tt]*1e3))*o}):(r=Su.exec(e))?(o=r[1]==="-"?-1:1,n={y:nt(r[2],o),M:nt(r[3],o),w:nt(r[4],o),d:nt(r[5],o),h:nt(r[6],o),m:nt(r[7],o),s:nt(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=ku(H(n.from),H(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new yn(n),wn(e)&&B(e,"_locale")&&(i._locale=e._locale),wn(e)&&B(e,"_isValid")&&(i._isValid=e._isValid),i}Se.fn=yn.prototype,Se.invalid=iu;function nt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function xo(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 ku(e,t){var n;return e.isValid()&&t.isValid()?(t=Or(t,e),e.isBefore(t)?n=xo(e,t):(n=xo(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Io(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(ao(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."),i=n,n=r,r=i),o=Se(n,r),Bo(this,o,e),this}}function Bo(e,t,n,r){var o=t._milliseconds,i=Er(t._days),a=Er(t._months);e.isValid()&&(r=r??!0,a&&wo(e,Lt(e,"Month")+a*n),i&&go(e,"Date",Lt(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&_.updateOffset(e,i||a))}var bu=Io(1,"add"),Eu=Io(-1,"subtract");function Ao(e){return typeof e=="string"||e instanceof String}function vu(e){return ye(e)||It(e)||Ao(e)||Ce(e)||Du(e)||Ou(e)||e===null||e===void 0}function Ou(e){var t=et(e)&&!Xn(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"],o,i,a=r.length;for(o=0;o<a;o+=1)i=r[o],n=n||B(e,i);return t&&n}function Du(e){var t=_e(e),n=!1;return t&&(n=e.filter(function(r){return!Ce(r)&&Ao(e)}).length===0),t&&n}function Nu(e){var t=et(e)&&!Xn(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],n=n||B(e,i);return t&&n}function Tu(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 Mu(e,t){arguments.length===1&&(arguments[0]?vu(arguments[0])?(e=arguments[0],t=void 0):Nu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||H(),r=Or(n,this).startOf("day"),o=_.calendarFormat(this,r)||"sameElse",i=t&&(ve(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,H(n)))}function Vu(){return new Bt(this)}function Cu(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ru(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function $u(e,t,n,r){var o=ye(e)?e:H(e),i=ye(t)?t:H(t);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function Pu(e,t){var n=ye(e)?e:H(e),r;return this.isValid()&&n.isValid()?(t=fe(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 xu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Iu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Bu(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=Or(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=fe(t),t){case"year":i=Sn(this,r)/12;break;case"month":i=Sn(this,r);break;case"quarter":i=Sn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:he(i)}function Sn(e,t){if(e.date()<t.date())return-Sn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;return t-r<0?(o=e.clone().add(n-1,"months"),i=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),i=(t-r)/(o-r)),-(n+i)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Au(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Fu(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?an(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ve(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",an(n,"Z")):an(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Yu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Lu(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=an(this,e);return this.localeData().postformat(t)}function Uu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Wu(e){return this.from(H(),e)}function ju(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Hu(e){return this.to(H(),e)}function Fo(e){var t;return e===void 0?this._locale._abbr:(t=Ie(e),t!=null&&(this._locale=t),this)}var Yo=ue("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 Lo(){return this._locale}var kn=1e3,yt=60*kn,bn=60*yt,Uo=(365*400+97)*24*bn;function wt(e,t){return(e%t+t)%t}function Wo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Uo:new Date(e,t,n).valueOf()}function jo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Uo:Date.UTC(e,t,n)}function Gu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?jo:Wo,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-=wt(t+(this._isUTC?0:this.utcOffset()*yt),bn);break;case"minute":t=this._d.valueOf(),t-=wt(t,yt);break;case"second":t=this._d.valueOf(),t-=wt(t,kn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function zu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?jo:Wo,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+=bn-wt(t+(this._isUTC?0:this.utcOffset()*yt),bn)-1;break;case"minute":t=this._d.valueOf(),t+=yt-wt(t,yt)-1;break;case"second":t=this._d.valueOf(),t+=kn-wt(t,kn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Ku(){return this._d.valueOf()-(this._offset||0)*6e4}function qu(){return Math.floor(this.valueOf()/1e3)}function Zu(){return new Date(this.valueOf())}function Ju(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Qu(){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 Xu(){return this.isValid()?this.toISOString():null}function ef(){return tr(this)}function tf(){return ze({},M(this))}function nf(){return M(this).overflow}function rf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),w("N",Nr),w("NN",Nr),w("NNN",Nr),w("NNNN",mf),w("NNNNN",gf),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?M(n).era=o:M(n).invalidEra=e}),w("y",pt),w("yy",pt),w("yyy",pt),w("yyyy",pt),w("yo",_f),L(["y","yy","yyy","yyyy"],se),L(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[se]=n._locale.eraYearOrdinalParse(e,o):t[se]=parseInt(e,10)});function sf(e,t){var n,r,o,i=this._eras||Ie("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=_(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=_(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function of(e,t,n){var r,o,i=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,o=i.length;r<o;++r)if(a=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),c=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(c===e)return i[r];break}else if([a,l,c].indexOf(e)>=0)return i[r]}function af(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function lf(){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 cf(){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 df(){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 uf(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-_(o[e].since).year())*n+o[e].offset;return this.year()}function ff(e){return B(this,"_erasNameRegex")||Tr.call(this),e?this._erasNameRegex:this._erasRegex}function hf(e){return B(this,"_erasAbbrRegex")||Tr.call(this),e?this._erasAbbrRegex:this._erasRegex}function pf(e){return B(this,"_erasNarrowRegex")||Tr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Nr(e,t){return t.erasAbbrRegex(e)}function mf(e,t){return t.erasNameRegex(e)}function gf(e,t){return t.erasNarrowRegex(e)}function _f(e,t){return t._eraYearOrdinalRegex||pt}function Tr(){var e=[],t=[],n=[],r=[],o,i,a,l,c,u=this.eras();for(o=0,i=u.length;o<i;++o)a=Re(u[o].name),l=Re(u[o].abbr),c=Re(u[o].narrow),t.push(a),e.push(l),n.push(c),r.push(a),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")}E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100});function En(e,t){E(0,[e,e.length],0,t)}En("gggg","weekYear"),En("ggggg","weekYear"),En("GGGG","isoWeekYear"),En("GGGGG","isoWeekYear"),w("G",un),w("g",un),w("GG",j,ce),w("gg",j,ce),w("GGGG",ur,dr),w("gggg",ur,dr),w("GGGGG",dn,ln),w("ggggg",dn,ln),Ft(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=C(e)}),Ft(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function yf(e){return Ho.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function wf(e){return Ho.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Sf(){return xe(this.year(),1,4)}function kf(){return xe(this.isoWeekYear(),1,4)}function bf(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function Ef(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function Ho(e,t,n,r,o){var i;return e==null?Wt(this,r,o).year:(i=xe(e,r,o),t>i&&(t=i),vf.call(this,e,t,n,r,o))}function vf(e,t,n,r,o){var i=bo(e,t,n,r,o),a=Ut(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}E("Q",0,"Qo","quarter"),w("Q",uo),L("Q",function(e,t){t[$e]=(C(e)-1)*3});function Of(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}E("D",["DD",2],"Do","date"),w("D",j,mt),w("DD",j,ce),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],De),L("Do",function(e,t){t[De]=C(e.match(j)[0])});var Go=gt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",cn),w("DDDD",fo),L(["DDD","DDDD"],function(e,t,n){n._dayOfYear=C(e)});function Df(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}E("m",["mm",2],0,"minute"),w("m",j,fr),w("mm",j,ce),L(["m","mm"],we);var Nf=gt("Minutes",!1);E("s",["ss",2],0,"second"),w("s",j,fr),w("ss",j,ce),L(["s","ss"],Pe);var Tf=gt("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return this.millisecond()*10}),E(0,["SSSSS",5],0,function(){return this.millisecond()*100}),E(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),E(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),E(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),E(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",cn,uo),w("SS",cn,ce),w("SSS",cn,fo);var qe,zo;for(qe="SSSS";qe.length<=9;qe+="S")w(qe,pt);function Mf(e,t){t[tt]=C(("0."+e)*1e3)}for(qe="S";qe.length<=9;qe+="S")L(qe,Mf);zo=gt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");function Vf(){return this._isUTC?"UTC":""}function Cf(){return this._isUTC?"Coordinated Universal Time":""}var m=Bt.prototype;m.add=bu,m.calendar=Mu,m.clone=Vu,m.diff=Bu,m.endOf=zu,m.format=Lu,m.from=Uu,m.fromNow=Wu,m.to=ju,m.toNow=Hu,m.get=Yc,m.invalidAt=nf,m.isAfter=Cu,m.isBefore=Ru,m.isBetween=$u,m.isSame=Pu,m.isSameOrAfter=xu,m.isSameOrBefore=Iu,m.isValid=ef,m.lang=Yo,m.locale=Fo,m.localeData=Lo,m.max=eu,m.min=Xd,m.parsingFlags=tf,m.set=Lc,m.startOf=Gu,m.subtract=Eu,m.toArray=Ju,m.toObject=Qu,m.toDate=Zu,m.toISOString=Fu,m.inspect=Yu,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=Xu,m.toString=Au,m.unix=qu,m.valueOf=Ku,m.creationData=rf,m.eraName=lf,m.eraNarrow=cf,m.eraAbbr=df,m.eraYear=uf,m.year=mo,m.isLeapYear=Fc,m.weekYear=yf,m.isoWeekYear=wf,m.quarter=m.quarters=Of,m.month=So,m.daysInMonth=Zc,m.week=m.weeks=sd,m.isoWeek=m.isoWeeks=od,m.weeksInYear=bf,m.weeksInWeekYear=Ef,m.isoWeeksInYear=Sf,m.isoWeeksInISOWeekYear=kf,m.date=Go,m.day=m.days=yd,m.weekday=wd,m.isoWeekday=Sd,m.dayOfYear=Df,m.hour=m.hours=Nd,m.minute=m.minutes=Nf,m.second=m.seconds=Tf,m.millisecond=m.milliseconds=zo,m.utcOffset=cu,m.utc=uu,m.local=fu,m.parseZone=hu,m.hasAlignedHourOffset=pu,m.isDST=mu,m.isLocal=_u,m.isUtcOffset=yu,m.isUtc=Po,m.isUTC=Po,m.zoneAbbr=Vf,m.zoneName=Cf,m.dates=ue("dates accessor is deprecated. Use date instead.",Go),m.months=ue("months accessor is deprecated. Use month instead",So),m.years=ue("years accessor is deprecated. Use year instead",mo),m.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",du),m.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",gu);function Rf(e){return H(e*1e3)}function $f(){return H.apply(null,arguments).parseZone()}function Ko(e){return e}var A=or.prototype;A.calendar=_c,A.longDateFormat=kc,A.invalidDate=Ec,A.ordinal=Dc,A.preparse=Ko,A.postformat=Ko,A.relativeTime=Tc,A.pastFuture=Mc,A.set=mc,A.eras=sf,A.erasParse=of,A.erasConvertYear=af,A.erasAbbrRegex=hf,A.erasNameRegex=ff,A.erasNarrowRegex=pf,A.months=Gc,A.monthsShort=zc,A.monthsParse=qc,A.monthsRegex=Qc,A.monthsShortRegex=Jc,A.week=ed,A.firstDayOfYear=rd,A.firstDayOfWeek=nd,A.weekdays=hd,A.weekdaysMin=md,A.weekdaysShort=pd,A.weekdaysParse=_d,A.weekdaysRegex=kd,A.weekdaysShortRegex=bd,A.weekdaysMinRegex=Ed,A.isPM=Od,A.meridiem=Td;function vn(e,t,n,r){var o=Ie(),i=Ee().set(r,t);return o[n](i,e)}function qo(e,t,n){if(Ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return vn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=vn(e,r,n,"month");return o}function Mr(e,t,n,r){typeof e=="boolean"?(Ce(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ce(t)&&(n=t,t=void 0),t=t||"");var o=Ie(),i=e?o._week.dow:0,a,l=[];if(n!=null)return vn(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=vn(t,(a+i)%7,r,"day");return l}function Pf(e,t){return qo(e,t,"months")}function xf(e,t){return qo(e,t,"monthsShort")}function If(e,t,n){return Mr(e,t,n,"weekdays")}function Bf(e,t,n){return Mr(e,t,n,"weekdaysShort")}function Af(e,t,n){return Mr(e,t,n,"weekdaysMin")}Ke("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=C(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=ue("moment.lang is deprecated. Use moment.locale instead.",Ke),_.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Be=Math.abs;function Ff(){var e=this._data;return this._milliseconds=Be(this._milliseconds),this._days=Be(this._days),this._months=Be(this._months),e.milliseconds=Be(e.milliseconds),e.seconds=Be(e.seconds),e.minutes=Be(e.minutes),e.hours=Be(e.hours),e.months=Be(e.months),e.years=Be(e.years),this}function Zo(e,t,n,r){var o=Se(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Yf(e,t){return Zo(this,e,t,1)}function Lf(e,t){return Zo(this,e,t,-1)}function Jo(e){return e<0?Math.floor(e):Math.ceil(e)}function Uf(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Jo(Vr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=he(e/1e3),r.seconds=o%60,i=he(o/60),r.minutes=i%60,a=he(i/60),r.hours=a%24,t+=he(a/24),c=he(Qo(t)),n+=c,t-=Jo(Vr(c)),l=he(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Qo(e){return e*4800/146097}function Vr(e){return e*146097/4800}function Wf(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Qo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vr(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 Ae(e){return function(){return this.as(e)}}var Xo=Ae("ms"),jf=Ae("s"),Hf=Ae("m"),Gf=Ae("h"),zf=Ae("d"),Kf=Ae("w"),qf=Ae("M"),Zf=Ae("Q"),Jf=Ae("y"),Qf=Xo;function Xf(){return Se(this)}function eh(e){return e=fe(e),this.isValid()?this[e+"s"]():NaN}function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var th=rt("milliseconds"),nh=rt("seconds"),rh=rt("minutes"),sh=rt("hours"),oh=rt("days"),ih=rt("months"),ah=rt("years");function lh(){return he(this.days()/7)}var Fe=Math.round,St={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ch(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function dh(e,t,n,r){var o=Se(e).abs(),i=Fe(o.as("s")),a=Fe(o.as("m")),l=Fe(o.as("h")),c=Fe(o.as("d")),u=Fe(o.as("M")),d=Fe(o.as("w")),f=Fe(o.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,ch.apply(null,h)}function uh(e){return e===void 0?Fe:typeof e=="function"?(Fe=e,!0):!1}function fh(e,t){return St[e]===void 0?!1:t===void 0?St[e]:(St[e]=t,e==="s"&&(St.ss=t-1),!0)}function hh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=St,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},St,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=dh(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var Cr=Math.abs;function kt(e){return(e>0)-(e<0)||+e}function On(){if(!this.isValid())return this.localeData().invalidDate();var e=Cr(this._milliseconds)/1e3,t=Cr(this._days),n=Cr(this._months),r,o,i,a,l=this.asSeconds(),c,u,d,f;return l?(r=he(e/60),o=he(r/60),e%=60,r%=60,i=he(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=kt(this._months)!==kt(l)?"-":"",d=kt(this._days)!==kt(l)?"-":"",f=kt(this._milliseconds)!==kt(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var x=yn.prototype;x.isValid=ou,x.abs=Ff,x.add=Yf,x.subtract=Lf,x.as=Wf,x.asMilliseconds=Xo,x.asSeconds=jf,x.asMinutes=Hf,x.asHours=Gf,x.asDays=zf,x.asWeeks=Kf,x.asMonths=qf,x.asQuarters=Zf,x.asYears=Jf,x.valueOf=Qf,x._bubble=Uf,x.clone=Xf,x.get=eh,x.milliseconds=th,x.seconds=nh,x.minutes=rh,x.hours=sh,x.days=oh,x.weeks=lh,x.months=ih,x.years=ah,x.humanize=hh,x.toISOString=On,x.toString=On,x.toJSON=On,x.locale=Fo,x.localeData=Lo,x.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),x.lang=Yo,E("X",0,0,"unix"),E("x",0,0,"valueOf"),w("x",un),w("X",$c),L("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,n){n._d=new Date(C(e))});//! moment.js
|
|
45
|
+
_.version="2.30.1",hc(H),_.fn=m,_.min=tu,_.max=nu,_.now=ru,_.utc=Ee,_.unix=Rf,_.months=Pf,_.isDate=It,_.locale=Ke,_.invalid=sn,_.duration=Se,_.isMoment=ye,_.weekdays=If,_.parseZone=$f,_.localeData=Ie,_.isDuration=wn,_.monthsShort=xf,_.weekdaysMin=Af,_.defineLocale=yr,_.updateLocale=Rd,_.locales=$d,_.weekdaysShort=Bf,_.normalizeUnits=fe,_.relativeTimeRounding=uh,_.relativeTimeThreshold=fh,_.calendarFormat=Tu,_.prototype=m,_.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 ph=["title"],Rr=s.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=s.computed(()=>t.fieldValuePair.value),r=s.computed(()=>t.fieldValuePair.field),o=s.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=_(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[i.link?(s.openBlock(),s.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.value),1)]),_:1},8,["to"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(o.value),1)],64))],8,ph)}}}),mh={key:0,class:"cape-error cape-value-error"},gh={key:1,class:"cape-value"},_h={key:0,class:"cape-value-null"},yh={key:0,class:"cape-value-multiple"},ei=s.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field}),o=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>!i.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",mh," [Error: field value pair does not exist!] ")):!i.hideIfEmpty||!o.value?(s.openBlock(),s.createElementBlock("div",gh,[o.value?(s.openBlock(),s.createElementBlock("div",_h,"undefined")):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(s.openBlock(),s.createElementBlock("ol",yh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c},[s.createVNode(Rr,{"field-value-pair":{field:r.value,value:l},link:i.link},null,8,["field-value-pair","link"])]))),128))])):(s.openBlock(),s.createBlock(Rr,{key:1,"field-value-pair":i.fieldValue,link:i.link},null,8,["field-value-pair","link"]))],2))])):s.createCommentVNode("",!0)}}),wh={key:0,class:"cape-labelled-value"},Sh={key:0,class:"cape-error cape-labelled-value-error"},kh=["title"],bh={key:1,class:"cape-labelled-value-label"},Eh=s.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field}),o=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>!i.hideIfEmpty||!o.value?(s.openBlock(),s.createElementBlock("div",wh,[!i.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",Sh," [Error, trying to render non-existent field] ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(s.openBlock(),s.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},s.toDisplayString(r.value.label),9,kh)):(s.openBlock(),s.createElementBlock("div",bh,s.toDisplayString(r.value.label),1)),s.createVNode(ei,{link:i.link,"field-value":i.fieldValue},null,8,["link","field-value"])],64))])):s.createCommentVNode("",!0)}}),vh={class:"cape-filter-label"},Oh=["for"],Dh={class:"cape-filter-mode"},Nh=[s.createElementVNode("option",{value:"contains"},"contains",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Th={class:"cape-filter-term"},Mh=["id","placeholder"],Vh=["id","placeholder"],Ch=s.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",vh,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Oh)]),s.createElementVNode("div",Dh,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Nh,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Th,[r.value.mode==="contains"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.term=l),placeholder:o.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Mh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.term=l),placeholder:o.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Vh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0)])],64))}}),Rh={class:"cape-filter-label"},$h=["for"],Ph={class:"cape-filter-wide-term"},xh=["id","placeholder"],Ih=s.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId));return(o,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Rh,[s.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,$h)]),s.createElementVNode("div",Ph,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value.term=a),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,xh),[[s.vModelText,r.value.term]])])],64))}}),Bh={class:"cape-filter-field-enum-one-of-checkbox"},Ah=["id","value"],Fh=["for"],Yh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock("ul",Bh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[0]||(a[0]=c=>s.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,Ah),[[s.vModelCheckbox,s.unref(r).oneOfTerms]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,Fh)]))),128))]))}});function $r(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Lh(e){return(...t)=>!e(...t)}function Uh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function ti(e,t,n,r){return t?e.filter(o=>Uh(r(o,n),t)).sort((o,i)=>r(o,n).length-r(i,n).length):e}function Wh(e){return e.filter(t=>!t.$isLabel)}function Pr(e,t){return n=>n.reduce((r,o)=>o[e]&&o[e].length?(r.push({$groupLabel:o[t],$isLabel:!0}),r.concat(o[e])):r,[])}function jh(e,t,n,r,o){return i=>i.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=ti(a[n],e,t,o);return l.length?{[r]:a[r],[n]:l}:[]})}const ni=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Hh={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 $r(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}},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):ti(n,t,this.label,this.customLabel):n=this.groupValues?Pr(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Lh(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 ni(jh(t,n,this.groupValues,this.groupLabel,this.customLabel),Pr(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return ni(Pr(this.groupValues,this.groupLabel),Wh)(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($r(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return $r(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.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let 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))}}},Gh={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}}},ri={name:"vue-multiselect",mixins:[Hh,Gh],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},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},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)}}};const zh={ref:"tags",class:"multiselect__tags"},Kh={class:"multiselect__tags-wrap"},qh={class:"multiselect__spinner"},Zh={key:0},Jh={class:"multiselect__option"},Qh={class:"multiselect__option"},Xh=s.createTextVNode("No elements found. Consider changing the search query."),ep={class:"multiselect__option"},tp=s.createTextVNode("List is empty.");function np(e,t,n,r,o,i){return s.openBlock(),s.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=a=>e.activate()),onBlur:t[15]||(t[15]=a=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=s.withKeys(a=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[s.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[s.createVNode("div",{onMousedown:t[1]||(t[1]=s.withModifiers(a=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),s.renderSlot(e.$slots,"clear",{search:e.search}),s.createVNode("div",zh,[s.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:i.visibleValues,isOpen:e.isOpen},()=>[s.withDirectives(s.createVNode("div",Kh,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.visibleValues,(a,l)=>s.renderSlot(e.$slots,"tag",{option:a,search:e.search,remove:e.removeElement},()=>[(s.openBlock(),s.createBlock("span",{class:"multiselect__tag",key:l},[s.createVNode("span",{textContent:s.toDisplayString(e.getOptionLabel(a))},null,8,["textContent"]),s.createVNode("i",{tabindex:"1",onKeypress:s.withKeys(s.withModifiers(c=>e.removeElement(a),["prevent"]),["enter"]),onMousedown:s.withModifiers(c=>e.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[s.vShow,i.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?s.renderSlot(e.$slots,"limit",{key:0},()=>[s.createVNode("strong",{class:"multiselect__strong",textContent:s.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):s.createCommentVNode("v-if",!0)]),s.createVNode(s.Transition,{name:"multiselect__loading"},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"loading",{},()=>[s.withDirectives(s.createVNode("div",qh,null,512),[[s.vShow,n.loading]])])]),_:3}),e.searchable?(s.openBlock(),s.createBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:i.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=a=>e.updateSearch(a.target.value)),onFocus:t[3]||(t[3]=s.withModifiers(a=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=s.withModifiers(a=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=s.withKeys(a=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=s.withKeys(s.withModifiers(a=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):s.createCommentVNode("v-if",!0),i.isSingleLabelVisible?(s.openBlock(),s.createBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"singleLabel",{option:i.singleValue},()=>[s.createTextVNode(s.toDisplayString(e.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),i.isPlaceholderVisible?(s.openBlock(),s.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"placeholder",{},()=>[s.createTextVNode(s.toDisplayString(e.placeholder),1)])],32)):s.createCommentVNode("v-if",!0)],512),s.createVNode(s.Transition,{name:"multiselect"},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...a)=>e.activate&&e.activate(...a)),tabindex:"-1",onMousedown:t[13]||(t[13]=s.withModifiers(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[s.createVNode("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+e.id},[s.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(s.openBlock(),s.createBlock("li",Zh,[s.createVNode("span",Jh,[s.renderSlot(e.$slots,"maxElements",{},()=>[s.createTextVNode("Maximum of "+s.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):s.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(e.filteredOptions,(a,l)=>(s.openBlock(),s.createBlock("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock("span",{key:0,class:[e.optionHighlight(l,a),"multiselect__option"],onClick:s.withModifiers(c=>e.select(a),["stop"]),onMouseenter:s.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":a&&a.isTag?e.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(s.openBlock(),s.createBlock("span",{key:1,"data-select":e.groupSelect&&i.selectGroupLabelText,"data-deselect":e.groupSelect&&i.deselectGroupLabelText,class:[e.groupHighlight(l,a),"multiselect__option"],onMouseenter:s.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:s.withModifiers(c=>e.selectGroup(a),["prevent"])},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):s.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):s.createCommentVNode("v-if",!0),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",Qh,[s.renderSlot(e.$slots,"noResult",{search:e.search},()=>[Xh])])],512),[[s.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",ep,[s.renderSlot(e.$slots,"noOptions",{},()=>[tp])])],512),[[s.vShow,n.showNoOptions&&(e.options.length===0||i.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),s.renderSlot(e.$slots,"afterList")],12,["id"])],36),[[s.vShow,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}ri.render=np;const rp=s.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createBlock(s.unref(ri),{id:"filter-multiselect-"+s.unref(o).id,modelValue:s.unref(r).oneOfTerms,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:s.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),sp=["aria-label"],op=s.createElementVNode("option",{key:"",value:""},null,-1),ip=["value"],ap=s.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),"aria-label":"Select "+s.unref(o).label+" value."},[op,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("option",{key:l,value:l},s.toDisplayString(l),9,ip))),128))],8,sp)),[[s.vModelSelect,s.unref(r).isTerm]])}}),lp={class:"cape-filter-field-enum-is-radio"},cp={class:"form-check form-check-inline"},dp=["id"],up=["for"],fp=[s.createElementVNode("em",null,"any",-1)],hp=["id","value"],pp=["for"],mp=s.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock("ul",lp,[s.createElementVNode("li",cp,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),type:"radio",value:""},null,8,dp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"},fp,8,up)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[1]||(a[1]=c=>s.unref(r).isTerm=c),value:l,type:"radio"},null,8,hp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,pp)]))),128))]))}}),gp={class:"cape-filter-label"},_p=["for"],yp={class:"cape-filter-mode"},wp=[s.createElementVNode("option",{value:"oneOf"},"is one of",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Sp={class:"cape-filter-term"},kp=s.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",gp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id,"data-test":"filter-label"},s.toDisplayString(s.unref(r).field.label),9,_p)]),s.createElementVNode("div",yp,[s.unref(r).field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},wp,512)),[[s.vModelSelect,s.unref(r).mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Sp,[s.unref(r).mode==="oneOf"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.unref(o).filterInputStyleOnOneOf==="checkbox"?(s.openBlock(),s.createBlock(Yh,{key:0,"filter-id":i.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(rp,{key:1,"filter-id":i.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0),s.unref(r).mode==="is"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(o).filterInputStyleOnIs==="select"?(s.openBlock(),s.createBlock(ap,{key:0,"filter-id":i.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(mp,{key:1,"filter-id":i.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0)])],64))}}),bp={class:"cape-filter-label"},Ep=["for"],vp={class:"cape-filter-mode"},Op=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Dp={class:"cape-filter-term"},Np=["id","placeholder","min","max","step"],Tp=s.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),Mp=["id","placeholder","min","max","step"],Vp=["id","placeholder","min","max","step"],Cp=s.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",bp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Ep)]),s.createElementVNode("div",vp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Op,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Dp,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Np),[[s.vModelText,r.value.lowerBoundTerm]]),Tp,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Mp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:o.value.placeholderIs,type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,Vp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Rp={class:"cape-filter-label"},$p=["for"],Pp={class:"cape-filter-mode"},xp=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Ip={class:"cape-filter-term"},Bp=["id","placeholder"],Ap=s.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),Fp=["id","placeholder"],Yp=["id","placeholder"],Lp=s.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Rp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,$p)]),s.createElementVNode("div",Pp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select"},xp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Ip,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Bp),[[s.vModelText,r.value.lowerBoundTerm]]),Ap,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Fp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:o.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,Yp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Up=s.defineComponent({name:"CapeAboutPage",components:{CapeRecordCount:Zs},template:"#templateCapeAbout",computed:{metadata(){return je().metadata}}});function Wp(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 o=window.document.createElement("a");o.href=window.URL.createObjectURL(r),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function jp(){const e=[[]],t=ut(),n=Rt();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(o=>{const i=r[o.id].value??"";return o.isMultiple&&Array.isArray(i)?i.join("; "):`${i}`}))}),e}function Hp(e){return e.map(n=>'"'+n.map(o=>{let i="";return o!=null&&(i=o.toString()),i.replace(/"/g,'""').replace(/\r\n/g,`
|
|
46
|
+
`)}).join('","')+`"
|
|
47
|
+
`).join("")}const Gp=s.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=jp(),r=Hp(n);Wp("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(s.openBlock(),s.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),zp={},Kp={href:"/site-data.json",class:"cape-button"};function qp(e,t){return s.openBlock(),s.createElementBlock("a",Kp,"Download JSON")}const Zp=Qs(zp,[["render",qp]]),Jp={class:"cape-fields-table"},Qp=s.createElementVNode("thead",null,[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col"}," Field id "),s.createElementVNode("th",{scope:"col"}," Field name "),s.createElementVNode("th",{scope:"col"}," Field type "),s.createElementVNode("th",{scope:"col"}," Description ")])],-1),Xp={key:0},si=s.defineComponent({__name:"CapeFieldsTable",setup(e){const t=ut(),n=s.computed(()=>t.all);return(r,o)=>(s.openBlock(),s.createElementBlock("table",Jp,[Qp,s.createElementVNode("tbody",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,i=>(s.openBlock(),s.createElementBlock("tr",{key:i.id},[s.createElementVNode("td",null,s.toDisplayString(i.id),1),s.createElementVNode("td",null,s.toDisplayString(i.label),1),s.createElementVNode("td",null,[s.createTextVNode(s.toDisplayString(i.type)+" ",1),i.isMultiple?(s.openBlock(),s.createElementBlock("span",Xp," list")):s.createCommentVNode("",!0)]),s.createElementVNode("td",null,s.toDisplayString(i.description),1)]))),128))])]))}}),oi={install:function(e,t){e.use(Qa()),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents);const n=je();n.setOptions(t),s.toRaw(n.pages).forEach(r=>{Ws.addRoute({path:r.path,component:e.component(r.component)})}),e.use(Ws)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",qs),e.component("CapeAboutPage",Up),e.component("CapeAdvancedSearchToggle",$l),e.component("CapeFieldsTable",si),e.component("CapeFilters",xl),e.component("CapeFormResetButton",Il),e.component("CapeHeader",Js),e.component("CapeHomePage",Ys),e.component("CapeHomepageLayout",Fs),e.component("CapeLoadError",Hs),e.component("CapeLoading",Xs),e.component("CapeNavigation",js),e.component("CapeNonProdWarning",zl),e.component("CapeRecordCount",Zs),e.component("CapeRecordCard",Ls),e.component("CapeRecordPage",Us),e.component("CapeResults",fc),e.component("CapeSummaryCard",eo),e.component("CapeLabelledValue",Eh),e.component("CapeValue",ei),e.component("CapeSingleValue",Rr),e.component("CapeFilterFieldText",Ch),e.component("CapeFilterFieldEnum",kp),e.component("CapeFilterFreeText",Ih),e.component("CapeFilterFieldInteger",Cp),e.component("CapeFilterFieldDate",Lp),e.component("CapeSortOrder",to),e.component("CapeResultsControls",Qn),e.component("CapeDownloadJsonButton",Zp),e.component("CapeDownloadCsvButton",Gp),e.component("CapeFieldsTable",si),t.additionalComponents!==void 0&&Object.keys(t.additionalComponents).forEach(n=>{t.additionalComponents!==void 0&&e.component(n,t.additionalComponents[n])})}},em={template:"#templateCapeFooter"},tm=s.defineComponent({__name:"App",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Js),(s.openBlock(),s.createBlock(s.Suspense,null,{default:s.withCtx(()=>[s.createVNode(qs)]),fallback:s.withCtx(()=>[s.createVNode(Xs)]),_:1})),s.createVNode(em)],64))}}),nm=e=>{const t=s.createApp(tm);return t.use(oi,e),t};J.CapePlugin=oi,J.Filter=Zn,J.createCapeApp=nm,J.useDatasetStore=$t,J.useFieldStore=ut,J.useFilterStore=K,J.usePropertyStore=je,J.useSearchResultsStore=Ge,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|