From ed4b068127530346345ed16b2e79b33bc5b03d57 Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer
Date: Thu, 8 Jan 2026 16:22:57 +0100
Subject: build: remove webjars and use custom build (#238)
---
src/main/resources/static/main.js | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 src/main/resources/static/main.js
(limited to 'src/main/resources/static/main.js')
diff --git a/src/main/resources/static/main.js b/src/main/resources/static/main.js
new file mode 100644
index 0000000..4a23e45
--- /dev/null
+++ b/src/main/resources/static/main.js
@@ -0,0 +1,2 @@
+(()=>{"use strict";var __webpack_modules__={37(){var htmx=function(){let currentPathForHistory,htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(e,t){return getInputValues(e,t||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0,historyRestoreAsHxRequest:!0,reportValidityOfForms:!1},parseInterval:null,location,_:null,version:"2.0.8"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;let internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", ");function parseInterval(e){if(void 0==e)return;let t=NaN;return isNaN(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))?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){let 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){let r=getAttributeValue(t,n),o=getAttributeValue(t,"hx-disinherit");var i=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)if(i&&("*"===i||i.split(" ").indexOf(n)>=0))return r;else return null;if(o&&("*"===o||o.split(" ").indexOf(n)>=0))return"unset"}return r}function getClosestAttributeValue(e,t){let n=null;if(getClosestMatch(e,function(r){return!!(n=getAttributeValueWithDisinheritance(e,asElement(r),t))}),"unset"!==n)return n}function matches(e,t){return e instanceof Element&&e.matches(t)}function getStartTag(e){let t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function parseHTML(e){return"parseHTMLUnsafe"in Document?Document.parseHTMLUnsafe(e):new DOMParser().parseFromString(e,"text/html")}function takeChildrenFor(e,t){for(;t.childNodes.length>0;)e.append(t.childNodes[0])}function duplicateScript(e){let 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")).forEach(e=>{if(isJavaScriptScriptNode(e)){let t=duplicateScript(e),n=e.parentNode;try{n.insertBefore(t,e)}catch(e){logError(e)}finally{e.remove()}}})}function makeFragment(e){let t,n=e.replace(/
]*)?>[\s\S]*?<\/head>/i,""),r=getStartTag(n);if("html"===r){t=new DocumentFragment;let n=parseHTML(e);takeChildrenFor(t,n.body),t.title=n.title}else if("body"===r){t=new DocumentFragment;let e=parseHTML(n);takeChildrenFor(t,e.body),t.title=e.title}else{let e=parseHTML(''+n+"");(t=e.querySelector("template").content).title=e.title;var o=t.querySelector("title");o&&o.parentNode===t&&(o.remove(),t.title=o.innerText)}return t&&(htmx.config.allowScriptTags?normalizeScriptTags(t):t.querySelectorAll("script").forEach(e=>e.remove())),t}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){let t="htmx-internal-data",n=e[t];return n||(n=e[t]={}),n}function toArray(e){let t=[];if(e)for(let n=0;n=0}function bodyContains(e){return e.getRootNode({composed:!0})===document}function splitOnWhitespace(e){return e.trim().split(/\s+/)}function mergeObjects(e,t){for(let 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(){let e="htmx:sessionStorageTest";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}function normalizePath(e){let t=new URL(e,"http://x");return t&&(e=t.pathname+t.search),"/"!=e&&(e=e.replace(/\/+$/,"")),e}function internalEval(str){return maybeEval(getDocument().body,function(){return eval(str)})}function onLoadHelper(e){return htmx.on("htmx:load",function(t){e(t.detail.elt)})}function logAll(){htmx.logger=function(e,t,n){console&&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){return(e=asElement(resolveTarget(e)))?e.closest(t):null}function startsWith(e,t){return e.substring(0,t.length)===t}function endsWith(e,t){return e.substring(e.length-t.length)===t}function normalizeSelector(e){let 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);let r=[];{let e=0,n=0;for(let o=0;o"===t[o+1]&&e--}n0;){let t,l=normalizeSelector(r.shift());0===l.indexOf("closest ")?t=closest(asElement(e),normalizeSelector(l.slice(8))):0===l.indexOf("find ")?t=find(asParentNode(e),normalizeSelector(l.slice(5))):"next"===l||"nextElementSibling"===l?t=asElement(e).nextElementSibling:0===l.indexOf("next ")?t=scanForwardQuery(e,normalizeSelector(l.slice(5)),!!n):"previous"===l||"previousElementSibling"===l?t=asElement(e).previousElementSibling:0===l.indexOf("previous ")?t=scanBackwardsQuery(e,normalizeSelector(l.slice(9)),!!n):"document"===l?t=document:"window"===l?t=window:"body"===l?t=document.body:"root"===l?t=getRootNode(e,!!n):"host"===l?t=e.getRootNode().host:i.push(l),t&&o.push(t)}if(i.length>0){let t=i.join(","),r=asParentNode(getRootNode(e,!!n));o.push(...toArray(r.querySelectorAll(t)))}return o}var scanForwardQuery=function(e,t,n){let r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let t=0;t=0;t--){let 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){return ready(function(){let o=processEventArgs(e,t,n,r);o.target.addEventListener(o.event,o.listener,o.options)}),isFunction(t)?t:n}function removeEventListenerImpl(e,t,n){return ready(function(){let r=processEventArgs(e,t,n);r.target.removeEventListener(r.event,r.listener)}),isFunction(t)?t:n}let DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(e,t){let n=getClosestAttributeValue(e,t);if(n)if("this"===n)return[findThisElement(e,t)];else{let r=querySelectorAllExt(e,n);if(/(^|,)(\s*)inherit(\s*)($|,)/.test(n)){let n=asElement(getClosestMatch(e,function(n){return n!==e&&hasAttribute(asElement(n),t)}));n&&r.push(...findAttributeTargets(n,t))}return 0===r.length?(logError('The selector "'+n+'" on '+t+" returned no matches!"),[DUMMY_ELT]):r}}function findThisElement(e,t){return asElement(getClosestMatch(e,function(e){return null!=getAttributeValue(asElement(e),t)}))}function getTarget(e){let t=getClosestAttributeValue(e,"hx-target");if(t)if("this"===t)return findThisElement(e,"hx-target");else return querySelectorExt(e,t);return getInternalData(e).boosted?getDocument().body:e}function shouldSettleAttribute(e){return htmx.config.attributesToSettle.includes(e)}function cloneAttributes(e,t){forEach(Array.from(e.attributes),function(n){!t.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&e.removeAttribute(n.name)}),forEach(t.attributes,function(t){shouldSettleAttribute(t.name)&&e.setAttribute(t.name,t.value)})}function isInlineSwap(e,t){let n=getExtensions(t);for(let t=0;t0?(i=e.substring(0,e.indexOf(":")),o=e.substring(e.indexOf(":")+1)):i=e),t.removeAttribute("hx-swap-oob"),t.removeAttribute("data-hx-swap-oob");let l=querySelectorAllExt(r,o,!1);return l.length?(forEach(l,function(e){let r,o=t.cloneNode(!0);(r=getDocument().createDocumentFragment()).appendChild(o),isInlineSwap(i,e)||(r=asParentNode(o));let l={shouldSwap:!0,target:e,fragment:r};triggerEvent(e,"htmx:oobBeforeSwap",l)&&(e=l.target,l.shouldSwap&&(handlePreservedElements(r),swapWithStyle(i,e,e,r,n),restorePreservedElements()),forEach(n.elts,function(e){triggerEvent(e,"htmx:oobAfterSwap",l)}))}),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:t})),e}function restorePreservedElements(){let e=find("#--htmx-preserve-pantry--");if(e){for(let t of[...e.children]){let 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){let 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",""),e=find("#--htmx-preserve-pantry--")),e.moveBefore(n,null)}else e.parentNode.replaceChild(n,e)})}function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),function(t){let r=getRawAttribute(t,"id");if(r&&r.length>0){let o=r.replace("'","\\'"),i=t.tagName.replace(":","\\:"),l=asParentNode(e),s=l&&l.querySelector(i+"[id='"+o+"']");if(s&&s!==l){let e=t.cloneNode();cloneAttributes(t,s),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){let 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;){let 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(;n0}function swap(e,t,n,r){r||(r={});let o=null,i=null,l=function(){maybeCall(r.beforeSwapCallback),e=resolveTarget(e);let i=r.contextElement?getRootNode(r.contextElement,!1):getDocument(),l=document.activeElement,s={};s={elt:l,start:l?l.selectionStart:null,end:l?l.selectionEnd:null};let a=makeSettleInfo(e);if("textContent"===n.swapStyle)e.textContent=t;else{let o=makeFragment(t);if(a.title=r.title||o.title,r.historyRequest&&(o=o.querySelector("[hx-history-elt],[data-hx-history-elt]")||o),r.selectOOB){let e=r.selectOOB.split(",");for(let t=0;t0?getWindow().setTimeout(u,n.settleDelay):u()},s=htmx.config.globalViewTransitions;n.hasOwnProperty("transition")&&(s=n.transition);let a=r.contextElement||getDocument();if(s&&triggerEvent(a,"htmx:beforeTransition",r.eventInfo)&&"u">typeof Promise&&document.startViewTransition){let e=new Promise(function(e,t){o=e,i=t}),t=l;l=function(){document.startViewTransition(function(){return t(),e})}}try{n?.swapDelay&&n.swapDelay>0?getWindow().setTimeout(l,n.swapDelay):l()}catch(e){throw triggerErrorEvent(a,"htmx:swapError",r.eventInfo),maybeCall(i),e}}function handleTriggerHeader(e,t,n){let r=e.getResponseHeader(t);if(0===r.indexOf("{")){let e=parseJSON(r);for(let 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{let e=r.split(",");for(let t=0;t0;){let l=t[0];if("]"===l){if(0==--r){null===i&&(o+="true"),t.shift(),o+=")})";try{let 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"["===l&&r++;isPossibleRelativeReference(l,i,n)?o+="(("+n+"."+l+") ? ("+n+"."+l+") : (window."+l+"))":o+=l,i=t.shift()}}}function consumeUntil(e,t){let n="";for(;e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function consumeCSSSelector(e){let t;return e.length>0&&COMBINED_SELECTOR_START.test(e[0])?(e.shift(),t=consumeUntil(e,COMBINED_SELECTOR_END).trim(),e.shift()):t=consumeUntil(e,WHITESPACE_OR_COMMA),t}let INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(e,t,n){let r=[],o=tokenizeString(t);do{consumeUntil(o,NOT_WHITESPACE);let t=o.length,n=consumeUntil(o,/[,\[\s]/);if(""!==n)if("every"===n){let t={trigger:"every"};consumeUntil(o,NOT_WHITESPACE),t.pollInterval=parseInterval(consumeUntil(o,/[,\[\s]/)),consumeUntil(o,NOT_WHITESPACE);var i=maybeGenerateConditional(e,o,"event");i&&(t.eventFilter=i),r.push(t)}else{let t={trigger:n};var i=maybeGenerateConditional(e,o,"event");for(i&&(t.eventFilter=i),consumeUntil(o,NOT_WHITESPACE);o.length>0&&","!==o[0];){let 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));else if("from"===n&&":"===o[0]){if(o.shift(),COMBINED_SELECTOR_START.test(o[0]))var l=consumeCSSSelector(o);else{var l=consumeUntil(o,WHITESPACE_OR_COMMA);if("closest"===l||"find"===l||"next"===l||"previous"===l){o.shift();let e=consumeCSSSelector(o);e.length>0&&(l+=" "+e)}}t.from=l}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){let t=getAttributeValue(e,"hx-trigger"),n=[];if(t){let 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){let 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{let t=getRawAttribute(e,"method");r=t?t.toLowerCase():"get",(null==(o=getRawAttribute(e,"action"))||""===o)&&(o=location.href),"get"===r&&o.includes("?")&&(o=o.replace(/\?[^#]+/,""))}n.forEach(function(n){addEventListener(e,function(e,t){let n=asElement(e);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(r,o,n,t)},t,n,!0)})}}function shouldCancel(e,t){if("submit"===e.type&&"FORM"===t.tagName)return!0;if("click"===e.type){let e=t.closest('input[type="submit"], button');if(e&&e.form&&"submit"===e.type)return!0;let n=t.closest("a"),r=/^#.+/;if(n&&n.href&&!r.test(n.getAttribute("href")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(e,t){return getInternalData(e).boosted&&e instanceof HTMLAnchorElement&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function maybeFilterEvent(e,t,n){let r=e.eventFilter;if(r)try{return!0!==r.call(t,n)}catch(t){let e=r.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:t,source:e}),!0}return!1}function addEventListener(e,t,n,r,o){let i,l=getInternalData(e);i=r.from?querySelectorAllExt(e,r.from):[e],r.changed&&("lastValue"in l||(l.lastValue=new WeakMap),i.forEach(function(e){l.lastValue.has(r)||l.lastValue.set(r,new WeakMap),l.lastValue.get(r).set(e,e.value)})),forEach(i,function(i){let s=function(n){if(!bodyContains(e))return void i.removeEventListener(r.trigger,s);if(ignoreBoostedAnchorCtrlClick(e,n)||((o||shouldCancel(n,i))&&n.preventDefault(),maybeFilterEvent(r,e,n)))return;let a=getInternalData(n);if(a.triggerSpec=r,null==a.handledFor&&(a.handledFor=[]),0>a.handledFor.indexOf(e)){if(a.handledFor.push(e),r.consume&&n.stopPropagation(),r.target&&n.target&&!matches(asElement(n.target),r.target))return;if(r.once)if(l.triggeredOnce)return;else l.triggeredOnce=!0;if(r.changed){let e=n.target,t=e.value,o=l.lastValue.get(r);if(o.has(e)&&o.get(e)===t)return;o.set(e,t)}if(l.delayed&&clearTimeout(l.delayed),l.throttle)return;r.throttle>0?l.throttle||(triggerEvent(e,"htmx:trigger"),t(e,n),l.throttle=getWindow().setTimeout(function(){l.throttle=null},r.throttle)):r.delay>0?l.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:s,on:i}),i.addEventListener(r.trigger,s)})}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){!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){let o=function(){n.loaded||(n.loaded=!0,triggerEvent(e,"htmx:trigger"),t(e))};r>0?getWindow().setTimeout(o,r):o()}function processVerbs(e,t,n){let r=!1;return forEach(VERBS,function(o){if(hasAttribute(e,"hx-"+o)){let i=getAttributeValue(e,"hx-"+o);r=!0,t.path=i,t.verb=o,n.forEach(function(n){addTriggerHandler(e,n,t,function(e,t){let n=asElement(e);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(o,i,n,t)})})}}),r}function addTriggerHandler(e,t,n,r){if("revealed"===t.trigger)initScrollHandler(),addEventListener(e,r,n,t),maybeReveal(asElement(e));else if("intersect"===t.trigger){let o={};t.root&&(o.root=querySelectorExt(e,t.root)),t.threshold&&(o.threshold=parseFloat(t.threshold)),new IntersectionObserver(function(t){for(let n=0;n0?(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){let t=asElement(e);if(!t)return!1;let n=t.attributes;for(let e=0;e", "+e).join(""))}}function maybeSetLastButtonClicked(e){let t=getTargetButton(e.target),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){let t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getTargetButton(e){return closest(asElement(e),"button, input[type='submit']")}function getRelatedForm(e){return e.form||closest(e,"form")}function getRelatedFormData(e){let t=getTargetButton(e.target);if(!t)return;let n=getRelatedForm(t);if(n)return getInternalData(n)}function initButtonTracking(e){e.addEventListener("click",maybeSetLastButtonClicked),e.addEventListener("focusin",maybeSetLastButtonClicked),e.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(e,t,n){let r,o=getInternalData(e);Array.isArray(o.onHandlers)||(o.onHandlers=[]);let i=function(t){maybeEval(e,function(){eltIsDisabled(e)||(r||(r=Function("event",n)),r.call(e,t))})};e.addEventListener(t,i),o.onHandlers.push({event:t,listener:i})}function processHxOnWildcard(e){deInitOnHandlers(e);for(let t=0;thtmx.config.historyCacheSize;)i.shift();for(;i.length>0;)try{sessionStorage.setItem("htmx-history-cache",JSON.stringify(i));break}catch(e){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:e,cache:i}),i.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);let t=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let n=0;n=200&&this.status<400?(r.response=this.response,triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",r),swap(r.historyElt,r.response,n,{contextElement:r.historyElt,historyRequest:!0}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:r.response})):triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",r)},triggerEvent(getDocument().body,"htmx:historyCacheMiss",r)&&t.send()}function restoreHistory(e){saveCurrentPageToHistory();let t=getCachedHistory(e=e||location.pathname+location.search);if(t){let n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0,scroll:t.scroll},r={path:e,item:t,historyElt:getHistoryElement(),swapSpec:n};triggerEvent(getDocument().body,"htmx:historyCacheHit",r)&&(swap(r.historyElt,t.content,n,{contextElement:r.historyElt,title:t.title}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",r))}else htmx.config.refreshOnHistoryMiss?htmx.location.reload(!0):loadHistoryFromServer(e)}function addRequestIndicatorClasses(e){let t=findAttributeTargets(e,"hx-indicator");return null==t&&(t=[e]),forEach(t,function(e){let 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){let 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){let 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;n0>t.indexOf(e)):r.filter(e=>e!==t),n.delete(e),forEach(r,t=>n.append(e,t))}}function getValueFromInput(e){return e instanceof HTMLSelectElement&&e.multiple?toArray(e.querySelectorAll("option:checked")).map(function(e){return e.value}):e instanceof HTMLInputElement&&e.files?toArray(e.files):e.value}function processInputValue(e,t,n,r,o){!(null==r||haveSeenNode(e,r))&&(e.push(r),shouldInclude(r)&&(addValueToFormData(getRawAttribute(r,"name"),getValueFromInput(r),t),o&&validateElement(r,n)),r instanceof HTMLFormElement&&(forEach(r.elements,function(r){e.indexOf(r)>=0?removeValueFromFormData(r.name,getValueFromInput(r),t):e.push(r),o&&validateElement(r,n)}),new FormData(r).forEach(function(e,n){e instanceof File&&""===e.name||addValueToFormData(n,e,t)})))}function validateElement(e,t){let n=e;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})&&!t.length&&htmx.config.reportValidityOfForms&&n.reportValidity(),t.push({elt:n,message:n.validationMessage,validity:n.validity})))}function overrideFormData(e,t){for(let n of t.keys())e.delete(n);return t.forEach(function(t,n){e.append(n,t)}),e}function getInputValues(e,t){let n=[],r=new FormData,o=new FormData,i=[],l=getInternalData(e);l.lastButtonClicked&&!bodyContains(l.lastButtonClicked)&&(l.lastButtonClicked=null);let s=e instanceof HTMLFormElement&&!0!==e.noValidate||"true"===getAttributeValue(e,"hx-validate");if(l.lastButtonClicked&&(s=s&&!0!==l.lastButtonClicked.formNoValidate),"get"!==t&&processInputValue(n,o,i,getRelatedForm(e),s),processInputValue(n,r,i,e,s),l.lastButtonClicked||"BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===getRawAttribute(e,"type")){let t=l.lastButtonClicked||e;addValueToFormData(getRawAttribute(t,"name"),t.value,o)}return forEach(findAttributeTargets(e,"hx-include"),function(e){processInputValue(n,r,i,asElement(e),s),matches(e,"form")||forEach(asParentNode(e).querySelectorAll(INPUT_SELECTOR),function(e){processInputValue(n,r,i,e,s)})}),overrideFormData(r,o),{errors:i,formData:r,values:formDataProxy(r)}}function appendParam(e,t,n){""!==e&&(e+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));let 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){let r={"HX-Request":"true","HX-Trigger":getRawAttribute(e,"id"),"HX-Trigger-Name":getRawAttribute(e,"name"),"HX-Target":getAttributeValue(t,"id"),"HX-Current-URL":location.href};return getValuesForElement(e,"hx-headers",!1,r),void 0!==n&&(r["HX-Prompt"]=n),getInternalData(e).boosted&&(r["HX-Boosted"]="true"),r}function filterValues(e,t){let n=getClosestAttributeValue(t,"hx-params");if(!n)return e;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;let 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}}function isAnchorLink(e){return!!getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")>=0}function getSwapSpecification(e,t){let 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){let e=splitOnWhitespace(n);if(e.length>0)for(let t=0;t0?o.join(":"):null;r.scroll=e,r.scrollTarget=i}else if(0===n.indexOf("show:")){var o=n.slice(5).split(":");let e=o.pop();var i=o.length>0?o.join(":"):null;r.show=e,r.showTarget=i}else 0===n.indexOf("focus-scroll:")?r.focusScroll="true"==n.slice(13):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){let n=e[0],r=e[e.length-1];if(t.scroll){var o=null;t.scrollTarget&&(o=asElement(querySelectorExt(n,t.scrollTarget))),"top"===t.scroll&&(n||o)&&((o=o||n).scrollTop=0),"bottom"===t.scroll&&(r||o)&&((o=o||r).scrollTop=o.scrollHeight),"number"==typeof t.scroll&&getWindow().setTimeout(function(){window.scrollTo(0,t.scroll)},0)}if(t.show){var o=null;if(t.showTarget){let e=t.showTarget;"window"===t.showTarget&&(e="body"),o=asElement(querySelectorExt(n,e))}"top"===t.show&&(n||o)&&(o=o||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===t.show&&(r||o)&&(o=o||r).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(e,t,n,r,o){if(null==r&&(r={}),null==e)return r;let i=getAttributeValue(e,t);if(i){let t,l=i.trim(),s=n;if("unset"===l)return null;for(let n in 0===l.indexOf("javascript:")?(l=l.slice(11),s=!0):0===l.indexOf("js:")&&(l=l.slice(3),s=!0),0!==l.indexOf("{")&&(l="{"+l+"}"),t=s?maybeEval(e,function(){return o?Function("event","return ("+l+")").call(e,o):Function("return ("+l+")").call(e)},{}):parseJSON(l))t.hasOwnProperty(n)&&null==r[n]&&(r[n]=t[n])}return getValuesForElement(asElement(parentElt(e)),t,n,r,o)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t,n){return getValuesForElement(e,"hx-vars",!0,n,t)}function getHXValsForElement(e,t,n){return getValuesForElement(e,"hx-vals",!1,n,t)}function getExpressionVars(e,t){return mergeObjects(getHXVarsForElement(e,t),getHXValsForElement(e,t))}function safelySetHeaderValue(e,t,n){if(null!==n)try{e.setRequestHeader(t,n)}catch(r){e.setRequestHeader(t,encodeURIComponent(n)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function getPathFromResponse(e){if(e.responseURL)try{let 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)return issueAjaxRequest(e,t,null,null,{returnPromise:!0});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,swapOverride:n.swap,select:n.select,returnPromise:!0,push:n.push,replace:n.replace,selectOOB:n.selectOOB})}}function hierarchyForElt(e){let t=[];for(;e;)t.push(e),e=e.parentElement;return t}function verifyPath(e,t,n){let r=new URL(t,"about:"!==location.protocol?location.href:window.origin),o=("about:"!==location.protocol?location.origin:window.origin)===r.origin;return(!htmx.config.selfRequestsOnly||!!o)&&triggerEvent(e,"htmx:validateUrl",mergeObjects({url:r,sameHost:o},n))}function formDataFromObject(e){if(e instanceof FormData)return e;let t=new FormData;for(let 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){let r=Reflect.get(t,n);return"function"==typeof r?function(){return r.apply(e,arguments)}:r}if("toJSON"===n)return()=>Object.fromEntries(e);if(n in t&&"function"==typeof t[n])return function(){return e[n].apply(e,arguments)};let r=e.getAll(n);return 0===r.length?void 0:1===r.length?r[0]:formDataArrayProxy(t,n,r)},set:function(e,t,n){return"string"==typeof t&&(e.delete(t),n&&"function"==typeof n.forEach?n.forEach(function(n){e.append(t,n)}):"object"!=typeof n||n instanceof Blob?e.append(t,n):e.append(t,JSON.stringify(n)),!0)},deleteProperty:function(e,t){return"string"==typeof t&&e.delete(t),!0},ownKeys:function(e){return Reflect.ownKeys(Object.fromEntries(e))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(e),t)}})}function issueAjaxRequest(e,t,n,r,o,i){let l=null,s=null;if((o=null!=o?o:{}).returnPromise&&"u">typeof Promise)var a=new Promise(function(e,t){l=e,s=t});null==n&&(n=getDocument().body);let u=o.handler||handleAjaxResponse,c=o.select||null;if(!bodyContains(n))return maybeCall(l),a;let f=o.targetOverride||asElement(getTarget(n));if(null==f||f==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getClosestAttributeValue(n,"hx-target")}),maybeCall(s),a;let h=getInternalData(n),d=h.lastButtonClicked;if(d){let n=getRawAttribute(d,"formaction");null!=n&&(t=n);let r=getRawAttribute(d,"formmethod");if(null!=r)if(!VERBS.includes(r.toLowerCase()))return maybeCall(l),a;else e=r}let p=getClosestAttributeValue(n,"hx-confirm");if(void 0===i){let i=function(i){return issueAjaxRequest(e,t,n,r,o,!!i)},s={target:f,elt:n,path:t,verb:e,triggeringEvent:r,etc:o,issueRequest:i,question:p};if(!1===triggerEvent(n,"htmx:confirm",s))return maybeCall(l),a}let g=n,m=getClosestAttributeValue(n,"hx-sync"),y=null,x=!1;if(m){let e=m.split(":"),t=e[0].trim();if(g="this"===t?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,t)),m=(e[1]||"drop").trim(),h=getInternalData(g),"drop"===m&&h.xhr&&!0!==h.abortable)return maybeCall(l),a;if("abort"===m)if(h.xhr)return maybeCall(l),a;else x=!0;else"replace"===m?triggerEvent(g,"htmx:abort"):0===m.indexOf("queue")&&(y=(m.split(" ")[1]||"last").trim())}if(h.xhr)if(h.abortable)triggerEvent(g,"htmx:abort");else{if(null==y){if(r){let e=getInternalData(r);e&&e.triggerSpec&&e.triggerSpec.queue&&(y=e.triggerSpec.queue)}null==y&&(y="last")}return null==h.queuedRequests&&(h.queuedRequests=[]),"first"===y&&0===h.queuedRequests.length?h.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)}):"all"===y?h.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)}):"last"===y&&(h.queuedRequests=[],h.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)})),maybeCall(l),a}let b=new XMLHttpRequest;h.xhr=b,h.abortable=x;let v=function(){h.xhr=null,h.abortable=!1,null!=h.queuedRequests&&h.queuedRequests.length>0&&h.queuedRequests.shift()()},w=getClosestAttributeValue(n,"hx-prompt");if(w){var S=prompt(w);if(null===S||!triggerEvent(n,"htmx:prompt",{prompt:S,target:f}))return maybeCall(l),v(),a}if(p&&!i&&!confirm(p))return maybeCall(l),v(),a;let E=getHeaders(n,f,S);"get"===e||usesFormData(n)||(E["Content-Type"]="application/x-www-form-urlencoded"),o.headers&&(E=mergeObjects(E,o.headers));let O=getInputValues(n,e),C=O.errors,T=O.formData;o.values&&overrideFormData(T,formDataFromObject(o.values));let R=overrideFormData(T,formDataFromObject(getExpressionVars(n,r))),H=filterValues(R,n);htmx.config.getCacheBusterParam&&"get"===e&&H.set("org.htmx.cache-buster",getRawAttribute(f,"id")||"true"),(null==t||""===t)&&(t=location.href);let q=getValuesForElement(n,"hx-request"),L=getInternalData(n).boosted,N=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0,A={boosted:L,useUrlParams:N,formData:H,parameters:formDataProxy(H),unfilteredFormData:R,unfilteredParameters:formDataProxy(R),headers:E,elt:n,target:f,verb:e,errors:C,withCredentials:o.credentials||q.credentials||htmx.config.withCredentials,timeout:o.timeout||q.timeout||htmx.config.timeout,path:t,triggeringEvent:r};if(!triggerEvent(n,"htmx:configRequest",A))return maybeCall(l),v(),a;if(t=A.path,e=A.verb,E=A.headers,H=formDataFromObject(A.parameters),C=A.errors,N=A.useUrlParams,C&&C.length>0)return triggerEvent(n,"htmx:validation:halted",A),maybeCall(l),v(),a;let I=t.split("#"),P=I[0],D=I[1],k=t;if(N&&(k=P,!H.keys().next().done&&(0>k.indexOf("?")?k+="?":k+="&",k+=urlEncode(H),D&&(k+="#"+D))),!verifyPath(n,k,A))return triggerErrorEvent(n,"htmx:invalidPath",A),maybeCall(s),v(),a;if(b.open(e.toUpperCase(),k,!0),b.overrideMimeType("text/html"),b.withCredentials=A.withCredentials,b.timeout=A.timeout,q.noHeaders);else for(let e in E)if(E.hasOwnProperty(e)){let t=E[e];safelySetHeaderValue(b,e,t)}let M={xhr:b,target:f,requestConfig:A,etc:o,boosted:L,select:c,pathInfo:{requestPath:t,finalRequestPath:k,responsePath:null,anchor:D}};if(b.onload=function(){try{let e=hierarchyForElt(n);if(M.pathInfo.responsePath=getPathFromResponse(b),u(n,M),!0!==M.keepIndicators&&removeRequestIndicators(F,B),triggerEvent(n,"htmx:afterRequest",M),triggerEvent(n,"htmx:afterOnLoad",M),!bodyContains(n)){let t=null;for(;e.length>0&&null==t;){let n=e.shift();bodyContains(n)&&(t=n)}t&&(triggerEvent(t,"htmx:afterRequest",M),triggerEvent(t,"htmx:afterOnLoad",M))}maybeCall(l)}catch(e){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:e},M)),e}finally{v()}},b.onerror=function(){removeRequestIndicators(F,B),triggerErrorEvent(n,"htmx:afterRequest",M),triggerErrorEvent(n,"htmx:sendError",M),maybeCall(s),v()},b.onabort=function(){removeRequestIndicators(F,B),triggerErrorEvent(n,"htmx:afterRequest",M),triggerErrorEvent(n,"htmx:sendAbort",M),maybeCall(s),v()},b.ontimeout=function(){removeRequestIndicators(F,B),triggerErrorEvent(n,"htmx:afterRequest",M),triggerErrorEvent(n,"htmx:timeout",M),maybeCall(s),v()},!triggerEvent(n,"htmx:beforeRequest",M))return maybeCall(l),v(),a;var F=addRequestIndicatorClasses(n),B=disableElements(n);forEach(["loadstart","loadend","progress","abort"],function(e){forEach([b,b.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);let X=N?null:encodeParamsForBody(b,n,H);return b.send(X),a}function determineHistoryUpdates(e,t){let n=t.xhr,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)if("false"===r)return{};else return{type:o,path:r};let i=t.pathInfo.finalRequestPath,l=t.pathInfo.responsePath,s=t.etc.push||getClosestAttributeValue(e,"hx-push-url"),a=t.etc.replace||getClosestAttributeValue(e,"hx-replace-url"),u=getInternalData(e).boosted,c=null,f=null;return(s?(c="push",f=s):a?(c="replace",f=a):u&&(c="push",f=l||i),f)?"false"===f?{}:("true"===f&&(f=l||i),t.pathInfo.anchor&&-1===f.indexOf("#")&&(f=f+"#"+t.pathInfo.anchor),{type:c,path:f}):{}}function codeMatches(e,t){return new RegExp(e.code).test(t.toString(10))}function resolveResponseHandling(e){for(var t=0;tn.indexOf(e)){let n=extensions[e];n&&0>t.indexOf(n)&&t.push(n)}}),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){let e=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"",t=htmx.config.indicatorClass,n=htmx.config.requestClass;getDocument().head.insertAdjacentHTML("beforeend",``)}}function getMetaConfig(){let e=getDocument().querySelector('meta[name="htmx-config"]');return e?parseJSON(e.content):null}function mergeMetaConfig(){let e=getMetaConfig();e&&(htmx.config=mergeObjects(htmx.config,e))}return getDocument().addEventListener("DOMContentLoaded",function(){isReady=!0}),ready(function(){mergeMetaConfig(),insertIndicatorStyles();let e=getDocument().body;processNode(e);let t=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(e){let t=getInternalData(e.detail.elt||e.target);t&&t.xhr&&t.xhr.abort()});let n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(restoreHistory(),forEach(t,function(e){triggerEvent(e,"htmx:restored",{document:getDocument(),triggerEvent})})):n&&n(e)},getWindow().setTimeout(function(){triggerEvent(e,"htmx:load",{}),e=null},0)}),htmx}(),__rspack_default_export=htmx}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var __webpack_exports__={};(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__(37);let e={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"numeric",second:"numeric"},t=new Intl.DateTimeFormat("de-DE",e),n=()=>{Array.from(document.getElementsByTagName("time")).forEach(e=>{let n=Date.parse(e.getAttribute("datetime"));isNaN(n)||(e.innerText=t.format(n))})};window.addEventListener("load",n),window.addEventListener("htmx:afterRequest",n)})();var __rspack_exports_target=window;for(var __rspack_i in __webpack_exports__)__rspack_exports_target[__rspack_i]=__webpack_exports__[__rspack_i];__webpack_exports__.__esModule&&Object.defineProperty(__rspack_exports_target,"__esModule",{value:!0})})();
+//# sourceMappingURL=main.js.map
\ No newline at end of file
--
cgit v1.2.3