hexaeight-sessions
Version:
Authenticate Any Email User In Front-End Apps Using HexaEight Sessions
2 lines • 78.1 kB
JavaScript
/*! For license information please see hexaeightAIchat.mjs.LICENSE.txt */
var __webpack_modules__={856:function(e){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:a,seal:i,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t,r){return e.apply(t,r)}),c||(c=function(e,t){return new e(...t)});const u=_(Array.prototype.forEach),f=_(Array.prototype.pop),d=_(Array.prototype.push),h=_(String.prototype.toLowerCase),p=_(String.prototype.toString),m=_(String.prototype.match),g=_(String.prototype.replace),v=_(String.prototype.indexOf),y=_(String.prototype.trim),b=_(Object.prototype.hasOwnProperty),x=_(RegExp.prototype.test),E=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return c(w,t)});var w;function _(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return l(e,t,n)}}function S(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let a=n.length;for(;a--;){let t=n[a];if("string"==typeof t){const e=o(t);e!==t&&(r(n)||(n[a]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function C(t){const r=s(null);for(const[n,o]of e(t))b(t,n)&&(Array.isArray(o)?r[n]=T(o):o&&"object"==typeof o&&o.constructor===Object?r[n]=C(o):r[n]=o);return r}function A(e,t){for(;null!==e;){const r=o(e,t);if(r){if(r.get)return _(r.get);if("function"==typeof r.value)return _(r.value)}e=n(e)}return function(){return null}}const R=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),O=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=a(["#text"]),M=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=i(/<%[\w\W]*|[\w\W]*%>/gm),B=i(/\${[\w\W]*}/gm),Q=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),j=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=i(/^(?:\w+script|data):/i),W=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=i(/^html$/i),Y=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:U,ERB_EXPR:F,TMPLIT_EXPR:B,DATA_ATTR:Q,ARIA_ATTR:z,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:W,DOCTYPE_NAME:V,CUSTOM_ELEMENT:Y});const $=1,J=3,K=7,Z=8,ee=9,te=function(){return"undefined"==typeof window?null:window},re=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const n=e=>t(e);if(n.version="3.1.6",n.removed=[],!r||!r.document||r.document.nodeType!==ee)return n.isSupported=!1,n;let{document:o}=r;const i=o,l=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:w,Node:_,Element:T,NodeFilter:U,NamedNodeMap:F=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:B,DOMParser:Q,trustedTypes:z}=r,X=T.prototype,W=A(X,"cloneNode"),Y=A(X,"remove"),ne=A(X,"nextSibling"),oe=A(X,"childNodes"),ae=A(X,"parentNode");if("function"==typeof w){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,se="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:ue,getElementsByTagName:fe}=o,{importNode:de}=i;let he={};n.isSupported="function"==typeof e&&"function"==typeof ae&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:pe,ERB_EXPR:me,TMPLIT_EXPR:ge,DATA_ATTR:ve,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:Ee}=G;let{IS_ALLOWED_URI:we}=G,_e=null;const Se=S({},[...R,...O,...N,...k,...D]);let Te=null;const Ce=S({},[...M,...I,...q,...P]);let Ae=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,Oe=null,Ne=!0,Le=!0,ke=!1,He=!0,De=!1,Me=!0,Ie=!1,qe=!1,Pe=!1,Ue=!1,Fe=!1,Be=!1,Qe=!0,ze=!1;const je="user-content-";let Xe=!0,We=!1,Ve={},Ye=null;const Ge=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Je=S({},["audio","video","img","source","image","track"]);let Ke=null;const Ze=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let nt=rt,ot=!1,at=null;const it=S({},[et,tt,rt],p);let st=null;const lt=["application/xhtml+xml","text/html"],ct="text/html";let ut=null,ft=null;const dt=o.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"==typeof e||(e={}),e=C(e),st=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?ct:e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===st?p:h,_e=b(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,ut):Se,Te=b(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,ut):Ce,at=b(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,p):it,Ke=b(e,"ADD_URI_SAFE_ATTR")?S(C(Ze),e.ADD_URI_SAFE_ATTR,ut):Ze,$e=b(e,"ADD_DATA_URI_TAGS")?S(C(Je),e.ADD_DATA_URI_TAGS,ut):Je,Ye=b(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,ut):Ge,Re=b(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,ut):{},Oe=b(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,ut):{},Ve=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,He=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Qe=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,Xe=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||j,nt=e.NAMESPACE||rt,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Le=!1),Fe&&(Ue=!0),Ve&&(_e=S({},D),Te=[],!0===Ve.html&&(S(_e,R),S(Te,M)),!0===Ve.svg&&(S(_e,O),S(Te,I),S(Te,P)),!0===Ve.svgFilters&&(S(_e,N),S(Te,I),S(Te,P)),!0===Ve.mathMl&&(S(_e,k),S(Te,q),S(Te,P))),e.ADD_TAGS&&(_e===Se&&(_e=C(_e)),S(_e,e.ADD_TAGS,ut)),e.ADD_ATTR&&(Te===Ce&&(Te=C(Te)),S(Te,e.ADD_ATTR,ut)),e.ADD_URI_SAFE_ATTR&&S(Ke,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Ye===Ge&&(Ye=C(Ye)),S(Ye,e.FORBID_CONTENTS,ut)),Xe&&(_e["#text"]=!0),Ie&&S(_e,["html","head","body"]),_e.table&&(S(_e,["tbody"]),delete Re.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,se=ie.createHTML("")}else void 0===ie&&(ie=re(z,l)),null!==ie&&"string"==typeof se&&(se=ie.createHTML(""));a&&a(e),ft=e}},mt=S({},["mi","mo","mn","ms","mtext"]),gt=S({},["foreignobject","annotation-xml"]),vt=S({},["title","style","font","a","script"]),yt=S({},[...O,...N,...L]),bt=S({},[...k,...H]),xt=function(e){let t=ae(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const r=h(e.tagName),n=h(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===rt?"svg"===r:t.namespaceURI===et?"svg"===r&&("annotation-xml"===n||mt[n]):Boolean(yt[r]):e.namespaceURI===et?t.namespaceURI===rt?"math"===r:t.namespaceURI===tt?"math"===r&>[n]:Boolean(bt[r]):e.namespaceURI===rt?!(t.namespaceURI===tt&&!gt[n])&&!(t.namespaceURI===et&&!mt[n])&&!bt[r]&&(vt[r]||!yt[r]):!("application/xhtml+xml"!==st||!at[e.namespaceURI]))},Et=function(e){d(n.removed,{element:e});try{ae(e).removeChild(e)}catch(t){Y(e)}},wt=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Ue||Fe)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){let t=null,r=null;if(Pe)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===st&&nt===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ie?ie.createHTML(e):e;if(nt===rt)try{t=(new Q).parseFromString(n,st)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(nt,"template",null);try{t.documentElement.innerHTML=ot?se:n}catch(e){}}const a=t.body||t.documentElement;return e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),nt===rt?fe.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:a},St=function(e){return ce.call(e.ownerDocument||e,e,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT|U.SHOW_PROCESSING_INSTRUCTION|U.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(e){return"function"==typeof _&&e instanceof _},At=function(e,t,r){he[e]&&u(he[e],(e=>{e.call(n,t,r,ft)}))},Rt=function(e){let t=null;if(At("beforeSanitizeElements",e,null),Tt(e))return Et(e),!0;const r=ut(e.nodeName);if(At("uponSanitizeElement",e,{tagName:r,allowedTags:_e}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return Et(e),!0;if(e.nodeType===K)return Et(e),!0;if(Me&&e.nodeType===Z&&x(/<[/\w]/g,e.data))return Et(e),!0;if(!_e[r]||Re[r]){if(!Re[r]&&Nt(r)){if(Ae.tagNameCheck instanceof RegExp&&x(Ae.tagNameCheck,r))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))return!1}if(Xe&&!Ye[r]){const t=ae(e)||e.parentNode,r=oe(e)||e.childNodes;if(r&&t)for(let n=r.length-1;n>=0;--n){const o=W(r[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return Et(e),!0}return e instanceof T&&!xt(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!x(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===J&&(t=e.textContent,u([pe,me,ge],(e=>{t=g(t,e," ")})),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(Et(e),!0)},Ot=function(e,t,r){if(Qe&&("id"===t||"name"===t)&&(r in o||r in dt))return!1;if(Le&&!Oe[t]&&x(ve,t));else if(Ne&&x(ye,t));else if(!Te[t]||Oe[t]){if(!(Nt(e)&&(Ae.tagNameCheck instanceof RegExp&&x(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&x(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&x(Ae.tagNameCheck,r)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))))return!1}else if(Ke[t]);else if(x(we,g(r,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(r,"data:")||!$e[e])if(ke&&!x(be,g(r,xe,"")));else if(r)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&m(e,Ee)},Lt=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:s,value:l}=a,c=ut(i);let d="value"===i?l:y(l);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,r),d=r.attrValue,Me&&x(/((--!?|])>)|<\/(style|title)/i,d)){wt(i,e);continue}if(r.forceKeepAttr)continue;if(wt(i,e),!r.keepAttr)continue;if(!He&&x(/\/>/i,d)){wt(i,e);continue}De&&u([pe,me,ge],(e=>{d=g(d,e," ")}));const h=ut(e.nodeName);if(Ot(h,c,d)){if(!ze||"id"!==c&&"name"!==c||(wt(i,e),d=je+d),ie&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(h,c)){case"TrustedHTML":d=ie.createHTML(d);break;case"TrustedScriptURL":d=ie.createScriptURL(d)}try{s?e.setAttributeNS(s,i,d):e.setAttribute(i,d),Tt(e)?Et(e):f(n.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},kt=function e(t){let r=null;const n=St(t);for(At("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)At("uponSanitizeShadowNode",r,null),Rt(r)||(r.content instanceof c&&e(r.content),Lt(r));At("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,s=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ct(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!n.isSupported)return e;if(qe||pt(t),n.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=ut(e.nodeName);if(!_e[t]||Re[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)r=_t("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===$&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ue&&!De&&!Ie&&-1===e.indexOf("<"))return ie&&Be?ie.createHTML(e):e;if(r=_t(e),!r)return Ue?null:Be?se:""}r&&Pe&&Et(r.firstChild);const l=St(We?e:r);for(;a=l.nextNode();)Rt(a)||(a.content instanceof c&&kt(a.content),Lt(a));if(We)return e;if(Ue){if(Fe)for(s=ue.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(Te.shadowroot||Te.shadowrootmode)&&(s=de.call(i,s,!0)),s}let f=Ie?r.outerHTML:r.innerHTML;return Ie&&_e["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&x(V,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),De&&u([pe,me,ge],(e=>{f=g(f,e," ")})),ie&&Be?ie.createHTML(f):f},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),qe=!0},n.clearConfig=function(){ft=null,qe=!1},n.isValidAttribute=function(e,t,r){ft||pt({});const n=ut(e),o=ut(t);return Ot(n,o,r)},n.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],d(he[e],t))},n.removeHook=function(e){if(he[e])return f(he[e])},n.removeHooks=function(e){he[e]&&(he[e]=[])},n.removeAllHooks=function(){he={}},n}()}()},28:function(module,exports){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,t;"undefined"!=typeof self&&self,t=function(){return function(){var Q={onLoad:F,process:zt,on:de,off:ge,trigger:ce,ajax:Nr,find:C,findAll:f,closest:v,values:function(e,t){return dr(e,t||"post").values},remove:_,addClass:z,removeClass:n,toggleClass:$,takeClass:W,defineExtension:Ur,removeExtension:Br,logAll:V,logNone:j,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:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null},parseInterval:d,_:t,createEventSource:function(e){return new EventSource(e,{withCredentials:!0})},createWebSocket:function(e){var t=new WebSocket(e,[]);return t.binaryType=Q.config.wsBinaryType,t},version:"1.9.12"},r={addTriggerHandler:Lt,bodyContains:se,canAccessLocalStorage:U,findThisElement:xe,filterValues:yr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Hr,getHeaders:xr,getInputValues:dr,getInternalData:ae,getSwapSpecification:wr,getTriggerSpecs:it,getTarget:ye,makeFragment:l,mergeObjects:le,makeSettleInfo:T,oobSwap:Ee,querySelectorExt:ue,selectAndSwap:je,settleImmediately:nr,shouldCancel:ut,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:R},w=["get","post","put","delete","patch"],i=w.map((function(e){return"[hx-"+e+"], [data-hx-"+e+"]"})).join(", "),S=e("head"),q=e("title"),H=e("svg",!0);function e(e,t){return new RegExp("<"+e+"(\\s[^>]*>|>)([\\s\\S]*?)<\\/"+e+">",t?"gim":"im")}function d(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 ee(e,t){return e.getAttribute&&e.getAttribute(t)}function o(e,t){return e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function te(e,t){return ee(e,t)||ee(e,"data-"+t)}function u(e){return e.parentElement}function re(){return document}function c(e,t){for(;e&&!t(e);)e=u(e);return e||null}function L(e,t,r){var n=te(t,r),o=te(t,"hx-disinherit");return e!==t&&o&&("*"===o||o.split(" ").indexOf(r)>=0)?"unset":n}function ne(e,t){var r=null;if(c(e,(function(n){return r=L(e,n,t)})),"unset"!==r)return r}function h(e,t){var r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;return r&&r.call(e,t)}function A(e){var t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function s(e,t){for(var r=(new DOMParser).parseFromString(e,"text/html").body;t>0;)t--,r=r.firstChild;return null==r&&(r=re().createDocumentFragment()),r}function N(e){return/<body/.test(e)}function l(e){var t=!N(e),r=A(e),n=e;if("head"===r&&(n=n.replace(S,"")),Q.config.useTemplateFragments&&t){var o=s("<body><template>"+n+"</template></body>",0).querySelector("template").content;return Q.config.allowScriptTags?oe(o.querySelectorAll("script"),(function(e){Q.config.inlineScriptNonce&&(e.nonce=Q.config.inlineScriptNonce),e.htmxExecuted=-1===navigator.userAgent.indexOf("Firefox")})):oe(o.querySelectorAll("script"),(function(e){_(e)})),o}switch(r){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return s("<table>"+n+"</table>",1);case"col":return s("<table><colgroup>"+n+"</colgroup></table>",2);case"tr":return s("<table><tbody>"+n+"</tbody></table>",2);case"td":case"th":return s("<table><tbody><tr>"+n+"</tr></tbody></table>",3);case"script":case"style":return s("<div>"+n+"</div>",1);default:return s(n,0)}}function ie(e){e&&e()}function I(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function k(e){return I(e,"Function")}function P(e){return I(e,"Object")}function ae(e){var t="htmx-internal-data",r=e[t];return r||(r=e[t]={}),r}function M(e){var t=[];if(e)for(var r=0;r<e.length;r++)t.push(e[r]);return t}function oe(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r])}function X(e){var t=e.getBoundingClientRect(),r=t.top,n=t.bottom;return r<window.innerHeight&&n>=0}function se(e){return e.getRootNode&&e.getRootNode()instanceof window.ShadowRoot?re().body.contains(e.getRootNode().host):re().body.contains(e)}function D(e){return e.trim().split(/\s+/)}function le(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function E(e){try{return JSON.parse(e)}catch(e){return b(e),null}}function U(){var e="htmx:localStorageTest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function B(e){try{var t=new URL(e);return t&&(e=t.pathname+t.search),/^\/$/.test(e)||(e=e.replace(/\/+$/,"")),e}catch(t){return e}}function t(e){return Tr(re().body,(function(){return eval(e)}))}function F(e){return Q.on("htmx:load",(function(t){e(t.detail.elt)}))}function V(){Q.logger=function(e,t,r){console&&console.log(t,e,r)}}function j(){Q.logger=null}function C(e,t){return t?e.querySelector(t):C(re(),e)}function f(e,t){return t?e.querySelectorAll(t):f(re(),e)}function _(e,t){e=p(e),t?setTimeout((function(){_(e),e=null}),t):e.parentElement.removeChild(e)}function z(e,t,r){e=p(e),r?setTimeout((function(){z(e,t),e=null}),r):e.classList&&e.classList.add(t)}function n(e,t,r){e=p(e),r?setTimeout((function(){n(e,t),e=null}),r):e.classList&&(e.classList.remove(t),0===e.classList.length&&e.removeAttribute("class"))}function $(e,t){(e=p(e)).classList.toggle(t)}function W(e,t){oe((e=p(e)).parentElement.children,(function(e){n(e,t)})),z(e,t)}function v(e,t){if((e=p(e)).closest)return e.closest(t);do{if(null==e||h(e,t))return e}while(e=e&&u(e));return null}function g(e,t){return e.substring(0,t.length)===t}function G(e,t){return e.substring(e.length-t.length)===t}function J(e){var t=e.trim();return g(t,"<")&&G(t,"/>")?t.substring(1,t.length-2):t}function Z(e,t){return 0===t.indexOf("closest ")?[v(e,J(t.substr(8)))]:0===t.indexOf("find ")?[C(e,J(t.substr(5)))]:"next"===t?[e.nextElementSibling]:0===t.indexOf("next ")?[K(e,J(t.substr(5)))]:"previous"===t?[e.previousElementSibling]:0===t.indexOf("previous ")?[Y(e,J(t.substr(9)))]:"document"===t?[document]:"window"===t?[window]:"body"===t?[document.body]:re().querySelectorAll(J(t))}var K=function(e,t){for(var r=re().querySelectorAll(t),n=0;n<r.length;n++){var o=r[n];if(o.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_PRECEDING)return o}},Y=function(e,t){for(var r=re().querySelectorAll(t),n=r.length-1;n>=0;n--){var o=r[n];if(o.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return o}};function ue(e,t){return t?Z(e,t)[0]:Z(re().body,e)[0]}function p(e){return I(e,"String")?C(e):e}function ve(e,t,r){return k(t)?{target:re().body,event:e,listener:t}:{target:p(e),event:t,listener:r}}function de(e,t,r){return jr((function(){var n=ve(e,t,r);n.target.addEventListener(n.event,n.listener)})),k(t)?t:r}function ge(e,t,r){return jr((function(){var n=ve(e,t,r);n.target.removeEventListener(n.event,n.listener)})),k(t)?t:r}var pe=re().createElement("output");function me(e,t){var r=ne(e,t);if(r){if("this"===r)return[xe(e,t)];var n=Z(e,r);return 0===n.length?(b('The selector "'+r+'" on '+t+" returned no matches!"),[pe]):n}}function xe(e,t){return c(e,(function(e){return null!=te(e,t)}))}function ye(e){var t=ne(e,"hx-target");return t?"this"===t?xe(e,"hx-target"):ue(e,t):ae(e).boosted?re().body:e}function be(e){for(var t=Q.config.attributesToSettle,r=0;r<t.length;r++)if(e===t[r])return!0;return!1}function we(e,t){oe(e.attributes,(function(r){!t.hasAttribute(r.name)&&be(r.name)&&e.removeAttribute(r.name)})),oe(t.attributes,(function(t){be(t.name)&&e.setAttribute(t.name,t.value)}))}function Se(e,t){for(var r=Fr(t),n=0;n<r.length;n++){var o=r[n];try{if(o.isInlineSwap(e))return!0}catch(e){b(e)}}return"outerHTML"===e}function Ee(e,t,r){var n="#"+ee(t,"id"),o="outerHTML";"true"===e||(e.indexOf(":")>0?(o=e.substr(0,e.indexOf(":")),n=e.substr(e.indexOf(":")+1,e.length)):o=e);var a=re().querySelectorAll(n);return a?(oe(a,(function(e){var n,a=t.cloneNode(!0);(n=re().createDocumentFragment()).appendChild(a),Se(o,e)||(n=a);var i={shouldSwap:!0,target:e,fragment:n};ce(e,"htmx:oobBeforeSwap",i)&&(e=i.target,i.shouldSwap&&Fe(o,e,e,n,r),oe(r.elts,(function(e){ce(e,"htmx:oobAfterSwap",i)})))})),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),fe(re().body,"htmx:oobErrorNoTarget",{content:t})),e}function Ce(e,t,r){var n=ne(e,"hx-select-oob");if(n)for(var o=n.split(","),a=0;a<o.length;a++){var i=o[a].split(":",2),s=i[0].trim();0===s.indexOf("#")&&(s=s.substring(1));var l=i[1]||"true",c=t.querySelector("#"+s);c&&Ee(l,c,r)}oe(f(t,"[hx-swap-oob], [data-hx-swap-oob]"),(function(e){var t=te(e,"hx-swap-oob");null!=t&&Ee(t,e,r)}))}function Re(e){oe(f(e,"[hx-preserve], [data-hx-preserve]"),(function(e){var t=te(e,"id"),r=re().getElementById(t);null!=r&&e.parentNode.replaceChild(r,e)}))}function Te(e,t,r){oe(t.querySelectorAll("[id]"),(function(t){var n=ee(t,"id");if(n&&n.length>0){var o=n.replace("'","\\'"),a=t.tagName.replace(":","\\:"),i=e.querySelector(a+"[id='"+o+"']");if(i&&i!==e){var s=t.cloneNode();we(t,i),r.tasks.push((function(){we(t,s)}))}}}))}function Oe(e){return function(){n(e,Q.config.addedClass),zt(e),Nt(e),qe(e),ce(e,"htmx:load")}}function qe(e){var t="[autofocus]",r=h(e,t)?e:e.querySelector(t);null!=r&&r.focus()}function a(e,t,r,n){for(Te(e,r,n);r.childNodes.length>0;){var o=r.firstChild;z(o,Q.config.addedClass),e.insertBefore(o,t),o.nodeType!==Node.TEXT_NODE&&o.nodeType!==Node.COMMENT_NODE&&n.tasks.push(Oe(o))}}function He(e,t){for(var r=0;r<e.length;)t=(t<<5)-t+e.charCodeAt(r++)|0;return t}function Le(e){var t=0;if(e.attributes)for(var r=0;r<e.attributes.length;r++){var n=e.attributes[r];n.value&&(t=He(n.name,t),t=He(n.value,t))}return t}function Ae(e){var t=ae(e);if(t.onHandlers){for(var r=0;r<t.onHandlers.length;r++){const n=t.onHandlers[r];e.removeEventListener(n.event,n.listener)}delete t.onHandlers}}function Ne(e){var t=ae(e);t.timeout&&clearTimeout(t.timeout),t.webSocket&&t.webSocket.close(),t.sseEventSource&&t.sseEventSource.close(),t.listenerInfos&&oe(t.listenerInfos,(function(e){e.on&&e.on.removeEventListener(e.trigger,e.listener)})),Ae(e),oe(Object.keys(t),(function(e){delete t[e]}))}function m(e){ce(e,"htmx:beforeCleanupElement"),Ne(e),e.children&&oe(e.children,(function(e){m(e)}))}function Ie(e,t,r){if("BODY"===e.tagName)return Ue(e,t,r);var n,o=e.previousSibling;for(a(u(e),e,t,r),n=null==o?u(e).firstChild:o.nextSibling,r.elts=r.elts.filter((function(t){return t!=e}));n&&n!==e;)n.nodeType===Node.ELEMENT_NODE&&r.elts.push(n),n=n.nextElementSibling;m(e),u(e).removeChild(e)}function ke(e,t,r){return a(e,e.firstChild,t,r)}function Pe(e,t,r){return a(u(e),e,t,r)}function Me(e,t,r){return a(e,null,t,r)}function Xe(e,t,r){return a(u(e),e.nextSibling,t,r)}function De(e,t,r){return m(e),u(e).removeChild(e)}function Ue(e,t,r){var n=e.firstChild;if(a(e,n,t,r),n){for(;n.nextSibling;)m(n.nextSibling),e.removeChild(n.nextSibling);m(n),e.removeChild(n)}}function Be(e,t,r){var n=r||ne(e,"hx-select");if(n){var o=re().createDocumentFragment();oe(t.querySelectorAll(n),(function(e){o.appendChild(e)})),t=o}return t}function Fe(e,t,r,n,o){switch(e){case"none":return;case"outerHTML":return void Ie(r,n,o);case"afterbegin":return void ke(r,n,o);case"beforebegin":return void Pe(r,n,o);case"beforeend":return void Me(r,n,o);case"afterend":return void Xe(r,n,o);case"delete":return void De(r,n,o);default:for(var a=Fr(t),i=0;i<a.length;i++){var s=a[i];try{var l=s.handleSwap(e,r,n,o);if(l){if(void 0!==l.length)for(var c=0;c<l.length;c++){var u=l[c];u.nodeType!==Node.TEXT_NODE&&u.nodeType!==Node.COMMENT_NODE&&o.tasks.push(Oe(u))}return}}catch(e){b(e)}}"innerHTML"===e?Ue(r,n,o):Fe(Q.config.defaultSwapStyle,t,r,n,o)}}function Ve(e){if(e.indexOf("<title")>-1){var t=e.replace(H,"").match(q);if(t)return t[2]}}function je(e,t,r,n,o,a){o.title=Ve(n);var i=l(n);if(i)return Ce(r,i,o),Re(i=Be(r,i,a)),Fe(e,r,t,i,o)}function _e(e,t,r){var n=e.getResponseHeader(t);if(0===n.indexOf("{")){var o=E(n);for(var a in o)if(o.hasOwnProperty(a)){var i=o[a];P(i)||(i={value:i}),ce(r,a,i)}}else for(var s=n.split(","),l=0;l<s.length;l++)ce(r,s[l].trim(),[])}var ze=/\s/,x=/[\s,]/,$e=/[_$a-zA-Z]/,We=/[_$a-zA-Z0-9]/,Ge=['"',"'","/"],Je=/[^\s]/,Ze=/[{(]/,Ke=/[})]/;function Ye(e){for(var t=[],r=0;r<e.length;){if($e.exec(e.charAt(r))){for(var n=r;We.exec(e.charAt(r+1));)r++;t.push(e.substr(n,r-n+1))}else if(-1!==Ge.indexOf(e.charAt(r))){var o=e.charAt(r);for(n=r,r++;r<e.length&&e.charAt(r)!==o;)"\\"===e.charAt(r)&&r++,r++;t.push(e.substr(n,r-n+1))}else{var a=e.charAt(r);t.push(a)}r++}return t}function Qe(e,t,r){return $e.exec(e.charAt(0))&&"true"!==e&&"false"!==e&&"this"!==e&&e!==r&&"."!==t}function et(e,t,r){if("["===t[0]){t.shift();for(var n=1,o=" return (function("+r+"){ return (",a=null;t.length>0;){var i=t[0];if("]"===i){if(0==--n){null===a&&(o+="true"),t.shift(),o+=")})";try{var s=Tr(e,(function(){return Function(o)()}),(function(){return!0}));return s.source=o,s}catch(e){return fe(re().body,"htmx:syntax:error",{error:e,source:o}),null}}}else"["===i&&n++;Qe(i,a,r)?o+="(("+r+"."+i+") ? ("+r+"."+i+") : (window."+i+"))":o+=i,a=t.shift()}}}function y(e,t){for(var r="";e.length>0&&!t.test(e[0]);)r+=e.shift();return r}function tt(e){var t;return e.length>0&&Ze.test(e[0])?(e.shift(),t=y(e,Ke).trim(),e.shift()):t=y(e,x),t}var rt="input, textarea, select";function nt(e,t,r){var n=[],o=Ye(t);do{y(o,Je);var a=o.length,i=y(o,/[,\[\s]/);if(""!==i)if("every"===i){var s={trigger:"every"};y(o,Je),s.pollInterval=d(y(o,/[,\[\s]/)),y(o,Je),(l=et(e,o,"event"))&&(s.eventFilter=l),n.push(s)}else if(0===i.indexOf("sse:"))n.push({trigger:"sse",sseEvent:i.substr(4)});else{var l,c={trigger:i};for((l=et(e,o,"event"))&&(c.eventFilter=l);o.length>0&&","!==o[0];){y(o,Je);var u=o.shift();if("changed"===u)c.changed=!0;else if("once"===u)c.once=!0;else if("consume"===u)c.consume=!0;else if("delay"===u&&":"===o[0])o.shift(),c.delay=d(y(o,x));else if("from"===u&&":"===o[0]){if(o.shift(),Ze.test(o[0]))var f=tt(o);else if("closest"===(f=y(o,x))||"find"===f||"next"===f||"previous"===f){o.shift();var h=tt(o);h.length>0&&(f+=" "+h)}c.from=f}else"target"===u&&":"===o[0]?(o.shift(),c.target=tt(o)):"throttle"===u&&":"===o[0]?(o.shift(),c.throttle=d(y(o,x))):"queue"===u&&":"===o[0]?(o.shift(),c.queue=y(o,x)):"root"===u&&":"===o[0]?(o.shift(),c[u]=tt(o)):"threshold"===u&&":"===o[0]?(o.shift(),c[u]=y(o,x)):fe(e,"htmx:syntax:error",{token:o.shift()})}n.push(c)}o.length===a&&fe(e,"htmx:syntax:error",{token:o.shift()}),y(o,Je)}while(","===o[0]&&o.shift());return r&&(r[t]=n),n}function it(e){var t=te(e,"hx-trigger"),r=[];if(t){var n=Q.config.triggerSpecsCache;r=n&&n[t]||nt(e,t,n)}return r.length>0?r:h(e,"form")?[{trigger:"submit"}]:h(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(e,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(e){ae(e).cancelled=!0}function ot(e,t,r){var n=ae(e);n.timeout=setTimeout((function(){se(e)&&!0!==n.cancelled&&(ct(r,e,Wt("hx:poll:trigger",{triggerSpec:r,target:e}))||t(e),ot(e,t,r))}),r.pollInterval)}function st(e){return location.hostname===e.hostname&&ee(e,"href")&&0!==ee(e,"href").indexOf("#")}function lt(e,t,r){if("A"===e.tagName&&st(e)&&(""===e.target||"_self"===e.target)||"FORM"===e.tagName){var n,o;if(t.boosted=!0,"A"===e.tagName)n="get",o=ee(e,"href");else{var a=ee(e,"method");n=a?a.toLowerCase():"get",o=ee(e,"action")}r.forEach((function(r){ht(e,(function(e,t){v(e,Q.config.disableSelector)?m(e):he(n,o,e,t)}),t,r,!0)}))}}function ut(e,t){if("submit"===e.type||"click"===e.type){if("FORM"===t.tagName)return!0;if(h(t,'input[type="submit"], button')&&null!==v(t,"form"))return!0;if("A"===t.tagName&&t.href&&("#"===t.getAttribute("href")||0!==t.getAttribute("href").indexOf("#")))return!0}return!1}function ft(e,t){return ae(e).boosted&&"A"===e.tagName&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function ct(e,t,r){var n=e.eventFilter;if(n)try{return!0!==n.call(t,r)}catch(e){return fe(re().body,"htmx:eventFilter:error",{error:e,source:n.source}),!0}return!1}function ht(e,t,r,n,o){var a,i=ae(e);a=n.from?Z(e,n.from):[e],n.changed&&a.forEach((function(e){ae(e).lastValue=e.value})),oe(a,(function(a){var s=function(r){if(se(e)){if(!ft(e,r)&&((o||ut(r,e))&&r.preventDefault(),!ct(n,e,r))){var l=ae(r);if(l.triggerSpec=n,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),n.consume&&r.stopPropagation(),n.target&&r.target&&!h(r.target,n.target))return;if(n.once){if(i.triggeredOnce)return;i.triggeredOnce=!0}if(n.changed){var c=ae(a);if(c.lastValue===a.value)return;c.lastValue=a.value}if(i.delayed&&clearTimeout(i.delayed),i.throttle)return;n.throttle>0?i.throttle||(t(e,r),i.throttle=setTimeout((function(){i.throttle=null}),n.throttle)):n.delay>0?i.delayed=setTimeout((function(){t(e,r)}),n.delay):(ce(e,"htmx:trigger"),t(e,r))}}}else a.removeEventListener(n.trigger,s)};null==r.listenerInfos&&(r.listenerInfos=[]),r.listenerInfos.push({trigger:n.trigger,listener:s,on:a}),a.addEventListener(n.trigger,s)}))}var vt=!1,dt=null;function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval((function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),(function(e){pt(e)})))}),200))}function pt(e){!o(e,"data-hx-revealed")&&X(e)&&(e.setAttribute("data-hx-revealed","true"),ae(e).initHash?ce(e,"revealed"):e.addEventListener("htmx:afterProcessNode",(function(t){ce(e,"revealed")}),{once:!0}))}function mt(e,t,r){for(var n=D(r),o=0;o<n.length;o++){var a=n[o].split(/:(.+)/);"connect"===a[0]&&xt(e,a[1],0),"send"===a[0]&&bt(e)}}function xt(e,t,r){if(se(e)){if(0==t.indexOf("/")){var n=location.hostname+(location.port?":"+location.port:"");"https:"==location.protocol?t="wss://"+n+t:"http:"==location.protocol&&(t="ws://"+n+t)}var o=Q.createWebSocket(t);o.onerror=function(t){fe(e,"htmx:wsError",{error:t,socket:o}),yt(e)},o.onclose=function(n){if([1006,1012,1013].indexOf(n.code)>=0){var o=wt(r);setTimeout((function(){xt(e,t,r+1)}),o)}},o.onopen=function(e){r=0},ae(e).webSocket=o,o.addEventListener("message",(function(t){if(!yt(e)){var r=t.data;R(e,(function(t){r=t.transformResponse(r,null,e)}));for(var n=T(e),o=M(l(r).children),a=0;a<o.length;a++){var i=o[a];Ee(te(i,"hx-swap-oob")||"true",i,n)}nr(n.tasks)}}))}}function yt(e){if(!se(e))return ae(e).webSocket.close(),!0}function bt(e){var t=c(e,(function(e){return null!=ae(e).webSocket}));t?e.addEventListener(it(e)[0].trigger,(function(r){var n=ae(t).webSocket,o=xr(e,t),a=dr(e,"post"),i=a.errors,s=yr(le(a.values,Hr(e)),e);s.HEADERS=o,i&&i.length>0?ce(e,"htmx:validation:halted",i):(n.send(JSON.stringify(s)),ut(r,e)&&r.preventDefault())})):fe(e,"htmx:noWebSocketSourceError")}function wt(e){var t=Q.config.wsReconnectDelay;if("function"==typeof t)return t(e);if("full-jitter"===t){var r=Math.min(e,6);return 1e3*Math.pow(2,r)*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(e,t,r){for(var n=D(r),o=0;o<n.length;o++){var a=n[o].split(/:(.+)/);"connect"===a[0]&&Et(e,a[1]),"swap"===a[0]&&Ct(e,a[1])}}function Et(e,t){var r=Q.createEventSource(t);r.onerror=function(t){fe(e,"htmx:sseError",{error:t,source:r}),Tt(e)},ae(e).sseEventSource=r}function Ct(e,t){var r=c(e,Ot);if(r){var n=ae(r).sseEventSource,o=function(a){if(!Tt(r))if(se(e)){var i=a.data;R(e,(function(t){i=t.transformResponse(i,null,e)}));var s=wr(e),l=ye(e),c=T(e);je(s.swapStyle,l,e,i,c),nr(c.tasks),ce(e,"htmx:sseMessage",a)}else n.removeEventListener(t,o)};ae(e).sseListener=o,n.addEventListener(t,o)}else fe(e,"htmx:noSSESourceError")}function Rt(e,t,r){var n=c(e,Ot);if(n){var o=ae(n).sseEventSource,a=function(){Tt(n)||(se(e)?t(e):o.removeEventListener(r,a))};ae(e).sseListener=a,o.addEventListener(r,a)}else fe(e,"htmx:noSSESourceError")}function Tt(e){if(!se(e))return ae(e).sseEventSource.close(),!0}function Ot(e){return null!=ae(e).sseEventSource}function qt(e,t,r,n){var o=function(){r.loaded||(r.loaded=!0,t(e))};n>0?setTimeout(o,n):o()}function Ht(e,t,r){var n=!1;return oe(w,(function(a){if(o(e,"hx-"+a)){var i=te(e,"hx-"+a);n=!0,t.path=i,t.verb=a,r.forEach((function(r){Lt(e,r,t,(function(e,t){v(e,Q.config.disableSelector)?m(e):he(a,i,e,t)}))}))}})),n}function Lt(e,t,r,n){if(t.sseEvent)Rt(e,n,t.sseEvent);else if("revealed"===t.trigger)gt(),ht(e,n,r,t),pt(e);else if("intersect"===t.trigger){var o={};t.root&&(o.root=ue(e,t.root)),t.threshold&&(o.threshold=parseFloat(t.threshold));var a=new IntersectionObserver((function(t){for(var r=0;r<t.length;r++)if(t[r].isIntersecting){ce(e,"intersect");break}}),o);a.observe(e),ht(e,n,r,t)}else"load"===t.trigger?ct(t,e,Wt("load",{elt:e}))||qt(e,n,r,t.delay):t.pollInterval>0?(r.polling=!0,ot(e,n,t)):ht(e,n,r,t)}function At(e){if(!e.htmxExecuted&&Q.config.allowScriptTags&&("text/javascript"===e.type||"module"===e.type||""===e.type)){var t=re().createElement("script");oe(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),t.textContent=e.textContent,t.async=!1,Q.config.inlineScriptNonce&&(t.nonce=Q.config.inlineScriptNonce);var r=e.parentElement;try{r.insertBefore(t,e)}catch(e){b(e)}finally{e.parentElement&&e.parentElement.removeChild(e)}}}function Nt(e){h(e,"script")&&At(e),oe(f(e,"script"),(function(e){At(e)}))}function It(e){var t=e.attributes;if(!t)return!1;for(var r=0;r<t.length;r++){var n=t[r].name;if(g(n,"hx-on:")||g(n,"data-hx-on:")||g(n,"hx-on-")||g(n,"data-hx-on-"))return!0}return!1}function kt(e){var t=null,r=[];if(It(e)&&r.push(e),document.evaluate)for(var n=document.evaluate('.//*[@*[ 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-") ]]',e);t=n.iterateNext();)r.push(t);else if("function"==typeof e.getElementsByTagName)for(var o=e.getElementsByTagName("*"),a=0;a<o.length;a++)It(o[a])&&r.push(o[a]);return r}function Pt(e){return e.querySelectorAll?e.querySelectorAll(i+", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost], form, [type='submit'], [hx-sse], [data-hx-sse], [hx-ws], [data-hx-ws], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger], [hx-on], [data-hx-on]"):[]}function Mt(e){var t=v(e.target,"button, input[type='submit']"),r=Dt(e);r&&(r.lastButtonClicked=t)}function Xt(e){var t=Dt(e);t&&(t.lastButtonClicked=null)}function Dt(e){var t=v(e.target,"button, input[type='submit']");if(t){var r=p("#"+ee(t,"form"))||v(t,"form");if(r)return ae(r)}}function Ut(e){e.addEventListener("click",Mt),e.addEventListener("focusin",Mt),e.addEventListener("focusout",Xt)}function Bt(e){for(var t=Ye(e),r=0,n=0;n<t.length;n++){const e=t[n];"{"===e?r++:"}"===e&&r--}return r}function Ft(e,t,r){var n,o=ae(e);Array.isArray(o.onHandlers)||(o.onHandlers=[]);var a=function(t){return Tr(e,(function(){n||(n=new Function("event",r)),n.call(e,t)}))};e.addEventListener(t,a),o.onHandlers.push({event:t,listener:a})}function Vt(e){var t=te(e,"hx-on");if(t){for(var r={},n=t.split("\n"),o=null,a=0;n.length>0;){var i=n.shift(),s=i.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);0===a&&s?(i.split(":"),r[o=s[1].slice(0,-1)]=s[2]):r[o]+=i,a+=Bt(i)}for(var l in r)Ft(e,l,r[l])}}function jt(e){Ae(e);for(var t=0;t<e.attributes.length;t++){var r=e.attributes[t].name,n=e.attributes[t].value;if(g(r,"hx-on")||g(r,"data-hx-on")){var o=r.indexOf("-on")+3,a=r.slice(o,o+1);if("-"===a||":"===a){var i=r.slice(o+1);g(i,":")?i="htmx"+i:g(i,"-")?i="htmx:"+i.slice(1):g(i,"htmx-")&&(i="htmx:"+i.slice(5)),Ft(e,i,n)}}}}function _t(e){if(v(e,Q.config.disableSelector))m(e);else{var t=ae(e);if(t.initHash!==Le(e)){Ne(e),t.initHash=Le(e),Vt(e),ce(e,"htmx:beforeProcessNode"),e.value&&(t.lastValue=e.value);var r=it(e);Ht(e,t,r)||("true"===ne(e,"hx-boost")?lt(e,t,r):o(e,"hx-trigger")&&r.forEach((function(r){Lt(e,r,t,(function(){}))}))),("FORM"===e.tagName||"submit"===ee(e,"type")&&o(e,"form"))&&Ut(e);var n=te(e,"hx-sse");n&&St(e,t,n);var a=te(e,"hx-ws");a&&mt(e,t,a),ce(e,"htmx:afterProcessNode")}}}function zt(e){v(e=p(e),Q.config.disableSelector)?m(e):(_t(e),oe(Pt(e),(function(e){_t(e)})),oe(kt(e),jt))}function $t(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Wt(e,t){var r;return window.CustomEvent&&"function"==typeof window.CustomEvent?r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t}):(r=re().createEvent("CustomEvent")).initCustomEvent(e,!0,!0,t),r}function fe(e,t,r){ce(e,t,le({error:t},r))}function Gt(e){return"htmx:afterProcessNode"===e}function R(e,t){oe(Fr(e),(function(e){try{t(e)}catch(e){b(e)}}))}function b(e){console.error?console.error(e):console.log&&console.log("ERROR: ",e)}function ce(e,t,r){e=p(e),null==r&&(r={}),r.elt=e;var n=Wt(t,r);Q.logger&&!Gt(t)&&Q.logger(e,t,r),r.error&&(b(r.error),ce(e,"htmx:error",{errorInfo:r}));var o=e.dispatchEvent(n),a=$t(t);if(o&&a!==t){var i=Wt(a,n.detail);o=o&&e.dispatchEvent(i)}return R(e,(function(e){o=o&&!1!==e.onEvent(t,n)&&!n.defaultPrevented})),o}var Jt=location.pathname+location.search;function Zt(){return re().querySelector("[hx-history-elt],[data-hx-history-elt]")||re().body}function Kt(e,t,r,n){if(U())if(Q.config.historyCacheSize<=0)localStorage.removeItem("htmx-history-cache");else{e=B(e);for(var o=E(localStorage.getItem("htmx-history-cache"))||[],a=0;a<o.length;a++)if(o[a].url===e){o.splice(a,1);break}var i={url:e,content:t,title:r,scroll:n};for(ce(re().body,"htmx:historyItemCreated",{item:i,cache:o}),o.push(i);o.length>Q.config.historyCacheSize;)o.shift();for(;o.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(o));break}catch(e){fe(re().body,"htmx:historyCacheError",{cause:e,cache:o}),o.shift()}}}function Yt(e){if(!U())return null;e=B(e);for(var t=E(localStorage.getItem("htmx-history-cache"))||[],r=0;r<t.length;r++)if(t[r].url===e)return t[r];return null}function Qt(e){var t=Q.config.requestClass,r=e.cloneNode(!0);return oe(f(r,"."+t),(function(e){n(e,t)})),r.innerHTML}function er(){var e,t=Zt(),r=Jt||location.pathname+location.search;try{e=re().querySelector('[hx-history="false" i],[data-hx-history="false" i]')}catch(t){e=re().querySelector('[hx-history="false"],[data-hx-history="false"]')}e||(ce(re().body,"htmx:beforeHistorySave",{path:r,historyElt:t}),Kt(r,Qt(t),re().title,window.scrollY)),Q.config.historyEnabled&&history.replaceState({htmx:!0},re().title,window.location.href)}function tr(e){Q.config.getCacheBusterParam&&(G(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),"&")||G(e,"?"))&&(e=e.slice(0,-1)),Q.config.historyEnabled&&history.pushState({htmx:!0},"",e),Jt=e}function rr(e){Q.config.historyEnabled&&history.replaceState({htmx:!0},"",e),Jt=e}function nr(e){oe(e,(function(e){e.call()}))}function ir(e){var t=new XMLHttpRequest,r={path:e,xhr:t};ce(re().body,"htmx:historyCacheMiss",r),t.open("GET",e,!0),t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",re().location.href),t.onload=function(){if(this.status>=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",r);var t=l(this.response);t=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t;var n=Zt(),o=T(n),a=Ve(this.response);if(a){var i=C("title");i?i.innerHTML=a:window.document.title=a}Ue(n,t,o),nr(o.tasks),Jt=e,ce(re().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",r)},t.send()}function ar(e){er();var t=Yt(e=e||location.pathname+location.search);if(t){var r=l(t.content),n=Zt(),o=T(n);Ue(n,r,o),nr(o.tasks),document.title=t.title,setTimeout((function(){window.scrollTo(0,t.scroll)}),0),Jt=e,ce(re().body,"htmx:historyRestore",{path:e,item:t})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):ir(e)}function or(e){var t=me(e,"hx-indicator");return null==t&&(t=[e]),oe(t,(function(e){var t=ae(e);t.requestCount=(t.requestCount||0)+1,e.classList.add.call(e.classList,Q.config.requestClass)})),t}function sr(e){var t=me(e,"hx-disabled-elt");return null==t&&(t=[]),oe(t,(function(e){var t=ae(e);t.requestCount=(t.requestCount||0)+1,e.setAttribute("disabled","")})),t}function lr(e,t){oe(e,(function(e){var t=ae(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.classList.remove.call(e.classList,Q.config.requestClass)})),oe(t,(function(e){var