vendor: 3,337 bytes, line 1
1(()=>{var __webpack_modules__={9600(e,t,n){"use strict";n.d(t,{n4:()=>E,UD:()=>y});var r=n(3177),o=n(2733),i=n(9328),s=n(2324);var a=n(4455),l=n(4850),c=n(8569),u=n(1287),d=n(9539);function f(e,t,n){void 0===n&&(n=!1);var f,h,p=(0,s.sb)(t),g=(0,s.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.LI)(t.width)/e.offsetWidth||1,r=(0,d.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),m=(0,c.A)(t),b=(0,r.A)(e,g,n),v={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(p||!p&&!n)&&(("body"!==(0,a.A)(t)||(0,u.A)(m))&&(v=(f=t)!==(0,i.A)(f)&&(0,s.sb)(f)?{scrollLeft:(h=f).scrollLeft,scrollTop:h.scrollTop}:(0,o.A)(f)),(0,s.sb)(t)?((_=(0,r.A)(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):m&&(_.x=(0,l.A)(m))),{x:b.left+v.scrollLeft-_.x,y:b.top+v.scrollTop-_.y,width:b.width,height:b.height}}var h=n(7608),p=n(3814),g=n(1602),m=n(1541);function b(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var v={placement:"bottom",modifiers:[],strategy:"absolute"};function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function y(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?v:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},v,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;y(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:(0,s.vq)(e)?(0,p.A)(e):e.contextElement?(0,p.A)(e.contextElement):[],popper:(0,p.A)(t)};var a,u,f=function(e){var t=b(e);return m.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,l.options.modifiers),u=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return l.orderedModifiers=f.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:d,options:r}),s=function(){};c.push(i||s)}}),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(_(t,n)){l.rects={reference:f(t,(0,g.A)(n),"fixed"===l.options.strategy),popper:(0,h.A)(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,s=o.options,a=void 0===s?{}:s,c=o.name;"function"==typeof i&&(l=i({state:l,options:a,name:c,instance:d})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){d.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){y(),u=!0}};if(!_(e,t))return d;
1function y(){c.forEach(function(e){return e()}),c=[]}return d.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var E=y()},7379(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2324);function o(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}},3177(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(2324),o=n(9539),i=n(9328),s=n(4290);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,c=1;t&&(0,r.sb)(e)&&(l=e.offsetWidth>0&&(0,o.LI)(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,o.LI)(a.height)/e.offsetHeight||1);var u=((0,r.vq)(e)?(0,i.A)(e):window).visualViewport,d=!(0,s.A)()&&n,f=(a.left+(d&&u?u.offsetLeft:0))/l,h=(a.top+(d&&u?u.offsetTop:0))/c,p=a.width/l,g=a.height/c;return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f,x:f,y:h}}},7094(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9328);function o(e){return(0,r.A)(e).getComputedStyle(e)}},8569(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2324);function o(e){return(((0,r.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},7608(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(3177);function o(e){var t=(0,r.A)(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}},4455(e,t,n){"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:()=>r})},1602(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(9328),o=n(4455),i=n(7094),s=n(2324);function a(e){return["table","td","th"].indexOf((0,o.A)(e))>=0}var l=n(8448),c=n(6717);function u(e){return(0,s.sb)(e)&&"fixed"!==(0,i.A)(e).position?e.offsetParent:null}function d(e){for(var t=(0,r.A)(e),n=u(e);n&&a(n)&&"static"===(0,i.A)(n).position;)n=u(n);return n&&("html"===(0,o.A)(n)||"body"===(0,o.A)(n)&&"static"===(0,i.A)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.A)());if(/Trident/i.test((0,c.A)())&&(0,s.sb)(e)&&"fixed"===(0,i.A)(e).position)return null;var n=(0,l.A)(e);for((0,s.Ng)(n)&&(n=n.host);(0,s.sb)(n)&&["html","body"].indexOf((0,o.A)(n))<0;){var r=(0,i.A)(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}},8448(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4455),o=n(8569),i=n(2324);function s(e){return"html"===(0,r.A)(e)?e:e.assignedSlot||e.parentNode||((0,i.Ng)(e)?e.host:null)||(0,o.A)(e)}},9328(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:()=>r})},2733(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9328);function o(e){var t=(0,r.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4850(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(3177),o=n(8569),i=n(2733);function s(e){return(0,r.A)((0,o.A)(e)).left+(0,i.A)(e).scrollLeft}},2324(e,t,n){"use strict";n.d(t,{Ng:()=>s,sb:()=>i,vq:()=>o});var r=n(9328);function o(e){return e instanceof(0,r.A)(e).Element||e instanceof Element}function i(e){return e instanceof(0,r.A)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.A)(e).ShadowRoot||e instanceof ShadowRoot)}},4290(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(6717);function o(){return!/^((?!chrome|android).)*safari/i.test((0,r.A)())}},1287(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(7094);function o(e){var t=(0,r.A)(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}},3814(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(8448),o=n(1287),i=n(4455),s=n(2324);function a(e){return["html","body","#document"].indexOf((0,i.A)(e))>=0?e.ownerDocument.body:(0,s.sb)(e)&&(0,o.A)(e)?e:a((0,r.A)(e))}var l=n(9328);function c(e,t){var n;void 0===t&&(t=[]);var i=a(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.A)(i),d=s?[u].concat(u.visualVie
1wport||[],(0,o.A)(i)?i:[]):i,f=t.concat(d);return s?f:f.concat(c((0,r.A)(d)))}},1541(e,t,n){"use strict";n.d(t,{DD:()=>m,EP:()=>w,GM:()=>C,LF:()=>v,LG:()=>y,M9:()=>x,Mn:()=>r,OM:()=>l,Ol:()=>g,R9:()=>f,SE:()=>S,WY:()=>d,_N:()=>u,ci:()=>b,iW:()=>E,ir:()=>p,kb:()=>s,ni:()=>c,pA:()=>A,pG:()=>i,qZ:()=>a,sQ:()=>o,v5:()=>_,xf:()=>h});var r="top",o="bottom",i="right",s="left",a="auto",l=[r,o,i,s],c="start",u="end",d="clippingParents",f="viewport",h="popper",p="reference",g=l.reduce(function(e,t){return e.concat([t+"-"+c,t+"-"+u])},[]),m=[].concat(l,[a]).reduce(function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])},[]),b="beforeRead",v="read",_="afterRead",y="beforeMain",E="main",w="afterMain",A="beforeWrite",x="write",S="afterWrite",C=[b,v,_,y,E,w,A,x,S]},2982(e,t,n){"use strict";n.r(t),n.d(t,{EP:()=>r.EP,v5:()=>r.v5,SE:()=>r.SE,ZM:()=>o.A,UE:()=>i.A,qZ:()=>r.qZ,OM:()=>r.OM,LG:()=>r.LG,ci:()=>r.ci,pA:()=>r.pA,sQ:()=>r.sQ,WY:()=>r.WY,KC:()=>s.A,createPopper:()=>g.n,eR:()=>h.n4,Ls:()=>b,__:()=>p.A,_N:()=>r._N,Gc:()=>a.A,UU:()=>l.A,jD:()=>c.A,kb:()=>r.kb,iW:()=>r.iW,GM:()=>r.GM,cY:()=>u.A,DD:()=>r.DD,xf:()=>r.xf,UD:()=>h.UD,Zo:()=>d.A,V7:()=>f.A,LF:()=>r.LF,ir:()=>r.ir,pG:()=>r.pG,ni:()=>r.ni,Mn:()=>r.Mn,Ol:()=>r.Ol,R9:()=>r.R9,M9:()=>r.M9});var r=n(1541),o=n(6084),i=n(1759),s=n(2393),a=n(3461),l=n(3027),c=n(4584),u=n(4647),d=n(9792),f=n(8633),h=n(9600),p=n(2950),g=n(6833),m=[a.A,d.A,s.A,o.A],b=(0,h.UD)({defaultModifiers:m})},6084(e,t,n){"use strict";var r=n(4455),o=n(2324);const i={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];(0,o.sb)(s)&&(0,r.A)(s)&&(Object.assign(s.style,n),Object.keys(i).forEac
1h(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(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(e){var i=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,o.sb)(i)&&(0,r.A)(i)&&(Object.assign(i.style,a),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};n.d(t,["A",0,i])},1759(e,t,n){"use strict";var r=n(9385),o=n(7608),i=n(7379),s=n(1602),a=n(5446),l=n(4358),c=n(4339),u=n(1212),d=n(1541);const f={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,f=e.options,h=n.elements.arrow,p=n.modifiersData.popperOffsets,g=(0,r.A)(n.placement),m=(0,a.A)(g),b=[d.kb,d.pG].indexOf(g)>=0?"height":"width";if(h&&p){var v=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.A)("number"!=typeof e?e:(0,u.A)(e,d.OM))}(f.padding,n),_=(0,o.A)(h),y="y"===m?d.Mn:d.kb,E="y"===m?d.sQ:d.pG,w=n.rects.reference[b]+n.rects.reference[m]-p[m]-n.rects.popper[b],A=p[m]-n.rects.reference[m],x=(0,s.A)(h),S=x?"y"===m?x.clientHeight||0:x.clientWidth||0:0,C=w/2-A/2,T=v[y],O=S-_[b]-v[E],k=S/2-_[b]/2+C,I=(0,l.u)(T,k,O),D=m;n.modifiersData[i]=((t={})[D]=I,t.centerOffset=I-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&(0,i.A)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};n.d(t,["A",0,f])},2393(e,t,n){"use strict";var r=n(1541),o=n(1602),i=n(9328),s=n(8569),a=n(7094),l=n(9385),c=n(2688),u=n(9539),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f(e){var t,n=e.popper,l=e.popperRect,c=e.placement,f=e.variation,h=e.offsets,p=e.position,g=e.gpuAcceleration,m=e.adaptive,b=e.roundOffsets,v=e.isFixed,_=h.x,y=void 0===_?0:_,E=h.y,w=void 0===E?0:E,A="function"==typeof b?b({x:y,y:w}):{x:y,y:w};y=A.x,w=A.y;var x=h.hasOwnProperty("x"),S=h.hasOwnProperty("y"),C=r.kb,T=r.Mn,O=window;if(m){var k=(0,o.A)(n),I="clientHeight",D="clientWidth";if(k===(0,i.A)(n)&&(k=(0,s.A)(n),"static"!==(0,a.A)(k).position&&"absolute"===p&&(I="scrollHeight",D="scrollWidth")),c===r.Mn||(c===r.kb||c===r.pG)&&f===r._N)T=r.sQ,w-=(v&&k===O&&O.visualVie
1wport?O.visualViewport.height:k[I])-l.height,w*=g?1:-1;if(c===r.kb||(c===r.Mn||c===r.sQ)&&f===r._N)C=r.pG,y-=(v&&k===O&&O.visualViewport?O.visualViewport.width:k[D])-l.width,y*=g?1:-1}var L,N=Object.assign({position:p},m&&d),P=!0===b?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:(0,u.LI)(n*o)/o||0,y:(0,u.LI)(r*o)/o||0}}({x:y,y:w},(0,i.A)(n)):{x:y,y:w};return y=P.x,w=P.y,g?Object.assign({},N,((L={})[T]=S?"0":"",L[C]=x?"0":"",L.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",L)):Object.assign({},N,((t={})[T]=S?w+"px":"",t[C]=x?y+"px":"",t.transform="",t))}const h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,u=void 0===a||a,d={placement:(0,l.A)(t.placement),variation:(0,c.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,f(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,f(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};n.d(t,["A",0,h])},3461(e,t,n){"use strict";var r=n(9328),o={passive:!0};const i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=void 0===s||s,l=i.resize,c=void 0===l||l,u=(0,r.A)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(e){e.addEventListener("scroll",n.update,o)}),c&&u.addEventListener("resize",n.update,o),function(){a&&d.forEach(function(e){e.removeEventListener("scroll",n.update,o)}),c&&u.removeEventListener("resize",n.update,o)}},data:{}};n.d(t,["A",0,i])},3027(e,t,n){"use strict";n.d(t,{A:()=>d});var r={left:"right",right:"left",bottom:"top",top:"bottom"};function o(e){return e.replace(/left|right|bottom|top/g,function(e){return r[e]})}var i=n(9385),s={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,function(e){return s[e]})}var l=n(2950),c=n(2688),u=n(1541);const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,d=void 0===s||s,f=n.altAxis,h=void 0===f||f,p=n.fallbackPlacements,g=n.padding,m=n.boundary,b=n.rootBoundary,v=n.altBoundary,_=n.flipVariations,y=void 0===_||_,E=n.allowedAutoPlacements,w=t.options.placement,A=(0,i.A)(w),x=p||(A===w||!y?[o(w)]:function(e){if((0,i.A)(e)===u.qZ)return[];var t=o(e);return[a(e),t,a(t)]}(w)),S=[w].concat(x).reduce(function(e,n){return e.concat((0,i.A)(n)===u.qZ?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,d=n.flipVariations,f=n.allowedAutoPlacements,h=void 0===f?u.DD:f,p=(0,c.A)(r),g=p?d?u.Ol:u.Ol.filter(function(e){return(0,c.A)(e)===p}):u.OM,m=g.filter(function(e){return h.indexOf(e)>=0});0===m.length&&(m=g);var b=m.reduce(function(t,n){return t[n]=(0,l.A)(e,{placement:n,boundary:o,rootBoundary:s,padding:a})[(0,i.A)(n)],t},{});return Object.keys(b).sort(function(e,t){return b[e]-b[t]})}(t,{placement:n,boundary:m,rootBoundary:b,padding:g,flipVariations:y,allowedAutoPlacements:E}):n)},[]),C=t.rects.reference,T=t.rects.popper,O=new Map,k=!0,I=S[0],D=0;D<S.length;D++){var L=S[D],N=(0,i.A)(L),P=(0,c.A)(L)===u.ni,H=[u.Mn,u.sQ].indexOf(N)>=0,R=H?"width":"height",q=(0,l.A)(t,{placement:L,boundary:m,rootBoundary:b,altBoundary:v,padding:g}),M=H?P?u.pG:u.kb:P?u.sQ:u.Mn;C[R]>T[R]&&(M=o(M));var j=o(M),F=[];if(d&&F.push(q[N]<=0),h&&F.push(q[M]<=0,q[j]<=0),F.every(function(e){return e})){I=L,k=!1;break}O.set(L,F)}if(k)for(var $=function(e){var t=S.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},B=y?3:1;B>0;B--){if("break"===$(B))break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},4584(e,t,n){"use strict";var r=n(1541),o=n(2950);function i(e,t,n){return void 0===n&&(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 s(e){return[r.Mn,r.pG,r.sQ,r.kb].some(function(t){return e[t]>=0})}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.re
1cts.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,o.A)(t,{elementContext:"reference"}),u=(0,o.A)(t,{altBoundary:!0}),d=i(c,r),f=i(u,a,l),h=s(d),p=s(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}};n.d(t,["A",0,a])},4647(e,t,n){"use strict";var r=n(9385),o=n(1541);const i={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=void 0===s?[0,0]:s,l=o.DD.reduce(function(e,n){return e[n]=function(e,t,n){var i=(0,r.A)(e),s=[o.kb,o.Mn].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[o.kb,o.pG].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,a),e},{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=l}};n.d(t,["A",0,i])},9792(e,t,n){"use strict";var r=n(4186);const o={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};n.d(t,["A",0,o])},8633(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(1541),o=n(9385),i=n(5446);var s=n(4358),a=n(7608),l=n(1602),c=n(2950),u=n(2688),d=n(2045),f=n(9539);const h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,p=n.mainAxis,g=void 0===p||p,m=n.altAxis,b=void 0!==m&&m,v=n.boundary,_=n.rootBoundary,y=n.altBoundary,E=n.padding,w=n.tether,A=void 0===w||w,x=n.tetherOffset,S=void 0===x?0:x,C=(0,c.A)(t,{boundary:v,rootBoundary:_,padding:E,altBoundary:y}),T=(0,o.A)(t.placement),O=(0,u.A)(t.placement),k=!O,I=(0,i.A)(T),D="x"===I?"y":"x",L=t.modifiersData.popperOffsets,N=t.rects.reference,P=t.rects.popper,H="function"==typeof S?S(Object.assign({},t.rects,{placement:t.placement})):S,R="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(L){if(g){var j,F="y"===I?r.Mn:r.kb,$="y"===I?r.sQ:r.pG,B="y"===I?"height":"width",V=L[I],W=V+C[F],z=V-C[$],U=A?-P[B]/2:0,X=O===r.ni?N[B]:P[B],G=O===r.ni?-P[B]:-N[B],Q=t.elements.arrow,Y=A&&Q?(0,a.A)(Q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.A)(),J=K[F],Z=K[$],ee=(0,s.u)(0,N[B],Y[B]),te=k?N[B]/2-U-ee-J-R.mainAxis:X-ee-J-R.mainAxis,ne=k?-N[B]/2+U+ee+Z+R.mainAxis:G+ee+Z+R.mainAxis,re=t.elements.arrow&&(0,l.A)(t.elements.arrow),oe=re?"y"===I?re.clientTop||0:re.clientLeft||0:0,ie=null!=(j=null==q?void 0:q[I])?j:0,se=V+te-ie-oe,ae=V+ne-ie,le=(0,s.u)(A?(0,f.jk)(W,se):W,V,A?(0,f.T9)(z,ae):z);L[I]=le,M[I]=le-V}if(b){var ce,ue="x"===I?r.Mn:r.kb,de="x"===I?r.sQ:r.pG,fe=L[D],he="y"===D?"height":"width",pe=fe+C[ue],ge=fe-C[de],me=-1!==[r.Mn,r.kb].indexOf(T),be=null!=(ce=null==q?void 0:q[D])?ce:0,ve=me?pe:fe-N[he]-P[he]-be+R.altAxis,_e=me?fe+N[he]+P[he]-be-R.altAxis:ge,ye=A&&me?(0,s.P)(ve,fe,_e):(0,s.u)(A?ve:pe,fe,A?_e:ge);L[D]=ye,M[D]=ye-fe}t.modifiersData[h]=M}},requiresIfExists:["offset"]}},6833(e,t,n){"use strict";n.d(t,{n:()=>p});var r=n(9600),o=n(3461),i=n(9792),s=n(2393),a=n(6084),l=n(4647),c=n(3027),u=n(8633),d=n(1759),f=n(4584),h=[o.A,i.A,s.A,a.A,l.A,c.A,u.A,d.A,f.A],p=(0,r.UD)({defaultModifiers:h})},4186(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(9385),o=n(2688),i=n(5446),s=n(1541);function a(e){var t,n=e.reference,a=e.element,l=e.placement,c=l?(0,r.A)(l):null,u=l?(0,o.A)(l):null,d=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2;switch(c){case s.Mn:t={x:d,y:n.y-a.height};break;case s.sQ:t={x:d,y:n.y+n.height};break;case s.pG:t={x:n.x+n.width,y:f};break;case s.kb:t={x:n.x-a.width,y:f};break;default:t={x:n.x,y:n.y}}var h=c?(0,i.A)(c):null;if(null!=h){var p="y"===h?"height":"width";switch(u){case s.ni:t[h]=t[h]-(n[p]/2-a[p]/2);break;
1case s._N:t[h]=t[h]+(n[p]/2-a[p]/2)}}return t}},2950(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(1541),o=n(9328),i=n(8569),s=n(4850),a=n(4290);var l=n(7094),c=n(2733),u=n(9539);var d=n(3814),f=n(1602),h=n(2324),p=n(3177),g=n(8448),m=n(7379),b=n(4455);function v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _(e,t,n){return t===r.R9?v(function(e,t){var n=(0,o.A)(e),r=(0,i.A)(e),l=n.visualViewport,c=r.clientWidth,u=r.clientHeight,d=0,f=0;if(l){c=l.width,u=l.height;var h=(0,a.A)();(h||!h&&"fixed"===t)&&(d=l.offsetLeft,f=l.offsetTop)}return{width:c,height:u,x:d+(0,s.A)(e),y:f}}(e,n)):(0,h.vq)(t)?function(e,t){var n=(0,p.A)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):v(function(e){var t,n=(0,i.A)(e),r=(0,c.A)(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=(0,u.T9)(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=(0,u.T9)(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+(0,s.A)(e),h=-r.scrollTop;return"rtl"===(0,l.A)(o||n).direction&&(f+=(0,u.T9)(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:d,x:f,y:h}}((0,i.A)(e)))}function y(e,t,n,r){var o="clippingParents"===t?function(e){var t=(0,d.A)((0,g.A)(e)),n=["absolute","fixed"].indexOf((0,l.A)(e).position)>=0&&(0,h.sb)(e)?(0,f.A)(e):e;return(0,h.vq)(n)?t.filter(function(e){return(0,h.vq)(e)&&(0,m.A)(e,n)&&"body"!==(0,b.A)(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(t,n){var o=_(e,n,r);return t.top=(0,u.T9)(o.top,t.top),t.right=(0,u.jk)(o.right,t.right),t.bottom=(0,u.jk)(o.bottom,t.bottom),t.left=(0,u.T9)(o.left,t.left),t},_(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var E=n(4186),w=n(4339),A=n(1212);function x(e,t){void 0===t&&(t={});var n=t,o=n.placement,s=void 0===o?e.placement:o,a=n.strategy,l=void 0===a?e.strategy:a,c=n.boundary,u=void 0===c?r.WY:c,d=n.rootBoundary,f=void 0===d?r.R9:d,g=n.elementContext,m=void 0===g?r.xf:g,b=n.altBoundary,_=void 0!==b&&b,x=n.padding,S=void 0===x?0:x,C=(0,w.A)("number"!=typeof S?S:(0,A.A)(S,r.OM)),T=m===r.xf?r.ir:r.xf,O=e.rects.popper,k=e.elements[_?T:m],I=y((0,h.vq)(k)?k:k.contextElement||(0,i.A)(e.elements.popper),u,f,l),D=(0,p.A)(e.elements.reference),L=(0,E.A)({reference:D,element:O,strategy:"absolute",placement:s}),N=v(Object.assign({},O,L)),P=m===r.xf?N:D,H={top:I.top-P.top+C.top,bottom:P.bottom-I.bottom+C.bottom,left:I.left-P.left+C.left,right:P.right-I.right+C.right},R=e.modifiersData.offset;if(m===r.xf&&R){var q=R[s];Object.keys(H).forEach(function(e){var t=[r.pG,r.sQ].indexOf(e)>=0?1:-1,n=[r.Mn,r.sQ].indexOf(e)>=0?"y":"x";H[e]+=q[n]*t})}return H}},1212(e,t,n){"use strict";function r(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.d(t,{A:()=>r})},9385(e,t,n){"use strict";function r(e){return e.split("-")[0]}n.d(t,{A:()=>r})},2045(e,t,n){"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:()=>r})},5446(e,t,n){"use strict";function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:()=>r})},2688(e,t,n){"use strict";function r(e){return e.split("-")[1]}n.d(t,{A:()=>r})},9539(e,t,n){"use strict";n.d(t,{LI:()=>i,T9:()=>r,jk:()=>o});var r=Math.max,o=Math.min,i=Math.round},4339(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2045);function o(e){return Object.assign({},(0,r.A)(),e)}},6717(e,t,n){"use strict";function r(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}n.d(t,{A:()=>r})},4358(e,t,n){"use strict";n.d(t,{P:()=>i,u:()=>o});var r=n(9539);function o(e,t,n){return(0,r.T9)(e,(0,r.jk)(t,n))}function i(e,t,n){var r=o(e,t,n);return r>n?n:r}},6719(e,t,n){"use strict";n.d(t,{CC:()=>k,Jp:()=>O,Xf:()=>I});var r=n(5506),o=n(6217),i=n(6720),s=n(3959),a=n(3563);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
1finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var f='[data-bs-toggle="popover"]',h="[data-bs-tooltip]",p="toast",g="[data-toast-message]",m="[data-toast-icon]",b="select, [data-tom-select]",v=".sequence textarea",_="[data-protocol-grid]",y=".dateinput",E=".isodatetimeinput",w=".coding-sequence-form #id_start",A=".coding-sequence-form #id_end",x=".dropzone",S="[data-insights-url]",C="form[data-selection-field]",T='[autocomplete~="address-line1"]';function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{popover:!0,tooltip:!0};t.popover&&(document.querySelectorAll(".popover.show").forEach(function(e){return e.remove()}),c(document.querySelectorAll(f)).map(function(e){return new r.AM(e)}));t.tooltip&&c([].slice.call(e.querySelectorAll(h))).map(function(e){return new r.m_(e)})}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=document.getElementById(p).content.cloneNode(!0),i=o.querySelector(g),s=o.querySelector(m);s.classList.add({0:"text-success",1:"text-warning",2:"text-danger"}[n]),s.textContent={0:"check_circle",1:"warning",2:"error"}[n],i.innerHTML=t,e.appendChild(o),new r.y8(e.lastElementChild).show()}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=e.querySelector(w),r=e.querySelector(A);t&&r&&(0,i.O4)(t,r),(0,o.Z)(e),e.querySelectorAll(b).forEach(function(e){var t=e.querySelectorAll("option").length;!e.autocomplete&&(e.multiple||t>10||e.dataset.tomSelect||e.dataset.tomSelectUrl)&&(0,a.T)(e)}),e.querySelectorAll(y).forEach(function(e){Promise.all([n.e(6414).then(()=>n(6414)),n.e(1888).then(()=>n(1888))]).then(function(t){var n=l(t,2);n[0];n[1].default(e,{altInput:!0,enableTime:!1,altFormat:"F j, Y"})})}),e.querySelectorAll(E).forEach(function(e){Promise.all([n.e(6414).then(()=>n(6414)),n.e(1888).then(()=>n(1888))]).then(function(t){var n=l(t,2);n[0];n[1].default(e,{altInput:!0,enableTime:!0})})}),e.querySelectorAll(_).forEach(function(e){n.e(8627).then(()=>n(8627)).then(function(t){var n=e.dataset.protocolId||"default",r=e.dataset.plateLabels||!1;t.fillPlate(n,e,e.dataset.protocolGrid,r)})});var c=e.querySelector(v);c&&n.e(9206).then(()=>n(9206)).then(function(e){e.default(c)});var u=e.querySelector(x);u&&(0,i.qP)(u);var d=e.querySelector(S);d&&(0,i.QH)(d);var f=e.querySelectorAll(C);(0,s.c)(f);e.querySelector(T)}},6217(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(5506);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n.e(3739).then(()=>n.t(3739,23)).then(function(t){new t.default(".copy-to-clipboard",{text:function(e){if(!e.dataset.clipboardText){var t="",n=e.dataset.clipboardSeparator;document.querySelectorAll('[data-clipboard-source="'.concat(e.id,'"]')).forEach(function(e){var r=e.querySelectorAll("[data-clipboard-content]");r.forEach(function(e,o){t+=e.dataset.clipboardContent,t+=o<r.length-1?n:""}),t+="\r\n"}),e.dataset.clipboardText=t}return e.dataset.clipboardText},container:e||document.body}).on("success",function(e){var t=r.AM.getOrCreateInstance(e.trigger,{content:"Copied!",placement:"top",trigger:"manual"});e.trigger.addEventListener("shown.bs.popover",function(){setTimeout(function(){t&&t._element&&(t.dispose(),t=null)},1e3)}),t.show()})})}},3959(e,t,n){"use strict";n.d(t,{c:()=>h});var r=n(6720);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s="[data-num-selected]",a="[data-select-all]",l="[data-selectable]",c=".card,tr,li",u="[data-selected]",d="[data-hide-selected]",f="[data-clear-selection]";function h(e){e.forEach(function(e){var t=e.dataset.selectionField,n=new Set,i=e.querySelector(s),l=e.querySelector(f),h=o(e.querySelectorAll('input[type="checkbox"][name="'.concat(t,'"]'))),p=e.querySelectorAll(d);p.forEach(function(e){return e.classList.toggle("d-none",n.size>0)});var g=function(t){t.forEach(function(e){var t;null===(t=e.closest(c))||void 0===t||t.classList.toggle("active",e.checked),e.checked?n.add(e.value):n.delete(e.value)}),i&&(i.textContent="".concat(n.size)),l.classList.toggle("d-none",0===n.size),p.forEach(function(e){return e.classList.toggle("d-none",0!==n.size)}),e.querySelectorAll(u).forEach(function(e){return e.disabled=0===n.size})}
1,m=function(){e.querySelectorAll(c).forEach(function(e){return e.classList.remove("active")}),i&&(i.textContent="0"),l&&(l.classList.add("d-none"),p.forEach(function(e){return e.classList.remove("d-none")}),e.querySelectorAll(u).forEach(function(e){return e.disabled=!0}),e.querySelectorAll(a).forEach(function(e){return e.checked=!1}),h.forEach(function(e){return e.checked=!1}),n.clear())};i&&(i.textContent="".concat(n.size)),l&&(l.classList.toggle("d-none",0===n.size),e.querySelectorAll(u).forEach(function(e){return e.disabled=0===n.size})),h.forEach(function(e){var t;e.checked=n.has(e.value.toString()),null===(t=e.closest(c))||void 0===t||t.classList.toggle("active",e.checked),e.addEventListener("change",function(){return g([e])})}),e.querySelectorAll(a).forEach(function(e){e.addEventListener("click",function(){h.forEach(function(t){return t.checked=e.checked}),g(h)})}),e.querySelectorAll('button[type="reset"], button[hx-post]').forEach(function(e){e.addEventListener("click",function(){return m()})}),(0,r.KT)("click",f,function(){return m()})})}(0,r.KT)("change",l,function(e,t){var n,r,o;"radio"===t.type&&(null===(o=t.form)||void 0===o||o.querySelectorAll(c).forEach(function(e){return e.classList.remove("active")}));null===(n=t.closest(c))||void 0===n||n.classList.toggle("active",t.checked),null!==(r=t.form)&&void 0!==r&&r.dataset.selectionField||t.form.querySelectorAll(u).forEach(function(e){return e.disabled=!t.checked})})},3689(e,t,n){"use strict";function r(e,t,n,r,o,i){var s=new Date;s.setHours(s.getHours()+24*("number"!=typeof n?365:n)),document.cookie=e+"="+t+";expires="+s.toUTCString()+";path="+(o||"/")+(r?";domain="+r:"")+(i?";secure":"")}n.d(t,{T:()=>r})},4136(){"use strict";new Intl.NumberFormat("en",{style:"currency",currency:"EUR",minimumFractionDigits:2})},6644(e,t,n){"use strict";n.d(t,{q:()=>h});n(6720);var r=n(2464);function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function a(n,r,o,s){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return i(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,a=e,f.n=n,l}};function h(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],h=f.p,p=i[2];n>3?(o=p===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,a=p;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,a)):f.n=a:f.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,s),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(i(t={},r,function(){return this}),t),h=d.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,i(h,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,s,"GeneratorFunction"),i(h),i(h,s,"Generator"),i(h,r,function(){return this}),i(h,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:p}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function s(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},i(e,t,n,r)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
1finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){l(i,r,o,s,a,"next",e)}function a(e){l(i,r,o,s,a,"throw",e)}s(void 0)})}}function u(e){return d.apply(this,arguments)}function d(){return(d=c(o().m(function e(t){var n,r,i,s;return o().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.arrayBuffer();case 1:return n=e.v,e.n=2,crypto.subtle.digest("SHA-256",n);case 2:return r=e.v,i=Array.from(new Uint8Array(r)),s=i.map(function(e){return e.toString(16).padStart(2,"0")}).join(""),e.a(2,s)}},e)}))).apply(this,arguments)}function f(e){e.preventDefault()}function h(e){Promise.all([n.e(7201).then(()=>n(7201)),n.e(5995).then(()=>n(5995))]).then(function(t){var n,i=s(t,2),a=(i[0],i[1]),l=document.getElementById("modal"),d=e.querySelector('[type="submit"]');new a.Dropzone(e,{paramName:function(e){return"upload"},url:e.action||window.location.href,uploadMultiple:!1,autoProcessQueue:!1,addRemoveLinks:!0,parallelUploads:10,maxFiles:10,maxFilesize:256,chunking:!0,forceChunking:!0,headers:{"X-CSRFTOKEN":r.G},init:function(){var t=this;e.addEventListener("submit",function(e){e.preventDefault(),t.getQueuedFiles().length>0&&(window.addEventListener("beforeunload",f),l.addEventListener("hide.bs.modal",f),d.disabled=!0,t.processQueue(),t.on("success",function(e){l.addEventListener("hidden.bs.modal",function(){return window.location.reload()})}),t.on("queuecomplete",function(){window.removeEventListener("beforeunload",f),l.removeEventListener("hide.bs.modal",f),d.disabled=!1}))})},params:function(e,t,n){if(n)return{upload_id:n.file.upload.uuid,chunk_index:n.index,total_chunks:n.file.upload.totalChunkCount}},chunksUploaded:(n=c(o().m(function e(t,n){var i,s,a,l;return o().w(function(e){for(;;)switch(e.n){case 0:return(i=new XMLHttpRequest).open("POST","/api/files/"+t.upload.uuid+"/complete/",!0),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("X-CSRFToken",r.G),s=i,a=JSON,e.n=1,u(t);case 1:l=e.v,s.send.call(s,a.stringify.call(a,{checksum:l})),n();case 2:return e.a(2)}},e)})),function(e,t){return n.apply(this,arguments)}),previewsContainer:".previews"})})}},6889(e,t,n){"use strict";function r(e,t){var n=parseInt(e.max),r=parseInt(e.value),o=parseInt(t.value);o<r&&(o+=n);var i=(o-r+1)%3==0;return e.classList.toggle("is-invalid",!i),e.classList.toggle("is-valid",i),t.classList.toggle("is-invalid",!i),t.classList.toggle("is-valid",i),i}n.d(t,{O:()=>r})},8962(e,t,n){"use strict";var r=n(5954),o=n(6719);window.htmx=r.A,r.A.defineExtension("ajax-header",{onEvent:function(e,t){"htmx:configRequest"===e&&(t.detail.headers["X-Requested-With"]="XMLHttpRequest")}}),["htmx:afterSettle","htmx:wsAfterMessage"].forEach(function(e){r.A.on(e,function(e){(0,o.Jp)(e.target),(0,o.Xf)(e.target)})}),r.A.on("htmx:configRequest",function(e){if(/\/:([A-Za-z0-9_]+)/g.test(e.detail.path)){var t=e.detail.path.replace(/:([A-Za-z0-9_]+)/g,function(t,n){var r=e.detail.parameters[n];return delete e.detail.parameters[n],r});e.detail.path=t.replaceAll("//","/")}}),r.A.on("htmx:afterSettle",function(e){void 0!==window.djdt&&e.target instanceof HTMLBodyElement&&djdt.show_toolbar()})},6720(e,t,n){"use strict";n.d(t,{KT:()=>r.K,O4:()=>s.O,QH:()=>a.Q,TV:()=>o.T,qP:()=>i.q});var r=n(6880),o=(n(4136),n(3689)),i=n(6644),s=n(6889),a=n(3662)},3662(e,t,n){"use strict";function r(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function a(n,r,i,s){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return o(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,a=e,f.n=n,l}};function h(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],h=f.p,p=i[2];n>3?(o=p===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,a=p;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,a)):f.n=a:f.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,i,s),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][i]?t(t([][i]())):(o(t={},i,function(){return this}),t),h=d.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,o(h,"constructor",d),o(d,"constructor",u),u.displayName="GeneratorFunction",o(d,s,"GeneratorFunction"),o(h),o(h,s,"Generator"),o(h,i,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:a,m:p}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function s(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},o(e,t,n,r)}function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return c.apply(this,arguments)}function c(){var e;return e=r().m(function e(t){var o,s,a;return r().w(function(e){for(;;)switch(e.n){case 0:return o=t.dataset.insightsUrl,e.n=1,fetch(o,{method:"GET",headers:{"Content-Type":"application/json"}});case 1:return s=e.v,e.n=2,s.json();case 2:a=e.v,n.e(1623).then(()=>n(1623)).then(function(e){var n;(n=e.Chart).register.apply(n,i(e.registerables));var r=function(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"bar";new e.Chart(t,{type:i,data:{labels:n.labels,datasets:[{data:n.values,label:o,backgroundColor:"#a8eae5",borderColor:"#a8eae5"}]},options:{plugins:{title:{display:!0,text:r}},responsive:!0,interaction:{intersect:!1}}})};new e.Chart(t.querySelector("#nodeChartContext"),{type:"bar",data:{labels:a.node_dist.labels,datasets:[{data:a.node_dist.sources,label:"Sources",backgroundColor:"#a8eae5"},{data:a.node_dist.targets,label:"Targets",backgroundColor:"#30c9bc"}]},options:{plugins:{title:{display:!0,text:"Sources/targets distribution along sequence"}},responsive:!0,interaction:{intersect:!1},scales:{x:{stacked:!0,ticks:{precision:2}},y:{beginAtZero:!0,stacked:!0}}}}),r(t.querySelector("#tmChartContext"),a.tm_dist,"Tm distribution","Tm"),r(t.querySelector("#gcChartContext"),a.gc_dist,"GC distribution","GC"),r(t.querySelector("#deltaGChartContext"),a.delta_g_dist,"Delta G distribution","Delta G")});case 3:return e.a(2)}},e)}),c=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)})},c.apply(this,arguments)}n.d(t,{Q:()=>l})},6880(e,t,n){"use strict";function r(e,t,n){document.addEventListener(e,function(e){var r=e.target.closest(t);r&&n(e,r)})}n.d(t,{K:()=>r})},2464(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function a(n,r,o,s){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return i(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,a=e,f.n=n,l}};function h(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],h=f.p,p=i[2];n>3?(o=p===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,f.v=r,f.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,f.n=p,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,a=p;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,a)):f.n=a:f.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?a:n.call(r,f))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,s),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(i(t={},r,function(){return this}),t),h=d.prototype=c.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return u.prototype=d,i(h,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,s,"GeneratorFunction"),i(h),i(h,s,"Generator"),i(h,r,function(){return this}),i(h,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:p}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function s(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},i(e,t,n,r)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}n.d(t,{G:()=>d,f:()=>f});var u=document.querySelector("[name=csrf-token]"),d=u?u.content:null,f=function(){var e,t=(e=o().m(function e(t,n){var r,i,s;return o().w(function(e){for(;;)switch(e.n){case 0:return r=a({headers:{"X-CSRFTOKEN":d,"Content-Type":"application/json"}},n),e.n=1,fetch("/api".concat(t),r);case 1:if(i=e.v,!(s=i.headers.get("content-type"))||!s.includes("application/json")){e.n=3;break}return e.n=2,i.json();case 2:case 4:return e.a(2,e.v);case 3:return e.n=4,i.text()}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){c(i,r,o,s,a,"next",e)}function a(e){c(i,r,o,s,a,"throw",e)}s(void 0)})});return function(e,n){return t.apply(this,arguments)}}()},3563(e,t,n){"use strict";n.d(t,{T:()=>o});var r={tags:{option:function(e,t){return'<div class="d-flex p-2"><button class="btn '.concat(e.value,' btn-sm rounded-4 px-3">').concat(t(e.text),"</button></div>")},item:function(e,t){return'<div class="d-flex"><button class="btn '.concat(e.value,' btn-sm rounded-4 px-3">').concat(t(e.text),"</button></div>")}},users:{option:function(e,t){return'<div class="d-flex flex-column">\n <p class="mb-1"><span class="opacity-50">ID: </span>'.concat(e.friendly_id,'</p>\n <p class="mb-1"><span class="opacity-50">EmaiL: </span>').concat(e.email,'</p>\n <p class="m-0"><span class="opacity-50">Name: </span>').concat(t(e.first_name)," ").concat(t(e.last_name),"</p>\n </div>")}}};function o(e){n.e(2621).then(()=>n(2621)).then(function(t){var n={createOnBlur:void 0!==e.dataset.tomSelectCreate,create:void 0!==e.dataset.tomSelectCreate,addPrecedence:void 0!==e.dataset.tomSelectAddPrecedence};if(e.multiple&&(n.plugins=["remove_button"],n.maxItems=void 0!==e.dataset.tomSelectMaxItems?e.dataset.tomSelectMaxItems:null),e.dataset.tomSelectUrl){var o=new URL(e.dataset.tomSelectUrl,window.location.origin);n.valueField=e.dataset.tomSelectValueField||"pk",n.labelField=e.dataset.tomSelectLabelField||"name",n.searchField=e.dataset.tomSelectLabelField,n.load=function(e,t){o.searchParams.set("q",e),fetch(o.toString()).then(function(e){return e.json()}).then(function(e){t(e.results)}).catch(function(){t()})}}e.dataset.tomSelectRender&&(n.render=r[e.dataset.tomSelectRender]),new t.default(e,n)})}},4392(e,t,n){"use strict";n(3382),n(8962);var r=n(5954);!function(){var e;function t(t){return null!=e.getInternalData(t).webSocket}function n(t){if(!e.bodyContains(t)){var n=e.getInternalData(t);return n.webSocket&&n.webSocket.close(),!0}return!1}function o(e){var t=new WebSocket(e,[]);return t.binaryType=r.A.config.wsBinaryType,t}function i(t,n){var r=[];return(e.hasAttribute(t,n)||e.hasAttribute(t,"hx-ws"))&&r.push(t),t.querySelectorAll("["+n+"], [data-"+n+"], [data-hx-ws], [hx-ws]").forEach(function(e){r.push(e)}),r}function s(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n])}r.A.defineExtension("ws",{init:function(t){e=t,r.A.createWebSocket||(r.A.createWebSocket=o),r.A.config.wsReconnectDelay||(r.A.config.wsReconnectDelay="full-jitter")},onEvent:function(o,a){var l=a.target||a.detail.elt;switch(o){case"htmx:beforeCleanupElement":var c=e.getInternalData(l);return void(c.webSocket&&c.webSocket.close());case"htmx:beforeProcessNode":s(i(l,"ws-connect"),function(t){!function(t){if(!e.bodyContains(t))return;var o=e.getAttributeValue(t,"ws-connect");
1if(null==o||""===o){var i=function(t){var n=e.getAttributeValue(t,"hx-ws");if(n)for(var r=n.trim().split(/\s+/),o=0;o<r.length;o++){var i=r[o].split(/:(.+)/);if("connect"===i[0])return i[1]}}(t);if(null==i)return;o=i}if(0===o.indexOf("/")){var s=location.hostname+(location.port?":"+location.port:"");"https:"===location.protocol?o="wss://"+s+o:"http:"===location.protocol&&(o="ws://"+s+o)}var a=function(t,o){var i={socket:null,messageQueue:[],retryCount:0,events:{},addEventListener:function(e,t){this.socket&&this.socket.addEventListener(e,t),this.events[e]||(this.events[e]=[]),this.events[e].push(t)},sendImmediately:function(t,n){this.socket||e.triggerErrorEvent(),n&&!e.triggerEvent(n,"htmx:wsBeforeSend",{message:t,socketWrapper:this.publicInterface})||(this.socket.send(t),n&&e.triggerEvent(n,"htmx:wsAfterSend",{message:t,socketWrapper:this.publicInterface}))},send:function(e,t){this.socket.readyState!==this.socket.OPEN?this.messageQueue.push({message:e,sendElt:t}):this.sendImmediately(e,t)},handleQueuedMessages:function(){for(;this.messageQueue.length>0;){var e=this.messageQueue[0];if(this.socket.readyState!==this.socket.OPEN)break;this.sendImmediately(e.message,e.sendElt),this.messageQueue.shift()}},init:function(){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.close();var s=o();e.triggerEvent(t,"htmx:wsConnecting",{event:{type:"connecting"}}),this.socket=s,s.onopen=function(n){i.retryCount=0,e.triggerEvent(t,"htmx:wsOpen",{event:n,socketWrapper:i.publicInterface}),i.handleQueuedMessages()},s.onclose=function(o){if(!n(t)&&[1006,1011,1012,1013].indexOf(o.code)>=0){var s=function(e){var t=r.A.config.wsReconnectDelay;if("function"==typeof t)return t(e);if("full-jitter"===t){var n=Math.min(e,6);return 1e3*Math.pow(2,n)*Math.random()}logError('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}(i.retryCount);setTimeout(function(){i.retryCount+=1,i.init()},s)}e.triggerEvent(t,"htmx:wsClose",{event:o,socketWrapper:i.publicInterface})},s.onerror=function(r){e.triggerErrorEvent(t,"htmx:wsError",{error:r,socketWrapper:i}),n(t)};var a=this.events;Object.keys(a).forEach(function(e){a[e].forEach(function(t){s.addEventListener(e,t)})})},close:function(){this.socket.close()}};return i.init(),i.publicInterface={send:i.send.bind(i),sendImmediately:i.sendImmediately.bind(i),reconnect:i.init.bind(i),queue:i.messageQueue},i}(t,function(){return r.A.createWebSocket(o)});a.addEventListener("message",function(r){if(!n(t)){var o=r.data;if(e.triggerEvent(t,"htmx:wsBeforeMessage",{message:o,socketWrapper:a.publicInterface})){e.withExtensions(t,function(e){o=e.transformResponse(o,null,t)});var i=e.makeSettleInfo(t),s=e.makeFragment(o);if(s.children.length)for(var l=Array.from(s.children),c=0;c<l.length;c++)e.oobSwap(e.getAttributeValue(l[c],"hx-swap-oob")||"true",l[c],i);e.settleImmediately(i.tasks),e.triggerEvent(t,"htmx:wsAfterMessage",{message:o,socketWrapper:a.publicInterface})}}}),e.getInternalData(t).webSocket=a}(t)}),s(i(l,"ws-send"),function(r){!function(r){var o=e.getAttributeValue(r,"hx-ws");if(o&&"send"!==o)return;i=e.getClosestMatch(r,t),s=r,a=e.getInternalData(s),e.getTriggerSpecs(s).forEach(function(t){e.addTriggerHandler(s,t,a,function(t,r){if(!n(i)){var o=e.getInternalData(i).webSocket,a=e.getHeaders(s,e.getTarget(s)),l=e.getInputValues(s,"post"),c=l.errors,u=Object.assign({},l.values),d=e.getExpressionVars(s),f=e.mergeObjects(u,d),h={parameters:e.filterValues(f,s),unfilteredParameters:f,headers:a,errors:c,triggeringEvent:r,messageBody:void 0,socketWrapper:o.publicInterface};if(e.triggerEvent(t,"htmx:wsConfigSend",h))if(c&&c.length>0)e.triggerEvent(t,"htmx:validation:halted",c);else{var p=h.messageBody;if(void 0===p){var g=Object.assign({},h.parameters);h.headers&&(g.HEADERS=a),p=JSON.stringify(g)}o.send(p,t),r&&e.shouldCancel(r,t)&&r.preventDefault()}}})});var i,s,a}(r)})}}})}();var o=n(6719);document.addEventListener("DOMContentLoaded",function(){(0,o.Xf)(),(0,o.Jp)()})},5506(e,t,n){"use strict";n.d(t,{AM:()=>Xn,aF:()=>nn,m_:()=>Bn,oz:()=>Tr,y8:()=>Br});var r=n(2982),o=n(6833),i={};n.r(i),n.d(i,{afterMain:()=>r.EP,afterRead:()=>r.v5,afterWrite:()=>r.SE,applyStyles:()=>r.ZM,arrow:()=>r.UE,auto:()=>r.qZ,basePlacements:()=>r.OM,beforeMain:()=>r.LG,beforeRead:()=>r.ci,beforeWrite:()=>r.pA,bottom:()=>r.sQ,clippingParents:()=>r.WY,computeStyles:()=>r.KC,createPopper:()=>r.createPopper,createPopperBase:()=>r.eR,createPopperLite:()=>r.Ls,detectOverflow:()=>r.__,end:()=>r._N,eventListeners:()=>r.Gc,flip:()=>r.UU,hide:()=>r.jD,left:()=>r.kb,main:()=>r.iW,modifierPhases:()=>r.GM,offset:()=>r.cY,placements:()=>r.DD,popper:()=>r.xf,popperGenerator:()=>r.UD,popperOffsets:()=>r.Zo,preventOverflow:()=>r.V7,read:()=>r.LF,reference:()=>r.ir,right:()=>r.pG,start:()=>r.ni,top:()=>r.Mn,variationPlacements:()=>r.Ol,viewport:()=>r.R9,write:()=>r.M9});const s=new Map,a={set(e,t,n){s.has(e)||s.set(e,new Map);const r=s.get(e);(r.has(t)||0===r.size)&&r.set(t,n)},get:(e,t)=>s.has(e)&&s.get(e).get(t)||null,remove(e,t){if(!s.has(e))return;const n=s.get(e);n.delete(t),0===n.size&&s.delete(e)}},l="transitionend",c=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),u=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),d=e=>{e.dispatchEvent(new Event(l))},f=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),h=e=>f(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(c(e)):null,p=e=>{if(!f(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},g=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),m=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?m(e.parentNode):null},b=()=>{},v=e=>{e.offsetHeight},_=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,y=[],E=()=>
vendor: 1,057 bytes, line 1
1"rtl"===document.documentElement.dir,w=e=>{var t;t=()=>{const t=_();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)}},"loading"===document.readyState?(y.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of y)e()}),y.push(t)):t()},A=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,x=(e,t,n=!0)=>{if(!n)return void A(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),o=Number.parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let o=!1;const i=({target:n})=>{n===t&&(o=!0,t.removeEventListener(l,i),A(e))};t.addEventListener(l,i),setTimeout(()=>{o||d(t)},r)},S=(e,t,n,r)=>{const o=e.length;let i=e.indexOf(t);return-1===i?!n&&r?e[o-1]:e[0]:(i+=n?1:-1,r&&(i=(i+o)%o),e[Math.max(0,Math.min(i,o-1))])},C=/[^.]*(?=\..*)\.|.*/,T=/\..*/,O=/::\d+$/,k={};let I=1;const D={mouseenter:"mouseover",mouseleave:"mou
1seout"},L=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 N(e,t){return t&&`${t}::${I++}`||e.uidEvent||I++}function P(e){const t=N(e);return e.uidEvent=t,k[t]=k[t]||{},k[t]}function H(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function R(e,t,n){const r="string"==typeof t,o=r?n:t||n;let i=F(e);return L.has(i)||(i=e),[r,o,i]}function q(e,t,n,r,o){if("string"!=typeof t||!e)return;let[i,s,a]=R(t,n,r);if(t in D){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=P(e),c=l[a]||(l[a]={}),u=H(c,s,i?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const d=N(s,t.replace(C,"")),f=i?function(e,t,n){return function r(o){const i=e.querySelectorAll(t);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return B(o,{delegateTarget:s}),r.oneOff&&$.off(e,o.type,t,n),n.apply(s,[o])}}(e,n,s):function(e,t){return function n(r){return B(r,{delegateTarget:e}),n.oneOff&&$.off(e,r.type,t),t.apply(e,[r])}}(e,s);f.delegationSelector=i?n:null,f.callable=s,f.oneOff=o,f.uidEvent=d,c[d]=f,e.addEventListener(a,f,i)}function M(e,t,n,r,o){const i=H(t[n],r,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function j(e,t,n,r){const o=t[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&M(e,t,n,s.callable,s.delegationSelector)}function F(e){return e=e.replace(T,""),D[e]||e}const $={on(e,t,n,r){q(e,t,n,r,!1)},one(e,t,n,r){q(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[o,i,s]=R(t,n,r),a=s!==t,l=P(e),c=l[s]||{},u=t.startsWith(".");if(void 0===i){if(u)for(const n of Object.keys(l))j(e,l,n,t.slice(1));for(const[n,r]of Object.entries(c)){const o=n.replace(O,"");a&&!t.includes(o)||M(e,l,s,r.callable,r.delegationSelector)}}else{if(!Object.keys(c).length)return;M(e,l,s,i,o?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const r=_();let o=null,i=!0,s=!0,a=!1;t!==F(t)&&r&&(o=r.Event(t,n),r(e).trigger(o),i=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=B(new Event(t,{bubbles:i,cancelable:!0}),n);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function B(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>r})}return e}function V(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function W(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const z={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${W(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${W(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=V(e.dataset[r])}return t},getDataAttribute:(e,t)=>V(e.getAttribute(`data-bs-${W(t)}`))};class U{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=f(t)?z.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...f(t)?z.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,r]of Object.entries(t)){const t=e[
vendor: 6,856 bytes, line 1
1n],o=f(t)?"element":u(t);if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${r}".`)}}}class X extends U{constructor(e,t){super(),(e=h(e))&&(this._element=e,this._config=this._getConfig(t),a.set(this._element,this.constructor.DATA_KEY,this))}dispose(){a.remove(this._element,this.constructor.DATA_KEY),$.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){x(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return a.get(h(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const G=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(e=>c(e)).join(","):null},Q={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.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(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!g(e)&&p(e))},getSelectorFromElement(e){const t=G(e);return t&&Q.findOne(t)?t:null},getElementFromSelector(e){const t=G(e);return t?Q.findOne(t):null},getMultipleElementsFromSelector(e){const t=G(e);return t?Q.find(t):[]}},Y=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;$.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),g(this))return;const o=Q.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()})},K=".bs.alert",J=`close${K}`,Z=`closed${K}`;class ee extends X{static get NAME(){return"alert"}close(){if($.trigger(this._element,J).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),$.trigger(this._element,Z),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=ee.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Y(ee,"close"),w(ee);const te='[data-bs-toggle="button"]';class ne extends X{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=ne.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}$.on(document,"click.bs.button.data-api",te,e=>{e.preventDefault();const t=e.target.closest(te);ne.getOrCreateInstance(t).toggle()}),w(ne);const re=".bs.swipe",oe=`touchstart${re}`,ie=`touchmove${re}`,se=`touchend${re}`,ae=`pointerdown${re}`,le=`pointerup${re}`,ce={endCallback:null,leftCallback:null,rightCallback:null},ue={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class de extends U{constructor(e,t){super(),this._element=e,e&&de.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ce}static get DefaultType(){return ue}static get NAME(){return"swipe"}dispose(){$.off(this._element,re)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),A(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&A(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?($.on(this._element,ae,e=>this._start(e)),$.on(this._element,le,e=>this._end(e)),this._element.classList.add("pointer-event")):($.on(this._element,oe,e=>this._start(e)),$.on(this._element,ie,e=>this._move(e)),$.on(this._element,se,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const fe=".bs.carousel",he=".data-api",pe="ArrowLeft",ge="ArrowRight",me="next",be="prev",ve="left",_e="right",ye=`slide${fe}`,Ee=`slid${fe}`,we=`keydown${fe}`,Ae=`mouseenter${fe}`,xe=`mouseleave${fe}`,Se=`dragstart${fe}`,Ce=`load${fe}${he}`,Te=`click${fe}${he}`,Oe="carousel",ke="active",Ie=".active",De=".carousel-item",Le=Ie+De,Ne={[pe]:_e,[ge]:ve},Pe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},He={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Re extends X{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Q.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Oe&&this.cycle()}static get Default(){return Pe}static get DefaultType(){return He}static get NAME(){return"carousel"}next(){this._slide(me)}nextWhenVisible(){!document.hidden&&p(this._element)&&this.next()}prev(){this._slide(be)}pause(){this._isSliding&&d(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?$.one(this._element,Ee,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void $.one(this._element,Ee,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?me:be;this._slide(r,t[e])}
vendor: 8,454 bytes, line 1
1dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&$.on(this._element,we,e=>this._keydown(e)),"hover"===this._config.pause&&($.on(this._element,Ae,()=>this.pause()),$.on(this._element,xe,()=>this._maybeEnableCycle())),this._config.touch&&de.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Q.find(".carousel-item img",this._element))$.on(e,Se,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(ve)),rightCallback:()=>this._slide(this._directionToOrder(_e)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new de(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Ne[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Q.findOne(Ie,this._indicatorsElement);t.classList.remove(ke),t.removeAttribute("aria-current");const n=Q.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ke),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),r=e===me,o=t||S(this._getItems(),n,r,this._config.wrap);if(o===n)return;const i=this._getItemIndex(o),s=t=>$.trigger(this._element,t,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:i});if(s(ye).defaultPrevented)return;if(!n||!o)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=o;const l=r?"carousel-item-start":"carousel-item-end",c=r?"carousel-item-next":"carousel-item-prev";o.classList.add(c),v(o),n.classList.add(l),o.classList.add(l);this._queueCallback(()=>{o.classList.remove(l,c),o.classList.add(ke),n.classList.remove(ke,c,l),this._isSliding=!1,s(Ee)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Q.findOne(Le,this._element)}_getItems(){return Q.find(De,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return E()?e===ve?be:me:e===ve?me:be}_orderToDirection(e){return E()?e===be?ve:_e:e===be?_e:ve}static jQueryInterface(e){return this.each(function(){const t=Re.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}$.on(document,Te,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=Q.getElementFromSelector(this);if(!t||!t.classList.contains(Oe))return;e.preventDefault();const n=Re.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(n.to(r),void n._maybeEnableCycle()):"next"===z.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),$.on(window,Ce,()=>{const e=Q.find('[data-bs-ride="carousel"]');for(const t of e)Re.getOrCreateInstance(t)}),w(Re);const qe=".bs.collapse",Me=`show${qe}`,je=`shown${qe}`,Fe=`hide${qe}`,$e=`hidden${qe}`,Be=`click${qe}.data-api`,Ve="show",We="collapse",ze="collapsing",Ue=`:scope .${We} .${We}`,Xe='[data-bs-toggle="collapse"]',Ge={parent:null,toggle:!0},Qe={parent:"(null|element)",toggle:"boolean"};class Ye extends X{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Q.find(Xe);for(const e of n){const t=Q.getSelectorFromElement(e),n=Q.find(t).filter(e=>e===this._element);null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ge}static get DefaultType(){return Qe}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>Ye.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if($.trigger(this._element,Me).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(We),this._element.classList.add(ze),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ze),this._element.classList.add(We,Ve),this._element.style[t]="",$.trigger(this._element,je)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if($.trigger(this._element,Fe).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,v(this._element),this._element.classList.add(ze),this._element.classList.remove(We,Ve);for(const e of this._triggerArray){const t=Q.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ze),this._element.classList.add(We),$.trigger(this._element,$e)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ve)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=h(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Xe);for(const t of e){const e=Q.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Q.find(Ue,this._config.parent);return Q.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=Ye.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}$.on(document,Be,Xe,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Q.getMultipleElementsFromSelector(this))Ye.getOrCreateInstance(e,{toggle:!1}).toggle()}),w(Ye);const Ke="dropdown",Je=".bs.dropdown",Ze=".data-api",et="ArrowUp",tt="ArrowDown",nt=`hide${Je}`,rt=`hidden${Je}`,ot=`show${Je}`,it=`shown${Je}`,st=`click${Je}${Ze}`,at=`keydown${Je}${Ze}`,lt=`keyup${Je}${Ze}`,ct="show",ut='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',dt=`${ut}.${ct}`,ft=".dropdown-menu",ht=E()?"top-end":"top-start",pt=E()?"top-start":"top-end",gt=E()?"bottom-end":"bottom-start",mt=E()?"bottom-start":"bottom-end",bt=E()?"left-start":"right-start",vt=E()?"right-start":"left-start",_t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},yt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Et extends X{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Q.next(this._element,ft)[0]||Q.prev(this._element,ft)[0]||Q.findOne(ft,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return _t}static get DefaultType(){return yt}static get NAME(){return Ke}toggle(){return this._isShown()?this.hide():this.show()}show(){if(g(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!$.trigger(this._element,ot,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
1navbar-nav"))for(const e of[].concat(...document.body.children))$.on(e,"mouseover",b);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ct),this._element.classList.add(ct),$.trigger(this._element,it,e)}}hide(){if(g(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!$.trigger(this._element,nt,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))$.off(e,"mouseover",b);this._popper&&this._popper.destroy(),this._menu.classList.remove(ct),this._element.classList.remove(ct),this._element.setAttribute("aria-expanded","false"),z.removeDataAttribute(this._menu,"popper"),$.trigger(this._element,rt,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!f(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ke.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:f(this._config.reference)?e=h(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=o.n(e,this._menu,t)}_isShown(){return this._menu.classList.contains(ct)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return bt;if(e.classList.contains("dropstart"))return vt;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?pt:ht:t?mt:gt}
vendor: 5,389 bytes, line 1
1_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(z.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...A(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=Q.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>p(e));n.length&&S(n,t,e===tt,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Et.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Q.find(dt);for(const n of t){const t=Et.getInstance(n);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),o=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!o||"outside"===t._config.autoClose&&o)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,r=[et,tt].includes(e.key);if(!r&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(ut)?this:Q.prev(this,ut)[0]||Q.next(this,ut)[0]||Q.findOne(ut,e.delegateTarget.parentNode),i=Et.getOrCreateInstance(o);if(r)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),o.focus())}}$.on(document,at,ut,Et.dataApiKeydownHandler),$.on(document,at,ft,Et.dataApiKeydownHandler),$.on(document,st,Et.clearMenus),$.on(document,lt,Et.clearMenus),$.on(document,st,ut,function(e){e.preventDefault(),Et.getOrCreateInstance(this).toggle()}),w(Et);const wt="backdrop",At="show",xt=`mousedown.bs.${wt}`,St={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ct={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Tt extends U{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return St}static get DefaultType(){return Ct}static get NAME(){return wt}show(e){if(!this._config.isVisible)return void A(e);this._append();const t=this._getElement();this._config.isAnimated&&v(t),t.classList.add(At),this._emulateAnimation(()=>{A(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(At),this._emulateAnimation(()=>{this.dispose(),A(e)})):A(e)}dispose(){this._isAppended&&($.off(this._element,xt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=h(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),$.on(e,xt,()=>{A(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){x(e,this._getElement(),this._config.isAnimated)}}const Ot=".bs.focustrap",kt=`focusin${Ot}`,It=`keydown.tab${Ot}`,Dt="backward",Lt={autofocus:!0,trapElement:null},Nt={autofocus:"boolean",trapElement:"element"};class Pt extends U{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Lt}static get DefaultType(){return Nt}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),$.off(document,Ot),$.on(document,kt,e=>this._handleFocusin(e)),$.on(document,It,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,$.off(document,Ot))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=Q.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Dt?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Dt:"forward")}}const Ht=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rt=".sticky-top",qt="padding-right",Mt="margin-right";class jt{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,qt,t=>t+e),this._setElementAttributes(Ht,qt,t=>t+e),this._setElementAttributes(Rt,Mt,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,qt),this._resetElementAttributes(Ht,qt),this._resetElementAttributes(Rt,Mt)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}
vendor: 9,464 bytes, line 1
1_setElementAttributes(e,t,n){const r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const o=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(o))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&z.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=z.getDataAttribute(e,t);null!==n?(z.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(f(e))t(e);else for(const n of Q.find(e,this._element))t(n)}}const Ft=".bs.modal",$t=`hide${Ft}`,Bt=`hidePrevented${Ft}`,Vt=`hidden${Ft}`,Wt=`show${Ft}`,zt=`shown${Ft}`,Ut=`resize${Ft}`,Xt=`click.dismiss${Ft}`,Gt=`mousedown.dismiss${Ft}`,Qt=`keydown.dismiss${Ft}`,Yt=`click${Ft}.data-api`,Kt="modal-open",Jt="show",Zt="modal-static",en={backdrop:!0,focus:!0,keyboard:!0},tn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class nn extends X{constructor(e,t){super(e,t),this._dialog=Q.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new jt,this._addEventListeners()}static get Default(){return en}static get DefaultType(){return tn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;$.trigger(this._element,Wt,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Kt),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning)return;$.trigger(this._element,$t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Jt),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){$.off(window,Ft),$.off(this._dialog,Ft),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Tt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Pt({trapElement:this._element})}_showElement(e){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 t=Q.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),v(this._element),this._element.classList.add(Jt);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,$.trigger(this._element,zt,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){$.on(this._element,Qt,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),$.on(window,Ut,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),$.on(this._element,Gt,e=>{$.one(this._element,Xt,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(Kt),this._resetAdjustments(),this._scrollBar.reset(),$.trigger(this._element,Vt)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if($.trigger(this._element,Bt).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Zt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Zt),this._queueCallback(()=>{this._element.classList.remove(Zt),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=E()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=E()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=nn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}$.on(document,Yt,'[data-bs-toggle="modal"]',function(e){const t=Q.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),$.one(t,Wt,e=>{e.defaultPrevented||$.one(t,Vt,()=>{p(this)&&this.focus()})});const n=Q.findOne(".modal.show");n&&nn.getInstance(n).hide();nn.getOrCreateInstance(t).toggle(this)}),Y(nn),w(nn);const rn=".bs.offcanvas",on=".data-api",sn=`load${rn}${on}`,an="show",ln="showing",cn="hiding",un=".offcanvas.show",dn=`show${rn}`,fn=`shown${rn}`,hn=`hide${rn}`,pn=`hidePrevented${rn}`,gn=`hidden${rn}`,mn=`resize${rn}`,bn=`click${rn}${on}`,vn=`keydown.dismiss${rn}`,_n={backdrop:!0,keyboard:!0,scroll:!1},yn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class En extends X{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return _n}static get DefaultType(){return yn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if($.trigger(this._element,dn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new jt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ln);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(an),this._element.classList.remove(ln),$.trigger(this._element,fn,{relatedTarget:e})},this._element,!0)}hide(){if(!this._isShown)return;if($.trigger(this._element,hn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(cn),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(an,cn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new jt).reset(),$.trigger(this._element,gn)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Tt({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():$.trigger(this._element,pn)}:null})}_initializeFocusTrap(){return new Pt({trapElement:this._element})}_addEventListeners(){$.on(this._element,vn,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():$.trigger(this._element,pn))})}static jQueryInterface(e){return this.each(function(){const t=En.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}$.on(document,bn,'[data-bs-toggle="offcanvas"]',function(e){const t=Q.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),g(this))return;$.one(t,gn,()=>{p(this)&&this.focus()});const n=Q.findOne(un);n&&n!==t&&En.getInstance(n).hide();En.getOrCreateInstance(t).toggle(this)}),$.on(window,sn,()=>{for(const e of Q.find(un))En.getOrCreateInstance(e).show()}),$.on(window,mn,()=>{for(const e of Q.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&En.getOrCreateInstance(e).hide()}),Y(En),w(En);const wn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},An=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),xn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Sn=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!An.has(n)||Boolean(xn.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};const Cn={allowList:wn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Tn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},On={entry:"(string|element|function|null)",selector:"(string|element)"};class kn extends U{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Cn}static get DefaultType(){return Tn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>
vendor: 4,491 bytes, line 1
1this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},On)}_setContent(e,t,n){const r=Q.findOne(n,e);r&&((t=this._resolvePossibleFunction(t))?f(t)?this._putElementInTemplate(h(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),o=[].concat(...r.body.querySelectorAll("*"));for(const e of o){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const r=[].concat(...e.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const t of r)Sn(t,o)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return A(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const In=new Set(["sanitize","allowList","sanitizeFn"]),Dn="fade",Ln="show",Nn=".tooltip-inner",Pn=".modal",Hn="hide.bs.modal",Rn="hover",qn="focus",Mn="click",jn={AUTO:"auto",TOP:"top",RIGHT:E()?"left":"right",BOTTOM:"bottom",LEFT:E()?"right":"left"},Fn={allowList:wn,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:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',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 Bn extends X{constructor(e,t){super(e,t),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 Fn}static get DefaultType(){return $n}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),$.off(this._element.closest(Pn),Hn,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=$.trigger(this._element,this.constructor.eventName("show")),t=(m(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),$.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ln),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))$.on(e,"mouseover",b);this._queueCallback(()=>{$.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}
vendor: 5,472 bytes, line 1
1hide(){if(!this._isShown())return;if($.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ln),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))$.off(e,"mouseover",b);this._activeTrigger[Mn]=!1,this._activeTrigger[qn]=!1,this._activeTrigger[Rn]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),$.trigger(this._element,this.constructor.eventName("hidden")))},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(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Dn,Ln),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Dn),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new kn({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Nn]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Dn)}_isShown(){return this.tip&&this.tip.classList.contains(Ln)}_createPopper(e){const t=A(this._config.placement,[this,e,this._element]),n=jn[t.toUpperCase()];return o.n(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return A(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,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:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...A(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)$.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[Mn]=!(t._isShown()&&t._activeTrigger[Mn]),t.toggle()});else if("manual"!==t){const e=t===Rn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===Rn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");$.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?qn:Rn]=!0,t._enter()}),$.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?qn:Rn]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},$.on(this._element.closest(Pn),Hn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=z.getDataAttributes(this._element);for(const e of Object.keys(t))In.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:h(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Bn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method n
1amed "${e}"`);t[e]()}})}}w(Bn);const Vn=".popover-header",Wn=".popover-body",zn={...Bn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Un={...Bn.DefaultType,content:"(null|string|element|function)"};class Xn extends Bn{static get Default(){return zn}static get DefaultType(){return Un}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Vn]:this._getTitle(),[Wn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Xn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}w(Xn);const Gn=".bs.scrollspy",Qn=`activate${Gn}`,Yn=`click${Gn}`,Kn=`load${Gn}.data-api`,Jn="active",Zn="[href]",er=".nav-link",tr=`${er}, .nav-item > ${er}, .list-group-item`,nr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},rr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class or extends X{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return nr}static get DefaultType(){return rr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=h(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&($.off(this._config.target,Yn),$.on(this._config.target,Yn,Zn,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:r,behavior:"smooth"});n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,o=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&e){if(n(i),!r)return}else o||e||n(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Q.find(Zn,this._config.target);for(const t of e){if(!t.hash||g(t))continue;const e=Q.findOne(decodeURI(t.hash),this._element);p(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Jn),this._activateParents(e),$.trigger(this._element,Qn,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Q.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Jn);else for(const t of Q.parents(e,".nav, .list-group"))for(const e of Q.prev(t,tr))e.classList.add(Jn)}_clearActiveClass(e){e.classList.remove(Jn);const t=Q.find(`${Zn}.${Jn}`,e);for(const e of t)e.classList.remove(Jn)}static jQueryInterface(e){return this.each(function(){const t=or.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
1amed "${e}"`);t[e]()}})}}$.on(window,Kn,()=>{for(const e of Q.find('[data-bs-spy="scroll"]'))or.getOrCreateInstance(e)}),w(or);const ir=".bs.tab",sr=`hide${ir}`,ar=`hidden${ir}`,lr=`show${ir}`,cr=`shown${ir}`,ur=`click${ir}`,dr=`keydown${ir}`,fr=`load${ir}`,hr="ArrowLeft",pr="ArrowRight",gr="ArrowUp",mr="ArrowDown",br="Home",vr="End",_r="active",yr="fade",Er="show",wr=".dropdown-toggle",Ar=`:not(${wr})`,xr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Sr=`${`.nav-link${Ar}, .list-group-item${Ar}, [role="tab"]${Ar}`}, ${xr}`,Cr=`.${_r}[data-bs-toggle="tab"], .${_r}[data-bs-toggle="pill"], .${_r}[data-bs-toggle="list"]`;class Tr extends X{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),$.on(this._element,dr,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?$.trigger(t,sr,{relatedTarget:e}):null;$.trigger(e,lr,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(_r),this._activate(Q.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),$.trigger(e,cr,{relatedTarget:t})):e.classList.add(Er)},e,e.classList.contains(yr))}_deactivate(e,t){if(!e)return;e.classList.remove(_r),e.blur(),this._deactivate(Q.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),$.trigger(e,ar,{relatedTarget:t})):e.classList.remove(Er)},e,e.classList.contains(yr))}_keydown(e){if(![hr,pr,gr,mr,br,vr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!g(e));let n;if([br,vr].includes(e.key))n=t[e.key===br?0:t.length-1];else{const r=[pr,mr].includes(e.key);n=S(t,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),Tr.getOrCreateInstance(n).show())}_getChildren(){return Q.find(Sr,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Q.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const r=(e,r)=>{const o=Q.findOne(e,n);o&&o.classList.toggle(r,t)};r(wr,_r),r(".dropdown-menu",Er),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(_r)}_getInnerElement(e){return e.matches(Sr)?e:Q.findOne(Sr,e)}
1_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=Tr.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}$.on(document,ur,xr,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),g(this)||Tr.getOrCreateInstance(this).show()}),$.on(window,fr,()=>{for(const e of Q.find(Cr))Tr.getOrCreateInstance(e)}),w(Tr);const Or=".bs.toast",kr=`mouseover${Or}`,Ir=`mouseout${Or}`,Dr=`focusin${Or}`,Lr=`focusout${Or}`,Nr=`hide${Or}`,Pr=`hidden${Or}`,Hr=`show${Or}`,Rr=`shown${Or}`,qr="hide",Mr="show",jr="showing",Fr={animation:"boolean",autohide:"boolean",delay:"number"},$r={animation:!0,autohide:!0,delay:5e3};class Br extends X{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return $r}static get DefaultType(){return Fr}static get NAME(){return"toast"}show(){if($.trigger(this._element,Hr).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(qr),v(this._element),this._element.classList.add(Mr,jr),this._queueCallback(()=>{this._element.classList.remove(jr),$.trigger(this._element,Rr),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if($.trigger(this._element,Nr).defaultPrevented)return;this._element.classList.add(jr),this._queueCallback(()=>{this._element.classList.add(qr),this._element.classList.remove(jr,Mr),$.trigger(this._element,Pr)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Mr),super.dispose()}isShown(){return this._element.classList.contains(Mr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){$.on(this._element,kr,e=>this._onInteraction(e,!0)),$.on(this._element,Ir,e=>this._onInteraction(e,!1)),$.on(this._element,Dr,e=>this._onInteraction(e,!0)),$.on(this._element,Lr,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Br.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Y(Br),w(Br)},5954(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var htmx=function(){const htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(e,t){return getInputValues(e,t||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0,historyRestoreAsHxRequest:!0,reportValidityOfForms:!1},parseInterval:null,location,_:null,version:"2.0.8"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;const internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", ");function parseInterval(e){if(null==e)return;let t=NaN;return t="ms"==e.slice(-2)?parseFloat(e.slice(0,-2)):"s"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1)):"m"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1))*60:parseFloat(e),isNaN(t)?void 0:t}function getRawAttribute(e,t){return e instanceof Element&&e.getAttribute(t)}function hasAttribute(e,t){return!!e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function getAttributeValue(e,t){return getRawAttribute(e,t)||getRawAttribute(e,"data-"+t)}function parentElt(e){const t=e.parentElement;return!t&&e.parentNode instanceof ShadowRoot?e.parentNode:t}function getDocument(){return document}function getRootNode(e,t){return e.getRootNode?e.getRootNode({composed:t}):getDocument()}function getClosestMatch(e,t){for(;e&&!t(e);)e=parentElt(e);return e||null}function getAttributeValueWithDisinheritance(e,t,n){const r=getAttributeValue(t,n),o=getAttributeValue(t,"hx-disinherit");var i=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)return i&&("*"===i||i.split(" ").indexOf(n)>=0)?r:null;if(o&&("*"===o||o.split(" ").indexOf(n)>=0))return"unset"}return r}function getClosestAttributeValue(e,t){let n=null;if(getClosestMatch(e,function(r){return!!(n=getAttributeValueWithDisinheritance(e,asElement(r),t))}),"unset"!==n)return n}function matches(e,t){return e instanceof Element&&e.matches(t)}function getStartTag(e){const t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function parseHTML(e){if("parseHTMLUnsafe"in Document)return Document.parseHTMLUnsafe(e);return(new DOMParser).parseFromString(e,"text/html")}function takeChildrenFor(e,t){for(;t.childNodes.length>0;)e.append(t.childNodes[0])}function duplicateScript(e){const t=getDocument().createElement("script");return forEach(e.attributes,function(e){t.setAttribute(e.name,e.value)}),t.textContent=e.textContent,t.async=!1,htmx.config.inlineScriptNonce&&(t.nonce=htmx.config.inlineScriptNonce),t}function isJavaScriptScriptNode(e){return e.matches("script")&&("text/javascript"===e.type||"module"===e.type||""===e.type)}function normalizeScriptTags(e){Array.from(e.querySelectorAll("script")).forEac
1h(e=>{if(isJavaScriptScriptNode(e)){const t=duplicateScript(e),n=e.parentNode;try{n.insertBefore(t,e)}catch(e){logError(e)}finally{e.remove()}}})}function makeFragment(e){const t=e.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i,""),n=getStartTag(t);let r;if("html"===n){r=new DocumentFragment;const t=parseHTML(e);takeChildrenFor(r,t.body),r.title=t.title}else if("body"===n){r=new DocumentFragment;const e=parseHTML(t);takeChildrenFor(r,e.body),r.title=e.title}else{const e=parseHTML('<body><template class="internal-htmx-wrapper">'+t+"</template></body>");r=e.querySelector("template").content,r.title=e.title;var o=r.querySelector("title");o&&o.parentNode===r&&(o.remove(),r.title=o.innerText)}return r&&(htmx.config.allowScriptTags?normalizeScriptTags(r):r.querySelectorAll("script").forEach(e=>e.remove())),r}function maybeCall(e){e&&e()}function isType(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function isFunction(e){return"function"==typeof e}function isRawObject(e){return isType(e,"Object")}function getInternalData(e){const t="htmx-internal-data";let n=e[t];return n||(n=e[t]={}),n}function toArray(e){const t=[];if(e)for(let n=0;n<e.length;n++)t.push(e[n]);return t}function forEach(e,t){if(e)for(let n=0;n<e.length;n++)t(e[n])}function isScrolledIntoView(e){const t=e.getBoundingClientRect(),n=t.top,r=t.bottom;return n<window.innerHeight&&r>=0}function bodyContains(e){return e.getRootNode({composed:!0})===document}function splitOnWhitespace(e){return e.trim().split(/\s+/)}function mergeObjects(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function parseJSON(e){try{return JSON.parse(e)}catch(e){return logError(e),null}}function canAccessLocalStorage(){const e="htmx:sessionStorageTest";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}function normalizePath(e){const t=new URL(e,"http://x");return t&&(e=t.pathname+t.search),"/"!=e&&(e=e.replace(/\/+$/,"")),e}function internalEval(str){return maybeEval(getDocument().body,function(){return eval(str)})}function onLoadHelper(e){return htmx.on("htmx:load",function(t){e(t.detail.elt)})}function logAll(){htmx.logger=function(e,t,n){console}}function logNone(){htmx.logger=null}function find(e,t){return"string"!=typeof e?e.querySelector(t):find(getDocument(),e)}function findAll(e,t){return"string"!=typeof e?e.querySelectorAll(t):findAll(getDocument(),e)}function getWindow(){return window}function removeElement(e,t){e=resolveTarget(e),t?getWindow().setTimeout(function(){removeElement(e),e=null},t):parentElt(e).removeChild(e)}function asElement(e){return e instanceof Element?e:null}function asHtmlElement(e){return e instanceof HTMLElement?e:null}function asString(e){return"string"==typeof e?e:null}function asParentNode(e){return e instanceof Element||e instanceof Document||e instanceof DocumentFragment?e:null}function addClassToElement(e,t,n){(e=asElement(resolveTarget(e)))&&(n?getWindow().setTimeout(function(){addClassToElement(e,t),e=null},n):e.classList&&e.classList.add(t))}function removeClassFromElement(e,t,n){let r=asElement(resolveTarget(e));r&&(n?getWindow().setTimeout(function(){removeClassFromElement(r,t),r=null},n):r.classList&&(r.classList.remove(t),0===r.classList.length&&r.removeAttribute("class")))}function toggleClassOnElement(e,t){(e=resolveTarget(e)).classList.toggle(t)}function takeClassForElement(e,t){forEach((e=resolveTarget(e)).parentElement.children,function(e){removeClassFromElement(e,t)}),addClassToElement(asElement(e),t)}function closest(e,t){return(e=asElement(resolveTarget(e)))?e.closest(t):null}function startsWith(e,t){return e.substring(0,t.length)===t}function endsWith(e,t){return e.substring(e.length-t.length)===t}function normalizeSelector(e){const t=e.trim();return startsWith(t,"<")&&endsWith(t,"/>")?t.substring(1,t.length-2):t}function querySelectorAllExt(e,t,n){if(0===t.indexOf("global "))return querySelectorAllExt(e,t.slice(7),!0);e=resolveTarget(e);const r=[];{let e=0,n=0;for(let o=0;o<t.length;o++){const i=t[o];","!==i||0!==e?"<"===i?e++:"/"===i&&o<t.length-1&&">"===t[o+1]&&e--:(r.push(t.substring(n,o)),n=o+1)}n<t.length&&r.push(t.substring(n))}const o=[],i=[];for(;r.length>0;){const t=normalizeSelector(r.shift());let s;0===t.indexOf("closest ")?s=closest(asElement(e),normalizeSelector(t.slice(8))):0===t.indexOf("find ")?
1s=find(asParentNode(e),normalizeSelector(t.slice(5))):"next"===t||"nextElementSibling"===t?s=asElement(e).nextElementSibling:0===t.indexOf("next ")?s=scanForwardQuery(e,normalizeSelector(t.slice(5)),!!n):"previous"===t||"previousElementSibling"===t?s=asElement(e).previousElementSibling:0===t.indexOf("previous ")?s=scanBackwardsQuery(e,normalizeSelector(t.slice(9)),!!n):"document"===t?s=document:"window"===t?s=window:"body"===t?s=document.body:"root"===t?s=getRootNode(e,!!n):"host"===t?s=e.getRootNode().host:i.push(t),s&&o.push(s)}if(i.length>0){const t=i.join(","),r=asParentNode(getRootNode(e,!!n));o.push(...toArray(r.querySelectorAll(t)))}return o}var scanForwardQuery=function(e,t,n){const r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let t=0;t<r.length;t++){const n=r[t];if(n.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_PRECEDING)return n}},scanBackwardsQuery=function(e,t,n){const r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let t=r.length-1;t>=0;t--){const n=r[t];if(n.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function querySelectorExt(e,t){return"string"!=typeof e?querySelectorAllExt(e,t)[0]:querySelectorAllExt(getDocument().body,e)[0]}function resolveTarget(e,t){return"string"==typeof e?find(asParentNode(t)||document,e):e}function processEventArgs(e,t,n,r){return isFunction(t)?{target:getDocument().body,event:asString(e),listener:t,options:n}:{target:resolveTarget(e),event:asString(t),listener:n,options:r}}function addEventListenerImpl(e,t,n,r){ready(function(){const o=processEventArgs(e,t,n,r);o.target.addEventListener(o.event,o.listener,o.options)});return isFunction(t)?t:n}function removeEventListenerImpl(e,t,n){return ready(function(){const r=processEventArgs(e,t,n);r.target.removeEventListener(r.event,r.listener)}),isFunction(t)?t:n}const DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(e,t){const n=getClosestAttributeValue(e,t);if(n){if("this"===n)return[findThisElement(e,t)];{const r=querySelectorAllExt(e,n);if(/(^|,)(\s*)inherit(\s*)($|,)/.test(n)){const n=asElement(getClosestMatch(e,function(n){return n!==e&&hasAttribute(asElement(n),t)}));n&&r.push(...findAttributeTargets(n,t))}return 0===r.length?(logError('The selector "'+n+'" on '+t+" returned no matches!"),[DUMMY_ELT]):r}}}function findThisElement(e,t){return asElement(getClosestMatch(e,function(e){return null!=getAttributeValue(asElement(e),t)}))}function getTarget(e){const t=getClosestAttributeValue(e,"hx-target");if(t)return"this"===t?findThisElement(e,"hx-target"):querySelectorExt(e,t);return getInternalData(e).boosted?getDocument().body:e}function shouldSettleAttribute(e){return htmx.config.attributesToSettle.includes(e)}function cloneAttributes(e,t){forEach(Array.from(e.attributes),function(n){!t.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&e.removeAttribute(n.name)}
1),forEach(t.attributes,function(t){shouldSettleAttribute(t.name)&&e.setAttribute(t.name,t.value)})}function isInlineSwap(e,t){const n=getExtensions(t);for(let t=0;t<n.length;t++){const r=n[t];try{if(r.isInlineSwap(e))return!0}catch(e){logError(e)}}return"outerHTML"===e}function oobSwap(e,t,n,r){r=r||getDocument();let o="#"+CSS.escape(getRawAttribute(t,"id")),i="outerHTML";"true"===e||(e.indexOf(":")>0?(i=e.substring(0,e.indexOf(":")),o=e.substring(e.indexOf(":")+1)):i=e),t.removeAttribute("hx-swap-oob"),t.removeAttribute("data-hx-swap-oob");const s=querySelectorAllExt(r,o,!1);return s.length?(forEach(s,function(e){let r;const o=t.cloneNode(!0);r=getDocument().createDocumentFragment(),r.appendChild(o),isInlineSwap(i,e)||(r=asParentNode(o));const s={shouldSwap:!0,target:e,fragment:r};triggerEvent(e,"htmx:oobBeforeSwap",s)&&(e=s.target,s.shouldSwap&&(handlePreservedElements(r),swapWithStyle(i,e,e,r,n),restorePreservedElements()),forEach(n.elts,function(e){triggerEvent(e,"htmx:oobAfterSwap",s)}))}),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:t})),e}function restorePreservedElements(){const e=find("#--htmx-preserve-pantry--");if(e){for(const t of[...e.children]){const e=find("#"+t.id);e.parentNode.moveBefore(t,e),e.remove()}e.remove()}}function handlePreservedElements(e){forEach(findAll(e,"[hx-preserve], [data-hx-preserve]"),function(e){const t=getAttributeValue(e,"id"),n=getDocument().getElementById(t);if(null!=n)if(e.moveBefore){let e=find("#--htmx-preserve-pantry--");null==e&&(getDocument().body.insertAdjacentHTML("afterend","<div id='--htmx-preserve-pantry--'></div>"),e=find("#--htmx-preserve-pantry--")),e.moveBefore(n,null)}else e.parentNode.replaceChild(n,e)})}function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),function(t){const r=getRawAttribute(t,"id");if(r&&r.length>0){const o=r.replace("'","\\'"),i=t.tagName.replace(":","\\:"),s=asParentNode(e),a=s&&s.querySelector(i+"[id='"+o+"']");if(a&&a!==s){const e=t.cloneNode();cloneAttributes(t,a),n.tasks.push(function(){cloneAttributes(t,e)})}}})}function makeAjaxLoadTask(e){return function(){removeClassFromElement(e,htmx.config.addedClass),processNode(asElement(e)),processFocus(asParentNode(e)),triggerEvent(e,"htmx:load")}}function processFocus(e){const t="[autofocus]",n=asHtmlElement(matches(e,t)?e:e.querySelector(t));null!=n&&n.focus()}function insertNodesBefore(e,t,n,r){for(handleAttributes(e,n,r);n.childNodes.length>0;){const o=n.firstChild;addClassToElement(asElement(o),htmx.config.addedClass),e.insertBefore(o,t),o.nodeType!==Node.TEXT_NODE&&o.nodeType!==Node.COMMENT_NODE&&r.tasks.push(makeAjaxLoadTask(o))}}function stringHash(e,t){let n=0;for(;n<e.length;)t=(t<<5)-t+e.charCodeAt(n++)|0;return t}function attributeHash(e){let t=0;for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];r.value&&(t=stringHash(r.name,t),t=stringHash(r.value,t))}return t}function deInitOnHandlers(e){const t=getInternalData(e);if(t.onHandlers){for(let n=0;n<t.onHandlers.length;n++){const r=t.onHandlers[n];removeEventListenerImpl(e,r.event,r.listener)}delete t.onHandlers}}function deInitNode(e){const t=getInternalData(e);t.timeout&&clearTimeout(t.timeout),t.listenerInfos&&forEach(t.listenerInfos,function(e){e.on&&removeEventListenerImpl(e.on,e.trigger,e.listener)}),deInitOnHandlers(e),forEach(Object.keys(t),function(e){"firstInitCompleted"!==e&&delete t[e]})}function cleanUpElement(e){triggerEvent(e,"htmx:beforeCleanupElement"),deInitNode(e),forEach(e.children,function(e){cleanUpElement(e)})}function swapOuterHTML(e,t,n){if("BODY"===e.tagName)return swapInnerHTML(e,t,n);let r;const o=e.previousSibling,i=parentElt(e);if(i){for(insertNodesBefore(i,e,t,n),r=null==o?i.firstChild:o.nextSibling,n.elts=n.elts.filter(function(t){return t!==e});r&&r!==e;)r instanceof Element&&n.elts.push(r),r=r.nextSibling;cleanUpElement(e),e.remove()}}function swapAfterBegin(e,t,n){return insertNodesBefore(e,e.firstChild,t,n)}function swapBeforeBegin(e,t,n){return insertNodesBefore(parentElt(e),e,t,n)}
1function swapBeforeEnd(e,t,n){return insertNodesBefore(e,null,t,n)}function swapAfterEnd(e,t,n){return insertNodesBefore(parentElt(e),e.nextSibling,t,n)}function swapDelete(e){cleanUpElement(e);const t=parentElt(e);if(t)return t.removeChild(e)}function swapInnerHTML(e,t,n){const r=e.firstChild;if(insertNodesBefore(e,r,t,n),r){for(;r.nextSibling;)cleanUpElement(r.nextSibling),e.removeChild(r.nextSibling);cleanUpElement(r),e.removeChild(r)}}function swapWithStyle(e,t,n,r,o){switch(e){case"none":return;case"outerHTML":return void swapOuterHTML(n,r,o);case"afterbegin":return void swapAfterBegin(n,r,o);case"beforebegin":return void swapBeforeBegin(n,r,o);case"beforeend":return void swapBeforeEnd(n,r,o);case"afterend":return void swapAfterEnd(n,r,o);case"delete":return void swapDelete(n);default:var i=getExtensions(t);for(let t=0;t<i.length;t++){const s=i[t];try{const t=s.handleSwap(e,n,r,o);if(t){if(Array.isArray(t))for(let e=0;e<t.length;e++){const n=t[e];n.nodeType!==Node.TEXT_NODE&&n.nodeType!==Node.COMMENT_NODE&&o.tasks.push(makeAjaxLoadTask(n))}return}}catch(e){logError(e)}}"innerHTML"===e?swapInnerHTML(n,r,o):swapWithStyle(htmx.config.defaultSwapStyle,t,n,r,o)}}function findAndSwapOobElements(e,t,n){var r=findAll(e,"[hx-swap-oob], [data-hx-swap-oob]");return forEach(r,function(e){if(htmx.config.allowNestedOobSwaps||null===e.parentElement){const r=getAttributeValue(e,"hx-swap-oob");null!=r&&oobSwap(r,e,t,n)}else e.removeAttribute("hx-swap-oob"),e.removeAttribute("data-hx-swap-oob")}),r.length>0}function swap(e,t,n,r){r||(r={});let o=null,i=null,s=function(){maybeCall(r.beforeSwapCallback),e=resolveTarget(e);const i=r.contextElement?getRootNode(r.contextElement,!1):getDocument(),s=document.activeElement;let a={};a={elt:s,start:s?s.selectionStart:null,end:s?s.selectionEnd:null};const l=makeSettleInfo(e);if("textContent"===n.swapStyle)e.textContent=t;else{let o=makeFragment(t);if(l.title=r.title||o.title,r.historyRequest&&(o=o.querySelector("[hx-history-elt],[data-hx-history-elt]")||o),r.selectOOB){const e=r.selectOOB.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(":",2);let r=n[0].trim();0===r.indexOf("#")&&(r=r.substring(1));const s=n[1]||"true",a=o.querySelector("#"+r);a&&oobSwap(s,a,l,i)}}if(findAndSwapOobElements(o,l,i),forEach(findAll(o,"template"),function(e){e.content&&findAndSwapOobElements(e.content,l,i)&&e.remove()}),r.select){const e=getDocument().createDocumentFragment();forEach(o.querySelectorAll(r.select),function(t){e.appendChild(t)}),o=e}handlePreservedElements(o),swapWithStyle(n.swapStyle,r.contextElement,e,o,l),restorePreservedElements()}if(a.elt&&!bodyContains(a.elt)&&getRawAttribute(a.elt,"id")){const e=document.getElementById(getRawAttribute(a.elt,"id")),t={preventScroll:void 0!==n.focusScroll?!n.focusScroll:!htmx.config.defaultFocusScroll};if(e){if(a.start&&e.setSelectionRange)try{e.setSelectionRange(a.start,a.end)}catch(e){}e.focus(t)}}e.classList.remove(htmx.config.swappingClass),forEach(l.elts,function(e){e.classList&&e.classList.add(htmx.config.settlingClass),triggerEvent(e,"htmx:afterSwap",r.eventInfo)}),maybeCall(r.afterSwapCallback),n.ignoreTitle||handleTitle(l.title);const c=function(){if(forEach(l.tasks,function(e){e.call()}),forEach(l.elts,function(e){e.classList&&e.classList.remove(htmx.config.settlingClass),triggerEvent(e,"htmx:afterSettle",r.eventInfo)}),r.anchor){const e=asElement(resolveTarget("#"+r.anchor));e&&e.scrollIntoView({block:"start",behavior:"auto"})}updateScrollState(l.elts,n),maybeCall(r.afterSettleCallback),maybeCall(o)};n.settleDelay>0?getWindow().setTimeout(c,n.settleDelay):c()},a=htmx.config.globalViewTransitions;n.hasOwnProperty("transition")&&(a=n.transition);const l=r.contextElement||getDocument();if(a&&triggerEvent(l,"htmx:beforeTransition",r.eventInfo)&&"undefined"!=typeof Promise&&document.startViewTransition){const e=new Promise(function(e,t){o=e,i=t}),t=s;s=function(){document.startViewTransition(function(){return t(),e})}}try{n?.swapDelay&&n.swapDelay>0?getWindow().setTimeout(s,n.swapDelay):s()}catch(e){throw triggerErrorEvent(l,"htmx:swapError",r.eventInfo),maybeCall(i),e}}function handleTriggerHeader(e,t,n){const r=e.getResponseHeader(t);if(0===r.indexOf("{")){const e=parseJSON(r);for(const t in e)if(e.hasOwnProperty(t)){let r=e[t];isRawObject(r)?n=void 0!==r.target?r.target:n:r={value:r},triggerEvent(n,t,r)}}else{const e=r.split(",");for(let t=0;t<e.length;t++)triggerEvent(n,e[t].trim(),[])}}const WHITESPACE=/\s/,WHITESPACE_OR_COMMA=/[\s,]/,SYMBOL_START=/[_$a-zA-Z]/,SYMBOL_CONT=/[_$a-zA-Z0-9]/,STRINGISH_START=['"',"'","/"],NOT_WHITESPACE=/[^\s]/,COMBINED_SELECTOR_START=/[{(]/,COMBINED_SELECTOR_END=/[})]/;function tokenizeString(e){const t=[];let n=0;for(;n<e.length;){if(SYMBOL_START.exec(e.charAt(n))){for(var r=n;SYMBOL_CONT.exec(e.charAt(n+1));)n++;t.push(e.substring(r,n+1))}else if(-1!==STRINGISH_START.indexOf(e.charAt(n))){const o=e.charAt(n);r=n;for(n++;n<e.length&&e.charAt(n)!==o;)"\\"===e.charAt(n)&&n++,n++;t.push(e.substring(r,n+1))}else{const r=e.charAt(n);t.push(r)}n++}return t}function isPossibleRelativeReference(e,t,n){return SYMBOL_START.exec(e.charAt(0))&&"true"!==e&&"false"!==e&&"this"!==e&&e!==n&&"."!==t}function maybeGenerateConditional(e,t,n){if("["===t[0]){t.shift();let r=1,o=" return (function("+n+"){ return (",i=null;for(;t.length>0;){const s=t[0];if("]"===s){if(r--,0===r){null===i&&(o+="true"),t.shift(),o+=")})";try{const t=maybeEval(e,function(){return Function(o)()},function(){return!0});return t.source=o,t}catch(e){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:e,source:o}),null}}}else"["===s&&r++;isPossibleRelativeReference(s,i,n)?o+="(("+n+"."+s+") ? ("+n+"."+s+") : (window."+s+"))":o+=s,i=t.shift()}}}function consumeUntil(e,t){let n="";for(;e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function consumeCSSSelector(e){let t;return e.length>0&&COMBINED_SELECTOR_START.test(e[0])?(e.shift(),t=consumeUntil(e,COMBINED_SELECTOR_END).trim(),e.shift()):t=consumeUntil(e,WHITESPACE_OR_COMMA),t}const INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(e,t,n){const r=[],o=tokenizeString(t);do{consumeUntil(o,NOT_WHITESPACE);const t=o.length,n=consumeUntil(o,/[,\[\s]/);if(""!==n)if("every"===n){const t={trigger:"every"};consumeUntil(o,NOT_WHITESPACE),t.pollInterval=parseInterval(consumeUntil(o,/[,\[\s]/)),consumeUntil(o,NOT_WHITESPACE),(i=maybeGenerateConditional(e,o,"event"))&&(t.eventFilter=i),r.push(t)}else{const t={trigger:n};var i;for((i=maybeGenerateConditional(e,o,"event"))&&(t.eventFilter=i),consumeUntil(o,NOT_WHITESPACE);o.length>0&&","!==o[0];){const n=o.shift();if("changed"===n)t.changed=!0;else if("once"===n)t.once=!0;else if("consume"===n)t.consume=!0;else if("delay"===n&&":"===o[0])o.shift(),t.delay=parseInterval(consumeUntil(o,WHITESPACE_OR_COMMA));
1else if("from"===n&&":"===o[0]){if(o.shift(),COMBINED_SELECTOR_START.test(o[0]))var s=consumeCSSSelector(o);else if("closest"===(s=consumeUntil(o,WHITESPACE_OR_COMMA))||"find"===s||"next"===s||"previous"===s){o.shift();const e=consumeCSSSelector(o);e.length>0&&(s+=" "+e)}t.from=s}else"target"===n&&":"===o[0]?(o.shift(),t.target=consumeCSSSelector(o)):"throttle"===n&&":"===o[0]?(o.shift(),t.throttle=parseInterval(consumeUntil(o,WHITESPACE_OR_COMMA))):"queue"===n&&":"===o[0]?(o.shift(),t.queue=consumeUntil(o,WHITESPACE_OR_COMMA)):"root"===n&&":"===o[0]?(o.shift(),t[n]=consumeCSSSelector(o)):"threshold"===n&&":"===o[0]?(o.shift(),t[n]=consumeUntil(o,WHITESPACE_OR_COMMA)):triggerErrorEvent(e,"htmx:syntax:error",{token:o.shift()});consumeUntil(o,NOT_WHITESPACE)}r.push(t)}o.length===t&&triggerErrorEvent(e,"htmx:syntax:error",{token:o.shift()}),consumeUntil(o,NOT_WHITESPACE)}while(","===o[0]&&o.shift());return n&&(n[t]=r),r}function getTriggerSpecs(e){const t=getAttributeValue(e,"hx-trigger");let n=[];if(t){const r=htmx.config.triggerSpecsCache;n=r&&r[t]||parseAndCacheTrigger(e,t,r)}return n.length>0?n:matches(e,"form")?[{trigger:"submit"}]:matches(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(e,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(e){getInternalData(e).cancelled=!0}function processPolling(e,t,n){const r=getInternalData(e);r.timeout=getWindow().setTimeout(function(){bodyContains(e)&&!0!==r.cancelled&&(maybeFilterEvent(n,e,makeEvent("hx:poll:trigger",{triggerSpec:n,target:e}))||t(e),processPolling(e,t,n))},n.pollInterval)}function isLocalLink(e){return location.hostname===e.hostname&&getRawAttribute(e,"href")&&0!==getRawAttribute(e,"href").indexOf("#")}function eltIsDisabled(e){return closest(e,htmx.config.disableSelector)}function boostElement(e,t,n){if(e instanceof HTMLAnchorElement&&isLocalLink(e)&&(""===e.target||"_self"===e.target)||"FORM"===e.tagName&&"dialog"!==String(getRawAttribute(e,"method")).toLowerCase()){let r,o;if(t.boosted=!0,"A"===e.tagName)r="get",o=getRawAttribute(e,"href");else{const t=getRawAttribute(e,"method");r=t?t.toLowerCase():"get",o=getRawAttribute(e,"action"),null!=o&&""!==o||(o=location.href),"get"===r&&o.includes("?")&&(o=o.replace(/\?[^#]+/,""))}n.forEach(function(n){addEventListener(e,function(e,t){const n=asElement(e);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(r,o,n,t)},t,n,!0)})}}function shouldCancel(e,t){if("submit"===e.type&&"FORM"===t.tagName)return!0;if("click"===e.type){const e=t.closest('input[type="submit"], button');if(e&&e.form&&"submit"===e.type)return!0;const n=t.closest("a"),r=/^#.+/;if(n&&n.href&&!r.test(n.getAttribute("href")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(e,t){return getInternalData(e).boosted&&e instanceof HTMLAnchorElement&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function maybeFilterEvent(e,t,n){const r=e.eventFilter;if(r)try{return!0!==r.call(t,n)}catch(e){const t=r.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:e,source:t}),!0}return!1}function addEventListener(e,t,n,r,o){const i=getInternalData(e);let s;s=r.from?querySelectorAllExt(e,r.from):[e],r.changed&&("lastValue"in i||(i.lastValue=new WeakMap),s.forEach(function(e){i.lastV
1alue.has(r)||i.lastValue.set(r,new WeakMap),i.lastValue.get(r).set(e,e.value)})),forEach(s,function(s){const a=function(n){if(!bodyContains(e))return void s.removeEventListener(r.trigger,a);if(ignoreBoostedAnchorCtrlClick(e,n))return;if((o||shouldCancel(n,s))&&n.preventDefault(),maybeFilterEvent(r,e,n))return;const l=getInternalData(n);if(l.triggerSpec=r,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),r.consume&&n.stopPropagation(),r.target&&n.target&&!matches(asElement(n.target),r.target))return;if(r.once){if(i.triggeredOnce)return;i.triggeredOnce=!0}if(r.changed){const e=n.target,t=e.value,o=i.lastValue.get(r);if(o.has(e)&&o.get(e)===t)return;o.set(e,t)}if(i.delayed&&clearTimeout(i.delayed),i.throttle)return;r.throttle>0?i.throttle||(triggerEvent(e,"htmx:trigger"),t(e,n),i.throttle=getWindow().setTimeout(function(){i.throttle=null},r.throttle)):r.delay>0?i.delayed=getWindow().setTimeout(function(){triggerEvent(e,"htmx:trigger"),t(e,n)},r.delay):(triggerEvent(e,"htmx:trigger"),t(e,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:r.trigger,listener:a,on:s}),s.addEventListener(r.trigger,a)})}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),window.addEventListener("resize",scrollHandler),setInterval(function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),function(e){maybeReveal(e)}))},200))}function maybeReveal(e){if(!hasAttribute(e,"data-hx-revealed")&&isScrolledIntoView(e)){e.setAttribute("data-hx-revealed","true");getInternalData(e).initHash?triggerEvent(e,"revealed"):e.addEventListener("htmx:afterProcessNode",function(){triggerEvent(e,"revealed")},{once:!0})}}function loadImmediately(e,t,n,r){const o=function(){n.loaded||(n.loaded=!0,triggerEvent(e,"htmx:trigger"),t(e))};r>0?getWindow().setTimeout(o,r):o()}function processVerbs(e,t,n){let r=!1;return forEach(VERBS,function(o){if(hasAttribute(e,"hx-"+o)){const i=getAttributeValue(e,"hx-"+o);r=!0,t.path=i,t.verb=o,n.forEach(function(n){addTriggerHandler(e,n,t,function(e,t){const n=asElement(e);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(o,i,n,t)})})}}),r}function addTriggerHandler(e,t,n,r){if("revealed"===t.trigger)initScrollHandler(),addEventListener(e,r,n,t),maybeReveal(asElement(e));else if("intersect"===t.trigger){const o={};t.root&&(o.root=querySelectorExt(e,t.root)),t.threshold&&(o.threshold=parseFloat(t.threshold));new IntersectionObserver(function(t){for(let n=0;n<t.length;n++){if(t[n].isIntersecting){triggerEvent(e,"intersect");break}}},o).observe(asElement(e)),addEventListener(asElement(e),r,n,t)}else n.firstInitCompleted||"load"!==t.trigger?t.pollInterval>0?(n.polling=!0,processPolling(asElement(e),r,t)):addEventListener(e,r,n,t):maybeFilterEvent(t,e,makeEvent("load",{elt:e}))||loadImmediately(asElement(e),r,n,t.delay)}function shouldProcessHxOn(e){const t=asElement(e);if(!t)return!1;const n=t.attributes;for(let e=0;e<n.length;e++){const t=n[e].name;if(startsWith(t,"hx-on:")||startsWith(t,"data-hx-on:")||startsWith(t,"hx-on-")||startsWith(t,"data-hx-on-"))return!0}return!1}const HX_ON_QUERY=(new XPathEvaluator).createExpression('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]');function processHXOnRoot(e,t){shouldProcessHxOn(e)&&t.push(asElement(e));const n=HX_ON_QUERY.evaluate(e);let r=null;for(;r=n.iterateNext();)t.push(asElement(r))}function findHxOnWildcardElements(e){const t=[];if(e instanceof DocumentFragment)for(const n of e.childNodes)processHXOnRoot(n,t);else processHXOnRoot(e,t);return t}function findElementsToProcess(e){if(e.querySelectorAll){const n=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]",r=[];for(const e in extensions){const n=extensions[e];if(n.getSelectors){var t=n.getSelectors();t&&r.push(t)}}return e.querySelectorAll(VERB_SELECTOR+n+", form, [type='submit'], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger]"+r.flat().map(e=>", "+e).join(""))}return[]}function maybeSetLastButtonClicked(e){const t=getTargetButton(e.target),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){const t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getTargetButton(e){return closest(asElement(e),"button, input[type='submit']")}function getRelatedForm(e){return e.form||closest(e,"form")}function getRelatedFormData(e){const t=getTargetButton(e.target);if(!t)return;const n=getRelatedForm(t);return n?getInternalData(n):void 0}function initButtonTracking(e){e.addEventListener("click",maybeSetLastButtonClicked),e.addEventListener("focusin",maybeSetLastButtonClicked),e.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(e,t,n){const r=getInternalData(e);let o;Array.isArray(r.onHandlers)||(r.onHandlers=[]);const i=function(t){maybeEval(e,function(){eltIsDisabled(e)||(o||(o=new Function("event",n)),o.call(e,t))})};e.addEventListener(t,i),r.onHandlers.push({event:t,listener:i})}function processHxOnWildcard(e){deInitOnHandlers(e);for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name,r=e.attributes[t].value;if(startsWith(n,"hx-on")||startsWith(n,"data-hx-on")){const t=n.indexOf("-on")+3,o=n.slice(t,t+1);if("-"===o||":"===o){let o=n.slice(t+1);startsWith(o,":")?o="htmx"+o:startsWith(o,"-")?o="htmx:"+o.slice(1):startsWith(o,"htmx-")&&(o="htmx:"+o.slice(5)),addHxOnEventHandler(e,o,r)}}}}function initNode(e){triggerEvent(e,"htmx:beforeProcessNode");const t=getInternalData(e),n=getTriggerSpecs(e);processVerbs(e,t,n)||("true"===getClosestAttributeValue(e,"hx-boost")?boostElement(e,t,n):hasAttribute(e,"hx-trigger")&&n.forEac
1h(function(n){addTriggerHandler(e,n,t,function(){})})),("FORM"===e.tagName||"submit"===getRawAttribute(e,"type")&&hasAttribute(e,"form"))&&initButtonTracking(e),t.firstInitCompleted=!0,triggerEvent(e,"htmx:afterProcessNode")}function maybeDeInitAndHash(e){if(!(e instanceof Element))return!1;const t=getInternalData(e),n=attributeHash(e);return t.initHash!==n&&(deInitNode(e),t.initHash=n,!0)}function processNode(e){if(eltIsDisabled(e=resolveTarget(e)))return void cleanUpElement(e);const t=[];maybeDeInitAndHash(e)&&t.push(e),forEach(findElementsToProcess(e),function(e){eltIsDisabled(e)?cleanUpElement(e):maybeDeInitAndHash(e)&&t.push(e)}),forEach(findHxOnWildcardElements(e),processHxOnWildcard),forEach(t,initNode)}function kebabEventName(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function makeEvent(e,t){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t})}function triggerErrorEvent(e,t,n){triggerEvent(e,t,mergeObjects({error:t},n))}function ignoreEventForLogging(e){return"htmx:afterProcessNode"===e}function withExtensions(e,t,n){forEach(getExtensions(e,[],n),function(e){try{t(e)}catch(e){logError(e)}})}function logError(e){}function triggerEvent(e,t,n){e=resolveTarget(e),null==n&&(n={}),n.elt=e;const r=makeEvent(t,n);htmx.logger&&!ignoreEventForLogging(t)&&htmx.logger(e,t,n),n.error&&(logError(n.error),triggerEvent(e,"htmx:error",{errorInfo:n}));let o=e.dispatchEvent(r);const i=kebabEventName(t);if(o&&i!==t){const t=makeEvent(i,r.detail);o=o&&e.dispatchEvent(t)}return withExtensions(asElement(e),function(e){o=o&&!1!==e.onEvent(t,r)&&!r.defaultPrevented}),o}let currentPathForHistory;function setCurrentPathForHistory(e){currentPathForHistory=e,canAccessLocalStorage()&&sessionStorage.setItem("htmx-current-path-for-history",e)}function getHistoryElement(){return getDocument().querySelector("[hx-history-elt],[data-hx-history-elt]")||getDocument().body}function saveToHistoryCache(e,t){if(!canAccessLocalStorage())return;const n=cleanInnerHtmlForHistory(t),r=getDocument().title,o=window.scrollY;if(htmx.config.historyCacheSize<=0)return void sessionStorage.removeItem("htmx-history-cache");e=normalizePath(e);const i=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let t=0;t<i.length;t++)if(i[t].url===e){i.splice(t,1);break}const s={url:e,content:n,title:r,scroll:o};for(triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:s,cache:i}),i.push(s);i.length>htmx.config.historyCacheSize;)i.shift();for(;i.length>0;)try{sessionStorage.setItem("htmx-history-cache",JSON.stringify(i));break}catch(e){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:e,cache:i}),i.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);const t=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let n=0;n<t.length;n++)if(t[n].url===e)return t[n];return null}function cleanInnerHtmlForHistory(e){const t=htmx.config.requestClass,n=e.cloneNode(!0);return forEach(findAll(n,"."+t),function(e){removeClassFromElement(e,t)}),forEach(findAll(n,"[data-disabled-by-htmx]"),function(e){e.removeAttribute("disabled")}),n.innerHTML}function saveCurrentPageToHistory(){const e=getHistoryElement();let t=currentPathForHistory;canAccessLocalStorage()&&(t=sessionStorage.getItem("htmx-current-path-for-history")),t=t||location.pathname+location.search;getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]')||(triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:t,historyElt:e}),saveToHistoryCache(t,e)),htmx.config.historyEnabled&&history.replaceState({htmx:!0},getDocument().title,location.href)}function pushUrlIntoHistory(e){htmx.config.getCacheBusterParam&&(endsWith(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),"&")||endsWith(e,"?"))&&(e=e.slice(0,-1)),htmx.config.historyEnabled&&history.pushState({htmx:!0},"",e),setCurrentPathForHistory(e)}function replaceUrlInHistory(e){htmx.config.historyEnabled&&history.replaceState({htmx:!0},"",e),setCurrentPathForHistory(e)}function settleImmediately(e){forEach(e,function(e){e.call(void 0)})}function loadHistoryFromServer(e){const t=new XMLHttpRequest,n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0},r={path:e,xhr:t,historyElt:getHistoryElement(),swapSpec:n};t.open("GET",e,!0),htmx.config.historyRestoreAsHxRequest&&t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",location.href),t.onload=function(){this.status>=200&&this.status<400?(r.response=this.response,triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",r),swap(r.historyElt,r.response,n,{contextElement:r.historyElt,historyRequest:!0}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:r.response})):triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",r)},triggerEvent(getDocument().body,"htmx:historyCacheMiss",r)&&t.send()}function restoreHistory(e){saveCurrentPageToHistory();
1const t=getCachedHistory(e=e||location.pathname+location.search);if(t){const n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0,scroll:t.scroll},r={path:e,item:t,historyElt:getHistoryElement(),swapSpec:n};triggerEvent(getDocument().body,"htmx:historyCacheHit",r)&&(swap(r.historyElt,t.content,n,{contextElement:r.historyElt,title:t.title}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",r))}else htmx.config.refreshOnHistoryMiss?htmx.location.reload(!0):loadHistoryFromServer(e)}function addRequestIndicatorClasses(e){let t=findAttributeTargets(e,"hx-indicator");return null==t&&(t=[e]),forEach(t,function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)+1,e.classList.add.call(e.classList,htmx.config.requestClass)}),t}function disableElements(e){let t=findAttributeTargets(e,"hx-disabled-elt");return null==t&&(t=[]),forEach(t,function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)+1,e.setAttribute("disabled",""),e.setAttribute("data-disabled-by-htmx","")}),t}function removeRequestIndicators(e,t){forEach(e.concat(t),function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||1)-1}
1),forEach(e,function(e){0===getInternalData(e).requestCount&&e.classList.remove.call(e.classList,htmx.config.requestClass)}),forEach(t,function(e){0===getInternalData(e).requestCount&&(e.removeAttribute("disabled"),e.removeAttribute("data-disabled-by-htmx"))})}function haveSeenNode(e,t){for(let n=0;n<e.length;n++){if(e[n].isSameNode(t))return!0}return!1}function shouldInclude(e){const t=e;return""!==t.name&&null!=t.name&&!t.disabled&&!closest(t,"fieldset[disabled]")&&("button"!==t.type&&"submit"!==t.type&&"image"!==t.tagName&&"reset"!==t.tagName&&"file"!==t.tagName&&("checkbox"!==t.type&&"radio"!==t.type||t.checked))}function addValueToFormData(e,t,n){null!=e&&null!=t&&(Array.isArray(t)?t.forEach(function(t){n.append(e,t)}):n.append(e,t))}function removeValueFromFormData(e,t,n){if(null!=e&&null!=t){let r=n.getAll(e);r=Array.isArray(t)?r.filter(e=>t.indexOf(e)<0):r.filter(e=>e!==t),n.delete(e),forEach(r,t=>n.append(e,t))}}function getValueFromInput(e){return e instanceof HTMLSelectElement&&e.multiple?toArray(e.querySelectorAll("option:checked")).map(function(e){return e.value}):e instanceof HTMLInputElement&&e.files?toArray(e.files):e.value}function processInputValue(e,t,n,r,o){if(null!=r&&!haveSeenNode(e,r)){if(e.push(r),shouldInclude(r)){addValueToFormData(getRawAttribute(r,"name"),getValueFromInput(r),t),o&&validateElement(r,n)}r instanceof HTMLFormElement&&(forEach(r.elements,function(r){e.indexOf(r)>=0?removeValueFromFormData(r.name,getValueFromInput(r),t):e.push(r),o&&validateElement(r,n)}),new FormData(r).forEach(function(e,n){e instanceof File&&""===e.name||addValueToFormData(n,e,t)}))}}function validateElement(e,t){const n=e;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})&&!t.length&&htmx.config.reportValidityOfForms&&n.reportValidity(),t.push({elt:n,message:n.validationMessage,validity:n.validity})))}function overrideFormData(e,t){for(const n of t.keys())e.delete(n);return t.forEach(function(t,n){e.append(n,t)}),e}function getInputValues(e,t){const n=[],r=new FormData,o=new FormData,i=[],s=getInternalData(e);s.lastButtonClicked&&!bodyContains(s.lastButtonClicked)&&(s.lastButtonClicked=null);let a=e instanceof HTMLFormElement&&!0!==e.noValidate||"true"===getAttributeValue(e,"hx-validate");if(s.lastButtonClicked&&(a=a&&!0!==s.lastButtonClicked.formNoValidate),"get"!==t&&processInputValue(n,o,i,getRelatedForm(e),a),processInputValue(n,r,i,e,a),s.lastButtonClicked||"BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===getRawAttribute(e,"type")){const t=s.lastButtonClicked||e;addValueToFormData(getRawAttribute(t,"name"),t.value,o)}return forEach(findAttributeTargets(e,"hx-include"),function(e){processInputValue(n,r,i,asElement(e),a),matches(e,"form")||forEach(asParentNode(e).querySelectorAll(INPUT_SELECTOR),function(e){processInputValue(n,r,i,e,a)})}),overrideFormData(r,o),{errors:i,formData:r,values:formDataProxy(r)}}function appendParam(e,t,n){""!==e&&(e+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const r=encodeURIComponent(n);return e+=encodeURIComponent(t)+"="+r}function urlEncode(e){e=formDataFromObject(e);let t="";return e.forEach(function(e,n){t=appendParam(t,n,e)}),t}function getHeaders(e,t,n){const r={"HX-Request":"true","HX-Trigger":getRawAttribute(e,"id"),"HX-Trigger-Name":getRawAttribute(e,"name"),"HX-Target":getAttributeValue(t,"id"),"HX-Current-URL":location.href};return getValuesForElement(e,"hx-headers",!1,r),void 0!==n&&(r["HX-Prompt"]=n),getInternalData(e).boosted&&(r["HX-Boosted"]="true"),r}function filterValues(e,t){const n=getClosestAttributeValue(t,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return e;if(0===n.indexOf("not "))return forEach(n.slice(4).split(","),function(t){t=t.trim(),e.delete(t)}),e;{const t=new FormData;return forEach(n.split(","),function(n){n=n.trim(),e.has(n)&&e.getAll(n).forEach(function(e){t.append(n,e)})}),t}}return e}function isAnchorLink(e){return!!getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")>=0}function getSwapSpecification(e,t){const n=t||getClosestAttributeValue(e,"hx-swap"),r={
1swapStyle:getInternalData(e).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(e).boosted&&!isAnchorLink(e)&&(r.show="top"),n){const e=splitOnWhitespace(n);if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t];if(0===n.indexOf("swap:"))r.swapDelay=parseInterval(n.slice(5));else if(0===n.indexOf("settle:"))r.settleDelay=parseInterval(n.slice(7));else if(0===n.indexOf("transition:"))r.transition="true"===n.slice(11);else if(0===n.indexOf("ignoreTitle:"))r.ignoreTitle="true"===n.slice(12);else if(0===n.indexOf("scroll:")){const e=(i=n.slice(7).split(":")).pop();var o=i.length>0?i.join(":"):null;r.scroll=e,r.scrollTarget=o}else if(0===n.indexOf("show:")){var i;const e=(i=n.slice(5).split(":")).pop();o=i.length>0?i.join(":"):null;r.show=e,r.showTarget=o}else if(0===n.indexOf("focus-scroll:")){const e=n.slice(13);r.focusScroll="true"==e}else 0==t?r.swapStyle=n:logError("Unknown modifier in hx-swap: "+n)}}return r}function usesFormData(e){return"multipart/form-data"===getClosestAttributeValue(e,"hx-encoding")||matches(e,"form")&&"multipart/form-data"===getRawAttribute(e,"enctype")}function encodeParamsForBody(e,t,n){let r=null;return withExtensions(t,function(o){null==r&&(r=o.encodeParameters(e,n,t))}),null!=r?r:usesFormData(t)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(e){return{tasks:[],elts:[e]}}function updateScrollState(e,t){const n=e[0],r=e[e.length-1];if(t.scroll){var o=null;t.scrollTarget&&(o=asElement(querySelectorExt(n,t.scrollTarget))),"top"===t.scroll&&(n||o)&&((o=o||n).scrollTop=0),"bottom"===t.scroll&&(r||o)&&((o=o||r).scrollTop=o.scrollHeight),"number"==typeof t.scroll&&getWindow().setTimeout(function(){window.scrollTo(0,t.scroll)},0)}if(t.show){o=null;if(t.showTarget){let e=t.showTarget;"window"===t.showTarget&&(e="body"),o=asElement(querySelectorExt(n,e))}"top"===t.show&&(n||o)&&(o=o||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===t.show&&(r||o)&&(o=o||r).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(e,t,n,r,o){if(null==r&&(r={}),null==e)return r;const i=getAttributeValue(e,t);if(i){let t,s=i.trim(),a=n;if("unset"===s)return null;0===s.indexOf("javascript:")?(s=s.slice(11),a=!0):0===s.indexOf("js:")&&(s=s.slice(3),a=!0),0!==s.indexOf("{")&&(s="{"+s+"}"),t=a?maybeEval(e,function(){return o?Function("event","return ("+s+")").call(e,o):Function("return ("+s+")").call(e)},{}):parseJSON(s);for(const e in t)t.hasOwnProperty(e)&&null==r[e]&&(r[e]=t[e])}return getValuesForElement(asElement(parentElt(e)),t,n,r,o)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t,n){return getValuesForElement(e,"hx-vars",!0,n,t)}function getHXValsForElement(e,t,n){return getValuesForElement(e,"hx-vals",!1,n,t)}function getExpressionVars(e,t){return mergeObjects(getHXVarsForElement(e,t),getHXValsForElement(e,t))}function safelySetHeaderValue(e,t,n){if(null!==n)try{e.setRequestHeader(t,n)}catch(r){e.setRequestHeader(t,encodeURIComponent(n)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function getPathFromResponse(e){if(e.responseURL)try{const t=new URL(e.responseURL);return t.pathname+t.search}catch(t){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:e.responseURL})}}function hasHeader(e,t){return t.test(e.getAllResponseHeaders())}function ajaxHelper(e,t,n){if(e=e.toLowerCase(),n){if(n instanceof Element||"string"==typeof n)return issueAjaxRequest(e,t,null,null,{targetOverride:resolveTarget(n)||DUMMY_ELT,returnPromise:!0});{let r=resolveTarget(n.target);return(n.target&&!r||n.source&&!r&&!resolveTarget(n.source))&&(r=DUMMY_ELT),issueAjaxRequest(e,t,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:r,
1swapOverride:n.swap,select:n.select,returnPromise:!0,push:n.push,replace:n.replace,selectOOB:n.selectOOB})}}return issueAjaxRequest(e,t,null,null,{returnPromise:!0})}function hierarchyForElt(e){const t=[];for(;e;)t.push(e),e=e.parentElement;return t}function verifyPath(e,t,n){const r=new URL(t,"about:"!==location.protocol?location.href:window.origin),o=("about:"!==location.protocol?location.origin:window.origin)===r.origin;return!(htmx.config.selfRequestsOnly&&!o)&&triggerEvent(e,"htmx:validateUrl",mergeObjects({url:r,sameHost:o},n))}function formDataFromObject(e){if(e instanceof FormData)return e;const t=new FormData;for(const n in e)e.hasOwnProperty(n)&&(e[n]&&"function"==typeof e[n].forEach?e[n].forEach(function(e){t.append(n,e)}):"object"!=typeof e[n]||e[n]instanceof Blob?t.append(n,e[n]):t.append(n,JSON.stringify(e[n])));return t}function formDataArrayProxy(e,t,n){return new Proxy(n,{get:function(n,r){return"number"==typeof r?n[r]:"length"===r?n.length:"push"===r?function(r){n.push(r),e.append(t,r)}:"function"==typeof n[r]?function(){n[r].apply(n,arguments),e.delete(t),n.forEach(function(n){e.append(t,n)})}:n[r]&&1===n[r].length?n[r][0]:n[r]},set:function(n,r,o){return n[r]=o,e.delete(t),n.forEach(function(n){e.append(t,n)}),!0}})}function formDataProxy(e){return new Proxy(e,{get:function(t,n){if("symbol"==typeof n){const r=Reflect.get(t,n);return"function"==typeof r?function(){return r.apply(e,arguments)}:r}if("toJSON"===n)return()=>Object.fromEntries(e);if(n in t&&"function"==typeof t[n])return function(){return e[n].apply(e,arguments)};const r=e.getAll(n);return 0===r.length?void 0:1===r.length?r[0]:formDataArrayProxy(t,n,r)},set:function(e,t,n){return"string"==typeof t&&(e.delete(t),n&&"function"==typeof n.forEach?n.forEach(function(n){e.append(t,n)}):"object"!=typeof n||n instanceof Blob?e.append(t,n):e.append(t,JSON.stringify(n)),!0)},deleteProperty:function(e,t){return"string"==typeof t&&e.delete(t),!0},ownKeys:function(e){return Reflect.ownKeys(Object.fromEntries(e))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(e),t)}})}function issueAjaxRequest(e,t,n,r,o,i){let s=null,a=null;if((o=null!=o?o:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise(function(e,t){s=e,a=t});null==n&&(n=getDocument().body);const c=o.handler||handleAjaxResponse,u=o.select||null;if(!bodyContains(n))return maybeCall(s),l;const d=o.targetOverride||asElement(getTarget(n));if(null==d||d==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getClosestAttributeValue(n,"hx-target")}),maybeCall(a),l;let f=getInternalData(n);const h=f.lastButtonClicked;if(h){const n=getRawAttribute(h,"formaction");null!=n&&(t=n);const r=getRawAttribute(h,"formmethod");if(null!=r){if(!VERBS.includes(r.toLowerCase()))return maybeCall(s),l;e=r}}const p=getClosestAttributeValue(n,"hx-confirm");if(void 0===i){if(!1===triggerEvent(n,"htmx:confirm",{target:d,elt:n,path:t,verb:e,triggeringEvent:r,etc:o,issueRequest:function(i){return issueAjaxRequest(e,t,n,r,o,!!i)},question:p}))return maybeCall(s),l}let g=n,m=getClosestAttributeValue(n,"hx-sync"),b=null,v=!1;if(m){const e=m.split(":"),t=e[0].trim();if(g="this"===t?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,t)),m=(e[1]||"drop").trim(),f=getInternalData(g),"drop"===m&&f.xhr&&!0!==f.abortable)return maybeCall(s),l;if("abort"===m){if(f.xhr)return maybeCall(s),l;v=!0}else if("replace"===m)triggerEvent(g,"htmx:abort");else if(0===m.indexOf("queue")){b=(m.split(" ")[1]||"last").trim()}}if(f.xhr){if(!f.abortable){if(null==b){if(r){const e=getInternalData(r);e&&e.triggerSpec&&e.triggerSpec.queue&&(b=e.triggerSpec.queue)}null==b&&(b="last")}return null==f.queuedRequests&&(f.queuedRequests=[]),"first"===b&&0===f.queuedRequests.length||"all"===b?f.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)}):"last"===b&&(f.queuedRequests=[],f.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)})),maybeCall(s),l}triggerEvent(g,"htmx:abort")}const _=new XMLHttpRequest;f.xhr=_,f.abortable=v;const y=function(){if(f.xhr=null,f.abortable=!1,null!=f.queuedRequests&&f.queuedRequests.length>0){f.queuedRequests.shift()()}},E=getClosestAttributeValue(n,"hx-prompt");if(E){var w=prompt(E);if(null===w||!triggerEvent(n,"htmx:prompt",{prompt:w,target:d}))return maybeCall(s),y(),l}
1if(p&&!i&&!confirm(p))return maybeCall(s),y(),l;let A=getHeaders(n,d,w);"get"===e||usesFormData(n)||(A["Content-Type"]="application/x-www-form-urlencoded"),o.headers&&(A=mergeObjects(A,o.headers));const x=getInputValues(n,e);let S=x.errors;const C=x.formData;o.values&&overrideFormData(C,formDataFromObject(o.values));const T=overrideFormData(C,formDataFromObject(getExpressionVars(n,r)));let O=filterValues(T,n);htmx.config.getCacheBusterParam&&"get"===e&&O.set("org.htmx.cache-buster",getRawAttribute(d,"id")||"true"),null!=t&&""!==t||(t=location.href);const k=getValuesForElement(n,"hx-request"),I=getInternalData(n).boosted;let D=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0;const L={boosted:I,useUrlParams:D,formData:O,parameters:formDataProxy(O),unfilteredFormData:T,unfilteredParameters:formDataProxy(T),headers:A,elt:n,target:d,verb:e,errors:S,withCredentials:o.credentials||k.credentials||htmx.config.withCredentials,timeout:o.timeout||k.timeout||htmx.config.timeout,path:t,triggeringEvent:r};if(!triggerEvent(n,"htmx:configRequest",L))return maybeCall(s),y(),l;if(t=L.path,e=L.verb,A=L.headers,O=formDataFromObject(L.parameters),S=L.errors,D=L.useUrlParams,S&&S.length>0)return triggerEvent(n,"htmx:validation:halted",L),maybeCall(s),y(),l;const N=t.split("#"),P=N[0],H=N[1];let R=t;if(D){R=P;!O.keys().next().done&&(R.indexOf("?")<0?R+="?":R+="&",R+=urlEncode(O),H&&(R+="#"+H))}if(!verifyPath(n,R,L))return triggerErrorEvent(n,"htmx:invalidPath",L),maybeCall(a),y(),l;if(_.open(e.toUpperCase(),R,!0),_.overrideMimeType("text/html"),_.withCredentials=L.withCredentials,_.timeout=L.timeout,k.noHeaders);else for(const e in A)if(A.hasOwnProperty(e)){const t=A[e];safelySetHeaderValue(_,e,t)}const q={xhr:_,target:d,requestConfig:L,etc:o,boosted:I,select:u,pathInfo:{requestPath:t,finalRequestPath:R,responsePath:null,anchor:H}};if(_.onload=function(){try{const e=hierarchyForElt(n);if(q.pathInfo.responsePath=getPathFromResponse(_),c(n,q),!0!==q.keepIndicators&&removeRequestIndicators(M,j),triggerEvent(n,"htmx:afterRequest",q),triggerEvent(n,"htmx:afterOnLoad",q),!bodyContains(n)){let t=null;for(;e.length>0&&null==t;){const n=e.shift();bodyContains(n)&&(t=n)}t&&(triggerEvent(t,"htmx:afterRequest",q),triggerEvent(t,"htmx:afterOnLoad",q))}maybeCall(s)}catch(e){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:e},q)),e}finally{y()}},_.onerror=function(){removeRequestIndicators(M,j),triggerErrorEvent(n,"htmx:afterRequest",q),triggerErrorEvent(n,"htmx:sendError",q),maybeCall(a),y()},_.onabort=function(){removeRequestIndicators(M,j),triggerErrorEvent(n,"htmx:afterRequest",q),triggerErrorEvent(n,"htmx:sendAbort",q),maybeCall(a),y()},_.ontimeout=function(){removeRequestIndicators(M,j),triggerErrorEvent(n,"htmx:afterRequest",q),triggerErrorEvent(n,"htmx:timeout",q),maybeCall(a),y()},!triggerEvent(n,"htmx:beforeRequest",q))return maybeCall(s),y(),l;var M=addRequestIndicatorClasses(n),j=disableElements(n);forEach(["loadstart","loadend","progress","abort"],function(e){forEach([_,_.upload],function(t){t.addEventListener(e,function(t){triggerEvent(n,"htmx:xhr:"+e,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})})})}),triggerEvent(n,"htmx:beforeSend",q);const F=D?null:encodeParamsForBody(_,n,O);return _.send(F),l}function determineHistoryUpdates(e,t){const n=t.xhr;let r=null,o=null;if(hasHeader(n,/HX-Push:/i)?(r=n.getResponseHeader("HX-Push"),o="push"):hasHeader(n,/HX-Push-Url:/i)?(r=n.getResponseHeader("HX-Push-Url"),o="push"):hasHeader(n,/HX-Replace-Url:/i)&&(r=n.getResponseHeader("HX-Replace-Url"),o="replace"),r)return"false"===r?{}:{type:o,path:r};const i=t.pathInfo.finalRequestPath,s=t.pathInfo.responsePath,a=t.etc.push||getClosestAttributeValue(e,"hx-push-url"),l=t.etc.replace||getClosestAttributeValue(e,"hx-replace-url"),c=getInternalData(e).boosted;let u=null,d=null;return a?(u="push",d=a):l?(u="replace",d=l):c&&(u="push",d=s||i),d?"false"===d?{}:("true"===d&&(d=s||i),t.pathInfo.anchor&&-1===d.indexOf("#")&&(d=d+"#"+t.pathInfo.anchor),{type:u,path:d}):{}}function codeMatches(e,t){return new RegExp(e.code).test(t.toString(10))}function resolveResponseHandling(e){for(var t=0;t<htmx.config.responseHandling.length;t++){var n=htmx.config.responseHandling[t];if(codeMatches(n,e.status))return n}return{swap:!1}}function handleTitle(e){if(e){const t=find("title");t?t.textContent=e:window.document.title=e}}function resolveRetarget(e,t){if("this"===t)return e;const n=asElement(querySelectorExt(e,t));if(null==n)throw triggerErrorEvent(e,"htmx:targetError",{target:t}),new Error(`Invalid re-target ${t}`);return n}function handleAjaxResponse(e,t){const n=t.xhr;let r=t.target;const o=t.etc,i=t.select;if(!triggerEvent(e,"htmx:beforeOnLoad",t))return;if(hasHeader(n,/HX-Trigger:/i)&&handleTriggerHeader(n,"HX-Trigger",e),hasHeader(n,/HX-Location:/i)){let e=n.getResponseHeader("HX-Location");var s={};return 0===e.indexOf("{")&&(e=(s=parseJSON(e)).path,delete s.path),s.push=s.push||"true",void ajaxHelper("get",e,s)}const a=hasHeader(n,/HX-Refresh:/i)&&"true"===n.getResponseHeader("HX-Refresh");if(hasHeader(n,/HX-Redirect:/i))return t.keepIndicators=!0,htmx.location.href=n.getResponseHeader("HX-Redirect"),void(a&&htmx.location.reload());if(a)return t.keepIndicators=!0,void htmx.location.reload();const l=determineHistoryUpdates(e,t),c=resolveResponseHandling(n),u=c.swap;let d=!!c.error,f=htmx.config.ignoreTitle||c.ignoreTitle,h=c.select;c.target&&(t.target=resolveRetarget(e,c.target));var p=o.swapOverride;null==p&&c.swapOverride&&(p=c.swapOverride),hasHeader(n,/HX-Retarget:/i)&&(t.target=resolveRetarget(e,n.getResponseHeader("HX-Retarget"))),hasHeader(n,/HX-Reswap:/i)&&(p=n.getResponseHeader("HX-Reswap"));var g=n.response,m=mergeObjects({shouldSwap:u,serverResponse:g,isError:d,ignoreTitle:f,selectOverride:h,swapOverride:p},t);
1if((!c.event||triggerEvent(r,c.event,m))&&triggerEvent(r,"htmx:beforeSwap",m)){if(r=m.target,g=m.serverResponse,d=m.isError,f=m.ignoreTitle,h=m.selectOverride,p=m.swapOverride,t.target=r,t.failed=d,t.successful=!d,m.shouldSwap){286===n.status&&cancelPolling(e),withExtensions(e,function(t){g=t.transformResponse(g,n,e)}),l.type&&saveCurrentPageToHistory();var b=getSwapSpecification(e,p);b.hasOwnProperty("ignoreTitle")||(b.ignoreTitle=f),r.classList.add(htmx.config.swappingClass),i&&(h=i),hasHeader(n,/HX-Reselect:/i)&&(h=n.getResponseHeader("HX-Reselect"));const s=o.selectOOB||getClosestAttributeValue(e,"hx-select-oob"),a=getClosestAttributeValue(e,"hx-select");swap(r,g,b,{select:"unset"===h?null:h||a,selectOOB:s,eventInfo:t,anchor:t.pathInfo.anchor,contextElement:e,afterSwapCallback:function(){if(hasHeader(n,/HX-Trigger-After-Swap:/i)){let t=e;bodyContains(e)||(t=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Swap",t)}},afterSettleCallback:function(){if(hasHeader(n,/HX-Trigger-After-Settle:/i)){let t=e;bodyContains(e)||(t=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Settle",t)}},beforeSwapCallback:function(){l.type&&(triggerEvent(getDocument().body,"htmx:beforeHistoryUpdate",mergeObjects({history:l},t)),"push"===l.type?(pushUrlIntoHistory(l.path),triggerEvent(getDocument().body,"htmx:pushedIntoHistory",{path:l.path})):(replaceUrlInHistory(l.path),triggerEvent(getDocument().body,"htmx:replacedInHistory",{path:l.path})))}})}d&&triggerErrorEvent(e,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}setCurrentPathForHistory(location.pathname+location.search);const extensions={};function extensionBase(){return{init:function(e){return null},getSelectors:function(){return null},onEvent:function(e,t){return!0},transformResponse:function(e,t,n){return e},isInlineSwap:function(e){return!1},handleSwap:function(e,t,n,r){return!1},encodeParameters:function(e,t,n){return null}}}function defineExtension(e,t){t.init&&t.init(internalAPI),extensions[e]=mergeObjects(extensionBase(),t)}function removeExtension(e){delete extensions[e]}function getExtensions(e,t,n){if(null==t&&(t=[]),null==e)return t;null==n&&(n=[]);const r=getAttributeValue(e,"hx-ext");return r&&forEach(r.split(","),function(e){if("ignore:"!=(e=e.replace(/ /g,"")).slice(0,7)){if(n.indexOf(e)<0){const n=extensions[e];n&&t.indexOf(n)<0&&t.push(n)}}else n.push(e.slice(7))}),getExtensions(asElement(parentElt(e)),t,n)}var isReady=!1;function ready(e){isReady||"complete"===getDocument().readyState?e():getDocument().addEventListener("DOMContentLoaded",e)}function insertIndicatorStyles(){if(!1!==htmx.config.includeIndicatorStyles){const e=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"",t=htmx.config.indicatorClass,n=htmx.config.requestClass;getDocument().head.insertAdjacentHTML("beforeend",`<style${e}>.${t}{opacity:0;visibility: hidden} .${n} .${t}, .${n}.${t}{opacity:1;visibility: visible;transition: opacity 200ms ease-in}</style>`)}}function getMetaConfig(){const e=getDocument().querySelector('meta[name="htmx-config"]');return e?parseJSON(e.content):null}function mergeMetaConfig(){const e=getMetaConfig();e&&(htmx.config=mergeObjects(htmx.config,e))}return getDocument().addEventListener("DOMContentLoaded",function(){isReady=!0}),ready(function(){mergeMetaConfig(),insertIndicatorStyles();let e=getDocument().body;processNode(e);const t=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(e){const t=getInternalData(e.detail.elt||e.target);t&&t.xhr&&t.xhr.abort()});const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(restoreHistory(),forEach(t,function(e){triggerEvent(e,"htmx:restored",{document:getDocument(),triggerEvent})})):n&&n(e)},getWindow().setTimeout(function(){triggerEvent(e,"htmx:load",{}),e=null},0)}),htmx}();const __WEBPACK_DEFAULT_EXPORT__=htmx;__webpack_require__.d(__webpack_exports__,["A",0,__WEBPACK_DEFAULT_EXPORT__])},3382(e){!function(t){var n=function(e,t,n){"use strict";var r,o;
1if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var i=t.documentElement,s=e.HTMLPictureElement,a="addEventListener",l="getAttribute",c=e[a].bind(e),u=e.setTimeout,d=e.requestAnimationFrame||u,f=e.requestIdleCallback,h=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],g={},m=Array.prototype.forEach,b=function(e,t){return g[t]||(g[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),g[t].test(e[l]("class")||"")&&g[t]},v=function(e,t){b(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},_=function(e,t){var n;(n=b(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},y=function(e,t,n){var r=n?a:"removeEventListener";n&&y(e,t),p.forEach(function(n){e[r](n,t)})},E=function(e,n,o,i,s){var a=t.createEvent("Event");return o||(o={}),o.instance=r,a.initEvent(n,!i,!s),a.detail=o,e.dispatchEvent(a),a},w=function(t,n){var r;!s&&(r=e.picturefill||o.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),r({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},A=function(e,t){return(getComputedStyle(e,null)||{})[t]},x=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},S=(ve=[],_e=[],ye=ve,Ee=function(){var e=ye;for(ye=ve.length?_e:ve,me=!0,be=!1;e.length;)e.shift()();me=!1},we=function(e,n){me&&!n?e.apply(this,arguments):(ye.push(e),be||(be=!0,(t.hidden?u:d)(Ee)))},we._lsFlush=Ee,we),C=function(e,t){return t?function(){S(e)}:function(){var t=this,n=arguments;S(function(){e.apply(t,n)})}},T=function(e){var t,r=0,i=o.throttleDelay,s=o.ricTimeout,a=function(){t=!1,r=n.now(),e()},l=f&&s>49?function(){f(a,{timeout:s}),s!==o.ricTimeout&&(s=o.ricTimeout)}:C(function(){u(a)},!0);return function(e){var o;(e=!0===e)&&(s=33),t||(t=!0,(o=i-(n.now()-r))<0&&(o=0),e||o<9?l():u(l,o))}},O=function(e){var t,r,o=99,i=function(){t=null,e()},s=function(){var e=n.now()-r;e<o?u(s,o-e):(f||i)(i)};return function(){r=n.now(),t||(t=u(s,o))}},k=(G=/^img$/i,Q=/^iframe$/i,Y="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),K=0,J=0,Z=0,ee=-1,te=function(e){Z--,(!e||Z<0||!e.target)&&(Z=0)},ne=function(e){return null==X&&(X="hidden"==A(t.body,"visibility")),X||!("hidden"==A(e.parentNode,"visibility")&&"hidden"==A(e,"visibility"))},re=function(e,n){var r,o=e,s=ne(e);for(V-=n,U+=n,W-=n,z+=n;s&&(o=o.offsetParent)&&o!=t.body&&o!=i;)(s=(A(o,"opacity")||1)>0)&&"visible"!=A(o,"overflow")&&(r=o.getBoundingClientRect(),s=z>r.left&&W<r.right&&U>r.top-1&&V<r.bottom+1);return s},oe=function(){var e,n,s,a,c,u,d,f,h,p,g,m,b=r.elements;if((j=o.loadMode)&&Z<8&&(e=b.length)){for(n=0,ee++;n<e;n++)if(b[n]&&!b[n]._lazyRace)if(!Y||r.prematureUnveil&&r.prematureUnveil(b[n]))fe(b[n]);else if((f=b[n][l]("data-expand"))&&(u=1*f)||(u=J),p||(p=!o.expand||o.expand<1?i.clientHeight>500&&i.clientWidth>500?500:370:o.expand,r._defEx=p,g=p*o.expFactor,m=o.hFac,X=null,J<g&&Z<1&&ee>2&&j>2&&!t.hidden?(J=g,ee=0):J=j>1&&ee>1&&Z<6?p:K),h!==u&&($=innerWidth+u*m,B=innerHeight+u,d=-1*u,h=u),s=b[n].getBoundingClientRect(),(U=s.bottom)>=d&&(V=s.top)<=B&&(z=s.right)>=d*m&&(W=s.left)<=$&&(U||z||W||V)&&(o.loadHidden||ne(b[n]))&&(q&&Z<3&&!f&&(j<3||ee<4)||re(b[n],u))){if(fe(b[n]),c=!0,Z>9)break}else!c&&q&&!a&&Z<4&&ee<4&&j>2&&(R[0]||o.preloadAfterLoad)&&(R[0]||!f&&(U||z||W||V||"auto"!=b[n][l](o.sizesAttr)))&&(a=R[0]||b[n]);a&&!c&&fe(a)}},ie=T(oe),se=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),v(t,o.loadedClass),_(t,o.loadingClass),y(t,le),E(t,"lazyloaded"))},ae=C(se),le=function(e){ae({target:e.target})},ce=function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},ue=function(e){var t,n=e[l](o.srcsetAttr);(t=o.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n
1)},de=C(function(e,t,n,r,i){var s,a,c,d,f,p;(f=E(e,"lazybeforeunveil",t)).defaultPrevented||(r&&(n?v(e,o.autosizesClass):e.setAttribute("sizes",r)),a=e[l](o.srcsetAttr),s=e[l](o.srcAttr),i&&(d=(c=e.parentNode)&&h.test(c.nodeName||"")),p=t.firesLoad||"src"in e&&(a||s||d),f={target:e},v(e,o.loadingClass),p&&(clearTimeout(M),M=u(te,2500),y(e,le,!0)),d&&m.call(c.getElementsByTagName("source"),ue),a?e.setAttribute("srcset",a):s&&!d&&(Q.test(e.nodeName)?ce(e,s):e.src=s),i&&(a||d)&&w(e,{src:s})),e._lazyRace&&delete e._lazyRace,_(e,o.lazyClass),S(function(){var t=e.complete&&e.naturalWidth>1;p&&!t||(t&&v(e,o.fastLoadedClass),se(f),e._lazyCache=!0,u(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&Z--},!0)}),fe=function(e){if(!e._lazyRace){var t,n=G.test(e.nodeName),r=n&&(e[l](o.sizesAttr)||e[l]("sizes")),i="auto"==r;(!i&&q||!n||!e[l]("src")&&!e.srcset||e.complete||b(e,o.errorClass)||!b(e,o.lazyClass))&&(t=E(e,"lazyunveilread").detail,i&&I.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,de(e,t,i,r,n))}},he=O(function(){o.loadMode=3,ie()}),pe=function(){3==o.loadMode&&(o.loadMode=2),he()},ge=function(){q||(n.now()-F<999?u(ge,999):(q=!0,o.loadMode=3,ie(),c("scroll",pe,!0)))},{_:function(){F=n.now(),r.elements=t.getElementsByClassName(o.lazyClass),R=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),c("scroll",ie,!0),c("resize",ie,!0),c("pageshow",function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&d(function(){n.forEach(function(e){e.complete&&fe(e)})})}}),e.MutationObserver?new MutationObserver(ie).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i[a]("DOMNodeInserted",ie,!0),i[a]("DOMAttrModified",ie,!0),setInterval(ie,999)),c("hashchange",ie,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[a](e,ie,!0)}),/d$|^c/.test(t.readyState)?ge():(c("load",ge),t[a]("DOMContentLoaded",ie),u(ge,2e4)),r.elements.length?(oe(),S._lsFlush()):ie()},checkElems:ie,unveil:fe,_aLSL:pe}),I=(N=C(function(e,t,n,r){var o,i,s;if(e._lazysizesWidth=r,r+="px",e.setAttribute("sizes",r),h.test(t.nodeName||""))for(i=0,s=(o=t.getElementsByTagName("source")).length;i<s;i++)o[i].setAttribute("sizes",r);n.detail.dataAttr||w(e,n.detail)}),P=function(e,t,n){var r,o=e.parentNode;o&&(n=x(e,o,n),(r=E(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=r.detail.width)&&n!==e._lazysizesWidth&&N(e,o,r,n))},H=O(function(){var e,t=L.length;if(t)for(e=0;e<t;e++)P(L[e])}),{_:function(){L=t.getElementsByClassName(o.autosizesClass),c("resize",H)},checkElems:H,updateElem:P}),D=function(){!D.i&&t.getElementsByClassName&&(D.i=!0,I._(),k._())};var L,N,P,H;var R,q,M,j,F,$,B,V,W,z,U,X,G,Q,Y,K,J,Z,ee,te,ne,re,oe,ie,se,ae,le,ce,ue,de,fe,he,pe,ge;var me,be,ve,_e,ye,Ee,we;return u(function(){o.init&&D()}),r={cfg:o,autoSizer:I,loader:k,init:D,uP:w,aC:v,rC:_,hC:b,fire:E,gW:x,rAF:S}}(t,t.document,Date);t.lazySizes=n,e.exports&&(e.exports=n)}("undefined"!=typeof window?window:{})}};const __webpack_module_cache__={};function __webpack_require__(e){const t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;const n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,(()=>{const e=[];__webpack_require__.O=(t,n,r)=>{if(!n){for(var o=0;o<e.length;o++){let[n,r]=e[o],s=!0;for(var i=0;i<n.length;i++)Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](n[i]))?n.splice(i--,1):s=!1;if(s){e.splice(o--,1);const n=r();void 0!==n&&(t=n)}}return t}e.push([n,r])}})(),__webpack_require__.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}const o=Object.create(null);__webpack_require__.r(o);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);
1s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,__webpack_require__.d(o,i),o}})(),__webpack_require__.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};__webpack_require__.o(e,r)||Object.defineProperty(e,r,i)}else for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[])),__webpack_require__.u=e=>"js/"+e+"-"+__webpack_require__.h()+".js",__webpack_require__.miniCssF=e=>"css/"+e+"."+{6286:"0db175f55cf4c1b443d8",6414:"39b2677cd7a82f71c136",7201:"fe9857c32e68cd9d6818",7428:"6e719b17033607abb2c0"}[e]+".css",__webpack_require__.h=()=>"d056e4e642c8c8f815a2",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={};__webpack_require__.l=(t,n,r,o)=>{if(e[t])return void e[t].push(n);let i,s;if(void 0!==r){const e=document.getElementsByTagName("script");for(var a=0;a<e.length;a++){const n=e[a];if(n.getAttribute("src")==t){i=n;break}}}i||(s=!0,i=document.createElement("script"),i.charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.src=t),e[t]=[n];const l=(n,r)=>{i.onerror=i.onload=null,clearTimeout(c);const o=e[t];if(delete e[t],i.parentNode?.removeChild(i),o?.forEach(e=>e(r)),n)return n(r)},c=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),s&&document.head.appendChild(i)}})(),__webpack_require__.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},__webpack_require__.p="/static/webpack_bundles/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,n)=>{var r=__webpack_require__.miniCssF(e),o=__webpack_require__.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===t))return s}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var s;if((o=(s=i[r]).getAttribute("data-href"))===e||o===t)return s}})(r,o))return t();((e,t,n,r,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",__webpack_require__.nc&&(i.nonce=__webpack_require__.nc),i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var s=n&&n.type,a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,o,null,t,n)}),t={8096:0};__webpack_require__.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{6286:1,6414:1,7201:1,7428:1}[n]&&r.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{const e={8096:0};__webpack_require__.f.j=(t,n)=>{let r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{const o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);const i=new Error,s=n=>{if(__webpack_require__.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+o+")",i.name="ChunkLoadError",i.type=e,i.request=o,i.event=n,r[1](i)}};__webpack_require__.l(__webpack_require__.p+__webpack_require__.u(t),s,"chunk-"+t,t)}},__webpack_require__.O.j=t=>0===e[t];const t=(t,n)=>{let[r,o,i]=n;var s,a,l=0;if(r.some(t=>0!==e[t])){for(s in o)__webpack_require__.o(o,s)&&(__webpack_require__.m[s]=o[s]);if(i)var c=i(__webpack_require__)}for(t&&t(n);l<r.length;l++)a=r[l],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return __webpack_require__.O(c)},n=self.webpackChunk=self.webpackChunk||[];
1n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let __webpack_exports__=__webpack_require__(4392);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})(); 2//# sourceMappingURL=vendors-d056e4e642c8c8f815a2.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.