shift73k/priv/static/assets/app.js

83 lines
147 KiB
JavaScript
Raw Normal View History

(function(){var e=t();function t(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function r(s,o){o=o||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(s,o.bubbles,o.cancelable,o.detail),a}return r.prototype=window.Event.prototype,r}function i(r,s){var o=document.createElement("input");return o.type="hidden",o.name=r,o.value=s,o}function n(r,s){var o=r.getAttribute("data-to"),a=i("_method",r.getAttribute("data-method")),l=i("_csrf_token",r.getAttribute("data-csrf")),h=document.createElement("form"),d=r.getAttribute("target");h.method=r.getAttribute("data-method")==="get"?"get":"post",h.action=o,h.style.display="hidden",d?h.target=d:s&&(h.target="_blank"),h.appendChild(l),h.appendChild(a),document.body.appendChild(h),h.submit()}window.addEventListener("click",function(r){var s=r.target;if(!r.defaultPrevented)for(;s&&s.getAttribute;){var o=new e("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!s.dispatchEvent(o))return r.preventDefault(),r.stopImmediatePropagation(),!1;if(s.getAttribute("data-method"))return n(s,r.metaKey||r.shiftKey),r.preventDefault(),!1;s=s.parentNode}},!1),window.addEventListener("phoenix.link.click",function(r){var s=r.target.getAttribute("data-confirm");s&&!window.confirm(s)&&r.preventDefault()},!1)})();var tt=e=>typeof e=="function"?e:function(){return e},sr=typeof self<"u"?self:null,et=typeof window<"u"?window:null,it=sr||et||it,or="2.0.0",Ee={connecting:0,open:1,closing:2,closed:3},ar=1e4,lr=1e3,oe={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Ce={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ii={longpoll:"longpoll",websocket:"websocket"},cr={complete:4},pt=class{constructor(e,t,i,n){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Cn=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},hr=class{constructor(e,t,i){this.state=oe.closed,this.topic=e,this.params=tt(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new pt(this,Ce.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Cn(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=oe.joined,this.rejoinTimer.reset(),this.
* @license MIT
* topbar 1.0.0, 2021-01-06
* http://buunguyen.github.io/topbar
* Copyright (c) 2021 Buu Nguyen
*/(function(e){(function(t,i){(function(){for(var c=0,g=["ms","moz","webkit","o"],u=0;u<g.length&&!t.requestAnimationFrame;++u)t.requestAnimationFrame=t[g[u]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[g[u]+"CancelAnimationFrame"]||t[g[u]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(v,m){var y=new Date().getTime(),S=Math.max(0,16-(y-c)),N=t.setTimeout(function(){v(y+S)},S);return c=y+S,N}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(v){clearTimeout(v)})})();function n(){r.width=t.innerWidth,r.height=5*h.barThickness;var c=r.getContext("2d");c.shadowBlur=h.shadowBlur,c.shadowColor=h.shadowColor;var g,u=c.createLinearGradient(0,0,r.width,0);for(g in h.barColors)u.addColorStop(g,h.barColors[g]);c.lineWidth=h.barThickness,c.beginPath(),c.moveTo(0,h.barThickness/2),c.lineTo(Math.ceil(a*r.width),h.barThickness/2),c.strokeStyle=u,c.stroke()}var r,s,o,a,l,h={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},d={config:function(c){for(var g in c)h.hasOwnProperty(g)&&(h[g]=c[g])},show:function(){var c,g,u;l||(l=!0,o!==null&&t.cancelAnimationFrame(o),r||((u=(r=i.createElement("canvas")).style).position="fixed",u.top=u.left=u.right=u.margin=u.padding=0,u.zIndex=100001,u.display="none",h.className&&r.classList.add(h.className),i.body.appendChild(r),c="resize",g=n,(u=t).addEventListener?u.addEventListener(c,g,!1):u.attachEvent?u.attachEvent("on"+c,g):u["on"+c]=g),r.style.opacity=1,r.style.display="block",d.progress(0),h.autoRun&&function v(){s=t.requestAnimationFrame(v),d.progress("+"+.05*Math.pow(1-Math.sqrt(a),2))}())},progress:function(c){return c===void 0||(typeof c=="string"&&(c=(0<=c.indexOf("+")||0<=c.indexOf("-")?a:0)+parseFloat(c)),a=1<c?1:c,n()),a},hide:function(){l&&(l=!1,s!=null&&(t.cancelAnimationFrame(s),s=null),function c(){return 1<=d.progress("+.1")&&(r.style.opacity-=.05,r.style.opacity<=.05)?(r.style.display="none",void(o=null)):void(o=t.requestAnimationFrame(c))}())}};e.exports=d}).call(Z,window,document)})(fr);const gi=ni;var Tn="consecutive-reloads",pr=10,gr=5e3,mr=1e4,vr=3e4,Sn=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],le="data-phx-component",Jt="data-phx-link",br="track-static",_r="data-phx-link-state",ye="data-phx-ref",Ne="data-phx-ref-src",kn="track-uploads",Me="data-phx-upload-ref",mi="data-phx-preflighted-refs",yr="data-phx-done-refs",Ii="drop-target",ri="data-phx-active-refs",si="phx:live-file:updated",oi="data-phx-skip",Mi="data-phx-prune",Hi="page-loading",$i="phx-connected",Xt="phx-loading",ji="phx-no-feedback",Bi="phx-error",Be="data-phx-parent-id",vi="data-phx-main",ct="data-phx-root-id",Er="trigger-action",ai="feedback-for",On="phx-has-focused",Ar=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],Dn=["checkbox","radio"],Ln="phx-has-submitted",Le="data-phx-session",Fe=`[${Le}]`,Fi="data-phx-sticky",nt="data-phx-static",zt="data-phx-readonly",mt="data-phx-disabled",li="disable-with",vt="data-phx-disable-with-restore",ze="hook",wr="debounce",Cr="throttle",ci="update",Tr="key",ve="phxPrivate",Ui="auto-recover",bt="phx:live-socket:debug",Yt="phx:live-socket:profiling",Gt="phx:live-socket:latency-sim",Sr="progress",kr=1,Or=200,Dr="phx-",Lr=3e4,Ye="debounce-trigger",_t="throttled",Vi="debounce-prev-key",Pr={debounce:300,throttle:300},Wi="d",be="s",ae="c",qi="e",Ki="r",Ji="t",xr="p",Rr=class{constructor(e,t,i){this.liveSocket=i,this.entry=e,this.offset=0,this.chunkSize=t,this.chunkTimer=null,this.uploadChannel=i.channel(`lvu:${e.ref}`,{token:e.metadata()})}error(e){clearTimeout(this.chunkTimer),this.uploadChannel.leave(),this.entry.error(e)}upload(){this.uploadChannel.onError(e=>this.error(e)),this.uploadChannel.join().receive("ok",e=>this.readNextChunk()).receive("error
removing illegal node: "${(n.outerHTML||n.nodeValue).trim()}"
`),i.push(n))}),i.forEach(n=>n.remove())}},replaceRootContainer(e,t,i){let n=new Set(["id",Le,nt,vi,ct]);if(e.tagName.toLowerCase()===t.toLowerCase())return Array.from(e.attributes).filter(r=>!n.has(r.name.toLowerCase())).forEach(r=>e.removeAttribute(r.name)),Object.keys(i).filter(r=>!n.has(r.toLowerCase())).forEach(r=>e.setAttribute(r,i[r])),e;{let r=document.createElement(t);return Object.keys(i).forEach(s=>r.setAttribute(s,i[s])),n.forEach(s=>r.setAttribute(s,e.getAttribute(s))),r.innerHTML=e.innerHTML,e.replaceWith(r),r}},getSticky(e,t,i){let n=(ge.private(e,"sticky")||[]).find(([r])=>t===r);if(n){let[r,s,o]=n;return o}else return typeof i=="function"?i():i},deleteSticky(e,t){this.updatePrivate(e,"sticky",[],i=>i.filter(([n,r])=>n!==t))},putSticky(e,t,i){let n=i(e);this.updatePrivate(e,"sticky",[],r=>{let s=r.findIndex(([o])=>t===o);return s>=0?r[s]=[t,i,n]:r.push([t,i,n]),r})},applyStickyOperations(e){let t=ge.private(e,"sticky");t&&t.forEach(([i,n,r])=>this.putSticky(e,i,n))}},_=ge,Zt=class{static isActive(e,t){let i=t._phxRef===void 0,r=e.getAttribute(ri).split(",").indexOf(G.genFileRef(t))>=0;return t.size>0&&(i||r)}static isPreflighted(e,t){return e.getAttribute(mi).split(",").indexOf(G.genFileRef(t))>=0&&this.isActive(e,t)}constructor(e,t,i){this.ref=G.genFileRef(t),this.fileEl=e,this.file=t,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(si,this._onElUpdated)}metadata(){return this.meta}progress(e){this._progress=Math.floor(e),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{G.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(e="failed"){this.view.pushFileProgress(this.fileEl,this.ref,{error:e}),G.clearFiles(this.fileEl)}onDone(e){this._onDone=()=>{this.fileEl.removeEventListener(si,this._onElUpdated),e()}}onElUpdated(){this.fileEl.getAttribute(ri).split(",").indexOf(this.ref)===-1&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,size:this.file.size,type:this.file.type,ref:this.ref}}uploader(e){if(this.meta.uploader){let t=e[this.meta.uploader]||Q(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:t}}else return{name:"channel",callback:Hr}}zipPostFlight(e){this.meta=e.entries[this.ref],this.meta||Q(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:e})}},$r=0,G=class{static genFileRef(e){let t=e._phxRef;return t!==void 0?t:(e._phxRef=($r++).toString(),e._phxRef)}static getEntryDataURL(e,t,i){let n=this.activeFiles(e).find(r=>this.genFileRef(r)===t);i(URL.createObjectURL(n))}static hasUploadsInProgress(e){let t=0;return _.findUploadInputs(e).forEach(i=>{i.getAttribute(mi)!==i.getAttribute(yr)&&t++}),t>0}static serializeUploads(e){let t=this.activeFiles(e),i={};return t.forEach(n=>{let r={path:e.name},s=e.getAttribute(Me);i[s]=i[s]||[],r.ref=this.genFileRef(n),r.name=n.name||r.ref,r.type=n.type,r.size=n.size,i[s].push(r)}),i}static clearFiles(e){e.value=null,e.removeAttribute(Me),_.putPrivate(e,"files",[])}static untrackFile(e,t){_.putPrivate(e,"files",_.private(e,"files").filter(i=>!Object.is(i,t)))}static trackFiles(e,t){if(e.getAttribute("multiple")!==null){let i=t.filter(n=>!this.activeFiles(e).find(r=>Object.is(r,n)));_.putPrivate(e,"files",this.activeFiles(e).concat(i)),e.value=null}else _.putPrivate(e,"files",t)}static activeFileInputs(e){let t=_.findUploadInputs(e);return Array.from(t).filter(i=>i.files&&this.activeFiles(i).length>0)}static activeFiles(e){return(_.private(e,"files")||[]).filter(t=>Zt.isActive(e,t))}static inputsAwaitingPreflight(e){let t=_.findUploadInputs(e);return Array.f
got: "${c.nodeValue.trim()}"
within:
`,r.innerHTML.trim()),c.replaceWith(this.createSpan(c.nodeValue,t)),[!0,d]):(c.remove(),[h,d]),[!1,!1]);return!a&&!l?(Q(`expected at least one HTML element tag inside a component, but the component is empty:
`,r.innerHTML.trim()),this.createSpan("",t).outerHTML):(!a&&l&&Q("expected at least one HTML element tag directly inside a component, but only subcomponents were found. A component must render at least one HTML tag directly inside itself.",r.innerHTML.trim()),r.innerHTML)}createSpan(e,t){let i=document.createElement("span");return i.innerText=e,i.setAttribute(le,t),i}},is=1,Ze=class{static makeID(){return is++}static elementID(e){return e.phxHookId}constructor(e,t,i){this.__view=e,this.liveSocket=e.liveSocket,this.__callbacks=i,this.__listeners=new Set,this.__isDisconnected=!1,this.el=t,this.el.phxHookId=this.constructor.makeID();for(let n in this.__callbacks)this[n]=this.__callbacks[n]}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed()}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}pushEvent(e,t={},i=function(){}){return this.__view.pushHookEvent(null,e,t,i)}pushEventTo(e,t,i={},n=function(){}){return this.__view.withinTargets(e,(r,s)=>r.pushHookEvent(s,t,i,n))}handleEvent(e,t){let i=(n,r)=>r?e:t(n.detail);return window.addEventListener(`phx:${e}`,i),this.__listeners.add(i),i}removeHandleEvent(e){let t=e(null,!0);window.removeEventListener(`phx:${t}`,e),this.__listeners.delete(e)}upload(e,t){return this.__view.dispatchUploads(e,t)}uploadTo(e,t,i){return this.__view.withinTargets(e,n=>n.dispatchUploads(t,i))}__cleanup__(){this.__listeners.forEach(e=>this.removeHandleEvent(e))}},ns={exec(e,t,i,n,r){let[s,o]=r||[null,{}];(t.charAt(0)==="["?JSON.parse(t):[[s,o]]).forEach(([l,h])=>{l===s&&o.data&&(h.data=Object.assign(h.data||{},o.data)),this.filterToEls(n,h).forEach(d=>{this[`exec_${l}`](e,t,i,n,d,h)})})},isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length>0)},exec_dispatch(e,t,i,n,r,{to:s,event:o,detail:a,bubbles:l}){a=a||{},a.dispatcher=n,_.dispatchEvent(r,o,{detail:a,bubbles:l})},exec_push(e,t,i,n,r,s){if(!i.isConnected())return;let{event:o,data:a,target:l,page_loading:h,loading:d,value:c,dispatcher:g}=s,u={loading:d,value:c,target:l,page_loading:!!h},v=e==="change"&&g?g:n,m=l||v.getAttribute(i.binding("target"))||v;i.withinTargets(m,(y,S)=>{if(e==="change"){let{newCid:N,_target:f,callback:A}=s;f=f||(n instanceof HTMLInputElement?n.name:void 0),f&&(u._target=f),y.pushInput(n,S,N,o||t,u,A)}else e==="submit"?y.submitForm(n,S,o||t,u):y.pushEvent(e,n,S,o||t,a,u)})},exec_add_class(e,t,i,n,r,{names:s,transition:o,time:a}){this.addOrRemoveClasses(r,s,[],o,a,i)},exec_remove_class(e,t,i,n,r,{names:s,transition:o,time:a}){this.addOrRemoveClasses(r,[],s,o,a,i)},exec_transition(e,t,i,n,r,{time:s,transition:o}){let[a,l,h]=o,d=()=>this.addOrRemoveClasses(r,a.concat(l),[]),c=()=>this.addOrRemoveClasses(r,h,a.concat(l));i.transition(s,d,c)},exec_toggle(e,t,i,n,r,{display:s,ins:o,outs:a,time:l}){this.toggle(e,i,r,s,o,a,l)},exec_show(e,t,i,n,r,{display:s,transition:o,time:a}){this.show(e,i,r,s,o,a)},exec_hide(e,t,i,n,r,{display:s,transition:o,time:a}){this.hide(e,i,r,s,o,a)},exec_set_attr(e,t,i,n,r,{attr:[s,o]}){this.setOrRemoveAttrs(r,[[s,o]],[])},exec_remove_attr(e,t,i,n,r,{attr:s}){this.setOrRemoveAttrs(r,[],[s])},show(e,t,i,n,r,s){this.isVisible(i)||this.toggle(e,t,i,n,r,null,s)},hide(e,t,i,n,r,s){this.isVisible(i)&&this.toggle(e,t,i,n,null,r,s)},toggle(e,t,i,n,r,s,o){let[a,l,h]=r||[[],[],[]],[d,c,g]=s||[[],[],[]];if(a.length>0||d.length>0)if(this.isVisible(i)){let u=()=>{this.addOrRemoveClasses(i,c,a.concat(l).concat(h)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,d,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,g,c))})};i.dispatchEvent(new Event("phx:hide-start")),t.transition(o,u,()=>{this.addOrRemoveClasses(i,[],d.concat(g)),_.putSticky(i,"toggle",v=>v.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))})}else{if(e==="remove")return;let u=()=>{this.addOrRemoveClasses(i,l,d.concat(c).concat(g))
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
import {Socket} from "phoenix"
import {LiveSocket} from "phoenix_live_view"
let liveSocket = new LiveSocket("/live", Socket, {...})
`);this.socket=new t(e,i),this.bindingPrefix=i.bindingPrefix||Dr,this.opts=i,this.params=Qt(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(Tt(Pr),i.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Tt(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||kr,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||pr,this.reloadJitterMin=i.reloadJitterMin||gr,this.reloadJitterMax=i.reloadJitterMax||mr,this.failsafeJitter=i.failsafeJitter||vr,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.domCallbacks=Object.assign({onNodeAdded:Qt(),onBeforeElUpdated:Qt()},i.dom||{}),this.transitions=new ss,window.addEventListener("pagehide",n=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}isProfileEnabled(){return this.sessionStorage.getItem(Yt)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(bt)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(bt)==="false"}enableDebug(){this.sessionStorage.setItem(bt,"true")}enableProfiling(){this.sessionStorage.setItem(Yt,"true")}disableDebug(){this.sessionStorage.setItem(bt,"false")}disableProfiling(){this.sessionStorage.removeItem(Yt)}enableLatencySim(e){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(Gt,e)}disableLatencySim(){this.sessionStorage.removeItem(Gt)}getLatencySim(){let e=this.sessionStorage.getItem(Gt);return e?parseInt(e):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let e=()=>{this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main&&this.socket.connect()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?e():document.addEventListener("DOMContentLoaded",()=>e())}disconnect(e){clearTimeout(this.reloadWithJitterTimer),this.socket.disconnect(e)}replaceTransport(e){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(e),this.connect()}execJS(e,t,i=null){this.owner(e,n=>_e.exec(i,t,n,e))}triggerDOM(e,t){this.domCallbacks[e](...t)}time(e,t){if(!this.isProfileEnabled()||!console.time)return t();console.time(e);let i=t();return console.timeEnd(e),i}log(e,t,i){if(this.viewLogger){let[n,r]=i();this.viewLogger(e,t,n,r)}else if(this.isDebugEnabled()){let[n,r]=i();Ir(e,t,n,r)}}requestDOMUpdate(e){this.transitions.after(e)}transition(e,t,i=function(){}){this.transitions.addTransition(e,t,i)}onChannel(e,t,i){e.on(t,n=>{let r=this.getLatencySim();r?(console.log(`simulating ${r}ms of latency from server to client`),setTimeout(()=>i(n),r)):i(n)})}wrapPush(e,t,i){let n=this.getLatencySim(),r=e.joinCount;if(!n)return this.isConnected()&&t.timeout?i().receive("timeout",()=>{e.joinCount===r&&!e.isDestroyed()&&this.reloadWithJitter(e,()=>{this.log(e,"timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}):i();console.log(`simulating ${n}ms of latency from client to server`);let s={receives:[],receive(o,a){this.receives.push([o,a])}};return setTimeout(()=>{e.isDestroyed()||s.receives.reduce((o,[a,l])=>o.receive(a,l),i())},n),s}reloadWithJitter(e,t){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,n=this.reloadJitterMax,r=Math.floor(Math.random()*(n-i+1))+i,s=Oe.updateLocal(this.localStorage,window.location.pathname,Tn,0,o=>o+1);s>this.maxReloads&&(r=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{e.isDestroyed()||e.isConnected()||(e.destroy(),t?t():this.log(e,"join",()=>[`encountered ${s} consecutive reloads`]),s>this.maxReloads&&this.log(e,"join",()=>[`exce
* Bootstrap index.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var nn;function me(){return nn||(nn=1,function(e,t){(function(i,n){n(t)})(Z,function(i){const s="transitionend",o=p=>p==null?`${p}`:Object.prototype.toString.call(p).match(/\s([a-z]+)/i)[1].toLowerCase(),a=p=>{do p+=Math.floor(Math.random()*1e6);while(document.getElementById(p));return p},l=p=>{let O=p.getAttribute("data-bs-target");if(!O||O==="#"){let R=p.getAttribute("href");if(!R||!R.includes("#")&&!R.startsWith("."))return null;R.includes("#")&&!R.startsWith("#")&&(R=`#${R.split("#")[1]}`),O=R&&R!=="#"?R.trim():null}return O},h=p=>{const O=l(p);return O&&document.querySelector(O)?O:null},d=p=>{const O=l(p);return O?document.querySelector(O):null},c=p=>{if(!p)return 0;let{transitionDuration:O,transitionDelay:R}=window.getComputedStyle(p);const T=Number.parseFloat(O),w=Number.parseFloat(R);return!T&&!w?0:(O=O.split(",")[0],R=R.split(",")[0],(Number.parseFloat(O)+Number.parseFloat(R))*1e3)},g=p=>{p.dispatchEvent(new Event(s))},u=p=>!p||typeof p!="object"?!1:(typeof p.jquery<"u"&&(p=p[0]),typeof p.nodeType<"u"),v=p=>u(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(p):null,m=p=>{if(!u(p)||p.getClientRects().length===0)return!1;const O=getComputedStyle(p).getPropertyValue("visibility")==="visible",R=p.closest("details:not([open])");if(!R)return O;if(R!==p){const T=p.closest("summary");if(T&&T.parentNode!==R||T===null)return!1}return O},y=p=>!p||p.nodeType!==Node.ELEMENT_NODE||p.classList.contains("disabled")?!0:typeof p.disabled<"u"?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false",S=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const O=p.getRootNode();return O instanceof ShadowRoot?O:null}return p instanceof ShadowRoot?p:p.parentNode?S(p.parentNode):null},N=()=>{},f=p=>{p.offsetHeight},A=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,P=[],E=p=>{document.readyState==="loading"?(P.length||document.addEventListener("DOMContentLoaded",()=>{for(const O of P)O()}),P.push(p)):p()},C=()=>document.documentElement.dir==="rtl",x=p=>{E(()=>{const O=A();if(O){const R=p.NAME,T=O.fn[R];O.fn[R]=p.jQueryInterface,O.fn[R].Constructor=p,O.fn[R].noConflict=()=>(O.fn[R]=T,p.jQueryInterface)}})},k=p=>{typeof p=="function"&&p()},M=(p,O,R=!0)=>{if(!R){k(p);return}const T=5,w=c(O)+T;let b=!1;const D=({target:I})=>{I===O&&(b=!0,O.removeEventListener(s,D),k(p))};O.addEventListener(s,D),setTimeout(()=>{b||g(O)},w)},H=(p,O,R,T)=>{const w=p.length;let b=p.indexOf(O);return b===-1?!R&&T?p[w-1]:p[0]:(b+=R?1:-1,T&&(b=(b+w)%w),p[Math.max(0,Math.min(b,w-1))])};i.defineJQueryPlugin=x,i.execute=k,i.executeAfterTransition=M,i.findShadowRoot=S,i.getElement=v,i.getElementFromSelector=d,i.getNextActiveElement=H,i.getSelectorFromElement=h,i.getTransitionDurationFromElement=c,i.getUID=a,i.getjQuery=A,i.isDisabled=y,i.isElement=u,i.isRTL=C,i.isVisible=m,i.noop=N,i.onDOMContentLoaded=E,i.reflow=f,i.toType=o,i.triggerTransitionEnd=g,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(as,st)),st}var Ot={},ls={get exports(){return Ot},set exports(e){Ot=e}};/*!
* Bootstrap event-handler.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var rn;function Pe(){return rn||(rn=1,function(e,t){(function(i,n){e.exports=n(me())})(Z,function(i){const n=/[^.]*(?=\..*)\.|.*/,r=/\..*/,s=/::\d+$/,o={};let a=1;const l={mouseenter:"mouseover",mouseleave:"mouseout"},h=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 d(E,C){return C&&`${C}::${a++}`||E.uidEvent||a++}function c(E){const C=d(E);return E.uidEvent=C,o[C]=o[C]||{},o[C]}function g(E,C){return function x(k){return P(k,{delegateTarget:E}),x.oneOff&&A.off(E,k.type,C),C.apply(E,[k])}}function u(E,C,x){return function k(M){const H=E.querySelectorAll(C);for(let{target:p}=M;p&&p!==this;p=p.parentNode)for(const O of H)if(O===p)return P(M,{delegateTarget:p}),k.oneOff&&A.off(E,M.type,C,x),x.apply(p,[M])}}function v(E,C,x=null){return Object.values(E).find(k=>k.callable===C&&k.delegationSelector===x)}function m(E,C,x){const k=typeof C=="string",M=k?x:C||x;let H=f(E);return h.has(H)||(H=E),[k,M,H]}function y(E,C,x,k,M){if(typeof C!="string"||!E)return;let[H,p,O]=m(C,x,k);C in l&&(p=(U=>function(B){if(!B.relatedTarget||B.relatedTarget!==B.delegateTarget&&!B.delegateTarget.contains(B.relatedTarget))return U.call(this,B)})(p));const R=c(E),T=R[O]||(R[O]={}),w=v(T,p,H?x:null);if(w){w.oneOff=w.oneOff&&M;return}const b=d(p,C.replace(n,"")),D=H?u(E,x,p):g(E,p);D.delegationSelector=H?x:null,D.callable=p,D.oneOff=M,D.uidEvent=b,T[b]=D,E.addEventListener(O,D,H)}function S(E,C,x,k,M){const H=v(C[x],k,M);H&&(E.removeEventListener(x,H,Boolean(M)),delete C[x][H.uidEvent])}function N(E,C,x,k){const M=C[x]||{};for(const H of Object.keys(M))if(H.includes(k)){const p=M[H];S(E,C,x,p.callable,p.delegationSelector)}}function f(E){return E=E.replace(r,""),l[E]||E}const A={on(E,C,x,k){y(E,C,x,k,!1)},one(E,C,x,k){y(E,C,x,k,!0)},off(E,C,x,k){if(typeof C!="string"||!E)return;const[M,H,p]=m(C,x,k),O=p!==C,R=c(E),T=R[p]||{},w=C.startsWith(".");if(typeof H<"u"){if(!Object.keys(T).length)return;S(E,R,p,H,M?x:null);return}if(w)for(const b of Object.keys(R))N(E,R,b,C.slice(1));for(const b of Object.keys(T)){const D=b.replace(s,"");if(!O||C.includes(D)){const I=T[b];S(E,R,p,I.callable,I.delegationSelector)}}},trigger(E,C,x){if(typeof C!="string"||!E)return null;const k=i.getjQuery(),M=f(C),H=C!==M;let p=null,O=!0,R=!0,T=!1;H&&k&&(p=k.Event(C,x),k(E).trigger(p),O=!p.isPropagationStopped(),R=!p.isImmediatePropagationStopped(),T=p.isDefaultPrevented());let w=new Event(C,{bubbles:O,cancelable:!0});return w=P(w,x),T&&w.preventDefault(),R&&E.dispatchEvent(w),w.defaultPrevented&&p&&p.preventDefault(),w}};function P(E,C){for(const[x,k]of Object.entries(C||{}))try{E[x]=k}catch{Object.defineProperty(E,x,{configurable:!0,get(){return k}})}return E}return A})}(ls)),Ot}var Dt={},cs={get exports(){return Dt},set exports(e){Dt=e}},Lt={},hs={get exports(){return Lt},set exports(e){Lt=e}};/*!
* Bootstrap data.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var sn;function ds(){return sn||(sn=1,function(e,t){(function(i,n){e.exports=n()})(Z,function(){const i=new Map;return{set(r,s,o){i.has(r)||i.set(r,new Map);const a=i.get(r);if(!a.has(s)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(s,o)},get(r,s){return i.has(r)&&i.get(r).get(s)||null},remove(r,s){if(!i.has(r))return;const o=i.get(r);o.delete(s),o.size===0&&i.delete(r)}}})}(hs)),Lt}var Pt={},us={get exports(){return Pt},set exports(e){Pt=e}},xt={},fs={get exports(){return xt},set exports(e){xt=e}};/*!
* Bootstrap manipulator.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var on;function bi(){return on||(on=1,function(e,t){(function(i,n){e.exports=n()})(Z,function(){function i(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function n(s){return s.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}return{setDataAttribute(s,o,a){s.setAttribute(`data-bs-${n(o)}`,a)},removeDataAttribute(s,o){s.removeAttribute(`data-bs-${n(o)}`)},getDataAttributes(s){if(!s)return{};const o={},a=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of a){let h=l.replace(/^bs/,"");h=h.charAt(0).toLowerCase()+h.slice(1,h.length),o[h]=i(s.dataset[l])}return o},getDataAttribute(s,o){return i(s.getAttribute(`data-bs-${n(o)}`))}}})}(fs)),xt}/*!
* Bootstrap config.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var an;function _i(){return an||(an=1,function(e,t){(function(i,n){e.exports=n(me(),bi())})(Z,function(i,n){const s=(a=>a&&typeof a=="object"&&"default"in a?a:{default:a})(n);class o{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(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,h){const d=i.isElement(h)?s.default.getDataAttribute(h,"config"):{};return{...this.constructor.Default,...typeof d=="object"?d:{},...i.isElement(h)?s.default.getDataAttributes(h):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,h=this.constructor.DefaultType){for(const d of Object.keys(h)){const c=h[d],g=l[d],u=i.isElement(g)?"element":i.toType(g);if(!new RegExp(c).test(u))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${d}" provided type "${u}" but expected type "${c}".`)}}}return o})}(us)),Pt}/*!
* Bootstrap base-component.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var ln;function $t(){return ln||(ln=1,function(e,t){(function(i,n){e.exports=n(ds(),me(),Pe(),_i())})(Z,function(i,n,r,s){const o=g=>g&&typeof g=="object"&&"default"in g?g:{default:g},a=o(i),l=o(r),h=o(s),d="5.2.3";class c extends h.default{constructor(u,v){super(),u=n.getElement(u),u&&(this._element=u,this._config=this._getConfig(v),a.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){a.default.remove(this._element,this.constructor.DATA_KEY),l.default.off(this._element,this.constructor.EVENT_KEY);for(const u of Object.getOwnPropertyNames(this))this[u]=null}_queueCallback(u,v,m=!0){n.executeAfterTransition(u,v,m)}_getConfig(u){return u=this._mergeConfigObj(u,this._element),u=this._configAfterMerge(u),this._typeCheckConfig(u),u}static getInstance(u){return a.default.get(n.getElement(u),this.DATA_KEY)}static getOrCreateInstance(u,v={}){return this.getInstance(u)||new this(u,typeof v=="object"?v:null)}static get VERSION(){return d}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(u){return`${u}${this.EVENT_KEY}`}}return c})}(cs)),Dt}var ot={},ps={get exports(){return ot},set exports(e){ot=e}};/*!
* Bootstrap component-functions.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var cn;function Rn(){return cn||(cn=1,function(e,t){(function(i,n){n(t,Pe(),me())})(Z,function(i,n,r){const o=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(n),a=(l,h="hide")=>{const d=`click.dismiss${l.EVENT_KEY}`,c=l.NAME;o.default.on(document,d,`[data-bs-dismiss="${c}"]`,function(g){if(["A","AREA"].includes(this.tagName)&&g.preventDefault(),r.isDisabled(this))return;const u=r.getElementFromSelector(this)||this.closest(`.${c}`);l.getOrCreateInstance(u)[h]()})};i.enableDismissTrigger=a,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(ps,ot)),ot}/*!
* Bootstrap alert.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/(function(e,t){(function(i,n){e.exports=n(me(),Pe(),$t(),Rn())})(Z,function(i,n,r,s){const o=S=>S&&typeof S=="object"&&"default"in S?S:{default:S},a=o(n),l=o(r),h="alert",c=".bs.alert",g=`close${c}`,u=`closed${c}`,v="fade",m="show";class y extends l.default{static get NAME(){return h}close(){if(a.default.trigger(this._element,g).defaultPrevented)return;this._element.classList.remove(m);const f=this._element.classList.contains(v);this._queueCallback(()=>this._destroyElement(),this._element,f)}_destroyElement(){this._element.remove(),a.default.trigger(this._element,u),this.dispose()}static jQueryInterface(N){return this.each(function(){const f=y.getOrCreateInstance(this);if(typeof N=="string"){if(f[N]===void 0||N.startsWith("_")||N==="constructor")throw new TypeError(`No method named "${N}"`);f[N](this)}})}}return s.enableDismissTrigger(y,"close"),i.defineJQueryPlugin(y),y})})(os);var hi={},gs={get exports(){return hi},set exports(e){hi=e}},Rt={},ms={get exports(){return Rt},set exports(e){Rt=e}};/*!
* Bootstrap selector-engine.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var hn;function ht(){return hn||(hn=1,function(e,t){(function(i,n){e.exports=n(me())})(Z,function(i){return{find(r,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,r))},findOne(r,s=document.documentElement){return Element.prototype.querySelector.call(s,r)},children(r,s){return[].concat(...r.children).filter(o=>o.matches(s))},parents(r,s){const o=[];let a=r.parentNode.closest(s);for(;a;)o.push(a),a=a.parentNode.closest(s);return o},prev(r,s){let o=r.previousElementSibling;for(;o;){if(o.matches(s))return[o];o=o.previousElementSibling}return[]},next(r,s){let o=r.nextElementSibling;for(;o;){if(o.matches(s))return[o];o=o.nextElementSibling}return[]},focusableChildren(r){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(s,r).filter(o=>!i.isDisabled(o)&&i.isVisible(o))}}})}(ms)),Rt}/*!
* Bootstrap collapse.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/(function(e,t){(function(i,n){e.exports=n(me(),Pe(),ht(),$t())})(Z,function(i,n,r,s){const o=w=>w&&typeof w=="object"&&"default"in w?w:{default:w},a=o(n),l=o(r),h=o(s),d="collapse",g=".bs.collapse",u=".data-api",v=`show${g}`,m=`shown${g}`,y=`hide${g}`,S=`hidden${g}`,N=`click${g}${u}`,f="show",A="collapse",P="collapsing",E="collapsed",C=`:scope .${A} .${A}`,x="collapse-horizontal",k="width",M="height",H=".collapse.show, .collapse.collapsing",p='[data-bs-toggle="collapse"]',O={parent:null,toggle:!0},R={parent:"(null|element)",toggle:"boolean"};class T extends h.default{constructor(b,D){super(b,D),this._isTransitioning=!1,this._triggerArray=[];const I=l.default.find(p);for(const U of I){const B=i.getSelectorFromElement(U),J=l.default.find(B).filter(F=>F===this._element);B!==null&&J.length&&this._triggerArray.push(U)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return O}static get DefaultType(){return R}static get NAME(){return d}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let b=[];if(this._config.parent&&(b=this._getFirstLevelChildren(H).filter(F=>F!==this._element).map(F=>T.getOrCreateInstance(F,{toggle:!1}))),b.length&&b[0]._isTransitioning||a.default.trigger(this._element,v).defaultPrevented)return;for(const F of b)F.hide();const I=this._getDimension();this._element.classList.remove(A),this._element.classList.add(P),this._element.style[I]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const U=()=>{this._isTransitioning=!1,this._element.classList.remove(P),this._element.classList.add(A,f),this._element.style[I]="",a.default.trigger(this._element,m)},J=`scroll${I[0].toUpperCase()+I.slice(1)}`;this._queueCallback(U,this._element,!0),this._element.style[I]=`${this._element[J]}px`}hide(){if(this._isTransitioning||!this._isShown()||a.default.trigger(this._element,y).defaultPrevented)return;const D=this._getDimension();this._element.style[D]=`${this._element.getBoundingClientRect()[D]}px`,i.reflow(this._element),this._element.classList.add(P),this._element.classList.remove(A,f);for(const U of this._triggerArray){const B=i.getElementFromSelector(U);B&&!this._isShown(B)&&this._addAriaAndCollapsedClass([U],!1)}this._isTransitioning=!0;const I=()=>{this._isTransitioning=!1,this._element.classList.remove(P),this._element.classList.add(A),a.default.trigger(this._element,S)};this._element.style[D]="",this._queueCallback(I,this._element,!0)}_isShown(b=this._element){return b.classList.contains(f)}_configAfterMerge(b){return b.toggle=Boolean(b.toggle),b.parent=i.getElement(b.parent),b}_getDimension(){return this._element.classList.contains(x)?k:M}_initializeChildren(){if(!this._config.parent)return;const b=this._getFirstLevelChildren(p);for(const D of b){const I=i.getElementFromSelector(D);I&&this._addAriaAndCollapsedClass([D],this._isShown(I))}}_getFirstLevelChildren(b){const D=l.default.find(C,this._config.parent);return l.default.find(b,this._config.parent).filter(I=>!D.includes(I))}_addAriaAndCollapsedClass(b,D){if(b.length)for(const I of b)I.classList.toggle(E,!D),I.setAttribute("aria-expanded",D)}static jQueryInterface(b){const D={};return typeof b=="string"&&/show|hide/.test(b)&&(D.toggle=!1),this.each(function(){const I=T.getOrCreateInstance(this,D);if(typeof b=="string"){if(typeof I[b]>"u")throw new TypeError(`No method named "${b}"`);I[b]()}})}}return a.default.on(document,N,p,function(w){(w.target.tagName==="A"||w.delegateTarget&&w.delegateTarget.tagName==="A")&&w.preventDefault();const b=i.getSelectorFromElement(this),D=l.default.find(b);for(const I of D)T.getOrCreateInstance(I,{toggle:!1}).toggle()}),i.defineJQueryPlugin(T),T})})(gs);const vs=hi;var dn={},bs={get exports(){return dn},set exports(e){dn=e}},ie="top",ce="bottom",he="right",ne="left",jt="auto",Je=[ie,ce,he,ne],He="start",Ue="end",Nn="clippingParents",yi="viewport",je="popper",In="reference",di=Je.reduce(function(e,t){return e.concat([t+"-"
* Bootstrap dropdown.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/(function(e,t){(function(i,n){e.exports=n(ao,me(),Pe(),bi(),ht(),$t())})(Z,function(i,n,r,s,o,a){const l=X=>X&&typeof X=="object"&&"default"in X?X:{default:X};function h(X){if(X&&X.__esModule)return X;const L=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(X){for(const j in X)if(j!=="default"){const q=Object.getOwnPropertyDescriptor(X,j);Object.defineProperty(L,j,q.get?q:{enumerable:!0,get:()=>X[j]})}}return L.default=X,Object.freeze(L)}const d=h(i),c=l(r),g=l(s),u=l(o),v=l(a),m="dropdown",S=".bs.dropdown",N=".data-api",f="Escape",A="Tab",P="ArrowUp",E="ArrowDown",C=2,x=`hide${S}`,k=`hidden${S}`,M=`show${S}`,H=`shown${S}`,p=`click${S}${N}`,O=`keydown${S}${N}`,R=`keyup${S}${N}`,T="show",w="dropup",b="dropend",D="dropstart",I="dropup-center",U="dropdown-center",B='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',J=`${B}.${T}`,F=".dropdown-menu",ee=".navbar",W=".navbar-nav",K=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",z=n.isRTL()?"top-end":"top-start",$=n.isRTL()?"top-start":"top-end",V=n.isRTL()?"bottom-end":"bottom-start",te=n.isRTL()?"bottom-start":"bottom-end",fe=n.isRTL()?"left-start":"right-start",Vt=n.isRTL()?"right-start":"left-start",ut="top",Wt="bottom",qt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ft={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class re extends v.default{constructor(L,j){super(L,j),this._popper=null,this._parent=this._element.parentNode,this._menu=u.default.next(this._element,F)[0]||u.default.prev(this._element,F)[0]||u.default.findOne(F,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qt}static get DefaultType(){return ft}static get NAME(){return m}toggle(){return this._isShown()?this.hide():this.show()}show(){if(n.isDisabled(this._element)||this._isShown())return;const L={relatedTarget:this._element};if(!c.default.trigger(this._element,M,L).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(W))for(const q of[].concat(...document.body.children))c.default.on(q,"mouseover",n.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(T),this._element.classList.add(T),c.default.trigger(this._element,H,L)}}hide(){if(n.isDisabled(this._element)||!this._isShown())return;const L={relatedTarget:this._element};this._completeHide(L)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(L){if(!c.default.trigger(this._element,x,L).defaultPrevented){if("ontouchstart"in document.documentElement)for(const q of[].concat(...document.body.children))c.default.off(q,"mouseover",n.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(T),this._element.classList.remove(T),this._element.setAttribute("aria-expanded","false"),g.default.removeDataAttribute(this._menu,"popper"),c.default.trigger(this._element,k,L)}}_getConfig(L){if(L=super._getConfig(L),typeof L.reference=="object"&&!n.isElement(L.reference)&&typeof L.reference.getBoundingClientRect!="function")throw new TypeError(`${m.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return L}_createPopper(){if(typeof d>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let L=this._element;this._config.reference==="parent"?L=this._parent:n.isElement(this._config.reference)?L=n.getElement(this._config.reference):typeof this._config.reference=="object"&&(L=this._config.reference);const j=this._getPopperConfig();this._popper=d.createPopper(L,this._menu,j)}_isShown(){return this._menu.classList.contains(T)}_getPlacement(){const L=this._parent;if(L.classList.contains(b))return fe;if(L.classList.contains(D))return Vt;if(L.classList.contains(I))return ut;if(L.classList.contains(U))return Wt;c
* Bootstrap scrollbar.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var En;function fo(){return En||(En=1,function(e,t){(function(i,n){e.exports=n(ht(),bi(),me())})(Z,function(i,n,r){const s=u=>u&&typeof u=="object"&&"default"in u?u:{default:u},o=s(i),a=s(n),l=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",h=".sticky-top",d="padding-right",c="margin-right";class g{constructor(){this._element=document.body}getWidth(){const v=document.documentElement.clientWidth;return Math.abs(window.innerWidth-v)}hide(){const v=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,d,m=>m+v),this._setElementAttributes(l,d,m=>m+v),this._setElementAttributes(h,c,m=>m-v)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,d),this._resetElementAttributes(l,d),this._resetElementAttributes(h,c)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(v,m,y){const S=this.getWidth(),N=f=>{if(f!==this._element&&window.innerWidth>f.clientWidth+S)return;this._saveInitialAttribute(f,m);const A=window.getComputedStyle(f).getPropertyValue(m);f.style.setProperty(m,`${y(Number.parseFloat(A))}px`)};this._applyManipulationCallback(v,N)}_saveInitialAttribute(v,m){const y=v.style.getPropertyValue(m);y&&a.default.setDataAttribute(v,m,y)}_resetElementAttributes(v,m){const y=S=>{const N=a.default.getDataAttribute(S,m);if(N===null){S.style.removeProperty(m);return}a.default.removeDataAttribute(S,m),S.style.setProperty(m,N)};this._applyManipulationCallback(v,y)}_applyManipulationCallback(v,m){if(r.isElement(v)){m(v);return}for(const y of o.default.find(v,this._element))m(y)}}return g})}(uo)),It}var Mt={},po={get exports(){return Mt},set exports(e){Mt=e}};/*!
* Bootstrap backdrop.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var An;function go(){return An||(An=1,function(e,t){(function(i,n){e.exports=n(Pe(),me(),_i())})(Z,function(i,n,r){const s=m=>m&&typeof m=="object"&&"default"in m?m:{default:m},o=s(i),a=s(r),l="backdrop",h="fade",d="show",c=`mousedown.bs.${l}`,g={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},u={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class v extends a.default{constructor(y){super(),this._config=this._getConfig(y),this._isAppended=!1,this._element=null}static get Default(){return g}static get DefaultType(){return u}static get NAME(){return l}show(y){if(!this._config.isVisible){n.execute(y);return}this._append();const S=this._getElement();this._config.isAnimated&&n.reflow(S),S.classList.add(d),this._emulateAnimation(()=>{n.execute(y)})}hide(y){if(!this._config.isVisible){n.execute(y);return}this._getElement().classList.remove(d),this._emulateAnimation(()=>{this.dispose(),n.execute(y)})}dispose(){this._isAppended&&(o.default.off(this._element,c),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const y=document.createElement("div");y.className=this._config.className,this._config.isAnimated&&y.classList.add(h),this._element=y}return this._element}_configAfterMerge(y){return y.rootElement=n.getElement(y.rootElement),y}_append(){if(this._isAppended)return;const y=this._getElement();this._config.rootElement.append(y),o.default.on(y,c,()=>{n.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(y){n.executeAfterTransition(y,this._getElement(),this._config.isAnimated)}}return v})}(po)),Mt}var Ht={},mo={get exports(){return Ht},set exports(e){Ht=e}};/*!
* Bootstrap focustrap.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var wn;function vo(){return wn||(wn=1,function(e,t){(function(i,n){e.exports=n(Pe(),ht(),_i())})(Z,function(i,n,r){const s=A=>A&&typeof A=="object"&&"default"in A?A:{default:A},o=s(i),a=s(n),l=s(r),h="focustrap",c=".bs.focustrap",g=`focusin${c}`,u=`keydown.tab${c}`,v="Tab",m="forward",y="backward",S={autofocus:!0,trapElement:null},N={autofocus:"boolean",trapElement:"element"};class f extends l.default{constructor(P){super(),this._config=this._getConfig(P),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return S}static get DefaultType(){return N}static get NAME(){return h}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o.default.off(document,c),o.default.on(document,g,P=>this._handleFocusin(P)),o.default.on(document,u,P=>this._handleKeydown(P)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o.default.off(document,c))}_handleFocusin(P){const{trapElement:E}=this._config;if(P.target===document||P.target===E||E.contains(P.target))return;const C=a.default.focusableChildren(E);C.length===0?E.focus():this._lastTabNavDirection===y?C[C.length-1].focus():C[0].focus()}_handleKeydown(P){P.key===v&&(this._lastTabNavDirection=P.shiftKey?y:m)}}return f})}(mo)),Ht}/*!
* Bootstrap modal.js v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/(function(e,t){(function(i,n){e.exports=n(me(),Pe(),ht(),fo(),$t(),go(),vo(),Rn())})(Z,function(i,n,r,s,o,a,l,h){const d=z=>z&&typeof z=="object"&&"default"in z?z:{default:z},c=d(n),g=d(r),u=d(s),v=d(o),m=d(a),y=d(l),S="modal",f=".bs.modal",A=".data-api",P="Escape",E=`hide${f}`,C=`hidePrevented${f}`,x=`hidden${f}`,k=`show${f}`,M=`shown${f}`,H=`resize${f}`,p=`click.dismiss${f}`,O=`mousedown.dismiss${f}`,R=`keydown.dismiss${f}`,T=`click${f}${A}`,w="modal-open",b="fade",D="show",I="modal-static",U=".modal.show",B=".modal-dialog",J=".modal-body",F='[data-bs-toggle="modal"]',ee={backdrop:!0,focus:!0,keyboard:!0},W={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class K extends v.default{constructor($,V){super($,V),this._dialog=g.default.findOne(B,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new u.default,this._addEventListeners()}static get Default(){return ee}static get DefaultType(){return W}static get NAME(){return S}toggle($){return this._isShown?this.hide():this.show($)}show($){this._isShown||this._isTransitioning||c.default.trigger(this._element,k,{relatedTarget:$}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(w),this._adjustDialog(),this._backdrop.show(()=>this._showElement($)))}hide(){!this._isShown||this._isTransitioning||c.default.trigger(this._element,E).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(D),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const $ of[window,this._dialog])c.default.off($,f);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new m.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new y.default({trapElement:this._element})}_showElement($){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 V=g.default.findOne(J,this._dialog);V&&(V.scrollTop=0),i.reflow(this._element),this._element.classList.add(D);const te=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.default.trigger(this._element,M,{relatedTarget:$})};this._queueCallback(te,this._dialog,this._isAnimated())}_addEventListeners(){c.default.on(this._element,R,$=>{if($.key===P){if(this._config.keyboard){$.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),c.default.on(window,H,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),c.default.on(this._element,O,$=>{c.default.one(this._element,p,V=>{if(!(this._element!==$.target||this._element!==V.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(w),this._resetAdjustments(),this._scrollBar.reset(),c.default.trigger(this._element,x)})}_isAnimated(){return this._element.classList.contains(b)}_triggerBackdropTransition(){if(c.default.trigger(this._element,C).defaultPrevented)return;const V=this._element.scrollHeight>document.documentElement.clientHeight,te=this._element.style.overflowY;te==="hidden"||this._element.classList.contains(I)||(V||(this._element.style.overflowY="hidden"),this._element.classList.add(I),this._queueCallback(()=>{this._element.classList.remove(I),this._queueCallback(()=>{this._element.style.overflowY=te},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const $=this._element.scrollHeight>doc