1var t=function(){const t={onLoad:function(e){return t.on("htmx:load",function(t){e(t.detail.elt)})},process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(t,e){return ae(t,e||"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.10"};t.process=zt,t.on=function(t,e,n,o){return Ae(function(){const r=_(t,e,n,o);r.target.addEventListener(r.event,r.listener,r.options)}),x(e)?e:n},t.off=z,t.trigger=Zt,t.ajax=ve,t.find=R,t.findAll=q,t.closest=k,t.remove=function t(e,n){e=$(e),n?A().setTimeout(function(){t(e),e=null},n):a(e).removeChild(e)},t.addClass=D,t.removeClass=P,t.toggleClass=function(t,e){(t=$(t)).classList.toggle(e)},t.takeClass=function(t,e){S((t=$(t)).parentElement.children,function(t){P(t,e)}),D(N(t),e)},t.swap=ft,t.defineExtension=function(t,n){n.init&&n.init(e),Te[t]=C({init:function(t){return null},getSelectors:function(){return null},onEvent:function(t,e){return!0},transformResponse:function(t,e,n){return t},isInlineSwap:function(t){return!1},handleSwap:function(t,e,n,o){return!1},encodeParameters:function(t,e,n){return null}},n)},t.removeExtension=function(t){delete Te[t]},t.logAll=function(){t.logger=function(t,e,n){console}},t.logNone=function(){t.logger=null},t.parseInterval=r,t._=function(t){return me(c().body,function(){return(0,eval)(t)})};const e={addTriggerHandler:Dt,bodyContains:E,canAccessLocalStorage:H,findThisElement:G,filterValues:fe,swap:ft,hasAttribute:s,getAttributeValue:l,getClosestAttributeValue:h,getClosestMatch:f,getExpressionVars:ye,getHeaders:ue,getInputValues:ae,getInternalData:v,getSwapSpecification:he,getTriggerSpecs:Ot,getTarget:W,makeFragment:m,mergeObjects:C,makeSettleInfo:pe,oobSwap:Q,querySelectorExt:j,settleImmediately:function(t){S(t,function(t){t.call(void 0)})},shouldCancel:Rt,triggerEvent:Zt,triggerErrorEvent:Kt,withExtensions:Gt},n=["get","post","put","delete","patch"],o=n.map(function(t){return"[hx-"+t+"], [data-hx-"+t+"]"}).join(", ");function r(t){if(null==t)return;let e=NaN;return e="ms"==t.slice(-2)?parseFloat(t.slice(0,-2)):"s"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1)):"m"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1))*60:parseFloat(t),isNaN(e)?void 0:e}function i(t,e){return t instanceof Element&&t.getAttribute(e)}function s(t,e){return!!t.hasAttribute&&(t.hasAttribute(e)||t.hasAttribute("data-"+e))}function l(t,e){return i(t,e)||i(t,"data-"+e)}function a(t){const e=t.parentElement;return!e&&t.parentNode instanceof ShadowRoot?t.parentNode:e}function c(){return document}function u(t,e){return t.getRootNode?t.getRootNode({composed:e}):c()}function f(t,e){for(;t&&!e(t);)t=a(t);return t||null}function h(e,n){let o=null;if(f(e,function(r){return!!(o=function(e,n,o){const r=l(n,o),i=l(n,"hx-disinherit");var s=l(n,"hx-inherit");if(e!==n){if(t.config.disableInheritance)return s&&("*"===s||s.split(" ").indexOf(o)>=0)?r:null;if(i&&("*"===i||i.split(" ").indexOf(o)>=0))return"unset"}return r}(e,N(r),n))}),"unset"!==o)return o}function d(t,e){return t instanceof Element&&t.matches(e)}function p(t){return"parseHTMLUnsafe"in Document?Document.parseHTMLUnsafe(t):(new DOMParser).parseFromString(t,"text/html")}function g(t,e){for(;e.childNodes.length>0;)t.append(e.childNodes[0])}function m(e){const n=e.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i,""),o=function(t){const e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(t);return e?e[1].toLowerCase():""}(n);let r;if("html"===o){r=new DocumentFragment;const t=p(e);g(r,t.body),r.title=t.title}else if("body"===o){r=new DocumentFragment;const t=p(n);g(r,t.body),r.title=t.title}else{const t=p('<body><template class="internal-htmx-wrapper">'+n+"</template></body>");r=t.querySelector("template").content,r.title=t.title;var i=r.querySelector("title");i&&i.parentNode===r&&(i.remove(),r.title=i.innerText)}return r&&(t.config.allowScriptTags?function(e){Array.from(e.querySelectorAll("script")).forEac
1h(e=>{if(function(t){return t.matches("script")&&("text/javascript"===t.type||"module"===t.type||""===t.type)}(e)){const o=function(e){const n=c().createElement("script");return S(e.attributes,function(t){n.setAttribute(t.name,t.value)}),n.textContent=e.textContent,n.async=!1,t.config.inlineScriptNonce&&(n.nonce=t.config.inlineScriptNonce),n}(e),r=e.parentNode;try{r.insertBefore(o,e)}catch(n){Wt(n)}finally{e.remove()}}})}(r):r.querySelectorAll("script").forEach(t=>t.remove())),r}function y(t){t&&t()}function x(t){return"function"==typeof t}function b(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)}function v(t){const e="htmx-internal-data";let n=t[e];return n||(n=t[e]={}),n}function w(t){const e=[];if(t)for(let n=0;n<t.length;n++)e.push(t[n]);return e}function S(t,e){if(t)for(let n=0;n<t.length;n++)e(t[n])}function E(t){return t.getRootNode({composed:!0})===document}function C(t,e){for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function O(t){try{return JSON.parse(t)}catch(e){return Wt(e),null}}function H(){const t="htmx:sessionStorageTest";try{return sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(e){return!1}}function T(t){try{const e=new URL(t,window.location.href);t=e.pathname+e.search}catch(e){}return"/"!=t&&(t=t.replace(/\/+$/,"")),t}function R(t,e){return"string"!=typeof t?t.querySelector(e):R(c(),t)}function q(t,e){return"string"!=typeof t?t.querySelectorAll(e):q(c(),t)}function A(){return window}function N(t){return t instanceof Element?t:null}function I(t){return"string"==typeof t?t:null}function L(t){return t instanceof Element||t instanceof Document||t instanceof DocumentFragment?t:null}function D(t,e,n){(t=N($(t)))&&(n?A().setTimeout(function(){D(t,e),t=null},n):t.classList&&t.classList.add(e))}function P(t,e,n){let o=N($(t));o&&(n?A().setTimeout(function(){P(o,e),o=null},n):o.classList&&(o.classList.remove(e),0===o.classList.length&&o.removeAttribute("class")))}function k(t,e){return(t=N($(t)))?t.closest(e):null}function M(t,e){return t.substring(0,e.length)===e}function F(t,e){return t.substring(t.length-e.length)===e}function B(t){const e=t.trim();return M(e,"<")&&F(e,"/>")?e.substring(1,e.length-2):e}function X(t,e,n){if(0===e.indexOf("global "))return X(t,e.slice(7),!0);t=$(t);const o=[];{let t=0,n=0;for(let r=0;r<e.length;r++){const i=e[r];","!==i||0!==t?"<"===i?t++:"/"===i&&r<e.length-1&&">"===e[r+1]&&t--:(o.push(e.substring(n,r)),n=r+1)}n<e.length&&o.push(e.substring(n))}const r=[],i=[];for(;o.length>0;){const e=B(o.shift());let s;0===e.indexOf("closest ")?s=k(N(t),B(e.slice(8))):0===e.indexOf("find ")?s=R(L(t),B(e.slice(5))):"next"===e||"nextElementSibling"===e?s=N(t).nextElementSibling:0===e.indexOf("next ")?s=U(t,B(e.slice(5)),!!n):"previous"===e||"previousElementSibling"===e?s=N(t).previousElementSibling:0===e.indexOf("previous ")?s=V(t,B(e.slice(9)),!!n):"document"===e?s=document:"window"===e?s=window:"body"===e?s=document.body:"root"===e?s=u(t,!!n):"host"===e?s=t.getRootNode().host:i.push(e),s&&r.push(s)}if(i.length>0){const e=i.join(","),o=L(u(t,!!n));r.push(...w(o.querySelectorAll(e)))}return r}var U=function(t,e,n){const o=L(u(t,n)).querySelectorAll(e);for(let r=0;r<o.length;r++){const e=o[r];if(e.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_PRECEDING)return e}},V=function(t,e,n){const o=L(u(t,n)).querySelectorAll(e);for(let r=o.length-1;r>=0;r--){const e=o[r];if(e.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_FOLLOWING)return e}};function j(t,e){return"string"!=typeof t?X(t,e)[0]:X(c().body,t)[0]}function $(t,e){return"string"==typeof t?R(L(e)||document,t):t}function _(t,e,n,o){return x(e)?{target:c().body,event:I(t),listener:e,options:n}:{target:$(t),event:I(e),listener:n,options:o}}function z(t,e,n){return Ae(function(){const o=_(t,e,n);o.target.removeEventListener(o.event,o.listener)}),x(e)?e:n}const J=c().createElement("output");function K(t,e){const n=h(t,e);if(n){if("this"===n)return[G(t,e)];{const o=X(t,n);if(/(^|,)(\s*)inherit(\s*)($|,)/.test(n)){const n=N(f(t,function(n){return n!==t&&s(N(n),e)}));n&&o.push(...K(n,e))}return 0===o.length?(Wt('The selector "'+n+'" on '+e+" returned no matches!"),[J]):o}}}function G(t,e){return N(f(t,function(t){return null!=l(N(t),e)}))}function W(t){const e=h(t,"hx-target");return e?"this"===e?G(t,"hx-target"):j(t,e):v(t).boosted?c().body:t}function Z(e){return t.config.attributesToSettle.includes(e)}function Y(t,e){S(Array.from(t.attributes),function(n){!e.hasAttribute(n.name)&&Z(n.name)&&t.removeAttribute(n.name)}),S(e.attributes,function(e){Z(e.name)&&t.setAttribute(e.name,e.value)})}function Q(t,e,n,o){o=o||c();let r="#"+CSS.escape(i(e,"id")),s="outerHTML";"true"===t||(t.indexOf(":")>0?(s=t.substring(0,t.indexOf(":")),r=t.substring(t.indexOf(":")+1)):s=t),e.removeAttribute("hx-swap-oob"),e.removeAttribute("data-hx-swap-oob");const l=X(o,r,!1);return l.length?(S(l,function(t){let o;const r=e.cloneNode(!0);o=c().createDocumentFragment(),o.appendChild(r),function(t,e){const n=Re(e);for(let r=0;r<n.length;r++){const e=n[r];try{if(e.isInlineSwap(t))return!0}catch(o){Wt(o)}}return"outerHTML"===t}(s,t)||(o=L(r));const i={shouldSwap:!0,target:t,fragment:o};Zt(t,"htmx:oobBeforeSwap",i)&&(t=i.target,i.shouldSwap&&(et(o),ct(s,t,t,o,n),tt()
1),S(n.elts,function(t){Zt(t,"htmx:oobAfterSwap",i)}))}),e.parentNode.removeChild(e)):(e.parentNode.removeChild(e),Kt(c().body,"htmx:oobErrorNoTarget",{content:e,target:r})),t}function tt(){const t=R("#--htmx-preserve-pantry--");if(t){for(const e of[...t.children]){const t=R("#"+e.id);t.parentNode.moveBefore(e,t),t.remove()}t.remove()}}function et(t){S(q(t,"[hx-preserve], [data-hx-preserve]"),function(t){const e=l(t,"id"),n=c().getElementById(e);if(null!=n)if(t.moveBefore){let t=R("#--htmx-preserve-pantry--");null==t&&(c().body.insertAdjacentHTML("afterend","<div id='--htmx-preserve-pantry--'></div>"),t=R("#--htmx-preserve-pantry--")),t.moveBefore(n,null)}else t.parentNode.replaceChild(n,t)})}function nt(e){return function(){P(e,t.config.addedClass),zt(N(e)),function(t){const e="[autofocus]",n=(o=d(t,e)?t:t.querySelector(e))instanceof HTMLElement?o:null;var o;null!=n&&n.focus()}(L(e)),Zt(e,"htmx:load")}}function ot(e,n,o,r){for(function(t,e,n){S(e.querySelectorAll("[id]"),function(e){const o=i(e,"id");if(o&&o.length>0){const r=L(t),i=r&&r.querySelector(CSS.escape(e.tagName)+"#"+CSS.escape(o));if(i&&i!==r){const t=e.cloneNode();Y(e,i),n.tasks.push(function(){Y(e,t)})}}})}(e,o,r);o.childNodes.length>0;){const i=o.firstChild;D(N(i),t.config.addedClass),e.insertBefore(i,n),i.nodeType!==Node.TEXT_NODE&&i.nodeType!==Node.COMMENT_NODE&&r.tasks.push(nt(i))}}function rt(t,e){let n=0;for(;n<t.length;)e=(e<<5)-e+t.charCodeAt(n++)|0;return e}function it(t){const e=v(t);if(e.onHandlers){for(let n=0;n<e.onHandlers.length;n++){const o=e.onHandlers[n];z(t,o.event,o.listener)}delete e.onHandlers}}function st(t){const e=v(t);e.timeout&&clearTimeout(e.timeout),e.listenerInfos&&S(e.listenerInfos,function(t){t.on&&z(t.on,t.trigger,t.listener)}),it(t),S(Object.keys(e),function(t){"firstInitCompleted"!==t&&delete e[t]})}function lt(t){Zt(t,"htmx:beforeCleanupElement"),st(t),S(t.children,function(t){lt(t)})}function at(t,e,n){const o=t.firstChild;if(ot(t,o,e,n),o){for(;o.nextSibling;)lt(o.nextSibling),t.removeChild(o.nextSibling);lt(o),t.removeChild(o)}}function ct(e,n,o,r,i){switch(e){case"none":return;case"outerHTML":return void function(t,e,n){if("BODY"===t.tagName)return at(t,e,n);let o;const r=t.previousSibling,i=a(t);if(i){for(ot(i,t,e,n),o=null==r?i.firstChild:r.nextSibling,n.elts=n.elts.filter(function(e){return e!==t});o&&o!==t;)o instanceof Element&&n.elts.push(o),o=o.nextSibling;lt(t),t.remove()}}(o,r,i);case"afterbegin":return void function(t,e,n){ot(t,t.firstChild,e,n)}(o,r,i);case"beforebegin":return void function(t,e,n){ot(a(t),t,e,n)}(o,r,i);case"beforeend":return void function(t,e,n){ot(t,null,e,n)}(o,r,i);case"afterend":return void function(t,e,n){ot(a(t),t.nextSibling,e,n)}(o,r,i);case"delete":return void function(t){lt(t);const e=a(t);e&&e.removeChild(t)}(o);default:var s=Re(n);for(let t=0;t<s.length;t++){const n=s[t];try{const t=n.handleSwap(e,o,r,i);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&&i.tasks.push(nt(n))}return}}catch(l){Wt(l)}}"innerHTML"===e?at(o,r,i):ct(t.config.defaultSwapStyle,n,o,r,i)}}function ut(e,n,o){var r=q(e,"[hx-swap-oob], [data-hx-swap-oob]");return S(r,function(e){if(t.config.allowNestedOobSwaps||null===e.parentElement){const t=l(e,"hx-swap-oob");null!=t&&Q(t,e,n,o)}else e.removeAttribute("hx-swap-oob"),e.removeAttribute("data-hx-swap-oob")}),r.length>0}function ft(e,n,o,r){r||(r={});let s=null,l=null,a=function(){y(r.beforeSwapCallback),e=$(e);const l=r.contextElement?u(r.contextElement,!1):c(),a=document.activeElement;let f={};f={elt:a,start:a?a.selectionStart:null,end:a?a.selectionEnd:null};const h=pe(e);if("textContent"===o.swapStyle)e.textContent=n;else{let t=m(n);if(h.title=r.title||t.title,r.historyRequest&&(t=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t),r.selectOOB){const e=r.selectOOB.split(",");for(let n=0;n<e.length;n++){const o=e[n].split(":",2);let r=o[0].trim();0===r.indexOf("#")&&(r=r.substring(1));const i=o[1]||"true",s=t.querySelector("#"+r);s&&Q(i,s,h,l)}}if(ut(t,h,l),S(q(t,"template"),function(t){t.content&&ut(t.content,h,l)&&t.remove()}),r.select){const e=c().createDocumentFragment();S(t.querySelectorAll(r.select),function(t){e.appendChild(t)}),t=e}et(t),ct(o.swapStyle,r.contextElement,e,t,h),tt()}if(f.elt&&!E(f.elt)&&i(f.elt,"id")){const e=document.getElementById(i(f.elt,"id")),n={preventScroll:void 0!==o.focusScroll?!o.focusScroll:!t.config.defaultFocusScroll};if(e){if(f.start&&e.setSelectionRange)try{e.setSelectionRange(f.start,f.end)}catch(p){}e.focus(n)}}P(e,t.config.swappingClass),S(h.elts,function(e){e.classList&&D(e,t.config.settlingClass),Zt(e,"htmx:afterSwap",r.eventInfo)}),y(r.afterSwapCallback),o.ignoreTitle||function(t){if(t){const e=R("title");e?e.textContent=t:window.document.title=t}}(h.title);const d=function(){if(S(h.tasks,function(t){t.call()}),S(h.elts,function(e){e.classList&&P(e,t.config.settlingClass),Zt(e,"htmx:afterSettle",r.eventInfo)}),r.anchor){const t=N($("#"+r.anchor));t&&t.scrollIntoView({block:"start",behavior:"auto"})}!function(e,n){const o=e[0],r=e[e.length-1];if(n.scroll){var i=null;n.scrollTarget&&(i=N(j(o,n.scrollTarget))),"top"===n.scroll&&(o||i)&&((i=i||o).scrollTop=0),"bottom"===n.scroll&&(r||i)&&((i=i||r).scrollTop=i.scrollHeight),"number"==typeof n.scroll&&A(
1).setTimeout(function(){window.scrollTo(0,n.scroll)},0)}if(n.show){if(i=null,n.showTarget){let t=n.showTarget;"window"===n.showTarget&&(t="body"),i=N(j(o,t))}"top"===n.show&&(o||i)&&(i=i||o).scrollIntoView({block:"start",behavior:t.config.scrollBehavior}),"bottom"===n.show&&(r||i)&&(i=i||r).scrollIntoView({block:"end",behavior:t.config.scrollBehavior})}}(h.elts,o),y(r.afterSettleCallback),y(s)};o.settleDelay>0?A().setTimeout(d,o.settleDelay):d()},f=t.config.globalViewTransitions;o.hasOwnProperty("transition")&&(f=o.transition);const h=r.contextElement||c();if(f&&Zt(h,"htmx:beforeTransition",r.eventInfo)&&"undefined"!=typeof Promise&&document.startViewTransition){const t=new Promise(function(t,e){s=t,l=e}),e=a;a=function(){document.startViewTransition(function(){return e(),t})}}try{o?.swapDelay&&o.swapDelay>0?A().setTimeout(a,o.swapDelay):a()}catch(d){throw Kt(h,"htmx:swapError",r.eventInfo),y(l),d}}function ht(t,e,n){const o=t.getResponseHeader(e);if(0===o.indexOf("{")){const t=O(o);for(const e in t)if(t.hasOwnProperty(e)){let o=t[e];b(o)?n=void 0!==o.target?o.target:n:o={value:o},Zt(n,e,o)}}else{const t=o.split(",");for(let e=0;e<t.length;e++)Zt(n,t[e].trim(),[])}}const dt=/[\s,]/,pt=/[_$a-zA-Z]/,gt=/[_$a-zA-Z0-9]/,mt=['"',"'","/"],yt=/[^\s]/,xt=/[{(]/,bt=/[})]/;function vt(t,e,n){return pt.exec(t.charAt(0))&&"true"!==t&&"false"!==t&&"this"!==t&&t!==n&&"."!==e}function wt(t,e,n){if("["===e[0]){e.shift();let r=1,i=" return (function("+n+"){ return (",s=null;for(;e.length>0;){const l=e[0];if("]"===l){if(r--,0===r){null===s&&(i+="true"),e.shift(),i+=")})";try{const e=me(t,function(){return Function(i)()},function(){return!0});return e.source=i,e}catch(o){return Kt(c().body,"htmx:syntax:error",{error:o,source:i}),null}}}else"["===l&&r++;vt(l,s,n)?i+="(("+n+"."+l+") ? ("+n+"."+l+") : (window."+l+"))":i+=l,s=e.shift()}}}function St(t,e){let n="";for(;t.length>0&&!e.test(t[0]);)n+=t.shift();return n}function Et(t){let e;return t.length>0&&xt.test(t[0])?(t.shift(),e=St(t,bt).trim(),t.shift()):e=St(t,dt),e}const Ct="input, textarea, select";function Ot(e){const n=l(e,"hx-trigger");let o=[];if(n){const i=t.config.triggerSpecsCache;o=i&&i[n]||function(t,e,n){const o=[],i=function(t){const e=[];let n=0;for(;n<t.length;){if(pt.exec(t.charAt(n))){for(var o=n;gt.exec(t.charAt(n+1));)n++;e.push(t.substring(o,n+1))}else if(-1!==mt.indexOf(t.charAt(n))){const r=t.charAt(n);for(o=n,n++;n<t.length&&t.charAt(n)!==r;)"\\"===t.charAt(n)&&n++,n++;e.push(t.substring(o,n+1))}else{const o=t.charAt(n);e.push(o)}n++}return e}(e);do{St(i,yt);const e=i.length,n=St(i,/[,\[\s]/);if(""!==n)if("every"===n){const e={trigger:"every"};St(i,yt),e.pollInterval=r(St(i,/[,\[\s]/)),St(i,yt),(s=wt(t,i,"event"))&&(e.eventFilter=s),o.push(e)}else{const e={trigger:n};var s;for((s=wt(t,i,"event"))&&(e.eventFilter=s),St(i,yt);i.length>0&&","!==i[0];){const n=i.shift();if("changed"===n)e.changed=!0;else if("once"===n)e.once=!0;else if("consume"===n)e.consume=!0;else if("delay"===n&&":"===i[0])i.shift(),e.delay=r(St(i,dt));else if("from"===n&&":"===i[0]){if(i.shift(),xt.test(i[0]))var l=Et(i);else if("closest"===(l=St(i,dt))||"find"===l||"next"===l||"previous"===l){i.shift();const t=Et(i);t.length>0&&(l+=" "+t)}e.from=l}else"target"===n&&":"===i[0]?(i.shift(),e.target=Et(i)):"throttle"===n&&":"===i[0]?(i.shift(),e.throttle=r(St(i,dt))):"queue"===n&&":"===i[0]?(i.shift(),e.queue=St(i,dt)):"root"===n&&":"===i[0]?(i.shift(),e[n]=Et(i)):"threshold"===n&&":"===i[0]?(i.shift(),e[n]=St(i,dt)):Kt(t,"htmx:syntax:error",{token:i.shift()});St(i,yt)}o.push(e)}i.length===e&&Kt(t,"htmx:syntax:error",{token:i.shift()}),St(i,yt)}while(","===i[0]&&i.shift());return n&&(n[e]=o),o}(e,n,i)}return o.length>0?o:d(e,"form")?[{trigger:"submit"}]:d(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:d(e,Ct)?[{trigger:"change"}]:[{trigger:"click"}]}function Ht(t,e,n){const o=v(t);o.timeout=A().setTimeout(function(){E(t)&&!0!==o.cancelled&&(qt(n,t,Jt("hx:poll:trigger",{triggerSpec:n,target:t}))||e(t),Ht(t,e,n))},n.pollInterval)}function Tt(e){return k(e,t.config.disableSelector)}function Rt(t,e){if("submit"===t.type&&"FORM"===e.tagName)return!0;
1if("click"===t.type){const t=e.closest('input[type="submit"], button');if(t&&t.form&&"submit"===t.type)return!0;const n=e.closest("a");if(n&&n.href&&!/^#.+/.test(n.getAttribute("href")))return!0}return!1}function qt(t,e,n){const o=t.eventFilter;if(o)try{return!0!==o.call(e,n)}catch(r){const t=o.source;return Kt(c().body,"htmx:eventFilter:error",{error:r,source:t}),!0}return!1}function At(t,e,n,o,r){const i=v(t);let s;s=o.from?X(t,o.from):[t],o.changed&&("lastValue"in i||(i.lastValue=new WeakMap),s.forEach(function(t){i.lastValue.has(o)||i.lastValue.set(o,new WeakMap),i.lastValue.get(o).set(t,t.value)})),S(s,function(s){const l=function(n){if(!E(t))return void s.removeEventListener(o.trigger,l);if(function(t,e){return v(t).boosted&&t instanceof HTMLAnchorElement&&"click"===e.type&&(e.ctrlKey||e.metaKey)}(t,n))return;if((r||Rt(n,s))&&n.preventDefault(),qt(o,t,n))return;const a=v(n);if(a.triggerSpec=o,null==a.handledFor&&(a.handledFor=[]),a.handledFor.indexOf(t)<0){if(a.handledFor.push(t),o.consume&&n.stopPropagation(),o.target&&n.target&&!d(N(n.target),o.target))return;if(o.once){if(i.triggeredOnce)return;i.triggeredOnce=!0}if(o.changed){const t=n.target,e=t.value,r=i.lastValue.get(o);if(r.has(t)&&r.get(t)===e)return;r.set(t,e)}if(i.delayed&&clearTimeout(i.delayed),i.throttle)return;o.throttle>0?i.throttle||(Zt(t,"htmx:trigger"),e(t,n),i.throttle=A().setTimeout(function(){i.throttle=null},o.throttle)):o.delay>0?i.delayed=A().setTimeout(function(){Zt(t,"htmx:trigger"),e(t,n)},o.delay):(Zt(t,"htmx:trigger"),e(t,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:o.trigger,listener:l,on:s}),s.addEventListener(o.trigger,l)})}let Nt=!1,It=null;function Lt(t){!s(t,"data-hx-revealed")&&function(t){const e=t.getBoundingClientRect(),n=e.top,o=e.bottom;return n<window.innerHeight&&o>=0}(t)&&(t.setAttribute("data-hx-revealed","true"),v(t).initHash?Zt(t,"revealed"):t.addEventListener("htmx:afterProcessNode",function(){Zt(t,"revealed")},{once:!0}))}function Dt(t,e,n,o){if("revealed"===e.trigger)It||(It=function(){Nt=!0},window.addEventListener("scroll",It),window.addEventListener("resize",It),setInterval(function(){Nt&&(Nt=!1,S(c().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),function(t){Lt(t)}))},200)),At(t,o,n,e),Lt(N(t));else if("intersect"===e.trigger){const r={};e.root&&(r.root=j(t,e.root)),e.threshold&&(r.threshold=parseFloat(e.threshold)),new IntersectionObserver(function(e){for(let n=0;n<e.length;n++)if(e[n].isIntersecting){Zt(t,"intersect");break}},r).observe(N(t)),At(N(t),o,n,e)}else n.firstInitCompleted||"load"!==e.trigger?e.pollInterval>0?(n.polling=!0,Ht(N(t),o,e)):At(t,o,n,e):qt(e,t,Jt("load",{elt:t}))||function(t,e,n,o){const r=function(){n.loaded||(n.loaded=!0,Zt(t,"htmx:trigger"),e(t))};o>0?A().setTimeout(r,o):r()}(N(t),o,n,e.delay)}const Pt=(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 kt(t,e){(function(t){const e=N(t);if(!e)return!1;const n=e.attributes;for(let o=0;o<n.length;o++){const t=n[o].name;if(M(t,"hx-on:")||M(t,"data-hx-on:")||M(t,"hx-on-")||M(t,"data-hx-on-"))return!0}return!1})(t)&&e.push(N(t));const n=Pt.evaluate(t);let o=null;for(;o=n.iterateNext();)e.push(N(o))}function Mt(t){const e=Bt(t.target),n=Ut(t);n&&(n.lastButtonClicked=e)}function Ft(t){const e=Ut(t);e&&(e.lastButtonClicked=null)}function Bt(t){return k(N(t),"button, input[type='submit']")}function Xt(t){return t.form||k(t,"form")}function Ut(t){const e=Bt(t.target);if(!e)return;const n=Xt(e);return n?v(n):void 0}function Vt(t,e,n){const o=v(t);let r;Array.isArray(o.onHandlers)||(o.onHandlers=[]);const i=function(e){me(t,function(){Tt(t)||(r||(r=new Function("event",n)),r.call(t,e))})};t.addEventListener(e,i),o.onHandlers.push({event:e,listener:i})}function jt(t){it(t);for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name,o=t.attributes[e].value;if(M(n,"hx-on")||M(n,"data-hx-on")){const e=n.indexOf("-on")+3,r=n.slice(e,e+1);if("-"===r||":"===r){let r=n.slice(e+1);M(r,":")?r="htmx"+r:M(r,"-")?r="htmx:"+r.slice(1):M(r,"htmx-")&&(r="htmx:"+r.slice(5)),Vt(t,r,o)}}}}function $t(t){Zt(t,"htmx:beforeProcessNode");const e=v(t),o=Ot(t);(function(t,e,o){let r=!1;return S(n,function(n){if(s(t,"hx-"+n)){const i=l(t,"hx-"+n);r=!0,e.path=i,e.verb=n,o.forEach(function(o){Dt(t,o,e,function(t,e){const o=N(t);Tt(o)?lt(o):Ee(n,i,o,e)})})}}),r})(t,e,o)||("true"===h(t,"hx-boost")?function(t,e,n){if(t instanceof HTMLAnchorElement&&function(t){return location.hostname===t.hostname&&i(t,"href")&&0!==i(t,"href").indexOf("#")}(t)&&(""===t.target||"_self"===t.target)||"FORM"===t.tagName&&"dialog"!==String(i(t,"method")).toLowerCase()){let o,r;if(e.boosted=!0,"A"===t.tagName)o="get",r=i(t,"href");else{const e=i(t,"method");o=e?e.toLowerCase():"get",r=i(t,"action"),null!=r&&""!==r||(r=location.href),"get"===o&&r.includes("?")&&(r=r.replace(/\?[^#]+/,""))}n.forEach(function(n){At(t,function(t,e){const n=N(t);Tt(n)?lt(n):Ee(o,r,n,e)},e,n,!0)})}}(t,e,o):s(t,"hx-trigger")&&o.forEach(function(n){Dt(t,n,e,function(){})})),("FORM"===t.tagName||"submit"===i(t,"type")&&s(t,"form"))&&function(t){t.addEventListener("click",Mt),t.addEventListener("focusin",Mt),t.addEventListener("focusout",Ft)}(t),e.firstInitCompleted=!0,Zt(t,"htmx:afterProcessNode")}function _t(t){if(!(t instanceof Element))return!1;const e=v(t),n=function(t){let e=0;for(let n=0;n<t.attributes.length;n++){const o=t.attributes[n];o.value&&(e=rt(o.name,e),e=rt(o.value,e))}return e}(t);return e.initHash!==n&&(st(t),e.initHash=n,!0)}function zt(t){if(Tt(t=$(t)))return void lt(t);const e=[];_t(t)&&e.push(t),S(function(t){if(t.querySelectorAll){const n=[];for(const t in Te){const o=Te[t];if(o.getSelectors){var e=o.getSelectors();e&&n.push(e)}}
1return t.querySelectorAll(o+", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost], form, [type='submit'], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger]"+n.flat().map(t=>", "+t).join(""))}return[]}(t),function(t){Tt(t)?lt(t):_t(t)&&e.push(t)}),S(function(t){const e=[];if(t instanceof DocumentFragment)for(const n of t.childNodes)kt(n,e);else kt(t,e);return e}(t),jt),S(e,$t)}function Jt(t,e){return new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,detail:e})}function Kt(t,e,n){Zt(t,e,C({error:e},n))}function Gt(t,e,n){S(Re(t,[],n),function(t){try{e(t)}catch(n){Wt(n)}})}function Wt(t){console.error(t)}function Zt(e,n,o){e=$(e),null==o&&(o={}),o.elt=e;const r=Jt(n,o);t.logger&&!function(t){return"htmx:afterProcessNode"===t}(n)&&t.logger(e,n,o),o.error&&(Wt(o.error+(o.target?", "+o.target:"")),Zt(e,"htmx:error",{errorInfo:o}));let i=e.dispatchEvent(r);const s=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();if(i&&s!==n){const t=Jt(s,r.detail);i=i&&e.dispatchEvent(t)}return Gt(N(e),function(t){i=i&&!1!==t.onEvent(n,r)&&!r.defaultPrevented}),i}let Yt;function Qt(t){Yt=t,H()&&sessionStorage.setItem("htmx-current-path-for-history",t)}function te(){return c().querySelector("[hx-history-elt],[data-hx-history-elt]")||c().body}function ee(){const e=te();let n=Yt;H()&&(n=sessionStorage.getItem("htmx-current-path-for-history")),n=n||location.pathname+location.search,c().querySelector('[hx-history="false" i],[data-hx-history="false" i]')||(Zt(c().body,"htmx:beforeHistorySave",{path:n,historyElt:e}),function(e,n){if(!H())return;const o=function(e){const n=t.config.requestClass,o=e.cloneNode(!0);return S(q(o,"."+n),function(t){P(t,n)}),S(q(o,"[data-disabled-by-htmx]"),function(t){t.removeAttribute("disabled")}),o.innerHTML}(n),r=c().title,i=window.scrollY;if(t.config.historyCacheSize<=0)return void sessionStorage.removeItem("htmx-history-cache");e=T(e);const s=O(sessionStorage.getItem("htmx-history-cache"))||[];for(let t=0;t<s.length;t++)if(s[t].url===e){s.splice(t,1);break}const l={url:e,content:o,title:r,scroll:i};for(Zt(c().body,"htmx:historyItemCreated",{item:l,cache:s}),s.push(l);s.length>t.config.historyCacheSize;)s.shift();for(;s.length>0;)try{sessionStorage.setItem("htmx-history-cache",JSON.stringify(s));break}catch(a){Kt(c().body,"htmx:historyCacheError",{cause:a,cache:s}),s.shift()}}(n,e)),t.config.historyEnabled&&history.replaceState({htmx:!0},c().title,location.href)}function ne(e,n){S(e.concat(n),function(t){const e=v(t);e.requestCount=(e.requestCount||1)-1}),S(e,function(e){0===v(e).requestCount&&P(e,t.config.requestClass)}),S(n,function(t){0===v(t).requestCount&&t.hasAttribute("data-disabled-by-htmx")&&(t.removeAttribute("disabled"),t.removeAttribute("data-disabled-by-htmx"))})}function oe(t,e,n){null!=t&&null!=e&&(Array.isArray(e)?e.forEach(function(e){n.append(t,e)}):n.append(t,e))}function re(t){return t instanceof HTMLSelectElement&&t.multiple?w(t.querySelectorAll("option:checked")).map(function(t){return t.value}):t instanceof HTMLInputElement&&t.files?w(t.files):t.value}function ie(t,e,n,o,r){null==o||function(t,e){for(let n=0;n<t.length;n++)if(t[n].isSameNode(e))return!0;return!1}(t,o)||(t.push(o),function(t){const e=t;return""!==e.name&&null!=e.name&&!e.disabled&&!k(e,"fieldset[disabled]")&&"button"!==e.type&&"submit"!==e.type&&"image"!==e.tagName&&"reset"!==e.tagName&&"file"!==e.tagName&&("checkbox"!==e.type&&"radio"!==e.type||e.checked)}(o)&&(oe(i(o,"name"),re(o),e),r&&se(o,n)),o instanceof HTMLFormElement&&(S(o.elements,function(o){t.indexOf(o)>=0?function(t,e,n){if(null!=t&&null!=e){let o=n.getAll(t);o=Array.isArray(e)?o.filter(t=>e.indexOf(t)<0):o.filter(t=>t!==e),n.delete(t),S(o,e=>n.append(t,e))}}(o.name,re(o),e):t.push(o),r&&se(o,n)}),new FormData(o).forEach(function(t,n){t instanceof File&&""===t.name||oe(n,t,e)})))}function se(e,n){const o=e;o.willValidate&&(Zt(o,"htmx:validation:validate"),o.checkValidity()||(Zt(o,"htmx:validation:failed",{message:o.validationMessage,validity:o.validity})&&!n.length&&t.config.reportValidityOfForms&&o.reportValidity(),n.push({elt:o,message:o.validationMessage,validity:o.validity})))}function le(t,e){for(const n of e.keys())t.delete(n);return e.forEach(function(e,n){t.append(n,e)}),t}function ae(t,e){const n=[],o=new FormData,r=new FormData,s=[],a=v(t);a.lastButtonClicked&&!E(a.lastButtonClicked)&&(a.lastButtonClicked=null);let c=t instanceof HTMLFormElement&&!0!==t.noValidate||"true"===l(t,"hx-validate");if(a.lastButtonClicked&&(c=c&&!0!==a.lastButtonClicked.formNoValidate),"get"!==e&&ie(n,r,s,Xt(t),c),ie(n,o,s,t,c),a.lastButtonClicked||"BUTTON"===t.tagName||"INPUT"===t.tagName&&"submit"===i(t,"type")){const e=a.lastButtonClicked||t;oe(i(e,"name"),e.value,r)}return S(K(t,"hx-include"),function(t){ie(n,o,s,N(t),c),d(t,"form")||S(L(t).querySelectorAll(Ct),function(t){ie(n,o,s,t,c)})}),le(o,r),{errors:s,formData:o,values:Se(o)}}function ce(t){t=we(t);let e="";return t.forEach(function(t,n){e=function(t,e,n){""!==t&&(t+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const o=encodeURIComponent(n);return t+(encodeURIComponent(e)+"=")+o}(e,n,t)}),e}function ue(t,e,n){const o={"HX-Request":"true","HX-Trigger":i(t,"i
1d"),"HX-Trigger-Name":i(t,"name"),"HX-Target":l(e,"id"),"HX-Current-URL":location.href};return ge(t,"hx-headers",!1,o),void 0!==n&&(o["HX-Prompt"]=n),v(t).boosted&&(o["HX-Boosted"]="true"),o}function fe(t,e){const n=h(e,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return t;if(0===n.indexOf("not "))return S(n.slice(4).split(","),function(e){e=e.trim(),t.delete(e)}),t;{const e=new FormData;return S(n.split(","),function(n){n=n.trim(),t.has(n)&&t.getAll(n).forEach(function(t){e.append(n,t)})}),e}}return t}function he(e,n){const o=n||h(e,"hx-swap"),s={swapStyle:v(e).boosted?"innerHTML":t.config.defaultSwapStyle,swapDelay:t.config.defaultSwapDelay,settleDelay:t.config.defaultSettleDelay};if(t.config.scrollIntoViewOnBoost&&v(e).boosted&&!function(t){return!!i(t,"href")&&i(t,"href").indexOf("#")>=0}(e)&&(s.show="top"),o){const t=o.trim().split(/\s+/);if(t.length>0)for(let e=0;e<t.length;e++){const n=t[e];if(0===n.indexOf("swap:"))s.swapDelay=r(n.slice(5));else if(0===n.indexOf("settle:"))s.settleDelay=r(n.slice(7));else if(0===n.indexOf("transition:"))s.transition="true"===n.slice(11);else if(0===n.indexOf("ignoreTitle:"))s.ignoreTitle="true"===n.slice(12);else if(0===n.indexOf("scroll:")){const t=(a=n.slice(7).split(":")).pop();var l=a.length>0?a.join(":"):null;s.scroll=t,s.scrollTarget=l}else if(0===n.indexOf("show:")){var a;const t=(a=n.slice(5).split(":")).pop();l=a.length>0?a.join(":"):null,s.show=t,s.showTarget=l}else 0===n.indexOf("focus-scroll:")?s.focusScroll="true"==n.slice(13):0==e?s.swapStyle=n:Wt("Unknown modifier in hx-swap: "+n)}}return s}function de(t){return"multipart/form-data"===h(t,"hx-encoding")||d(t,"form")&&"multipart/form-data"===i(t,"enctype")}function pe(t){return{tasks:[],elts:[t]}}function ge(t,e,n,o,r){if(null==o&&(o={}),null==t)return o;const i=l(t,e);if(i){let e,s=i.trim(),l=n;if("unset"===s)return null;0===s.indexOf("javascript:")?(s=s.slice(11),l=!0):0===s.indexOf("js:")&&(s=s.slice(3),l=!0),0!==s.indexOf("{")&&(s="{"+s+"}"),e=l?me(t,function(){return r?Function("event","return ("+s+")").call(t,r):Function("return ("+s+")").call(t)},{}):O(s);for(const t in e)e.hasOwnProperty(t)&&null==o[t]&&(o[t]=e[t])}return ge(N(a(t)),e,n,o,r)}function me(e,n,o){return t.config.allowEval?n():(Kt(e,"htmx:evalDisallowedError"),o)}function ye(t,e){return C(function(t,e){return ge(t,"hx-vars",!0,void 0,e)}(t,e),function(t,e){return ge(t,"hx-vals",!1,void 0,e)}(t,e))}function xe(t,e,n){if(null!==n)try{t.setRequestHeader(e,n)}catch(o){t.setRequestHeader(e,encodeURIComponent(n)),t.setRequestHeader(e+"-URI-AutoEncoded","true")}}function be(t,e){return e.test(t.getAllResponseHeaders())}function ve(t,e,n){if(t=t.toLowerCase(),n){if(n instanceof Element||"string"==typeof n)return Ee(t,e,null,null,{targetOverride:$(n)||J,returnPromise:!0});{let o=$(n.target);return(n.target&&!o||n.source&&!o&&!$(n.source))&&(o=J),Ee(t,e,$(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:o,swapOverride:n.swap,select:n.select,returnPromise:!0,push:n.push,replace:n.replace,selectOOB:n.selectOOB})}}return Ee(t,e,null,null,{returnPromise:!0})}function we(t){if(t instanceof FormData)return t;const e=new FormData;for(const n in t)t.hasOwnProperty(n)&&(t[n]&&"function"==typeof t[n].forEach?t[n].forEach(function(t){e.append(n,t)}):"object"!=typeof t[n]||t[n]instanceof Blob?e.append(n,t[n]):e.append(n,JSON.stringify(t[n])));return e}function Se(t){return new Proxy(t,{get:function(e,n){if("symbol"==typeof n){const o=Reflect.get(e,n);return"function"==typeof o?function(){return o.apply(t,arguments)}:o}if("toJSON"===n)return()=>Object.fromEntries(t);if(n in e&&"function"==typeof e[n])return function(){return t[n].apply(t,arguments)};const o=t.getAll(n);return 0===o.length?void 0:1===o.length?o[0]:function(t,e,n){return new Proxy(n,{get:function(n,o){return"number"==typeof o?n[o]:"length"===o?n.length:"push"===o?function(o){n.push(o),t.append(e,o)}:"function"==typeof n[o]?function(){n[o].apply(n,arguments),t.delete(e),n.forEach(function(n){t.append(e,n)})}:n[o]&&1===n[o].length?n[o][0]:n[o]}
1,set:function(n,o,r){return n[o]=r,t.delete(e),n.forEach(function(n){t.append(e,n)}),!0}})}(e,n,o)},set:function(t,e,n){return"string"==typeof e&&(t.delete(e),n&&"function"==typeof n.forEach?n.forEach(function(n){t.append(e,n)}):"object"!=typeof n||n instanceof Blob?t.append(e,n):t.append(e,JSON.stringify(n)),!0)},deleteProperty:function(t,e){return"string"==typeof e&&t.delete(e),!0},ownKeys:function(t){return Reflect.ownKeys(Object.fromEntries(t))},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(t),e)}})}function Ee(e,o,r,s,l,a){let u=null,f=null;if((l=null!=l?l:{}).returnPromise&&"undefined"!=typeof Promise)var d=new Promise(function(t,e){u=t,f=e});null==r&&(r=c().body);const p=l.handler||He,g=l.select||null;if(!E(r))return y(u),d;const m=l.targetOverride||N(W(r));if(null==m||m==J)return Kt(r,"htmx:targetError",{target:h(r,"hx-target")}),y(f),d;let x=v(r);const b=x.lastButtonClicked;if(b){const t=i(b,"formaction");null!=t&&(o=t);const r=i(b,"formmethod");if(null!=r){if(!n.includes(r.toLowerCase()))return y(u),d;e=r}}const w=h(r,"hx-confirm");if(void 0===a&&!1===Zt(r,"htmx:confirm",{target:m,elt:r,path:o,verb:e,triggeringEvent:s,etc:l,issueRequest:function(t){return Ee(e,o,r,s,l,!!t)},question:w}))return y(u),d;let O=r,H=h(r,"hx-sync"),T=null,R=!1;if(H){const t=H.split(":"),e=t[0].trim();if(O="this"===e?G(r,"hx-sync"):N(j(r,e)),H=(t[1]||"drop").trim(),x=v(O),"drop"===H&&x.xhr&&!0!==x.abortable)return y(u),d;if("abort"===H){if(x.xhr)return y(u),d;R=!0}else"replace"===H?Zt(O,"htmx:abort"):0===H.indexOf("queue")&&(T=(H.split(" ")[1]||"last").trim())}if(x.xhr){if(!x.abortable){if(null==T){if(s){const t=v(s);t&&t.triggerSpec&&t.triggerSpec.queue&&(T=t.triggerSpec.queue)}null==T&&(T="last")}return null==x.queuedRequests&&(x.queuedRequests=[]),"first"===T&&0===x.queuedRequests.length||"all"===T?x.queuedRequests.push(function(){Ee(e,o,r,s,l)}):"last"===T&&(x.queuedRequests=[],x.queuedRequests.push(function(){Ee(e,o,r,s,l)})),y(u),d}Zt(O,"htmx:abort")}const q=new XMLHttpRequest;x.xhr=q,x.abortable=R;const A=function(){x.xhr=null,x.abortable=!1,null!=x.queuedRequests&&x.queuedRequests.length>0&&x.queuedRequests.shift()()},I=h(r,"hx-prompt");if(I){var L=prompt(I);if(null===L||!Zt(r,"htmx:prompt",{prompt:L,target:m}))return y(u),A(),d}if(w&&!a&&!confirm(w))return y(u),A(),d;let P=ue(r,m,L);"get"===e||de(r)||(P["Content-Type"]="application/x-www-form-urlencoded"),l.headers&&(P=C(P,l.headers));const k=ae(r,e);let M=k.errors;const F=k.formData;l.values&&le(F,we(l.values));const B=le(F,we(ye(r,s)));let X=fe(B,r);t.config.getCacheBusterParam&&"get"===e&&X.set("org.htmx.cache-buster",i(m,"id")||"true"),null!=o&&""!==o||(o=location.href);const U=ge(r,"hx-request"),V=v(r).boosted;let $=t.config.methodsThatUseUrlParams.indexOf(e)>=0;const _={boosted:V,useUrlParams:$,formData:X,parameters:Se(X),unfilteredFormData:B,unfilteredParameters:Se(B),headers:P,elt:r,target:m,verb:e,errors:M,withCredentials:l.credentials||U.credentials||t.config.withCredentials,timeout:l.timeout||U.timeout||t.config.timeout,path:o,triggeringEvent:s};if(!Zt(r,"htmx:configRequest",_))return y(u),A(),d;if(o=_.path,e=_.verb,P=_.headers,X=we(_.parameters),M=_.errors,$=_.useUrlParams,M&&M.length>0)return Zt(r,"htmx:validation:halted",_),y(u),A(),d;const z=o.split("#"),Z=z[0],Y=z[1];let Q=o;if($&&(Q=Z,X.keys().next().done||(Q.indexOf("?")<0?Q+="?":Q+="&",Q+=ce(X),Y&&(Q+="#"+Y))),!function(e,n,o){const r=new URL(n,"about:"!==location.protocol?location.href:window.origin),i=("about:"!==location.protocol?location.origin:window.origin)===r.origin;return!(t.config.selfRequestsOnly&&!i)&&Zt(e,"htmx:validateUrl",C({url:r,sameHost:i},o))}(r,Q,_))return Kt(r,"htmx:invalidPath",_),y(f),A(),d;if(q.open(e.toUpperCase(),Q,!0),q.overrideMimeType("text/html"),q.withCredentials=_.withCredentials,q.timeout=_.timeout,U.noHeaders);else for(const t in P)if(P.hasOwnProperty(t)){const e=P[t];xe(q,t,e)}const tt={xhr:q,target:m,requestConfig:_,etc:l,boosted:V,select:g,pathInfo:{requestPath:o,finalRequestPath:Q,responsePath:null,anchor:Y}};if(q.onload=function(){try{const t=function(t){const e=[];for(;t;)e.push(t),t=t.parentElement;return e}(r);if(tt.pathInfo.responsePath=function(t){if(t.responseURL)try{const e=new URL(t.responseURL);return e.pathname+e.search}catch(e){Kt(c().body,"htmx:badResponseUrl",{url:t.responseURL})}}(q),p(r,tt),!0!==tt.keepIndicators&&ne(et,nt),Zt(r,"htmx:afterRequest",tt),Zt(r,"htmx:afterOnLoad",tt),!E(r)){let e=null;for(;t.length>0&&null==e;){const n=t.shift();E(n)&&(e=n)}e&&(Zt(e,"htmx:afterRequest",tt),Zt(e,"htmx:afterOnLoad",tt))}y(u)}catch(t){throw Kt(r,"htmx:onLoadError",C({error:t},tt)),t}finally{A()}},q.onerror=function(){ne(et,nt),Kt(r,"htmx:afterRequest",tt),Kt(r,"htmx:sendError",tt),y(f),A()},q.onabort=function(){ne(et,nt),Kt(r,"htmx:afterRequest",tt),Kt(r,"htmx:sendAbort",tt),y(f),A()},q.ontimeout=function(){ne(et,nt),Kt(r,"htmx:afterRequest",tt),Kt(r,"htmx:timeout",tt),y(f),A()},!Zt(r,"htmx:beforeRequest",tt))return y(u),A(),d;var et=function(e){let n=K(e,"hx-indicator");return null==n&&(n=[e]),S(n,function(e){const n=v(e);n.requestCount=(n.requestCount||0)+1,D(e,t.config.requestClass)}),n}(r),nt=function(t){let e=K(t,"hx-disabled-elt");return null==e&&(e=[]),S(e,function(t){const e=v(t);e.requestCount=(e.requestCount||0)+1,t.hasAttribute("disabled")||(t.setAttribute("disabled",""),t.setAttribute("data-disabled-by-htmx",""))}),e}(r);S(["loadstart","loadend","progress","abort"],function(t){S([q,q.upload],function(e){e.addEventListener(t,function(e){Zt(r,"htmx:xhr:"+t,{lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total})})})}),Zt(r,"htmx:beforeSend",tt);const ot=$?null:function(t,e,n){let o=null;return Gt(e,function(r){null==o&&(o=r.encodeParameters(t,n,e))}),null!=o?o:de(e)?le(new FormData,we(n)):ce(n)}(q,r,X);return q.send(ot),d}function Ce(t,e){return new RegExp(t.code).test(e.toString(10))}function Oe(t,e){if("this"===e)return t;const n=N(j(t,e));if(null==n)throw Kt(t,"htmx:targetError",{target:e}),new Error(`Invalid re-target ${e}`);return n}function He(e,n){const o=n.xhr;let r=n.target;const i=n.etc,s=n.select;if(!Zt(e,"htmx:beforeOnLoad",n))return;if(be(o,/HX-Trigger:/i)&&ht(o,"HX-Trigger",e),be(o,/HX-Location:/i)){let t=
1o.getResponseHeader("HX-Location");var l={};return 0===t.indexOf("{")&&(t=(l=O(t)).path,delete l.path),l.push=l.push??"true",void ve("get",t,l)}const a=be(o,/HX-Refresh:/i)&&"true"===o.getResponseHeader("HX-Refresh");if(be(o,/HX-Redirect:/i))return n.keepIndicators=!0,t.location.href=o.getResponseHeader("HX-Redirect"),void(a&&t.location.reload());if(a)return n.keepIndicators=!0,void t.location.reload();const u=function(t,e){const n=e.xhr;let o=null,r=null;if(be(n,/HX-Push:/i)?(o=n.getResponseHeader("HX-Push"),r="push"):be(n,/HX-Push-Url:/i)?(o=n.getResponseHeader("HX-Push-Url"),r="push"):be(n,/HX-Replace-Url:/i)&&(o=n.getResponseHeader("HX-Replace-Url"),r="replace"),o)return"false"===o?{}:{type:r,path:o};const i=e.pathInfo.finalRequestPath,s=e.pathInfo.responsePath;let l=e.etc.push||h(t,"hx-push-url"),a=e.etc.replace||h(t,"hx-replace-url");"false"===l&&(l=null),"false"===a&&(a=null);const c=v(t).boosted;let u=null,f=null;return l?(u="push",f=l):a?(u="replace",f=a):c&&(u="push",f=s||i),f?("true"===f&&(f=s||i),e.pathInfo.anchor&&-1===f.indexOf("#")&&(f=f+"#"+e.pathInfo.anchor),{type:u,path:f}):{}}(e,n),f=function(e){for(var n=0;n<t.config.responseHandling.length;n++){var o=t.config.responseHandling[n];if(Ce(o,e.status))return o}return{swap:!1}}(o),d=f.swap;let p=!!f.error,g=t.config.ignoreTitle||f.ignoreTitle,m=f.select;f.target&&(n.target=Oe(e,f.target));var y=i.swapOverride;null==y&&f.swapOverride&&(y=f.swapOverride),be(o,/HX-Retarget:/i)&&(n.target=Oe(e,o.getResponseHeader("HX-Retarget"))),be(o,/HX-Reswap:/i)&&(y=o.getResponseHeader("HX-Reswap"));var x=o.response,b=C({shouldSwap:d,serverResponse:x,isError:p,ignoreTitle:g,selectOverride:m,swapOverride:y},n);if((!f.event||Zt(r,f.event,b))&&Zt(r,"htmx:beforeSwap",b)){if(r=b.target,x=b.serverResponse,p=b.isError,g=b.ignoreTitle,m=b.selectOverride,y=b.swapOverride,n.target=r,n.failed=p,n.successful=!p,b.shouldSwap){286===o.status&&function(t){v(t).cancelled=!0}(e),Gt(e,function(t){x=t.transformResponse(x,o,e)}),u.type&&ee();var w=he(e,y);w.hasOwnProperty("ignoreTitle")||(w.ignoreTitle=g),D(r,t.config.swappingClass),s&&(m=s),be(o,/HX-Reselect:/i)&&(m=o.getResponseHeader("HX-Reselect"));const l=i.selectOOB||h(e,"hx-select-oob"),a=h(e,"hx-select");ft(r,x,w,{select:"unset"===m?null:m||a,selectOOB:l,eventInfo:n,anchor:n.pathInfo.anchor,contextElement:e,afterSwapCallback:function(){if(be(o,/HX-Trigger-After-Swap:/i)){let t=e;E(e)||(t=c().body),ht(o,"HX-Trigger-After-Swap",t)}},afterSettleCallback:function(){if(be(o,/HX-Trigger-After-Settle:/i)){let t=e;E(e)||(t=c().body),ht(o,"HX-Trigger-After-Settle",t)}},beforeSwapCallback:function(){var e;u.type&&(Zt(c().body,"htmx:beforeHistoryUpdate",C({history:u},n)),"push"===u.type?(e=u.path,t.config.getCacheBusterParam&&(F(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),"&")||F(e,"?"))&&(e=e.slice(0,-1)),t.config.historyEnabled&&history.pushState({htmx:!0},"",e),Qt(e),Zt(c().body,"htmx:pushedIntoHistory",{path:u.path})):(function(e){t.config.historyEnabled&&history.replaceState({htmx:!0},"",e),Qt(e)}(u.path),Zt(c().body,"htmx:replacedInHistory",{path:u.path})))}})}p&&Kt(e,"htmx:responseError",C({error:"Response Status Error Code "+o.status+" from "+n.pathInfo.requestPath},n))}}Qt(location.pathname+location.search);const Te={};function Re(t,e,n){if(null==e&&(e=[]),null==t)return e;null==n&&(n=[]);const o=l(t,"hx-ext");return o&&S(o.split(","),function(t){if("ignore:"!=(t=t.replace(/ /g,"")).slice(0,7)){if(n.indexOf(t)<0){const n=Te[t];n&&e.indexOf(n)<0&&e.push(n)}}else n.push(t.slice(7))}),Re(N(a(t)),e,n)}var qe=!1;function Ae(t){qe||"complete"===c().readyState?t():c().addEventListener("DOMContentLoaded",t)}return c().addEventListener("DOMContentLoaded",function(){qe=!0}),Ae(function(){(function(){const e=function(){const t=c().querySelector('meta[name="htmx-config"]');return t?O(t.content):null}();e&&(t.config=C(t.config,e))})(),function(){if(!1!==t.config.includeIndicatorStyles){const e=t.config.inlineStyleNonce?` nonce="${t.config.inlineStyleNonce}"`:"",n=t.config.indicatorClass,o=t.config.requestClass;c().head.insertAdjacentHTML("beforeend",`<style${e}>.${n}{opacity:0;visibility: hidden} .${o} .${n}, .${o}.${n}{opacity:1;visibility: visible;transition: opacity 200ms ease-in}</style>`)}}();let e=c().body;zt(e);const n=c().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(t){const e=v(t.detail.elt||t.target);e&&e.xhr&&e.xhr.abort()});const o=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(function(e){ee();const n=function(t){if(!H())return null;t=T(t);const e=O(sessionStorage.getItem("htmx-history-cache"))||[];for(let n=0;n<e.length;n++)if(e[n].url===t)return e[n];return null}(e=e||location.pathname+location.search);if(n){const t={swapStyle:"innerHTML",swapDelay:0,settleDelay:0,scroll:n.scroll},o={path:e,item:n,historyElt:te(),swapSpec:t};Zt(c().body,"htmx:historyCacheHit",o)&&(ft(o.historyElt,n.content,t,{contextElement:o.historyElt,title:n.title}),Qt(o.path),Zt(c().body,"htmx:historyRestore",o))}else t.config.refreshOnHistoryMiss?t.location.reload(!0):function(e){const n=new XMLHttpRequest,o={swapStyle:"innerHTML",swapDelay:0,settleDelay:0},r={path:e,xhr:n,historyElt:te(),swapSpec:o};n.open("GET",e,!0),t.config.historyRestoreAsHxRequest&&n.setRequestHeader("HX-Request","true"),n.setRequestHeader("HX-History-Restore-Request","true"),n.setRequestHeader("HX-Current-URL",location.href),n.onload=function(){this.status>=200&&this.status<400?(r.response=this.response,Zt(c().body,"htmx:historyCacheMissLoad",r),ft(r.historyElt,r.response,o,{contextElement:r.historyElt,historyRequest:!0}),Qt(r.path),Zt(c().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:r.response})):Kt(c().body,"htmx:historyCacheMissLoadError",r)},Zt(c().body,"htmx:historyCacheMiss",r)&&n.send()}(e)}(),S(n,function(t){Zt(t,"htmx:restored",{document:c(),triggerEvent:Zt})})):o&&o(e)},A().setTimeout(function(){Zt(e,"htmx:load",{}),e=null},0)}),t}();export{t};
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.