From c30d1f42fa713b5560d2669d437994d5b3fcb7ac Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 7 Sep 2024 03:10:47 -0400 Subject: [PATCH] Upgrade @ctfdio/ctfd-js to 0.0.14 and rebuild --- package.json | 2 +- ...ges.a2215eea.js => challenges.369de531.js} | 2 +- ...oard.1749e720.js => clipboard.0c9c5ddd.js} | 2 +- .../{index.955e6486.js => index.1cf73b05.js} | 2 +- .../{index.7e48942e.js => index.2e31e3b8.js} | 12 ++-- ....c77681af.js => notifications.91eecfcb.js} | 2 +- static/assets/page.328a4621.js | 1 - static/assets/page.3c5083de.js | 1 + static/assets/scoreboard.3f07d373.js | 1 - static/assets/scoreboard.b1c04d97.js | 1 + ...tings.c0694ce6.js => settings.64728c4b.js} | 2 +- .../{setup.b8ab9510.js => setup.afceeb60.js} | 2 +- static/assets/teams_list.22e04d3a.js | 1 + static/assets/teams_list.99960f43.js | 1 - ....ca4186a9.js => teams_private.32f15dd7.js} | 2 +- ...c.6ae1825a.js => teams_public.621a4659.js} | 2 +- static/assets/users_list.c6fce1fb.js | 1 - static/assets/users_list.e03972e4.js | 1 + ....63e06649.js => users_private.bfcc0675.js} | 2 +- ...c.025dda56.js => users_public.158851db.js} | 2 +- ...core.1d4e199f.js => userscore.32000323.js} | 2 +- static/manifest.json | 62 +++++++++---------- yarn.lock | 8 +-- 23 files changed, 57 insertions(+), 57 deletions(-) rename static/assets/{challenges.a2215eea.js => challenges.369de531.js} (98%) rename static/assets/{clipboard.1749e720.js => clipboard.0c9c5ddd.js} (91%) rename static/assets/{index.955e6486.js => index.1cf73b05.js} (82%) rename static/assets/{index.7e48942e.js => index.2e31e3b8.js} (79%) rename static/assets/{notifications.c77681af.js => notifications.91eecfcb.js} (86%) delete mode 100644 static/assets/page.328a4621.js create mode 100644 static/assets/page.3c5083de.js delete mode 100644 static/assets/scoreboard.3f07d373.js create mode 100644 static/assets/scoreboard.b1c04d97.js rename static/assets/{settings.c0694ce6.js => settings.64728c4b.js} (90%) rename static/assets/{setup.b8ab9510.js => setup.afceeb60.js} (97%) create mode 100644 static/assets/teams_list.22e04d3a.js delete mode 100644 static/assets/teams_list.99960f43.js rename static/assets/{teams_private.ca4186a9.js => teams_private.32f15dd7.js} (93%) rename static/assets/{teams_public.6ae1825a.js => teams_public.621a4659.js} (83%) delete mode 100644 static/assets/users_list.c6fce1fb.js create mode 100644 static/assets/users_list.e03972e4.js rename static/assets/{users_private.63e06649.js => users_private.bfcc0675.js} (83%) rename static/assets/{users_public.025dda56.js => users_public.158851db.js} (83%) rename static/assets/{userscore.1d4e199f.js => userscore.32000323.js} (87%) diff --git a/package.json b/package.json index d6ab22b..a4d1c6b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "verify": "vite build; git diff --quiet --exit-code" }, "dependencies": { - "@ctfdio/ctfd-js": "^0.0.12", + "@ctfdio/ctfd-js": "^0.0.14", "@fontsource/lato": "^4.5.3", "@fontsource/raleway": "^4.5.3", "@fortawesome/fontawesome-free": "6.5.1", diff --git a/static/assets/challenges.a2215eea.js b/static/assets/challenges.369de531.js similarity index 98% rename from static/assets/challenges.a2215eea.js rename to static/assets/challenges.369de531.js index 8defb74..7296603 100644 --- a/static/assets/challenges.a2215eea.js +++ b/static/assets/challenges.369de531.js @@ -1 +1 @@ -import{m as l,C as s,h as r,T as h,d as g,M as c,a as u}from"./index.7e48942e.js";function o(e){let a=new DOMParser().parseFromString(e,"text/html");return a.querySelectorAll('a[href*="://"]').forEach(i=>{i.setAttribute("target","_blank")}),a.documentElement.outerHTML}window.Alpine=l;l.store("challenge",{data:{view:""}});l.data("Hint",()=>({id:null,html:null,async showHint(e){if(e.target.open){let a=(await s.pages.challenge.loadHint(this.id)).data;if(a.content)this.html=o(a.html);else if(await s.pages.challenge.displayUnlock(this.id)){let i=await s.pages.challenge.loadUnlock(this.id);if(i.success){let d=(await s.pages.challenge.loadHint(this.id)).data;this.html=o(d.html)}else e.target.open=!1,s._functions.challenge.displayUnlockError(i)}else e.target.open=!1}}}));l.data("Challenge",()=>({id:null,next_id:null,submission:"",tab:null,solves:[],response:null,share_url:null,max_attempts:0,attempts:0,async init(){r()},getStyles(){let e={"modal-dialog":!0};try{switch(s.config.themeSettings.challenge_window_size){case"sm":e["modal-sm"]=!0;break;case"lg":e["modal-lg"]=!0;break;case"xl":e["modal-xl"]=!0;break;default:break}}catch(t){console.log("Error processing challenge_window_size"),console.log(t)}return e},async init(){r()},async showChallenge(){new h(this.$el).show()},async showSolves(){this.solves=await s.pages.challenge.loadSolves(this.id),this.solves.forEach(e=>(e.date=g(e.date).format("MMMM Do, h:mm:ss A"),e)),new h(this.$el).show()},getNextId(){return l.store("challenge").data.next_id},async nextChallenge(){let e=c.getOrCreateInstance("[x-ref='challengeWindow']");e._element.addEventListener("hidden.bs.modal",t=>{l.nextTick(()=>{this.$dispatch("load-challenge",this.getNextId())})},{once:!0}),e.hide()},async getShareUrl(){let e={type:"solve",challenge_id:this.id};const n=(await(await s.fetch("/api/v1/shares",{method:"POST",body:JSON.stringify(e)})).json()).data.url;this.share_url=n},copyShareUrl(){navigator.clipboard.writeText(this.share_url);let e=u.getOrCreateInstance(this.$el);e.enable(),e.show(),setTimeout(()=>{e.hide(),e.disable()},2e3)},async submitChallenge(){this.response=await s.pages.challenge.submitChallenge(this.id,this.submission),await this.renderSubmissionResponse()},async renderSubmissionResponse(){this.response.data.status==="correct"&&(this.submission=""),this.max_attempts>0&&this.response.data.status!="already_solved"&&(this.attempts+=1),this.$dispatch("load-challenges")}}));l.data("ChallengeBoard",()=>({loaded:!1,challenges:[],challenge:null,async init(){if(this.challenges=await s.pages.challenges.getChallenges(),this.loaded=!0,window.location.hash){let e=decodeURIComponent(window.location.hash.substring(1)),t=e.lastIndexOf("-");if(t>=0){let n=[e.slice(0,t),e.slice(t+1)][1];await this.loadChallenge(n)}}},getCategories(){const e=[];this.challenges.forEach(t=>{const{category:a}=t;e.includes(a)||e.push(a)});try{const t=s.config.themeSettings.challenge_category_order;if(t){const a=new Function(`return (${t})`);e.sort(a())}}catch(t){console.log("Error running challenge_category_order function"),console.log(t)}return e},getChallenges(e){let t=this.challenges;e!==null&&(t=this.challenges.filter(a=>a.category===e));try{const a=s.config.themeSettings.challenge_order;if(a){const n=new Function(`return (${a})`);t.sort(n())}}catch(a){console.log("Error running challenge_order function"),console.log(a)}return t},async loadChallenges(){this.challenges=await s.pages.challenges.getChallenges()},async loadChallenge(e){await s.pages.challenge.displayChallenge(e,t=>{t.data.view=o(t.data.view),l.store("challenge").data=t.data,l.nextTick(()=>{let a=c.getOrCreateInstance("[x-ref='challengeWindow']");a._element.addEventListener("hidden.bs.modal",n=>{history.replaceState(null,null," ")},{once:!0}),a.show(),history.replaceState(null,null,`#${t.data.name}-${e}`)})})}}));l.start(); +import{m as l,C as s,h as r,T as h,d as g,M as c,a as u}from"./index.2e31e3b8.js";function o(e){let a=new DOMParser().parseFromString(e,"text/html");return a.querySelectorAll('a[href*="://"]').forEach(i=>{i.setAttribute("target","_blank")}),a.documentElement.outerHTML}window.Alpine=l;l.store("challenge",{data:{view:""}});l.data("Hint",()=>({id:null,html:null,async showHint(e){if(e.target.open){let a=(await s.pages.challenge.loadHint(this.id)).data;if(a.content)this.html=o(a.html);else if(await s.pages.challenge.displayUnlock(this.id)){let i=await s.pages.challenge.loadUnlock(this.id);if(i.success){let d=(await s.pages.challenge.loadHint(this.id)).data;this.html=o(d.html)}else e.target.open=!1,s._functions.challenge.displayUnlockError(i)}else e.target.open=!1}}}));l.data("Challenge",()=>({id:null,next_id:null,submission:"",tab:null,solves:[],response:null,share_url:null,max_attempts:0,attempts:0,async init(){r()},getStyles(){let e={"modal-dialog":!0};try{switch(s.config.themeSettings.challenge_window_size){case"sm":e["modal-sm"]=!0;break;case"lg":e["modal-lg"]=!0;break;case"xl":e["modal-xl"]=!0;break;default:break}}catch(t){console.log("Error processing challenge_window_size"),console.log(t)}return e},async init(){r()},async showChallenge(){new h(this.$el).show()},async showSolves(){this.solves=await s.pages.challenge.loadSolves(this.id),this.solves.forEach(e=>(e.date=g(e.date).format("MMMM Do, h:mm:ss A"),e)),new h(this.$el).show()},getNextId(){return l.store("challenge").data.next_id},async nextChallenge(){let e=c.getOrCreateInstance("[x-ref='challengeWindow']");e._element.addEventListener("hidden.bs.modal",t=>{l.nextTick(()=>{this.$dispatch("load-challenge",this.getNextId())})},{once:!0}),e.hide()},async getShareUrl(){let e={type:"solve",challenge_id:this.id};const n=(await(await s.fetch("/api/v1/shares",{method:"POST",body:JSON.stringify(e)})).json()).data.url;this.share_url=n},copyShareUrl(){navigator.clipboard.writeText(this.share_url);let e=u.getOrCreateInstance(this.$el);e.enable(),e.show(),setTimeout(()=>{e.hide(),e.disable()},2e3)},async submitChallenge(){this.response=await s.pages.challenge.submitChallenge(this.id,this.submission),await this.renderSubmissionResponse()},async renderSubmissionResponse(){this.response.data.status==="correct"&&(this.submission=""),this.max_attempts>0&&this.response.data.status!="already_solved"&&(this.attempts+=1),this.$dispatch("load-challenges")}}));l.data("ChallengeBoard",()=>({loaded:!1,challenges:[],challenge:null,async init(){if(this.challenges=await s.pages.challenges.getChallenges(),this.loaded=!0,window.location.hash){let e=decodeURIComponent(window.location.hash.substring(1)),t=e.lastIndexOf("-");if(t>=0){let n=[e.slice(0,t),e.slice(t+1)][1];await this.loadChallenge(n)}}},getCategories(){const e=[];this.challenges.forEach(t=>{const{category:a}=t;e.includes(a)||e.push(a)});try{const t=s.config.themeSettings.challenge_category_order;if(t){const a=new Function(`return (${t})`);e.sort(a())}}catch(t){console.log("Error running challenge_category_order function"),console.log(t)}return e},getChallenges(e){let t=this.challenges;e!==null&&(t=this.challenges.filter(a=>a.category===e));try{const a=s.config.themeSettings.challenge_order;if(a){const n=new Function(`return (${a})`);t.sort(n())}}catch(a){console.log("Error running challenge_order function"),console.log(a)}return t},async loadChallenges(){this.challenges=await s.pages.challenges.getChallenges()},async loadChallenge(e){await s.pages.challenge.displayChallenge(e,t=>{t.data.view=o(t.data.view),l.store("challenge").data=t.data,l.nextTick(()=>{let a=c.getOrCreateInstance("[x-ref='challengeWindow']");a._element.addEventListener("hidden.bs.modal",n=>{history.replaceState(null,null," ")},{once:!0}),a.show(),history.replaceState(null,null,`#${t.data.name}-${e}`)})})}}));l.start(); diff --git a/static/assets/clipboard.1749e720.js b/static/assets/clipboard.0c9c5ddd.js similarity index 91% rename from static/assets/clipboard.1749e720.js rename to static/assets/clipboard.0c9c5ddd.js index 25fa675..bc78a14 100644 --- a/static/assets/clipboard.1749e720.js +++ b/static/assets/clipboard.0c9c5ddd.js @@ -1 +1 @@ -import{a as u}from"./index.7e48942e.js";function r(a){const t=new FormData(a),c=[];for(const[l,n]of t)c.push({name:l,value:n});return c}function h(a,t,c){let l={},n=r(a);return a.querySelectorAll("input[type=checkbox]:checked").forEach(e=>{n.push({name:e.name,value:!0})}),a.querySelectorAll("input[type=checkbox]:not(:checked)").forEach(e=>{n.push({name:e.name,value:!1})}),n.map(e=>{if(c)if(e.value!==null&&e.value!=="")l[e.name]=e.value;else{let o=a.querySelector(`[name='${e.name}']`);t[o.name]!==o.value&&(l[e.name]=e.value)}else l[e.name]=e.value}),l}function m(a){const t=new u(a,{title:"Copied!",trigger:"manual"});navigator.clipboard.writeText(a.value).then(()=>{t.show(),setTimeout(()=>{t.hide()},1500)})}export{m as c,h as s}; +import{a as u}from"./index.2e31e3b8.js";function r(a){const t=new FormData(a),c=[];for(const[l,n]of t)c.push({name:l,value:n});return c}function h(a,t,c){let l={},n=r(a);return a.querySelectorAll("input[type=checkbox]:checked").forEach(e=>{n.push({name:e.name,value:!0})}),a.querySelectorAll("input[type=checkbox]:not(:checked)").forEach(e=>{n.push({name:e.name,value:!1})}),n.map(e=>{if(c)if(e.value!==null&&e.value!=="")l[e.name]=e.value;else{let o=a.querySelector(`[name='${e.name}']`);t[o.name]!==o.value&&(l[e.name]=e.value)}else l[e.name]=e.value}),l}function m(a){const t=new u(a,{title:"Copied!",trigger:"manual"});navigator.clipboard.writeText(a.value).then(()=>{t.show(),setTimeout(()=>{t.hide()},1500)})}export{m as c,h as s}; diff --git a/static/assets/index.955e6486.js b/static/assets/index.1cf73b05.js similarity index 82% rename from static/assets/index.955e6486.js rename to static/assets/index.1cf73b05.js index d0b2bd4..55eed48 100644 --- a/static/assets/index.955e6486.js +++ b/static/assets/index.1cf73b05.js @@ -1 +1 @@ -import{u as l,i as e,a as c,b as o,c as f,d as u,e as r,f as $,g as b,h as m,j as d,k as j,l as O,m as g}from"./echarts.128204f2.js";function h(n,t){for(const s of Object.keys(t))t[s]instanceof Object&&Object.assign(t[s],h(n[s],t[s]));return Object.assign(n||{},t),n}function p(n){let t=n.concat();for(let s=0;s{s&&s.resize()})}export{p as c,v as e,h as m}; +import{u as l,i as e,a as c,b as o,c as f,d as u,e as r,f as $,g as b,h as m,j as d,k as j,l as O,m as g}from"./echarts.128204f2.js";function h(n,t){for(const s of Object.keys(t))t[s]instanceof Object&&Object.assign(t[s],h(n[s],t[s]));return Object.assign(n||{},t),n}function p(n){let t=n.concat();for(let s=0;s{s&&s.resize()})}export{p as c,v as e,h as m}; diff --git a/static/assets/index.7e48942e.js b/static/assets/index.2e31e3b8.js similarity index 79% rename from static/assets/index.7e48942e.js rename to static/assets/index.2e31e3b8.js index 9fbff57..85a08a4 100644 --- a/static/assets/index.7e48942e.js +++ b/static/assets/index.2e31e3b8.js @@ -1,6 +1,6 @@ var oe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof oe<"u"&&oe,ue={searchParams:"URLSearchParams"in oe,iterable:"Symbol"in oe&&"iterator"in Symbol,blob:"FileReader"in oe&&"Blob"in oe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in oe,arrayBuffer:"ArrayBuffer"in oe};function dl(e){return e&&DataView.prototype.isPrototypeOf(e)}if(ue.arrayBuffer)var hl=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],pl=ArrayBuffer.isView||function(e){return e&&hl.indexOf(Object.prototype.toString.call(e))>-1};function tn(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function si(e){return typeof e!="string"&&(e=String(e)),e}function oi(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return ue.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Z(e){this.map={},e instanceof Z?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Z.prototype.append=function(e,t){e=tn(e),t=si(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Z.prototype.delete=function(e){delete this.map[tn(e)]};Z.prototype.get=function(e){return e=tn(e),this.has(e)?this.map[e]:null};Z.prototype.has=function(e){return this.map.hasOwnProperty(tn(e))};Z.prototype.set=function(e,t){this.map[tn(e)]=si(t)};Z.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Z.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),oi(e)};Z.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),oi(e)};Z.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),oi(e)};ue.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function hr(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function lo(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function _l(e){var t=new FileReader,n=lo(t);return t.readAsArrayBuffer(e),n}function ml(e){var t=new FileReader,n=lo(t);return t.readAsText(e),n}function gl(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function ct(e,t){if(!(this instanceof ct))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof ct){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Z(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Z(t.headers)),this.method=yl(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ct.prototype.clone=function(){return new ct(this,{body:this._bodyInit})};function bl(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function El(e){var t=new Z,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` `)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),o=i.shift().trim();if(o){var a=i.join(":").trim();t.append(o,a)}}),t}uo.call(ct.prototype);function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Z(t.headers),this.url=t.url||"",this._initBody(e)}uo.call(De.prototype);De.prototype.clone=function(){return new De(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})};De.error=function(){var e=new De(null,{status:0,statusText:""});return e.type="error",e};var wl=[301,302,303,307,308];De.redirect=function(e,t){if(wl.indexOf(t)===-1)throw new RangeError("Invalid status code");return new De(null,{status:t,headers:{location:e}})};var tt=oe.DOMException;try{new tt}catch{tt=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt}function fo(e,t){return new Promise(function(n,r){var i=new ct(e,t);if(i.signal&&i.signal.aborted)return r(new tt("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var f={status:o.status,statusText:o.statusText,headers:El(o.getAllResponseHeaders()||"")};f.url="responseURL"in o?o.responseURL:f.headers.get("X-Request-URL");var d="response"in o?o.response:o.responseText;setTimeout(function(){n(new De(d,f))},0)},o.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){r(new tt("Aborted","AbortError"))},0)};function u(f){try{return f===""&&oe.location.href?oe.location.href:f}catch{return f}}o.open(i.method,u(i.url),!0),i.credentials==="include"?o.withCredentials=!0:i.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(ue.blob?o.responseType="blob":ue.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Z)?Object.getOwnPropertyNames(t.headers).forEach(function(f){o.setRequestHeader(f,si(t.headers[f]))}):i.headers.forEach(function(f,d){o.setRequestHeader(d,f)}),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){o.readyState===4&&i.signal.removeEventListener("abort",a)}),o.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}fo.polyfill=!0;oe.fetch||(oe.fetch=fo,oe.Headers=Z,oe.Request=ct,oe.Response=De);const X={urlRoot:"",csrfNonce:"",userMode:"",userName:"",userEmail:"",start:null,end:null,themeSettings:{},eventSounds:["/themes/core/static/sounds/notification.webm","/themes/core/static/sounds/notification.mp3"]},Al=window.fetch,Tl=(e,t)=>(t===void 0&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=X.urlRoot+e,t.headers===void 0&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=X.csrfNonce,Al(e,t));var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ho={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var b=["th","st","nd","rd"],v=A%100;return"["+A+(b[(v-20)%10]||b[v]||b[0])+"]"}},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v)/,Ml=/^\w+$/;function li(e,t){const n=Ll(t);return!e||!n&&!Ot(t)&&!ne(t)?[]:!n&&Dl.test(e)?t.getElementsByClassName(e.slice(1).replace(/\\/g,"")):!n&&Ml.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e)}class Vn{constructor(t,n){if(!t)return;if(Pr(t))return t;let r=t;if(de(t)){const i=(Pr(n)?n[0]:n)||Pe;if(r=Cl.test(t)&&"getElementById"in i?i.getElementById(t.slice(1).replace(/\\/g,"")):Nl.test(t)?To(t):li(t,i),!r)return}else if(ht(t))return this.ready(t);(r.nodeType||r===Cn)&&(r=[r]),this.length=r.length;for(let i=0,o=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function Dn(...e){const t=kl(e[0])?e.shift():!1,n=e.shift(),r=e.length;if(!n)return{};if(!r)return Dn(t,H,n);for(let i=0;i{!ne(o)||ie(n,(a,u)=>{r?t?o.classList.add(u):o.classList.remove(u):o.classList.toggle(u)})})};C.addClass=function(e){return this.toggleClass(e,!0)};C.removeAttr=function(e){const t=jn(e);return this.each((n,r)=>{!ne(r)||ie(t,(i,o)=>{r.removeAttribute(o)})})};function Rl(e,t){if(!!e){if(de(e)){if(arguments.length<2){if(!this[0]||!ne(this[0]))return;const n=this[0].getAttribute(e);return Zt(n)?void 0:n}return he(t)?this:Zt(t)?this.removeAttr(e):this.each((n,r)=>{!ne(r)||r.setAttribute(e,t)})}for(const n in e)this.attr(n,e[n]);return this}}C.attr=Rl;C.removeClass=function(e){return arguments.length?this.toggleClass(e,!1):this.attr("class","")};C.hasClass=function(e){return!!e&&ci.call(this,t=>ne(t)&&t.classList.contains(e))};C.get=function(e){return he(e)?Eo.call(this):(e=Number(e),this[e<0?e+this.length:e])};C.eq=function(e){return H(this.get(e))};C.first=function(){return this.eq(0)};C.last=function(){return this.eq(-1)};function Hl(e){return he(e)?this.get().map(t=>ne(t)||Il(t)?t.textContent:"").join(""):this.each((t,n)=>{!ne(n)||(n.textContent=e)})}C.text=Hl;function Re(e,t,n){if(!ne(e))return;const r=Cn.getComputedStyle(e,null);return n?r.getPropertyValue(t)||void 0:r[t]||e.style[t]}function xe(e,t){return parseInt(Re(e,t),10)||0}function ds(e,t){return xe(e,`border${t?"Left":"Top"}Width`)+xe(e,`padding${t?"Left":"Top"}`)+xe(e,`padding${t?"Right":"Bottom"}`)+xe(e,`border${t?"Right":"Bottom"}Width`)}const _r={};function Bl(e){if(_r[e])return _r[e];const t=dt(e);Pe.body.insertBefore(t,null);const n=Re(t,"display");return Pe.body.removeChild(t),_r[e]=n!=="none"?n:"block"}function hs(e){return Re(e,"display")==="none"}function Ao(e,t){const n=e&&(e.matches||e.webkitMatchesSelector||e.msMatchesSelector);return!!n&&!!t&&n.call(e,t)}function Wn(e){return de(e)?(t,n)=>Ao(n,e):ht(e)?e:Pr(e)?(t,n)=>e.is(n):e?(t,n)=>n===e:()=>!1}C.filter=function(e){const t=Wn(e);return H(ai.call(this,(n,r)=>t.call(n,r,n)))};function qe(e,t){return t?e.filter(t):e}C.detach=function(e){return qe(this,e).each((t,n)=>{n.parentNode&&n.parentNode.removeChild(n)}),this};const Fl=/^\s*<(\w+)[^>]*>/,Vl=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ps={"*":go,tr:Sl,td:fs,th:fs,thead:pr,tbody:pr,tfoot:pr};function To(e){if(!de(e))return[];if(Vl.test(e))return[dt(RegExp.$1)];const t=Fl.test(e)&&RegExp.$1,n=ps[t]||ps["*"];return n.innerHTML=e,H(n.childNodes).detach().get()}H.parseHTML=To;C.has=function(e){const t=de(e)?(n,r)=>li(e,r).length:(n,r)=>r.contains(e);return this.filter(t)};C.not=function(e){const t=Wn(e);return this.filter((n,r)=>(!de(e)||ne(r))&&!t.call(r,n,r))};function Be(e,t,n,r){const i=[],o=ht(t),a=r&&Wn(r);for(let u=0,f=e.length;ut.selected&&!t.disabled&&!t.parentNode.disabled),"value"):e.value||""}function jl(e){return arguments.length?this.each((t,n)=>{const r=n.multiple&&n.options;if(r||Lo.test(n.type)){const i=Fn(e)?bo.call(e,String):Zt(e)?[]:[String(e)];r?ie(n.options,(o,a)=>{a.selected=i.indexOf(a.value)>=0},!0):n.checked=i.indexOf(n.value)>=0}else n.value=he(e)||Zt(e)?"":e}):this[0]&&So(this[0])}C.val=jl;C.is=function(e){const t=Wn(e);return ci.call(this,(n,r)=>t.call(n,r,n))};H.guid=1;function Me(e){return e.length>1?ai.call(e,(t,n,r)=>yo.call(r,t)===n):e}H.unique=Me;C.add=function(e,t){return H(Me(this.get().concat(H(e,t).get())))};C.children=function(e){return qe(H(Me(Be(this,t=>t.children))),e)};C.parent=function(e){return qe(H(Me(Be(this,"parentNode"))),e)};C.index=function(e){const t=e?H(e)[0]:this[0],n=e?this:H(t).parent().children();return yo.call(n,t)};C.closest=function(e){const t=this.filter(e);if(t.length)return t;const n=this.parent();return n.length?n.closest(e):t};C.siblings=function(e){return qe(H(Me(Be(this,t=>H(t).parent().children().not(t)))),e)};C.find=function(e){return H(Me(Be(this,t=>li(e,t))))};const Wl=/^\s*\s*$/g,Yl=/^$|^module$|\/(java|ecma)script/i,Gl=["type","src","nonce","noModule"];function Kl(e,t){const n=H(e);n.filter("script").add(n.find("script")).each((r,i)=>{if(Yl.test(i.type)&&mo.contains(i)){const o=dt("script");o.text=i.textContent.replace(Wl,""),ie(Gl,(a,u)=>{i[u]&&(o[u]=i[u])}),t.head.insertBefore(o,null),t.head.removeChild(o)}})}function Ul(e,t,n,r,i){r?e.insertBefore(t,n?e.firstChild:null):e.nodeName==="HTML"?e.parentNode.replaceChild(t,e):e.parentNode.insertBefore(t,n?e:e.nextSibling),i&&Kl(t,e.ownerDocument)}function ze(e,t,n,r,i,o,a,u){return ie(e,(f,d)=>{ie(H(d),(g,s)=>{ie(H(t),(c,l)=>{const h=n?s:l,_=n?l:s,p=n?g:c;Ul(h,p?_.cloneNode(!0):_,r,i,!p)},u)},a)},o),t}C.after=function(){return ze(arguments,this,!1,!1,!1,!0,!0)};C.append=function(){return ze(arguments,this,!1,!1,!0)};function ql(e){if(!arguments.length)return this[0]&&this[0].innerHTML;if(he(e))return this;const t=/]/.test(e);return this.each((n,r)=>{!ne(r)||(t?H(r).empty().append(e):r.innerHTML=e)})}C.html=ql;C.appendTo=function(e){return ze(arguments,this,!0,!1,!0)};C.wrapInner=function(e){return this.each((t,n)=>{const r=H(n),i=r.contents();i.length?i.wrapAll(e):r.append(e)})};C.before=function(){return ze(arguments,this,!1,!0)};C.wrapAll=function(e){let t=H(e),n=t[0];for(;n.children.length;)n=n.firstElementChild;return this.first().before(t),this.appendTo(n)};C.wrap=function(e){return this.each((t,n)=>{const r=H(e)[0];H(n).wrapAll(t?r.cloneNode(!0):r)})};C.insertAfter=function(e){return ze(arguments,this,!0,!1,!1,!1,!1,!0)};C.insertBefore=function(e){return ze(arguments,this,!0,!0)};C.prepend=function(){return ze(arguments,this,!1,!0,!0,!0,!0)};C.prependTo=function(e){return ze(arguments,this,!0,!0,!0,!1,!1,!0)};C.contents=function(){return H(Me(Be(this,e=>e.tagName==="IFRAME"?[e.contentDocument]:e.tagName==="TEMPLATE"?e.content.childNodes:e.childNodes)))};C.next=function(e,t,n){return qe(H(Me(Be(this,"nextElementSibling",t,n))),e)};C.nextAll=function(e){return this.next(e,!0)};C.nextUntil=function(e,t){return this.next(t,!0,e)};C.parents=function(e,t){return qe(H(Me(Be(this,"parentElement",!0,t))),e)};C.parentsUntil=function(e,t){return this.parents(t,e)};C.prev=function(e,t,n){return qe(H(Me(Be(this,"previousElementSibling",t,n))),e)};C.prevAll=function(e){return this.prev(e,!0)};C.prevUntil=function(e,t){return this.prev(t,!0,e)};C.map=function(e){return H(Ol.apply([],bo.call(this,(t,n)=>e.call(t,n,t))))};C.clone=function(){return this.map((e,t)=>t.cloneNode(!0))};C.offsetParent=function(){return this.map((e,t)=>{let n=t.offsetParent;for(;n&&Re(n,"position")==="static";)n=n.offsetParent;return n||mo})};C.slice=function(e,t){return H(Eo.call(this,e,t))};const zl=/-([a-z])/g;function fi(e){return e.replace(zl,(t,n)=>n.toUpperCase())}C.ready=function(e){const t=()=>setTimeout(e,0,H);return Pe.readyState!=="loading"?t():Pe.addEventListener("DOMContentLoaded",t),this};C.unwrap=function(){return this.parent().each((e,t)=>{if(t.tagName==="BODY")return;const n=H(t);n.replaceWith(n.children())}),this};C.offset=function(){const e=this[0];if(!e)return;const t=e.getBoundingClientRect();return{top:t.top+Cn.pageYOffset,left:t.left+Cn.pageXOffset}};C.position=function(){const e=this[0];if(!e)return;const t=Re(e,"position")==="fixed",n=t?e.getBoundingClientRect():this.offset();if(!t){const r=e.ownerDocument;let i=e.offsetParent||r.documentElement;for(;(i===r.body||i===r.documentElement)&&Re(i,"position")==="static";)i=i.parentNode;if(i!==e&&ne(i)){const o=H(i).offset();n.top-=o.top+xe(i,"borderTopWidth"),n.left-=o.left+xe(i,"borderLeftWidth")}}return{top:n.top-xe(e,"marginTop"),left:n.left-xe(e,"marginLeft")}};const Oo={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};C.prop=function(e,t){if(!!e){if(de(e))return e=Oo[e]||e,arguments.length<2?this[0]&&this[0][e]:this.each((n,r)=>{r[e]=t});for(const n in e)this.prop(n,e[n]);return this}};C.removeProp=function(e){return this.each((t,n)=>{delete n[Oo[e]||e]})};const Xl=/^--/;function di(e){return Xl.test(e)}const mr={},{style:Ql}=go,Jl=["webkit","moz","ms"];function Zl(e,t=di(e)){if(t)return e;if(!mr[e]){const n=fi(e),r=`${n[0].toUpperCase()}${n.slice(1)}`,i=`${n} ${Jl.join(`${r} `)}${r}`.split(" ");ie(i,(o,a)=>{if(a in Ql)return mr[e]=a,!1})}return mr[e]}const eu={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function xo(e,t,n=di(e)){return!n&&!eu[e]&&wo(t)?`${t}px`:t}function tu(e,t){if(de(e)){const n=di(e);return e=Zl(e,n),arguments.length<2?this[0]&&Re(this[0],e,n):e?(t=xo(e,t,n),this.each((r,i)=>{!ne(i)||(n?i.style.setProperty(e,t):i.style[e]=t)})):this}for(const n in e)this.css(n,e[n]);return this}C.css=tu;function $o(e,t){try{return e(t)}catch{return t}}const nu=/^\s+|\s+$/;function _s(e,t){const n=e.dataset[t]||e.dataset[fi(t)];return nu.test(n)?n:$o(JSON.parse,n)}function ru(e,t,n){n=$o(JSON.stringify,n),e.dataset[fi(t)]=n}function iu(e,t){if(!e){if(!this[0])return;const n={};for(const r in this[0].dataset)n[r]=_s(this[0],r);return n}if(de(e))return arguments.length<2?this[0]&&_s(this[0],e):he(t)?this:this.each((n,r)=>{ru(r,e,t)});for(const n in e)this.data(n,e[n]);return this}C.data=iu;function Co(e,t){const n=e.documentElement;return Math.max(e.body[`scroll${t}`],n[`scroll${t}`],e.body[`offset${t}`],n[`offset${t}`],n[`client${t}`])}ie([!0,!1],(e,t)=>{ie(["Width","Height"],(n,r)=>{const i=`${t?"outer":"inner"}${r}`;C[i]=function(o){if(!!this[0])return St(this[0])?t?this[0][`inner${r}`]:this[0].document.documentElement[`client${r}`]:Ot(this[0])?Co(this[0],r):this[0][`${t?"offset":"client"}${r}`]+(o&&t?xe(this[0],`margin${n?"Top":"Left"}`)+xe(this[0],`margin${n?"Bottom":"Right"}`):0)}})});ie(["Width","Height"],(e,t)=>{const n=t.toLowerCase();C[n]=function(r){if(!this[0])return he(r)?void 0:this;if(!arguments.length)return St(this[0])?this[0].document.documentElement[`client${t}`]:Ot(this[0])?Co(this[0],t):this[0].getBoundingClientRect()[n]-ds(this[0],!e);const i=parseInt(r,10);return this.each((o,a)=>{if(!ne(a))return;const u=Re(a,"boxSizing");a.style[n]=xo(n,i+(u==="border-box"?ds(a,!e):0))})}});const ms="___cd";C.toggle=function(e){return this.each((t,n)=>{if(!ne(n))return;(he(e)?hs(n):e)?(n.style.display=n[ms]||"",hs(n)&&(n.style.display=Bl(n.tagName))):(n[ms]=Re(n,"display"),n.style.display="none")})};C.hide=function(){return this.toggle(!1)};C.show=function(){return this.toggle(!0)};const gs="___ce",hi=".",pi={focus:"focusin",blur:"focusout"},Do={mouseenter:"mouseover",mouseleave:"mouseout"},su=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function _i(e){return Do[e]||pi[e]||e}function mi(e){const t=e.split(hi);return[t[0],t.slice(1).sort()]}C.trigger=function(e,t){if(de(e)){const[r,i]=mi(e),o=_i(r);if(!o)return this;const a=su.test(o)?"MouseEvents":"HTMLEvents";e=Pe.createEvent(a),e.initEvent(o,!0,!0),e.namespace=i.join(hi),e.___ot=r}e.___td=t;const n=e.___ot in pi;return this.each((r,i)=>{n&&ht(i[e.___ot])&&(i[`___i${e.type}`]=!0,i[e.___ot](),i[`___i${e.type}`]=!1),i.dispatchEvent(e)})};function No(e){return e[gs]=e[gs]||{}}function ou(e,t,n,r,i){const o=No(e);o[t]=o[t]||[],o[t].push([n,r,i]),e.addEventListener(t,i)}function Mo(e,t){return!t||!ci.call(t,n=>e.indexOf(n)<0)}function Nn(e,t,n,r,i){const o=No(e);if(t)o[t]&&(o[t]=o[t].filter(([a,u,f])=>{if(i&&f.guid!==i.guid||!Mo(a,n)||r&&r!==u)return!0;e.removeEventListener(t,f)}));else for(t in o)Nn(e,t,n,r,i)}C.off=function(e,t,n){if(he(e))this.each((r,i)=>{!ne(i)&&!Ot(i)&&!St(i)||Nn(i)});else if(de(e))ht(t)&&(n=t,t=""),ie(jn(e),(r,i)=>{const[o,a]=mi(i),u=_i(o);this.each((f,d)=>{!ne(d)&&!Ot(d)&&!St(d)||Nn(d,u,a,t,n)})});else for(const r in e)this.off(r,e[r]);return this};C.remove=function(e){return qe(this,e).detach().off(),this};C.replaceWith=function(e){return this.before(e).remove()};C.replaceAll=function(e){return H(e).replaceWith(this),this};function au(e,t,n,r,i){if(!de(e)){for(const o in e)this.on(o,t,n,e[o],i);return this}return de(t)||(he(t)||Zt(t)?t="":he(n)?(n=t,t=""):(r=n,n=t,t="")),ht(r)||(r=n,n=void 0),r?(ie(jn(e),(o,a)=>{const[u,f]=mi(a),d=_i(u),g=u in Do,s=u in pi;!d||this.each((c,l)=>{if(!ne(l)&&!Ot(l)&&!St(l))return;const h=function(_){if(_.target[`___i${_.type}`])return _.stopImmediatePropagation();if(_.namespace&&!Mo(f,_.namespace.split(hi))||!t&&(s&&(_.target!==l||_.___ot===d)||g&&_.relatedTarget&&l.contains(_.relatedTarget)))return;let p=l;if(t){let E=_.target;for(;!Ao(E,t);)if(E===l||(E=E.parentNode,!E))return;p=E}Object.defineProperty(_,"currentTarget",{configurable:!0,get(){return p}}),Object.defineProperty(_,"delegateTarget",{configurable:!0,get(){return l}}),Object.defineProperty(_,"data",{configurable:!0,get(){return n}});const m=r.call(p,_,_.___td);i&&Nn(l,d,f,t,h),m===!1&&(_.preventDefault(),_.stopPropagation())};h.guid=r.guid=r.guid||H.guid++,ou(l,d,f,t,h)})}),this):this}C.on=au;function cu(e,t,n,r){return this.on(e,t,n,r,!0)}C.one=cu;const lu=/\r?\n/g;function uu(e,t){return`&${encodeURIComponent(e)}=${encodeURIComponent(t.replace(lu,`\r -`))}`}const fu=/file|reset|submit|button|image/i,Lo=/radio|checkbox/i;C.serialize=function(){let e="";return this.each((t,n)=>{ie(n.elements||[n],(r,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||fu.test(i.type)||Lo.test(i.type)&&!i.checked)return;const o=So(i);if(!he(o)){const a=Fn(o)?o:[o];ie(a,(u,f)=>{e+=uu(i.name,f)})}})}),e.slice(1)};nn.extend(_o);function du(){let e=document.querySelectorAll("[data-time]");for(const t of e){let n=t.dataset.time,r=t.dataset.timeFormat;t.innerText=nn(n).format(r)}}function hu(e,t){H(t).select(),document.execCommand("copy"),H(e.target).tooltip({title:"Copied!",trigger:"manual"}),H(e.target).tooltip("show"),setTimeout(function(){H(e.target).tooltip("hide")},1500)}function pu(e){let t=0,n,r,i;if(e.length===0)return t;for(n=0,i=e.length;nnew Promise((t,n)=>{const r=document.querySelector(`script[src='${e}']`);r&&r.remove();const i=document.createElement("script");document.body.appendChild(i),i.onload=t,i.onerror=n,i.async=!0,i.src=e});async function gu(e,t){M._internal.challenge={};let n=M.config,r=await ko(e);M._functions.challenge.displayChallenge&&M._functions.challenge.displayChallenge(r),Po(n.urlRoot+r.type_data.scripts.view).then(()=>{const o=M._internal.challenge;o.data=r,o.preRender(),M._functions.challenge.renderChallenge?M._functions.challenge.renderChallenge(o):t&&t(o),o.postRender()})}async function vu(e,t,n=!1){if(M._functions.challenge.submitChallenge){M._functions.challenge.submitChallenge(e,t);return}let r="/api/v1/challenges/attempt";(n===!0||M.config.preview===!0)&&(r+="?preview=true");const o=await(await M.fetch(r,{method:"POST",body:JSON.stringify({challenge_id:e,submission:t})})).json();return M._functions.challenge.displaySubmissionResponse&&M._functions.challenge.displaySubmissionResponse(o),o}async function Ro(e){return await(await M.fetch(`/api/v1/hints/${e}`,{method:"GET"})).json()}async function Ho(e){return await(await M.fetch("/api/v1/unlocks",{method:"POST",body:JSON.stringify({target:e,type:"hints"})})).json()}async function Bo(e){let n=(await Ro(e)).data;if(n.content){M._functions.challenge.displayHint(n);return}if(await Fo(n)){let i=Ho(e);i.success?await Bo(e):M._functions.challenge.displayUnlockError(i)}}async function Fo(e){return M._functions.challenge.displayUnlock(e)}async function Vo(e){return(await(await M.fetch(`/api/v1/challenges/${e}/solves`,{method:"GET"})).json()).data}async function yu(e){let t=await Vo(e);M._functions.challenge.displaySolves&&M._functions.challenge.displaySolves(t)}async function bu(){return(await(await M.fetch("/api/v1/scoreboard",{method:"GET"})).json()).data}async function Eu(e){return(await(await M.fetch(`/api/v1/scoreboard/top/${e}`,{method:"GET"})).json()).data}async function wu(e){return await(await M.fetch("/api/v1/users/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Au(e){return await(await M.fetch("/api/v1/tokens",{method:"POST",body:JSON.stringify(e)})).json()}async function Tu(e){return await(await M.fetch(`/api/v1/tokens/${e}`,{method:"DELETE"})).json()}async function Su(e){return await(await M.fetch(`/api/v1/users/${e}/solves`,{method:"GET"})).json()}async function Ou(e){return await(await M.fetch(`/api/v1/users/${e}/fails`,{method:"GET"})).json()}async function xu(e){return await(await M.fetch(`/api/v1/users/${e}/awards`,{method:"GET"})).json()}async function $u(){return await(await M.fetch("/api/v1/teams/me/members",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}async function Cu(){return await(await M.fetch("/api/v1/teams/me",{method:"DELETE"})).json()}async function Du(e){return await(await M.fetch("/api/v1/teams/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Nu(e){return await(await M.fetch(`/api/v1/teams/${e}/solves`,{method:"GET"})).json()}async function Mu(e){return await(await M.fetch(`/api/v1/teams/${e}/fails`,{method:"GET"})).json()}async function Lu(e){return await(await M.fetch(`/api/v1/teams/${e}/awards`,{method:"GET"})).json()}function Iu(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function jo(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}class ku{constructor(){this.id=Math.random(),this.isMaster=!1,this.others={},window.addEventListener("storage",this),window.addEventListener("unload",this),this.broadcast("hello"),setTimeout(this.check.bind(this),500),this._checkInterval=setInterval(this.check.bind(this),9e3),this._pingInterval=setInterval(this.sendPing.bind(this),17e3)}destroy(){clearInterval(this._pingInterval),clearInterval(this._checkInterval),window.removeEventListener("storage",this),window.removeEventListener("unload",this),this.broadcast("bye")}handleEvent(t){if(t.type==="unload"){this.destroy();return}if(t.type==="broadcast")try{const n=JSON.parse(t.newValue);n.id!==this.id&&this[n.type](n)}catch(n){console.error(n)}}sendPing(){this.broadcast("ping")}hello(t){if(this.ping(t),t.id{ie(n.elements||[n],(r,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||fu.test(i.type)||Lo.test(i.type)&&!i.checked)return;const o=So(i);if(!he(o)){const a=Fn(o)?o:[o];ie(a,(u,f)=>{e+=uu(i.name,f)})}})}),e.slice(1)};nn.extend(_o);function du(){let e=document.querySelectorAll("[data-time]");for(const t of e){let n=t.dataset.time,r=t.dataset.timeFormat;t.innerText=nn(n).format(r)}}function hu(e,t){H(t).select(),document.execCommand("copy"),H(e.target).tooltip({title:"Copied!",trigger:"manual"}),H(e.target).tooltip("show"),setTimeout(function(){H(e.target).tooltip("hide")},1500)}function pu(e){let t=0,n,r,i;if(e.length===0)return t;for(n=0,i=e.length;nnew Promise((t,n)=>{const r=document.querySelector(`script[src='${e}']`);r&&r.remove();const i=document.createElement("script");document.body.appendChild(i),i.onload=t,i.onerror=n,i.async=!0,i.src=e});async function gu(e,t){M._internal.challenge={};let n=M.config,r=await ko(e);M._functions.challenge.displayChallenge&&M._functions.challenge.displayChallenge(r),Po(n.urlRoot+r.type_data.scripts.view).then(()=>{const o=M._internal.challenge;o.data=r,o.preRender(),M._functions.challenge.renderChallenge?M._functions.challenge.renderChallenge(o):t&&t(o),o.postRender()})}async function vu(e,t,n=!1){if(M._functions.challenge.submitChallenge){M._functions.challenge.submitChallenge(e,t);return}let r="/api/v1/challenges/attempt";(n===!0||M.config.preview===!0)&&(r+="?preview=true");const o=await(await M.fetch(r,{method:"POST",body:JSON.stringify({challenge_id:e,submission:t})})).json();return M._functions.challenge.displaySubmissionResponse&&M._functions.challenge.displaySubmissionResponse(o),o}async function Ro(e){return await(await M.fetch(`/api/v1/hints/${e}`,{method:"GET"})).json()}async function Ho(e){return await(await M.fetch("/api/v1/unlocks",{method:"POST",body:JSON.stringify({target:e,type:"hints"})})).json()}async function Bo(e){let n=(await Ro(e)).data;if(n.content){M._functions.challenge.displayHint(n);return}if(await Fo(n)){let i=Ho(e);i.success?await Bo(e):M._functions.challenge.displayUnlockError(i)}}async function Fo(e){return M._functions.challenge.displayUnlock(e)}async function Vo(e){return(await(await M.fetch(`/api/v1/challenges/${e}/solves`,{method:"GET"})).json()).data}async function yu(e){let t=await Vo(e);M._functions.challenge.displaySolves&&M._functions.challenge.displaySolves(t)}async function bu(e=null){let t="/api/v1/scoreboard";return e&&(t=`${t}?bracket_id=${e}`),(await(await M.fetch(t,{method:"GET"})).json()).data}async function Eu(e,t=null){let n=`/api/v1/scoreboard/top/${e}`;return t&&(n=`${n}?bracket_id=${t}`),(await(await M.fetch(n,{method:"GET"})).json()).data}async function wu(e){return(await(await M.fetch(`/api/v1/brackets?type=${e}`,{method:"GET"})).json()).data}async function Au(e){return await(await M.fetch("/api/v1/users/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Tu(e){return await(await M.fetch("/api/v1/tokens",{method:"POST",body:JSON.stringify(e)})).json()}async function Su(e){return await(await M.fetch(`/api/v1/tokens/${e}`,{method:"DELETE"})).json()}async function Ou(e){return await(await M.fetch(`/api/v1/users/${e}/solves`,{method:"GET"})).json()}async function xu(e){return await(await M.fetch(`/api/v1/users/${e}/fails`,{method:"GET"})).json()}async function $u(e){return await(await M.fetch(`/api/v1/users/${e}/awards`,{method:"GET"})).json()}async function Cu(){return await(await M.fetch("/api/v1/teams/me/members",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}async function Du(){return await(await M.fetch("/api/v1/teams/me",{method:"DELETE"})).json()}async function Nu(e){return await(await M.fetch("/api/v1/teams/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Mu(e){return await(await M.fetch(`/api/v1/teams/${e}/solves`,{method:"GET"})).json()}async function Lu(e){return await(await M.fetch(`/api/v1/teams/${e}/fails`,{method:"GET"})).json()}async function Iu(e){return await(await M.fetch(`/api/v1/teams/${e}/awards`,{method:"GET"})).json()}function ku(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function jo(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}class Pu{constructor(){this.id=Math.random(),this.isMaster=!1,this.others={},window.addEventListener("storage",this),window.addEventListener("unload",this),this.broadcast("hello"),setTimeout(this.check.bind(this),500),this._checkInterval=setInterval(this.check.bind(this),9e3),this._pingInterval=setInterval(this.sendPing.bind(this),17e3)}destroy(){clearInterval(this._pingInterval),clearInterval(this._checkInterval),window.removeEventListener("storage",this),window.removeEventListener("unload",this),this.broadcast("bye")}handleEvent(t){if(t.type==="unload"){this.destroy();return}if(t.type==="broadcast")try{const n=JSON.parse(t.newValue);n.id!==this.id&&this[n.type](n)}catch(n){console.error(n)}}sendPing(){this.broadcast("ping")}hello(t){if(this.ping(t),t.id=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,a,u){var f=this;if(!f.ctx||!f.ctx.listener)return f;var d=f._orientation;if(r=typeof r!="number"?d[1]:r,i=typeof i!="number"?d[2]:i,o=typeof o!="number"?d[3]:o,a=typeof a!="number"?d[4]:a,u=typeof u!="number"?d[5]:u,typeof n=="number")f._orientation=[n,r,i,o,a,u],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(u,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,r,i,o,a,u);else return d;return f},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var a=i._getSoundIds(r),u=0;u"u")if(typeof n=="number")a._pos=[n,r,i];else return a._pos;for(var u=a._getSoundIds(o),f=0;f"u")if(typeof n=="number")a._orientation=[n,r,i];else return a._orientation;for(var u=a._getSoundIds(o),f=0;f"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return a=n._soundById(parseInt(r[0],10)),a?a._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var u=n._getSoundIds(o),f=0;fJSON.parse(localStorage.getItem(`CTFd:${e}`))||t,Go=(e,t)=>{localStorage.setItem(`CTFd:${e}`,JSON.stringify(t))};function Yn(){return Yo("read_notifications")}function Gn(){return Yo("unread_notifications")}function gi(e){Go("read_notifications",e)}function Kn(e){Go("unread_notifications",e)}function Pu(e){const t=[...Yn(),e];return gi(t),Ko(e),t}function Ru(e){const t=[...Gn(),e];return Kn(t),t}function vs(){const e=Yn();return e.length===0?0:Math.max(...e)}function Ko(e){const n=Gn().filter(r=>r!==e);Kn(n)}function Hu(){const e=Gn(),t=Yn();gi(t.concat(e)),Kn([])}const q={init:(e,t)=>{q.source=new EventSource(e+"/events");for(let r=0;r{let i=r.headers.get("result-count");i&&(q.controller.broadcast("counter",{count:i}),M._functions.events.eventCount(i))})},controller:new ku,source:null,howl:null,connect:()=>{q.source.addEventListener("notification",function(e){let t=JSON.parse(e.data);q.controller.broadcast("notification",t),M.events.counter.unread.add(t.id);let n=M.events.counter.unread.getAll().length;q.controller.broadcast("counter",{count:n}),M._functions.events.eventCount(n),q.render(t),t.sound&&q.howl.play()},!1)},disconnect:()=>{q.source&&q.source.close()},render:e=>{switch(e.type){case"toast":{M._functions.events.eventToast(e);break}case"alert":{M._functions.events.eventAlert(e);break}case"background":{M._functions.events.eventBackground(e);break}default:{console.log(e),alert(e);break}}},counter:{read:{getAll:Yn,setAll:gi,add:Pu,getLast:vs},unread:{getAll:Gn,setAll:Kn,add:Ru,remove:Ko,readAll:Hu}}};q.controller.alert=function(e){q.render(e)};q.controller.toast=function(e){q.render(e)};q.controller.background=function(e){q.render(e)};q.controller.counter=function(e){M._functions.events.eventCount(e.count)};q.controller.masterDidChange=function(){this.isMaster?q.connect():q.disconnect()};var Uo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(d,g,s,c){return o.fromToBase(d,g,s,c)}i.en.relativeTime=a,o.fromToBase=function(d,g,s,c,l){for(var h,_,p,m=s.$locale().relativeTime||a,E=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],O=E.length,D=0;D0,I<=L.r||!L.r){I<=1&&D>0&&(L=E[D-1]);var F=m[L.l];l&&(I=l(""+I)),_=typeof F=="string"?F.replace("%d",I):F(I,g,L.l,p);break}}if(g)return _;var j=p?m.future:m.past;return typeof j=="function"?j(_):j.replace("%s",_)},o.to=function(d,g){return u(d,g,this,!0)},o.from=function(d,g){return u(d,g,this)};var f=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(f(this),d)},o.fromNow=function(d){return this.from(f(this),d)}}})})(Uo);const Bu=Uo.exports;nn.extend(_o);nn.extend(Bu);const yt={id:null,name:null,email:null},Sn={id:null,name:null},Fu={},Vu={challenge:{displayChallenge:null,renderChallenge:null,displayHint(e){alert(e.content)},displayUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displayUnlockError(e){const t=[];Object.keys(e.errors).map(r=>{t.push(e.errors[r])});const n=t.join(` -`);alert(n)},submitChallenge:null,displaySubmissionResponse:null,displaySolves:null},challenges:{displayChallenges:null,sortChallenges:null},events:{eventAlert:null,eventToast:null,eventBackground:null,eventRead:null,eventCount:null}},ju={htmlEntities:jo,colorHash:_u,copyToClipboard:hu,hashCode:pu,renderTimes:du},Wu={ajax:{getScript:Po},html:{createHtmlNode:Iu,htmlEntities:jo}},Yu={challenge:{displayChallenge:gu,submitChallenge:vu,loadSolves:Vo,displaySolves:yu,loadHint:Ro,loadUnlock:Ho,displayUnlock:Fo,displayHint:Bo},challenges:{getChallenges:Io,getChallenge:ko,displayChallenges:mu},scoreboard:{getScoreboard:bu,getScoreboardDetail:Eu},settings:{updateSettings:wu,generateToken:Au,deleteToken:Tu},users:{userSolves:Su,userFails:Ou,userAwards:xu},teams:{getInviteToken:$u,disbandTeam:Cu,updateTeamSettings:Du,teamSolves:Nu,teamFails:Mu,teamAwards:Lu}},Gu={$:H,dayjs:nn};let ys=!1;const Ku=e=>{ys||(ys=!0,X.urlRoot=e.urlRoot||X.urlRoot,X.csrfNonce=e.csrfNonce||X.csrfNonce,X.userMode=e.userMode||X.userMode,X.start=e.start||X.start,X.end=e.end||X.end,X.themeSettings=e.themeSettings||X.themeSettings,X.eventSounds=e.eventSounds||X.eventSounds,X.preview=!1,yt.id=e.userId,yt.name=e.userName||yt.name,yt.email=e.userEmail||yt.email,Sn.id=e.teamId,Sn.name=e.teamName||Sn.name,q.init(X.urlRoot,X.eventSounds))},Uu={run(e){e(vi)}},vi={init:Ku,config:X,fetch:Tl,user:yt,team:Sn,ui:ju,utils:Wu,pages:Yu,events:q,_internal:Fu,_functions:Vu,plugin:Uu,lib:Gu};window.CTFd=vi;const M=vi;var qo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v){document.querySelectorAll("[data-time]").forEach(e=>{const t=e.getAttribute("data-time"),n=e.getAttribute("data-time-format")||"MMMM Do, h:mm:ss A";e.innerText=yi(t).format(n)})},zu=()=>{document.querySelectorAll(".form-control").forEach(e=>{e.addEventListener("onfocus",()=>{e.classList.remove("input-filled-invalid"),e.classList.add("input-filled-valid")}),e.addEventListener("onblur",()=>{e.nodeValue===""&&(e.classList.remove("input-filled-valid"),e.classList.remove("input-filled-invalid"))}),e.nodeValue&&e.classList.add("input-filled-valid")}),document.querySelectorAll(".page-select").forEach(e=>{e.addEventListener("change",t=>{var r;const n=new URL(window.location);n.searchParams.set("page",(r=t.target.value)!=null?r:"1"),window.location.href=n.toString()})})};var Qo={exports:{}};/*! lolight v1.4.0 - https://larsjung.de/lolight/ */(function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(c){if(typeof c!="string")throw new Error("tok: no string");for(var l=[],h=s.length,_=!1;c;)for(var p=0;p/],["rex",/\/(\\\/|[^\n])*?\//],["str",/(['"`])(\\\1|[\s\S])*?\1/],[g,/[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?/],["pct",/[\\.,:;+\-*\/=<>()[\]{}|?!&@~]/],["spc",/\s+/],[d,/[\w$]+/],["unk",/./]];return r(!1,function(c){var l=c.querySelector("head"),h=c.createElement("style");h.textContent=a,l.insertBefore(h,l.firstChild),/^(i|c|loade)/.test(c.readyState)?o():c.addEventListener("DOMContentLoaded",function(){o()})}),o.tok=n,o.el=i,o})})(Qo);const Xu=Qo.exports,Qu=()=>{(!M.config.themeSettings.hasOwnProperty("use_builtin_code_highlighter")||M.config.themeSettings.use_builtin_code_highlighter===!0)&&Xu("pre code")};var ae="top",pe="bottom",_e="right",ce="left",Un="auto",Ht=[ae,pe,_e,ce],lt="start",xt="end",Jo="clippingParents",bi="viewport",bt="popper",Zo="reference",Rr=Ht.reduce(function(e,t){return e.concat([t+"-"+lt,t+"-"+xt])},[]),Ei=[].concat(Ht,[Un]).reduce(function(e,t){return e.concat([t,t+"-"+lt,t+"-"+xt])},[]),ea="beforeRead",ta="read",na="afterRead",ra="beforeMain",ia="main",sa="afterMain",oa="beforeWrite",aa="write",ca="afterWrite",la=[ea,ta,na,ra,ia,sa,oa,aa,ca];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $t(e){var t=Te(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=Te(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wi(e){if(typeof ShadowRoot>"u")return!1;var t=Te(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ju(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!me(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function Zu(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(f,d){return f[d]="",f},{});!me(i)||!Ne(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}const Ai={name:"applyStyles",enabled:!0,phase:"write",fn:Ju,effect:Zu,requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var it=Math.max,Mn=Math.min,Ct=Math.round;function Dt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(me(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ct(n.width)/a||1),o>0&&(i=Ct(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Ti(e){var t=Dt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ua(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(e){return Te(e).getComputedStyle(e)}function ef(e){return["table","td","th"].indexOf(Ne(e))>=0}function Xe(e){return(($t(e)?e.ownerDocument:e.document)||window.document).documentElement}function qn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(wi(e)?e.host:null)||Xe(e)}function bs(e){return!me(e)||He(e).position==="fixed"?null:e.offsetParent}function tf(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&me(e)){var r=He(e);if(r.position==="fixed")return null}var i=qn(e);for(wi(i)&&(i=i.host);me(i)&&["html","body"].indexOf(Ne(i))<0;){var o=He(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function rn(e){for(var t=Te(e),n=bs(e);n&&ef(n)&&He(n).position==="static";)n=bs(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&He(n).position==="static")?t:n||tf(e)||t}function Si(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qt(e,t,n){return it(e,Mn(t,n))}function nf(e,t,n){var r=qt(e,t,n);return r>n?n:r}function fa(){return{top:0,right:0,bottom:0,left:0}}function da(e){return Object.assign({},fa(),e)}function ha(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var rf=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,da(typeof t!="number"?t:ha(t,Ht))};function sf(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,u=$e(n.placement),f=Si(u),d=[ce,_e].indexOf(u)>=0,g=d?"height":"width";if(!(!o||!a)){var s=rf(i.padding,n),c=Ti(o),l=f==="y"?ae:ce,h=f==="y"?pe:_e,_=n.rects.reference[g]+n.rects.reference[f]-a[f]-n.rects.popper[g],p=a[f]-n.rects.reference[f],m=rn(o),E=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,O=_/2-p/2,D=s[l],L=E-c[g]-s[h],I=E/2-c[g]/2+O,F=qt(D,I,L),j=f;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-I,t)}}function of(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!ua(t.elements.popper,i)||(t.elements.arrow=i))}const pa={name:"arrow",enabled:!0,phase:"main",fn:sf,effect:of,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nt(e){return e.split("-")[1]}var af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cf(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Ct(t*i)/i||0,y:Ct(n*i)/i||0}}function Es(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,f=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,s=e.isFixed,c=a.x,l=c===void 0?0:c,h=a.y,_=h===void 0?0:h,p=typeof g=="function"?g({x:l,y:_}):{x:l,y:_};l=p.x,_=p.y;var m=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),O=ce,D=ae,L=window;if(d){var I=rn(n),F="clientHeight",j="clientWidth";if(I===Te(n)&&(I=Xe(n),He(I).position!=="static"&&u==="absolute"&&(F="scrollHeight",j="scrollWidth")),I=I,i===ae||(i===ce||i===_e)&&o===xt){D=pe;var $=s&&I===L&&L.visualViewport?L.visualViewport.height:I[F];_-=$-r.height,_*=f?1:-1}if(i===ce||(i===ae||i===pe)&&o===xt){O=_e;var N=s&&I===L&&L.visualViewport?L.visualViewport.width:I[j];l-=N-r.width,l*=f?1:-1}}var Y=Object.assign({position:u},d&&af),Q=g===!0?cf({x:l,y:_}):{x:l,y:_};if(l=Q.x,_=Q.y,f){var A;return Object.assign({},Y,(A={},A[D]=E?"0":"",A[O]=m?"0":"",A.transform=(L.devicePixelRatio||1)<=1?"translate("+l+"px, "+_+"px)":"translate3d("+l+"px, "+_+"px, 0)",A))}return Object.assign({},Y,(t={},t[D]=E?_+"px":"",t[O]=m?l+"px":"",t.transform="",t))}function lf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,u=n.roundOffsets,f=u===void 0?!0:u,d={placement:$e(t.placement),variation:Nt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Es(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Es(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lf,data:{}};var mn={passive:!0};function uf(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,u=a===void 0?!0:a,f=Te(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,mn)}),u&&f.addEventListener("resize",n.update,mn),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,mn)}),u&&f.removeEventListener("resize",n.update,mn)}}const xi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uf,data:{}};var ff={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e){return e.replace(/left|right|bottom|top/g,function(t){return ff[t]})}var df={start:"end",end:"start"};function ws(e){return e.replace(/start|end/g,function(t){return df[t]})}function $i(e){var t=Te(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ci(e){return Dt(Xe(e)).left+$i(e).scrollLeft}function hf(e){var t=Te(e),n=Xe(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,u=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:i,height:o,x:a+Ci(e),y:u}}function pf(e){var t,n=Xe(e),r=$i(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=it(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Ci(e),f=-r.scrollTop;return He(i||n).direction==="rtl"&&(u+=it(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}function Di(e){var t=He(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _a(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:me(e)&&Di(e)?e:_a(qn(e))}function zt(e,t){var n;t===void 0&&(t=[]);var r=_a(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Te(r),a=i?[o].concat(o.visualViewport||[],Di(r)?r:[]):r,u=t.concat(a);return i?u:u.concat(zt(qn(a)))}function Hr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _f(e){var t=Dt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function As(e,t){return t===bi?Hr(hf(e)):$t(t)?_f(t):Hr(pf(Xe(e)))}function mf(e){var t=zt(qn(e)),n=["absolute","fixed"].indexOf(He(e).position)>=0,r=n&&me(e)?rn(e):e;return $t(r)?t.filter(function(i){return $t(i)&&ua(i,r)&&Ne(i)!=="body"}):[]}function gf(e,t,n){var r=t==="clippingParents"?mf(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(u,f){var d=As(e,f);return u.top=it(d.top,u.top),u.right=Mn(d.right,u.right),u.bottom=Mn(d.bottom,u.bottom),u.left=it(d.left,u.left),u},As(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ma(e){var t=e.reference,n=e.element,r=e.placement,i=r?$e(r):null,o=r?Nt(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(i){case ae:f={x:a,y:t.y-n.height};break;case pe:f={x:a,y:t.y+t.height};break;case _e:f={x:t.x+t.width,y:u};break;case ce:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var d=i?Si(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case lt:f[d]=f[d]-(t[g]/2-n[g]/2);break;case xt:f[d]=f[d]+(t[g]/2-n[g]/2);break}}return f}function Mt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?Jo:o,u=n.rootBoundary,f=u===void 0?bi:u,d=n.elementContext,g=d===void 0?bt:d,s=n.altBoundary,c=s===void 0?!1:s,l=n.padding,h=l===void 0?0:l,_=da(typeof h!="number"?h:ha(h,Ht)),p=g===bt?Zo:bt,m=e.rects.popper,E=e.elements[c?p:g],O=gf($t(E)?E:E.contextElement||Xe(e.elements.popper),a,f),D=Dt(e.elements.reference),L=ma({reference:D,element:m,strategy:"absolute",placement:i}),I=Hr(Object.assign({},m,L)),F=g===bt?I:D,j={top:O.top-F.top+_.top,bottom:F.bottom-O.bottom+_.bottom,left:O.left-F.left+_.left,right:F.right-O.right+_.right},$=e.modifiersData.offset;if(g===bt&&$){var N=$[i];Object.keys(j).forEach(function(Y){var Q=[_e,pe].indexOf(Y)>=0?1:-1,A=[ae,pe].indexOf(Y)>=0?"y":"x";j[Y]+=N[A]*Q})}return j}function vf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?Ei:f,g=Nt(r),s=g?u?Rr:Rr.filter(function(h){return Nt(h)===g}):Ht,c=s.filter(function(h){return d.indexOf(h)>=0});c.length===0&&(c=s);var l=c.reduce(function(h,_){return h[_]=Mt(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[$e(_)],h},{});return Object.keys(l).sort(function(h,_){return l[h]-l[_]})}function yf(e){if($e(e)===Un)return[];var t=On(e);return[ws(e),t,ws(t)]}function bf(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!0:a,f=n.fallbackPlacements,d=n.padding,g=n.boundary,s=n.rootBoundary,c=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,_=n.allowedAutoPlacements,p=t.options.placement,m=$e(p),E=m===p,O=f||(E||!h?[On(p)]:yf(p)),D=[p].concat(O).reduce(function(K,G){return K.concat($e(G)===Un?vf(t,{placement:G,boundary:g,rootBoundary:s,padding:d,flipVariations:h,allowedAutoPlacements:_}):G)},[]),L=t.rects.reference,I=t.rects.popper,F=new Map,j=!0,$=D[0],N=0;N=0,v=b?"width":"height",T=Mt(t,{placement:Y,boundary:g,rootBoundary:s,altBoundary:c,padding:d}),y=b?A?_e:ce:A?pe:ae;L[v]>I[v]&&(y=On(y));var x=On(y),S=[];if(o&&S.push(T[Q]<=0),u&&S.push(T[y]<=0,T[x]<=0),S.every(function(K){return K})){$=Y,j=!1;break}F.set(Y,S)}if(j)for(var k=h?3:1,B=function(G){var re=D.find(function(se){var z=F.get(se);if(z)return z.slice(0,G).every(function(W){return W})});if(re)return $=re,"break"},R=k;R>0;R--){var V=B(R);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const ga={name:"flip",enabled:!0,phase:"main",fn:bf,requiresIfExists:["offset"],data:{_skip:!1}};function Ts(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ss(e){return[ae,_e,pe,ce].some(function(t){return e[t]>=0})}function Ef(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Mt(t,{elementContext:"reference"}),u=Mt(t,{altBoundary:!0}),f=Ts(a,r),d=Ts(u,i,o),g=Ss(f),s=Ss(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:s},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":s})}const va={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ef};function wf(e,t,n){var r=$e(e),i=[ce,ae].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[ce,_e].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function Af(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Ei.reduce(function(g,s){return g[s]=wf(s,t.rects,o),g},{}),u=a[t.placement],f=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const ya={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Af};function Tf(e){var t=e.state,n=e.name;t.modifiersData[n]=ma({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ni={name:"popperOffsets",enabled:!0,phase:"read",fn:Tf,data:{}};function Sf(e){return e==="x"?"y":"x"}function Of(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!1:a,f=n.boundary,d=n.rootBoundary,g=n.altBoundary,s=n.padding,c=n.tether,l=c===void 0?!0:c,h=n.tetherOffset,_=h===void 0?0:h,p=Mt(t,{boundary:f,rootBoundary:d,padding:s,altBoundary:g}),m=$e(t.placement),E=Nt(t.placement),O=!E,D=Si(m),L=Sf(D),I=t.modifiersData.popperOffsets,F=t.rects.reference,j=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(!!I){if(o){var A,b=D==="y"?ae:ce,v=D==="y"?pe:_e,T=D==="y"?"height":"width",y=I[D],x=y+p[b],S=y-p[v],k=l?-j[T]/2:0,B=E===lt?F[T]:j[T],R=E===lt?-j[T]:-F[T],V=t.elements.arrow,K=l&&V?Ti(V):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fa(),re=G[b],se=G[v],z=qt(0,F[T],K[T]),W=O?F[T]/2-k-z-re-N.mainAxis:B-z-re-N.mainAxis,J=O?-F[T]/2+k+z+se+N.mainAxis:R+z+se+N.mainAxis,be=t.elements.arrow&&rn(t.elements.arrow),Ee=be?D==="y"?be.clientTop||0:be.clientLeft||0:0,ts=(A=Y==null?void 0:Y[D])!=null?A:0,cl=y+W-ts-Ee,ll=y+J-ts,ns=qt(l?Mn(x,cl):x,y,l?it(S,ll):S);I[D]=ns,Q[D]=ns-y}if(u){var rs,ul=D==="x"?ae:ce,fl=D==="x"?pe:_e,Ze=I[L],_n=L==="y"?"height":"width",is=Ze+p[ul],ss=Ze-p[fl],dr=[ae,ce].indexOf(m)!==-1,os=(rs=Y==null?void 0:Y[L])!=null?rs:0,as=dr?is:Ze-F[_n]-j[_n]-os+N.altAxis,cs=dr?Ze+F[_n]+j[_n]-os-N.altAxis:ss,ls=l&&dr?nf(as,Ze,cs):qt(l?as:is,Ze,l?cs:ss);I[L]=ls,Q[L]=ls-Ze}t.modifiersData[r]=Q}}const ba={name:"preventOverflow",enabled:!0,phase:"main",fn:Of,requiresIfExists:["offset"]};function xf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $f(e){return e===Te(e)||!me(e)?$i(e):xf(e)}function Cf(e){var t=e.getBoundingClientRect(),n=Ct(t.width)/e.offsetWidth||1,r=Ct(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Df(e,t,n){n===void 0&&(n=!1);var r=me(t),i=me(t)&&Cf(t),o=Xe(t),a=Dt(e,i),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Di(o))&&(u=$f(t)),me(t)?(f=Dt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Ci(o))),{x:a.left+u.scrollLeft-f.x,y:a.top+u.scrollTop-f.y,width:a.width,height:a.height}}function Nf(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Mf(e){var t=Nf(e);return la.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Lf(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function If(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Os={placement:"bottom",modifiers:[],strategy:"absolute"};function xs(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,a,u){var f=this;if(!f.ctx||!f.ctx.listener)return f;var d=f._orientation;if(r=typeof r!="number"?d[1]:r,i=typeof i!="number"?d[2]:i,o=typeof o!="number"?d[3]:o,a=typeof a!="number"?d[4]:a,u=typeof u!="number"?d[5]:u,typeof n=="number")f._orientation=[n,r,i,o,a,u],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(u,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,r,i,o,a,u);else return d;return f},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var a=i._getSoundIds(r),u=0;u"u")if(typeof n=="number")a._pos=[n,r,i];else return a._pos;for(var u=a._getSoundIds(o),f=0;f"u")if(typeof n=="number")a._orientation=[n,r,i];else return a._orientation;for(var u=a._getSoundIds(o),f=0;f"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return a=n._soundById(parseInt(r[0],10)),a?a._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var u=n._getSoundIds(o),f=0;fJSON.parse(localStorage.getItem(`CTFd:${e}`))||t,Go=(e,t)=>{localStorage.setItem(`CTFd:${e}`,JSON.stringify(t))};function Yn(){return Yo("read_notifications")}function Gn(){return Yo("unread_notifications")}function gi(e){Go("read_notifications",e)}function Kn(e){Go("unread_notifications",e)}function Ru(e){const t=[...Yn(),e];return gi(t),Ko(e),t}function Hu(e){const t=[...Gn(),e];return Kn(t),t}function vs(){const e=Yn();return e.length===0?0:Math.max(...e)}function Ko(e){const n=Gn().filter(r=>r!==e);Kn(n)}function Bu(){const e=Gn(),t=Yn();gi(t.concat(e)),Kn([])}const q={init:(e,t)=>{q.source=new EventSource(e+"/events");for(let r=0;r{let i=r.headers.get("result-count");i&&(q.controller.broadcast("counter",{count:i}),M._functions.events.eventCount(i))})},controller:new Pu,source:null,howl:null,connect:()=>{q.source.addEventListener("notification",function(e){let t=JSON.parse(e.data);q.controller.broadcast("notification",t),M.events.counter.unread.add(t.id);let n=M.events.counter.unread.getAll().length;q.controller.broadcast("counter",{count:n}),M._functions.events.eventCount(n),q.render(t),t.sound&&q.howl.play()},!1)},disconnect:()=>{q.source&&q.source.close()},render:e=>{switch(e.type){case"toast":{M._functions.events.eventToast(e);break}case"alert":{M._functions.events.eventAlert(e);break}case"background":{M._functions.events.eventBackground(e);break}default:{console.log(e),alert(e);break}}},counter:{read:{getAll:Yn,setAll:gi,add:Ru,getLast:vs},unread:{getAll:Gn,setAll:Kn,add:Hu,remove:Ko,readAll:Bu}}};q.controller.alert=function(e){q.render(e)};q.controller.toast=function(e){q.render(e)};q.controller.background=function(e){q.render(e)};q.controller.counter=function(e){M._functions.events.eventCount(e.count)};q.controller.masterDidChange=function(){this.isMaster?q.connect():q.disconnect()};var Uo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(d,g,s,c){return o.fromToBase(d,g,s,c)}i.en.relativeTime=a,o.fromToBase=function(d,g,s,c,l){for(var h,_,p,m=s.$locale().relativeTime||a,E=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],O=E.length,D=0;D0,I<=L.r||!L.r){I<=1&&D>0&&(L=E[D-1]);var F=m[L.l];l&&(I=l(""+I)),_=typeof F=="string"?F.replace("%d",I):F(I,g,L.l,p);break}}if(g)return _;var j=p?m.future:m.past;return typeof j=="function"?j(_):j.replace("%s",_)},o.to=function(d,g){return u(d,g,this,!0)},o.from=function(d,g){return u(d,g,this)};var f=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(f(this),d)},o.fromNow=function(d){return this.from(f(this),d)}}})})(Uo);const Fu=Uo.exports;nn.extend(_o);nn.extend(Fu);const yt={id:null,name:null,email:null},Sn={id:null,name:null},Vu={},ju={challenge:{displayChallenge:null,renderChallenge:null,displayHint(e){alert(e.content)},displayUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displayUnlockError(e){const t=[];Object.keys(e.errors).map(r=>{t.push(e.errors[r])});const n=t.join(` +`);alert(n)},submitChallenge:null,displaySubmissionResponse:null,displaySolves:null},challenges:{displayChallenges:null,sortChallenges:null},events:{eventAlert:null,eventToast:null,eventBackground:null,eventRead:null,eventCount:null}},Wu={htmlEntities:jo,colorHash:_u,copyToClipboard:hu,hashCode:pu,renderTimes:du},Yu={ajax:{getScript:Po},html:{createHtmlNode:ku,htmlEntities:jo}},Gu={challenge:{displayChallenge:gu,submitChallenge:vu,loadSolves:Vo,displaySolves:yu,loadHint:Ro,loadUnlock:Ho,displayUnlock:Fo,displayHint:Bo},challenges:{getChallenges:Io,getChallenge:ko,displayChallenges:mu},scoreboard:{getScoreboard:bu,getScoreboardDetail:Eu,getBrackets:wu},settings:{updateSettings:Au,generateToken:Tu,deleteToken:Su},users:{userSolves:Ou,userFails:xu,userAwards:$u},teams:{getInviteToken:Cu,disbandTeam:Du,updateTeamSettings:Nu,teamSolves:Mu,teamFails:Lu,teamAwards:Iu}},Ku={$:H,dayjs:nn};let ys=!1;const Uu=e=>{ys||(ys=!0,X.urlRoot=e.urlRoot||X.urlRoot,X.csrfNonce=e.csrfNonce||X.csrfNonce,X.userMode=e.userMode||X.userMode,X.start=e.start||X.start,X.end=e.end||X.end,X.themeSettings=e.themeSettings||X.themeSettings,X.eventSounds=e.eventSounds||X.eventSounds,X.preview=!1,yt.id=e.userId,yt.name=e.userName||yt.name,yt.email=e.userEmail||yt.email,Sn.id=e.teamId,Sn.name=e.teamName||Sn.name,q.init(X.urlRoot,X.eventSounds))},qu={run(e){e(vi)}},vi={init:Uu,config:X,fetch:Tl,user:yt,team:Sn,ui:Wu,utils:Yu,pages:Gu,events:q,_internal:Vu,_functions:ju,plugin:qu,lib:Ku};window.CTFd=vi;const M=vi;var qo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v){document.querySelectorAll("[data-time]").forEach(e=>{const t=e.getAttribute("data-time"),n=e.getAttribute("data-time-format")||"MMMM Do, h:mm:ss A";e.innerText=yi(t).format(n)})},Xu=()=>{document.querySelectorAll(".form-control").forEach(e=>{e.addEventListener("onfocus",()=>{e.classList.remove("input-filled-invalid"),e.classList.add("input-filled-valid")}),e.addEventListener("onblur",()=>{e.nodeValue===""&&(e.classList.remove("input-filled-valid"),e.classList.remove("input-filled-invalid"))}),e.nodeValue&&e.classList.add("input-filled-valid")}),document.querySelectorAll(".page-select").forEach(e=>{e.addEventListener("change",t=>{var r;const n=new URL(window.location);n.searchParams.set("page",(r=t.target.value)!=null?r:"1"),window.location.href=n.toString()})})};var Qo={exports:{}};/*! lolight v1.4.0 - https://larsjung.de/lolight/ */(function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(c){if(typeof c!="string")throw new Error("tok: no string");for(var l=[],h=s.length,_=!1;c;)for(var p=0;p/],["rex",/\/(\\\/|[^\n])*?\//],["str",/(['"`])(\\\1|[\s\S])*?\1/],[g,/[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?/],["pct",/[\\.,:;+\-*\/=<>()[\]{}|?!&@~]/],["spc",/\s+/],[d,/[\w$]+/],["unk",/./]];return r(!1,function(c){var l=c.querySelector("head"),h=c.createElement("style");h.textContent=a,l.insertBefore(h,l.firstChild),/^(i|c|loade)/.test(c.readyState)?o():c.addEventListener("DOMContentLoaded",function(){o()})}),o.tok=n,o.el=i,o})})(Qo);const Qu=Qo.exports,Ju=()=>{(!M.config.themeSettings.hasOwnProperty("use_builtin_code_highlighter")||M.config.themeSettings.use_builtin_code_highlighter===!0)&&Qu("pre code")};var ae="top",pe="bottom",_e="right",ce="left",Un="auto",Ht=[ae,pe,_e,ce],lt="start",xt="end",Jo="clippingParents",bi="viewport",bt="popper",Zo="reference",Rr=Ht.reduce(function(e,t){return e.concat([t+"-"+lt,t+"-"+xt])},[]),Ei=[].concat(Ht,[Un]).reduce(function(e,t){return e.concat([t,t+"-"+lt,t+"-"+xt])},[]),ea="beforeRead",ta="read",na="afterRead",ra="beforeMain",ia="main",sa="afterMain",oa="beforeWrite",aa="write",ca="afterWrite",la=[ea,ta,na,ra,ia,sa,oa,aa,ca];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $t(e){var t=Te(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=Te(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wi(e){if(typeof ShadowRoot>"u")return!1;var t=Te(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!me(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function ef(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(f,d){return f[d]="",f},{});!me(i)||!Ne(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}const Ai={name:"applyStyles",enabled:!0,phase:"write",fn:Zu,effect:ef,requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var it=Math.max,Mn=Math.min,Ct=Math.round;function Dt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(me(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ct(n.width)/a||1),o>0&&(i=Ct(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Ti(e){var t=Dt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ua(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(e){return Te(e).getComputedStyle(e)}function tf(e){return["table","td","th"].indexOf(Ne(e))>=0}function Xe(e){return(($t(e)?e.ownerDocument:e.document)||window.document).documentElement}function qn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(wi(e)?e.host:null)||Xe(e)}function bs(e){return!me(e)||He(e).position==="fixed"?null:e.offsetParent}function nf(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&me(e)){var r=He(e);if(r.position==="fixed")return null}var i=qn(e);for(wi(i)&&(i=i.host);me(i)&&["html","body"].indexOf(Ne(i))<0;){var o=He(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function rn(e){for(var t=Te(e),n=bs(e);n&&tf(n)&&He(n).position==="static";)n=bs(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&He(n).position==="static")?t:n||nf(e)||t}function Si(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qt(e,t,n){return it(e,Mn(t,n))}function rf(e,t,n){var r=qt(e,t,n);return r>n?n:r}function fa(){return{top:0,right:0,bottom:0,left:0}}function da(e){return Object.assign({},fa(),e)}function ha(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var sf=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,da(typeof t!="number"?t:ha(t,Ht))};function of(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,u=$e(n.placement),f=Si(u),d=[ce,_e].indexOf(u)>=0,g=d?"height":"width";if(!(!o||!a)){var s=sf(i.padding,n),c=Ti(o),l=f==="y"?ae:ce,h=f==="y"?pe:_e,_=n.rects.reference[g]+n.rects.reference[f]-a[f]-n.rects.popper[g],p=a[f]-n.rects.reference[f],m=rn(o),E=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,O=_/2-p/2,D=s[l],L=E-c[g]-s[h],I=E/2-c[g]/2+O,F=qt(D,I,L),j=f;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-I,t)}}function af(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!ua(t.elements.popper,i)||(t.elements.arrow=i))}const pa={name:"arrow",enabled:!0,phase:"main",fn:of,effect:af,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nt(e){return e.split("-")[1]}var cf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lf(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Ct(t*i)/i||0,y:Ct(n*i)/i||0}}function Es(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,f=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,s=e.isFixed,c=a.x,l=c===void 0?0:c,h=a.y,_=h===void 0?0:h,p=typeof g=="function"?g({x:l,y:_}):{x:l,y:_};l=p.x,_=p.y;var m=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),O=ce,D=ae,L=window;if(d){var I=rn(n),F="clientHeight",j="clientWidth";if(I===Te(n)&&(I=Xe(n),He(I).position!=="static"&&u==="absolute"&&(F="scrollHeight",j="scrollWidth")),I=I,i===ae||(i===ce||i===_e)&&o===xt){D=pe;var $=s&&I===L&&L.visualViewport?L.visualViewport.height:I[F];_-=$-r.height,_*=f?1:-1}if(i===ce||(i===ae||i===pe)&&o===xt){O=_e;var N=s&&I===L&&L.visualViewport?L.visualViewport.width:I[j];l-=N-r.width,l*=f?1:-1}}var Y=Object.assign({position:u},d&&cf),Q=g===!0?lf({x:l,y:_}):{x:l,y:_};if(l=Q.x,_=Q.y,f){var A;return Object.assign({},Y,(A={},A[D]=E?"0":"",A[O]=m?"0":"",A.transform=(L.devicePixelRatio||1)<=1?"translate("+l+"px, "+_+"px)":"translate3d("+l+"px, "+_+"px, 0)",A))}return Object.assign({},Y,(t={},t[D]=E?_+"px":"",t[O]=m?l+"px":"",t.transform="",t))}function uf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,u=n.roundOffsets,f=u===void 0?!0:u,d={placement:$e(t.placement),variation:Nt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Es(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Es(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uf,data:{}};var mn={passive:!0};function ff(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,u=a===void 0?!0:a,f=Te(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,mn)}),u&&f.addEventListener("resize",n.update,mn),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,mn)}),u&&f.removeEventListener("resize",n.update,mn)}}const xi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ff,data:{}};var df={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e){return e.replace(/left|right|bottom|top/g,function(t){return df[t]})}var hf={start:"end",end:"start"};function ws(e){return e.replace(/start|end/g,function(t){return hf[t]})}function $i(e){var t=Te(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ci(e){return Dt(Xe(e)).left+$i(e).scrollLeft}function pf(e){var t=Te(e),n=Xe(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,u=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:i,height:o,x:a+Ci(e),y:u}}function _f(e){var t,n=Xe(e),r=$i(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=it(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Ci(e),f=-r.scrollTop;return He(i||n).direction==="rtl"&&(u+=it(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}function Di(e){var t=He(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _a(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:me(e)&&Di(e)?e:_a(qn(e))}function zt(e,t){var n;t===void 0&&(t=[]);var r=_a(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Te(r),a=i?[o].concat(o.visualViewport||[],Di(r)?r:[]):r,u=t.concat(a);return i?u:u.concat(zt(qn(a)))}function Hr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mf(e){var t=Dt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function As(e,t){return t===bi?Hr(pf(e)):$t(t)?mf(t):Hr(_f(Xe(e)))}function gf(e){var t=zt(qn(e)),n=["absolute","fixed"].indexOf(He(e).position)>=0,r=n&&me(e)?rn(e):e;return $t(r)?t.filter(function(i){return $t(i)&&ua(i,r)&&Ne(i)!=="body"}):[]}function vf(e,t,n){var r=t==="clippingParents"?gf(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(u,f){var d=As(e,f);return u.top=it(d.top,u.top),u.right=Mn(d.right,u.right),u.bottom=Mn(d.bottom,u.bottom),u.left=it(d.left,u.left),u},As(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ma(e){var t=e.reference,n=e.element,r=e.placement,i=r?$e(r):null,o=r?Nt(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(i){case ae:f={x:a,y:t.y-n.height};break;case pe:f={x:a,y:t.y+t.height};break;case _e:f={x:t.x+t.width,y:u};break;case ce:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var d=i?Si(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case lt:f[d]=f[d]-(t[g]/2-n[g]/2);break;case xt:f[d]=f[d]+(t[g]/2-n[g]/2);break}}return f}function Mt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?Jo:o,u=n.rootBoundary,f=u===void 0?bi:u,d=n.elementContext,g=d===void 0?bt:d,s=n.altBoundary,c=s===void 0?!1:s,l=n.padding,h=l===void 0?0:l,_=da(typeof h!="number"?h:ha(h,Ht)),p=g===bt?Zo:bt,m=e.rects.popper,E=e.elements[c?p:g],O=vf($t(E)?E:E.contextElement||Xe(e.elements.popper),a,f),D=Dt(e.elements.reference),L=ma({reference:D,element:m,strategy:"absolute",placement:i}),I=Hr(Object.assign({},m,L)),F=g===bt?I:D,j={top:O.top-F.top+_.top,bottom:F.bottom-O.bottom+_.bottom,left:O.left-F.left+_.left,right:F.right-O.right+_.right},$=e.modifiersData.offset;if(g===bt&&$){var N=$[i];Object.keys(j).forEach(function(Y){var Q=[_e,pe].indexOf(Y)>=0?1:-1,A=[ae,pe].indexOf(Y)>=0?"y":"x";j[Y]+=N[A]*Q})}return j}function yf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?Ei:f,g=Nt(r),s=g?u?Rr:Rr.filter(function(h){return Nt(h)===g}):Ht,c=s.filter(function(h){return d.indexOf(h)>=0});c.length===0&&(c=s);var l=c.reduce(function(h,_){return h[_]=Mt(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[$e(_)],h},{});return Object.keys(l).sort(function(h,_){return l[h]-l[_]})}function bf(e){if($e(e)===Un)return[];var t=On(e);return[ws(e),t,ws(t)]}function Ef(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!0:a,f=n.fallbackPlacements,d=n.padding,g=n.boundary,s=n.rootBoundary,c=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,_=n.allowedAutoPlacements,p=t.options.placement,m=$e(p),E=m===p,O=f||(E||!h?[On(p)]:bf(p)),D=[p].concat(O).reduce(function(K,G){return K.concat($e(G)===Un?yf(t,{placement:G,boundary:g,rootBoundary:s,padding:d,flipVariations:h,allowedAutoPlacements:_}):G)},[]),L=t.rects.reference,I=t.rects.popper,F=new Map,j=!0,$=D[0],N=0;N=0,v=b?"width":"height",T=Mt(t,{placement:Y,boundary:g,rootBoundary:s,altBoundary:c,padding:d}),y=b?A?_e:ce:A?pe:ae;L[v]>I[v]&&(y=On(y));var x=On(y),S=[];if(o&&S.push(T[Q]<=0),u&&S.push(T[y]<=0,T[x]<=0),S.every(function(K){return K})){$=Y,j=!1;break}F.set(Y,S)}if(j)for(var k=h?3:1,B=function(G){var re=D.find(function(se){var z=F.get(se);if(z)return z.slice(0,G).every(function(W){return W})});if(re)return $=re,"break"},R=k;R>0;R--){var V=B(R);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const ga={name:"flip",enabled:!0,phase:"main",fn:Ef,requiresIfExists:["offset"],data:{_skip:!1}};function Ts(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ss(e){return[ae,_e,pe,ce].some(function(t){return e[t]>=0})}function wf(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Mt(t,{elementContext:"reference"}),u=Mt(t,{altBoundary:!0}),f=Ts(a,r),d=Ts(u,i,o),g=Ss(f),s=Ss(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:s},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":s})}const va={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wf};function Af(e,t,n){var r=$e(e),i=[ce,ae].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[ce,_e].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function Tf(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Ei.reduce(function(g,s){return g[s]=Af(s,t.rects,o),g},{}),u=a[t.placement],f=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const ya={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tf};function Sf(e){var t=e.state,n=e.name;t.modifiersData[n]=ma({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ni={name:"popperOffsets",enabled:!0,phase:"read",fn:Sf,data:{}};function Of(e){return e==="x"?"y":"x"}function xf(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!1:a,f=n.boundary,d=n.rootBoundary,g=n.altBoundary,s=n.padding,c=n.tether,l=c===void 0?!0:c,h=n.tetherOffset,_=h===void 0?0:h,p=Mt(t,{boundary:f,rootBoundary:d,padding:s,altBoundary:g}),m=$e(t.placement),E=Nt(t.placement),O=!E,D=Si(m),L=Of(D),I=t.modifiersData.popperOffsets,F=t.rects.reference,j=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(!!I){if(o){var A,b=D==="y"?ae:ce,v=D==="y"?pe:_e,T=D==="y"?"height":"width",y=I[D],x=y+p[b],S=y-p[v],k=l?-j[T]/2:0,B=E===lt?F[T]:j[T],R=E===lt?-j[T]:-F[T],V=t.elements.arrow,K=l&&V?Ti(V):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fa(),re=G[b],se=G[v],z=qt(0,F[T],K[T]),W=O?F[T]/2-k-z-re-N.mainAxis:B-z-re-N.mainAxis,J=O?-F[T]/2+k+z+se+N.mainAxis:R+z+se+N.mainAxis,be=t.elements.arrow&&rn(t.elements.arrow),Ee=be?D==="y"?be.clientTop||0:be.clientLeft||0:0,ts=(A=Y==null?void 0:Y[D])!=null?A:0,cl=y+W-ts-Ee,ll=y+J-ts,ns=qt(l?Mn(x,cl):x,y,l?it(S,ll):S);I[D]=ns,Q[D]=ns-y}if(u){var rs,ul=D==="x"?ae:ce,fl=D==="x"?pe:_e,Ze=I[L],_n=L==="y"?"height":"width",is=Ze+p[ul],ss=Ze-p[fl],dr=[ae,ce].indexOf(m)!==-1,os=(rs=Y==null?void 0:Y[L])!=null?rs:0,as=dr?is:Ze-F[_n]-j[_n]-os+N.altAxis,cs=dr?Ze+F[_n]+j[_n]-os-N.altAxis:ss,ls=l&&dr?rf(as,Ze,cs):qt(l?as:is,Ze,l?cs:ss);I[L]=ls,Q[L]=ls-Ze}t.modifiersData[r]=Q}}const ba={name:"preventOverflow",enabled:!0,phase:"main",fn:xf,requiresIfExists:["offset"]};function $f(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cf(e){return e===Te(e)||!me(e)?$i(e):$f(e)}function Df(e){var t=e.getBoundingClientRect(),n=Ct(t.width)/e.offsetWidth||1,r=Ct(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nf(e,t,n){n===void 0&&(n=!1);var r=me(t),i=me(t)&&Df(t),o=Xe(t),a=Dt(e,i),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Di(o))&&(u=Cf(t)),me(t)?(f=Dt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Ci(o))),{x:a.left+u.scrollLeft-f.x,y:a.top+u.scrollTop-f.y,width:a.width,height:a.height}}function Mf(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Lf(e){var t=Mf(e);return la.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function If(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kf(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Os={placement:"bottom",modifiers:[],strategy:"absolute"};function xs(){for(var e=arguments.length,t=new Array(e),n=0;n(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),Vf=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),jf=e=>{do e+=Math.floor(Math.random()*Bf);while(document.getElementById(e));return e},Wf=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return!r&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*Ff)},Aa=e=>{e.dispatchEvent(new Event(Br))},Ie=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),We=e=>Ie(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(wa(e)):null,Bt=e=>{if(!Ie(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const r=e.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return t},Ye=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",Ta=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ta(e.parentNode):null},Ln=()=>{},sn=e=>{e.offsetHeight},Sa=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vr=[],Yf=e=>{document.readyState==="loading"?(vr.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of vr)t()}),vr.push(e)):e()},ge=()=>document.documentElement.dir==="rtl",ye=e=>{Yf(()=>{const t=Sa();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},fe=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,Oa=(e,t,n=!0)=>{if(!n){fe(e);return}const r=5,i=Wf(t)+r;let o=!1;const a=({target:u})=>{u===t&&(o=!0,t.removeEventListener(Br,a),fe(e))};t.addEventListener(Br,a),setTimeout(()=>{o||Aa(t)},i)},Li=(e,t,n,r)=>{const i=e.length;let o=e.indexOf(t);return o===-1?!n&&r?e[i-1]:e[0]:(o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))])},Gf=/[^.]*(?=\..*)\.|.*/,Kf=/\..*/,Uf=/::\d+$/,yr={};let $s=1;const xa={mouseenter:"mouseover",mouseleave:"mouseout"},qf=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function $a(e,t){return t&&`${t}::${$s++}`||e.uidEvent||$s++}function Ca(e){const t=$a(e);return e.uidEvent=t,yr[t]=yr[t]||{},yr[t]}function zf(e,t){return function n(r){return Ii(r,{delegateTarget:e}),n.oneOff&&w.off(e,r.type,t),t.apply(e,[r])}}function Xf(e,t,n){return function r(i){const o=e.querySelectorAll(t);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const u of o)if(u===a)return Ii(i,{delegateTarget:a}),r.oneOff&&w.off(e,i.type,t,n),n.apply(a,[i])}}function Da(e,t,n=null){return Object.values(e).find(r=>r.callable===t&&r.delegationSelector===n)}function Na(e,t,n){const r=typeof t=="string",i=r?n:t||n;let o=Ma(e);return qf.has(o)||(o=e),[r,i,o]}function Cs(e,t,n,r,i){if(typeof t!="string"||!e)return;let[o,a,u]=Na(t,n,r);t in xa&&(a=(h=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return h.call(this,_)})(a));const f=Ca(e),d=f[u]||(f[u]={}),g=Da(d,a,o?n:null);if(g){g.oneOff=g.oneOff&&i;return}const s=$a(a,t.replace(Gf,"")),c=o?Xf(e,n,a):zf(e,a);c.delegationSelector=o?n:null,c.callable=a,c.oneOff=i,c.uidEvent=s,d[s]=c,e.addEventListener(u,c,o)}function Fr(e,t,n,r,i){const o=Da(t[n],r,i);!o||(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}function Qf(e,t,n,r){const i=t[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&Fr(e,t,n,a.callable,a.delegationSelector)}function Ma(e){return e=e.replace(Kf,""),xa[e]||e}const w={on(e,t,n,r){Cs(e,t,n,r,!1)},one(e,t,n,r){Cs(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!="string"||!e)return;const[i,o,a]=Na(t,n,r),u=a!==t,f=Ca(e),d=f[a]||{},g=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Fr(e,f,a,o,i?n:null);return}if(g)for(const s of Object.keys(f))Qf(e,f,s,t.slice(1));for(const[s,c]of Object.entries(d)){const l=s.replace(Uf,"");(!u||t.includes(l))&&Fr(e,f,a,c.callable,c.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const r=Sa(),i=Ma(t),o=t!==i;let a=null,u=!0,f=!0,d=!1;o&&r&&(a=r.Event(t,n),r(e).trigger(a),u=!a.isPropagationStopped(),f=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented());const g=Ii(new Event(t,{bubbles:u,cancelable:!0}),n);return d&&g.preventDefault(),f&&e.dispatchEvent(g),g.defaultPrevented&&a&&a.preventDefault(),g}};function Ii(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Ds(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function br(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ke={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${br(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${br(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ds(e.dataset[r])}return t},getDataAttribute(e,t){return Ds(e.getAttribute(`data-bs-${br(t)}`))}};class on{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const r=Ie(n)?ke.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ie(n)?ke.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const o=t[r],a=Ie(o)?"element":Vf(o);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}const Jf="5.3.3";class Se extends on{constructor(t,n){super(),t=We(t),t&&(this._element=t,this._config=this._getConfig(n),gr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){gr.remove(this._element,this.constructor.DATA_KEY),w.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,r=!0){Oa(t,n,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return gr.get(We(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return Jf}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Er=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(n=>wa(n)).join(","):null},P={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!Ye(n)&&Bt(n))},getSelectorFromElement(e){const t=Er(e);return t&&P.findOne(t)?t:null},getElementFromSelector(e){const t=Er(e);return t?P.findOne(t):null},getMultipleElementsFromSelector(e){const t=Er(e);return t?P.find(t):[]}},Xn=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;w.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ye(this))return;const o=P.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()})},Zf="alert",ed="bs.alert",La=`.${ed}`,td=`close${La}`,nd=`closed${La}`,rd="fade",id="show";class an extends Se{static get NAME(){return Zf}close(){if(w.trigger(this._element,td).defaultPrevented)return;this._element.classList.remove(id);const n=this._element.classList.contains(rd);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),w.trigger(this._element,nd),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=an.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(an,"close");ye(an);const sd="button",od="bs.button",ad=`.${od}`,cd=".data-api",ld="active",Ns='[data-bs-toggle="button"]',ud=`click${ad}${cd}`;class Qn extends Se{static get NAME(){return sd}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ld))}static jQueryInterface(t){return this.each(function(){const n=Qn.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}w.on(document,ud,Ns,e=>{e.preventDefault();const t=e.target.closest(Ns);Qn.getOrCreateInstance(t).toggle()});ye(Qn);const fd="swipe",Ft=".bs.swipe",dd=`touchstart${Ft}`,hd=`touchmove${Ft}`,pd=`touchend${Ft}`,_d=`pointerdown${Ft}`,md=`pointerup${Ft}`,gd="touch",vd="pen",yd="pointer-event",bd=40,Ed={endCallback:null,leftCallback:null,rightCallback:null},wd={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class In extends on{constructor(t,n){super(),this._element=t,!(!t||!In.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ed}static get DefaultType(){return wd}static get NAME(){return fd}dispose(){w.off(this._element,Ft)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=bd)return;const n=t/this._deltaX;this._deltaX=0,n&&fe(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(w.on(this._element,_d,t=>this._start(t)),w.on(this._element,md,t=>this._end(t)),this._element.classList.add(yd)):(w.on(this._element,dd,t=>this._start(t)),w.on(this._element,hd,t=>this._move(t)),w.on(this._element,pd,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===vd||t.pointerType===gd)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ad="carousel",Td="bs.carousel",Qe=`.${Td}`,Ia=".data-api",Sd="ArrowLeft",Od="ArrowRight",xd=500,Wt="next",gt="prev",Et="left",xn="right",$d=`slide${Qe}`,wr=`slid${Qe}`,Cd=`keydown${Qe}`,Dd=`mouseenter${Qe}`,Nd=`mouseleave${Qe}`,Md=`dragstart${Qe}`,Ld=`load${Qe}${Ia}`,Id=`click${Qe}${Ia}`,ka="carousel",gn="active",kd="slide",Pd="carousel-item-end",Rd="carousel-item-start",Hd="carousel-item-next",Bd="carousel-item-prev",Pa=".active",Ra=".carousel-item",Fd=Pa+Ra,Vd=".carousel-item img",jd=".carousel-indicators",Wd="[data-bs-slide], [data-bs-slide-to]",Yd='[data-bs-ride="carousel"]',Gd={[Sd]:xn,[Od]:Et},Kd={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ud={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends Se{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=P.findOne(jd,this._element),this._addEventListeners(),this._config.ride===ka&&this.cycle()}static get Default(){return Kd}static get DefaultType(){return Ud}static get NAME(){return Ad}next(){this._slide(Wt)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(gt)}pause(){this._isSliding&&Aa(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){w.one(this._element,wr,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){w.one(this._element,wr,()=>this.to(t));return}const r=this._getItemIndex(this._getActive());if(r===t)return;const i=t>r?Wt:gt;this._slide(i,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&w.on(this._element,Cd,t=>this._keydown(t)),this._config.pause==="hover"&&(w.on(this._element,Dd,()=>this.pause()),w.on(this._element,Nd,()=>this._maybeEnableCycle())),this._config.touch&&In.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of P.find(Vd,this._element))w.on(r,Md,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Et)),rightCallback:()=>this._slide(this._directionToOrder(xn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),xd+this._config.interval))}};this._swipeHelper=new In(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=Gd[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=P.findOne(Pa,this._indicatorsElement);n.classList.remove(gn),n.removeAttribute("aria-current");const r=P.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(gn),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const r=this._getActive(),i=t===Wt,o=n||Li(this._getItems(),r,i,this._config.wrap);if(o===r)return;const a=this._getItemIndex(o),u=l=>w.trigger(this._element,l,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:a});if(u($d).defaultPrevented||!r||!o)return;const d=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const g=i?Rd:Pd,s=i?Hd:Bd;o.classList.add(s),sn(o),r.classList.add(g),o.classList.add(g);const c=()=>{o.classList.remove(g,s),o.classList.add(gn),r.classList.remove(gn,s,g),this._isSliding=!1,u(wr)};this._queueCallback(c,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(kd)}_getActive(){return P.findOne(Fd,this._element)}_getItems(){return P.find(Ra,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ge()?t===Et?gt:Wt:t===Et?Wt:gt}_orderToDirection(t){return ge()?t===gt?Et:xn:t===gt?xn:Et}static jQueryInterface(t){return this.each(function(){const n=cn.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,Id,Wd,function(e){const t=P.getElementFromSelector(this);if(!t||!t.classList.contains(ka))return;e.preventDefault();const n=cn.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ke.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});w.on(window,Ld,()=>{const e=P.find(Yd);for(const t of e)cn.getOrCreateInstance(t)});ye(cn);const qd="collapse",zd="bs.collapse",ln=`.${zd}`,Xd=".data-api",Qd=`show${ln}`,Jd=`shown${ln}`,Zd=`hide${ln}`,eh=`hidden${ln}`,th=`click${ln}${Xd}`,Ar="show",At="collapse",vn="collapsing",nh="collapsed",rh=`:scope .${At} .${At}`,ih="collapse-horizontal",sh="width",oh="height",ah=".collapse.show, .collapse.collapsing",Vr='[data-bs-toggle="collapse"]',ch={parent:null,toggle:!0},lh={parent:"(null|element)",toggle:"boolean"};class Lt extends Se{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const r=P.find(Vr);for(const i of r){const o=P.getSelectorFromElement(i),a=P.find(o).filter(u=>u===this._element);o!==null&&a.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ch}static get DefaultType(){return lh}static get NAME(){return qd}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(ah).filter(u=>u!==this._element).map(u=>Lt.getOrCreateInstance(u,{toggle:!1}))),t.length&&t[0]._isTransitioning||w.trigger(this._element,Qd).defaultPrevented)return;for(const u of t)u.hide();const r=this._getDimension();this._element.classList.remove(At),this._element.classList.add(vn),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(At,Ar),this._element.style[r]="",w.trigger(this._element,Jd)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||w.trigger(this._element,Zd).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,sn(this._element),this._element.classList.add(vn),this._element.classList.remove(At,Ar);for(const i of this._triggerArray){const o=P.getElementFromSelector(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(At),w.trigger(this._element,eh)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ar)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=We(t.parent),t}_getDimension(){return this._element.classList.contains(ih)?sh:oh}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Vr);for(const n of t){const r=P.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(t){const n=P.find(rh,this._config.parent);return P.find(t,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(t,n){if(!!t.length)for(const r of t)r.classList.toggle(nh,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const r=Lt.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}w.on(document,th,Vr,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of P.getMultipleElementsFromSelector(this))Lt.getOrCreateInstance(t,{toggle:!1}).toggle()});ye(Lt);const Ms="dropdown",uh="bs.dropdown",pt=`.${uh}`,ki=".data-api",fh="Escape",Ls="Tab",dh="ArrowUp",Is="ArrowDown",hh=2,ph=`hide${pt}`,_h=`hidden${pt}`,mh=`show${pt}`,gh=`shown${pt}`,Ha=`click${pt}${ki}`,Ba=`keydown${pt}${ki}`,vh=`keyup${pt}${ki}`,wt="show",yh="dropup",bh="dropend",Eh="dropstart",wh="dropup-center",Ah="dropdown-center",nt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Th=`${nt}.${wt}`,$n=".dropdown-menu",Sh=".navbar",Oh=".navbar-nav",xh=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$h=ge()?"top-end":"top-start",Ch=ge()?"top-start":"top-end",Dh=ge()?"bottom-end":"bottom-start",Nh=ge()?"bottom-start":"bottom-end",Mh=ge()?"left-start":"right-start",Lh=ge()?"right-start":"left-start",Ih="top",kh="bottom",Ph={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Rh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ce extends Se{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=P.next(this._element,$n)[0]||P.prev(this._element,$n)[0]||P.findOne($n,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ph}static get DefaultType(){return Rh}static get NAME(){return Ms}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ye(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!w.trigger(this._element,mh,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Oh))for(const r of[].concat(...document.body.children))w.on(r,"mouseover",Ln);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wt),this._element.classList.add(wt),w.trigger(this._element,gh,t)}}hide(){if(Ye(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!w.trigger(this._element,ph,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))w.off(r,"mouseover",Ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(wt),this._element.classList.remove(wt),this._element.setAttribute("aria-expanded","false"),ke.removeDataAttribute(this._menu,"popper"),w.trigger(this._element,_h,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Ie(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ms.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ea>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Ie(this._config.reference)?t=We(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Mi(t,this._menu,n)}_isShown(){return this._menu.classList.contains(wt)}_getPlacement(){const t=this._parent;if(t.classList.contains(bh))return Mh;if(t.classList.contains(Eh))return Lh;if(t.classList.contains(wh))return Ih;if(t.classList.contains(Ah))return kh;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(yh)?n?Ch:$h:n?Nh:Dh}_detectNavbar(){return this._element.closest(Sh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ke.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fe(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const r=P.find(xh,this._menu).filter(i=>Bt(i));!r.length||Li(r,n,t===Is,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Ce.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===hh||t.type==="keyup"&&t.key!==Ls)return;const n=P.find(Th);for(const r of n){const i=Ce.getInstance(r);if(!i||i._config.autoClose===!1)continue;const o=t.composedPath(),a=o.includes(i._menu);if(o.includes(i._element)||i._config.autoClose==="inside"&&!a||i._config.autoClose==="outside"&&a||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Ls||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const u={relatedTarget:i._element};t.type==="click"&&(u.clickEvent=t),i._completeHide(u)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),r=t.key===fh,i=[dh,Is].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();const o=this.matches(nt)?this:P.prev(this,nt)[0]||P.next(this,nt)[0]||P.findOne(nt,t.delegateTarget.parentNode),a=Ce.getOrCreateInstance(o);if(i){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),o.focus())}}w.on(document,Ba,nt,Ce.dataApiKeydownHandler);w.on(document,Ba,$n,Ce.dataApiKeydownHandler);w.on(document,Ha,Ce.clearMenus);w.on(document,vh,Ce.clearMenus);w.on(document,Ha,nt,function(e){e.preventDefault(),Ce.getOrCreateInstance(this).toggle()});ye(Ce);const Fa="backdrop",Hh="fade",ks="show",Ps=`mousedown.bs.${Fa}`,Bh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Fh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Va extends on{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Bh}static get DefaultType(){return Fh}static get NAME(){return Fa}show(t){if(!this._config.isVisible){fe(t);return}this._append();const n=this._getElement();this._config.isAnimated&&sn(n),n.classList.add(ks),this._emulateAnimation(()=>{fe(t)})}hide(t){if(!this._config.isVisible){fe(t);return}this._getElement().classList.remove(ks),this._emulateAnimation(()=>{this.dispose(),fe(t)})}dispose(){!this._isAppended||(w.off(this._element,Ps),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Hh),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=We(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),w.on(t,Ps,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Oa(t,this._getElement(),this._config.isAnimated)}}const Vh="focustrap",jh="bs.focustrap",kn=`.${jh}`,Wh=`focusin${kn}`,Yh=`keydown.tab${kn}`,Gh="Tab",Kh="forward",Rs="backward",Uh={autofocus:!0,trapElement:null},qh={autofocus:"boolean",trapElement:"element"};class ja extends on{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Uh}static get DefaultType(){return qh}static get NAME(){return Vh}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),w.off(document,kn),w.on(document,Wh,t=>this._handleFocusin(t)),w.on(document,Yh,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,w.off(document,kn))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const r=P.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Rs?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===Gh&&(this._lastTabNavDirection=t.shiftKey?Rs:Kh)}}const Hs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bs=".sticky-top",yn="padding-right",Fs="margin-right";class jr{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,yn,n=>n+t),this._setElementAttributes(Hs,yn,n=>n+t),this._setElementAttributes(Bs,Fs,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yn),this._resetElementAttributes(Hs,yn),this._resetElementAttributes(Bs,Fs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,r){const i=this.getWidth(),o=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+i)return;this._saveInitialAttribute(a,n);const u=window.getComputedStyle(a).getPropertyValue(n);a.style.setProperty(n,`${r(Number.parseFloat(u))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&ke.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=i=>{const o=ke.getDataAttribute(i,n);if(o===null){i.style.removeProperty(n);return}ke.removeDataAttribute(i,n),i.style.setProperty(n,o)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,n){if(Ie(t)){n(t);return}for(const r of P.find(t,this._element))n(r)}}const zh="modal",Xh="bs.modal",ve=`.${Xh}`,Qh=".data-api",Jh="Escape",Zh=`hide${ve}`,ep=`hidePrevented${ve}`,Wa=`hidden${ve}`,Ya=`show${ve}`,tp=`shown${ve}`,np=`resize${ve}`,rp=`click.dismiss${ve}`,ip=`mousedown.dismiss${ve}`,sp=`keydown.dismiss${ve}`,op=`click${ve}${Qh}`,Vs="modal-open",ap="fade",js="show",Tr="modal-static",cp=".modal.show",lp=".modal-dialog",up=".modal-body",fp='[data-bs-toggle="modal"]',dp={backdrop:!0,focus:!0,keyboard:!0},hp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ut extends Se{constructor(t,n){super(t,n),this._dialog=P.findOne(lp,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new jr,this._addEventListeners()}static get Default(){return dp}static get DefaultType(){return hp}static get NAME(){return zh}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||w.trigger(this._element,Ya,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Vs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||w.trigger(this._element,Zh).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(js),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){w.off(window,ve),w.off(this._dialog,ve),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Va({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=P.findOne(up,this._dialog);n&&(n.scrollTop=0),sn(this._element),this._element.classList.add(js);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,w.trigger(this._element,tp,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){w.on(this._element,sp,t=>{if(t.key===Jh){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),w.on(window,np,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),w.on(this._element,ip,t=>{w.one(this._element,rp,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Vs),this._resetAdjustments(),this._scrollBar.reset(),w.trigger(this._element,Wa)})}_isAnimated(){return this._element.classList.contains(ap)}_triggerBackdropTransition(){if(w.trigger(this._element,ep).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Tr)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Tr),this._queueCallback(()=>{this._element.classList.remove(Tr),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!t){const i=ge()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&t){const i=ge()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const r=ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](n)}})}}w.on(document,op,fp,function(e){const t=P.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),w.one(t,Ya,i=>{i.defaultPrevented||w.one(t,Wa,()=>{Bt(this)&&this.focus()})});const n=P.findOne(cp);n&&ut.getInstance(n).hide(),ut.getOrCreateInstance(t).toggle(this)});Xn(ut);ye(ut);const pp="offcanvas",_p="bs.offcanvas",Fe=`.${_p}`,Ga=".data-api",mp=`load${Fe}${Ga}`,gp="Escape",Ws="show",Ys="showing",Gs="hiding",vp="offcanvas-backdrop",Ka=".offcanvas.show",yp=`show${Fe}`,bp=`shown${Fe}`,Ep=`hide${Fe}`,Ks=`hidePrevented${Fe}`,Ua=`hidden${Fe}`,wp=`resize${Fe}`,Ap=`click${Fe}${Ga}`,Tp=`keydown.dismiss${Fe}`,Sp='[data-bs-toggle="offcanvas"]',Op={backdrop:!0,keyboard:!0,scroll:!1},xp={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ge extends Se{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Op}static get DefaultType(){return xp}static get NAME(){return pp}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||w.trigger(this._element,yp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new jr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ys);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ws),this._element.classList.remove(Ys),w.trigger(this._element,bp,{relatedTarget:t})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||w.trigger(this._element,Ep).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Gs),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ws,Gs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new jr().reset(),w.trigger(this._element,Ua)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){w.trigger(this._element,Ks);return}this.hide()},n=Boolean(this._config.backdrop);return new Va({className:vp,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_addEventListeners(){w.on(this._element,Tp,t=>{if(t.key===gp){if(this._config.keyboard){this.hide();return}w.trigger(this._element,Ks)}})}static jQueryInterface(t){return this.each(function(){const n=Ge.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}w.on(document,Ap,Sp,function(e){const t=P.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ye(this))return;w.one(t,Ua,()=>{Bt(this)&&this.focus()});const n=P.findOne(Ka);n&&n!==t&&Ge.getInstance(n).hide(),Ge.getOrCreateInstance(t).toggle(this)});w.on(window,mp,()=>{for(const e of P.find(Ka))Ge.getOrCreateInstance(e).show()});w.on(window,wp,()=>{for(const e of P.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Ge.getOrCreateInstance(e).hide()});Xn(Ge);ye(Ge);const $p=/^aria-[\w-]*$/i,qa={"*":["class","dir","id","lang","role",$p],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Cp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Np=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?Cp.has(n)?Boolean(Dp.test(e.nodeValue)):!0:t.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function Mp(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const i=new window.DOMParser().parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const u=a.nodeName.toLowerCase();if(!Object.keys(t).includes(u)){a.remove();continue}const f=[].concat(...a.attributes),d=[].concat(t["*"]||[],t[u]||[]);for(const g of f)Np(g,d)||a.removeAttribute(g.nodeName)}return i.body.innerHTML}const Lp="TemplateFactory",Ip={allowList:qa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},kp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Pp={entry:"(string|element|function|null)",selector:"(string|element)"};class Rp extends on{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ip}static get DefaultType(){return kp}static get NAME(){return Lp}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,o]of Object.entries(this._config.content))this._setContent(t,o,i);const n=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,r]of Object.entries(t))super._typeCheckConfig({selector:n,entry:r},Pp)}_setContent(t,n,r){const i=P.findOne(r,t);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Ie(n)){this._putElementInTemplate(We(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(t){return this._config.sanitize?Mp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fe(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const Hp="tooltip",Bp=new Set(["sanitize","allowList","sanitizeFn"]),Sr="fade",Fp="modal",bn="show",Vp=".tooltip-inner",Us=`.${Fp}`,qs="hide.bs.modal",Yt="hover",Or="focus",jp="click",Wp="manual",Yp="hide",Gp="hidden",Kp="show",Up="shown",qp="inserted",zp="click",Xp="focusin",Qp="focusout",Jp="mouseenter",Zp="mouseleave",e_={AUTO:"auto",TOP:"top",RIGHT:ge()?"left":"right",BOTTOM:"bottom",LEFT:ge()?"right":"left"},t_={allowList:qa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},n_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class _t extends Se{constructor(t,n){if(typeof Ea>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return t_}static get DefaultType(){return n_}static get NAME(){return Hp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),w.off(this._element.closest(Us),qs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=w.trigger(this._element,this.constructor.eventName(Kp)),r=(Ta(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!r)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(i),w.trigger(this._element,this.constructor.eventName(qp))),this._popper=this._createPopper(i),i.classList.add(bn),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))w.on(u,"mouseover",Ln);const a=()=>{w.trigger(this._element,this.constructor.eventName(Up)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||w.trigger(this._element,this.constructor.eventName(Yp)).defaultPrevented)return;if(this._getTipElement().classList.remove(bn),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))w.off(i,"mouseover",Ln);this._activeTrigger[jp]=!1,this._activeTrigger[Or]=!1,this._activeTrigger[Yt]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),w.trigger(this._element,this.constructor.eventName(Gp)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(Sr,bn),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=jf(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Sr),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Rp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Vp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sr)}_isShown(){return this.tip&&this.tip.classList.contains(bn)}_createPopper(t){const n=fe(this._config.placement,[this,t,this._element]),r=e_[n.toUpperCase()];return Mi(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return fe(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...fe(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")w.on(this._element,this.constructor.eventName(zp),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==Wp){const r=n===Yt?this.constructor.eventName(Jp):this.constructor.eventName(Xp),i=n===Yt?this.constructor.eventName(Zp):this.constructor.eventName(Qp);w.on(this._element,r,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusin"?Or:Yt]=!0,a._enter()}),w.on(this._element,i,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusout"?Or:Yt]=a._element.contains(o.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},w.on(this._element.closest(Us),qs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");!t||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=ke.getDataAttributes(this._element);for(const r of Object.keys(n))Bp.has(r)&&delete n[r];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:We(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(t[n]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=_t.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(_t);const r_="popover",i_=".popover-header",s_=".popover-body",o_={..._t.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},a_={..._t.DefaultType,content:"(null|string|element|function)"};class Pi extends _t{static get Default(){return o_}static get DefaultType(){return a_}static get NAME(){return r_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[i_]:this._getTitle(),[s_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Pi.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(Pi);const c_="scrollspy",l_="bs.scrollspy",Ri=`.${l_}`,u_=".data-api",f_=`activate${Ri}`,zs=`click${Ri}`,d_=`load${Ri}${u_}`,h_="dropdown-item",vt="active",p_='[data-bs-spy="scroll"]',xr="[href]",__=".nav, .list-group",Xs=".nav-link",m_=".nav-item",g_=".list-group-item",v_=`${Xs}, ${m_} > ${Xs}, ${g_}`,y_=".dropdown",b_=".dropdown-toggle",E_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},w_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends Se{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return E_}static get DefaultType(){return w_}static get NAME(){return c_}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=We(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(w.off(this._config.target,zs),w.on(this._config.target,zs,xr,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=a=>this._targetLinks.get(`#${a.target.id}`),r=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(n(a))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const a of t){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(a));continue}const u=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&u){if(r(a),!i)return;continue}!o&&!u&&r(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=P.find(xr,this._config.target);for(const n of t){if(!n.hash||Ye(n))continue;const r=P.findOne(decodeURI(n.hash),this._element);Bt(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(vt),this._activateParents(t),w.trigger(this._element,f_,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(h_)){P.findOne(b_,t.closest(y_)).classList.add(vt);return}for(const n of P.parents(t,__))for(const r of P.prev(n,v_))r.classList.add(vt)}_clearActiveClass(t){t.classList.remove(vt);const n=P.find(`${xr}.${vt}`,t);for(const r of n)r.classList.remove(vt)}static jQueryInterface(t){return this.each(function(){const n=Jn.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(window,d_,()=>{for(const e of P.find(p_))Jn.getOrCreateInstance(e)});ye(Jn);const A_="tab",T_="bs.tab",mt=`.${T_}`,S_=`hide${mt}`,O_=`hidden${mt}`,x_=`show${mt}`,$_=`shown${mt}`,C_=`click${mt}`,D_=`keydown${mt}`,N_=`load${mt}`,M_="ArrowLeft",Qs="ArrowRight",L_="ArrowUp",Js="ArrowDown",$r="Home",Zs="End",rt="active",eo="fade",Cr="show",I_="dropdown",za=".dropdown-toggle",k_=".dropdown-menu",Dr=`:not(${za})`,P_='.list-group, .nav, [role="tablist"]',R_=".nav-item, .list-group-item",H_=`.nav-link${Dr}, .list-group-item${Dr}, [role="tab"]${Dr}`,Xa='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nr=`${H_}, ${Xa}`,B_=`.${rt}[data-bs-toggle="tab"], .${rt}[data-bs-toggle="pill"], .${rt}[data-bs-toggle="list"]`;class It extends Se{constructor(t){super(t),this._parent=this._element.closest(P_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),w.on(this._element,D_,n=>this._keydown(n)))}static get NAME(){return A_}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),r=n?w.trigger(n,S_,{relatedTarget:t}):null;w.trigger(t,x_,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(rt),this._activate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Cr);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),w.trigger(t,$_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(eo))}_deactivate(t,n){if(!t)return;t.classList.remove(rt),t.blur(),this._deactivate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Cr);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),w.trigger(t,O_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(eo))}_keydown(t){if(![M_,Qs,L_,Js,$r,Zs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(i=>!Ye(i));let r;if([$r,Zs].includes(t.key))r=n[t.key===$r?0:n.length-1];else{const i=[Qs,Js].includes(t.key);r=Li(n,t.target,i,!0)}r&&(r.focus({preventScroll:!0}),It.getOrCreateInstance(r).show())}_getChildren(){return P.find(Nr,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",n),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=P.getElementFromSelector(t);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const r=this._getOuterElement(t);if(!r.classList.contains(I_))return;const i=(o,a)=>{const u=P.findOne(o,r);u&&u.classList.toggle(a,n)};i(za,rt),i(k_,Cr),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,r){t.hasAttribute(n)||t.setAttribute(n,r)}_elemIsActive(t){return t.classList.contains(rt)}_getInnerElement(t){return t.matches(Nr)?t:P.findOne(Nr,t)}_getOuterElement(t){return t.closest(R_)||t}static jQueryInterface(t){return this.each(function(){const n=It.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,C_,Xa,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ye(this)&&It.getOrCreateInstance(this).show()});w.on(window,N_,()=>{for(const e of P.find(B_))It.getOrCreateInstance(e)});ye(It);const F_="toast",V_="bs.toast",Je=`.${V_}`,j_=`mouseover${Je}`,W_=`mouseout${Je}`,Y_=`focusin${Je}`,G_=`focusout${Je}`,K_=`hide${Je}`,U_=`hidden${Je}`,q_=`show${Je}`,z_=`shown${Je}`,X_="fade",to="hide",En="show",wn="showing",Q_={animation:"boolean",autohide:"boolean",delay:"number"},J_={animation:!0,autohide:!0,delay:5e3};class un extends Se{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return J_}static get DefaultType(){return Q_}static get NAME(){return F_}show(){if(w.trigger(this._element,q_).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(X_);const n=()=>{this._element.classList.remove(wn),w.trigger(this._element,z_),this._maybeScheduleHide()};this._element.classList.remove(to),sn(this._element),this._element.classList.add(En,wn),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||w.trigger(this._element,K_).defaultPrevented)return;const n=()=>{this._element.classList.add(to),this._element.classList.remove(wn,En),w.trigger(this._element,U_)};this._element.classList.add(wn),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(En),super.dispose()}isShown(){return this._element.classList.contains(En)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){w.on(this._element,j_,t=>this._onInteraction(t,!0)),w.on(this._element,W_,t=>this._onInteraction(t,!1)),w.on(this._element,Y_,t=>this._onInteraction(t,!0)),w.on(this._element,G_,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(un);ye(un);const Z_=()=>{[].slice.call(document.querySelectorAll(".alert")).map(function(t){return new an(t)})},em=()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(t=>new _t(t))},tm=()=>{[].slice.call(document.querySelectorAll(".collapse")).map(t=>new Lt(t,{toggle:!1}))};var Wr=!1,Yr=!1,st=[];function nm(e){rm(e)}function rm(e){st.includes(e)||st.push(e),im()}function Qa(e){let t=st.indexOf(e);t!==-1&&st.splice(t,1)}function im(){!Yr&&!Wr&&(Wr=!0,queueMicrotask(sm))}function sm(){Wr=!1,Yr=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Gr?nm(n):n()}}),Ja=e.raw}function no(e){fn=e}function cm(e){let t=()=>{};return[r=>{let i=fn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),Zn(i))},i},()=>{t()}]}var Za=[],ec=[],tc=[];function lm(e){tc.push(e)}function nc(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,ec.push(t))}function um(e){Za.push(e)}function fm(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function rc(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Hi=new MutationObserver(Vi),Bi=!1;function ic(){Hi.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Bi=!0}function dm(){hm(),Hi.disconnect(),Bi=!1}var Xt=[],Mr=!1;function hm(){Xt=Xt.concat(Hi.takeRecords()),Xt.length&&!Mr&&(Mr=!0,queueMicrotask(()=>{pm(),Mr=!1}))}function pm(){Vi(Xt),Xt.length=0}function te(e){if(!Bi)return e();dm();let t=e();return ic(),t}var Fi=!1,Pn=[];function _m(){Fi=!0}function mm(){Fi=!1,Vi(Pn),Pn=[]}function Vi(e){if(Fi){Pn=Pn.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,u=e[o].attributeName,f=e[o].oldValue,d=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:u,value:a.getAttribute(u)})},g=()=>{i.has(a)||i.set(a,[]),i.get(a).push(u)};a.hasAttribute(u)&&f===null?d():a.hasAttribute(u)?(g(),d()):g()}i.forEach((o,a)=>{rc(a,o)}),r.forEach((o,a)=>{Za.forEach(u=>u(a,o))});for(let o of n)if(!t.includes(o)&&(ec.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,tc.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function sc(e){return hn(kt(e))}function dn(e,t,n){return e._x_dataStack=[t,...kt(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function ro(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function kt(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?kt(e.host):e.parentNode?kt(e.parentNode):[]}function hn(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,u=o.set,f=o;a=a&&a.bind(t),u=u&&u.bind(t),a&&(a._x_alreadyBound=!0),u&&(u._x_alreadyBound=!0),Object.defineProperty(i,r,{...f,get:a,set:u})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function oc(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:u}])=>{if(u===!1||a===void 0)return;let f=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,f,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,f)})};return n(e)}function ac(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>gm(r,i),a=>Kr(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,u)=>{let f=r.initialize(o,a,u);return n.initialValue=f,i(o,a,u)}}else n.initialValue=r;return n}}function gm(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Kr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Kr(e[t[0]],t.slice(1),n)}}var cc={};function Le(e,t){cc[e]=t}function Ur(e,t){return Object.entries(cc).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=hc(t);return i={interceptor:ac,...i},nc(t,o),r(t,i)},enumerable:!1})}),e}function vm(e,t,n,...r){try{return n(...r)}catch(i){en(i,e,t)}}function en(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} + */const Ve=new Map,gr={set(e,t,n){Ve.has(e)||Ve.set(e,new Map);const r=Ve.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Ve.has(e)&&Ve.get(e).get(t)||null},remove(e,t){if(!Ve.has(e))return;const n=Ve.get(e);n.delete(t),n.size===0&&Ve.delete(e)}},Ff=1e6,Vf=1e3,Br="transitionend",wa=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),jf=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Wf=e=>{do e+=Math.floor(Math.random()*Ff);while(document.getElementById(e));return e},Yf=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return!r&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*Vf)},Aa=e=>{e.dispatchEvent(new Event(Br))},Ie=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),We=e=>Ie(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(wa(e)):null,Bt=e=>{if(!Ie(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const r=e.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return t},Ye=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",Ta=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ta(e.parentNode):null},Ln=()=>{},sn=e=>{e.offsetHeight},Sa=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vr=[],Gf=e=>{document.readyState==="loading"?(vr.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of vr)t()}),vr.push(e)):e()},ge=()=>document.documentElement.dir==="rtl",ye=e=>{Gf(()=>{const t=Sa();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},fe=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,Oa=(e,t,n=!0)=>{if(!n){fe(e);return}const r=5,i=Yf(t)+r;let o=!1;const a=({target:u})=>{u===t&&(o=!0,t.removeEventListener(Br,a),fe(e))};t.addEventListener(Br,a),setTimeout(()=>{o||Aa(t)},i)},Li=(e,t,n,r)=>{const i=e.length;let o=e.indexOf(t);return o===-1?!n&&r?e[i-1]:e[0]:(o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))])},Kf=/[^.]*(?=\..*)\.|.*/,Uf=/\..*/,qf=/::\d+$/,yr={};let $s=1;const xa={mouseenter:"mouseover",mouseleave:"mouseout"},zf=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function $a(e,t){return t&&`${t}::${$s++}`||e.uidEvent||$s++}function Ca(e){const t=$a(e);return e.uidEvent=t,yr[t]=yr[t]||{},yr[t]}function Xf(e,t){return function n(r){return Ii(r,{delegateTarget:e}),n.oneOff&&w.off(e,r.type,t),t.apply(e,[r])}}function Qf(e,t,n){return function r(i){const o=e.querySelectorAll(t);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const u of o)if(u===a)return Ii(i,{delegateTarget:a}),r.oneOff&&w.off(e,i.type,t,n),n.apply(a,[i])}}function Da(e,t,n=null){return Object.values(e).find(r=>r.callable===t&&r.delegationSelector===n)}function Na(e,t,n){const r=typeof t=="string",i=r?n:t||n;let o=Ma(e);return zf.has(o)||(o=e),[r,i,o]}function Cs(e,t,n,r,i){if(typeof t!="string"||!e)return;let[o,a,u]=Na(t,n,r);t in xa&&(a=(h=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return h.call(this,_)})(a));const f=Ca(e),d=f[u]||(f[u]={}),g=Da(d,a,o?n:null);if(g){g.oneOff=g.oneOff&&i;return}const s=$a(a,t.replace(Kf,"")),c=o?Qf(e,n,a):Xf(e,a);c.delegationSelector=o?n:null,c.callable=a,c.oneOff=i,c.uidEvent=s,d[s]=c,e.addEventListener(u,c,o)}function Fr(e,t,n,r,i){const o=Da(t[n],r,i);!o||(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}function Jf(e,t,n,r){const i=t[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&Fr(e,t,n,a.callable,a.delegationSelector)}function Ma(e){return e=e.replace(Uf,""),xa[e]||e}const w={on(e,t,n,r){Cs(e,t,n,r,!1)},one(e,t,n,r){Cs(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!="string"||!e)return;const[i,o,a]=Na(t,n,r),u=a!==t,f=Ca(e),d=f[a]||{},g=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Fr(e,f,a,o,i?n:null);return}if(g)for(const s of Object.keys(f))Jf(e,f,s,t.slice(1));for(const[s,c]of Object.entries(d)){const l=s.replace(qf,"");(!u||t.includes(l))&&Fr(e,f,a,c.callable,c.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const r=Sa(),i=Ma(t),o=t!==i;let a=null,u=!0,f=!0,d=!1;o&&r&&(a=r.Event(t,n),r(e).trigger(a),u=!a.isPropagationStopped(),f=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented());const g=Ii(new Event(t,{bubbles:u,cancelable:!0}),n);return d&&g.preventDefault(),f&&e.dispatchEvent(g),g.defaultPrevented&&a&&a.preventDefault(),g}};function Ii(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Ds(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function br(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ke={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${br(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${br(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ds(e.dataset[r])}return t},getDataAttribute(e,t){return Ds(e.getAttribute(`data-bs-${br(t)}`))}};class on{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const r=Ie(n)?ke.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ie(n)?ke.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const o=t[r],a=Ie(o)?"element":jf(o);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}const Zf="5.3.3";class Se extends on{constructor(t,n){super(),t=We(t),t&&(this._element=t,this._config=this._getConfig(n),gr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){gr.remove(this._element,this.constructor.DATA_KEY),w.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,r=!0){Oa(t,n,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return gr.get(We(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return Zf}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Er=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(n=>wa(n)).join(","):null},P={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!Ye(n)&&Bt(n))},getSelectorFromElement(e){const t=Er(e);return t&&P.findOne(t)?t:null},getElementFromSelector(e){const t=Er(e);return t?P.findOne(t):null},getMultipleElementsFromSelector(e){const t=Er(e);return t?P.find(t):[]}},Xn=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;w.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ye(this))return;const o=P.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()})},ed="alert",td="bs.alert",La=`.${td}`,nd=`close${La}`,rd=`closed${La}`,id="fade",sd="show";class an extends Se{static get NAME(){return ed}close(){if(w.trigger(this._element,nd).defaultPrevented)return;this._element.classList.remove(sd);const n=this._element.classList.contains(id);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),w.trigger(this._element,rd),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=an.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(an,"close");ye(an);const od="button",ad="bs.button",cd=`.${ad}`,ld=".data-api",ud="active",Ns='[data-bs-toggle="button"]',fd=`click${cd}${ld}`;class Qn extends Se{static get NAME(){return od}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ud))}static jQueryInterface(t){return this.each(function(){const n=Qn.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}w.on(document,fd,Ns,e=>{e.preventDefault();const t=e.target.closest(Ns);Qn.getOrCreateInstance(t).toggle()});ye(Qn);const dd="swipe",Ft=".bs.swipe",hd=`touchstart${Ft}`,pd=`touchmove${Ft}`,_d=`touchend${Ft}`,md=`pointerdown${Ft}`,gd=`pointerup${Ft}`,vd="touch",yd="pen",bd="pointer-event",Ed=40,wd={endCallback:null,leftCallback:null,rightCallback:null},Ad={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class In extends on{constructor(t,n){super(),this._element=t,!(!t||!In.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return wd}static get DefaultType(){return Ad}static get NAME(){return dd}dispose(){w.off(this._element,Ft)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Ed)return;const n=t/this._deltaX;this._deltaX=0,n&&fe(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(w.on(this._element,md,t=>this._start(t)),w.on(this._element,gd,t=>this._end(t)),this._element.classList.add(bd)):(w.on(this._element,hd,t=>this._start(t)),w.on(this._element,pd,t=>this._move(t)),w.on(this._element,_d,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===yd||t.pointerType===vd)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Td="carousel",Sd="bs.carousel",Qe=`.${Sd}`,Ia=".data-api",Od="ArrowLeft",xd="ArrowRight",$d=500,Wt="next",gt="prev",Et="left",xn="right",Cd=`slide${Qe}`,wr=`slid${Qe}`,Dd=`keydown${Qe}`,Nd=`mouseenter${Qe}`,Md=`mouseleave${Qe}`,Ld=`dragstart${Qe}`,Id=`load${Qe}${Ia}`,kd=`click${Qe}${Ia}`,ka="carousel",gn="active",Pd="slide",Rd="carousel-item-end",Hd="carousel-item-start",Bd="carousel-item-next",Fd="carousel-item-prev",Pa=".active",Ra=".carousel-item",Vd=Pa+Ra,jd=".carousel-item img",Wd=".carousel-indicators",Yd="[data-bs-slide], [data-bs-slide-to]",Gd='[data-bs-ride="carousel"]',Kd={[Od]:xn,[xd]:Et},Ud={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},qd={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends Se{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=P.findOne(Wd,this._element),this._addEventListeners(),this._config.ride===ka&&this.cycle()}static get Default(){return Ud}static get DefaultType(){return qd}static get NAME(){return Td}next(){this._slide(Wt)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(gt)}pause(){this._isSliding&&Aa(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){w.one(this._element,wr,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){w.one(this._element,wr,()=>this.to(t));return}const r=this._getItemIndex(this._getActive());if(r===t)return;const i=t>r?Wt:gt;this._slide(i,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&w.on(this._element,Dd,t=>this._keydown(t)),this._config.pause==="hover"&&(w.on(this._element,Nd,()=>this.pause()),w.on(this._element,Md,()=>this._maybeEnableCycle())),this._config.touch&&In.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of P.find(jd,this._element))w.on(r,Ld,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Et)),rightCallback:()=>this._slide(this._directionToOrder(xn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$d+this._config.interval))}};this._swipeHelper=new In(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=Kd[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=P.findOne(Pa,this._indicatorsElement);n.classList.remove(gn),n.removeAttribute("aria-current");const r=P.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(gn),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const r=this._getActive(),i=t===Wt,o=n||Li(this._getItems(),r,i,this._config.wrap);if(o===r)return;const a=this._getItemIndex(o),u=l=>w.trigger(this._element,l,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:a});if(u(Cd).defaultPrevented||!r||!o)return;const d=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const g=i?Hd:Rd,s=i?Bd:Fd;o.classList.add(s),sn(o),r.classList.add(g),o.classList.add(g);const c=()=>{o.classList.remove(g,s),o.classList.add(gn),r.classList.remove(gn,s,g),this._isSliding=!1,u(wr)};this._queueCallback(c,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Pd)}_getActive(){return P.findOne(Vd,this._element)}_getItems(){return P.find(Ra,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ge()?t===Et?gt:Wt:t===Et?Wt:gt}_orderToDirection(t){return ge()?t===gt?Et:xn:t===gt?xn:Et}static jQueryInterface(t){return this.each(function(){const n=cn.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,kd,Yd,function(e){const t=P.getElementFromSelector(this);if(!t||!t.classList.contains(ka))return;e.preventDefault();const n=cn.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ke.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});w.on(window,Id,()=>{const e=P.find(Gd);for(const t of e)cn.getOrCreateInstance(t)});ye(cn);const zd="collapse",Xd="bs.collapse",ln=`.${Xd}`,Qd=".data-api",Jd=`show${ln}`,Zd=`shown${ln}`,eh=`hide${ln}`,th=`hidden${ln}`,nh=`click${ln}${Qd}`,Ar="show",At="collapse",vn="collapsing",rh="collapsed",ih=`:scope .${At} .${At}`,sh="collapse-horizontal",oh="width",ah="height",ch=".collapse.show, .collapse.collapsing",Vr='[data-bs-toggle="collapse"]',lh={parent:null,toggle:!0},uh={parent:"(null|element)",toggle:"boolean"};class Lt extends Se{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const r=P.find(Vr);for(const i of r){const o=P.getSelectorFromElement(i),a=P.find(o).filter(u=>u===this._element);o!==null&&a.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return lh}static get DefaultType(){return uh}static get NAME(){return zd}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(ch).filter(u=>u!==this._element).map(u=>Lt.getOrCreateInstance(u,{toggle:!1}))),t.length&&t[0]._isTransitioning||w.trigger(this._element,Jd).defaultPrevented)return;for(const u of t)u.hide();const r=this._getDimension();this._element.classList.remove(At),this._element.classList.add(vn),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(At,Ar),this._element.style[r]="",w.trigger(this._element,Zd)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||w.trigger(this._element,eh).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,sn(this._element),this._element.classList.add(vn),this._element.classList.remove(At,Ar);for(const i of this._triggerArray){const o=P.getElementFromSelector(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(At),w.trigger(this._element,th)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ar)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=We(t.parent),t}_getDimension(){return this._element.classList.contains(sh)?oh:ah}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Vr);for(const n of t){const r=P.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(t){const n=P.find(ih,this._config.parent);return P.find(t,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(t,n){if(!!t.length)for(const r of t)r.classList.toggle(rh,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const r=Lt.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}w.on(document,nh,Vr,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of P.getMultipleElementsFromSelector(this))Lt.getOrCreateInstance(t,{toggle:!1}).toggle()});ye(Lt);const Ms="dropdown",fh="bs.dropdown",pt=`.${fh}`,ki=".data-api",dh="Escape",Ls="Tab",hh="ArrowUp",Is="ArrowDown",ph=2,_h=`hide${pt}`,mh=`hidden${pt}`,gh=`show${pt}`,vh=`shown${pt}`,Ha=`click${pt}${ki}`,Ba=`keydown${pt}${ki}`,yh=`keyup${pt}${ki}`,wt="show",bh="dropup",Eh="dropend",wh="dropstart",Ah="dropup-center",Th="dropdown-center",nt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Sh=`${nt}.${wt}`,$n=".dropdown-menu",Oh=".navbar",xh=".navbar-nav",$h=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ch=ge()?"top-end":"top-start",Dh=ge()?"top-start":"top-end",Nh=ge()?"bottom-end":"bottom-start",Mh=ge()?"bottom-start":"bottom-end",Lh=ge()?"left-start":"right-start",Ih=ge()?"right-start":"left-start",kh="top",Ph="bottom",Rh={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Hh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ce extends Se{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=P.next(this._element,$n)[0]||P.prev(this._element,$n)[0]||P.findOne($n,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rh}static get DefaultType(){return Hh}static get NAME(){return Ms}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ye(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!w.trigger(this._element,gh,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(xh))for(const r of[].concat(...document.body.children))w.on(r,"mouseover",Ln);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wt),this._element.classList.add(wt),w.trigger(this._element,vh,t)}}hide(){if(Ye(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!w.trigger(this._element,_h,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))w.off(r,"mouseover",Ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(wt),this._element.classList.remove(wt),this._element.setAttribute("aria-expanded","false"),ke.removeDataAttribute(this._menu,"popper"),w.trigger(this._element,mh,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Ie(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ms.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ea>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Ie(this._config.reference)?t=We(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Mi(t,this._menu,n)}_isShown(){return this._menu.classList.contains(wt)}_getPlacement(){const t=this._parent;if(t.classList.contains(Eh))return Lh;if(t.classList.contains(wh))return Ih;if(t.classList.contains(Ah))return kh;if(t.classList.contains(Th))return Ph;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(bh)?n?Dh:Ch:n?Mh:Nh}_detectNavbar(){return this._element.closest(Oh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ke.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fe(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const r=P.find($h,this._menu).filter(i=>Bt(i));!r.length||Li(r,n,t===Is,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Ce.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===ph||t.type==="keyup"&&t.key!==Ls)return;const n=P.find(Sh);for(const r of n){const i=Ce.getInstance(r);if(!i||i._config.autoClose===!1)continue;const o=t.composedPath(),a=o.includes(i._menu);if(o.includes(i._element)||i._config.autoClose==="inside"&&!a||i._config.autoClose==="outside"&&a||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Ls||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const u={relatedTarget:i._element};t.type==="click"&&(u.clickEvent=t),i._completeHide(u)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),r=t.key===dh,i=[hh,Is].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();const o=this.matches(nt)?this:P.prev(this,nt)[0]||P.next(this,nt)[0]||P.findOne(nt,t.delegateTarget.parentNode),a=Ce.getOrCreateInstance(o);if(i){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),o.focus())}}w.on(document,Ba,nt,Ce.dataApiKeydownHandler);w.on(document,Ba,$n,Ce.dataApiKeydownHandler);w.on(document,Ha,Ce.clearMenus);w.on(document,yh,Ce.clearMenus);w.on(document,Ha,nt,function(e){e.preventDefault(),Ce.getOrCreateInstance(this).toggle()});ye(Ce);const Fa="backdrop",Bh="fade",ks="show",Ps=`mousedown.bs.${Fa}`,Fh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Vh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Va extends on{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Fh}static get DefaultType(){return Vh}static get NAME(){return Fa}show(t){if(!this._config.isVisible){fe(t);return}this._append();const n=this._getElement();this._config.isAnimated&&sn(n),n.classList.add(ks),this._emulateAnimation(()=>{fe(t)})}hide(t){if(!this._config.isVisible){fe(t);return}this._getElement().classList.remove(ks),this._emulateAnimation(()=>{this.dispose(),fe(t)})}dispose(){!this._isAppended||(w.off(this._element,Ps),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Bh),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=We(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),w.on(t,Ps,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Oa(t,this._getElement(),this._config.isAnimated)}}const jh="focustrap",Wh="bs.focustrap",kn=`.${Wh}`,Yh=`focusin${kn}`,Gh=`keydown.tab${kn}`,Kh="Tab",Uh="forward",Rs="backward",qh={autofocus:!0,trapElement:null},zh={autofocus:"boolean",trapElement:"element"};class ja extends on{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return qh}static get DefaultType(){return zh}static get NAME(){return jh}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),w.off(document,kn),w.on(document,Yh,t=>this._handleFocusin(t)),w.on(document,Gh,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,w.off(document,kn))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const r=P.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Rs?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===Kh&&(this._lastTabNavDirection=t.shiftKey?Rs:Uh)}}const Hs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bs=".sticky-top",yn="padding-right",Fs="margin-right";class jr{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,yn,n=>n+t),this._setElementAttributes(Hs,yn,n=>n+t),this._setElementAttributes(Bs,Fs,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yn),this._resetElementAttributes(Hs,yn),this._resetElementAttributes(Bs,Fs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,r){const i=this.getWidth(),o=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+i)return;this._saveInitialAttribute(a,n);const u=window.getComputedStyle(a).getPropertyValue(n);a.style.setProperty(n,`${r(Number.parseFloat(u))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&ke.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=i=>{const o=ke.getDataAttribute(i,n);if(o===null){i.style.removeProperty(n);return}ke.removeDataAttribute(i,n),i.style.setProperty(n,o)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,n){if(Ie(t)){n(t);return}for(const r of P.find(t,this._element))n(r)}}const Xh="modal",Qh="bs.modal",ve=`.${Qh}`,Jh=".data-api",Zh="Escape",ep=`hide${ve}`,tp=`hidePrevented${ve}`,Wa=`hidden${ve}`,Ya=`show${ve}`,np=`shown${ve}`,rp=`resize${ve}`,ip=`click.dismiss${ve}`,sp=`mousedown.dismiss${ve}`,op=`keydown.dismiss${ve}`,ap=`click${ve}${Jh}`,Vs="modal-open",cp="fade",js="show",Tr="modal-static",lp=".modal.show",up=".modal-dialog",fp=".modal-body",dp='[data-bs-toggle="modal"]',hp={backdrop:!0,focus:!0,keyboard:!0},pp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ut extends Se{constructor(t,n){super(t,n),this._dialog=P.findOne(up,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new jr,this._addEventListeners()}static get Default(){return hp}static get DefaultType(){return pp}static get NAME(){return Xh}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||w.trigger(this._element,Ya,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Vs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||w.trigger(this._element,ep).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(js),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){w.off(window,ve),w.off(this._dialog,ve),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Va({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=P.findOne(fp,this._dialog);n&&(n.scrollTop=0),sn(this._element),this._element.classList.add(js);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,w.trigger(this._element,np,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){w.on(this._element,op,t=>{if(t.key===Zh){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),w.on(window,rp,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),w.on(this._element,sp,t=>{w.one(this._element,ip,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Vs),this._resetAdjustments(),this._scrollBar.reset(),w.trigger(this._element,Wa)})}_isAnimated(){return this._element.classList.contains(cp)}_triggerBackdropTransition(){if(w.trigger(this._element,tp).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Tr)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Tr),this._queueCallback(()=>{this._element.classList.remove(Tr),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!t){const i=ge()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&t){const i=ge()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const r=ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](n)}})}}w.on(document,ap,dp,function(e){const t=P.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),w.one(t,Ya,i=>{i.defaultPrevented||w.one(t,Wa,()=>{Bt(this)&&this.focus()})});const n=P.findOne(lp);n&&ut.getInstance(n).hide(),ut.getOrCreateInstance(t).toggle(this)});Xn(ut);ye(ut);const _p="offcanvas",mp="bs.offcanvas",Fe=`.${mp}`,Ga=".data-api",gp=`load${Fe}${Ga}`,vp="Escape",Ws="show",Ys="showing",Gs="hiding",yp="offcanvas-backdrop",Ka=".offcanvas.show",bp=`show${Fe}`,Ep=`shown${Fe}`,wp=`hide${Fe}`,Ks=`hidePrevented${Fe}`,Ua=`hidden${Fe}`,Ap=`resize${Fe}`,Tp=`click${Fe}${Ga}`,Sp=`keydown.dismiss${Fe}`,Op='[data-bs-toggle="offcanvas"]',xp={backdrop:!0,keyboard:!0,scroll:!1},$p={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ge extends Se{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return xp}static get DefaultType(){return $p}static get NAME(){return _p}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||w.trigger(this._element,bp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new jr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ys);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ws),this._element.classList.remove(Ys),w.trigger(this._element,Ep,{relatedTarget:t})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||w.trigger(this._element,wp).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Gs),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ws,Gs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new jr().reset(),w.trigger(this._element,Ua)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){w.trigger(this._element,Ks);return}this.hide()},n=Boolean(this._config.backdrop);return new Va({className:yp,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_addEventListeners(){w.on(this._element,Sp,t=>{if(t.key===vp){if(this._config.keyboard){this.hide();return}w.trigger(this._element,Ks)}})}static jQueryInterface(t){return this.each(function(){const n=Ge.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}w.on(document,Tp,Op,function(e){const t=P.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ye(this))return;w.one(t,Ua,()=>{Bt(this)&&this.focus()});const n=P.findOne(Ka);n&&n!==t&&Ge.getInstance(n).hide(),Ge.getOrCreateInstance(t).toggle(this)});w.on(window,gp,()=>{for(const e of P.find(Ka))Ge.getOrCreateInstance(e).show()});w.on(window,Ap,()=>{for(const e of P.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Ge.getOrCreateInstance(e).hide()});Xn(Ge);ye(Ge);const Cp=/^aria-[\w-]*$/i,qa={"*":["class","dir","id","lang","role",Cp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Dp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Np=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Mp=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?Dp.has(n)?Boolean(Np.test(e.nodeValue)):!0:t.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function Lp(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const i=new window.DOMParser().parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const u=a.nodeName.toLowerCase();if(!Object.keys(t).includes(u)){a.remove();continue}const f=[].concat(...a.attributes),d=[].concat(t["*"]||[],t[u]||[]);for(const g of f)Mp(g,d)||a.removeAttribute(g.nodeName)}return i.body.innerHTML}const Ip="TemplateFactory",kp={allowList:qa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Pp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Rp={entry:"(string|element|function|null)",selector:"(string|element)"};class Hp extends on{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return kp}static get DefaultType(){return Pp}static get NAME(){return Ip}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,o]of Object.entries(this._config.content))this._setContent(t,o,i);const n=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,r]of Object.entries(t))super._typeCheckConfig({selector:n,entry:r},Rp)}_setContent(t,n,r){const i=P.findOne(r,t);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Ie(n)){this._putElementInTemplate(We(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(t){return this._config.sanitize?Lp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fe(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const Bp="tooltip",Fp=new Set(["sanitize","allowList","sanitizeFn"]),Sr="fade",Vp="modal",bn="show",jp=".tooltip-inner",Us=`.${Vp}`,qs="hide.bs.modal",Yt="hover",Or="focus",Wp="click",Yp="manual",Gp="hide",Kp="hidden",Up="show",qp="shown",zp="inserted",Xp="click",Qp="focusin",Jp="focusout",Zp="mouseenter",e_="mouseleave",t_={AUTO:"auto",TOP:"top",RIGHT:ge()?"left":"right",BOTTOM:"bottom",LEFT:ge()?"right":"left"},n_={allowList:qa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},r_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class _t extends Se{constructor(t,n){if(typeof Ea>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return n_}static get DefaultType(){return r_}static get NAME(){return Bp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),w.off(this._element.closest(Us),qs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=w.trigger(this._element,this.constructor.eventName(Up)),r=(Ta(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!r)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(i),w.trigger(this._element,this.constructor.eventName(zp))),this._popper=this._createPopper(i),i.classList.add(bn),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))w.on(u,"mouseover",Ln);const a=()=>{w.trigger(this._element,this.constructor.eventName(qp)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||w.trigger(this._element,this.constructor.eventName(Gp)).defaultPrevented)return;if(this._getTipElement().classList.remove(bn),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))w.off(i,"mouseover",Ln);this._activeTrigger[Wp]=!1,this._activeTrigger[Or]=!1,this._activeTrigger[Yt]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),w.trigger(this._element,this.constructor.eventName(Kp)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(Sr,bn),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=Wf(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Sr),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Hp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[jp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sr)}_isShown(){return this.tip&&this.tip.classList.contains(bn)}_createPopper(t){const n=fe(this._config.placement,[this,t,this._element]),r=t_[n.toUpperCase()];return Mi(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return fe(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...fe(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")w.on(this._element,this.constructor.eventName(Xp),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==Yp){const r=n===Yt?this.constructor.eventName(Zp):this.constructor.eventName(Qp),i=n===Yt?this.constructor.eventName(e_):this.constructor.eventName(Jp);w.on(this._element,r,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusin"?Or:Yt]=!0,a._enter()}),w.on(this._element,i,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusout"?Or:Yt]=a._element.contains(o.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},w.on(this._element.closest(Us),qs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");!t||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=ke.getDataAttributes(this._element);for(const r of Object.keys(n))Fp.has(r)&&delete n[r];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:We(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(t[n]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=_t.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(_t);const i_="popover",s_=".popover-header",o_=".popover-body",a_={..._t.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},c_={..._t.DefaultType,content:"(null|string|element|function)"};class Pi extends _t{static get Default(){return a_}static get DefaultType(){return c_}static get NAME(){return i_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[s_]:this._getTitle(),[o_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Pi.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(Pi);const l_="scrollspy",u_="bs.scrollspy",Ri=`.${u_}`,f_=".data-api",d_=`activate${Ri}`,zs=`click${Ri}`,h_=`load${Ri}${f_}`,p_="dropdown-item",vt="active",__='[data-bs-spy="scroll"]',xr="[href]",m_=".nav, .list-group",Xs=".nav-link",g_=".nav-item",v_=".list-group-item",y_=`${Xs}, ${g_} > ${Xs}, ${v_}`,b_=".dropdown",E_=".dropdown-toggle",w_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},A_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends Se{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return w_}static get DefaultType(){return A_}static get NAME(){return l_}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=We(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(w.off(this._config.target,zs),w.on(this._config.target,zs,xr,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=a=>this._targetLinks.get(`#${a.target.id}`),r=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(n(a))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const a of t){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(a));continue}const u=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&u){if(r(a),!i)return;continue}!o&&!u&&r(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=P.find(xr,this._config.target);for(const n of t){if(!n.hash||Ye(n))continue;const r=P.findOne(decodeURI(n.hash),this._element);Bt(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(vt),this._activateParents(t),w.trigger(this._element,d_,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(p_)){P.findOne(E_,t.closest(b_)).classList.add(vt);return}for(const n of P.parents(t,m_))for(const r of P.prev(n,y_))r.classList.add(vt)}_clearActiveClass(t){t.classList.remove(vt);const n=P.find(`${xr}.${vt}`,t);for(const r of n)r.classList.remove(vt)}static jQueryInterface(t){return this.each(function(){const n=Jn.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(window,h_,()=>{for(const e of P.find(__))Jn.getOrCreateInstance(e)});ye(Jn);const T_="tab",S_="bs.tab",mt=`.${S_}`,O_=`hide${mt}`,x_=`hidden${mt}`,$_=`show${mt}`,C_=`shown${mt}`,D_=`click${mt}`,N_=`keydown${mt}`,M_=`load${mt}`,L_="ArrowLeft",Qs="ArrowRight",I_="ArrowUp",Js="ArrowDown",$r="Home",Zs="End",rt="active",eo="fade",Cr="show",k_="dropdown",za=".dropdown-toggle",P_=".dropdown-menu",Dr=`:not(${za})`,R_='.list-group, .nav, [role="tablist"]',H_=".nav-item, .list-group-item",B_=`.nav-link${Dr}, .list-group-item${Dr}, [role="tab"]${Dr}`,Xa='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nr=`${B_}, ${Xa}`,F_=`.${rt}[data-bs-toggle="tab"], .${rt}[data-bs-toggle="pill"], .${rt}[data-bs-toggle="list"]`;class It extends Se{constructor(t){super(t),this._parent=this._element.closest(R_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),w.on(this._element,N_,n=>this._keydown(n)))}static get NAME(){return T_}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),r=n?w.trigger(n,O_,{relatedTarget:t}):null;w.trigger(t,$_,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(rt),this._activate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Cr);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),w.trigger(t,C_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(eo))}_deactivate(t,n){if(!t)return;t.classList.remove(rt),t.blur(),this._deactivate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Cr);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),w.trigger(t,x_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(eo))}_keydown(t){if(![L_,Qs,I_,Js,$r,Zs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(i=>!Ye(i));let r;if([$r,Zs].includes(t.key))r=n[t.key===$r?0:n.length-1];else{const i=[Qs,Js].includes(t.key);r=Li(n,t.target,i,!0)}r&&(r.focus({preventScroll:!0}),It.getOrCreateInstance(r).show())}_getChildren(){return P.find(Nr,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",n),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=P.getElementFromSelector(t);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const r=this._getOuterElement(t);if(!r.classList.contains(k_))return;const i=(o,a)=>{const u=P.findOne(o,r);u&&u.classList.toggle(a,n)};i(za,rt),i(P_,Cr),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,r){t.hasAttribute(n)||t.setAttribute(n,r)}_elemIsActive(t){return t.classList.contains(rt)}_getInnerElement(t){return t.matches(Nr)?t:P.findOne(Nr,t)}_getOuterElement(t){return t.closest(H_)||t}static jQueryInterface(t){return this.each(function(){const n=It.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,D_,Xa,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ye(this)&&It.getOrCreateInstance(this).show()});w.on(window,M_,()=>{for(const e of P.find(F_))It.getOrCreateInstance(e)});ye(It);const V_="toast",j_="bs.toast",Je=`.${j_}`,W_=`mouseover${Je}`,Y_=`mouseout${Je}`,G_=`focusin${Je}`,K_=`focusout${Je}`,U_=`hide${Je}`,q_=`hidden${Je}`,z_=`show${Je}`,X_=`shown${Je}`,Q_="fade",to="hide",En="show",wn="showing",J_={animation:"boolean",autohide:"boolean",delay:"number"},Z_={animation:!0,autohide:!0,delay:5e3};class un extends Se{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Z_}static get DefaultType(){return J_}static get NAME(){return V_}show(){if(w.trigger(this._element,z_).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Q_);const n=()=>{this._element.classList.remove(wn),w.trigger(this._element,X_),this._maybeScheduleHide()};this._element.classList.remove(to),sn(this._element),this._element.classList.add(En,wn),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||w.trigger(this._element,U_).defaultPrevented)return;const n=()=>{this._element.classList.add(to),this._element.classList.remove(wn,En),w.trigger(this._element,q_)};this._element.classList.add(wn),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(En),super.dispose()}isShown(){return this._element.classList.contains(En)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){w.on(this._element,W_,t=>this._onInteraction(t,!0)),w.on(this._element,Y_,t=>this._onInteraction(t,!1)),w.on(this._element,G_,t=>this._onInteraction(t,!0)),w.on(this._element,K_,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(un);ye(un);const em=()=>{[].slice.call(document.querySelectorAll(".alert")).map(function(t){return new an(t)})},tm=()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(t=>new _t(t))},nm=()=>{[].slice.call(document.querySelectorAll(".collapse")).map(t=>new Lt(t,{toggle:!1}))};var Wr=!1,Yr=!1,st=[];function rm(e){im(e)}function im(e){st.includes(e)||st.push(e),sm()}function Qa(e){let t=st.indexOf(e);t!==-1&&st.splice(t,1)}function sm(){!Yr&&!Wr&&(Wr=!0,queueMicrotask(om))}function om(){Wr=!1,Yr=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Gr?rm(n):n()}}),Ja=e.raw}function no(e){fn=e}function lm(e){let t=()=>{};return[r=>{let i=fn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),Zn(i))},i},()=>{t()}]}var Za=[],ec=[],tc=[];function um(e){tc.push(e)}function nc(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,ec.push(t))}function fm(e){Za.push(e)}function dm(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function rc(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Hi=new MutationObserver(Vi),Bi=!1;function ic(){Hi.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Bi=!0}function hm(){pm(),Hi.disconnect(),Bi=!1}var Xt=[],Mr=!1;function pm(){Xt=Xt.concat(Hi.takeRecords()),Xt.length&&!Mr&&(Mr=!0,queueMicrotask(()=>{_m(),Mr=!1}))}function _m(){Vi(Xt),Xt.length=0}function te(e){if(!Bi)return e();hm();let t=e();return ic(),t}var Fi=!1,Pn=[];function mm(){Fi=!0}function gm(){Fi=!1,Vi(Pn),Pn=[]}function Vi(e){if(Fi){Pn=Pn.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,u=e[o].attributeName,f=e[o].oldValue,d=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:u,value:a.getAttribute(u)})},g=()=>{i.has(a)||i.set(a,[]),i.get(a).push(u)};a.hasAttribute(u)&&f===null?d():a.hasAttribute(u)?(g(),d()):g()}i.forEach((o,a)=>{rc(a,o)}),r.forEach((o,a)=>{Za.forEach(u=>u(a,o))});for(let o of n)if(!t.includes(o)&&(ec.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,tc.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function sc(e){return hn(kt(e))}function dn(e,t,n){return e._x_dataStack=[t,...kt(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function ro(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function kt(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?kt(e.host):e.parentNode?kt(e.parentNode):[]}function hn(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,u=o.set,f=o;a=a&&a.bind(t),u=u&&u.bind(t),a&&(a._x_alreadyBound=!0),u&&(u._x_alreadyBound=!0),Object.defineProperty(i,r,{...f,get:a,set:u})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function oc(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:u}])=>{if(u===!1||a===void 0)return;let f=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,f,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,f)})};return n(e)}function ac(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>vm(r,i),a=>Kr(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,u)=>{let f=r.initialize(o,a,u);return n.initialValue=f,i(o,a,u)}}else n.initialValue=r;return n}}function vm(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Kr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Kr(e[t[0]],t.slice(1),n)}}var cc={};function Le(e,t){cc[e]=t}function Ur(e,t){return Object.entries(cc).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=hc(t);return i={interceptor:ac,...i},nc(t,o),r(t,i)},enumerable:!1})}),e}function ym(e,t,n,...r){try{return n(...r)}catch(i){en(i,e,t)}}function en(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}function Tt(e,t,n={}){let r;return le(e,t)(i=>r=i,n),r}function le(...e){return lc(...e)}var lc=uc;function ym(e){lc=e}function uc(e,t){let n={};Ur(n,e);let r=[n,...kt(e)];if(typeof t=="function")return bm(r,t);let i=wm(r,t,e);return vm.bind(null,e,t,i)}function bm(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(hn([r,...e]),i);Rn(n,o)}}var Lr={};function Em(e,t){if(Lr[e])return Lr[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(a){return en(a,t,e),Promise.resolve()}})();return Lr[e]=o,o}function wm(e,t,n){let r=Em(t,n);return(i=()=>{},{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let u=hn([o,...e]);if(typeof r=="function"){let f=r(r,u).catch(d=>en(d,n,t));r.finished?(Rn(i,r.result,u,a,n),r.result=void 0):f.then(d=>{Rn(i,d,u,a,n)}).catch(d=>en(d,n,t)).finally(()=>r.result=void 0)}}}function Rn(e,t,n,r,i){if(typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(a=>Rn(e,a,n,r)).catch(a=>en(a,i,t)):e(o)}else e(t)}var ji="x-";function jt(e=""){return ji+e}function Am(e){ji=e}var fc={};function ee(e,t){fc[e]=t}function Wi(e,t,n){let r={};return Array.from(t).map(mc((o,a)=>r[o]=a)).filter(vc).map(xm(r,n)).sort($m).map(o=>Om(e,o))}function Tm(e){return Array.from(e).map(mc()).filter(t=>!vc(t))}var qr=!1,Ut=new Map,dc=Symbol();function Sm(e){qr=!0;let t=Symbol();dc=t,Ut.set(t,[]);let n=()=>{for(;Ut.get(t).length;)Ut.get(t).shift()();Ut.delete(t)},r=()=>{qr=!1,n()};e(n),r()}function hc(e){let t=[],n=u=>t.push(u),[r,i]=cm(e);return t.push(i),[{Alpine:pn,effect:r,cleanup:n,evaluateLater:le.bind(le,e),evaluate:Tt.bind(Tt,e)},()=>t.forEach(u=>u())]}function Om(e,t){let n=()=>{},r=fc[t.type]||n,[i,o]=hc(e);fm(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),qr?Ut.get(dc).push(r):r())};return a.runCleanups=o,a}var pc=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),_c=e=>e;function mc(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=gc.reduce((o,a)=>a(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var gc=[];function Yi(e){gc.push(e)}function vc({name:e}){return yc().test(e)}var yc=()=>new RegExp(`^${ji}([^:^.]+)\\b`);function xm(e,t){return({name:n,value:r})=>{let i=n.match(yc()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],u=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(f=>f.replace(".","")),expression:r,original:u}}}var zr="DEFAULT",An=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",zr,"teleport","element"];function $m(e,t){let n=An.indexOf(e.type)===-1?zr:e.type,r=An.indexOf(t.type)===-1?zr:t.type;return An.indexOf(n)-An.indexOf(r)}function Qt(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Xr=[],Gi=!1;function bc(e){Xr.push(e),queueMicrotask(()=>{Gi||setTimeout(()=>{Qr()})})}function Qr(){for(Gi=!1;Xr.length;)Xr.shift()()}function Cm(){Gi=!0}function ft(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ft(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)ft(r,t),r=r.nextElementSibling}function Hn(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Dm(){document.body||Hn("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `