1(function(){"use strict";(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:!0,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0},parseInterval:null,_:null,version:"2.0.4"};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:addTriggerHandler,bodyContains:bodyContains,canAccessLocalStorage:canAccessLocalStorage,findThisElement:findThisElement,filterValues:filterValues,swap:swap,hasAttribute:hasAttribute,getAttributeValue:getAttributeValue,getClosestAttributeValue:getClosestAttributeValue,getClosestMatch:getClosestMatch,getExpressionVars:getExpressionVars,getHeaders:getHeaders,getInputValues:getInputValues,getInternalData:getInternalData,getSwapSpecification:getSwapSpecification,getTriggerSpecs:getTriggerSpecs,getTarget:getTarget,makeFragment:makeFragment,mergeObjects:mergeObjects,makeSettleInfo:makeSettleInfo,oobSwap:oobSwap,querySelectorExt:querySelectorExt,settleImmediately:settleImmediately,shouldCancel:shouldCancel,triggerEvent:triggerEvent,triggerErrorEvent:triggerErrorEvent,withExtensions: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 s=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)return s&&("*"===s||s.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){const n=e instanceof Element&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector);return!!n&&n.call(e,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){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:localStorageTest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function normalizePath(e){try{const t=new URL(e);return t&&(e=t.pathname+t.search),/^\/$/.test(e)||(e=e.replace(/\/+$/,"")),e}catch(t){return 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&&console.log(t,e,n)}}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){if((e=asElement(resolveTarget(e)))&&e.closest)return e.closest(t);do{if(null==e||matches(e,t))return e}while(e=e&&asElement(parentElt(e)));return 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 s=t[o];","!==s||0!==e?"<"===s?e++:"/"===s&&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=[],s=[];for(;r.length>0;){const t=normalizeSelector(r.shift());let a;
10===t.indexOf("closest ")?a=closest(asElement(e),normalizeSelector(t.substr(8))):0===t.indexOf("find ")?a=find(asParentNode(e),normalizeSelector(t.substr(5))):"next"===t||"nextElementSibling"===t?a=asElement(e).nextElementSibling:0===t.indexOf("next ")?a=scanForwardQuery(e,normalizeSelector(t.substr(5)),!!n):"previous"===t||"previousElementSibling"===t?a=asElement(e).previousElementSibling:0===t.indexOf("previous ")?a=scanBackwardsQuery(e,normalizeSelector(t.substr(9)),!!n):"document"===t?a=document:"window"===t?a=window:"body"===t?a=document.body:"root"===t?a=getRootNode(e,!!n):"host"===t?a=e.getRootNode().host:s.push(t),a&&o.push(a)}if(s.length>0){const t=s.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);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){const t=htmx.config.attributesToSettle;for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}function cloneAttributes(e,t){forEach(e.attributes,(function(n){!t.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&e.removeAttribute(n.name)})),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="#"+getRawAttribute(t,"id"),s="outerHTML";"true"===e||(e.indexOf(":")>0?(s=e.substring(0,e.indexOf(":")),o=e.substring(e.indexOf(":")+1)):s=e),t.removeAttribute("hx-swap-oob"),t.removeAttribute("data-hx-swap-oob");const a=querySelectorAllExt(r,o,!1);return a?(forEach(a,(function(e){let r;const o=t.cloneNode(!0);r=getDocument().createDocumentFragment(),r.appendChild(o),isInlineSwap(s,e)||(r=asParentNode(o));const a={shouldSwap:!0,target:e,fragment:r};triggerEvent(e,"htmx:oobBeforeSwap",a)&&(e=a.target,a.shouldSwap&&(handlePreservedElements(r),swapWithStyle(s,e,e,r,n),restorePreservedElements()),forEach(n.elts,(function(e){triggerEvent(e,"htmx:oobAfterSwap",a)})))})),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)}))}
1function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),(function(t){const r=getRawAttribute(t,"id");if(r&&r.length>0){const o=r.replace("'","\\'"),s=t.tagName.replace(":","\\:"),a=asParentNode(e),i=a&&a.querySelector(s+"[id='"+o+"']");if(i&&i!==a){const e=t.cloneNode();cloneAttributes(t,i),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;if(e.attributes)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),e.children&&forEach(e.children,(function(e){cleanUpElement(e)}))}function swapOuterHTML(e,t,n){if(e instanceof Element&&"BODY"===e.tagName)return swapInnerHTML(e,t,n);let r;const o=e.previousSibling,s=parentElt(e);if(s){for(insertNodesBefore(s,e,t,n),r=null==o?s.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 instanceof Element?e.remove():e.parentNode.removeChild(e)}}function swapAfterBegin(e,t,n){return insertNodesBefore(e,e.firstChild,t,n)}function swapBeforeBegin(e,t,n){return insertNodesBefore(parentElt(e),e,t,n)}function 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 s=getExtensions(t);for(let t=0;t<s.length;t++){const a=s[t];try{const t=a.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={}),e=resolveTarget(e);const o=r.contextElement?getRootNode(r.contextElement,!1):getDocument(),s=document.activeElement;let a={};try{a={elt:s,start:s?s.selectionStart:null,end:s?s.selectionEnd:null}}catch(e){}const i=makeSettleInfo(e);if("textContent"===n.swapStyle)e.textContent=t;else{let s=makeFragment(t);if(i.title=s.title,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 a=n[1]||"true",l=s.querySelector("#"+r);l&&oobSwap(a,l,i,o)}}
1if(findAndSwapOobElements(s,i,o),forEach(findAll(s,"template"),(function(e){e.content&&findAndSwapOobElements(e.content,i,o)&&e.remove()})),r.select){const e=getDocument().createDocumentFragment();forEach(s.querySelectorAll(r.select),(function(t){e.appendChild(t)})),s=e}handlePreservedElements(s),swapWithStyle(n.swapStyle,r.contextElement,e,s,i),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(i.elts,(function(e){e.classList&&e.classList.add(htmx.config.settlingClass),triggerEvent(e,"htmx:afterSwap",r.eventInfo)})),r.afterSwapCallback&&r.afterSwapCallback(),n.ignoreTitle||handleTitle(i.title);const l=function(){if(forEach(i.tasks,(function(e){e.call()})),forEach(i.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(i.elts,n),r.afterSettleCallback&&r.afterSettleCallback()};n.settleDelay>0?getWindow().setTimeout(l,n.settleDelay):l()}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_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 (",s=null;for(;t.length>0;){const a=t[0];if("]"===a){if(r--,0===r){null===s&&(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"["===a&&r++;isPossibleRelativeReference(a,s,n)?o+="(("+n+"."+a+") ? ("+n+"."+a+") : (window."+a+"))":o+=a,s=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),(s=maybeGenerateConditional(e,o,"event"))&&(t.eventFilter=s),r.push(t)}else{const t={trigger:n};var s;for((s=maybeGenerateConditional(e,o,"event"))&&(t.eventFilter=s),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 a=consumeCSSSelector(o);else if("closest"===(a=consumeUntil(o,WHITESPACE_OR_COMMA))||"find"===a||"next"===a||"previous"===a){o.shift();const e=consumeCSSSelector(o);e.length>0&&(a+=" "+e)}t.from=a}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=getDocument().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){const n=asElement(t);if(!n)return!1;if("submit"===e.type||"click"===e.type){if("FORM"===n.tagName)return!0;if(matches(n,'input[type="submit"], button')&&(matches(n,"[form]")||null!==closest(n,"form")))return!0;if(n instanceof HTMLAnchorElement&&n.href&&("#"===n.getAttribute("href")||0!==n.getAttribute("href").indexOf("#")))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 s=getInternalData(e);let a;a=r.from?querySelectorAllExt(e,r.from):[e],r.changed&&("lastValue"in s||(s.lastValue=new WeakMap),a.forEach((function(e){s.lastValue.has(r)||s.lastValue.set(r,new WeakMap),s.lastValue.get(r).set(e,e.value)}))),forEach(a,(function(a){const i=function(n){if(!bodyContains(e))return void a.removeEventListener(r.trigger,i);if(ignoreBoostedAnchorCtrlClick(e,n))return;if((o||shouldCancel(n,e))&&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(s.triggeredOnce)return;s.triggeredOnce=!0}if(r.changed){const e=event.target,t=e.value,n=s.lastValue.get(r);if(n.has(e)&&n.get(e)===t)return;n.set(e,t)}if(s.delayed&&clearTimeout(s.delayed),s.throttle)return;r.throttle>0?s.throttle||(triggerEvent(e,"htmx:trigger"),t(e,n),s.throttle=getWindow().setTimeout((function(){s.throttle=null}),r.throttle)):r.delay>0?s.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:i,on:a}),a.addEventListener(r.trigger,i)}))}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;
1return forEach(VERBS,(function(o){if(hasAttribute(e,"hx-"+o)){const s=getAttributeValue(e,"hx-"+o);r=!0,t.path=s,t.verb=o,n.forEach((function(n){addTriggerHandler(e,n,t,(function(e,t){const n=asElement(e);closest(n,htmx.config.disableSelector)?cleanUpElement(n):issueAjaxRequest(o,s,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=closest(asElement(e.target),"button, input[type='submit']"),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){const t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getRelatedFormData(e){const t=closest(asElement(e.target),"button, input[type='submit']");if(!t)return;const n=resolveTarget("#"+getRawAttribute(t,"form"),t.getRootNode())||closest(t,"form");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 s=function(t){maybeEval(e,(function(){eltIsDisabled(e)||(o||(o=new Function("event",n)),o.call(e,t))}))};e.addEventListener(t,s),r.onHandlers.push({event:t,listener:s})}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){if(closest(e,htmx.config.disableSelector))return void cleanUpElement(e);const t=getInternalData(e),n=attributeHash(e);if(t.initHash!==n){deInitNode(e),t.initHash=n,triggerEvent(e,"htmx:beforeProcessNode");const r=getTriggerSpecs(e);processVerbs(e,t,r)||("true"===getClosestAttributeValue(e,"hx-boost")?boostElement(e,t,r):hasAttribute(e,"hx-trigger")&&r.forEach((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 processNode(e){closest(e=resolveTarget(e),htmx.config.disableSelector)?cleanUpElement(e):(initNode(e),forEach(findElementsToProcess(e),(function(e){initNode(e)}
1)),forEach(findHxOnWildcardElements(e),processHxOnWildcard))}function kebabEventName(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function makeEvent(e,t){let n;return window.CustomEvent&&"function"==typeof window.CustomEvent?n=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}):(n=getDocument().createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,t)),n}function triggerErrorEvent(e,t,n){triggerEvent(e,t,mergeObjects({error:t},n))}function ignoreEventForLogging(e){return"htmx:afterProcessNode"===e}function withExtensions(e,t){forEach(getExtensions(e),(function(e){try{t(e)}catch(e){logError(e)}}))}function logError(e){console.error?console.error(e):console.log&&console.log("ERROR: ",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 s=kebabEventName(t);if(o&&s!==t){const t=makeEvent(s,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=location.pathname+location.search;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 localStorage.removeItem("htmx-history-cache");e=normalizePath(e);const s=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(let t=0;t<s.length;t++)if(s[t].url===e){s.splice(t,1);break}const a={url:e,content:n,title:r,scroll:o};for(triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:a,cache:s}),s.push(a);s.length>htmx.config.historyCacheSize;)s.shift();for(;s.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(s));break}catch(e){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:e,cache:s}),s.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);const t=parseJSON(localStorage.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)}
1)),forEach(findAll(n,"[data-disabled-by-htmx]"),(function(e){e.removeAttribute("disabled")})),n.innerHTML}function saveCurrentPageToHistory(){const e=getHistoryElement(),t=currentPathForHistory||location.pathname+location.search;let n;try{n=getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]')}catch(e){n=getDocument().querySelector('[hx-history="false"],[data-hx-history="false"]')}n||(triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:t,historyElt:e}),saveToHistoryCache(t,e)),htmx.config.historyEnabled&&history.replaceState({htmx:!0},getDocument().title,window.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),currentPathForHistory=e}function replaceUrlInHistory(e){htmx.config.historyEnabled&&history.replaceState({htmx:!0},"",e),currentPathForHistory=e}function settleImmediately(e){forEach(e,(function(e){e.call(void 0)}))}function loadHistoryFromServer(e){const t=new XMLHttpRequest,n={path:e,xhr:t};triggerEvent(getDocument().body,"htmx:historyCacheMiss",n),t.open("GET",e,!0),t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",getDocument().location.href),t.onload=function(){if(this.status>=200&&this.status<400){triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",n);const t=makeFragment(this.response),r=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t,o=getHistoryElement(),s=makeSettleInfo(o);handleTitle(t.title),handlePreservedElements(t),swapInnerHTML(o,r,s),restorePreservedElements(),settleImmediately(s.tasks),currentPathForHistory=e,triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:this.response})}else triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",n)},t.send()}function restoreHistory(e){saveCurrentPageToHistory();const t=getCachedHistory(e=e||location.pathname+location.search);if(t){const n=makeFragment(t.content),r=getHistoryElement(),o=makeSettleInfo(r);handleTitle(t.title),handlePreservedElements(n),swapInnerHTML(r,n,o),restorePreservedElements(),settleImmediately(o.tasks),getWindow().setTimeout((function(){window.scrollTo(0,t.scroll)}),0),currentPathForHistory=e,triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,item:t})}else htmx.config.refreshOnHistoryMiss?window.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})),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 processInputValue(e,t,n,r,o){if(null!=r&&!haveSeenNode(e,r)){if(e.push(r),shouldInclude(r)){const e=getRawAttribute(r,"name");let s=r.value;r instanceof HTMLSelectElement&&r.multiple&&(s=toArray(r.querySelectorAll("option:checked")).map((function(e){return e.value}))),r instanceof HTMLInputElement&&r.files&&(s=toArray(r.files)),addValueToFormData(e,s,t),o&&validateElement(r,
1n)}r instanceof HTMLFormElement&&(forEach(r.elements,(function(r){e.indexOf(r)>=0?removeValueFromFormData(r.name,r.value,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()||(t.push({elt:n,message:n.validationMessage,validity:n.validity}),triggerEvent(n,"htmx:validation:failed",{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,s=[],a=getInternalData(e);a.lastButtonClicked&&!bodyContains(a.lastButtonClicked)&&(a.lastButtonClicked=null);let i=e instanceof HTMLFormElement&&!0!==e.noValidate||"true"===getAttributeValue(e,"hx-validate");if(a.lastButtonClicked&&(i=i&&!0!==a.lastButtonClicked.formNoValidate),"get"!==t&&processInputValue(n,o,s,closest(e,"form"),i),processInputValue(n,r,s,e,i),a.lastButtonClicked||"BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===getRawAttribute(e,"type")){const t=a.lastButtonClicked||e;addValueToFormData(getRawAttribute(t,"name"),t.value,o)}return forEach(findAttributeTargets(e,"hx-include"),(function(e){processInputValue(n,r,s,asElement(e),i),matches(e,"form")||forEach(asParentNode(e).querySelectorAll(INPUT_SELECTOR),(function(e){processInputValue(n,r,s,e,i)}))})),overrideFormData(r,o),{errors:s,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":getDocument().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={swapStyle: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=(s=n.slice(7).split(":")).pop();var o=s.length>0?s.join(":"):null;r.scroll=e,r.scrollTarget=o}else if(0===n.indexOf("show:")){var s;const e=(s=n.slice(5).split(":")).pop();o=s.length>0?s.join(":"):null;
1r.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)}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){if(null==r&&(r={}),null==e)return r;const o=getAttributeValue(e,t);if(o){let t,s=o.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 Function("return ("+s+")")()}),{}):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)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t){return getValuesForElement(e,"hx-vars",!0,t)}function getHXValsForElement(e,t){return getValuesForElement(e,"hx-vals",!1,t)}function getExpressionVars(e){return mergeObjects(getHXVarsForElement(e),getHXValsForElement(e))}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&&"undefined"!=typeof URL)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})}}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){let r,o;if("function"==typeof URL){o=new URL(t,document.location.href);r=document.location.origin===o.origin}else o=t,r=startsWith(t,document.location.origin);return!(htmx.config.selfRequestsOnly&&!r)&&triggerEvent(e,"htmx:validateUrl",mergeObjects({url:o,sameHost:r},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)return"function"==typeof t[n]?function(){return e[n].apply(e,arguments)}:t[n];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,s){let a=null,i=null;if((o=null!=o?o:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(e,t){a=e,i=t}));null==n&&(n=getDocument().body);const c=o.handler||handleAjaxResponse,u=o.select||null;if(!bodyContains(n))return maybeCall(a),l;const f=o.targetOverride||asElement(getTarget(n));if(null==f||f==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getAttributeValue(n,"hx-target")}),maybeCall(i),l;let g=getInternalData(n);const d=g.lastButtonClicked;if(d){const n=getRawAttribute(d,"formaction");null!=n&&(t=n);const r=getRawAttribute(d,"formmethod");null!=r&&"dialog"!==r.toLowerCase()&&(e=r)}const h=getClosestAttributeValue(n,"hx-confirm");if(void 0===s){if(!1===triggerEvent(n,"htmx:confirm",{target:f,elt:n,path:t,verb:e,triggeringEvent:r,etc:o,issueRequest:function(s){return issueAjaxRequest(e,t,n,r,o,!!s)},question:h}))return maybeCall(a),l}let m=n,p=getClosestAttributeValue(n,"hx-sync"),E=null,v=!1;if(p){const e=p.split(":"),t=e[0].trim();if(m="this"===t?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,t)),p=(e[1]||"drop").trim(),g=getInternalData(m),"drop"===p&&g.xhr&&!0!==g.abortable)return maybeCall(a),l;if("abort"===p){if(g.xhr)return maybeCall(a),l;v=!0}else if("replace"===p)triggerEvent(m,"htmx:abort");else if(0===p.indexOf("queue")){E=(p.split(" ")[1]||"last").trim()}}if(g.xhr){if(!g.abortable){if(null==E){if(r){const e=getInternalData(r);e&&e.triggerSpec&&e.triggerSpec.queue&&(E=e.triggerSpec.queue)}null==E&&(E="last")}return null==g.queuedRequests&&(g.queuedRequests=[]),"first"===E&&0===g.queuedRequests.length||"all"===E?g.queuedRequests.push((function(){issueAjaxRequest(e,t,n,r,o)})):"last"===E&&(g.queuedRequests=[],g.queuedRequests.push((function(){issueAjaxRequest(e,t,n,r,o)}))),maybeCall(a),l}triggerEvent(m,"htmx:abort")}const x=new XMLHttpRequest;g.xhr=x,g.abortable=v;const b=function(){if(g.xhr=null,g.abortable=!1,null!=g.queuedRequests&&g.queuedRequests.length>0){g.queuedRequests.shift()()}},y=getClosestAttributeValue(n,"hx-prompt");if(y){var S=prompt(y);if(null===S||!triggerEvent(n,"htmx:prompt",{prompt:S,target:f}))return maybeCall(a),b(),l}if(h&&!s&&!confirm(h))return maybeCall(a),b(),l;let w=getHeaders(n,f,S);"get"===e||usesFormData(n)||(w["Content-Type"]="application/x-www-form-urlencoded"),o.headers&&(w=mergeObjects(w,o.headers));const C=getInputValues(n,e);let A=C.errors;const T=C.formData;o.values&&overrideFormData(T,formDataFromObject(o.values));const H=overrideFormData(T,formDataFromObject(getExpressionVars(n)));let R=filterValues(H,n);htmx.config.getCacheBusterParam&&"get"===e&&R.set("org.htmx.cache-buster",getRawAttribute(f,"id")||"true"),null!=t&&""!==t||(t=getDocument().location.href);const O=getValuesForElement(n,"hx-request"),I=getInternalData(n).boosted;let D=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0;const N={boosted:I,useUrlParams:D,formData:R,parameters:formDataProxy(R),unfilteredFormData:H,unfilteredParameters:formDataProxy(H),headers:w,target:f,verb:e,errors:A,withCredentials:o.credentials||O.credentials||htmx.config.withCredentials,timeout:o.timeout||O.timeout||htmx.config.timeout,path:t,triggeringEvent:r};
1if(!triggerEvent(n,"htmx:configRequest",N))return maybeCall(a),b(),l;if(t=N.path,e=N.verb,w=N.headers,R=formDataFromObject(N.parameters),A=N.errors,D=N.useUrlParams,A&&A.length>0)return triggerEvent(n,"htmx:validation:halted",N),maybeCall(a),b(),l;const L=t.split("#"),P=L[0],q=L[1];let F=t;if(D){F=P;!R.keys().next().done&&(F.indexOf("?")<0?F+="?":F+="&",F+=urlEncode(R),q&&(F+="#"+q))}if(!verifyPath(n,F,N))return triggerErrorEvent(n,"htmx:invalidPath",N),maybeCall(i),l;if(x.open(e.toUpperCase(),F,!0),x.overrideMimeType("text/html"),x.withCredentials=N.withCredentials,x.timeout=N.timeout,O.noHeaders);else for(const e in w)if(w.hasOwnProperty(e)){const t=w[e];safelySetHeaderValue(x,e,t)}const M={xhr:x,target:f,requestConfig:N,etc:o,boosted:I,select:u,pathInfo:{requestPath:t,finalRequestPath:F,responsePath:null,anchor:q}};if(x.onload=function(){try{const e=hierarchyForElt(n);if(M.pathInfo.responsePath=getPathFromResponse(x),c(n,M),!0!==M.keepIndicators&&removeRequestIndicators(k,V),triggerEvent(n,"htmx:afterRequest",M),triggerEvent(n,"htmx:afterOnLoad",M),!bodyContains(n)){let t=null;for(;e.length>0&&null==t;){const n=e.shift();bodyContains(n)&&(t=n)}t&&(triggerEvent(t,"htmx:afterRequest",M),triggerEvent(t,"htmx:afterOnLoad",M))}maybeCall(a),b()}catch(e){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:e},M)),e}},x.onerror=function(){removeRequestIndicators(k,V),triggerErrorEvent(n,"htmx:afterRequest",M),triggerErrorEvent(n,"htmx:sendError",M),maybeCall(i),b()},x.onabort=function(){removeRequestIndicators(k,V),triggerErrorEvent(n,"htmx:afterRequest",M),triggerErrorEvent(n,"htmx:sendAbort",M),maybeCall(i),b()},x.ontimeout=function(){removeRequestIndicators(k,V),triggerErrorEvent(n,"htmx:afterRequest",M),triggerErrorEvent(n,"htmx:timeout",M),maybeCall(i),b()},!triggerEvent(n,"htmx:beforeRequest",M))return maybeCall(a),b(),l;var k=addRequestIndicatorClasses(n),V=disableElements(n);forEach(["loadstart","loadend","progress","abort"],(function(e){forEach([x,x.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",M);const B=D?null:encodeParamsForBody(x,n,R);return x.send(B),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 s=t.pathInfo.finalRequestPath,a=t.pathInfo.responsePath,i=getClosestAttributeValue(e,"hx-push-url"),l=getClosestAttributeValue(e,"hx-replace-url"),c=getInternalData(e).boosted;let u=null,f=null;return i?(u="push",f=i):l?(u="replace",f=l):c&&(u="push",f=a||s),f?"false"===f?{}:("true"===f&&(f=a||s),t.pathInfo.anchor&&-1===f.indexOf("#")&&(f=f+"#"+t.pathInfo.anchor),{type:u,path:f}):{}}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.innerHTML=e:window.document.title=e}}function handleAjaxResponse(e,t){const n=t.xhr;let r=t.target;const o=t.etc,s=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)){saveCurrentPageToHistory();let e=n.getResponseHeader("HX-Location");var a;return 0===e.indexOf("{")&&(a=parseJSON(e),e=a.path,delete a.path),void ajaxHelper("get",e,a).then((function(){pushUrlIntoHistory(e)}))}const i=hasHeader(n,/HX-Refresh:/i)&&"true"===n.getResponseHeader("HX-Refresh");if(hasHeader(n,/HX-Redirect:/i))return t.keepIndicators=!0,location.href=n.getResponseHeader("HX-Redirect"),void(i&&location.reload());if(i)return t.keepIndicators=!0,void location.reload();hasHeader(n,/HX-Retarget:/i)&&("this"===n.getResponseHeader("HX-Retarget")?t.target=e:t.target=asElement(querySelectorExt(e,n.getResponseHeader("HX-Retarget"))));const l=determineHistoryUpdates(e,t),c=resolveResponseHandling(n),u=c.swap;let f=!!c.error,g=htmx.config.ignoreTitle||c.ignoreTitle,d=c.select;c.target&&(t.target=asElement(querySelectorExt(e,c.target)));var h=o.swapOverride;null==h&&c.swapOverride&&(h=c.swapOverride),hasHeader(n,/HX-Retarget:/i)&&("this"===n.getResponseHeader("HX-Retarget")?t.target=e:t.target=asElement(querySelectorExt(e,n.getResponseHeader("HX-Retarget")))),hasHeader(n,/HX-Reswap:/i)&&(h=n.getResponseHeader("HX-Reswap"));var m=n.response,p=mergeObjects({shouldSwap:u,serverResponse:m,isError:f,ignoreTitle:g,selectOverride:d,swapOverride:h},t);
1if((!c.event||triggerEvent(r,c.event,p))&&triggerEvent(r,"htmx:beforeSwap",p)){if(r=p.target,m=p.serverResponse,f=p.isError,g=p.ignoreTitle,d=p.selectOverride,h=p.swapOverride,t.target=r,t.failed=f,t.successful=!f,p.shouldSwap){286===n.status&&cancelPolling(e),withExtensions(e,(function(t){m=t.transformResponse(m,n,e)})),l.type&&saveCurrentPageToHistory();var E=getSwapSpecification(e,h);E.hasOwnProperty("ignoreTitle")||(E.ignoreTitle=g),r.classList.add(htmx.config.swappingClass);let o=null,a=null;s&&(d=s),hasHeader(n,/HX-Reselect:/i)&&(d=n.getResponseHeader("HX-Reselect"));const i=getClosestAttributeValue(e,"hx-select-oob"),c=getClosestAttributeValue(e,"hx-select");let u=function(){try{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}))),swap(r,m,E,{select:d||c,selectOOB:i,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)}maybeCall(o)}})}catch(n){throw triggerErrorEvent(e,"htmx:swapError",t),maybeCall(a),n}},f=htmx.config.globalViewTransitions;if(E.hasOwnProperty("transition")&&(f=E.transition),f&&triggerEvent(e,"htmx:beforeTransition",t)&&"undefined"!=typeof Promise&&document.startViewTransition){const e=new Promise((function(e,t){o=e,a=t})),t=u;u=function(){document.startViewTransition((function(){return t(),e}))}}E.swapDelay>0?getWindow().setTimeout(u,E.swapDelay):u()}f&&triggerErrorEvent(e,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}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}"`:"";getDocument().head.insertAdjacentHTML("beforeend","<style"+e+"> ."+htmx.config.indicatorClass+"{opacity:0} ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; 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))}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.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(),forEac
1h(t,(function(e){triggerEvent(e,"htmx:restored",{document:getDocument(),triggerEvent:triggerEvent})}))):n&&n(e)},getWindow().setTimeout((function(){triggerEvent(e,"htmx:load",{}),e=null}),0)}))})()})(); 2//# sourceMappingURL=htmx.min.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.