@webjsdev/core 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +5 -0
  2. package/dist/webjs-core-browser.js +6 -5
  3. package/dist/webjs-core-browser.js.map +3 -3
  4. package/dist/webjs-core-testing.js +20 -19
  5. package/dist/webjs-core-testing.js.map +3 -3
  6. package/dist/webjs-core.js +7 -6
  7. package/dist/webjs-core.js.map +3 -3
  8. package/index-browser.js +14 -9
  9. package/index.d.ts +22 -10
  10. package/index.js +17 -9
  11. package/package.json +15 -2
  12. package/src/action-effects-client.d.ts +5 -0
  13. package/src/action-effects-client.js +84 -0
  14. package/src/action-seed-client.js +5 -5
  15. package/src/asset-url.js +12 -13
  16. package/src/async-directive.d.ts +18 -0
  17. package/src/async-directive.js +88 -0
  18. package/src/attribute-reader.js +197 -23
  19. package/src/binding-prefixes.js +0 -12
  20. package/src/component/lifecycle.js +760 -209
  21. package/src/component/reactive.js +2 -10
  22. package/src/component/server-element.js +23 -1
  23. package/src/component.d.ts +151 -41
  24. package/src/context.d.ts +94 -18
  25. package/src/context.js +341 -217
  26. package/src/converters.d.ts +7 -0
  27. package/src/converters.js +38 -0
  28. package/src/css.d.ts +32 -6
  29. package/src/css.js +178 -14
  30. package/src/directive.d.ts +58 -0
  31. package/src/directive.js +119 -0
  32. package/src/directives.d.ts +38 -1
  33. package/src/directives.js +158 -1
  34. package/src/form-action.d.ts +13 -0
  35. package/src/form-action.js +139 -4
  36. package/src/hot.js +23 -0
  37. package/src/html.d.ts +4 -0
  38. package/src/html.js +35 -3
  39. package/src/is-server.d.ts +2 -0
  40. package/src/is-server.js +18 -0
  41. package/src/jsx-guard.js +130 -0
  42. package/src/metadata.d.ts +22 -3
  43. package/src/nav.d.ts +4 -1
  44. package/src/nav.js +44 -11
  45. package/src/optimistic.js +2 -2
  46. package/src/refresh-header.js +52 -0
  47. package/src/registry.js +10 -1
  48. package/src/render-client/adopt-slots.js +8 -3
  49. package/src/render-client/parts.js +745 -31
  50. package/src/render-client/reconciler.js +56 -11
  51. package/src/render-client/template-compiler.js +139 -44
  52. package/src/render-client.d.ts +5 -1
  53. package/src/render-server/attrs.js +2 -2
  54. package/src/render-server/compile.js +34 -0
  55. package/src/render-server/errors.js +37 -0
  56. package/src/render-server/expand.js +61 -8
  57. package/src/render-server/served-attrs.js +1 -2
  58. package/src/render-server/walk.js +135 -3
  59. package/src/render-server.d.ts +3 -0
  60. package/src/render-server.js +2 -0
  61. package/src/repeat.d.ts +7 -2
  62. package/src/repeat.js +20 -6
  63. package/src/router-client/dom-differ.js +17 -0
  64. package/src/router-client/fetch-apply.js +86 -5
  65. package/src/router-client/navigator.js +45 -9
  66. package/src/router-client/prefetch.js +3 -4
  67. package/src/router-client/root-attrs.js +43 -0
  68. package/src/router-client/stream.js +7 -0
  69. package/src/router-client/swap.js +4 -1
  70. package/src/routes.d.ts +75 -18
  71. package/src/serialize.d.ts +2 -0
  72. package/src/serialize.js +35 -4
  73. package/src/signal.d.ts +7 -0
  74. package/src/signal.js +26 -6
  75. package/src/slot/polyfills.js +3 -3
  76. package/src/slot.js +4 -8
  77. package/src/static-html.d.ts +22 -0
  78. package/src/static-html.js +144 -0
  79. package/src/task.d.ts +63 -20
  80. package/src/task.js +326 -293
  81. package/src/webjs-config.d.ts +1 -8
@@ -1,9 +1,10 @@
1
- var ef=Object.defineProperty;var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var qa=(e,t)=>{for(var r in t)ef(e,r,{get:t[r],enumerable:!0})};var T,B,pt=S(()=>{T=Symbol.for("webjs.nothing"),B=Symbol.for("webjs.noChange")});function Vt(e){return Object.prototype.hasOwnProperty.call(Ke,e)}function ht(e,t){return t===T||t===B?null:String(t??"")}var Ke,mt=S(()=>{pt();Ke=Object.freeze({"@":"event",".":"prop","?":"bool"})});function Wt(e){let t=String(e);return nf.test(t)?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function q(e){let t=String(e);return of.test(t)?t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;"):t}var nf,of,ze=S(()=>{nf=/[&<>]/,of=/[&"<]/});function sf(e){Es=e}function Xn(e){if(typeof e!="function")return null;let t=e[Da];return typeof t=="string"&&t?t:null}async function Ts(e){let t=Xn(e);if(t)return t;if(typeof e!="function"||!Es)return null;try{let r=await Es(e);return typeof r=="string"&&r?r:null}catch{return null}}function Kt(e,t,r){if(typeof e!="function")return!1;let n=String(t).toLowerCase(),o=String(r||"").toLowerCase();return n==="action"?o==="form":n==="formaction"?o==="button"||o==="input":!1}function Lr(e,t,r=!0){if(!e||e===M&&r)return;let n=e===M?'a second "name" attribute':`name="${e}"`;throw new Error(`[webjs] formaction=\${action} on <${t||"button"}> cannot be used when the element already carries a "name" attribute (found ${n}). The action identity is submitted as the button's own name/value pair, so there is no room for a second one. Move the action to the enclosing <form action=\${action}> or drop the submitter's "name".`)}function ks(e,t){let r=String(e||"").toLowerCase(),n=t==null?null:String(t).toLowerCase();if(af(r,n)){if(r==="input"&&n==="image")throw new Error('[webjs] formaction=${action} is not supported on <input type="image"> because image submitters submit coordinate pairs (name.x/name.y) instead of name=value, so the action identity would never arrive. Use a <button> instead.');if(r==="input")throw new Error('[webjs] formaction=${action} is not supported on <input type="submit"> because the action identity has to occupy the submitter\'s "value", which on this control is also its visible label, so the button would render captioned with the action\'s id and could not be given a real one. Use <button formaction=${action}>Publish</button>, whose label is its children.');return}throw new Error(`[webjs] formaction=\${action} on <${r}>${n?` type="${n}"`:""} requires a submitter control, and formaction is inert on anything else. Use <button formaction=\${action}>.`)}function af(e,t){let r=t==null?null:String(t).toLowerCase();return e==="button"?r==null||r===""||r==="submit":e==="input"?r==="submit"||r==="image":!1}function Or(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used when the element already carries a "value" attribute. The action identity is submitted as the button's own name/value pair, so both halves are taken. Drop the "value", or dispatch on it from one form-level action instead.`)}function Ns(e){throw new Error(`[webjs] a bound formaction=\${action} on <${e||"button"}> cannot also carry a plain formaction attribute: the two name different targets and the renderers resolve them differently. Drop the static attribute.`)}function jr(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used with a "form" attribute, which re-points the submitter at a form other than the bound one it sits in. Keep the submitter inside its bound <form>.`)}function Pr(e,t){if(e)throw new Error(`[webjs] two formaction=\${action} holes were found on one <${t||"button"}>. Only one can win, and the two renderers pick differently, so bind exactly one action per submitter.`)}function Cs(e,t){let n=(e||[]).filter(o=>Ir(o))[0];if(n)throw new Error(`[webjs] a <${t||"button"}> submitter binds .${n}=. That property is a reflected IDL attribute on a submitter, so a property binding is dropped at SSR and written to the attribute in the browser: the page would render on the server and throw on hydration. Write it as a plain attribute.`)}function Ir(e){let t=String(e).toLowerCase();return t==="name"||t==="value"||t==="formaction"||t==="formmethod"||t==="formenctype"}function cf(e,t,r){let n=t==null?null:String(t),o=r==null?null:String(r);if(n!=null&&/^dialog$/i.test(n))throw new Error(`[webjs] formaction=\${action} on <${e}> cannot be combined with formmethod="dialog", which dismisses a <dialog> instead of submitting, so the bound action would never run. Drop one of the two.`);if(n!=null&&!/^post$/i.test(n))throw new Error(`[webjs] <${e} formmethod="${n}" formaction=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${n}" submission sends none, so the action would never run. Drop the formmethod attribute (WebJs emits formmethod="post" on a bound submitter), or drop the binding.`);if(o!=null&&!$a.has(o.toLowerCase()))throw new Error(`[webjs] <${e} formenctype="${o}" formaction=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${o}" body is neither, so the bound action could never read it. Drop the formenctype attribute (WebJs emits multipart/form-data on a bound submitter).`)}function ye(e,t,r){if(eo(e)&&mf(t))throw new Error(gf(t,r))}function Zn(e,t,r){hf(t,r)&&ye(e,t,r)}function zt(e,t){if(e)return e;let r=t==="button"||t==="input"?"formaction=":"action=";throw new Error(`[webjs] the function in ${r} on <${t||"form"}> is not a server action. Only a function imported from a 'use server' *.server.{js,ts} module can be bound to a form or a submitter, because the identity the browser submits has to resolve back to something the server can run. Move the handler into a server action and import it, or pass a url string.`)}function lf(e,t){if(e!=null&&!/^post$/i.test(e))throw new Error(`[webjs] <form method="${e}" action=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${e}" form sends no body. Drop the method attribute (WebJs emits method="post") or remove the bound action.`);if(t!=null&&!$a.has(t.toLowerCase()))throw new Error(`[webjs] <form enctype="${t}" action=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${t}" body is neither, so the submission would run under JS and do nothing without it. Drop the enctype attribute (WebJs emits multipart/form-data).`)}function Fa(e,t){let r=qr(e);Qn({staticAction:r.has("action")});let n=Ba(r.has("method")?r.get("method"):H,r.has("enctype")?r.get("enctype"):H),o=e.endsWith("/>")?"/>":">",s=e.slice(0,e.length-o.length),i="";return n.method!==null&&(i+=` method="${n.method}"`),n.enctype!==null&&(i+=` enctype="${n.enctype}"`),{tag:s+i+o,hidden:uf(t)}}function Qn(e){if(e.duplicateAction)throw new Error("[webjs] two action=${...} holes were found on one <form>. A form can carry only one action binding. Move one to a submit button's formaction=${action} or remove the duplicate.");if(e.staticAction)throw new Error('[webjs] a bound <form action=${action}> also carries a plain action="..." attribute. A bound form posts to the page\'s own url, so the two say different things: without JS the browser would post to the written url and with JS it would not. Drop the action attribute, or drop the binding.');let t=e.propAttrs&&e.propAttrs[0];if(t)throw new Error(`[webjs] a bound <form action=\${action}> also binds .${t}=. A property binding on a native element is dropped at SSR and applied in the browser, so the form would submit one way with JS and another way without it. Write it as a plain attribute.`)}function Ba(e,t){let r=e!==H&&e!=null,n=t!==H&&t!=null;return lf(r?e:null,n?t:null),{method:r?null:"post",enctype:n?null:"multipart/form-data"}}function Rs(e,t,r){let n=t!==H&&t!=null,o=r!==H&&r!=null;return cf(e,n?t:null,o?r:null),{formMethod:n?null:"post",formEnctype:o?null:"multipart/form-data"}}function Ha(e,t,r){df(e,t,r);let n=qr(e),o=Rs(t,n.has("formmethod")?n.get("formmethod"):H,n.has("formenctype")?n.get("formenctype"):H),s=e.endsWith("/>")?"/>":">",i=e.slice(0,e.length-s.length),a="";return o.formMethod!==null&&(a+=` formmethod="${o.formMethod}"`),o.formEnctype!==null&&(a+=` formenctype="${o.formEnctype}"`),i+a+s}function uf(e){return`<input type="hidden" name="${M}" value="${q(e)}">`}function Ua(e,t,r,n,o){let s=typeof t=="function"?Xn(t):null;if(!s){typeof t=="function"&&zt(null,e.localName),pf(e,r,n,o.propAttrs);return}Qn(o);let i=Ba(r,n);e.removeAttribute("action"),Rr(e,"method",r,i.method),Rr(e,"enctype",n,i.enctype),ff(e,s)}function Rr(e,t,r,n){if(n!==null){e.setAttribute(t,n);return}r!==H&&e.getAttribute(t)!==r&&e.setAttribute(t,r)}function ff(e,t){let r=e.firstElementChild,n=r&&r.localName==="input"&&r.getAttribute("name")===M?r:null;if(!n){for(let o of e.children)if(o.localName==="input"&&o.getAttribute("name")===M){n=o;break}}n||(n=e.ownerDocument.createElement("input"),n.setAttribute("type","hidden"),n.setAttribute("name",M),e.insertBefore(n,e.firstChild)),n.getAttribute("value")!==t&&n.setAttribute("value",t)}function df(e,t,r){let n=qr(e),o=n.has("type")?n.get("type"):null;Cs(r.propAttrs,t),Pr(!!r.duplicateAction,t),n.has("formaction")&&Ns(t),Ma(e,"value")>1&&Or(t),Ma(e,"name")>1&&Lr(n.get("name")||M,t,!1),ks(t,o),n.has("form")&&jr(t)}function pf(e,t,r,n){let o=e.firstElementChild;if(o&&o.localName==="input"&&o.getAttribute("name")===M)o.remove();else for(let i of e.children)if(i.localName==="input"&&i.getAttribute("name")===M){i.remove();break}let s=i=>(n||[]).some(a=>{let c=String(a).toLowerCase();return c===i||i==="enctype"&&c==="encoding"});t===H&&!s("method")&&e.removeAttribute("method"),r===H&&!s("enctype")&&e.removeAttribute("enctype")}function Va(e,t,r,n){let o=s=>(n||[]).some(i=>String(i).toLowerCase()===s);t===H&&!o("formmethod")&&e.removeAttribute("formmethod"),r===H&&!o("formenctype")&&e.removeAttribute("formenctype")}function qr(e){return new Map(Wa(e))}function Wa(e){let t=[],r=1;for(;r<e.length&&!/[\s/>]/.test(e[r]);)r++;for(;r<e.length;){for(;r<e.length&&/[\s/]/.test(e[r]);)r++;if(r>=e.length||e[r]===">")break;let n="";for(;r<e.length&&!/[\s/>=]/.test(e[r]);)n+=e[r++];for(;r<e.length&&/\s/.test(e[r]);)r++;if(e[r]!=="="){n&&t.push([n.toLowerCase(),""]);continue}for(r++;r<e.length&&/\s/.test(e[r]);)r++;let o="",s=e[r];if(s==='"'||s==="'"){for(r++;r<e.length&&e[r]!==s;)o+=e[r++];r++}else for(;r<e.length&&!/[\s>]/.test(e[r]);)o+=e[r++];n&&t.push([n.toLowerCase(),o])}return t}function Ma(e,t){let r=String(t).toLowerCase();return Wa(e).filter(([n])=>n===r).length}function hf(e,t){let r=String(e).toLowerCase();Vt(r[0])&&(r=r.slice(1));let n=String(t||"").toLowerCase();return r==="action"?n==="form":r==="formaction"?n==="button"||n==="input":!1}function eo(e,t){if(typeof e=="function")return!0;if(!Array.isArray(e))return!1;let r=t||new Set;return r.has(e)?!1:(r.add(e),e.some(n=>eo(n,r)))}function mf(e){let t=String(e).toLowerCase();return Vt(t[0])&&(t=t.slice(1)),t==="action"||t==="formaction"}function gf(e,t){return`[webjs] a function was interpolated into ${String(e).toLowerCase()}= on <${t||"form"}>. Stringifying a function into HTML would leak its source (a 'use server' action's body included) to every visitor, so this is refused. To run a server action from a form, write an unquoted action=\${action} on the <form> itself or a formaction=\${action} on a <button> inside a bound form. Anywhere else, pass a URL string.`}var M,Da,Es,$a,H,je=S(()=>{mt();ze();M="__webjs_action",Da="$$webjsAction",Es=null;$a=new Set(["multipart/form-data","application/x-www-form-urlencoded"]);H=Symbol("webjs.attr.absent")});var x,v,O,U,js,we,gt,Hr,Qa,D,Ps,Se,E,Ge=S(()=>{x=Symbol("webjs.slot.state"),v="data-webjs-light",O="data-projection",U="actual",js="fallback",we=Symbol("webjs.slot.fallbackFrag"),gt=Symbol("webjs.slot.templateOwner"),Hr="data-wj-slot-owner",Qa=64,D=Symbol("webjs.slot.rendering"),Ps=Symbol("webjs.slot.intercepted"),Se=Symbol("webjs.slot.park"),E=new WeakSet});function $(e){let t=e,r=t[x];return r||(r={host:e,authored:[],assignedByName:new Map,lastSnapshot:new WeakMap},t[x]=r),r}function bt(e){return!!e[x]}function Is(e){let t=$(e);for(;e.firstChild;){let r=e.firstChild;t.authored.push(r),E.add(r),e.removeChild(r)}_e(t)}function _e(e){let t=e.assignedByName;t.clear();for(let r of e.authored)Nf(t,Ye(e,r),r)}function Ye(e,t){let r=Vr(e,t);if(r)return W(r.getAttribute("name"));if(e.adoptedKey){let n=e.adoptedKey.get(t);if(n!==void 0)return n}return ec(t)}function qs(e){let t=$(e);t.adopted=!0;let r=new Set,n=e.querySelectorAll(`slot[${v}]`);for(let o of n){let s=o;if(!X(e,s)||s.getAttribute(O)!==U||tr(t,e,s))continue;let i=W(s.getAttribute("name"));if(!r.has(i)){r.add(i);let a=Array.from(s.childNodes);for(let c of a)t.authored.push(c),ec(c)!==i&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(c,i));t.lastSnapshot.set(s,a.slice())}}for(let o of e.querySelectorAll("wj-slot-park"))if(X(e,o)){for(let s of Array.from(o.childNodes))E.add(s),t.authored.push(s);o.remove()}_e(t)}function W(e){return e==null||e===""||e==="default"?null:e}function ec(e){return e.nodeType!==1?null:W(e.getAttribute("slot"))}function Nf(e,t,r){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(r)}var yt=S(()=>{St();Ur();wt();Ge()});function tc(){Ae||!oe||(Ae=Node.prototype.appendChild,Ms=Node.prototype.insertBefore,Je=Node.prototype.removeChild,to=Node.prototype.replaceChild,Ds=Element.prototype.append,$s=Element.prototype.prepend,Fs=Element.prototype.replaceChildren,Wr=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),ro=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"))}function _t(e,t){let r=e[D];e[D]=!0;try{return t()}finally{e[D]=r,r||no(e)}}function Bs(e){if(!oe)return;let t=e,r=$(e);r.backstop||(r.backstop=new MutationObserver(n=>Kr(e,r,n)),r.backstop.observe(e,{childList:!0,subtree:!1}),r.flipSensor=new MutationObserver(n=>rc(e,n)),r.flipSensor.observe(e,{attributes:!0,attributeFilter:["slot","name"],subtree:!0}))}function Kr(e,t,r){let n=e,o=n[Se],s=n[Symbol.for("webjs.instance")],i=!1,a=new Set;for(let c of r){for(let l of c.addedNodes)if(a.add(l),l!==o&&!(s&&Vs(s,l))){if(t.authored.indexOf(l)!==-1){i=!0;continue}E.add(l),t.authored.push(l),i=!0}for(let l of c.removedNodes){let u=t.authored.indexOf(l);if(u===-1||e.contains(l))continue;E.has(l)&&l.parentNode==null&&!a.has(l)||(t.authored.splice(u,1),i=!0)}}i&&ee(e)}function no(e){let t=e,r=t[x];if(!(r&&r.backstop))return;let n=r.backstop.takeRecords();(!(Symbol.for("webjs.instance")in t)||t[Symbol.for("webjs.instance")])&&Kr(e,r,n)}function rc(e,t){let r=e[x];if(!r)return;let n=!1;for(let o of t){if(o.type!=="attributes")continue;let s=o.target;o.attributeName==="name"?s.tagName==="SLOT"&&s.hasAttribute(v)&&X(e,s)&&(n=!0):o.attributeName==="slot"&&(r.adoptedKey&&r.adoptedKey.delete(s),r.authored.indexOf(s)!==-1&&(n=!0))}n&&ee(e)}function Hs(e){let t=e[x];t&&(t.backstop&&(Kr(e,t,t.backstop.takeRecords()),t.backstop.disconnect(),t.backstop=void 0),t.flipSensor&&(rc(e,t.flipSensor.takeRecords()),t.flipSensor.disconnect(),t.flipSensor=void 0))}function Us(e){if(!oe)return;let t=e,r=t[x];if(!r)return;let n=t[Symbol.for("webjs.instance")],o=Symbol.for("webjs.instance")in t,s=!o&&r.adopted===!0,i=!1;for(let a of Array.from(e.childNodes))if(a!==t[Se]){if(r.authored.indexOf(a)!==-1){i=!0;continue}o&&(!n||Vs(n,a))||!o&&s||(E.add(a),r.authored.push(a),i=!0)}i&&ee(e)}var Ae,Ms,Je,to,Ds,$s,Fs,Wr,ro,oo=S(()=>{St();Ur();wt();zr();yt();Ge();Ae=null,Ms=null,Je=null,to=null,Ds=null,$s=null,Fs=null,Wr=null,ro=null});function Vs(e,t){if(!e||!e.startNode||!e.endNode)return!1;if(t===e.startNode||t===e.endNode)return!0;for(let r=e.startNode.nextSibling;r&&r!==e.endNode;r=r.nextSibling)if(r===t)return!0;return!1}function nc(e){let t=e,r=t[Se];return(!r||!r.isConnected)&&(r||(r=e.ownerDocument.createElement("wj-slot-park"),r.setAttribute("hidden",""),r.style.display="none",t[Se]=r),_t(e,()=>Ae.call(e,r))),r}function At(e){return e instanceof Node||!!(e&&typeof e=="object"&&e.ownerDocument&&e.ownerDocument.defaultView&&e instanceof e.ownerDocument.defaultView.Node)}function Ws(e,t,r){if(r&&!At(t))return[e.ownerDocument.createTextNode(`${t}`)];if(!At(t))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");if(t&&t.nodeType===11){let n=Array.from(t.childNodes);so(e,n);for(let o of n)Je.call(t,o);return n}return so(e,[t]),[t]}function so(e,t){rr(e,t);for(let r of t){if(!At(r))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");let n=r.nodeType;if(n!==1&&n!==3&&n!==4&&n!==7&&n!==8&&n!==11)throw new DOMException("Failed to execute insertion on the host: the node type may not be inserted here.","HierarchyRequestError")}}function rr(e,t){for(let r of t)if(r===e||r.nodeType===1&&r.contains(e))throw new DOMException("Failed to execute insertion on the host: the new child contains the parent.","HierarchyRequestError")}function Ks(e,t,r){let n=e.authored;for(let s of t){let i=n.indexOf(s);i!==-1&&n.splice(i,1)}let o=r==null?n.length:n.indexOf(r);o===-1&&(o=n.length),n.splice(o,0,...t)}function Ys(e,t){let r=e[x];return r?tr(r,e,t):!1}function tr(e,t,r){for(let n=r;n&&n!==t;n=n.parentNode)if(e.authored.indexOf(n)!==-1)return!0;return!1}function zs(e,t){if(E.has(t))return!0;let r=t.parentNode;if(r==null)return!1;if(r===e||r===e[Se])return!0;let n=e[x];return r.nodeType===1&&r.tagName==="SLOT"&&r.hasAttribute(v)&&(n&&n.lastSnapshot.has(r)||e.contains(r)&&X(e,r))}function Gs(e,t){let r=[];for(let s of t)At(s)?s.nodeType===11?r.push({frag:s}):r.push({node:s}):r.push({text:`${s}`});for(let s of r)s.frag?rr(e,Array.from(s.frag.childNodes)):s.node&&so(e,[s.node]);let n=e.ownerDocument.createDocumentFragment();for(let s of r)if(s.text!==void 0)Ae.call(n,e.ownerDocument.createTextNode(s.text));else if(s.frag){let i=Array.from(s.frag.childNodes);so(e,i);for(let a of i)Ae.call(n,a)}else s.node&&(rr(e,[s.node]),Ae.call(n,s.node));let o=Array.from(n.childNodes);rr(e,o);for(let s of o)Je.call(n,s);return o}function Pe(e,t,r){if(t.applying&&t.pendingRecordNodes)for(let n of r||[])t.pendingRecordNodes.add(n);else t.pendingRecordNodes=new Set(r||[]);if(t.adoptedKey&&r)for(let n of r)t.adoptedKey.delete(n);_e(t),ee(e)}function Js(e){if(!oe)return;let t=e;if(t[Ps])return;tc(),t[Ps]=!0;let r=$(e);t.appendChild=function(n){if(t[D])return Ae.call(this,n);let o=Ws(e,n,!1);for(let s of o)E.add(s);return Ks(r,o,null),Pe(e,r,o),n},t.insertBefore=function(n,o){if(t[D])return Ms.call(this,n,o);if(!At(n))throw new TypeError("Failed to execute insertBefore on the host: parameter 1 is not of type Node.");if(o!=null&&!At(o))throw new TypeError("Failed to execute insertBefore on the host: parameter 2 is not of type Node.");if(rr(e,n.nodeType===11?Array.from(n.childNodes):[n]),o!=null&&(r.authored.indexOf(o)===-1||!zs(e,o)))throw new DOMException("insertBefore: reference node is not an assigned child of this host","NotFoundError");if(n===o)return n;let s=Ws(e,n,!1);for(let i of s)E.add(i);return Ks(r,s,o||null),Pe(e,r,s),n},t.removeChild=function(n){if(t[D])return Je.call(this,n);let o=r.authored.indexOf(n);if(o===-1)return Je.call(this,n);if(!zs(e,n))throw new DOMException("removeChild: the node is not an assigned child of this host","NotFoundError");return r.authored.splice(o,1),Pe(e,r,[n]),n},t.replaceChild=function(n,o){if(t[D])return to.call(this,n,o);if(r.authored.indexOf(o)===-1)return to.call(this,n,o);if(!At(n))throw new TypeError("Failed to execute replaceChild on the host: parameter 1 is not of type Node.");if(rr(e,n.nodeType===11?Array.from(n.childNodes):[n]),!zs(e,o))throw new DOMException("replaceChild: the node to be replaced is not an assigned child of this host","NotFoundError");if(n===o)return o;let i=Ws(e,n,!1);for(let c of i)E.add(c);for(let c of i){if(c===o)continue;let l=r.authored.indexOf(c);l!==-1&&r.authored.splice(l,1)}let a=r.authored.indexOf(o);return r.authored.splice(a,1,...i),Pe(e,r,[...i,o]),o},t.append=function(...n){if(t[D])return Ds.apply(this,n);let o=Gs(e,n);for(let s of o)E.add(s);Ks(r,o,null),Pe(e,r,o)},t.prepend=function(...n){if(t[D])return $s.apply(this,n);let o=Gs(e,n);for(let s of o)E.add(s);for(let s of o){let i=r.authored.indexOf(s);i!==-1&&r.authored.splice(i,1)}r.authored.unshift(...o),Pe(e,r,o)},t.replaceChildren=function(...n){if(t[D])return Fs.apply(this,n);let o=Gs(e,n);for(let i of o)E.add(i);let s=r.authored;r.authored=o.slice(),Pe(e,r,[...s,...o])},Object.defineProperty(t,"innerHTML",{configurable:!0,get(){return Wr.get.call(this)},set(n){if(t[D]){Wr.set.call(this,n);return}let o=e.ownerDocument.createElement("div");Wr.set.call(o,n===null?"":`${n}`);let s=Array.from(o.childNodes);for(let a of s)E.add(a);let i=r.authored;r.authored=s,Pe(e,r,[...i,...s])}}),Object.defineProperty(t,"textContent",{configurable:!0,get(){return ro.get.call(this)},set(n){if(t[D]){ro.set.call(this,n);return}let o=n==null||n===""?[]:[e.ownerDocument.createTextNode(`${n}`)];for(let i of o)E.add(i);let s=r.authored;r.authored=o,Pe(e,r,[...s,...o])}})}var oc,Ur=S(()=>{St();wt();zr();oo();yt();Ge();oc=new Set});function Xe(e,t,r){let n=$(e),o=W(t),s=Array.isArray(r)?r.filter(Boolean):r?[r]:[],i=n.authored.findIndex(c=>Ye(n,c)===o),a=n.authored.filter(c=>Ye(n,c)===o);n.authored=n.authored.filter(c=>Ye(n,c)!==o),(i===-1||i>n.authored.length)&&(i=n.authored.length);for(let c of s)c.nodeType===1&&!Vr(n,c)&&(o==null?c.removeAttribute("slot"):c.setAttribute("slot",o)),E.add(c);if(n.authored.splice(i,0,...s),n.applying&&n.pendingRecordNodes){for(let c of a)n.pendingRecordNodes.add(c);for(let c of s)n.pendingRecordNodes.add(c)}else n.pendingRecordNodes=new Set([...a,...s]);if(n.adoptedKey){for(let c of a)n.adoptedKey.delete(c);for(let c of s)n.adoptedKey.delete(c)}_e(n),ee(e)}function ee(e){if(!oe)return;let t=e[x];if(t){if(t.applying){t.reapply=!0;return}t.applying=!0;try{do{t.reapply=!1;let r=t.pendingRecordNodes||oc;t.pendingRecordNodes=void 0,Cf(e,t,r),Rf(e,t),_e(t);let n=[],o=new Set;for(let u of e.querySelectorAll(`slot[${v}]`))if(X(e,u)&&!tr(t,e,u)){if(!u.hasAttribute(O)&&!(we in u)){o.add(W(u.getAttribute("name")));continue}n.push(u)}let s=new Map;for(let u of n){let f=W(u.getAttribute("name")),d=s.get(f);d||(d=[],s.set(f,d)),d.push(u)}let i=[];for(let[u,f]of s){let d=t.assignedByName.get(u)||[];for(let p=0;p<f.length;p++){let g=f[p],y=d.filter(w=>{let b=Vr(t,w);return b?b===g:p===0}),m=y.filter(w=>w===e||w.nodeType===1&&w.contains(e));if(m.length){for(let w of m)E.delete(w);y=y.filter(w=>m.indexOf(w)===-1)}y.length>0?Xs(t,g,y)&&i.push(g):Zs(t,g)&&i.push(g)}}for(let u of i)Qs(t,u);let a=new Set(s.keys());for(let u of o)a.add(u);let c=new Set;for(let u of t.authored)a.has(Ye(t,u))||c.add(u);let l=e[Se];if(l)for(let u of Array.from(l.childNodes))c.has(u)||Je.call(l,u);if(c.size){let u=nc(e);for(let f of c)f.parentNode!==u&&(E.delete(f),_t(e,()=>Ae.call(u,f)))}if(t.backstop){let u=t.backstop.takeRecords();u.length&&Kr(e,t,u)}}while(t.reapply)}finally{t.applying=!1}}}function Cf(e,t,r){for(let n of e.querySelectorAll(`slot[${v}][${O}="${U}"]`)){if(!X(e,n)||tr(t,e,n))continue;let o=n,s=t.lastSnapshot.get(o);if(!s)continue;let i=Array.from(o.childNodes);if(io(i,s))continue;let a=t.authored,c=W(o.getAttribute("name")),l=i.filter(g=>!r.has(g));for(let g of l)a.indexOf(g)===-1&&Ye(t,g)!==c&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(g,c));for(let g of a){if(l.indexOf(g)!==-1||Ye(t,g)!==c)continue;let y=a.indexOf(g),m=0;for(let w=0;w<l.length;w++){let b=a.indexOf(l[w]);b!==-1&&b<y&&(m=w+1)}l.splice(m,0,g)}let u=new Set(l);for(let g of s)u.add(g);let f=-1,d=0;for(let g of a){if(u.has(g)){f===-1&&(f=d);continue}d+=1}let p=a.filter(g=>!u.has(g));(f===-1||f>p.length)&&(f=p.length),p.splice(f,0,...l),t.authored=p}}function Rf(e,t){let r=e[Se];t.authored=t.authored.filter(n=>{if(E.has(n))return!0;let o=n.parentNode;return o==null?!1:!!(o===e||o===r||o.nodeType===1&&o.tagName==="SLOT"&&o.hasAttribute(v)&&(t.lastSnapshot.has(o)||e.contains(o)&&X(e,o)))})}var zr=S(()=>{St();Ur();wt();oo();yt();Ge()});function ac(){return typeof HTMLElement<"u"&&typeof HTMLSlotElement<"u"}function cc(){if(sc||(oe=ac(),!oe))return;Gr=HTMLSlotElement.prototype.assignedNodes,ei=HTMLSlotElement.prototype.assignedElements,ao=Object.getOwnPropertyDescriptor(Element.prototype,"assignedSlot"),HTMLSlotElement.prototype.assignedNodes=function(r){return this.hasAttribute(v)&&!ri(this)?ni(this,r):Gr?Gr.call(this,r):[]},HTMLSlotElement.prototype.assignedElements=function(r){return this.hasAttribute(v)&&!ri(this)?ni(this,r).filter(n=>n.nodeType===1):ei?ei.call(this,r):[]},Object.defineProperty(Element.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=ao&&ao.get?ao.get.call(this):null;return r||ic(this)}});let e=Object.getOwnPropertyDescriptor(Text.prototype,"assignedSlot");Object.defineProperty(Text.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=e&&e.get?e.get.call(this):null;return r||ic(this)}}),ti=HTMLSlotElement.prototype.assign,HTMLSlotElement.prototype.assign=function(...r){if(this.hasAttribute(v)&&!ri(this)){let n=Lf(this);if(n){let o=$(n);o.manualAssign||(o.manualAssign=new Map);let s=r.filter(Boolean);for(let[i,a]of o.manualAssign){if(i===this)continue;let c=a.filter(l=>{let u=l.deref();return u!==void 0&&s.indexOf(u)===-1});c.length!==a.length&&(c.length?o.manualAssign.set(i,c):o.manualAssign.delete(i))}if(s.length?o.manualAssign.set(this,s.map(i=>new WeakRef(i))):o.manualAssign.delete(this),o.applying&&o.pendingRecordNodes)for(let i of s)o.pendingRecordNodes.add(i);else o.pendingRecordNodes=new Set(s);_e(o),ee(n)}return}return ti?ti.apply(this,r):void 0},sc=!0}function Vr(e,t){let r=e.manualAssign;if(!r||!r.size)return null;for(let[n,o]of r){let s=!1,i=o.filter(a=>{let c=a.deref();return c===void 0?!1:(c===t&&(s=!0),!0)});if(i.length!==o.length&&(i.length?r.set(n,i):r.delete(n)),s){let a=e.host;return a&&(n===a||a.contains(n))?n:null}}return null}function Lf(e){for(let t=e.parentElement;t;t=t.parentElement)if(t[x])return X(t,e)?t:null;return null}function ri(e){let t=e;for(let r=0;r<128;r++){let n=t.parentNode;if(!n||n===t)return!1;if(n.nodeType===11&&n.host)return!0;t=n}return!1}function ni(e,t){if(e.getAttribute(O)!==U)return[];let r=Array.from(e.childNodes);return!t||!t.flatten?r:oi(r,new Set,0)}function oi(e,t,r){if(r>=Qa)return e.slice();let n=[];for(let o of e)if(o.nodeType===1&&o.tagName==="SLOT"){let s=o;if(t.has(s))continue;if(t.add(s),s.hasAttribute(v)){let i=ni(s,{flatten:!1});if(i.length>0)for(let a of oi(i,t,r+1))n.push(a);else for(let a of oi(Array.from(s.childNodes),t,r+1))n.push(a)}else if(Gr){let i=Gr.call(s,{flatten:!0});for(let a of i)n.push(a)}else n.push(o)}else n.push(o);return n}function ic(e){let t=e.parentElement;return t&&t.tagName==="SLOT"&&t.hasAttribute(v)&&t.getAttribute(O)===U?t:null}var oe,Gr,ei,ao,ti,sc,wt=S(()=>{St();zr();yt();Ge();oe=ac(),Gr=null,ei=null,ao=null,ti=null,sc=!1;cc()});function si(e){if(!oe)return!1;for(let t of e.querySelectorAll(`slot[${v}][${O}]`))if(X(e,t))return!0;return!1}function X(e,t){let r=t[gt];if(r)return r===e;let n=typeof t.getAttribute=="function"?t.getAttribute(Hr):null;if(n){let o=Of(t,n);if(o)return o===e}for(let o=t.parentElement;o&&o!==e;o=o.parentElement)if(o.tagName.includes("-"))return!1;return!0}function Of(e,t){let r=t.toLowerCase();for(let n=e.parentElement;n;n=n.parentElement)if(n.tagName.toLowerCase()===r)return n;return null}function Xs(e,t,r){for(let l of r)E.delete(l);let n=t.getAttribute(O)!==U,o=e.lastSnapshot.get(t)||[],s=n||!io(o,r);if(!n&&io(Array.from(t.childNodes),r))return e.lastSnapshot.set(t,r.slice()),s;let i=t[we];if(n&&i)for(;t.firstChild;)i.appendChild(t.firstChild);let a=new Set(r);for(let l of Array.from(t.childNodes))a.has(l)||t.removeChild(l);let c=t.firstChild;for(let l of r){if(l===c){c=c.nextSibling;continue}t.insertBefore(l,c)}return t.setAttribute(O,U),e.lastSnapshot.set(t,r.slice()),s}function Zs(e,t){let r=t.getAttribute(O)===U;if(t.setAttribute(O,js),!r)return lc(t),!1;for(e.lastSnapshot.delete(t);t.firstChild;)t.removeChild(t.firstChild);return lc(t),!0}function lc(e){let t=e[we];!t||t.childNodes.length===0||e.appendChild(t)}function ii(e,t){if(!bt(e))return;let r=$(e),n=W(t.getAttribute("name")),o=r.assignedByName.get(n);if(o)for(let s of o)s.parentNode===t&&(E.add(s),t.removeChild(s));r.lastSnapshot.delete(t)}function uc(e){e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1}))}function Qs(e,t){e.pendingSlotChanges||(e.pendingSlotChanges=new Set),e.pendingSlotChanges.add(t),!e.slotChangeScheduled&&(e.slotChangeScheduled=!0,queueMicrotask(()=>{e.slotChangeScheduled=!1;let r=e.pendingSlotChanges||new Set;e.pendingSlotChanges=new Set;for(let n of r)uc(n)}))}function io(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var St=S(()=>{wt();yt();Ge()});var Ze=S(()=>{St();Ur();wt();zr();oo();yt();Ge()});function Uc(e,t,r){_d.has(t)?Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}):e[t]=r}async function rn(e){return JSON.stringify(await Vc(e))}function Ie(e){return Wc(JSON.parse(e))}async function Vc(e){let t=Ad();return await xd(e,t),kt(e,t)}function Wc(e){return tt(e,kd())}function Ad(){return{refCount:new Map,idOf:new Map,emitted:new Set,nextId:0,blobBytes:new Map,fdEntries:new Map}}async function xd(e,t){let r=[e];for(;r.length;){let n=r.pop();if(!Cd(n))continue;let o=t.refCount.get(n)||0;if(t.refCount.set(n,o+1),!(o>0)){if(typeof Blob<"u"&&n instanceof Blob){let s=new Uint8Array(await n.arrayBuffer());t.blobBytes.set(n,s);continue}if(typeof FormData<"u"&&n instanceof FormData){let s=t.fdEntries.get(n)||[...n.entries()];t.fdEntries.set(n,s);for(let[,i]of s)typeof i!="string"&&r.push(i);continue}if(Array.isArray(n))for(let s=0;s<n.length;s++)r.push(n[s]);else if(n instanceof Map)for(let[s,i]of n)r.push(s),r.push(i);else if(n instanceof Set)for(let s of n)r.push(s);else if(Rd(n))for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.push(n[s])}}for(let[n,o]of t.refCount)o>1&&t.idOf.set(n,t.nextId++)}function kt(e,t){if(e===null)return null;if(e===void 0)return{[I]:"undef"};let r=typeof e;if(r==="string"||r==="boolean")return e;if(r==="number")return Number.isNaN(e)?{[I]:"NaN"}:e===1/0?{[I]:"Inf"}:e===-1/0?{[I]:"-Inf"}:Object.is(e,-0)?{[I]:"-0"}:e;if(r==="bigint")return{[I]:"BigInt",v:e.toString()};if(r==="symbol"){let s=Symbol.keyFor(e);if(s===void 0)throw new TypeError("Cannot serialize a local Symbol; only Symbol.for() registered symbols are supported.");return{[I]:"Sym",v:s}}if(r==="function")throw new TypeError("Cannot serialize a function.");let n=t.idOf.get(e);if(n!==void 0&&t.emitted.has(n))return{[I]:"Ref",v:n};n!==void 0&&t.emitted.add(n);let o;if(e instanceof Date)o={[I]:"Date",v:Number.isNaN(e.getTime())?null:e.toISOString()};else if(e instanceof Error)o={[I]:"Error",v:{name:e.name,message:e.message,stack:e.stack||null}};else if(typeof Blob<"u"&&e instanceof Blob){let s=t.blobBytes.get(e);typeof File<"u"&&e instanceof File?o={[I]:"File",v:tn(s),n:e.name,t:e.type||"",m:e.lastModified}:o={[I]:"Blob",v:tn(s),t:e.type||""}}else if(typeof FormData<"u"&&e instanceof FormData){let s=t.fdEntries.get(e)||[...e.entries()],i=[];for(let[a,c]of s)i.push([a,kt(c,t)]);o={[I]:"FD",v:i}}else if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o=vd(e);else if(e instanceof Map){let s=[];for(let[i,a]of e)s.push([kt(i,t),kt(a,t)]);o={[I]:"Map",v:s}}else if(e instanceof Set){let s=[];for(let i of e)s.push(kt(i,t));o={[I]:"Set",v:s}}else if(Array.isArray(e))o=e.map(s=>kt(s,t));else{o={};for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=Ld(s)?"_"+s:s;Uc(o,i,kt(e[s],t))}}if(n!==void 0){if(Array.isArray(o))return{[I]:"Arr",_id:n,v:o};o._id=n}return o}function vd(e){if(e instanceof ArrayBuffer)return{[I]:"buf",v:tn(new Uint8Array(e))};if(e instanceof DataView)return{[I]:"dv",v:tn(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))};let t=e.constructor.name,r=Ed[t];if(!r)throw new TypeError(`Unsupported typed array: ${t}`);let n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return{[I]:r,v:tn(n)}}function kd(){return{refs:new Map}}function tt(e,t){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){let s=[];for(let i=0;i<e.length;i++)s.push(tt(e[i],t));return s}let r=e[I];if(typeof r=="string")return Nd(e,r,t);let n={},o=e._id;typeof o=="number"&&t.refs.set(o,n);for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||s==="_id")continue;let i=Od(s)?s.slice(1):s;Uc(n,i,tt(e[s],t))}return n}function Nd(e,t,r){let n=e._id,o=s=>(typeof n=="number"&&r.refs.set(n,s),s);switch(t){case"undef":return;case"NaN":return NaN;case"Inf":return 1/0;case"-Inf":return-1/0;case"-0":return-0;case"BigInt":return o(BigInt(e.v));case"Sym":return o(Symbol.for(e.v));case"Date":return o(e.v==null?new Date(NaN):new Date(e.v));case"Error":{let s=new Error(e.v.message);return s.name=e.v.name,e.v.stack&&(s.stack=e.v.stack),typeof n=="number"&&r.refs.set(n,s),s}case"Map":{let s=new Map;typeof n=="number"&&r.refs.set(n,s);for(let[i,a]of e.v)s.set(tt(i,r),tt(a,r));return s}case"Set":{let s=new Set;typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.add(tt(i,r));return s}case"Arr":{let s=[];typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.push(tt(i,r));return s}case"Ref":{let s=r.refs.get(e.v);if(s===void 0)throw new TypeError(`Dangling reference: id=${e.v}`);return s}case"Blob":{if(typeof Blob>"u")throw new TypeError("Blob is not available in this environment.");let s=en(e.v);return o(new Blob([s],{type:e.t||""}))}case"File":{if(typeof File>"u")throw new TypeError("File is not available in this environment.");let s=en(e.v);return o(new File([s],e.n,{type:e.t||"",lastModified:e.m}))}case"FD":{if(typeof FormData>"u")throw new TypeError("FormData is not available in this environment.");let s=new FormData;o(s);for(let[i,a]of e.v){let c=tt(a,r);s.append(i,c)}return s}default:{if(t==="buf"){let i=en(e.v);return o(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}if(t==="dv"){let i=en(e.v);return o(new DataView(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)))}let s=Td[t];if(s){let i=en(e.v),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength);return o(new s(a))}throw new TypeError(`Unknown serialization tag: ${t}`)}}}function Cd(e){return e!==null&&typeof e=="object"}function Rd(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ld(e){return/^_+\$wj$/.test(e)||/^_+id$/.test(e)}function Od(e){return/^__+\$wj$/.test(e)||/^__+id$/.test(e)}function tn(e){if(Kc)return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64");let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function en(e){if(Kc){let n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}var I,_d,Ed,Td,Kc,Nt=S(()=>{I="_$wj",_d=new Set(["__proto__","constructor","prototype"]);Ed={Int8Array:"i8",Uint8Array:"u8",Uint8ClampedArray:"u8c",Int16Array:"i16",Uint16Array:"u16",Int32Array:"i32",Uint32Array:"u32",Float32Array:"f32",Float64Array:"f64",BigInt64Array:"bi64",BigUint64Array:"bu64"},Td={i8:Int8Array,u8:Uint8Array,u8c:Uint8ClampedArray,i16:Int16Array,u16:Uint16Array,i32:Int32Array,u32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:typeof BigInt64Array<"u"?BigInt64Array:null,bu64:typeof BigUint64Array<"u"?BigUint64Array:null};Kc=typeof Buffer<"u"&&typeof Buffer.from=="function"});var Bl={};qa(Bl,{observeLazy:()=>yp,observeViewportOnce:()=>_p});function Fl(e){let t=Hi.get(e);return t||(t=import(e).finally(()=>Hi.delete(e)),Hi.set(e,t),t)}function yp(e){for(let[t,r]of Object.entries(e))nt.set(t.toLowerCase(),r);if(typeof IntersectionObserver>"u"){for(let t of nt.values())Fl(t);nt.clear();return}fn||(fn=new IntersectionObserver(wp,{rootMargin:"200px"})),$l(),!Bi&&typeof MutationObserver<"u"&&(Bi=new MutationObserver(()=>$l()),Bi.observe(document.body,{childList:!0,subtree:!0}))}function $l(){if(!(!fn||!nt.size))for(let e of nt.keys()){if(customElements.get(e)){nt.delete(e);continue}for(let t of document.querySelectorAll(e))fn.observe(t)}}function wp(e){for(let t of e){if(!t.isIntersecting)continue;let r=t.target.tagName.toLowerCase(),n=nt.get(r);n&&(Fl(n),nt.delete(r),fn?.unobserve(t.target))}}function Sp(e){for(let t of e){if(!t.isIntersecting)continue;let r=Oo.get(t.target);Oo.delete(t.target),un?.unobserve(t.target),r&&r()}}function _p(e,t){return typeof IntersectionObserver>"u"?(t(),()=>{}):(un||(un=new IntersectionObserver(Sp,{rootMargin:"200px"})),Oo.set(e,t),un.observe(e),()=>{Oo.delete(e),un?.unobserve(e)})}var nt,fn,Bi,Hi,un,Oo,Hl=S(()=>{nt=new Map,fn=null,Bi=null,Hi=new Map;un=null,Oo=new WeakMap});var Ui,Vi=S(()=>{Ui=typeof HTMLElement<"u"?class extends HTMLElement{constructor(){super(),this._webjsLoadedSrc=null,this._webjsLazyTeardown=null}static get observedAttributes(){return["src"]}connectedCallback(){this._webjsScheduleLoad()}disconnectedCallback(){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null)}attributeChangedCallback(t,r,n){t==="src"&&this.isConnected&&this._webjsScheduleLoad()}_webjsScheduleLoad(){let t=this.getAttribute("src");if(!t){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),this._webjsLoadedSrc=null;return}let r=t;try{r=new URL(t,location.href).href}catch{}if(r===this._webjsLoadedSrc)return;this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),(this.getAttribute("loading")||"eager").toLowerCase()==="lazy"?(this._webjsLoadedSrc=r,Promise.resolve().then(()=>(Hl(),Bl)).then(({observeViewportOnce:o})=>{this._webjsLoadedSrc!==r||!this.isConnected||(this._webjsLazyTeardown=o(this,()=>{this._webjsLazyTeardown=null,this._webjsLoad(r)}))})):(this._webjsLoadedSrc=r,this._webjsLoad(r))}_webjsLoad(t){Promise.resolve().then(()=>(Wi(),Ul)).then(({loadFrame:r})=>{this._webjsLoadedSrc!==t||!this.isConnected||r(this,t)})}}:null;typeof customElements<"u"&&Ui&&!customElements.get("webjs-frame")&&customElements.define("webjs-frame",Ui)});function xp(e,t,r){switch(e){case"append":r&&t.append(r);break;case"prepend":r&&t.prepend(r);break;case"before":r&&t.before(r);break;case"after":r&&t.after(r);break;case"replace":r&&t.replaceWith(r);break;case"update":r&&t.replaceChildren(r);break;case"remove":t.remove();break;default:break}}function zi(e,t){let r=t||(typeof document<"u"?document:null);if(!r)return;let n=null;if(typeof e=="string"){let s=r.createElement("template");s.innerHTML=e,n=s.content}else if(e&&e.nodeType)n=e;else return;let o=n.querySelectorAll?Array.from(n.querySelectorAll("webjs-stream")):[];if(o.length)for(let s of o)r.body.append(s);else r.body.append(n)}var Ap,Ki,dn=S(()=>{Ap=new Set(["append","prepend","before","after","replace","update"]);Ki=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this._webjsApplied||(this._webjsApplied=!0,this._webjsApply())}_webjsApply(){let t=(this.getAttribute("action")||"").toLowerCase(),r=this.ownerDocument||document,n=[],o=this.getAttribute("target");if(o){let i=r.getElementById(o);i&&(n=[i])}else{let i=this.getAttribute("targets");if(i)try{n=Array.from(r.querySelectorAll(i))}catch{n=[]}}let s=Ap.has(t)?this.querySelector("template"):null;try{for(let i of n){let a=s?s.content.cloneNode(!0):null;xp(t,i,a)}}finally{this.remove()}}}:null;typeof customElements<"u"&&Ki&&!customElements.get("webjs-stream")&&customElements.define("webjs-stream",Ki)});var Vl,Wl=S(()=>{Vl=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this.style.display||(this.style.display="contents")}}:null;typeof customElements<"u"&&Vl&&!customElements.get("webjs-suspense")&&customElements.define("webjs-suspense",Vl)});function jo(e,t){let r=typeof document<"u"?document:null,n=e||r;if(!n||typeof n.querySelectorAll!="function")return;if(t&&t.frame===!0){Gi(n,!0);return}Gl();let o=n===r,s=!!r&&!o&&typeof r.contains=="function"&&r.contains(n),i=!!r&&!o&&!s;i&&(Gi(r,!0),ot.clear(),Ji.clear()),(o||i)&&(Yi=!0);let a=K.ingested+K.replaced;Tp(Gi(n),a)}function Gi(e,t){let r=null;for(let n of e.querySelectorAll('script[type="application/json"]#__webjs-seeds, script[type="application/json"][data-webjs-seeds]')){let o=Ep(n.getAttribute?.("data-webjs-dev"));o!==null&&(r=o),Kl(t?null:n.textContent,n)}for(let n of e.querySelectorAll("[data-webjs-seed]"))Kl(t?null:n.getAttribute("data-webjs-seed"),n,()=>n.removeAttribute("data-webjs-seed"));return r}function Kl(e,t,r){if(e)try{let n=Ie(e);if(n&&typeof n=="object")for(let o in n){ot.has(o)?K.replaced++:K.ingested++,ot.set(o,n[o]);let s=o.indexOf("/",o.indexOf("/")+1);s>0&&Ji.add(o.slice(0,s))}}catch{}r?r():t.remove?.()}function Ep(e){return typeof e!="string"?null:e||"ok"}function Tp(e,t){if(e===null)return;let r=++vp;lr={epoch:r,hits:K.hits,misses:K.misses,keyMisses:K.keyMisses,merged:t,marker:e};let n=()=>{!lr||lr.epoch!==r||Gl()};try{typeof requestIdleCallback=="function"?requestIdleCallback(n,{timeout:1e3}):setTimeout(n,250)}catch{lr=null}}function Gl(){let e=lr;if(lr=null,!!e)try{kp(e)}catch{}}function kp(e){let t=K.hits-e.hits,r=K.misses-e.misses,n=K.ingested+K.replaced-e.merged,o=K.keyMisses-e.keyMisses;if(r===0)return;let s=e.marker==="streamed"?"This page streams (a Suspense or <webjs-suspense> boundary), and a streamed render emits no seeds, so every action call on it goes to the network.":e.marker==="drop"?"The page's seeds could not be serialized, so the whole block was dropped. Something an action returned is not serializer-safe; the server response reports collected above emitted.":o===0?null:"The key is the action file hash plus the function name plus the serialized arguments, so an argument the SSR render never used misses (a deliberate refetch after hydration misses too, and is expected). A miss on an action this page never seeded is NOT counted here, because a mutation or a client-only read could never have been seeded.";if(s===null)return;let a=e.marker==="streamed"||e.marker==="drop"?`${r} of ${t+r} action call(s) in the hydration window went to the network`:`${o} action call(s) in the hydration window asked for a key this page seeded under DIFFERENT arguments`;console.warn(`[webjs] SSR action seeding: ${a} (${n} seed(s) on this page, ${ot.size} still unconsumed). ${s} See https://webjs.dev/docs/data-fetching for the seeding reference.`)}function Np(e,t,r){Yi||(Yi=!0,jo());let n=`${e}/${t}/${r}`;if(ot.has(n)){let o=ot.get(n);return ot.delete(n),K.hits++,o}return K.misses++,Ji.has(`${e}/${t}`)&&K.keyMisses++,zl}function Cp(){return{...K,pending:ot.size}}var ot,zl,Yi,K,Ji,lr,vp,Po=S(()=>{Nt();ot=new Map,zl=Symbol("webjs.seed.miss"),Yi=!1,K={ingested:0,replaced:0,hits:0,misses:0,keyMisses:0},Ji=new Set,lr=null,vp=0});function Xi(e){if(!(!Array.isArray(e)||!e.length)){Io+=1;for(let t of e)t&&Yl.set(t,Io)}}function Lp(){return Io}function Op(e,t,r){if(!(!Array.isArray(t)||!t.length)&&(ur.delete(e),ur.set(e,{tags:t.slice(),since:typeof r=="number"?r:Io}),ur.size>Rp)){let n=ur.keys().next().value;n!==void 0&&ur.delete(n)}}function jp(e){let t=ur.get(e);if(!t)return!1;for(let r of t.tags)if((Yl.get(r)||0)>t.since)return!0;return!1}function Zi(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}var Io,Yl,ur,Rp,qo=S(()=>{Io=0,Yl=new Map,ur=new Map,Rp=1e3});function Jl(e){return fr.test(e)}function Do(e){let t=ta(e);return t.includes("stylesheet")&&!t.includes("alternate")}function ta(e){return(e.getAttribute("rel")||"").toLowerCase().split(/\s+/)}var Qi,ea,fr,pn,Lt,qe,Mo,Xl,de,V=S(()=>{Qi="text/vnd.webjs-stream.html",ea=["wheel","touchmove","keydown","pointerdown"],fr=/\.(?:pdf|zip|tar|gz|7z|rar|dmg|exe|msi|deb|rpm|apk|ipa|xlsx?|docx?|pptx?|csv|odt|ods|odp|rtf|epub|mobi|xml|json|rss|atom|txt|md|wasm|mp3|mp4|mov|avi|webm|ogg|flac|wav|m4a|m4v|mkv|png|jpe?g|gif|webp|avif|bmp|ico|svg|tiff?|heic)$/i,pn="_top",Lt="webjs:nav-fallback",qe=new Set(["value","checked","selected","indeterminate","disabled","open","popover"]),Mo="name=csp-nonce";Xl=250,de="data-webjs-preload-style"});function st(e,t,r="warn"){if(ra.has(e)||(ra.add(e),typeof console>"u"))return;let n=r==="error"?console.error:console.warn;n&&n.call(console,t)}function Ql(e,t,r,n){if(typeof process<"u"&&process.env||!n.has(M))return;let o="";try{o=new URL(e.getAttribute("action")||location.href,location.href).pathname}catch{o=location.pathname}if(r!=="post"){st(`submit-nowhere:${o}:${r}`,`[webjs] this submission carries a bound server action's identity but submits as ${r.toUpperCase()}, which sends no body, so the identity rides the query string and the action never runs. A submitter's own formmethod overrides the form's, and WebJs honours it rather than refusing it, so check for a formmethod on the button that was pressed.`,"error");return}let s=t&&t.getAttribute("formenctype")||e.getAttribute("enctype")||"application/x-www-form-urlencoded";if(s.toLowerCase()==="text/plain"){st(`submit-nowhere:${o}:${s}`,`[webjs] this submission carries a bound server action's identity but declares enctype="${s}", which the server cannot parse. The router declines to send it so both paths behave the same way, and both are answered with a 405. Drop the enctype and let the binding supply it.`,"error");return}o&&o!==location.pathname&&st(`submit-elsewhere:${o}`,`[webjs] this submission carries a bound server action's identity but posts to "${o}" rather than this page, because the enclosing <form> declares its own action. A bound submitter emits no formaction, so the form's target wins, which is what native HTML does. The action runs only if "${o}" is a page route; against a route.ts or another origin the identity is ignored and nothing runs. Drop the form's action attribute to keep the submission on this page.`)}function oa(e,t){return!e&&!t&&typeof document<"u"&&document.readyState==="loading"}function $o(e,t,r,n){if(e!=="navigate"||!t||n&&n===r)return!1;try{return new URL(t).origin===new URL(r).origin}catch{return!1}}function eu(){if(typeof location>"u"||Zl)return;Zl=!0;let e=null;try{e=sessionStorage.getItem(Lt),sessionStorage.removeItem(Lt)}catch{}let t="";try{let r=performance.getEntriesByType("navigation")[0];t=r?r.type:""}catch{}$o(t,document.referrer,location.href,e)&&pe("pre-boot-navigation",location.href,!1)}function pe(e,t,r=!0){if(r)try{sessionStorage.setItem(Lt,t)}catch{}if(typeof document<"u"&&typeof CustomEvent<"u")try{document.dispatchEvent(new CustomEvent("webjs:navigation-fallback",{detail:{cause:e,href:t,willReload:r}}))}catch{}typeof process<"u"&&process.env||st(`fallback:${e}`,r?`[webjs] client router fell back to a full page load (${e}) navigating to ${t}. This is correct (no DOM corruption), just not a soft nav.`:`[webjs] client router degraded a soft navigation (${e}) for ${t}, without a full page load.`)}function tu(e){typeof process<"u"&&process.env||st(`stream-drop:${e}`,`[webjs] dropped a streamed Suspense resolve for "${e}": no #${e} boundary in the DOM. Benign if this navigation was superseded or degraded. A stuck skeleton here means the shell swap did not place the boundary.`)}function ru(){if(typeof process<"u"&&process.env||na||typeof document>"u"||typeof getComputedStyle!="function")return;let e=document.documentElement;if(!e)return;na=!0;let t;try{t=getComputedStyle(e).scrollBehavior}catch{return}t==="smooth"&&st("scroll-behavior-smooth-html","[webjs] Detected `scroll-behavior: smooth` on <html>. The client router scrolls to the top instantly on navigation (like a native page load), so route transitions are not affected by it. It still applies to in-page #anchor links. Pairing it with a sticky `backdrop-filter` header can also flash on iOS during navigation.")}function hn(e){if(typeof document>"u")return;let t=document.documentElement;if(!(!t||!t.hasAttribute("data-webjs-nav-progress")))try{e?t.setAttribute("data-navigating",""):t.removeAttribute("data-navigating")}catch{}}function nu(){ra.clear(),na=!1}function ou(e,t){return oa(e,t)}var ra,Zl,na,he=S(()=>{je();V();ra=new Set;Zl=!1;na=!1});function me(e){let t=new Map,r=[],n=!1;function o(s){if(!n){if(s.nodeType===8){let i=s.data.trim();if(i.startsWith("wj:children:")){let a=i.slice(12),c=a.lastIndexOf(":");if(c<=0||c===a.length-1){n=!0;return}let l=a.slice(0,c),u=a.slice(c+1);if(t.has(l)||r.some(f=>f.segment===l)){n=!0;return}r.push({segment:l,routeKey:u,start:s});return}if(i.startsWith("/wj:children")){let a=i.slice(12).replace(/^:/,""),c=r.pop();if(!c||c.segment!==a){n=!0;return}if(c.start.parentNode!==s.parentNode){n=!0;return}{let l=c.start.parentNode.tagName;if(l==="TABLE"||l==="TBODY"||l==="THEAD"||l==="TFOOT"||l==="TR"){n=!0;return}}t.set(c.segment,{routeKey:c.routeKey,start:c.start,end:s});return}return}if(s.hasChildNodes&&s.hasChildNodes())for(let i=s.firstChild;i&&!n;i=i.nextSibling)o(i)}}return o(e),n||r.length>0?null:t}function dr(e,t){return e===t||e.startsWith(t==="/"?"/":t+"/")}function mn(e,t){let r=[...e.keys()].filter(i=>t.has(i)).sort((i,a)=>i.length-a.length);if(r.length===0)return null;for(let i of r)if(e.get(i).routeKey!==t.get(i).routeKey){let a=null;for(let c of r){if(c===i)break;i!==c&&dr(i,c)&&(a=c)}return a?{mode:"replace",segment:a,live:e.get(a),incoming:t.get(a)}:null}let n=r[r.length-1],o=i=>{let a=null;for(let c of i.keys())(a===null||c.length>a.length)&&(a=c);return a};return{mode:o(e)===n&&o(t)===n?"morph":"replace",segment:n,live:e.get(n),incoming:t.get(n)}}function Ne(){let e=me(document.body);return e?[...e.entries()].map(([t,r])=>`${t}:${r.routeKey}`).join(","):""}var Me=S(()=>{});function su(e){Ce=e||(t=>{location.href=t})}function iu(){return C}function au(){return++C}function Fo(){return++C}function sa(e){te=e}function cu(e){gn=e}function lu(e){let t=gn!==null&&gn===e;return gn=null,t}function Bo(){gn=null}var C,Ce,te,gn,De=S(()=>{C=0,Ce=e=>{location.href=e};te=!1;gn=null});function Ot(e){if(!/^\s*(?:<!doctype|<html)/i.test(e)&&typeof document<"u"&&document.implementation)try{let r=document.implementation.createHTMLDocument();if(typeof r.body.setHTMLUnsafe=="function")r.body.setHTMLUnsafe(e);else{let n=r.createElement("template");n.innerHTML=e,r.body.appendChild(n.content)}return r}catch{}return typeof Document<"u"&&typeof Document.parseHTMLUnsafe=="function"&&Pp()?Document.parseHTMLUnsafe(e):Ip(e)}function Pp(){if(pr!==null)return pr;try{pr=Document.parseHTMLUnsafe("<!doctype html><body><!--c--><i></i>")?.body?.firstChild?.nodeType===8}catch{pr=!1}return pr}function ia(){pr=null}function Ip(e){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(e,"text/html")}var pr,bn=S(()=>{pr=null});function Ho(e){for(let t of e.composedPath())if(t instanceof HTMLAnchorElement)return t;return null}function aa(e){let t=e;for(;t;){if(t instanceof HTMLAnchorElement)return t;let r=t.nodeType===1?t:null;if(r){let o=r.closest&&r.closest("a");if(o instanceof HTMLAnchorElement)return o}let n=t.getRootNode?t.getRootNode():null;t=typeof ShadowRoot<"u"&&n instanceof ShadowRoot?n.host:null}return null}var Uo=S(()=>{});function yn(e,t){return((t&&t.hasAttribute("formmethod")?t.getAttribute("formmethod")||"":e.getAttribute("method")||"")||"get").toLowerCase()}function wn(e,t){return t&&t.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||e.action||location.href}function qp(e){let t=String(e||"").toLowerCase();return t==="multipart/form-data"?"multipart/form-data":t==="text/plain"?"text/plain":"application/x-www-form-urlencoded"}function Sn(e,t){return qp(t&&t.hasAttribute("formenctype")?t.getAttribute("formenctype"):e.getAttribute("enctype"))}function _n(e,t){if(t==="multipart/form-data")return e;let r=new URLSearchParams;for(let[n,o]of e)r.append(n,typeof o=="string"?o:o.name);return r}function An(e,t){try{return new FormData(e,t||void 0)}catch{let r=new FormData(e);return t&&t.getAttribute("name")&&r.append(t.getAttribute("name"),t.getAttribute("value")||""),r}}var Vo=S(()=>{});function $e(e){return e.tagName==="LINK"&&!!e.getAttribute("href")&&Do(e)}function Dp(e){return((e.hasAttribute(re)?e.getAttribute(re):e.getAttribute("media"))||"").trim()}function Wo(e,t){let r=e.getAttribute("href");if(!r)return null;try{let n=new URL(r,t);n.searchParams.delete(Mp);let o=Dp(e);return o&&o!=="all"?`${n.href} ${o}`:n.href}catch{return null}}function Ko(){if(!(typeof document>"u"||!document.head))for(let e of document.querySelectorAll("link[href]")){if(xn.has(e)||!$e(e))continue;let t=Wo(e,document.baseURI);t&&xn.set(e,t)}}function uu(e){let t=xn.get(e);return t||(t=Wo(e,document.baseURI)||"",t&&xn.set(e,t)),t||null}function ua(e){e.hasAttribute(re)||(e.setAttribute(re,e.getAttribute("media")||""),e.setAttribute("media","not all"))}function la(e){if(!e.hasAttribute(re))return;let t=e.getAttribute(re);e.removeAttribute(re),t?e.setAttribute("media",t):e.removeAttribute("media")}function fu(e,t){if(t?e.setAttribute(it,""):e.removeAttribute(it),!t){la(e),e.sheet&&(e.sheet.disabled=!1);return}if(e.sheet){e.sheet.disabled=!0;return}if(ua(e),ca.has(e))return;ca.add(e);let r=()=>{e.removeEventListener("load",r),e.removeEventListener("error",r),ca.delete(e),e.hasAttribute(it)&&(la(e),e.sheet&&(e.sheet.disabled=!0))};e.addEventListener("load",r),e.addEventListener("error",r)}function fa(e,t){let r=null,n=null;for(let o of document.head.querySelectorAll(`link[${Re}]`))o===e||!$e(o)||(n||(n=o),dr(t,o.getAttribute(Re))&&(r=o));r?r.after(e):n?n.before(e):document.head.appendChild(e)}function zo(e={}){let t=e.base||(typeof document<"u"?document.baseURI:""),r=new Map,n=new Map;for(let o of document.querySelectorAll("link[href]")){if(!$e(o))continue;let s=o.parentNode===document.head;if(!s&&e.leaving&&e.leaving(o))continue;let i=uu(o);if(!i)continue;let a=o.hasAttribute(de)?s?n:null:r;a&&!a.has(i)&&a.set(i,o)}return(o,s)=>{if(o.hasAttribute(it)||o.hasAttribute(de))return!0;let i=Wo(o,t);if(!i)return!1;let a=o.getAttribute(Re),c=r.get(i);if(c){if(e.frame)return!0;let f=c.hasAttribute(it);f&&fu(c,!1);let d=c.getAttribute(Re);return a&&d!==null&&d!==a&&(!f&&!(e.segment!=null&&dr(d,e.segment))&&dr(a,d)||c.setAttribute(Re,a)),!0}let l=e.frame?null:n.get(i);if(l){for(let f of o.attributes)f.name==="href"||f.name==="nonce"||(f.name==="media"&&l.hasAttribute(re)?l.setAttribute(re,f.value):l.setAttribute(f.name,f.value));return l.removeAttribute(de),n.delete(i),r.set(i,l),!0}if(!a)return!1;if(e.frame)return!0;let u=s(o);try{u.setAttribute("href",new URL(o.getAttribute("href"),t).href)}catch{}return fa(u,a),xn.set(u,i),r.set(i,u),!0}}function Go(){if(!(typeof document>"u"||!document.head))for(let e of document.head.querySelectorAll(`link[${re}]`))e.hasAttribute(it)||la(e)}function da(e,t,r){if(typeof document>"u"||!document.head)return;let n=r||document.baseURI,o=new Set;if(t)for(let s of t.querySelectorAll("link[href]")){if(!$e(s)||s.hasAttribute(it)||s.hasAttribute(de))continue;let i=Wo(s,n);i&&o.add(i)}for(let s of document.head.querySelectorAll(`link[${Re}]`)){if(s.hasAttribute(de)||s.hasAttribute(it)||s.hasAttribute("disabled")||!$e(s))continue;let i=s.getAttribute(Re);if(!dr(i,e))continue;let a=uu(s);a&&o.has(a)||fu(s,!0)}}var Re,it,re,Mp,xn,ca,vn=S(()=>{Me();V();Re="data-wj-style-owner",it="data-wj-style-off",re="data-wj-style-media",Mp="__webjs_dev";xn=new WeakMap;ca=new WeakSet});function Jo(){if(typeof document>"u")return"";let e=document.querySelector('meta[name="csp-nonce"]');return e&&e.getAttribute("content")||""}function En(e){let t=document.createElement("script");for(let n of e.attributes)n.name!=="nonce"&&t.setAttribute(n.name,n.value);let r=Jo();return r&&t.setAttribute("nonce",r),t.textContent=e.textContent,t}function jt(e){if(!e.hasAttribute("nonce"))return e.cloneNode(!0);let t=e.cloneNode(!0),r=Jo();return r?t.setAttribute("nonce",r):t.removeAttribute("nonce"),t}function se(e){if(!e.hasAttribute("nonce"))return e.outerHTML;let t=e.cloneNode(!0);return t.removeAttribute("nonce"),t.outerHTML}function Yo(e){let t=e.getAttribute("name");if(t)return"name="+t;let r=e.getAttribute("property");if(r)return"property="+r;let n=e.getAttribute("http-equiv");return n?"http-equiv="+n:e.hasAttribute("charset")?"charset":null}function $p(e){if(!e.querySelector("meta"))return;let t=o=>{let s=new Map;for(let i of o.querySelectorAll("meta")){let a=Yo(i);if(!a||a===Mo)continue;let c=s.get(a);c?c.push(i):s.set(a,[i])}return s},r=t(e),n=t(document.head);for(let[o,s]of r){let i=n.get(o)||[],a=s.map(se).join(`
2
- `),c=i.map(se).join(`
3
- `);if(a!==c){if(s.length===1&&i.length===1){let l=i[0];for(let u of[...l.attributes])l.removeAttribute(u.name);for(let u of s[0].attributes)l.setAttribute(u.name,u.value);continue}for(let l of i)l.remove();for(let l of s)document.head.appendChild(jt(l))}}for(let[o,s]of n)if(!r.has(o))for(let i of s)i.remove()}function hr(e,t={}){let r=t.styles===!1?null:zo(t),n=e.querySelector("title");n&&(document.title=n.textContent||"");let o=new Set;for(let s of document.head.children)o.add(se(s));for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(s.tagName==="META"&&Yo(s)||$e(s)&&(!r||r(s,jt))||o.has(se(s))||(s.tagName==="SCRIPT"?document.head.appendChild(En(s)):document.head.appendChild(jt(s))));$p(e)}function pa(e,t={}){let r=zo(t),n=new Set;for(let o of document.head.children)n.add(se(o));for(let o of e.children)!$e(o)||r(o,jt)||n.has(se(o))||document.head.appendChild(jt(o))}function Fp(e){return e.tagName==="STYLE"?!0:e.tagName==="LINK"&&ta(e).includes("stylesheet")}function Tn(e,t={}){let r=t.styles===!1?null:zo(t),n=document.head,o=e.querySelector("title");o&&(document.title=o.textContent||"");let s=new Set;for(let a of n.children)a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&s.add(se(a));let i=new Set;for(let a of e.children)a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&i.add(se(a));for(let a of[...n.children])a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&a.tagName!=="TITLE"&&(Fp(a)||a.tagName==="META"&&Yo(a)===Mo||i.has(se(a))||a.remove());for(let a of e.children)a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&a.tagName!=="TITLE"&&(a.tagName==="META"&&Yo(a)===Mo||$e(a)&&(!r||r(a,jt))||s.has(se(a))||(a.tagName==="SCRIPT"?n.appendChild(En(a)):n.appendChild(jt(a))))}var mr=S(()=>{V();vn()});function Qo(e){let t=e;for(;t;){let r=t.closest("webjs-frame");if(r&&r.id)return r.id;let n=t.getRootNode();if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot)t=n.host;else break}return null}function ge(e){if(!e)return null;let t=e.closest&&e.closest("[data-webjs-frame]"),r=t?t.dataset?t.dataset.webjsFrame:t.getAttribute("data-webjs-frame"):null;if(r!=null&&r!==""){if(r===pn)return null;let n=typeof document<"u"?document.getElementById(r):null;return n&&n.tagName&&n.tagName.toLowerCase()==="webjs-frame"?r:(st(`webjs:frame-unresolved:${r}`,`[webjs] data-webjs-frame="${r}" did not match a live <webjs-frame id="${r}">; performing a normal navigation instead.`),null)}return Qo(e)}function ha(e){if(!e||typeof document>"u")return null;let t=null;try{t=document.querySelector(`webjs-frame#${CSS.escape(e)}`)}catch{t=document.getElementById(e)}return!t||!t.tagName||t.tagName.toLowerCase()!=="webjs-frame"?null:t}function kn(e,t){let r=ha(e);if(!r)return null;let n=Xo.has(r);return Xo.set(r,t),r.setAttribute("aria-busy","true"),n||r.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:e,busy:!0}})),r}function Nn(e,t){if(Xo.get(e)!==t)return;Xo.delete(e),e.setAttribute("aria-busy","false");let r=e.id||null;e.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:r,busy:!1}}))}function Cn(e,t,r){let n=Zo.has(e);return Zo.set(e,t),e.setAttribute("aria-busy","true"),n||e.dispatchEvent(new CustomEvent("webjs:submit-start",{bubbles:!0,detail:{form:e,url:r}})),e}function Rn(e,t,r,n){if(Zo.get(e)!==t)return;Zo.delete(e),e.setAttribute("aria-busy","false");let o=new CustomEvent("webjs:submit-end",{bubbles:!0,detail:{form:e,url:r,ok:!!n}});e.isConnected?e.dispatchEvent(o):typeof document<"u"?document.dispatchEvent(o):e.dispatchEvent(o)}function ma(e){if(!e||!e.head)return"";let t=e.head.querySelectorAll('[data-webjs-track="reload"]');if(!t.length)return"";let r="";for(let n of t)r+=se(n);return r}var Xo,Zo,at=S(()=>{V();he();mr();Xo=new WeakMap;Zo=new WeakMap});function hu(e,t){if(typeof document>"u"||!document.documentElement)return()=>{};ie&&ie();let r=document.documentElement,n=r.style.getPropertyValue("overflow-anchor");r.style.setProperty("overflow-anchor","none");let o=null,s=typeof t=="number",a=s&&typeof setTimeout=="function"?setTimeout(()=>{s=!1},Xl):null,c=typeof t=="number"&&typeof window<"u"?()=>{s&&(Math.abs(window.scrollY-t)<=1&&Math.abs(window.scrollX-(e||0))<=1||window.scrollTo({left:e||0,top:t,behavior:"instant"}))}:null,l=()=>{if(ie===l){if(ie=null,o&&(clearTimeout(o),o=null),a&&clearTimeout(a),s=!1,typeof window<"u"){for(let u of ea)window.removeEventListener(u,l,{capture:!0});c&&window.removeEventListener("scroll",c)}n?r.style.setProperty("overflow-anchor",n):r.style.removeProperty("overflow-anchor")}};if(ie=l,o=setTimeout(l,2e3),typeof window<"u"){for(let u of ea)window.addEventListener(u,l,{capture:!0,passive:!0});c&&window.addEventListener("scroll",c,{passive:!0})}return l}function mu(e){if(typeof document>"u"||!document.documentElement)return()=>{};if(ae&&ae(),!(e>0))return()=>{};let t=document.documentElement,r=t.style.getPropertyValue("min-height");t.style.setProperty("min-height",e+"px");let n=null,o=()=>{ae===o&&(ae=null,n&&(clearTimeout(n),n=null),r?t.style.setProperty("min-height",r):t.style.removeProperty("min-height"))};return ae=o,n=setTimeout(o,2e3),o}function ts(e){if(typeof requestAnimationFrame!="function"){setTimeout(e,0);return}requestAnimationFrame(()=>requestAnimationFrame(e))}function rs(){es+=1}function Ln(e,t){let r=du(e)||du(t);return r?(r.getAttribute("data-preserve-scroll")||"").toLowerCase().trim()!=="false":!1}function du(e){return!e||typeof e.closest!="function"?null:e.closest("[data-preserve-scroll]")}var ie,ae,es,ns=S(()=>{V();ie=null;ae=null;es=0});function ga(e){if(!te||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=Ho(e);if(!t||t.hasAttribute("download")||t.target&&t.target!=="_self")return;let r=t.href;if(!r)return;let n=new URL(r);if(n.origin!==location.origin)return;if(n.pathname===location.pathname&&n.search===location.search&&n.href.includes("#")){cu(n.href);return}if(t.hasAttribute("data-no-router")||fr.test(n.pathname))return;e.preventDefault();let o=ge(t);On(r,!1,o,{preserveScroll:Ln(t)})}function gr(e){gu(location.href)||On(location.href,!0,null)}function br(e){if(!te||e.defaultPrevented)return;let t=e.target;if(!t||t.nodeType!==1||t.tagName!=="FORM"||t.hasAttribute("data-no-router"))return;let r=e.submitter??null;if(r&&r.hasAttribute("data-no-router"))return;let n=r&&r.hasAttribute("formtarget")?r.getAttribute("formtarget")||"":t.getAttribute("target")||"";if(n&&n!=="_self")return;let o=yn(t,r);if(o==="dialog")return;let s=Sn(t,r),i=o==="get"||o==="head",a=wn(t,r),c;try{c=new URL(a,location.href)}catch{return}if(c.origin!==location.origin||fr.test(c.pathname))return;let l=An(t,r);if(Ql(t,r,o,l),!i&&s==="text/plain")return;let u=_n(l,s);e.preventDefault();let f=ge(r||t),d=Ln(r||t,t);bu(c.href,o,u,f,t,{preserveScroll:d})}var os=S(()=>{Uo();V();De();he();Vo();at();ns();jn()});function ba(e){let t=Le(e);document.dispatchEvent(new CustomEvent("webjs:before-cache",{detail:{url:e}})),j.has(t)&&j.delete(t);let r={html:document.documentElement.outerHTML,scrollX:typeof window<"u"&&window.scrollX||0,scrollY:typeof window<"u"&&window.scrollY||0,scrollHeight:typeof document<"u"&&document.documentElement&&document.documentElement.scrollHeight||0};for(j.set(t,r);j.size>16;){let n=j.keys().next().value;j.delete(n)}}function yu(e){let t=Le(e),r=j.get(t);return r==null?null:(j.delete(t),j.set(t,r),r)}function Le(e,t){let r=new URL(e,location.href),n=r.pathname+r.search;return t?`${t} ${n}`:n}var j,yr=S(()=>{V();j=new Map});function zp(e){let t=Oe.get(e);return t==null?!1:Dn()-t>=ya?(Oe.delete(e),!1):!0}function vr(){Oe.clear()}function Gp(e){for(Oe.has(e)&&Oe.delete(e),Oe.set(e,Dn());Oe.size>Kp;)Oe.delete(Oe.keys().next().value)}function $n(){try{let e=typeof navigator<"u"?navigator.connection:null;if(e&&(e.saveData===!0||typeof e.effectiveType=="string"&&/2g$/.test(e.effectiveType))||typeof matchMedia=="function"&&matchMedia("(prefers-reduced-data: reduce)").matches)return!0}catch{}return!1}function ss(){try{if(typeof matchMedia=="function")return matchMedia("(hover: hover) and (pointer: fine)").matches}catch{}return!0}function Yp(e){let t=e.getAttribute("rel");return t?t.toLowerCase().split(/\s+/).filter(Boolean):[]}function Ar(e){if(!e||!(e instanceof HTMLAnchorElement)||e.hasAttribute("download")||e.hasAttribute("data-no-router")||e.target&&e.target!=="_self")return null;let t=e.href;if(!t)return null;let r;try{r=new URL(t)}catch{return null}return r.origin!==location.origin||r.pathname===location.pathname&&r.search===location.search&&r.href.includes("#")||fr.test(r.pathname)?null:t}function is(e){if(e.hasAttribute("data-no-prefetch"))return!0;let t=Yp(e);return t.includes("external")||t.includes("no-prefetch")}function xr(e){if(is(e))return"none";switch((e.getAttribute("data-prefetch")||"").toLowerCase().trim()){case"false":case"none":return"none";case"true":case"render":return"render";case"auto":case"viewport":return"viewport";case"intent":return"intent";default:return ss()?"intent":"viewport"}}function lt(e,t){if(!te||typeof fetch!="function"||$n())return;let r=Le(e,t);if(typeof location<"u"&&r===Le(location.href,t)||Fe.has(r)||Pn.has(r))return;let n=k.get(r);if(n&&Dn()-n.at<ya||zp(r))return;if(Fe.size>=wu){for(Pn.add(r),Sr.push({href:e,frameId:t||null});Sr.length>Up;){let i=Sr.shift();Pn.delete(Le(i.href,i.frameId))}return}let o=Ne();if(!o&&typeof document<"u"&&document.readyState==="loading")return;Fe.add(r);let s={"x-webjs-router":"1","x-webjs-prefetch":"1"};o&&(s["x-webjs-have"]=o),t&&(s["x-webjs-frame"]=t),fetch(e,{method:"GET",headers:s,credentials:"same-origin",cache:"no-cache"}).then(async i=>{let a=i.headers.get("content-type")||"";if(!/^text\/html\b/i.test(a)||i.status>=400)return;let c=i.headers.get("x-webjs-build"),l=i.headers.get("x-webjs-src"),u=typeof document<"u"?document.querySelector('script[type="importmap"]'):null,f=u?u.getAttribute("data-webjs-build"):null,d=u?u.getAttribute("data-webjs-src"):null;if((c&&f&&c!==f||l&&d&&l!==d)&&(j.clear(),It(r),vr()),(i.headers.get("x-webjs-frame")||null)!==(t||null)){Gp(r);return}let g=i.redirected&&i.url?i.url:e,y=await i.text();Mn.has(r)||Xp(r,{html:y,build:c,src:l,finalUrl:g,frameId:t||null,at:Dn()})}).catch(()=>{}).finally(()=>{Fe.delete(r),Mn.delete(r),Jp()})}function Jp(){for(;Sr.length&&Fe.size<wu;){let{href:e,frameId:t}=Sr.shift();Pn.delete(Le(e,t)),lt(e,t)}}function Xp(e,t){for(k.has(e)&&k.delete(e),k.set(e,t);k.size>Hp;){let r=k.keys().next().value;k.delete(r)}typeof document<"u"&&document.dispatchEvent(new CustomEvent("webjs:prefetch",{detail:{url:t.finalUrl,key:e,from:"prefetch"}}))}function as(e){let t=/<!--wj:children:([^>]*?)-->/.exec(e||"");return t?t[1]:null}function Fn(e,t,r){let n=Le(e,r),o=k.get(n);if(!o)return null;if(Dn()-o.at>=ya)return k.delete(n),null;if(o.frameId)return k.delete(n),ha(o.frameId)?o:null;let s=as(o.html);return s&&!new Set(String(t??(Ne()||"")).split(",").filter(Boolean)).has(s)?(k.delete(n),null):(k.delete(n),o)}function Dn(){try{if(typeof performance<"u"&&typeof performance.now=="function")return performance.now()}catch{}return 0}function Pt(e){if(!te)return;let t=aa(e.target);if(!t)return;let r=xr(t);if(r==="none"||r==="render")return;let n=Ar(t);if(n){if(e.type==="touchstart"){lt(n,ge(t));return}r==="intent"&&(In===t&&_r||(Bn(),In=t,_r=setTimeout(()=>{_r=null,In=null,t.isConnected&&lt(n,ge(t))},Vp)))}}function wa(e){let t=aa(e.target);t&&t===In&&Bn()}function Bn(){_r&&(clearTimeout(_r),_r=null),In=null}function cs(){for(let e of qn)clearTimeout(e);qn.clear(),wr=new WeakMap}function ls(){if(typeof document>"u"||$n())return;let e=typeof IntersectionObserver<"u";e&&(ct?(ct.disconnect(),cs()):ct=new IntersectionObserver(t=>{for(let r of t){let n=r.target;if(r.isIntersecting){if(wr.has(n))continue;let o=setTimeout(()=>{qn.delete(o),wr.delete(n),ct.unobserve(n);let s=Ar(n);s&&xr(n)==="viewport"&&lt(s,ge(n))},Wp);wr.set(n,o),qn.add(o)}else{let o=wr.get(n);o&&(clearTimeout(o),qn.delete(o),wr.delete(n))}}},{threshold:.5}));for(let t of document.querySelectorAll("a[href]")){let r=xr(t);if(r==="render"){let n=Ar(t);n&&lt(n,ge(t))}else r==="viewport"&&e&&ct.observe(t)}}function It(e){k.clear();for(let t of Fe)t!==e&&Mn.add(t)}function Su(e,t){let r=Le(e,t);k.delete(r),Fe.has(r)&&Mn.add(r)}function _u(e,t){return k.get(Le(e,t))||null}function Au(){return Fe.size}function xu(){k.clear(),Oe.clear(),Fe.clear(),Mn.clear(),Sr.length=0,Pn.clear(),Bn(),cs()}function vu(){ct&&(ct.disconnect(),ct=null)}var Hp,ya,wu,Up,Vp,Wp,k,Oe,Kp,Fe,Mn,Sr,Pn,_r,In,ct,wr,qn,qt=S(()=>{Uo();Me();V();at();De();yr();Hp=8,ya=3e4,wu=3,Up=24,Vp=100,Wp=250,k=new Map,Oe=new Map,Kp=16;Fe=new Set,Mn=new Set,Sr=[],Pn=new Set,_r=null,In=null,ct=null,wr=new WeakMap,qn=new Set});function Sa(e){for(let t of e.querySelectorAll("template[data-webjs-resolve]")){let r=t.cloneNode(!0);document.body.appendChild(r);let n=r.getAttribute("data-webjs-resolve"),o=window.__webjsResolve;n&&typeof o=="function"&&o(n)}}async function Hn(e){if(!e.body||typeof e.body.getReader!="function")return{shell:await e.text(),streaming:!1};let t=e.body.getReader(),r=new TextDecoder,n="",o="<template data-webjs-resolve",s="<!--wj-stream-shell-->",i=/<\/html\s*>/i;for(;;){let{value:a,done:c}=await t.read();a&&(n+=r.decode(a,{stream:!0})),c&&(n+=r.decode());let l=n.indexOf(s);if(l!==-1)return{shell:n.slice(0,l),streaming:!0,reader:c?null:t,dec:r,rest:n.slice(l+s.length)};let u=n.indexOf(o);if(u!==-1)return{shell:n.slice(0,u),streaming:!0,reader:c?null:t,dec:r,rest:n.slice(u)};if(c)return{shell:n,streaming:!1};let f=i.exec(n);if(f){let d=f.index+f[0].length;return{shell:n.slice(0,d),streaming:!0,reader:t,dec:r,rest:n.slice(d)}}}}function us(e){let t=/<template\s+data-webjs-resolve="([^"]+)"\s*>/i.exec(e);if(!t)return null;let r=t[1],n=t.index+t[0].length,o=/<(\/?)template\b[^>]*>/gi;o.lastIndex=n;let s=1,i;for(;i=o.exec(e);)if(i[1]==="/"){if(s--,s===0)return{id:r,content:e.slice(n,i.index),rest:e.slice(i.index+i[0].length)}}else s++;return null}function fs(e,t){let r=document.getElementById(e);if(!r){tu(e);return}let n=document.createElement("template");n.innerHTML=t;let o=[...n.content.childNodes];r.replaceWith(n.content);for(let s of o)s.nodeType===1&&ds(s)}async function Un(e,t,r,n){let o=r,s=()=>{let i;for(;i=us(o);){if(!n())return!1;fs(i.id,i.content),o=i.rest}return!0};if(!e){s();return}try{for(;;){if(!s()){try{await e.cancel()}catch{}return}let{value:i,done:a}=await e.read();if(i&&(o+=t.decode(i,{stream:!0})),a){o+=t.decode(),s();return}}}catch{}}var Vn=S(()=>{he();Mt()});function Tr(){if(typeof document>"u")return!1;let e=document.querySelector('meta[name="view-transition"]');return e?(e.getAttribute("content")||"").trim().toLowerCase()==="same-origin":!1}function Dt(e,t){let r=typeof document<"u"?document.startViewTransition:void 0;if(Tr()&&typeof r=="function"){let n=r.call(document,e);return n&&n.finished&&typeof n.finished.then=="function"?n.finished.then(()=>{t&&t()}).catch(()=>{}):t&&t(),n&&n.updateCallbackDone&&typeof n.updateCallbackDone.then=="function"?n.updateCallbackDone.catch(()=>{}):Promise.resolve()}return e(),t&&t(),Promise.resolve()}function Wn(e,t){if(!e||!t||typeof e.querySelectorAll!="function")return;let r=e.querySelectorAll("[data-webjs-permanent][id]");for(let n of r){let o=n.id;if(!o)continue;let s=null;try{s=t.querySelector(`#${CSS.escape(o)}`)}catch{s=null}if(!s||!n.hasAttribute||!n.hasAttribute("data-webjs-permanent"))continue;let i=s.parentNode;i&&s!==n&&(i.replaceChild(n,s),Er.add(n))}}function Be(e,t){let r=[];for(let n of e){if(n.nodeType!==1)continue;let o=n;if(o.hasAttribute&&o.hasAttribute("data-webjs-permanent")&&o.id&&r.push(o),typeof o.querySelectorAll=="function")for(let s of o.querySelectorAll("[data-webjs-permanent][id]"))r.push(s)}if(r.length)for(let n of r){let o=n.id;if(!o)continue;let s=Zp(t,o);if(!s||s===n)continue;let i=s.parentNode;if(i)i.replaceChild(n,s),Er.add(n);else{let a=t.indexOf(s);a!==-1&&(t[a]=n,Er.add(n))}}}function Zp(e,t){for(let r of e){if(r.nodeType!==1)continue;let n=r;if(n.id===t)return n;if(typeof n.querySelector=="function"){let o=null;try{o=n.querySelector(`#${CSS.escape(t)}`)}catch{o=null}if(o)return o}}return null}var Er,$t=S(()=>{Er=new WeakSet});function Eu(e,t){let r=[];for(let n=e.parentNode;n;n=n.parentNode)if(r.unshift(n),n===t)return r;return null}function Nu(e,t,r,n){let o=Eu(e.start,r),s=Eu(t.start,n);if(!o||!s||o.length!==s.length)return null;for(let i=1;i<o.length;i++)if(o[i].tagName!==s[i].tagName||_a(o[i]))return null;return{live:o,incoming:s,liveRange:e,incomingRange:t}}function Tu(e,t,r){let n=[],o=[],s=n;for(let i=e.firstChild;i;i=i.nextSibling)i===t&&(s=null),s&&s.push(i),i===r&&(s=o);return{before:n,after:o}}function Qp(e,t){for(let r of t.attributes)qe.has(r.name)||r.name==="data-wj-serialized"||e.getAttribute(r.name)!==r.value&&e.setAttribute(r.name,r.value);for(let r of[...e.attributes])qe.has(r.name)||t.hasAttribute(r.name)||e.removeAttribute(r.name)}function eh(e,t){let r=new Map;for(let i of e){if(i.nodeType!==1)continue;let a=ce(i);a&&r.set(a,i)}let n=new Set,o=0,s=[];for(let i of t){if(i.nodeType===1){let c=ce(i),l=c?r.get(c):null;if(l&&!n.has(l)){n.add(l),He(l,i),s.push(l),o=Math.max(o,e.indexOf(l)+1);continue}}let a=o;for(;a<e.length;a++){let c=e[a];if(n.has(c)||c.nodeType!==i.nodeType)continue;if(c.nodeType!==1)break;let l=c;if(!ce(l)&&l.tagName===i.tagName)break}if(a<e.length&&(i.nodeType===1||i.nodeType===3||i.nodeType===8)){let c=e[a];n.add(c),c.nodeType===1?He(c,i):c.nodeValue!==i.nodeValue&&(c.nodeValue=i.nodeValue),s.push(c),o=a+1;continue}s.push(i)}return s}function ku(e,t,r,n,o){let s=r.map(u=>document.importNode(u,!0));Be(t,s);let i=eh(t,s),a=new Set(i),c=n;if(o){let u=-1;for(let d=0;d<t.length;d++)a.has(t[d])&&(u=d);let f=t.slice(u+1);if(f.length){for(let d of f)a.add(d);c=f[0]}}for(let u of t)!a.has(u)&&u.parentNode===e&&e.removeChild(u);for(let u=i.length-1;u>=0;u--){let f=i[u];(f.parentNode!==e||f.nextSibling!==c)&&e.insertBefore(f,c),c=f}let l=new Set(t);return i.filter(u=>!l.has(u))}function Cu(e){let{live:t,incoming:r,liveRange:n,incomingRange:o}=e,s=[];for(let i=0;i<t.length;i++){let a=t[i],c=r[i];i>0&&Qp(a,c);let l=i===t.length-1,u=l?n.start:t[i+1],f=l?n.end:t[i+1],d=l?o.start:r[i+1],p=l?o.end:r[i+1],g=Tu(a,u,f),y=Tu(c,d,p),m=[...ku(a,g.before,y.before,u,!1),...ku(a,g.after,y.after,null,i===0)];for(let w of m)w.nodeType===1&&s.push(ut(w));for(let w of[g.before,g.after])for(let b of w)b.nodeType===1&&b.isConnected&&s.push(b)}for(let i of s)i.isConnected&&Ue(i)}var Ru=S(()=>{V();Ft();Mt();$t()});function Ht(e,t,r,n,o,s,i,a){let c=typeof location<"u"?location.href:"";if(n)try{c=new URL(n,c).href}catch{}Ko();let l=!1,u=()=>{if(!l){l=!0;try{jo(e,{frame:!!t})}catch{}}};try{for(let y of e.querySelectorAll("[data-wj-host]"))y.setAttribute("data-wj-serialized","")}catch{}try{typeof sessionStorage<"u"&&(!n||t||r)&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}if(n&&!t&&!r){let y=document.querySelector('script[type="importmap"]'),m=y?y.getAttribute("data-webjs-build"):null,w=!1;if(o&&m&&(w=o!==m),!w&&e.head&&e.head.children.length>0){let b=ma(document),_=ma(e);b!==_&&(w=!0)}if(w&&typeof location<"u"){j.clear(),It(),vr();try{let b="webjs:importmap-reload";if(sessionStorage&&sessionStorage.getItem(b))sessionStorage.removeItem(b),pe("deploy-mismatch-reload-suppressed",n,!1);else return sessionStorage&&sessionStorage.setItem(b,"1"),pe("deploy-mismatch",n),Ce(n),"none"}catch{return pe("deploy-mismatch",n),Ce(n),"none"}}else if(!w){let b=y?y.getAttribute("data-webjs-src"):null;s&&b&&s!==b&&(j.clear(),It(),vr(),y&&y.setAttribute("data-webjs-src",s));try{typeof sessionStorage<"u"&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}}}if(t){u();let y=document.querySelector(`webjs-frame#${CSS.escape(t)}`),m=e.querySelector(`webjs-frame#${CSS.escape(t)}`);if(y&&m){a&&a(),hr(e.head,{base:c,frame:!0}),Ve=Dt(()=>{Go(),Iu(y,m),ut(y),Ue(y),Sa(e.body),Bt()},()=>Ue(y));return}let w=new CustomEvent("webjs:frame-missing",{bubbles:!0,cancelable:!0,detail:{frameId:t,url:n||(typeof location<"u"?location.href:null),document:e}});return(y||document).dispatchEvent(w),w.defaultPrevented||console.warn(`[webjs] frame "${t}" was not in the navigation response, leaving it unchanged. Handle "webjs:frame-missing" (preventDefault) to override.`),"none"}if(i==="shell"){u(),a&&a(),Aa(e,c,!0);return}let f=me(document.body),d=me(e.body),p=f&&d?mn(f,d):null,g=p&&i==="layouts"?Nu(p.live,p.incoming,document.body,e.body):null;if(p&&i==="layouts"&&!g){u(),a&&a(),Aa(e,c,!0);return}if(p){u(),a&&a();let{mode:y,live:m,incoming:w}=p;hr(e.head,{base:c,styles:!1});let b=_=>!!(m.start.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING)&&!!(m.end.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_PRECEDING);Ve=Dt(()=>{pa(e.head,{base:c,segment:p.segment,leaving:b}),Go(),y==="replace"?Ou(m,w):ju(m,w,e),da(p.segment,e,c),Pu(m.start,w.start),g&&Cu(g),Sa(e.body),Bt()},()=>Lu(m));return}if(n&&!r&&typeof location<"u")return pe(f?d?"no-shared-boundary":"incoming-boundaries-malformed":"live-boundaries-malformed",n),Ce(n),"none";if(n&&r)return pe("revalidation-discarded",n,!1),"discard";u(),a&&a(),Aa(e,c,!1)}function Aa(e,t,r){Tn(e.head,{base:t,styles:!1}),Wn(document.body,e.body);let n=[...e.body.childNodes];Ve=Dt(()=>{pa(e.head,{base:t,segment:"/",leaving:()=>!0}),Go(),document.body.replaceChildren(...n),r&&da("/",e,t),ut(document.body),Ue(document.body),Bt()},()=>Ue(document.body))}var Ve,Kn=S(()=>{Po();Me();he();Ft();at();mr();Ru();vn();qt();yr();De();Vn();Mt();$t();Ve=Promise.resolve()});function qu(){xa||typeof MutationObserver>"u"||typeof customElements>"u"||(xa=new MutationObserver(e=>{for(let t of e)for(let r of t.addedNodes){if(r.nodeType!==1)continue;let n=r;n.tagName?.includes("-")&&customElements.upgrade(n);for(let o of n.querySelectorAll("*"))o.tagName?.includes("-")&&customElements.upgrade(o)}}),xa.observe(document.body,{childList:!0,subtree:!0}))}function Lu(e){if(!(!e||!e.start))for(let t=e.start.nextSibling;t&&t!==e.end;t=t.nextSibling)t.nodeType===1&&Ue(t)}function Ue(e){typeof customElements>"u"||ds(e)}function ds(e){let t=e instanceof Element?[e,...e.querySelectorAll("*")]:[...e.querySelectorAll("*")];for(let r of t)r.tagName&&r.tagName.includes("-")&&(customElements.upgrade(r),r.shadowRoot&&ds(r.shadowRoot))}function ut(e){if(e.tagName==="SCRIPT"){let r=En(e);return e.replaceWith(r),r}let t=[];Er.has(e)&&t.push(e);for(let r of e.querySelectorAll("[data-webjs-permanent]"))Er.has(r)&&t.push(r);for(let r of e.querySelectorAll("script"))t.length&&t.some(n=>n!==r&&n.contains(r))||r.replaceWith(En(r));return e}function zn(e){let t=[];for(let r=e.start.nextSibling;r&&r!==e.end;r=r.nextSibling)r.nodeType===1&&t.push(r);for(let r of t){let n=ut(r);n.isConnected!==!1&&Ue(n)}}var xa,Mt=S(()=>{Me();V();he();Ft();bn();os();Vo();at();mr();qt();yr();Vn();Kn();$t();xa=null});function Bt(){let e=document.activeElement;!e||e===document.body||e===document.documentElement||typeof e.blur=="function"&&e.blur()}function Ou(e,t){let r=e.start.parentNode;if(!r)return;let n=[];for(let s=e.start.nextSibling;s&&s!==e.end;s=s.nextSibling)n.push(s);let o=[];for(let s=t.start.nextSibling;s&&s!==t.end;s=s.nextSibling)o.push(document.importNode(s,!0));Be(n,o);for(let s of n)s.parentNode===r&&r.removeChild(s);for(let s of o)r.insertBefore(s,e.end);zn(e)}function ju(e,t,r){if(!e||!t)return;let n=e.start.parentNode;if(!n)return;let o=[];for(let i=e.start.nextSibling;i&&i!==e.end;i=i.nextSibling)o.push(i);let s=[];for(let i=t.start.nextSibling;i&&i!==t.end;i=i.nextSibling)s.push(document.importNode(i,!0));Be(o,s),th(n,e.start,e.end,o,s),zn(e)}function th(e,t,r,n,o){let s=new Map;for(let c of n){if(c.nodeType!==1)continue;let l=ce(c);l&&s.set(l,c)}let i=r,a=[];for(let c of o){if(c.nodeType===1){let l=ce(c);if(l&&s.has(l)){let u=s.get(l);He(u,c),a.push(u),s.delete(l);continue}}a.push(c)}for(let c of n)if(c.parentNode===e){if(c.nodeType===1&&a.includes(c))continue;e.removeChild(c)}for(let c of a)e.insertBefore(c,i)}function He(e,t){if(e===t)return;if(e.tagName!==t.tagName){e.replaceWith(t);return}let r=new Set;for(let n of t.attributes)r.add(n.name),!qe.has(n.name)&&n.name!=="data-wj-serialized"&&e.getAttribute(n.name)!==n.value&&e.setAttribute(n.name,n.value);for(let n of[...e.attributes])qe.has(n.name)||r.has(n.name)||e.removeAttribute(n.name);if(_a(e)){nh(e,t);return}kr(e,t)}function _a(e){let t=e;return t[Symbol.for("webjs.instance")]!=null||t[x]!=null}function rh(e,t){for(let r=e.parentElement;r&&r!==t;r=r.parentElement)if(r.tagName.includes("-"))return!1;return!0}function ps(e){let t=new Map,r=`slot[${v}][${O}="${U}"]`;for(let n of e.querySelectorAll(r)){let o=n;if(!rh(o,e)||Ys(e,o))continue;let s=!1;for(let a=o.parentElement;a&&a!==e;a=a.parentElement)if(a.tagName==="SLOT"&&a.hasAttribute(v)&&a.getAttribute(O)===U){s=!0;break}if(s)continue;let i=W(o.getAttribute("name"));t.has(i)||t.set(i,o)}return t}function Pu(e,t){let r=e.parentNode;if(!r||r.nodeType!==1)return;let n=r;if(n.tagName!=="SLOT"||!n.hasAttribute(v))return;let o=null;for(let f=n.parentElement;f;f=f.parentElement){if(f[x]){o=f;break}if(f.tagName.includes("-"))return}if(!o)return;let s=W(n.getAttribute("name"));Xe(o,s,[...n.childNodes]);let i=t.parentNode;if(!i||i.nodeType!==1)return;let a=i;if(a.tagName!=="SLOT")return;let c=null;for(let f=a.parentElement;f;f=f.parentElement)if(f.tagName.includes("-")){c=f;break}if(!c||c.tagName!==o.tagName)return;let l=ps(o),u=ps(c);for(let f of new Set([...l.keys(),...u.keys()])){if(f===s)continue;let d=u.get(f);d?Xe(o,f,[...d.childNodes].map(p=>document.importNode(p,!0))):l.get(f)&&Xe(o,f,null)}}function nh(e,t){if(!e[x])return;let r=ps(e),n=ps(t);if(r.size===0&&n.size===0)return;let o=new Set([...r.keys(),...n.keys()]);for(let s of o){let i=r.get(s),a=n.get(s);i&&a?(kr(i,a),Xe(e,s,[...i.childNodes])):a?Xe(e,s,[...a.childNodes].map(c=>document.importNode(c,!0))):Xe(e,s,null)}}function kr(e,t){let r=[...e.childNodes],n=[...t.childNodes].map(a=>document.importNode(a,!0));Be(r,n);let o=new Map;for(let a of r){if(a.nodeType!==1)continue;let c=ce(a);c&&o.set(c,a)}let s=[];for(let a=0;a<n.length;a++){let c=n[a];if(c.nodeType===1){let l=ce(c);if(l&&o.has(l)){let f=o.get(l);He(f,c),s.push(f),o.delete(l);continue}let u=r[a];if(u&&u.nodeType===1&&!ce(u)&&u.tagName===c.tagName&&oh(u,c)){He(u,c),s.push(u);continue}}else if(c.nodeType===3){let l=r[a];if(l&&l.nodeType===3){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}else if(c.nodeType===8){let l=r[a];if(l&&l.nodeType===8){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}s.push(c)}let i=new Set(s);for(let a of r)!i.has(a)&&a.parentNode===e&&e.removeChild(a);for(let a=0;a<s.length;a++){let c=s[a];(c.parentNode!==e||e.childNodes[a]!==c)&&e.insertBefore(c,e.childNodes[a]||null)}}function oh(e,t){let r=e.localName;return r!=="input"&&r!=="select"&&r!=="textarea"?!0:!(e.getAttribute("name")!==t.getAttribute("name")||r==="input"&&(e.getAttribute("type")||"text").toLowerCase()!==(t.getAttribute("type")||"text").toLowerCase())}function ce(e){let t=e.getAttribute("data-key");return t?`${e.tagName}:k:${t}`:e.id?`${e.tagName}:i:${e.id}`:null}function Nr(){let e=me(document.body);if(!e||e.size===0)return null;let t=[...e.keys()].sort((c,l)=>l.length-c.length),r=null,n=null;for(let c of t){let l=document.getElementById(`wj-loading:${c}`);if(l instanceof HTMLTemplateElement){r=c,n=l;break}}if(r===null||n===null)return null;let o=e.get(r),s=Ne(),i=[];for(let c=o.start.nextSibling;c&&c!==o.end;c=c.nextSibling)i.push(c);let a=document.createRange();return a.setStartAfter(o.start),a.setEndBefore(o.end),a.deleteContents(),o.start.parentNode.insertBefore(n.content.cloneNode(!0),o.end),{slot:o,oldChildren:i,token:C,haveKeys:s}}function ft(e){if(!e||e.token!==C)return;let{slot:t,oldChildren:r}=e;if(t.start.parentNode!==t.end.parentNode)return;let n=document.createRange();n.setStartAfter(t.start),n.setEndBefore(t.end),n.deleteContents();for(let o of r)t.start.parentNode.insertBefore(o,t.end)}function Iu(e,t){kr(e,t)}var Ft=S(()=>{Ze();Me();V();De();Mt();$t()});function sh(e){if(typeof document>"u"||!document.body)return!1;let t=me(document.body);if(!t)return!1;let r,n=-1;for(let[c,l]of t)c.length>n&&(n=c.length,r=l);if(!r)return!1;let o=r.start.parentNode;if(!o||r.start.parentNode!==r.end.parentNode)return!1;let s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("data-webjs-nav-error","");let i=e?`This page could not be loaded. (status ${e})`:"This page could not be loaded.";s.textContent=i;let a=document.createRange();return a.setStartAfter(r.start),a.setEndBefore(r.end),a.deleteContents(),o.insertBefore(s,r.end),!0}function hs(e,t,r){let n=new CustomEvent("webjs:navigation-error",{bubbles:!0,cancelable:!0,detail:{url:e,status:t??null,error:r||null}});if(typeof document<"u")try{document.dispatchEvent(n)}catch{}n.defaultPrevented||sh(t)||typeof location<"u"&&(pe("navigation-error-unrecoverable",e),Ce(e))}var Mu=S(()=>{Me();he();De()});function va(e){if(!Do(e)||e.hasAttribute("disabled")||!e.getAttribute("href"))return!1;let t=e.hasAttribute(re)?e.getAttribute(re):e.getAttribute("media");if(t&&typeof matchMedia=="function")try{if(!matchMedia(t).matches)return!1}catch{return!1}return!0}function $u(e,t){return new Promise(r=>{let n=()=>{clearTimeout(o),e.removeEventListener("load",n),e.removeEventListener("error",n),r()},o=setTimeout(n,t);e.addEventListener("load",n),e.addEventListener("error",n)})}function Fu(e,t,r,n=Du){if(typeof document>"u"||!e||!document.head)return null;let o=e;if(r)try{o=e.querySelector(`webjs-frame#${CSS.escape(r)}`)}catch{o=null}if(!o)return null;let s=t||document.baseURI,i=f=>{try{return new URL(f,s).href}catch{return null}},a=new Set;for(let f of document.querySelectorAll("link[href]")){if(f.hasAttribute(de)||!va(f))continue;let d=f.href;d&&a.add(d)}let c=Jo(),l=[],u=[];for(let f of o.querySelectorAll("link[href]")){if(!va(f))continue;let d=i(f.getAttribute("href"));if(!d||a.has(d))continue;a.add(d);let p=document.createElement("link");p.rel="stylesheet",p.setAttribute(de,"");for(let y of["media","crossorigin","integrity","referrerpolicy"]){let m=f.getAttribute(y);m&&p.setAttribute(y,m)}c&&p.setAttribute("nonce",c),p.href=d,ua(p),l.push(p),u.push($u(p,n));let g=f.getAttribute(Re);g?(p.setAttribute(Re,g),fa(p,g)):document.head.appendChild(p)}return l.length?{ready:Promise.all(u).then(()=>{}),copies:l}:null}function ms(e,t=Du){if(!(!e||typeof document>"u"))for(let r of e.copies){if(!r.isConnected||!r.hasAttribute(de))continue;let n=null;for(let o of document.querySelectorAll("link[href]"))if(!(o===r||o.hasAttribute(de)||!va(o))&&o.href===r.href){n=o;break}if(!n||n.sheet){r.remove();continue}$u(n,t).then(()=>r.remove())}}var Du,Bu=S(()=>{V();vn();mr();Du=2e3});async function Gn(e,t,r,n,o,s,i,a,c,l){o=o||"GET";let u=l&&l.refresh||void 0,f=s!=null&&o!=="GET"&&o!=="HEAD"&&!t,d=!!(l&&l.noPrefetch),p=!!(l&&l.preserveScroll),g=typeof a=="number"?a:C,y,m=null,w=null,b=null,_=null,A=!1,N=e,Q=t?kn(t,g):null;try{try{let G=o==="GET"&&!s&&!u&&!d?Fn(e,n?n.haveKeys:void 0,t):null;if(G)y=G.html,w=G.build,b=G.src,N=G.finalUrl,_=200,A=!0;else{let dt={"x-webjs-router":"1"},ja=u||f?"":Ne();ja&&(dt["x-webjs-have"]=ja),t&&(dt["x-webjs-frame"]=t),s!=null&&o!=="GET"&&o!=="HEAD"&&(dt.accept=Qi+", text/html");let Ss={method:o,headers:dt,credentials:"same-origin",cache:"no-cache"};i&&(Ss.signal=i),s!=null&&o!=="GET"&&o!=="HEAD"&&(Ss.body=s);let Y=await fetch(e,Ss);_=Y.status,A=Y.ok;let Pa=Zi(Y.headers.get("x-webjs-invalidate"));Pa.length&&Xi(Pa);let Ia=Y.headers.get("content-type")||"",Zu=/^text\/html\b/i.test(Ia);if(Ia.toLowerCase().indexOf(Qi)===0){let Qu=await Y.text(),Jn=g===C;return Jn&&(ft(n),zi(Qu)),{ok:Jn&&A,status:_,aborted:!Jn,applied:Jn}}if(Y.redirected&&Y.url&&(N=Y.url),Y.status===204||Y.status===205)return g===C&&r&&history.pushState(null,"",N),{ok:A,status:_,aborted:!1,applied:!1};if(!Zu)return g===C&&(ft(n),hs(e,Y.status,null)),{ok:!1,status:_,aborted:!1,applied:!1};w=Y.headers.get("x-webjs-build"),b=Y.headers.get("x-webjs-src");let _s=await Hn(Y);y=_s.shell,_s.streaming&&(m=_s)}}catch(G){return G&&G.name==="AbortError"?{ok:!1,status:null,aborted:!0,applied:!1}:g!==C?{ok:!1,status:null,aborted:!0,applied:!1}:(ft(n),hs(e,null,G instanceof Error?G:new Error(String(G))),{ok:!1,status:null,aborted:!1,applied:!1})}if(g!==C){if(m&&m.reader)try{m.reader.cancel()}catch{}return{ok:!1,status:_,aborted:!0,applied:!1}}let be=Ot(y);if(!be)return ft(n),hs(e,null,new Error("navigation response did not parse as HTML")),{ok:!1,status:_,aborted:!1,applied:!1};let R=Fu(be,N||e,t);if(R&&(await R.ready,g!==C)){if(ms(R),m&&m.reader)try{m.reader.cancel()}catch{}return{ok:!1,status:_,aborted:!0,applied:!1}}let z=!1,L=r?()=>{z||(z=!0,history.pushState(null,"",N))}:null,h=Ht(be,t,!!c,N,w,b,u||(f?"layouts":void 0),L);R&&Ve.then(()=>ms(R),()=>ms(R));let Ut=h!=="none";if(h==="discard"){if(m&&m.reader)try{m.reader.cancel()}catch{}return{ok:A,status:_,aborted:!1,applied:!1}}if(L&&L(),r&&!t){let G=new URL(N),dt=G.hash?document.getElementById(G.hash.slice(1)):null;dt?dt.scrollIntoView():p||(ru(),window.scrollTo({left:0,top:0,behavior:"instant"}))}return m&&(m.reader||m.rest)&&Ve.then(()=>Un(m.reader,m.dec,m.rest,()=>g===C)),document.dispatchEvent(new CustomEvent("webjs:navigate",{detail:{url:N,frameId:t,from:"navigate"}})),{ok:A,status:_,aborted:!1,applied:Ut}}finally{Q&&Nn(Q,g)}}var Hu=S(()=>{qo();dn();Me();V();he();Ft();bn();at();Mu();jn();qt();De();Vn();Bu();Kn()});function Ea(e){if(e.id)return`id:${e.id}`;let t=e.querySelector(`input[name="${Uu}"]`);return t?`act:${t.getAttribute("value")||""}`:`url:${e.getAttribute("action")||""}`}function ah(e,t){let r=0;for(let n of document.querySelectorAll("form")){if(n===e)return r;Ea(n)===t&&r++}return-1}function ch(e){let t=e.localName;if(t==="textarea")return"text";if(t==="select")return"select";if(t!=="input")return null;let r=(e.getAttribute("type")||"text").toLowerCase();return ih.has(r)?null:r==="checkbox"||r==="radio"?"check":"text"}function Vu(e){let t=new Map,r=[],n=e.elements?[...e.elements]:[...e.querySelectorAll("input, textarea, select")];for(let o of n){let s=o.getAttribute&&o.getAttribute("name");if(!s||s===Uu)continue;let i=ch(o);if(!i)continue;let a=i==="check"?`${s}\0${o.getAttribute("value")??"on"}`:s,c=t.get(a)||0;t.set(a,c+1),r.push({el:o,name:s,kind:i,n:c})}return r}function Wu(e,t){if(t==="check")return{def:String(!!e.defaultChecked),cur:String(!!e.checked)};if(t==="select"){let r=[...e.options];return{def:JSON.stringify(r.map(n=>n.defaultSelected)),cur:JSON.stringify(r.filter(n=>n.selected).map(n=>n.value))}}return{def:e.defaultValue??"",cur:e.value??""}}function Ku(e){if(!e||e.getAttribute("data-preserve-values")==="false")return null;let t=Ea(e),r=Vu(e).map(({el:n,name:o,kind:s,n:i})=>({name:o,kind:s,n:i,...s==="check"?{value:n.getAttribute("value")??"on"}:{},...Wu(n,s)}));return r.length?{form:e,key:t,ord:ah(e,t),controls:r}:null}function lh(e){if(e.form.isConnected)return e.form;let t=0;for(let r of document.querySelectorAll("form"))if(Ea(r)===e.key){if(t===e.ord)return r;t++}return null}function zu(e){if(!e)return 0;let t=lh(e);if(!t)return 0;let r=new Map;for(let o of Vu(t)){let s=o.kind==="check"?`${o.name}\0${o.el.getAttribute("value")??"on"}\0${o.n}`:`${o.name}\0${o.n}`;r.set(s,o)}let n=0;for(let o of e.controls){let s=o.kind==="check"?`${o.name}\0${o.value}\0${o.n}`:`${o.name}\0${o.n}`,i=r.get(s);if(!i||i.kind!==o.kind)continue;let a=Wu(i.el,i.kind);if(a.def===o.def&&a.cur!==o.cur){if(o.kind==="check")i.el.checked=o.cur==="true";else if(o.kind==="select"){let c=new Set(JSON.parse(o.cur));for(let l of i.el.options)l.selected=c.has(l.value)}else i.el.value=o.cur;n++}}return n}var Uu,ih,Gu=S(()=>{Uu="__webjs_action",ih=new Set(["password","file","hidden","submit","button","image","reset"])});function gu(e){if(!lu(e)||!ne)return!1;let t,r;try{t=new URL(ne),r=new URL(e,location.href)}catch{return!1}return t.pathname!==r.pathname||t.search!==r.search?!1:(ne=r.href,!0)}function Yn(){te||typeof document>"u"||(sa(!0),Ko(),globalThis.__webjsRefreshPage=ys,document.addEventListener("click",ga,!1),document.addEventListener("submit",br,!1),window.addEventListener("popstate",gr),document.addEventListener("pointerover",Pt,!0),document.addEventListener("focusin",Pt,!0),document.addEventListener("touchstart",Pt,{capture:!0,passive:!0}),document.addEventListener("pointerout",wa,!0),document.addEventListener("webjs:navigate",ls),qu(),ls(),typeof history<"u"&&"scrollRestoration"in history&&(gs=history.scrollRestoration,history.scrollRestoration="auto"),typeof location<"u"&&(ne=location.href),eu())}function Ta(){te&&(sa(!1),document.removeEventListener("click",ga,!1),document.removeEventListener("submit",br,!1),window.removeEventListener("popstate",gr),Bo(),document.removeEventListener("pointerover",Pt,!0),document.removeEventListener("focusin",Pt,!0),document.removeEventListener("touchstart",Pt,{capture:!0}),document.removeEventListener("pointerout",wa,!0),document.removeEventListener("webjs:navigate",ls),Bn(),cs(),vu(),typeof history<"u"&&gs!==null&&(history.scrollRestoration=gs,gs=null),rs(),ie&&ie(),ae&&ae(),ne=null,delete globalThis.__webjsRefreshPage)}async function ka(e,t){let r=new URL(e,location.href);if(r.origin!==location.origin){Ce(e);return}await On(r.href,t?.replace??!1,null,{preserveScroll:t?.scroll===!1})}async function Na(e,t){if(typeof location>"u")return{ok:!1,status:null,aborted:!1,applied:!1};let r=e&&e.id;if(!r)return{ok:!1,status:null,aborted:!1,applied:!1};let n=new URL(t,location.href);if(n.origin!==location.origin)return{ok:!1,status:null,aborted:!1,applied:!1};le&&le.abort(),le=new AbortController;let o=le.signal,s=Fo(),i=await Gn(n.href,r,!1,null,"GET",null,o,s,!1,{noPrefetch:!0});return i&&i.applied&&Su(n.href,r),i}function bs(e){if(!e){j.clear(),It();return}let t=new URL(e,location.href),r=t.pathname+t.search;j.delete(r),k.delete(r);let n=` ${r}`;for(let o of[...k.keys()])o.endsWith(n)&&k.delete(o)}async function ys(e){if(!te||typeof location>"u")return!1;bs(),vr();try{let t=await On(location.href,!1,null,{refresh:e==="shell"?"shell":"page"});return!t||t.aborted?!0:t.applied}catch{return!1}}async function On(e,t,r,n){Bo();let o=n&&n.refresh||void 0,s=!!(n&&n.preserveScroll);if(oa(t,r)&&typeof location<"u")return pe("readyState-loading",e),Ce(e),null;le&&le.abort(),le=new AbortController;let i=le.signal,a=Fo();r||(rs(),ie&&ie(),ae&&ae()),!o&&ne&&ba(ne);let c=setTimeout(()=>{hn(!0),c=null},150),l=null;!t&&!o&&(l=Nr());let u=!1;try{if(t){let d=yu(e);if(d){let p=Ot(d.html);if(p){let g=mu(d.scrollHeight);Ht(p,r,!0,null);let y=()=>{};if(typeof window<"u"){let b=()=>{y=hu(d.scrollX,d.scrollY)};if(Tr()&&typeof document.startViewTransition=="function"){let _=es;Ve.then(()=>{_!==es||!te||b()}).catch(()=>{})}else b()}let m=Gn(e,r,!1,l,"GET",null,i,a,!0).catch(()=>{}),w=new Promise(b=>setTimeout(b,500));return Promise.all([m,w]).then(()=>ts(()=>{y(),ts(g)})),null}}u=!0,typeof window<"u"&&window.scrollTo({left:0,top:0,behavior:"instant"})}let f=await Gn(e,r,!t&&!o,l,"GET",null,i,a,!1,{refresh:o,preserveScroll:s});return u&&f&&f.applied&&typeof window<"u"&&ts(()=>{a!==C||!te||window.scrollTo({left:0,top:0,behavior:"instant"})}),f}finally{c&&clearTimeout(c),a===C&&(hn(!1),typeof location<"u"&&(ne=location.href))}}async function bu(e,t,r,n,o,s){Bo(),le&&le.abort(),le=new AbortController;let i=le.signal,a=Fo();n||(rs(),ie&&ie(),ae&&ae());let c=t==="get"||t==="head",l=new URL(e,location.href);if(c){l.search="";for(let[y,m]of r)l.searchParams.append(y,typeof m=="string"?m:m.name)}ne&&ba(ne);let u=setTimeout(()=>{hn(!0),u=null},150),f=Nr(),d=o?Cn(o,a,l.href):null,p=c?null:Ku(o),g=!1;try{let y=await Gn(l.href,n,!0,f,c?"GET":t.toUpperCase(),c?null:r,i,a,!1,{preserveScroll:!!(s&&s.preserveScroll)});g=!!(y&&y.ok),p&&y&&y.applied&&!y.ok&&a===C&&(await Ve,a===C&&zu(p)),!c&&a===C&&(j.clear(),It())}finally{d&&Rn(d,a,l.href,g),u&&clearTimeout(u),a===C&&(hn(!1),typeof location<"u"&&(ne=location.href))}}function Yu(){return ne}function Ju(e){ne=e}var le,ne,gs,jn=S(()=>{V();he();Ft();bn();os();Hu();at();Gu();qt();ns();yr();De();vn();Kn();Mt();$t();le=null,ne=null;gs=null});var Ul={};qa(Ul,{_FALLBACK_MARKER_KEY:()=>Lt,_FRAME_TOP:()=>pn,_LIVE_ATTRS:()=>qe,_activateSwappedRange:()=>zn,_activeFrameId:()=>Qo,_addNewHeadElements:()=>hr,_applyOptimisticLoading:()=>Nr,_applyStreamedResolve:()=>fs,_applySwap:()=>Ht,_blurOutgoingFocus:()=>Bt,_buildHaveHeader:()=>Ne,_buildSubmitFormData:()=>An,_bumpNavToken:()=>au,_clearFormBusy:()=>Rn,_clearFrameBusy:()=>Nn,_collectBoundaries:()=>me,_currentPageUrl:()=>Yu,_diffElementInPlace:()=>He,_eligibleAnchorHref:()=>Ar,_encodeSubmitBody:()=>_n,_findAnchorInPath:()=>Ho,_getSubmitAction:()=>wn,_getSubmitEnctype:()=>Sn,_getSubmitMethod:()=>yn,_isNonHtmlPath:()=>Jl,_isPreBootNavigation:()=>$o,_keyOf:()=>ce,_markFormBusy:()=>Cn,_markFrameBusy:()=>kn,_mergeHead:()=>Tn,_navToken:()=>iu,_onPopState:()=>gr,_onSubmit:()=>br,_parseHTML:()=>Ot,_planBoundarySwap:()=>mn,_prefetch:()=>lt,_prefetchAnchor:()=>as,_prefetchCache:()=>k,_prefetchHasHoverPointer:()=>ss,_prefetchInflightSize:()=>Au,_prefetchMode:()=>xr,_prefetchPeek:()=>_u,_prefetchSaysSaveData:()=>$n,_prefetchSuppressed:()=>is,_prefetchTake:()=>Fn,_reactivateScripts:()=>ut,_readStreamedShell:()=>Hn,_reconcileChildren:()=>kr,_regraftPermanentElements:()=>Wn,_regraftPermanentInSlice:()=>Be,_resetParseProbe:()=>ia,_resetPrefetch:()=>xu,_resetWarnOnce:()=>nu,_resolvePreserveScroll:()=>Ln,_resolveTargetFrameId:()=>ge,_restoreOptimistic:()=>ft,_runWithTransition:()=>Dt,_setCurrentPageUrl:()=>Ju,_setHardNavigate:()=>su,_shouldFullLoadDuringParse:()=>ou,_snapshotCache:()=>j,_streamBoundariesProgressively:()=>Un,_takeResolveUnit:()=>us,_viewTransitionsEnabled:()=>Tr,disableClientRouter:()=>Ta,enableClientRouter:()=>Yn,loadFrame:()=>Na,navigate:()=>ka,refreshPage:()=>ys,revalidate:()=>bs});var Wi=S(()=>{Vi();dn();dn();je();Wl();Po();qo();Ze();jn();V();he();jn();qt();De();Me();V();he();Ft();bn();Uo();os();Vo();at();mr();qt();ns();yr();Vn();Kn();Mt();$t();(typeof window>"u"||window.__WEBJS_CLIENT_ROUTER__!==!1)&&Yn()});function As(e,...t){return{_$webjs:"template",strings:e,values:t}}function tf(e,...t){return{_$webjs:"template",strings:e,values:t,svg:!0}}function F(e){return!!e&&typeof e=="object"&&e._$webjs==="template"}var P="wjm-";function rf(e,...t){let r=e[0];for(let n=1;n<e.length;n++)r+=String(t[n-1]??"")+e[n];return{_$webjsCss:!0,text:r}}function Cr(e){return!!e&&typeof e=="object"&&e._$webjsCss===!0}function xs(e,t){if(!(!t||!t.length))if("adoptedStyleSheets"in e&&typeof CSSStyleSheet<"u"){let r=t.map(n=>{let o=new CSSStyleSheet;return o.replaceSync(n.text),o});e.adoptedStyleSheets=r}else{let r=e,n=document.createElement("style");n.textContent=t.map(o=>o.text).join(`
4
- `),r.appendChild(n)}}function vs(e){return!e||!e.length?"":`<style>${e.map(t=>t.text).join(`
5
- `)}</style>`}pt();je();var Ka=Symbol.for("webjs.repeat");function za(e,t,r){return{[Ka]:!0,items:[...e],keyFn:t,templateFn:r}}function Gt(e){return!!e&&typeof e=="object"&&e[Ka]===!0}pt();function Ga(e){return{_$webjs:"class-map",value:e}}function Ya(e){return{_$webjs:"style-map",value:e}}function Ja(e){return e??T}function Mr(e){return e&&(e._$webjs==="class-map"||e._$webjs==="style-map")}function Xa(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Ls(e,t){let r=e._$webjs==="class-map";if(t!==(r?"class":"style"))throw new Error("classMap/styleMap must be used in a class/style attribute.");return r?" "+Object.keys(e.value).filter(n=>e.value[n]).join(" ")+" ":Object.entries(e.value).filter(([,n])=>n!=null).map(([n,o])=>`${Xa(n)}:${o};`).join("")}function Za(e,t){if(e.kind!=="attr"&&e.kind!=="attr-mixed")throw new Error("classMap/styleMap require an attribute binding.");let r=t._$webjs==="class-map";if(e.name!==(r?"class":"style"))throw new Error("classMap/styleMap must be used in a class/style attribute.");if(e.group&&e.group.length!==1)throw new Error("classMap/styleMap require a single expression.");e.__mapKind!==t._$webjs&&(e.el.setAttribute(e.name,(e.statics||[]).join(r?" ":"")),e.__mapKind=t._$webjs,e.__mapKeys=new Set,e.__staticClasses=r?new Set(e.el.classList):new Set);let n=new Set;for(let[o,s]of Object.entries(t.value))if(r)s&&!e.__staticClasses.has(o)&&(e.el.classList.add(o),n.add(o));else if(s!=null){let i=Xa(o),a=String(s);e.el.style.setProperty(i,a.replace(/\s*!important\s*$/,""),/!important\s*$/.test(a)?"important":""),n.add(i)}for(let o of e.__mapKeys)n.has(o)||(r?e.el.classList.remove(o):e.el.style.removeProperty(o));e.__mapKeys=n}function Os(e){return{_$webjs:"unsafe-html",value:String(e??"")}}function Dr(e){return!!e&&typeof e=="object"&&e._$webjs==="unsafe-html"}function bf(e){return{_$webjs:"live",value:e}}function J(e){return!!e&&typeof e=="object"&&e._$webjs==="live"}function yf(e,t){return{_$webjs:"keyed",key:e,value:t}}function Yt(e){return!!e&&typeof e=="object"&&e._$webjs==="keyed"}function wf(e,t){return{_$webjs:"guard",deps:e,fn:t}}function Jt(e){return!!e&&typeof e=="object"&&e._$webjs==="guard"}function Sf(e){return{_$webjs:"template-content",template:e}}function $r(e){return!!e&&typeof e=="object"&&e._$webjs==="template-content"}function _f(e){return{_$webjs:"ref",target:e}}function Xt(e){return!!e&&typeof e=="object"&&e._$webjs==="ref"}function Af(){return{value:void 0}}function xf(e){return{_$webjs:"cache",value:e}}function Zt(e){return!!e&&typeof e=="object"&&e._$webjs==="cache"}function vf(...e){return{_$webjs:"until",args:e}}function Qt(e){return!!e&&typeof e=="object"&&e._$webjs==="until"}function Ef(e,t){return{_$webjs:"async-append",iterable:e,mapper:t}}function Fr(e){return!!e&&typeof e=="object"&&e._$webjs==="async-append"}function Tf(e,t){return{_$webjs:"async-replace",iterable:e,mapper:t}}function Br(e){return!!e&&typeof e=="object"&&e._$webjs==="async-replace"}function kf(e){return{_$webjs:"watch",signal:e}}function er(e){return!!e&&typeof e=="object"&&e._$webjs==="watch"}mt();Ze();mt();je();Ze();var co=new WeakMap,lo=new WeakMap,Yr=Symbol.for("webjs.instance");function nr(e){let{strings:t}=e,r=co.get(t);if(r)return r;let n=[],o="",s="text",i="",a=0,c="",l=0,u=null,f="",d="";for(let y=0;y<t.length;y++){let m=t[y];for(let w=0;w<m.length;w++){let b=m[w];switch(s){case"text":o+=b,b==="<"&&(s="tag-open");break;case"tag-open":o+=b,b==="!"?s="bang-1":b==="/"?(s="tag-name",f=""):/[a-zA-Z]/.test(b)?(s="tag-name",f=b.toLowerCase()):s="text";break;case"bang-1":o+=b,s=b==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=b,b==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=b,b==="-"?l+=1:(b===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=b,b===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(d="")):/\s/.test(b)?s="in-tag":f+=b.toLowerCase();break;case"in-tag":o+=b,b===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(d="")):!/\s/.test(b)&&b!=="/"&&(s="attr-name",i=b,a=o.length-1);break;case"rawtext":o+=b,d=(d+b.toLowerCase()).slice(-9),(d.endsWith("<\/script>")||d.endsWith("</style>"))&&(s="text",d="",f="");break;case"attr-name":b==="="?(s="after-eq",o+=b):/\s/.test(b)?(s="in-tag",i="",o+=b):b===">"?(s="text",i="",o+=b):(i+=b,o+=b);break;case"after-eq":b==='"'||b==="'"?(s="attr-quoted",c=b,o+=b):/\s/.test(b)?(s="in-tag",i="",o+=b):b===">"?(s="text",i="",o+=b):(s="attr-unquoted",o+=b);break;case"attr-unquoted":/\s/.test(b)?(s="in-tag",i="",o+=b):(b===">"&&(s="text",i=""),o+=b);break;case"attr-quoted":o+=b,b===c&&(s="in-tag",i="");break;case"skip-attr":if(b===c){if(u){let _=u.firstPartIdx,A=[];for(let h=_;h<n.length;h++)(n[h].kind==="noop"||n[h].kind==="attr-mixed")&&A.push(h);let N=[],Q=t[A[0]],be=Q.lastIndexOf(c);N.push(be>=0?Q.slice(be+1):Q);for(let h=1;h<A.length;h++)N.push(t[A[h]]);let R=t[A[A.length-1]+1],z=R.indexOf(c);N.push(z>=0?R.slice(0,z):R);let L=Vt(u.name[0]);if(L&&(A.length!==1||N.some(h=>h!=="")))throw new Error("Event, property and boolean bindings require exactly one expression with no surrounding text.");n[_]={kind:L?Ke[u.name[0]]:"attr-mixed",path:[],name:L?u.name.slice(1):u.name,statics:N,group:A};for(let h=1;h<A.length;h++)n[A[h]]={kind:"noop",path:[],mixedAnchor:_};u=null}s="in-tag",i=""}break}}if(y<t.length-1){let w=n.length;if(s==="comment"){l=0,n.push({kind:"noop",path:[]});continue}if(s==="rawtext"){d="",n.push({kind:"noop",path:[]});continue}if(s==="text")o+=`<!--${P}${w}-->`,n.push({kind:"child",path:[]});else if(s==="in-tag"){let b=`data-${P}${w}`;o+=`${b}=""`,n.push({kind:"element",path:[]})}else if(s==="after-eq"){let b=i[0],_=i.slice(1);if(Vt(b)){o=o.slice(0,a);let A=Ke[b],N=`data-${P}${w}`;o+=`${N}=""`,n.push({kind:A,path:[],name:_})}else{o=o.slice(0,a);let A=`data-${P}${w}`;o+=`${A}=""`,n.push({kind:"attr",path:[],name:i})}s="in-tag",i=""}else if(s==="attr-quoted"||s==="attr-unquoted"){o=o.slice(0,a);let b=`data-${P}${w}`;o+=`${b}=""`,u={name:i,firstPartIdx:w},n.push({kind:"noop",path:[]}),s="skip-attr"}else s==="skip-attr"&&n.push({kind:"noop",path:[]})}}let p=document.createElement("template");if(e.svg){p.innerHTML=`<svg>${o}</svg>`;let y=p.content.firstChild;y.replaceWith(...y.childNodes)}else p.innerHTML=o;jf(p.content,n);let g=Pf(p.content,n);return r={templateEl:p,parts:n,formActions:g},co.set(t,r),r}function jf(e,t){let r=e.querySelectorAll("slot");for(let n of r){n.setAttribute(v,"");let o=t.length;n.setAttribute(`data-${P}${o}`,""),t.push({kind:"slot",path:[]})}}function Pf(e,t){let r=[],n=[];function o(s){for(let i=0;i<s.childNodes.length;i++){let a=s.childNodes[i];if(r.push(i),a.nodeType===8){let c=a.data;if(c.startsWith(P)){let l=Number(c.slice(P.length));t[l]&&t[l].kind==="child"&&(t[l].path=r.slice())}}else if(a.nodeType===1){let c=a,l=[],u=[];for(let f of c.attributes)if(f.name.startsWith(`data-${P}`)){let d=Number(f.name.slice(`data-${P}`.length));t[d]&&t[d].kind!=="child"&&(t[d].path=r.slice(),u.push({idx:d,kind:t[d].kind,name:t[d].name||""})),l.push(f.name)}if(c.localName==="form"||c.localName==="button"||c.localName==="input"){let f=If(c,u,t);f&&n.push(f)}for(let f of l)c.removeAttribute(f);o(a)}r.pop()}}return o(e),n.length?n:null}function If(e,t,r){let n=e.localName==="form",o=n?"action":"formaction",s=n?"method":"formmethod",i=n?"enctype":"formenctype",a=t.filter(m=>m.kind==="attr"&&m.name.toLowerCase()===o);if(!a.length)return null;let c=[],l=[],u=[],f=n?[]:t.filter(m=>m.name.toLowerCase()==="name"&&(m.kind==="attr"||m.kind==="attr-mixed"||m.kind==="bool")).map(m=>({i:m.idx,kind:m.kind})),d=!n&&e.hasAttribute("name"),p=!n&&e.hasAttribute("form"),g=!n&&e.hasAttribute("value"),y=n?[]:t.filter(m=>m.name.toLowerCase()==="value"&&(m.kind==="attr"||m.kind==="attr-mixed"||m.kind==="bool")).map(m=>({i:m.idx,kind:m.kind}));for(let m of t){let w=String(m.name).toLowerCase();if(m.kind==="prop"){n?(w==="method"||w==="enctype"||w==="encoding")&&u.push(m.name):Ir(w)&&u.push(m.name);continue}if(w!==s&&w!==i||m.kind!=="attr"&&m.kind!=="attr-mixed"&&m.kind!=="bool")continue;let b=r[m.idx],_={i:m.idx,kind:m.kind};m.kind==="attr-mixed"&&(_.statics=b.statics||[],_.group=b.group||[]),(w===s?c:l).push(_)}return{isForm:n,tag:e.localName,actionIdxs:a.map(m=>m.idx),duplicateAction:a.length>1,staticAction:e.getAttribute(o)!=null,authoredName:d,authoredValue:g,authoredForm:p,propAttrs:u,nameParts:f,valueParts:y,staticMethod:e.getAttribute(s),staticEnctype:e.getAttribute(i),methodParts:c,enctypeParts:l}}Ze();var uo=new WeakSet;function pc(e,t,r){if(e.nodeType!==1||!bt(e))return null;let n=$(e),o=new Set;for(let l of r)(l.kind==="attr"||l.kind==="attr-mixed"||l.kind==="bool")&&l.name==="name"&&o.add(l.el);let s=new Map,i=new Set,a=[],c=[];for(let l of r){if(l.kind!=="slot")continue;let u=l.slotEl;if(o.has(u))continue;let f=n.assignedByName.get(W(u.getAttribute("name")));if(!f||f.length===0)continue;let d=f[0].parentNode;if(!d||d.nodeType!==1||d.localName!=="slot"||i.has(d)||d.getAttribute(O)!==U||!qf(d.childNodes,f))continue;let p=dc(u,t),g=dc(d,e);if(!p||!g||p.length!==g.length)continue;let y=!0;for(let m=0;m<p.length&&y;m++){let w=p[m],b=g[m],_=w.localName;if(_!==b.localName||_.includes("-")||_==="form")y=!1;else{let A=s.get(w);(A?A!==b:i.has(b))&&(y=!1)}}if(y){s.set(u,d),i.add(d),a.push([u,d]);for(let m=0;m<p.length;m++)s.has(p[m])||(s.set(p[m],g[m]),i.add(g[m]),c.push([p[m],g[m]]))}}if(a.length===0)return null;for(let l of[t,...c.map(([u])=>u)]){let u=null;for(let f of l.childNodes){let d=s.get(f);if(d){if(u&&!(u.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_FOLLOWING))return null;u=d}}}return{map:s,slots:a,chains:c}}function hc(e,t){let r=new Map;for(let n of t){if(n.kind==="slot"){let s=e.map.get(n.slotEl);s&&(n.slotEl=s);continue}if(!n.el)continue;let o=e.map.get(n.el);if(o&&(n.kind==="event"&&(n.el.removeEventListener(n.name,n.dispatcher),o.addEventListener(n.name,n.dispatcher)),n.el=o,n.kind==="attr"||n.kind==="attr-mixed"||n.kind==="bool")){let s=r.get(o);s||r.set(o,s=new Set),s.add(n.name)}}for(let[n,o]of[...e.chains,...e.slots]){let s=o.localName==="slot",i=r.get(o);for(let a of Array.from(o.attributes))n.hasAttribute(a.name)||i?.has(a.name)||s&&(a.name===O||a.name===Hr)||o.removeAttribute(a.name);for(let a of Array.from(n.attributes))o.getAttribute(a.name)!==a.value&&o.setAttribute(a.name,a.value)}}function mc(e,t,r){let n=s=>e.map.get(s)||s,o=$(t);for(let[s,i]of e.chains)fc(i,Array.from(s.childNodes,n));fc(t,r.map(n));for(let[s,i]of e.slots){let a=document.createDocumentFragment();for(;s.firstChild;)a.appendChild(s.firstChild);i[we]=a,uo.add(i),o.lastSnapshot.delete(i)}}function fc(e,t){let r=new Set(t);for(let o of Array.from(e.childNodes))r.has(o)||e.removeChild(o);let n=e.firstChild;for(let o of t){if(o===n){n=n.nextSibling;continue}e.insertBefore(o,n)}}function dc(e,t){let r=[],n=e.parentNode;for(;n&&n!==t;){if(n.nodeType!==1)return null;r.push(n),n=n.parentNode}return n===t?r:null}function qf(e,t){if(e.length!==t.length)return!1;for(let r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}pt();je();var ue=null,Qe=!1,sr=0,or=null,ai=0,gc=(e,t)=>Object.is(e,t),po=()=>{},bc=()=>!1;function yc(e,t){e.liveConsumers||(e.liveConsumers=new Map);let r=e.liveConsumers.size===0;if(e.liveConsumers.set(t,(e.liveConsumers.get(t)||0)+1),r){if(e.producers&&e.producers.length>0)for(let n of e.producers)yc(n,e);if(e.watched)try{e.watched.call(e.wrapper)}catch(n){console.error(n)}}}function Jr(e,t){if(!e.liveConsumers)return;let r=e.liveConsumers.get(t);if(r!==void 0){if(r>1){e.liveConsumers.set(t,r-1);return}if(e.liveConsumers.delete(t),e.liveConsumers.size===0){if(e.producers&&e.producers.length>0)for(let n of e.producers)Jr(n,e);if(e.unwatched)try{e.unwatched.call(e.wrapper)}catch(n){console.error(n)}}}}function pi(e){if(Qe)throw new Error("Signal read during notification phase");if(ue===null)return;let t=ue,r=t.nextProducerIndex++;r<t.producers.length&&t.producers[r]!==e&&ui(t)&&Jr(t.producers[r],t),t.producers[r]!==e&&(t.producers[r]=e,ui(t)&&yc(e,t)),t.producerLastReadVersions[r]=e.version}function ui(e){return e.consumerIsAlwaysLive||e.liveConsumers&&e.liveConsumers.size>0}function wc(e){if(!e.liveConsumers||e.liveConsumers.size===0)return;let t=Qe;Qe=!0;try{for(let r of e.liveConsumers.keys())r.dirty||Mf(r)}finally{Qe=t}}function Mf(e){e.dirty=!0,wc(e),e.consumerMarkedDirty.call(e.wrapper||e)}function ho(e){if(!(!e.dirty&&e.lastCleanEpoch===sr)){if(!e.producerMustRecompute()&&!Df(e)){e.dirty=!1,e.lastCleanEpoch=sr;return}e.producerRecomputeValue(),e.dirty=!1,e.lastCleanEpoch=sr}}function Df(e){for(let t=0;t<e.producers.length;t++){let r=e.producers[t],n=e.producerLastReadVersions[t];if(n!==r.version||(ho(r),n!==r.version))return!0}return!1}function fi(e){e&&(e.nextProducerIndex=0);let t=ue;return ue=e,t}function di(e,t){if(ue=t,!!e){if(ui(e))for(let r=e.nextProducerIndex;r<e.producers.length;r++)Jr(e.producers[r],e);for(;e.producers.length>e.nextProducerIndex;)e.producers.pop(),e.producerLastReadVersions.pop()}}var mo=class{constructor(t,r){this.__value=t,this.version=0,this.lastCleanEpoch=sr,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.liveConsumers=void 0,this.consumerAllowSignalWrites=!0,this.consumerIsAlwaysLive=!1,this.producerMustRecompute=bc,this.producerRecomputeValue=po,this.consumerMarkedDirty=po,this.wrapper=this,this.__isSignal=!0,this.__equal=r?.equals||gc,this.watched=r?.[hi],this.unwatched=r?.[mi]}get(){return pi(this),this.__value}peek(){return this.__value}set(t){if(Qe)throw new Error("Signal write during notification phase");this.__equal.call(this,this.__value,t)||(this.__value=t,this.version++,sr++,or!==null?Sc(this):wc(this))}};function Sc(e){let t=Qe;Qe=!0;try{if(!e.liveConsumers)return;for(let r of e.liveConsumers.keys())r.dirty||(r.dirty=!0,r.__isWatcher?or.add(r):Sc(r))}finally{Qe=t}}var ci=Symbol("unset"),li=Symbol("computing"),fo=Symbol("errored"),Xr=class{constructor(t,r){this.__fn=t,this.__value=ci,this.__error=null,this.version=0,this.lastCleanEpoch=-1,this.dirty=!0,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!1,this.wrapper=this,this.__isSignal=!0,this.__isComputed=!0,this.__equal=r?.equals||gc,this.watched=r?.[hi],this.unwatched=r?.[mi];let n=this;this.producerMustRecompute=function(){return n.__value===ci||n.__value===li},this.producerRecomputeValue=function(){if(n.__value===li)throw new Error("Detected cycle in computations.");let o=n.__value;n.__value=li;let s=fi(n),i,a=!1;try{i=n.__fn.call(n.wrapper)}catch(l){i=fo,n.__error=l,a=!0}finally{di(n,s)}if(!a&&(o!==ci&&o!==fo)&&n.__equal.call(n.wrapper,o,i)){n.__value=o;return}n.__value=i,n.version++},this.consumerMarkedDirty=po}get(){if(ho(this),pi(this),this.__value===fo)throw this.__error;return this.__value}peek(){if(ho(this),this.__value===fo)throw this.__error;return this.__value}},go=class{constructor(t){this.__notify=t,this.version=0,this.lastCleanEpoch=sr,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!0,this.producerMustRecompute=bc,this.producerRecomputeValue=po,this.wrapper=this,this.__isWatcher=!0;let r=this;this.consumerMarkedDirty=function(){r.__fire()}}__fire(){this.__notify&&this.__notify.call(this)}watch(...t){if(t.length===0){this.dirty=!1;return}let r=fi(this);try{for(let n of t)pi(n),n.__isComputed&&ho(n)}finally{di(this,r)}this.dirty=!1}unwatch(...t){for(let r=this.producers.length-1;r>=0;r--)t.includes(this.producers[r])&&(Jr(this.producers[r],this),this.producers.splice(r,1),this.producerLastReadVersions.splice(r,1),this.nextProducerIndex=Math.min(this.nextProducerIndex,this.producers.length))}getPending(){return this.producers.filter(t=>t.__isComputed&&t.dirty)}observe(t){let r=fi(this),n;try{n=t()}finally{di(this,r)}return this.dirty=!1,n}dispose(){for(let t of this.producers)Jr(t,this);this.producers=[],this.producerLastReadVersions=[],this.__notify=null}},hi=Symbol("watched"),mi=Symbol("unwatched");function $f(e){let t=ue;ue=null;try{return e()}finally{ue=t}}function Ff(e){return e.producers.slice()}function Bf(e){return e.liveConsumers?[...e.liveConsumers.keys()]:[]}function Hf(e){return!!e.liveConsumers&&e.liveConsumers.size>0}function Uf(e){return e.producers.length>0}function Vf(){return ue&&ue.__isComputed?ue:null}function Wf(e){ai++,or===null&&(or=new Set);try{e()}finally{if(ai--,ai===0){let t=or;or=null;for(let r of t)r.__fire()}}}var xe={State:mo,Computed:Xr,subtle:{Watcher:go,untrack:$f,introspectSources:Ff,introspectSinks:Bf,hasSinks:Hf,hasSources:Uf,currentComputed:Vf,watched:hi,unwatched:mi}};function Kf(e,t){return new mo(e,t)}function zf(e,t){return new Xr(e,t)}function Gf(e){return!!(e&&typeof e=="object"&&e.__isSignal===!0)}function Yf(e){let t=!1,r=!1,n=new Xr(e),o=new go(()=>{t||r||(t=!0,queueMicrotask(()=>{if(t=!1,!r){try{n.get()}catch(s){console.error(s)}o.watch()}}))});o.watch(n);try{n.get()}catch(s){console.error(s)}return()=>{r||(r=!0,o.dispose())}}Ze();mt();var ve;function bi(e){ve=e}var Z=null;function yi(e){Z=e}function Ac(e,t){let r=e&&e[x]?e:null;return r?_t(r,t):t()}function yo(e){return e?e.nodeType===11&&e.host?e.host:e:null}function wi(e,t){let r=e.__commitOwner,n=Z,o=ve;ve=e.__eventHost,r&&(Z=r);try{t()}finally{Z=n}}function Qr(e,t){if(e.kind==="noop")return{kind:"noop",mixedAnchor:e.mixedAnchor};let r=t;for(let o of e.path)r=r.childNodes[o];if(e.kind==="child")return{kind:"child",marker:r,__eventHost:ve};let n=r;if(e.kind==="event"){let o={kind:"event",el:n,name:e.name||"",handler:null,eventHost:ve,dispatcher(s){typeof o.handler=="function"?o.handler.call(o.eventHost??o.el,s):o.handler?.handleEvent(s)}};return o}if(e.kind==="attr")return{kind:"attr",el:n,name:e.name||""};if(e.kind==="attr-mixed")return{kind:"attr-mixed",el:n,name:e.name||"",statics:e.statics||[],group:e.group||[]};if(e.kind==="prop")return{kind:"prop",el:n,name:e.name||""};if(e.kind==="bool")return{kind:"bool",el:n,name:e.name||""};if(e.kind==="element")return{kind:"element",el:n};if(e.kind==="slot")return{kind:"slot",slotEl:n,applied:!1};throw new Error(`unknown part kind ${e.kind}`)}function fe(e,t,r,n,o){if(t!==B){if(Mr(t)){Za(e,t);return}if(e.__mapKind=void 0,J(t)){let s=t.value;if(e.kind==="prop"&&e.el[e.name]===s||e.kind==="attr"&&e.el.getAttribute(e.name)===String(s)||e.kind==="bool"&&e.el.hasAttribute(e.name)===!!s)return;t=s}switch(e.kind){case"child":Zf(e,t,o);break;case"attr":{let s=ht(e.name,t);s===null?e.el.removeAttribute(e.name):Kt(t,e.name,e.el.localName)||(ye(t,e.name,e.el.localName),e.el.setAttribute(e.name,s));break}case"prop":Zn(t,e.name,e.el.localName),e.el[e.name]=t===T?void 0:t;break;case"bool":ye(t,e.name,e.el.localName),t&&t!==T?e.el.setAttribute(e.name,""):e.el.removeAttribute(e.name);break;case"event":{let s=e.handler,i=t==null||t===T?null:t,a=s?.capture!==i?.capture||s?.once!==i?.once||s?.passive!==i?.passive;s&&(!i||a)&&e.el.removeEventListener(e.name,e.dispatcher,s),i&&(!s||a)&&e.el.addEventListener(e.name,e.dispatcher,i),e.handler=i}break;case"element":Xf(e,t);break;case"attr-mixed":{let s=e,i=s.statics[0];for(let a=0;a<s.group.length;a++){let c=n?n[s.group[a]]:t;if(J(c)&&(c=c.value),ye(c,e.name,e.el.localName),c===T){e.el.removeAttribute(e.name);return}i+=String(c??""),i+=s.statics[a+1]||""}e.el.setAttribute(e.name,i);break}case"slot":{if(e.applied)break;let s=e.slotEl,i=()=>{let c=ir(s);if(!c){e.applied=!0;return}if(!c.contains(s)){c.isConnected?queueMicrotask(i):e.applied=!0;return}if(e.applied=!0,!Jf(s)){if(uo.has(s))uo.delete(s);else{let l=document.createDocumentFragment();for(;s.firstChild;)l.appendChild(s.firstChild);s[we]=l}queueMicrotask(()=>ee(c))}},a=ir(s);a&&a.contains(s)?i():queueMicrotask(i);break}case"noop":break}}}function ir(e){let t=e[gt];if(t&&t.isConnected)return t;let r=e.parentElement;for(;r;){if(r[x])return r;r=r.parentElement}return null}function Jf(e){let t=e;for(let r=0;r<128;r++){let n=t.parentNode;if(!n||n===t)return!1;if(n.nodeType===11&&n.host)return!0;t=n}return!1}function Xf(e,t){let r=e,n=Xt(t)?t.target:void 0,o=r.__refTarget,s=n!==o;if(s&&o)if(typeof o=="function")try{o(void 0)}catch{}else typeof o=="object"&&(o.value=void 0);if(s||r.__refElement!==e.el){if(r.__refTarget=n,n)if(typeof n=="function"){if(!s&&r.__refElement!==void 0)try{n(void 0)}catch{}try{n(e.el)}catch{}}else typeof n=="object"&&(n.value=e.el);r.__refElement=e.el,e.lastTarget=n}}function Zf(e,t,r){if(t!==B)return ad(e,t),Ee(e,t,r)}function Ee(e,t,r){let n=ve;ve=e.__eventHost;try{return Ac(e.marker&&e.marker.parentNode,()=>xc(e,t,r))}finally{ve=n}}function xc(e,t,r){let n=e.marker;if(J(t))return xc(e,t.value,r);if(Dr(t)){et(e);let s=String(t.value??""),i=document.createElement("template");i.innerHTML=s;let a=[...i.content.childNodes],c=document.createDocumentFragment();for(let l of a)c.appendChild(l);n.parentNode?.insertBefore(c,n),e.child=a;return}if(Yt(t)){let s=t,i=e.__keyedKey;i!==void 0&&!Object.is(i,s.key)&&et(e),e.__keyedKey=s.key,Ee(e,s.value,r);return}if(Jt(t)){let s=t,i=e.__guardDeps,a=s.deps;if(i!==void 0&&(Array.isArray(i)&&Array.isArray(a)?id(i,a):Object.is(i,a)))return;let c=Array.isArray(a)?a.slice():a;Ee(e,s.fn(),r),e.__guardDeps=c;return}if($r(t)){et(e);let s=t.template;if(s&&s.content){let i=s.content.cloneNode(!0),a=[...i.childNodes];n.parentNode?.insertBefore(i,n),e.child=a}return}if(Xt(t))return;if(Zt(t))return cd(e,t.value,r);if(Qt(t))return ld(e,t.args,r);if(er(t))return ud(e,t.signal,r);if(Fr(t))return fd(e,t,r);if(Br(t))return dd(e,t,r);if(Gt(t)){if(e.child&&e.child.kind==="repeat"){td(e,t,r);return}et(e);let s={kind:"repeat",map:new Map};e.child=s,ed(n,s,t,r);return}if(Array.isArray(t)){if(e.child&&e.child.kind==="array"){od(e,t,r);return}et(e);let s={kind:"array",items:[]};e.child=s,nd(n,s,t,r);return}if(e.child){let s=e.child;if(s.kind==="repeat")vc(s),e.child=void 0;else if(s.kind==="array")Tc(s),e.child=void 0;else if(s.kind==="async-stream")Rc(s),e.child=void 0;else if("strings"in e.child){let i=e.child;if(F(t)&&i.strings===t.strings){xt(i,t.values,r);return}ar(i.startNode,i.endNode),e.child=void 0}else{for(let i of e.child)i.parentNode&&i.parentNode.removeChild(i);e.child=void 0}}if(t==null||t===T||t===B)return;if(F(t)){let s=t,{templateEl:i,parts:a,formActions:c}=nr(s),l=i.content.cloneNode(!0),u=document.createComment(`${P}s`),f=document.createComment(`${P}e`),d=a.map(y=>Qr(y,l)),p=[];for(let y=0;y<s.values.length;y++)fe(d[y],s.values[y],void 0,s.values,r),p.push(s.values[y]);r&&r(c,d,s.values);let g=[u,...l.childNodes,f];n.parentNode?.insertBefore(Qf(g),n);for(let y of d)y.kind==="slot"&&fe(y,void 0,void 0,[],r);e.child={strings:s.strings,bound:d,lastValues:p,startNode:u,endNode:f};return}let o=document.createTextNode(String(t));n.parentNode?.insertBefore(o,n),e.child=[o]}function xt(e,t,r){t=t.map((n,o)=>n===B?e.lastValues[o]??T:n);for(let n=0;n<t.length;n++){let o=t[n];if(Object.is(o,e.lastValues[n]))continue;let s=e.bound[n],i=s.mixedAnchor;try{s.kind==="noop"&&i!=null?fe(e.bound[i],t[i],e.lastValues[i],t,r):fe(s,o,e.lastValues[n],t,r)}catch(a){throw e.lastValues[n]=_c,s.kind==="noop"&&i!=null&&(e.lastValues[i]=_c),a}e.lastValues[n]=o}r&&r(co.get(e.strings)?.formActions??null,e.bound,t)}var _c=Symbol("webjs.commitFailed");function ar(e,t){let r=e.parentNode;if(!r)return;let n=e;for(;n&&n!==t;){let o=n.nextSibling;n.parentNode?.removeChild(n),n=o}t.parentNode===r&&r.removeChild(t)}function Qf(e){let t=document.createDocumentFragment();for(let r of e)t.appendChild(r);return t}function Si(e,t){let{templateEl:r,parts:n,formActions:o}=nr(e),s=r.content.cloneNode(!0),i=document.createComment(`${P}s`),a=document.createComment(`${P}e`),c=n.map(f=>Qr(f,s)),l=[];for(let f=0;f<e.values.length;f++)fe(c[f],e.values[f],void 0,e.values,t),l.push(e.values[f]);t&&t(o,c,e.values);for(let f of c)f.kind==="slot"&&fe(f,void 0,void 0,[],t);let u=document.createDocumentFragment();for(u.appendChild(i);s.firstChild;)u.appendChild(s.firstChild);return u.appendChild(a),{inst:{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a},frag:u}}function Zr(e){for(let t of e.bound)if(t.kind==="event"&&t.el.removeEventListener(t.name,t.dispatcher,t.handler),t.kind==="element"){let r=t.lastTarget;if(r){if(typeof r=="function")try{r(void 0)}catch{}else if(typeof r=="object")try{r.value=void 0}catch{}t.lastTarget=void 0,t.__lastEl=void 0}}}function ed(e,t,r,n){let{items:o,keyFn:s,templateFn:i}=r,a=e.parentNode;if(!a)return;let c=document.createDocumentFragment();for(let l=0;l<o.length;l++){let u=s(o[l],l),f=i(o[l],l);if(!F(f))continue;let{inst:d,frag:p}=Si(f,n);t.map.set(u,d),c.appendChild(p)}a.insertBefore(c,e)}function td(e,t,r){let n=e.marker,o=n.parentNode;if(!o)return;let s=e.child,{items:i,keyFn:a,templateFn:c}=t,l=new Map;try{for(let u=0;u<i.length;u++){let f=a(i[u],u),d=c(i[u],u);if(!F(d))continue;let p=s.map.get(f);if(p&&p.strings===d.strings)xt(p,d.values,r),gi(p.startNode,p.endNode,o,n),l.set(f,p),s.map.delete(f);else{p&&(s.map.delete(f),Zr(p),ar(p.startNode,p.endNode));let{inst:g,frag:y}=Si(d,r);o.insertBefore(y,n),l.set(f,g)}}for(let[u,f]of[...s.map]){s.map.delete(u);try{Zr(f)}finally{ar(f.startNode,f.endNode)}}s.map=l}catch(u){for(let[f,d]of l)s.map.set(f,d);throw u}}function vc(e){for(let[t,r]of[...e.map]){e.map.delete(t);try{Zr(r)}finally{ar(r.startNode,r.endNode)}}e.map.clear()}function rd(e){return e.type==="tpl"?e.inst.startNode:e.type==="text"?e.node:null}function bo(e){e.type==="tpl"?(Zr(e.inst),ar(e.inst.startNode,e.inst.endNode)):e.type==="text"&&e.node.parentNode?.removeChild(e.node)}function Ec(e,t){if(J(e)&&(e=e.value),F(e)){let{inst:r,frag:n}=Si(e,t);return{item:{type:"tpl",inst:r},frag:n}}if(e!=null&&e!==T&&e!==B){let r=document.createTextNode(String(e));return{item:{type:"text",node:r},frag:r}}return{item:{type:"empty"},frag:null}}function nd(e,t,r,n){let o=e.parentNode;if(!o)return;let s=document.createDocumentFragment(),i=[];for(let a of r){let{item:c,frag:l}=Ec(a,n);l&&s.appendChild(l),i.push(c)}o.insertBefore(s,e),t.items=i}function od(e,t,r){let n=e.marker,o=n.parentNode;if(!o)return;let s=e.child,i=s.items,a=[],c=0;try{for(let l=0;l<t.length;l++){let u=t[l],f=J(u)?u.value:u,d=i[l];if(F(f)){let y=f;if(d&&d.type==="tpl"&&d.inst.strings===y.strings){xt(d.inst,y.values,r),a.push(d),c=l+1;continue}}else if(f!=null&&f!==T&&f!==B){if(d&&d.type==="text"){let y=String(f);d.node.data!==y&&(d.node.data=y),a.push(d),c=l+1;continue}}else{d&&bo(d),a.push({type:"empty"}),c=l+1;continue}let{item:p,frag:g}=Ec(f,r);g&&o.insertBefore(g,sd(i,l,n)),a.push(p),d&&bo(d),c=l+1}for(let l=t.length;l<i.length;l++)bo(i[l]),c=l+1;s.items=a}catch(l){throw s.items=a.concat(i.slice(c)),l}}function sd(e,t,r){for(let n=t;n<e.length;n++){let o=rd(e[n]);if(o&&o.parentNode)return o}return r}function Tc(e){for(let t of e.items)bo(t);e.items=[]}function gi(e,t,r,n){if(t.nextSibling===n&&e.parentNode===r)return;let o=document.createDocumentFragment(),s=e;for(;s;){let i=s.nextSibling;if(o.appendChild(s),s===t)break;s=i}r.insertBefore(o,n)}function id(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function et(e){let t=e;if(t.__untilState&&(t.__untilState.aborted=!0,t.__untilState=void 0),t.__watchSub&&kc(t),!e.child)return;let r=e.child;if(r.kind==="repeat")vc(r);else if(r.kind==="array")Tc(r);else if(r.kind==="async-stream")Rc(r);else if("strings"in r){let n=e.child;Zr(n),ar(n.startNode,n.endNode)}else for(let n of e.child)n.parentNode&&n.parentNode.removeChild(n);e.child=void 0}function ad(e,t){let r=e;r.__untilState&&!Qt(t)&&(r.__untilState.aborted=!0,r.__untilState=void 0),r.__guardDeps!==void 0&&!Jt(t)&&(r.__guardDeps=void 0),r.__cacheMap&&!Zt(t)&&(r.__cacheMap=void 0),r.__keyedKey!==void 0&&!Yt(t)&&(r.__keyedKey=void 0),r.__watchSub&&!er(t)&&kc(r)}function cd(e,t,r){let n=e.marker,o=e,s=o.__cacheMap;s||(s=new Map,o.__cacheMap=s);let i=e.child;if(i&&"strings"in i){let c=i;if(F(t)&&c.strings===t.strings){xt(c,t.values,r);return}let l=document.createDocumentFragment();gi(c.startNode,c.endNode,l,null),s.set(c.strings,{inst:c,holder:l}),e.child=void 0}if(F(t)){let c=t,l=s.get(c.strings);if(l){s.delete(c.strings),e.child&&et(e),gi(l.inst.startNode,l.inst.endNode,n.parentNode,n),xt(l.inst,c.values,r),e.child=l.inst;let u=new Set;for(let f=l.inst.startNode.nextSibling;f&&f!==l.inst.endNode;f=f.nextSibling){if(f.nodeType!==1)continue;let d=f;if(d.matches("slot[data-webjs-light]")){let p=ir(d);p&&u.add(p)}for(let p of d.querySelectorAll("slot[data-webjs-light]")){let g=ir(p);g&&u.add(g)}}for(let f of u)ee(f);return}}Ee(e,t,r)}function ld(e,t,r){let n=e;Z&&(n.__commitOwner=yo(Z));let o=n.__untilState,s=n.__untilArgs,i=(p,g)=>!!(Object.is(p,g)||F(p)&&F(g)&&p.strings===g.strings),c=s&&s.length===t.length&&s.every((p,g)=>i(p,t[g]))&&o?o.highestResolved:1/0;o&&(o.aborted=!0),n.__untilArgs=t.slice();let l={aborted:!1,highestResolved:c};n.__untilState=l;let u=-1,f;for(let p=0;p<t.length;p++){let g=t[p];if(!g||typeof g.then!="function"){u=p,f=g;break}}u!==-1&&u<=l.highestResolved?(Ee(e,f,r),l.highestResolved=u):u===-1&&!n.__untilEverRendered&&Ee(e,"",r),n.__untilEverRendered=!0;let d=Math.min(u===-1?t.length:u,l.highestResolved);for(let p=0;p<d;p++){let g=t[p];!g||typeof g.then!="function"||Promise.resolve(g).then(y=>{if(!l.aborted&&!(p>=l.highestResolved)){try{wi(e,()=>Ee(e,y,r))}catch(m){_i(e,m);return}l.highestResolved=p}},()=>{})}}function _i(e,t){let r;try{r=t instanceof Error?t:new Error(String(t))}catch{r=new Error("render error (unstringifiable thrown value)")}let n=e.__commitOwner;if(n&&typeof n._handleRenderError=="function"){n._handleRenderError(r);return}throw r}function ud(e,t,r){let n=e;if(Z&&(n.__commitOwner=yo(Z)),n.__watchSig===t&&n.__watchSub){let i;n.__watchSub.observe(()=>{i=t.get()}),Ee(e,i,r);return}n.__watchSub&&(n.__watchSub.dispose(),n.__watchSub=void 0),n.__watchSig=t;let o=new xe.subtle.Watcher(()=>{queueMicrotask(()=>{if(n.__watchSub!==o)return;let i;try{o.observe(()=>{i=t.get()}),wi(e,()=>Ee(e,i,r))}catch(a){_i(e,a)}})});n.__watchSub=o;let s;o.observe(()=>{s=t.get()}),Ee(e,s,r)}function kc(e){e.__watchSub&&(e.__watchSub.dispose(),e.__watchSub=void 0,e.__watchSig=void 0)}function fd(e,t,r){let n=e;Z&&(n.__commitOwner=yo(Z));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="append"&&o.iterable===t.iterable)return;et(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"append",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Nc(i,e,t,r)}function dd(e,t,r){let n=e;Z&&(n.__commitOwner=yo(Z));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="replace"&&o.iterable===t.iterable)return;et(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"replace",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Nc(i,e,t,r)}async function Nc(e,t,r,n){let o=t.marker,s=0;for(;!e.aborted;){let i,a;try{if(i=await e.iterator.next(),e.aborted||i.done)break;a=r.mapper?r.mapper(i.value,s):i.value}catch(c){typeof console<"u"&&console.error("[webjs] asyncStream error:",c);return}try{wi(t,()=>{let c=Cc(a,n);Ac(o.parentNode,()=>{if(e.mode==="replace"){for(let u of e.nodes)u.parentNode&&u.parentNode.removeChild(u);e.nodes=[]}let l=document.createDocumentFragment();for(let u of c)l.appendChild(u);o.parentNode?.insertBefore(l,o),e.nodes.push(...c)})})}catch(c){e.aborted=!0;try{e.iterator.return?.()?.catch?.(()=>{})}catch{}_i(t,c);return}s++}}function Cc(e,t){if(J(e)&&(e=e.value),e==null||e===T||e===B)return[];if(F(e)){let r=e,{templateEl:n,parts:o,formActions:s}=nr(r),i=n.content.cloneNode(!0),a=o.map(c=>Qr(c,i));for(let c=0;c<r.values.length;c++)fe(a[c],r.values[c],void 0,r.values,t);t&&t(s,a,r.values);for(let c of a)c.kind==="slot"&&fe(c,void 0,void 0,[],t);return[...i.childNodes]}if(Array.isArray(e)){let r=[];for(let n of e)r.push(...Cc(n,t));return r}return[document.createTextNode(String(e))]}function Rc(e){e.aborted=!0;for(let t of e.nodes)t.parentNode&&t.parentNode.removeChild(t);e.nodes=[];try{e.iterator.return?.()?.catch?.(()=>{})}catch{}}function Et(e,t,r={}){if(e===B)return;let n=t,o=n[D];n[D]=!0;let s=ve;bi(r.host);let i=Z;yi(t);try{let a=n[Yr];if(F(e)){let c=e;if(a&&a.strings===c.strings){xt(a,c.values,So);return}a&&Lc(a,t);let l=t.firstChild,u=!!l&&l.nodeType===8&&l.data==="webjs-hydrate";u&&l.remove(),n[Yr]=null;let f=md(c,t,u);n[Yr]=f;return}if(a&&Lc(a,t),n[Yr]=null,t.replaceChildren(),e==null||e===T)return;if(Array.isArray(e)){for(let c of e){let l=document.createTextNode(String(c??""));t.appendChild(l)}return}t.appendChild(document.createTextNode(String(e)))}finally{yi(i),bi(s),n[D]=o,o||no(n)}}function So(e,t,r){if(e)for(let n of[!0,!1])for(let o of e){if(o.isForm!==n)continue;let s=o.actionIdxs[0],i=o.isForm?"action":"formaction";for(let l of o.actionIdxs)if(Kt(vt(r[l]),i,o.tag)){s=l;break}let a=t[s];if(!a||!a.el)continue;let c=vt(r[s]);if(o.isForm)Ua(a.el,c,wo(o.methodParts,o.staticMethod,r),wo(o.enctypeParts,o.staticEnctype,r),o);else{let l=u=>u.some(f=>f.kind==="bool"?!!vt(r[f.i]):f.kind==="attr"?ht("name",vt(r[f.i]))!==null:!0);hd(a.el,c,o,l(o.nameParts),l(o.valueParts),wo(o.methodParts,o.staticMethod,r),wo(o.enctypeParts,o.staticEnctype,r))}}}function pd(e){(lo.has(e)||e.getAttribute("name")===M)&&(e.getAttribute("name")===M&&e.removeAttribute("name"),e.removeAttribute("value"),lo.delete(e))}function hd(e,t,r,n,o,s,i){let a=typeof t=="function"?Xn(t):null;if(!a){typeof t=="function"&&zt(null,e.localName),pd(e),Va(e,s,i,r.propAttrs);return}Pr(r.duplicateAction,e.localName),Cs(r.propAttrs,e.localName),r.staticAction&&Ns(e.localName),(r.authoredValue||o)&&Or(e.localName),(r.authoredName||n)&&Lr(e.getAttribute("name")||M,e.localName,!1),(r.authoredForm||e.hasAttribute("form"))&&jr(e.localName),ks(e.localName,e.getAttribute("type"));let c=Rs(e.localName,s,i);e.removeAttribute("formaction"),e.setAttribute("name",M),e.setAttribute("value",a),Rr(e,"formmethod",s,c.formMethod),Rr(e,"formenctype",i,c.formEnctype),lo.set(e,a)}function wo(e,t,r){for(let n of e){if(n.kind==="bool")return vt(r[n.i])?"":H;if(n.kind==="attr"){let a=ht("method",vt(r[n.i]));return a===null?H:a}let o=n.statics||[],s=n.group||[],i=o[0]||"";for(let a=0;a<s.length;a++)i+=String(vt(r[s[a]])??""),i+=o[a+1]||"";return i}return t??H}function vt(e){return J(e)?e.value:e}function md(e,t,r=!1){let{templateEl:n,parts:o,formActions:s}=nr(e),i=n.content.cloneNode(!0),a=document.createComment(`${P}s`),c=document.createComment(`${P}e`),l=o.map(p=>Qr(p,i)),u=r?pc(t,i,l):null;u&&hc(u,l);let f=[];for(let p=0;p<e.values.length;p++)fe(l[p],e.values[p],void 0,e.values,So),f.push(e.values[p]);So(s,l,e.values),u?mc(u,t,[a,...i.childNodes,c]):t.replaceChildren(a,...i.childNodes,c);let d=t.nodeType===1&&t[x]?t:null;for(let p of l)p.kind==="slot"&&(d&&p.slotEl&&(p.slotEl[gt]=d),fe(p,void 0,void 0,[],So));return{strings:e.strings,bound:l,lastValues:f,startNode:a,endNode:c}}function Lc(e,t){for(let r of e.bound){if(r.kind==="event"&&r.el.removeEventListener(r.name,r.dispatcher,r.handler),r.kind==="element"){let n=r.lastTarget;if(n){if(typeof n=="function")try{n(void 0)}catch{}else if(typeof n=="object")try{n.value=void 0}catch{}r.lastTarget=void 0,r.__lastEl=void 0}}if(r.kind==="slot"){let n=ir(r.slotEl);n&&ii(n,r.slotEl)}}t.replaceChildren()}function Ai(e){return!!e&&e.state!==!0&&e.attribute!==!1}function _o(e,t){if(e.converter&&e.converter.fromAttribute)return e.converter.fromAttribute(t,e.type);if(e.type===Number)return t==null?null:Number(t);if(e.type===Boolean)return t!=null&&t!=="false";if(e.type===Object||e.type===Array){if(t==null)return null;try{return JSON.parse(t)}catch{return null}}return t}function gd(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Ao(e,t){let r;for(let{propName:n,def:o,primary:s,alias:i}of Ic(e)){if(s===t)return{propName:n,def:o};r===void 0&&i===t&&(r={propName:n,def:o})}return r}function Pc(e){let t=new Set,r=Ic(e);for(let{primary:n}of r)t.add(n);for(let{alias:n}of r)n&&t.add(n);return[...t]}function Ic(e){if(e&&typeof e=="function"){let t=Oc.get(e);if(t)return t;let r=jc(e);return Oc.set(e,r),r}return jc(e)}var Oc=new WeakMap;function jc(e){let t=e&&e.properties||{},r=[];for(let[n,o]of Object.entries(t)){let s=typeof o=="object"&&o!==null?o:{type:o};if(!Ai(s))continue;let i=s.attribute||gd(n),a=n.toLowerCase(),c=!s.attribute&&a!==i?a:void 0;r.push({propName:n,def:s,primary:i,alias:c})}return r}var qc=null;function xo(e){qc=e||null}function xi(){return qc||void 0}je();var Mc=Symbol.for("webjs:registry"),Dc=Symbol.for("webjs:classToTag"),cr=globalThis,Te=cr[Mc]||(cr[Mc]=new Map),Fc=cr[Dc]||(cr[Dc]=new WeakMap),$c=Symbol.for("webjs:registryVersion"),Bc=cr[$c]||(cr[$c]={v:0}),vo=typeof window<"u"&&typeof customElements<"u";function vi(e,t){if(!e||typeof e!="string"||!e.includes("-"))throw new Error(`customElements.define: tag "${e}" must contain a hyphen (HTML spec)`);let r=t.lazy===!0,n=Te.get(e);n?(n.cls=t,n.lazy=r):(Te.set(e,{cls:t,moduleUrl:null,lazy:r,tag:e}),Bc.v+=1),Fc.set(t,e)}if(vo){let e=customElements.define.bind(customElements);customElements.define=function(t,r,n){customElements.get(t)||e(t,r,n),vi(t,r)}}if(!vo){let e=globalThis;e.customElements||(e.customElements={define(t,r){vi(t,r)},get(t){return Te.get(t)?.cls},upgrade(){},whenDefined(t){let r=Te.get(t);return Promise.resolve(r?.cls)}})}function Hc(e,t){vo?customElements.define(e,t):vi(e,t)}function bd(e,t){if(vo)return;let r=Te.get(e);if(r){r.moduleUrl=t;return}Te.set(e,{cls:null,moduleUrl:t,lazy:!1,tag:e}),Bc.v+=1}function Eo(e){return Te.get(e)?.cls}function yd(e){return Te.get(e)?.moduleUrl||null}function wd(e){return Te.get(e)?.lazy===!0}function Tt(e){return Fc.get(e)}function Sd(){return[...Te.keys()]}Nt();Ze();function jd(){return{states:new Set,shadowRoot:null,form:null,labels:[],role:"",willValidate:!0,validity:{},validationMessage:"",setFormValue(){},setValidity(){},checkValidity(){return!0},reportValidity(){return!0}}}var nn=class{constructor(){this.__ssrAttrs=new Map,this.__internals=null}get attributes(){return[...this.__ssrAttrs].map(([t,r])=>({name:t,value:r}))}getAttribute(t){let r=this.__ssrAttrs.get(String(t).toLowerCase());return r===void 0?null:r}setAttribute(t,r){this.__ssrAttrs.set(String(t).toLowerCase(),String(r))}removeAttribute(t){this.__ssrAttrs.delete(String(t).toLowerCase())}hasAttribute(t){return this.__ssrAttrs.has(String(t).toLowerCase())}toggleAttribute(t,r){let n=String(t).toLowerCase(),o=this.__ssrAttrs.has(n);return(r===void 0?!o:r)?(this.__ssrAttrs.set(n,""),!0):(this.__ssrAttrs.delete(n),!1)}getAttributeNames(){return[...this.__ssrAttrs.keys()]}closest(t){let r=String(t).trim().toLowerCase();if(!/^[a-z][a-z0-9-]*$/.test(r))return null;if(this.__ssrTag===r)return this;let n=this.__ssrAncestors;if(!Array.isArray(n))return null;for(let o=n.length-1;o>=0;o--)if(n[o]&&n[o].__ssrTag===r)return n[o];return null}get dataset(){if(this.__dataset)return this.__dataset;let t=this,r=n=>"data-"+String(n).replace(/[A-Z]/g,o=>"-"+o.toLowerCase());return this.__dataset=new Proxy({},{get(n,o){if(typeof o!="string")return;let s=t.getAttribute(r(o));return s===null?void 0:s},set(n,o,s){return typeof o=="string"&&t.setAttribute(r(o),s),!0},has(n,o){return typeof o=="string"&&t.hasAttribute(r(o))},deleteProperty(n,o){return typeof o=="string"&&t.removeAttribute(r(o)),!0},ownKeys(){return t.getAttributeNames().filter(n=>n.startsWith("data-")).map(n=>n.slice(5).replace(/-([a-z])/g,(o,s)=>s.toUpperCase()))},getOwnPropertyDescriptor(n,o){if(typeof o=="string"&&t.hasAttribute(r(o)))return{enumerable:!0,configurable:!0,value:t.getAttribute(r(o))}}}),this.__dataset}get className(){return this.getAttribute("class")??""}set className(t){this.setAttribute("class",t)}get hidden(){return this.hasAttribute("hidden")}set hidden(t){this.toggleAttribute("hidden",!!t)}get id(){return this.getAttribute("id")??""}set id(t){this.setAttribute("id",t)}get title(){return this.getAttribute("title")??""}set title(t){this.setAttribute("title",t)}get slot(){return this.getAttribute("slot")??""}set slot(t){this.setAttribute("slot",t)}get role(){return this.getAttribute("role")}set role(t){t==null?this.removeAttribute("role"):this.setAttribute("role",t)}get tabIndex(){let t=this.getAttribute("tabindex");return t===null?-1:Number.parseInt(t,10)||0}set tabIndex(t){this.setAttribute("tabindex",String(t))}addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return this.__internals=jd(),this.__internals}},Pd=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];for(let e of Pd){let t="aria-"+e.slice(4).toLowerCase();Object.defineProperty(nn.prototype,e,{configurable:!0,get(){return this.getAttribute(t)},set(r){r==null?this.removeAttribute(t):this.setAttribute(t,String(r))}})}function zc(e,t){return!Object.is(e,t)}function Gc(e){try{return String(e)}catch{return Object.prototype.toString.call(e)}}function Ei(e,t,r){if(typeof console>"u"||!console.warn)return;let n=Tt(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${t}" on <${n}> holds a function (or an array carrying one), which has no HTML attribute representation. Removing "${r}" instead of stringifying it (a stringified function writes its source into the page, so a server action's body would ship to the browser). Pass a string, or drop reflect on this property.`)}function Yc(e,t,r,n){if(typeof console>"u"||!console.warn)return;let o=Tt(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${t}" on <${o}> holds a value JSON.stringify cannot serialize (a cycle, a BigInt, or a throwing toJSON), so it has no HTML attribute representation. Removing "${r}" instead. Detail: ${n}`)}function Jc(e,t={}){return e&&typeof e=="object"&&!("call"in e)&&(t=e,e=void 0),{...e?{type:e}:{},...t}}var Zc=typeof window<"u"&&typeof HTMLElement<"u",Id=Zc?HTMLElement:nn,Qc=Symbol("webjs.factoryProps"),Xc=new WeakSet,qd=Promise.resolve(!0),on=new Set,el=new WeakMap;function Md(e,t){let r=[];for(let[n,o]of Object.entries(t)){let s=typeof o=="object"&&o!==null?o:{type:o};r.push({propName:n,decl:s});let i=s.hasChanged||zc;Object.defineProperty(e.prototype,n,{configurable:!0,enumerable:!0,get(){return this.__propValues[n]},set(a){let c=this.__propValues[n];this.__propValues[n]=a,i(a,c)&&(s.reflect&&(this._connected?this._reflectAttribute(n,a,s):(this.__reflectPending??=new Set).add(n)),this.requestUpdate(n,c))}})}return el.set(e,r),r}var Ct=class e extends Id{static shadow=!1;static hydrate=void 0;static properties={};static styles=null;static register(t){Hc(t,this)}static get observedAttributes(){return Pc(this)}constructor(){super(),this._renderRoot=null,this._scheduled=!1,this._connected=!1,this.__controllers=null,this.__firstRendered=!1,this._changedProperties=new Map,this._updateResolve=null,this._updatePromise=qd,this._isUpdating=!1,this._assertFactoryProperties(),this._initializeProperties()}_assertFactoryProperties(){let t=this.constructor;if(Xc.has(t))return;let r=t;for(;r&&r!==e;){if(Object.hasOwn(r,"properties")&&!Object.hasOwn(r,Qc)){let n=r.name||"a component";throw new Error(`${n}: \`static properties\` is no longer supported. Declare reactive properties via the factory instead: \`class ${n} extends WebComponent({ count: Number })\`. Use the \`prop()\` helper for options (\`prop(Number, { reflect: true })\`) and set defaults in the constructor after \`super()\`. See https://webjs.dev/docs/components.`)}r=Object.getPrototypeOf(r)}Xc.add(t)}_initializeProperties(){let t=this.constructor,r=t.properties;if(!r||typeof r!="object")return;this.__propValues={};let n=el.get(t);n===void 0&&(n=Md(t,r));for(let o=0;o<n.length;o++){let{propName:s,decl:i}=n[o],a;Object.hasOwn(this,s)&&(a=this[s],delete this[s]),a!==void 0?this.__propValues[s]=a:i.default!==void 0&&(this.__propValues[s]=typeof i.default=="function"?i.default():i.default)}}_reflectAttribute(t,r,n){if(!Ai(n))return;let o=n.attribute||Dd(t);if(!this.__reflectingAttribute){this.__reflectingAttribute=!0;try{if(n.converter&&n.converter.toAttribute){let s=n.converter.toAttribute(r,n.type);s==null?this.removeAttribute(o):this.setAttribute(o,s)}else if(typeof r=="function")this.removeAttribute(o),Ei(this,t,o);else if(n.type===Boolean)r?this.setAttribute(o,""):this.removeAttribute(o);else if(r==null)this.removeAttribute(o);else if(n.type===Object||n.type===Array){let s,i=!0;try{s=JSON.stringify(r)}catch(a){i=!1,this.removeAttribute(o),Yc(this,t,o,a&&a.message)}i&&this.setAttribute(o,s)}else eo(r)?(this.removeAttribute(o),Ei(this,t,o)):this.setAttribute(o,String(r))}finally{this.__reflectingAttribute=!1}}}connectedCallback(){if(!Zc)return;if(this.__webjsPropsHydrated||(this.__webjsPropsHydrated=!0,this._hydratePropAttrs()),this.constructor.hydrate==="visible"&&typeof IntersectionObserver<"u"&&!this.__hydrationActivated){this.__hydrationActivated=!1,this.__hydrationObserver=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){this.__hydrationObserver.unobserve(this),this.__hydrationObserver.disconnect(),this.__hydrationObserver=null,this.__hydrationActivated=!0,this._activate();return}},{rootMargin:"200px"}),this.__hydrationObserver.observe(this);return}this._activate()}_hydratePropAttrs(){let t=[],r=this.attributes;for(let n=0;n<r.length;n++){let o=r[n].name;o.startsWith("data-webjs-prop-")&&t.push(o)}for(let n of t){let o=this.getAttribute(n);if(this.removeAttribute(n),o==null)continue;let s=$d(n.slice(16));try{this[s]=Ie(o)}catch(i){console.warn(`[webjs] failed to decode ${n} on <${this.tagName.toLowerCase()}>: ${i&&i.message}`)}}}_activate(){this._connected=!0,this.__accessorsLifted||(this.__accessorsLifted=!0,Fd(this)),this._reflectDeclaredAttributes();let t=this.constructor;if(t.shadow!==!0&&!this.hasAttribute("data-wj-host")&&this.setAttribute("data-wj-host",""),t.shadow===!0){let r=!!this.shadowRoot;this.shadowRoot||this.attachShadow({mode:"open"}),this._renderRoot=this.shadowRoot;let n=t.styles,o=Array.isArray(n)?n:Cr(n)?[n]:[];if(o.length){if(r){let s=this.shadowRoot.querySelector("style");s&&s.remove()}xs(this._renderRoot,o)}}else this._renderRoot=this,t.styles&&console.warn(`[webjs] <${Tt(t)||this.tagName?.toLowerCase()}> has static shadow = false AND static styles. static styles only works with shadow DOM (adoptedStyleSheets). For light DOM, use global CSS or <style> in render().`),bt(this)?Us(this):this.__isHydrating()||this.hasAttribute("data-wj-serialized")||si(this)?(this.removeAttribute("data-wj-serialized"),$(this),qs(this)):Is(this),Js(this),Bs(this);for(let r of this.__controllers||on)r.hostConnected&&r.hostConnected();this._updateResolve===null&&(this._updatePromise=new Promise(r=>{this._updateResolve=r})),this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(r){console.error("[webjs] lifecycle hook threw during initial render:",r)}})}__isHydrating(){let t=this.firstChild,r=t!=null&&t.nodeType===8&&t.data==="webjs-hydrate";return r&&(this.__hydratedAtActivate=!0),r}disconnectedCallback(){this._connected=!1,this.__hydrationObserver&&(this.__hydrationObserver.disconnect(),this.__hydrationObserver=null),Hs(this);for(let t of["__signalWatcher","__postWatcher"]){let r=this;r[t]&&(r[t].dispose(),r[t]=void 0)}for(let t of this.__controllers||on)t.hostDisconnected&&t.hostDisconnected()}attributeChangedCallback(t,r,n){if(this.__reflectingAttribute)return;let o=Ao(this.constructor,t);if(o===void 0)return;let{propName:s,def:i}=o,a=_o(i,n);this[s]!==a&&(this[s]=a,this._connected&&this.requestUpdate())}requestUpdate(t,r){t!==void 0&&!this._changedProperties.has(t)&&this._changedProperties.set(t,r),this._scheduleUpdate()}_scheduleUpdate(){this._updateResolve===null&&(this._updatePromise=new Promise(t=>{this._updateResolve=t})),!this._isUpdating&&(this._scheduled||!this._connected||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(t){console.error("[webjs] lifecycle hook threw during update cycle:",t)}})))}_performRender(){if(!this._renderRoot)return;this.__cycleRendered=!1;let t=this._tracked("__signalWatcher",()=>this._runUpdateCycle());t&&t()}_tracked(t,r){let n=this,o=n[t];o||(o=n[t]=new xe.subtle.Watcher(()=>{!o.__inPhase&&this._connected&&this.requestUpdate()}));let s=t==="__signalWatcher"?xe.subtle.introspectSources(o):null;o.__inPhase=!0;try{return o.observe(r)}finally{o.__inPhase=!1,s&&!this.__cycleRendered&&o.watch(...new Set([...s,...xe.subtle.introspectSources(o)])),this._connected||(o.dispose(),n[t]===o&&(n[t]=void 0))}}_runUpdateCycle(){let t=this._changedProperties;this._isUpdating=!0;let r=!1,n=null;try{if(this.shouldUpdate(t)){this.willUpdate(t);for(let o of this.__controllers||on)o.hostUpdate&&o.hostUpdate();this.__renderToken=(this.__renderToken||0)+1,this.__renderAbort&&this.__renderAbort.abort(),this.__renderAbort=typeof AbortController<"u"?new AbortController:null,this.__cycleRendered=!0;try{let o=this.update(t);o&&typeof o.then=="function"&&(n=o)}catch(o){this._handleRenderError(o)}n||(r=!0)}}catch(o){console.error("[webjs] lifecycle hook threw during update phase:",o)}finally{this._isUpdating=!1,this._changedProperties=new Map}if(n){let o=this.__renderToken;this.__pendingAsyncCommits=(this.__pendingAsyncCommits||0)+1;let s=()=>{this.__pendingAsyncCommits--,o===this.__renderToken&&this._postCommit(t)};n.then(s,i=>{try{o===this.__renderToken&&this._handleRenderError(i instanceof Error?i:new Error(Gc(i)))}finally{s()}});return}if(r)return()=>this._postCommit(t);this.__pendingAsyncCommits||this._resolveUpdate(),!r&&this.__postWatcher&&this.__postWatcher.watch()}_resolveUpdate(){if(this._updateResolve){let t=!this._scheduled;this._updateResolve(t),this._updateResolve=null}}performServerUpdate(){let t=this._changedProperties;this._isUpdating=!0;try{this.willUpdate(t);for(let r of this.__controllers||on)r.hostUpdate&&r.hostUpdate();this._reflectDeclaredAttributes()}finally{this._isUpdating=!1}}_reflectDeclaredAttributes(){let t=this.constructor.properties||{};for(let r of Object.keys(t)){let n=t[r];!n||!n.reflect||this._reflectAttribute(r,this[r],n)}}shouldUpdate(t){return!0}willUpdate(t){}update(t){let r=this.__reflectPending;this.__reflectPending=void 0;for(let s of r||[]){let i=this.constructor.properties[s];this._reflectAttribute(s,this[s],i)}let n,o=xi();xo(this.__renderAbort?this.__renderAbort.signal:null);try{n=this.render()}finally{xo(o||null)}if(n&&typeof n.then=="function")return this._commitAsync(n);xe.subtle.untrack(()=>Et(n,this._renderRoot,{host:this}))}_commitAsync(t){let r=this.__renderToken;if(this.__firstRendered&&this._overridesRenderFallback())try{let n=this.renderFallback();n!==void 0&&xe.subtle.untrack(()=>Et(n,this._renderRoot,{host:this}))}catch(n){console.error("[webjs] renderFallback() threw:",n)}return Promise.resolve(t).then(n=>{if(r===this.__renderToken)try{Et(n,this._renderRoot,{host:this})}catch(o){this._handleRenderError(o instanceof Error?o:new Error(String(o)))}},n=>{r===this.__renderToken&&this._handleRenderError(n instanceof Error?n:new Error(String(n)))})}_overridesRenderFallback(){return this.renderFallback!==sn.prototype.renderFallback}_handleRenderError(t){console.error(`[webjs] render error in <${Tt(this.constructor)||this.tagName?.toLowerCase()}>:`,t);try{let r=this.renderError(t);r!==void 0&&xe.subtle.untrack(()=>Et(r,this._renderRoot,{host:this}))}catch(r){console.error("[webjs] renderError() also threw:",r)}}_postCommit(t){let r=this._updateResolve;this._updateResolve=null;try{this._tracked("__postWatcher",()=>{for(let n of this.__controllers||on)n.hostUpdated?.();this.__firstRendered||(this.__firstRendered=!0,this.firstUpdated(t)),this.updated(t)})}catch(n){console.error("[webjs] lifecycle hook threw during post-commit phase:",n)}finally{r?.(!this._scheduled)}}updated(t){}firstUpdated(t){}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}addController(t){(this.__controllers??=new Set).add(t),this._connected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers&&this.__controllers.delete(t)}render(){return""}renderError(t){}renderFallback(){}};function Dd(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function $d(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function sn(e){return new.target?Reflect.construct(Ct,arguments,new.target):class extends Ct{static properties=e;static[Qc]=!0}}function Fd(e){for(let t of Object.keys(e))for(let r=Object.getPrototypeOf(e);r&&r!==Ct.prototype;r=Object.getPrototypeOf(r)){let n=Object.getOwnPropertyDescriptor(r,t);if(n){if(n.set){let o=e[t];delete e[t],e[t]=o}break}}}Object.setPrototypeOf(sn,Ct);sn.prototype=Ct.prototype;var Ti=null;function Bd(e){Ti=e}function ki(){if(!Ti)return"";try{return Ti()||""}catch{return""}}ze();pt();mt();ze();je();var Og=Symbol.for("webjs.suspense");function Hd(e){return{_$webjsSuspense:!0,fallback:e.fallback,children:e.children}}function Ni(e){return!!e&&typeof e=="object"&&e._$webjsSuspense===!0}Nt();var tl={AElig:198,AMP:38,Aacute:193,Abreve:258,Acirc:194,Acy:1040,Afr:120068,Agrave:192,Alpha:913,Amacr:256,And:10835,Aogon:260,Aopf:120120,ApplyFunction:8289,Aring:197,Ascr:119964,Assign:8788,Atilde:195,Auml:196,Backslash:8726,Barv:10983,Barwed:8966,Bcy:1041,Because:8757,Bernoullis:8492,Beta:914,Bfr:120069,Bopf:120121,Breve:728,Bscr:8492,Bumpeq:8782,CHcy:1063,COPY:169,Cacute:262,Cap:8914,CapitalDifferentialD:8517,Cayleys:8493,Ccaron:268,Ccedil:199,Ccirc:264,Cconint:8752,Cdot:266,Cedilla:184,CenterDot:183,Cfr:8493,Chi:935,CircleDot:8857,CircleMinus:8854,CirclePlus:8853,CircleTimes:8855,ClockwiseContourIntegral:8754,CloseCurlyDoubleQuote:8221,CloseCurlyQuote:8217,Colon:8759,Colone:10868,Congruent:8801,Conint:8751,ContourIntegral:8750,Copf:8450,Coproduct:8720,CounterClockwiseContourIntegral:8755,Cross:10799,Cscr:119966,Cup:8915,CupCap:8781,DD:8517,DDotrahd:10513,DJcy:1026,DScy:1029,DZcy:1039,Dagger:8225,Darr:8609,Dashv:10980,Dcaron:270,Dcy:1044,Del:8711,Delta:916,Dfr:120071,DiacriticalAcute:180,DiacriticalDot:729,DiacriticalDoubleAcute:733,DiacriticalGrave:96,DiacriticalTilde:732,Diamond:8900,DifferentialD:8518,Dopf:120123,Dot:168,DotDot:8412,DotEqual:8784,DoubleContourIntegral:8751,DoubleDot:168,DoubleDownArrow:8659,DoubleLeftArrow:8656,DoubleLeftRightArrow:8660,DoubleLeftTee:10980,DoubleLongLeftArrow:10232,DoubleLongLeftRightArrow:10234,DoubleLongRightArrow:10233,DoubleRightArrow:8658,DoubleRightTee:8872,DoubleUpArrow:8657,DoubleUpDownArrow:8661,DoubleVerticalBar:8741,DownArrow:8595,DownArrowBar:10515,DownArrowUpArrow:8693,DownBreve:785,DownLeftRightVector:10576,DownLeftTeeVector:10590,DownLeftVector:8637,DownLeftVectorBar:10582,DownRightTeeVector:10591,DownRightVector:8641,DownRightVectorBar:10583,DownTee:8868,DownTeeArrow:8615,Downarrow:8659,Dscr:119967,Dstrok:272,ENG:330,ETH:208,Eacute:201,Ecaron:282,Ecirc:202,Ecy:1069,Edot:278,Efr:120072,Egrave:200,Element:8712,Emacr:274,EmptySmallSquare:9723,EmptyVerySmallSquare:9643,Eogon:280,Eopf:120124,Epsilon:917,Equal:10869,EqualTilde:8770,Equilibrium:8652,Escr:8496,Esim:10867,Eta:919,Euml:203,Exists:8707,ExponentialE:8519,Fcy:1060,Ffr:120073,FilledSmallSquare:9724,FilledVerySmallSquare:9642,Fopf:120125,ForAll:8704,Fouriertrf:8497,Fscr:8497,GJcy:1027,GT:62,Gamma:915,Gammad:988,Gbreve:286,Gcedil:290,Gcirc:284,Gcy:1043,Gdot:288,Gfr:120074,Gg:8921,Gopf:120126,GreaterEqual:8805,GreaterEqualLess:8923,GreaterFullEqual:8807,GreaterGreater:10914,GreaterLess:8823,GreaterSlantEqual:10878,GreaterTilde:8819,Gscr:119970,Gt:8811,HARDcy:1066,Hacek:711,Hat:94,Hcirc:292,Hfr:8460,HilbertSpace:8459,Hopf:8461,HorizontalLine:9472,Hscr:8459,Hstrok:294,HumpDownHump:8782,HumpEqual:8783,IEcy:1045,IJlig:306,IOcy:1025,Iacute:205,Icirc:206,Icy:1048,Idot:304,Ifr:8465,Igrave:204,Im:8465,Imacr:298,ImaginaryI:8520,Implies:8658,Int:8748,Integral:8747,Intersection:8898,InvisibleComma:8291,InvisibleTimes:8290,Iogon:302,Iopf:120128,Iota:921,Iscr:8464,Itilde:296,Iukcy:1030,Iuml:207,Jcirc:308,Jcy:1049,Jfr:120077,Jopf:120129,Jscr:119973,Jsercy:1032,Jukcy:1028,KHcy:1061,KJcy:1036,Kappa:922,Kcedil:310,Kcy:1050,Kfr:120078,Kopf:120130,Kscr:119974,LJcy:1033,LT:60,Lacute:313,Lambda:923,Lang:10218,Laplacetrf:8466,Larr:8606,Lcaron:317,Lcedil:315,Lcy:1051,LeftAngleBracket:10216,LeftArrow:8592,LeftArrowBar:8676,LeftArrowRightArrow:8646,LeftCeiling:8968,LeftDoubleBracket:10214,LeftDownTeeVector:10593,LeftDownVector:8643,LeftDownVectorBar:10585,LeftFloor:8970,LeftRightArrow:8596,LeftRightVector:10574,LeftTee:8867,LeftTeeArrow:8612,LeftTeeVector:10586,LeftTriangle:8882,LeftTriangleBar:10703,LeftTriangleEqual:8884,LeftUpDownVector:10577,LeftUpTeeVector:10592,LeftUpVector:8639,LeftUpVectorBar:10584,LeftVector:8636,LeftVectorBar:10578,Leftarrow:8656,Leftrightarrow:8660,LessEqualGreater:8922,LessFullEqual:8806,LessGreater:8822,LessLess:10913,LessSlantEqual:10877,LessTilde:8818,Lfr:120079,Ll:8920,Lleftarrow:8666,Lmidot:319,LongLeftArrow:10229,LongLeftRightArrow:10231,LongRightArrow:10230,Longleftarrow:10232,Longleftrightarrow:10234,Longrightarrow:10233,Lopf:120131,LowerLeftArrow:8601,LowerRightArrow:8600,Lscr:8466,Lsh:8624,Lstrok:321,Lt:8810,Map:10501,Mcy:1052,MediumSpace:8287,Mellintrf:8499,Mfr:120080,MinusPlus:8723,Mopf:120132,Mscr:8499,Mu:924,NJcy:1034,Nacute:323,Ncaron:327,Ncedil:325,Ncy:1053,NegativeMediumSpace:8203,NegativeThickSpace:8203,NegativeThinSpace:8203,NegativeVeryThinSpace:8203,NestedGreaterGreater:8811,NestedLessLess:8810,NewLine:10,Nfr:120081,NoBreak:8288,NonBreakingSpace:160,Nopf:8469,Not:10988,NotCongruent:8802,NotCupCap:8813,NotDoubleVerticalBar:8742,NotElement:8713,NotEqual:8800,NotEqualTilde:[8770,824],NotExists:8708,NotGreater:8815,NotGreaterEqual:8817,NotGreaterFullEqual:[8807,824],NotGreaterGreater:[8811,824],NotGreaterLess:8825,NotGreaterSlantEqual:[10878,824],NotGreaterTilde:8821,NotHumpDownHump:[8782,824],NotHumpEqual:[8783,824],NotLeftTriangle:8938,NotLeftTriangleBar:[10703,824],NotLeftTriangleEqual:8940,NotLess:8814,NotLessEqual:8816,NotLessGreater:8824,NotLessLess:[8810,824],NotLessSlantEqual:[10877,824],NotLessTilde:8820,NotNestedGreaterGreater:[10914,824],NotNestedLessLess:[10913,824],NotPrecedes:8832,NotPrecedesEqual:[10927,824],NotPrecedesSlantEqual:8928,NotReverseElement:8716,NotRightTriangle:8939,NotRightTriangleBar:[10704,824],NotRightTriangleEqual:8941,NotSquareSubset:[8847,824],NotSquareSubsetEqual:8930,NotSquareSuperset:[8848,824],NotSquareSupersetEqual:8931,NotSubset:[8834,8402],NotSubsetEqual:8840,NotSucceeds:8833,NotSucceedsEqual:[10928,824],NotSucceedsSlantEqual:8929,NotSucceedsTilde:[8831,824],NotSuperset:[8835,8402],NotSupersetEqual:8841,NotTilde:8769,NotTildeEqual:8772,NotTildeFullEqual:8775,NotTildeTilde:8777,NotVerticalBar:8740,Nscr:119977,Ntilde:209,Nu:925,OElig:338,Oacute:211,Ocirc:212,Ocy:1054,Odblac:336,Ofr:120082,Ograve:210,Omacr:332,Omega:937,Omicron:927,Oopf:120134,OpenCurlyDoubleQuote:8220,OpenCurlyQuote:8216,Or:10836,Oscr:119978,Oslash:216,Otilde:213,Otimes:10807,Ouml:214,OverBar:8254,OverBrace:9182,OverBracket:9140,OverParenthesis:9180,PartialD:8706,Pcy:1055,Pfr:120083,Phi:934,Pi:928,PlusMinus:177,Poincareplane:8460,Popf:8473,Pr:10939,Precedes:8826,PrecedesEqual:10927,PrecedesSlantEqual:8828,PrecedesTilde:8830,Prime:8243,Product:8719,Proportion:8759,Proportional:8733,Pscr:119979,Psi:936,QUOT:34,Qfr:120084,Qopf:8474,Qscr:119980,RBarr:10512,REG:174,Racute:340,Rang:10219,Rarr:8608,Rarrtl:10518,Rcaron:344,Rcedil:342,Rcy:1056,Re:8476,ReverseElement:8715,ReverseEquilibrium:8651,ReverseUpEquilibrium:10607,Rfr:8476,Rho:929,RightAngleBracket:10217,RightArrow:8594,RightArrowBar:8677,RightArrowLeftArrow:8644,RightCeiling:8969,RightDoubleBracket:10215,RightDownTeeVector:10589,RightDownVector:8642,RightDownVectorBar:10581,RightFloor:8971,RightTee:8866,RightTeeArrow:8614,RightTeeVector:10587,RightTriangle:8883,RightTriangleBar:10704,RightTriangleEqual:8885,RightUpDownVector:10575,RightUpTeeVector:10588,RightUpVector:8638,RightUpVectorBar:10580,RightVector:8640,RightVectorBar:10579,Rightarrow:8658,Ropf:8477,RoundImplies:10608,Rrightarrow:8667,Rscr:8475,Rsh:8625,RuleDelayed:10740,SHCHcy:1065,SHcy:1064,SOFTcy:1068,Sacute:346,Sc:10940,Scaron:352,Scedil:350,Scirc:348,Scy:1057,Sfr:120086,ShortDownArrow:8595,ShortLeftArrow:8592,ShortRightArrow:8594,ShortUpArrow:8593,Sigma:931,SmallCircle:8728,Sopf:120138,Sqrt:8730,Square:9633,SquareIntersection:8851,SquareSubset:8847,SquareSubsetEqual:8849,SquareSuperset:8848,SquareSupersetEqual:8850,SquareUnion:8852,Sscr:119982,Star:8902,Sub:8912,Subset:8912,SubsetEqual:8838,Succeeds:8827,SucceedsEqual:10928,SucceedsSlantEqual:8829,SucceedsTilde:8831,SuchThat:8715,Sum:8721,Sup:8913,Superset:8835,SupersetEqual:8839,Supset:8913,THORN:222,TRADE:8482,TSHcy:1035,TScy:1062,Tab:9,Tau:932,Tcaron:356,Tcedil:354,Tcy:1058,Tfr:120087,Therefore:8756,Theta:920,ThickSpace:[8287,8202],ThinSpace:8201,Tilde:8764,TildeEqual:8771,TildeFullEqual:8773,TildeTilde:8776,Topf:120139,TripleDot:8411,Tscr:119983,Tstrok:358,Uacute:218,Uarr:8607,Uarrocir:10569,Ubrcy:1038,Ubreve:364,Ucirc:219,Ucy:1059,Udblac:368,Ufr:120088,Ugrave:217,Umacr:362,UnderBar:95,UnderBrace:9183,UnderBracket:9141,UnderParenthesis:9181,Union:8899,UnionPlus:8846,Uogon:370,Uopf:120140,UpArrow:8593,UpArrowBar:10514,UpArrowDownArrow:8645,UpDownArrow:8597,UpEquilibrium:10606,UpTee:8869,UpTeeArrow:8613,Uparrow:8657,Updownarrow:8661,UpperLeftArrow:8598,UpperRightArrow:8599,Upsi:978,Upsilon:933,Uring:366,Uscr:119984,Utilde:360,Uuml:220,VDash:8875,Vbar:10987,Vcy:1042,Vdash:8873,Vdashl:10982,Vee:8897,Verbar:8214,Vert:8214,VerticalBar:8739,VerticalLine:124,VerticalSeparator:10072,VerticalTilde:8768,VeryThinSpace:8202,Vfr:120089,Vopf:120141,Vscr:119985,Vvdash:8874,Wcirc:372,Wedge:8896,Wfr:120090,Wopf:120142,Wscr:119986,Xfr:120091,Xi:926,Xopf:120143,Xscr:119987,YAcy:1071,YIcy:1031,YUcy:1070,Yacute:221,Ycirc:374,Ycy:1067,Yfr:120092,Yopf:120144,Yscr:119988,Yuml:376,ZHcy:1046,Zacute:377,Zcaron:381,Zcy:1047,Zdot:379,ZeroWidthSpace:8203,Zeta:918,Zfr:8488,Zopf:8484,Zscr:119989,aacute:225,abreve:259,ac:8766,acE:[8766,819],acd:8767,acirc:226,acute:180,acy:1072,aelig:230,af:8289,afr:120094,agrave:224,alefsym:8501,aleph:8501,alpha:945,amacr:257,amalg:10815,amp:38,and:8743,andand:10837,andd:10844,andslope:10840,andv:10842,ang:8736,ange:10660,angle:8736,angmsd:8737,angmsdaa:10664,angmsdab:10665,angmsdac:10666,angmsdad:10667,angmsdae:10668,angmsdaf:10669,angmsdag:10670,angmsdah:10671,angrt:8735,angrtvb:8894,angrtvbd:10653,angsph:8738,angst:197,angzarr:9084,aogon:261,aopf:120146,ap:8776,apE:10864,apacir:10863,ape:8778,apid:8779,apos:39,approx:8776,approxeq:8778,aring:229,ascr:119990,ast:42,asymp:8776,asympeq:8781,atilde:227,auml:228,awconint:8755,awint:10769,bNot:10989,backcong:8780,backepsilon:1014,backprime:8245,backsim:8765,backsimeq:8909,barvee:8893,barwed:8965,barwedge:8965,bbrk:9141,bbrktbrk:9142,bcong:8780,bcy:1073,bdquo:8222,becaus:8757,because:8757,bemptyv:10672,bepsi:1014,bernou:8492,beta:946,beth:8502,between:8812,bfr:120095,bigcap:8898,bigcirc:9711,bigcup:8899,bigodot:10752,bigoplus:10753,bigotimes:10754,bigsqcup:10758,bigstar:9733,bigtriangledown:9661,bigtriangleup:9651,biguplus:10756,bigvee:8897,bigwedge:8896,bkarow:10509,blacklozenge:10731,blacksquare:9642,blacktriangle:9652,blacktriangledown:9662,blacktriangleleft:9666,blacktriangleright:9656,blank:9251,blk12:9618,blk14:9617,blk34:9619,block:9608,bne:[61,8421],bnequiv:[8801,8421],bnot:8976,bopf:120147,bot:8869,bottom:8869,bowtie:8904,boxDL:9559,boxDR:9556,boxDl:9558,boxDr:9555,boxH:9552,boxHD:9574,boxHU:9577,boxHd:9572,boxHu:9575,boxUL:9565,boxUR:9562,boxUl:9564,boxUr:9561,boxV:9553,boxVH:9580,boxVL:9571,boxVR:9568,boxVh:9579,boxVl:9570,boxVr:9567,boxbox:10697,boxdL:9557,boxdR:9554,boxdl:9488,boxdr:9484,boxh:9472,boxhD:9573,boxhU:9576,boxhd:9516,boxhu:9524,boxminus:8863,boxplus:8862,boxtimes:8864,boxuL:9563,boxuR:9560,boxul:9496,boxur:9492,boxv:9474,boxvH:9578,boxvL:9569,boxvR:9566,boxvh:9532,boxvl:9508,boxvr:9500,bprime:8245,breve:728,brvbar:166,bscr:119991,bsemi:8271,bsim:8765,bsime:8909,bsol:92,bsolb:10693,bsolhsub:10184,bull:8226,bullet:8226,bump:8782,bumpE:10926,bumpe:8783,bumpeq:8783,cacute:263,cap:8745,capand:10820,capbrcup:10825,capcap:10827,capcup:10823,capdot:10816,caps:[8745,65024],caret:8257,caron:711,ccaps:10829,ccaron:269,ccedil:231,ccirc:265,ccups:10828,ccupssm:10832,cdot:267,cedil:184,cemptyv:10674,cent:162,centerdot:183,cfr:120096,chcy:1095,check:10003,checkmark:10003,chi:967,cir:9675,cirE:10691,circ:710,circeq:8791,circlearrowleft:8634,circlearrowright:8635,circledR:174,circledS:9416,circledast:8859,circledcirc:8858,circleddash:8861,cire:8791,cirfnint:10768,cirmid:10991,cirscir:10690,clubs:9827,clubsuit:9827,colon:58,colone:8788,coloneq:8788,comma:44,commat:64,comp:8705,compfn:8728,complement:8705,complexes:8450,cong:8773,congdot:10861,conint:8750,copf:120148,coprod:8720,copy:169,copysr:8471,crarr:8629,cross:10007,cscr:119992,csub:10959,csube:10961,csup:10960,csupe:10962,ctdot:8943,cudarrl:10552,cudarrr:10549,cuepr:8926,cuesc:8927,cularr:8630,cularrp:10557,cup:8746,cupbrcap:10824,cupcap:10822,cupcup:10826,cupdot:8845,cupor:10821,cups:[8746,65024],curarr:8631,curarrm:10556,curlyeqprec:8926,curlyeqsucc:8927,curlyvee:8910,curlywedge:8911,curren:164,curvearrowleft:8630,curvearrowright:8631,cuvee:8910,cuwed:8911,cwconint:8754,cwint:8753,cylcty:9005,dArr:8659,dHar:10597,dagger:8224,daleth:8504,darr:8595,dash:8208,dashv:8867,dbkarow:10511,dblac:733,dcaron:271,dcy:1076,dd:8518,ddagger:8225,ddarr:8650,ddotseq:10871,deg:176,delta:948,demptyv:10673,dfisht:10623,dfr:120097,dharl:8643,dharr:8642,diam:8900,diamond:8900,diamondsuit:9830,diams:9830,die:168,digamma:989,disin:8946,div:247,divide:247,divideontimes:8903,divonx:8903,djcy:1106,dlcorn:8990,dlcrop:8973,dollar:36,dopf:120149,dot:729,doteq:8784,doteqdot:8785,dotminus:8760,dotplus:8724,dotsquare:8865,doublebarwedge:8966,downarrow:8595,downdownarrows:8650,downharpoonleft:8643,downharpoonright:8642,drbkarow:10512,drcorn:8991,drcrop:8972,dscr:119993,dscy:1109,dsol:10742,dstrok:273,dtdot:8945,dtri:9663,dtrif:9662,duarr:8693,duhar:10607,dwangle:10662,dzcy:1119,dzigrarr:10239,eDDot:10871,eDot:8785,eacute:233,easter:10862,ecaron:283,ecir:8790,ecirc:234,ecolon:8789,ecy:1101,edot:279,ee:8519,efDot:8786,efr:120098,eg:10906,egrave:232,egs:10902,egsdot:10904,el:10905,elinters:9191,ell:8467,els:10901,elsdot:10903,emacr:275,empty:8709,emptyset:8709,emptyv:8709,emsp:8195,emsp13:8196,emsp14:8197,eng:331,ensp:8194,eogon:281,eopf:120150,epar:8917,eparsl:10723,eplus:10865,epsi:949,epsilon:949,epsiv:1013,eqcirc:8790,eqcolon:8789,eqsim:8770,eqslantgtr:10902,eqslantless:10901,equals:61,equest:8799,equiv:8801,equivDD:10872,eqvparsl:10725,erDot:8787,erarr:10609,escr:8495,esdot:8784,esim:8770,eta:951,eth:240,euml:235,euro:8364,excl:33,exist:8707,expectation:8496,exponentiale:8519,fallingdotseq:8786,fcy:1092,female:9792,ffilig:64259,fflig:64256,ffllig:64260,ffr:120099,filig:64257,fjlig:[102,106],flat:9837,fllig:64258,fltns:9649,fnof:402,fopf:120151,forall:8704,fork:8916,forkv:10969,fpartint:10765,frac12:189,frac13:8531,frac14:188,frac15:8533,frac16:8537,frac18:8539,frac23:8532,frac25:8534,frac34:190,frac35:8535,frac38:8540,frac45:8536,frac56:8538,frac58:8541,frac78:8542,frasl:8260,frown:8994,fscr:119995,gE:8807,gEl:10892,gacute:501,gamma:947,gammad:989,gap:10886,gbreve:287,gcirc:285,gcy:1075,gdot:289,ge:8805,gel:8923,geq:8805,geqq:8807,geqslant:10878,ges:10878,gescc:10921,gesdot:10880,gesdoto:10882,gesdotol:10884,gesl:[8923,65024],gesles:10900,gfr:120100,gg:8811,ggg:8921,gimel:8503,gjcy:1107,gl:8823,glE:10898,gla:10917,glj:10916,gnE:8809,gnap:10890,gnapprox:10890,gne:10888,gneq:10888,gneqq:8809,gnsim:8935,gopf:120152,grave:96,gscr:8458,gsim:8819,gsime:10894,gsiml:10896,gt:62,gtcc:10919,gtcir:10874,gtdot:8919,gtlPar:10645,gtquest:10876,gtrapprox:10886,gtrarr:10616,gtrdot:8919,gtreqless:8923,gtreqqless:10892,gtrless:8823,gtrsim:8819,gvertneqq:[8809,65024],gvnE:[8809,65024],hArr:8660,hairsp:8202,half:189,hamilt:8459,hardcy:1098,harr:8596,harrcir:10568,harrw:8621,hbar:8463,hcirc:293,hearts:9829,heartsuit:9829,hellip:8230,hercon:8889,hfr:120101,hksearow:10533,hkswarow:10534,hoarr:8703,homtht:8763,hookleftarrow:8617,hookrightarrow:8618,hopf:120153,horbar:8213,hscr:119997,hslash:8463,hstrok:295,hybull:8259,hyphen:8208,iacute:237,ic:8291,icirc:238,icy:1080,iecy:1077,iexcl:161,iff:8660,ifr:120102,igrave:236,ii:8520,iiiint:10764,iiint:8749,iinfin:10716,iiota:8489,ijlig:307,imacr:299,image:8465,imagline:8464,imagpart:8465,imath:305,imof:8887,imped:437,in:8712,incare:8453,infin:8734,infintie:10717,inodot:305,int:8747,intcal:8890,integers:8484,intercal:8890,intlarhk:10775,intprod:10812,iocy:1105,iogon:303,iopf:120154,iota:953,iprod:10812,iquest:191,iscr:119998,isin:8712,isinE:8953,isindot:8949,isins:8948,isinsv:8947,isinv:8712,it:8290,itilde:297,iukcy:1110,iuml:239,jcirc:309,jcy:1081,jfr:120103,jmath:567,jopf:120155,jscr:119999,jsercy:1112,jukcy:1108,kappa:954,kappav:1008,kcedil:311,kcy:1082,kfr:120104,kgreen:312,khcy:1093,kjcy:1116,kopf:120156,kscr:12e4,lAarr:8666,lArr:8656,lAtail:10523,lBarr:10510,lE:8806,lEg:10891,lHar:10594,lacute:314,laemptyv:10676,lagran:8466,lambda:955,lang:10216,langd:10641,langle:10216,lap:10885,laquo:171,larr:8592,larrb:8676,larrbfs:10527,larrfs:10525,larrhk:8617,larrlp:8619,larrpl:10553,larrsim:10611,larrtl:8610,lat:10923,latail:10521,late:10925,lates:[10925,65024],lbarr:10508,lbbrk:10098,lbrace:123,lbrack:91,lbrke:10635,lbrksld:10639,lbrkslu:10637,lcaron:318,lcedil:316,lceil:8968,lcub:123,lcy:1083,ldca:10550,ldquo:8220,ldquor:8222,ldrdhar:10599,ldrushar:10571,ldsh:8626,le:8804,leftarrow:8592,leftarrowtail:8610,leftharpoondown:8637,leftharpoonup:8636,leftleftarrows:8647,leftrightarrow:8596,leftrightarrows:8646,leftrightharpoons:8651,leftrightsquigarrow:8621,leftthreetimes:8907,leg:8922,leq:8804,leqq:8806,leqslant:10877,les:10877,lescc:10920,lesdot:10879,lesdoto:10881,lesdotor:10883,lesg:[8922,65024],lesges:10899,lessapprox:10885,lessdot:8918,lesseqgtr:8922,lesseqqgtr:10891,lessgtr:8822,lesssim:8818,lfisht:10620,lfloor:8970,lfr:120105,lg:8822,lgE:10897,lhard:8637,lharu:8636,lharul:10602,lhblk:9604,ljcy:1113,ll:8810,llarr:8647,llcorner:8990,llhard:10603,lltri:9722,lmidot:320,lmoust:9136,lmoustache:9136,lnE:8808,lnap:10889,lnapprox:10889,lne:10887,lneq:10887,lneqq:8808,lnsim:8934,loang:10220,loarr:8701,lobrk:10214,longleftarrow:10229,longleftrightarrow:10231,longmapsto:10236,longrightarrow:10230,looparrowleft:8619,looparrowright:8620,lopar:10629,lopf:120157,loplus:10797,lotimes:10804,lowast:8727,lowbar:95,loz:9674,lozenge:9674,lozf:10731,lpar:40,lparlt:10643,lrarr:8646,lrcorner:8991,lrhar:8651,lrhard:10605,lrm:8206,lrtri:8895,lsaquo:8249,lscr:120001,lsh:8624,lsim:8818,lsime:10893,lsimg:10895,lsqb:91,lsquo:8216,lsquor:8218,lstrok:322,lt:60,ltcc:10918,ltcir:10873,ltdot:8918,lthree:8907,ltimes:8905,ltlarr:10614,ltquest:10875,ltrPar:10646,ltri:9667,ltrie:8884,ltrif:9666,lurdshar:10570,luruhar:10598,lvertneqq:[8808,65024],lvnE:[8808,65024],mDDot:8762,macr:175,male:9794,malt:10016,maltese:10016,map:8614,mapsto:8614,mapstodown:8615,mapstoleft:8612,mapstoup:8613,marker:9646,mcomma:10793,mcy:1084,mdash:8212,measuredangle:8737,mfr:120106,mho:8487,micro:181,mid:8739,midast:42,midcir:10992,middot:183,minus:8722,minusb:8863,minusd:8760,minusdu:10794,mlcp:10971,mldr:8230,mnplus:8723,models:8871,mopf:120158,mp:8723,mscr:120002,mstpos:8766,mu:956,multimap:8888,mumap:8888,nGg:[8921,824],nGt:[8811,8402],nGtv:[8811,824],nLeftarrow:8653,nLeftrightarrow:8654,nLl:[8920,824],nLt:[8810,8402],nLtv:[8810,824],nRightarrow:8655,nVDash:8879,nVdash:8878,nabla:8711,nacute:324,nang:[8736,8402],nap:8777,napE:[10864,824],napid:[8779,824],napos:329,napprox:8777,natur:9838,natural:9838,naturals:8469,nbsp:160,nbump:[8782,824],nbumpe:[8783,824],ncap:10819,ncaron:328,ncedil:326,ncong:8775,ncongdot:[10861,824],ncup:10818,ncy:1085,ndash:8211,ne:8800,neArr:8663,nearhk:10532,nearr:8599,nearrow:8599,nedot:[8784,824],nequiv:8802,nesear:10536,nesim:[8770,824],nexist:8708,nexists:8708,nfr:120107,ngE:[8807,824],nge:8817,ngeq:8817,ngeqq:[8807,824],ngeqslant:[10878,824],nges:[10878,824],ngsim:8821,ngt:8815,ngtr:8815,nhArr:8654,nharr:8622,nhpar:10994,ni:8715,nis:8956,nisd:8954,niv:8715,njcy:1114,nlArr:8653,nlE:[8806,824],nlarr:8602,nldr:8229,nle:8816,nleftarrow:8602,nleftrightarrow:8622,nleq:8816,nleqq:[8806,824],nleqslant:[10877,824],nles:[10877,824],nless:8814,nlsim:8820,nlt:8814,nltri:8938,nltrie:8940,nmid:8740,nopf:120159,not:172,notin:8713,notinE:[8953,824],notindot:[8949,824],notinva:8713,notinvb:8951,notinvc:8950,notni:8716,notniva:8716,notnivb:8958,notnivc:8957,npar:8742,nparallel:8742,nparsl:[11005,8421],npart:[8706,824],npolint:10772,npr:8832,nprcue:8928,npre:[10927,824],nprec:8832,npreceq:[10927,824],nrArr:8655,nrarr:8603,nrarrc:[10547,824],nrarrw:[8605,824],nrightarrow:8603,nrtri:8939,nrtrie:8941,nsc:8833,nsccue:8929,nsce:[10928,824],nscr:120003,nshortmid:8740,nshortparallel:8742,nsim:8769,nsime:8772,nsimeq:8772,nsmid:8740,nspar:8742,nsqsube:8930,nsqsupe:8931,nsub:8836,nsubE:[10949,824],nsube:8840,nsubset:[8834,8402],nsubseteq:8840,nsubseteqq:[10949,824],nsucc:8833,nsucceq:[10928,824],nsup:8837,nsupE:[10950,824],nsupe:8841,nsupset:[8835,8402],nsupseteq:8841,nsupseteqq:[10950,824],ntgl:8825,ntilde:241,ntlg:8824,ntriangleleft:8938,ntrianglelefteq:8940,ntriangleright:8939,ntrianglerighteq:8941,nu:957,num:35,numero:8470,numsp:8199,nvDash:8877,nvHarr:10500,nvap:[8781,8402],nvdash:8876,nvge:[8805,8402],nvgt:[62,8402],nvinfin:10718,nvlArr:10498,nvle:[8804,8402],nvlt:[60,8402],nvltrie:[8884,8402],nvrArr:10499,nvrtrie:[8885,8402],nvsim:[8764,8402],nwArr:8662,nwarhk:10531,nwarr:8598,nwarrow:8598,nwnear:10535,oS:9416,oacute:243,oast:8859,ocir:8858,ocirc:244,ocy:1086,odash:8861,odblac:337,odiv:10808,odot:8857,odsold:10684,oelig:339,ofcir:10687,ofr:120108,ogon:731,ograve:242,ogt:10689,ohbar:10677,ohm:937,oint:8750,olarr:8634,olcir:10686,olcross:10683,oline:8254,olt:10688,omacr:333,omega:969,omicron:959,omid:10678,ominus:8854,oopf:120160,opar:10679,operp:10681,oplus:8853,or:8744,orarr:8635,ord:10845,order:8500,orderof:8500,ordf:170,ordm:186,origof:8886,oror:10838,orslope:10839,orv:10843,oscr:8500,oslash:248,osol:8856,otilde:245,otimes:8855,otimesas:10806,ouml:246,ovbar:9021,par:8741,para:182,parallel:8741,parsim:10995,parsl:11005,part:8706,pcy:1087,percnt:37,period:46,permil:8240,perp:8869,pertenk:8241,pfr:120109,phi:966,phiv:981,phmmat:8499,phone:9742,pi:960,pitchfork:8916,piv:982,planck:8463,planckh:8462,plankv:8463,plus:43,plusacir:10787,plusb:8862,pluscir:10786,plusdo:8724,plusdu:10789,pluse:10866,plusmn:177,plussim:10790,plustwo:10791,pm:177,pointint:10773,popf:120161,pound:163,pr:8826,prE:10931,prap:10935,prcue:8828,pre:10927,prec:8826,precapprox:10935,preccurlyeq:8828,preceq:10927,precnapprox:10937,precneqq:10933,precnsim:8936,precsim:8830,prime:8242,primes:8473,prnE:10933,prnap:10937,prnsim:8936,prod:8719,profalar:9006,profline:8978,profsurf:8979,prop:8733,propto:8733,prsim:8830,prurel:8880,pscr:120005,psi:968,puncsp:8200,qfr:120110,qint:10764,qopf:120162,qprime:8279,qscr:120006,quaternions:8461,quatint:10774,quest:63,questeq:8799,quot:34,rAarr:8667,rArr:8658,rAtail:10524,rBarr:10511,rHar:10596,race:[8765,817],racute:341,radic:8730,raemptyv:10675,rang:10217,rangd:10642,range:10661,rangle:10217,raquo:187,rarr:8594,rarrap:10613,rarrb:8677,rarrbfs:10528,rarrc:10547,rarrfs:10526,rarrhk:8618,rarrlp:8620,rarrpl:10565,rarrsim:10612,rarrtl:8611,rarrw:8605,ratail:10522,ratio:8758,rationals:8474,rbarr:10509,rbbrk:10099,rbrace:125,rbrack:93,rbrke:10636,rbrksld:10638,rbrkslu:10640,rcaron:345,rcedil:343,rceil:8969,rcub:125,rcy:1088,rdca:10551,rdldhar:10601,rdquo:8221,rdquor:8221,rdsh:8627,real:8476,realine:8475,realpart:8476,reals:8477,rect:9645,reg:174,rfisht:10621,rfloor:8971,rfr:120111,rhard:8641,rharu:8640,rharul:10604,rho:961,rhov:1009,rightarrow:8594,rightarrowtail:8611,rightharpoondown:8641,rightharpoonup:8640,rightleftarrows:8644,rightleftharpoons:8652,rightrightarrows:8649,rightsquigarrow:8605,rightthreetimes:8908,ring:730,risingdotseq:8787,rlarr:8644,rlhar:8652,rlm:8207,rmoust:9137,rmoustache:9137,rnmid:10990,roang:10221,roarr:8702,robrk:10215,ropar:10630,ropf:120163,roplus:10798,rotimes:10805,rpar:41,rpargt:10644,rppolint:10770,rrarr:8649,rsaquo:8250,rscr:120007,rsh:8625,rsqb:93,rsquo:8217,rsquor:8217,rthree:8908,rtimes:8906,rtri:9657,rtrie:8885,rtrif:9656,rtriltri:10702,ruluhar:10600,rx:8478,sacute:347,sbquo:8218,sc:8827,scE:10932,scap:10936,scaron:353,sccue:8829,sce:10928,scedil:351,scirc:349,scnE:10934,scnap:10938,scnsim:8937,scpolint:10771,scsim:8831,scy:1089,sdot:8901,sdotb:8865,sdote:10854,seArr:8664,searhk:10533,searr:8600,searrow:8600,sect:167,semi:59,seswar:10537,setminus:8726,setmn:8726,sext:10038,sfr:120112,sfrown:8994,sharp:9839,shchcy:1097,shcy:1096,shortmid:8739,shortparallel:8741,shy:173,sigma:963,sigmaf:962,sigmav:962,sim:8764,simdot:10858,sime:8771,simeq:8771,simg:10910,simgE:10912,siml:10909,simlE:10911,simne:8774,simplus:10788,simrarr:10610,slarr:8592,smallsetminus:8726,smashp:10803,smeparsl:10724,smid:8739,smile:8995,smt:10922,smte:10924,smtes:[10924,65024],softcy:1100,sol:47,solb:10692,solbar:9023,sopf:120164,spades:9824,spadesuit:9824,spar:8741,sqcap:8851,sqcaps:[8851,65024],sqcup:8852,sqcups:[8852,65024],sqsub:8847,sqsube:8849,sqsubset:8847,sqsubseteq:8849,sqsup:8848,sqsupe:8850,sqsupset:8848,sqsupseteq:8850,squ:9633,square:9633,squarf:9642,squf:9642,srarr:8594,sscr:120008,ssetmn:8726,ssmile:8995,sstarf:8902,star:9734,starf:9733,straightepsilon:1013,straightphi:981,strns:175,sub:8834,subE:10949,subdot:10941,sube:8838,subedot:10947,submult:10945,subnE:10955,subne:8842,subplus:10943,subrarr:10617,subset:8834,subseteq:8838,subseteqq:10949,subsetneq:8842,subsetneqq:10955,subsim:10951,subsub:10965,subsup:10963,succ:8827,succapprox:10936,succcurlyeq:8829,succeq:10928,succnapprox:10938,succneqq:10934,succnsim:8937,succsim:8831,sum:8721,sung:9834,sup:8835,sup1:185,sup2:178,sup3:179,supE:10950,supdot:10942,supdsub:10968,supe:8839,supedot:10948,suphsol:10185,suphsub:10967,suplarr:10619,supmult:10946,supnE:10956,supne:8843,supplus:10944,supset:8835,supseteq:8839,supseteqq:10950,supsetneq:8843,supsetneqq:10956,supsim:10952,supsub:10964,supsup:10966,swArr:8665,swarhk:10534,swarr:8601,swarrow:8601,swnwar:10538,szlig:223,target:8982,tau:964,tbrk:9140,tcaron:357,tcedil:355,tcy:1090,tdot:8411,telrec:8981,tfr:120113,there4:8756,therefore:8756,theta:952,thetasym:977,thetav:977,thickapprox:8776,thicksim:8764,thinsp:8201,thkap:8776,thksim:8764,thorn:254,tilde:732,times:215,timesb:8864,timesbar:10801,timesd:10800,tint:8749,toea:10536,top:8868,topbot:9014,topcir:10993,topf:120165,topfork:10970,tosa:10537,tprime:8244,trade:8482,triangle:9653,triangledown:9663,triangleleft:9667,trianglelefteq:8884,triangleq:8796,triangleright:9657,trianglerighteq:8885,tridot:9708,trie:8796,triminus:10810,triplus:10809,trisb:10701,tritime:10811,trpezium:9186,tscr:120009,tscy:1094,tshcy:1115,tstrok:359,twixt:8812,twoheadleftarrow:8606,twoheadrightarrow:8608,uArr:8657,uHar:10595,uacute:250,uarr:8593,ubrcy:1118,ubreve:365,ucirc:251,ucy:1091,udarr:8645,udblac:369,udhar:10606,ufisht:10622,ufr:120114,ugrave:249,uharl:8639,uharr:8638,uhblk:9600,ulcorn:8988,ulcorner:8988,ulcrop:8975,ultri:9720,umacr:363,uml:168,uogon:371,uopf:120166,uparrow:8593,updownarrow:8597,upharpoonleft:8639,upharpoonright:8638,uplus:8846,upsi:965,upsih:978,upsilon:965,upuparrows:8648,urcorn:8989,urcorner:8989,urcrop:8974,uring:367,urtri:9721,uscr:120010,utdot:8944,utilde:361,utri:9653,utrif:9652,uuarr:8648,uuml:252,uwangle:10663,vArr:8661,vBar:10984,vBarv:10985,vDash:8872,vangrt:10652,varepsilon:1013,varkappa:1008,varnothing:8709,varphi:981,varpi:982,varpropto:8733,varr:8597,varrho:1009,varsigma:962,varsubsetneq:[8842,65024],varsubsetneqq:[10955,65024],varsupsetneq:[8843,65024],varsupsetneqq:[10956,65024],vartheta:977,vartriangleleft:8882,vartriangleright:8883,vcy:1074,vdash:8866,vee:8744,veebar:8891,veeeq:8794,vellip:8942,verbar:124,vert:124,vfr:120115,vltri:8882,vnsub:[8834,8402],vnsup:[8835,8402],vopf:120167,vprop:8733,vrtri:8883,vscr:120011,vsubnE:[10955,65024],vsubne:[8842,65024],vsupnE:[10956,65024],vsupne:[8843,65024],vzigzag:10650,wcirc:373,wedbar:10847,wedge:8743,wedgeq:8793,weierp:8472,wfr:120116,wopf:120168,wp:8472,wr:8768,wreath:8768,wscr:120012,xcap:8898,xcirc:9711,xcup:8899,xdtri:9661,xfr:120117,xhArr:10234,xharr:10231,xi:958,xlArr:10232,xlarr:10229,xmap:10236,xnis:8955,xodot:10752,xopf:120169,xoplus:10753,xotime:10754,xrArr:10233,xrarr:10230,xscr:120013,xsqcup:10758,xuplus:10756,xutri:9651,xvee:8897,xwedge:8896,yacute:253,yacy:1103,ycirc:375,ycy:1099,yen:165,yfr:120118,yicy:1111,yopf:120170,yscr:120014,yucy:1102,yuml:255,zacute:378,zcaron:382,zcy:1079,zdot:380,zeetrf:8488,zeta:950,zfr:120119,zhcy:1078,zigrarr:8669,zopf:120171,zscr:120015,zwj:8205,zwnj:8204},rl=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];function al(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function cl(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var nl={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},Ud=/&(?:#(\d+);?|#[xX]([0-9a-fA-F]+);?|([a-zA-Z][a-zA-Z0-9]*)(;?))/g,ol=new Map(Object.entries(tl)),Vd=new Set(rl);function rt(e){return e.indexOf("&")===-1?e:e.replace(Ud,(t,r,n,o,s,i)=>r!==void 0?il(parseInt(r,10)):n!==void 0?il(parseInt(n,16)):Wd(t,o,s===";",e[i+t.length]))}function Wd(e,t,r,n){if(r){let o=ol.get(t);return o===void 0?e:sl(o)}return!Vd.has(t)||n==="="?e:sl(ol.get(t))}function sl(e){return typeof e=="number"?String.fromCodePoint(e):String.fromCodePoint(...e)}function il(e){return e===0||e>1114111||e>=55296&&e<=57343?"\uFFFD":nl[e]!==void 0?String.fromCodePoint(nl[e]):String.fromCodePoint(e)}var Kd=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function an(e){return Kd.has(e.toLowerCase())}function Ci(e){return e==="script"||e==="style"}function zd(e){return e==="textarea"||e==="title"}function To(e){return Ci(e)||zd(e)||e==="iframe"||e==="xmp"||e==="noembed"||e==="noframes"||e==="plaintext"}mt();var Co=0,Ri=1,Li=2,Oi=3,ke=4,ji=0,ko=1,No=2,Pi=3,Gd=4,ll=new WeakMap,Yd=0;function dl(e){let t=ll.get(e);return t===void 0&&(t=pl(e),ll.set(e,t)),t}function Ro(e){return pl([e])}var Rt=/\s/,ul=/[a-zA-Z]/,fl=/[\s/>]/,Jd=/^\?$/,Xd=new Set(["tag-name","in-tag","attr-name","after-name","after-eq","attr-quoted","attr-unquoted"]);function pl(e){Yd+=1;let t=[],r="",n=()=>{r&&(t.push({t:Co,s:r}),r="")},o="text",s="",i=0,a="",c=0,l="",u=null,f=-1,d=0,p=!1,g="",y=!1,m=!1,w=!1,b="",_="",A=()=>{u&&(u.tag=l,u=null)},N=R=>{let z=r.slice(d);r=r.slice(0,d),n(),t.push({t:Oi,tag:R,text:z}),o="text"},Q=R=>{let z=p,L=z?"/>":">";r=r.slice(0,r.length-L.length),n(),t.push({t:Li,selfClose:z,close:L}),p=!1,s="";let h=l;if(Ci(h)&&R){o="rawtext",g="",y=!1,m=!1,w=!1;return}if(!z&&To(h)){o="textonly",b=h,_="";return}o="text"},be="";for(let R=0;R<e.length;R++){let z=be?e[R].slice(1):e[R];be="";for(let L=0;L<z.length;L++){let h=z[L];switch(o){case"text":h==="<"&&(n(),o="tag-open"),r+=h;break;case"tag-open":h==="!"?(r+=h,o="bang-1"):Jd.test(h)?(r+=h,o="bogus"):h==="/"?(r+=h,o="close-open"):ul.test(h)?(r=r.slice(0,-1),n(),u={t:Ri,tag:""},f=t.length,t.push(u),r="<"+h,l=h.toLowerCase(),o="tag-name"):(r+=h,o="text");break;case"close-open":ul.test(h)?(d=r.length-2,r+=h,l=h.toLowerCase(),o="close-name"):(r+=h,o=h===">"?"text":"bogus");break;case"close-name":r+=h,h===">"?N(l):Rt.test(h)||h==="/"?o="close-tail":l+=h.toLowerCase();break;case"close-tail":r+=h,h===">"&&N(l);break;case"bang-1":r+=h,o=h==="-"?"bang-dash":"bogus";break;case"bang-dash":r+=h,o=h==="-"?"comment-start":"bogus";break;case"bogus":r+=h,h===">"&&(o="text");break;case"comment-start":r+=h,h===">"?o="text":h==="-"?o="comment-start-dash":(o="comment",c=0);break;case"comment-start-dash":r+=h,h===">"?o="text":h==="-"?(o="comment",c=2):(o="comment",c=0);break;case"comment":r+=h,h==="-"?c+=1:h===">"&&c>=2?(o="text",c=0):h==="!"&&c>=2?o="comment-bang":c=0;break;case"comment-bang":r+=h,h===">"?(o="text",c=0):(o="comment",c=h==="-"?1:0);break;case"tag-name":r+=h,h===">"?(A(),Q(!0)):Rt.test(h)?(A(),o="in-tag"):h==="/"?(A(),p=!0,o="in-tag"):l+=h.toLowerCase();break;case"in-tag":r+=h,h===">"?Q(!0):h==="/"?p=!0:Rt.test(h)?p=!1:(p=!1,o="attr-name",s=h,i=r.length-1);break;case"attr-name":h==="="?(o="after-eq",r+=h):Rt.test(h)?(o="after-name",r+=h):h==="/"?(o="in-tag",s="",p=!0,r+=h):h===">"?(r+=h,Q(!1)):(s+=h,r+=h);break;case"after-name":r+=h,h==="="?o="after-eq":Rt.test(h)||(h===">"?Q(!0):h==="/"?(o="in-tag",s="",p=!0):(o="attr-name",s=h,i=r.length-1));break;case"after-eq":h==='"'||h==="'"?(o="attr-quoted",a=h,r+=h):Rt.test(h)?r+=h:h===">"?(r+=h,Q(!1)):(o="attr-unquoted",r+=h);break;case"attr-unquoted":Rt.test(h)?(o="in-tag",s="",r+=h):h===">"?(r+=h,Q(!1)):r+=h;break;case"attr-quoted":r+=h,h===a&&(o="in-tag",s="");break;case"rawtext":{r+=h;let Ut=h.toLowerCase();l==="script"?(w&&(w=!1,fl.test(h)&&y&&(m=!0)),g=(g+Ut).slice(-9),g.endsWith("<!--")?y||(y=!0):g.endsWith("-->")||g.endsWith("--!>")?(y=!1,m=!1):g.endsWith("<script")?w=!0:g.endsWith("<\/script>")&&(m?m=!1:(d=r.length-9,N("script"),g="",l=""))):(g=(g+Ut).slice(-8),g.endsWith("</style>")&&(d=r.length-8,N("style"),g="",l=""));break}case"textonly":if(_==="</"+b&&fl.test(h)){d=r.length-_.length,r+=h,l=b,b="",_="",h===">"?N(l):o="close-tail";break}r+=h,b!=="plaintext"&&(_=(_+h.toLowerCase()).slice(-(b.length+2)));break}}if(R<e.length-1)if(o==="comment"||o==="comment-start"||o==="comment-start-dash"||o==="comment-bang")n(),t.push({t:ke,k:ko}),c=0,o="comment";else if(o==="rawtext")n(),t.push({t:ke,k:ko}),g="",w=!1;else if(o==="text"||o==="textonly")n(),t.push({t:ke,k:ji}),_="";else if(o==="after-eq"){let L=s[0],h=Ke[L],Ut=r.slice(i);r=r.slice(0,i),n(),t.push({t:ke,k:No,kind:h===void 0?"plain":h,name:h===void 0?s:s.slice(1),tag:l,lead:Ut}),o="in-tag",s=""}else if(o==="attr-quoted"&&Ke[s[0]]!==void 0){let L=r.slice(i);if(!L.endsWith("="+a)||!e[R+1].startsWith(a))throw new Error("Event, property and boolean bindings require exactly one expression with no surrounding text.");r=r.slice(0,i),n(),t.push({t:ke,k:No,kind:Ke[s[0]],name:s.slice(1),tag:l,lead:L.slice(0,-1)}),be=a,o="in-tag",s=""}else if(o==="attr-quoted"||o==="attr-unquoted"){let L=r.slice(i);n(),t.push({t:ke,k:Pi,name:s,tag:l,quote:o==="attr-quoted"?a:"",prefix:L})}else n(),t.push({t:ke,k:Gd}),d=0}return u&&(u.tag=l),f!==-1&&Xd.has(o)&&t.splice(f,1),n(),t}ze();function hl(){return typeof process<"u"&&process.env&&!0}function Ii(e){let t=e&&typeof e.message=="string"?e.message:"",r=/^(\w+) is not defined\b/.exec(t);return e instanceof ReferenceError&&r&&Zd.has(r[1])?`\`${r[1]}\` is a browser-only global and is undefined during SSR.`:(r=/\.(\w+) is not a function\b/.exec(t),e instanceof TypeError&&r&&Qd.has(r[1])?`\`${r[1]}\` is an HTMLElement method that does not exist on the server-side component instance during SSR.`:null)}var Zd=new Set(["document","window","localStorage","sessionStorage","navigator","matchMedia","requestAnimationFrame","getComputedStyle","IntersectionObserver","MutationObserver","ResizeObserver"]),Qd=new Set(["attachShadow","querySelector","querySelectorAll","getBoundingClientRect","focus","blur","scrollIntoView"]);function cn(e,t,r){if(!(r===void 0?!hl():!!r))return"";let o=t&&t.message?t.message:String(t);return As`<div data-webjs-error="${e}" style="border:1px solid #f5c2c7;background:#f8d7da;color:#842029;padding:8px 12px;border-radius:6px;font:13px/1.4 system-ui,sans-serif">
1
+ var $d=Object.defineProperty;var A=(e,t)=>()=>(e&&(t=e(e=0)),t);var $c=(e,t)=>{for(var n in t)$d(e,n,{get:t[n],enumerable:!0})};var E,x,ze=A(()=>{E=Symbol.for("webjs.nothing"),x=Symbol.for("webjs.noChange")});function cn(e){return Object.prototype.hasOwnProperty.call(Ke,e)}function Pt(e,t){return t===E||t===x?null:String(t??"")}var Ke,jt=A(()=>{ze();Ke=Object.freeze({"@":"event",".":"prop","?":"bool"})});function ln(e){let t=String(e);return Kd.test(t)?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function B(e){let t=String(e);return Gd.test(t)?t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;"):t}var Kd,Gd,ct=A(()=>{Kd=/[&<>]/,Gd=/[&"<]/});function Wc(e,t,n){Jd.has(t)?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}async function Zn(e){return JSON.stringify(await zc(e))}function ci(e){let t=Gc();if(Jc(e,t).length)throw new TypeError("[webjs] a File or Blob cannot be serialized synchronously (it cannot be a bound argument of a form action).");return JSON.stringify(lt(e,t))}function Se(e){return Kc(JSON.parse(e))}async function zc(e){let t=Gc();return await Yd(e,t),lt(e,t)}function Kc(e){return ut(e,ep())}function Gc(){return{refCount:new Map,idOf:new Map,emitted:new Set,nextId:0,blobBytes:new Map,fdEntries:new Map}}async function Yd(e,t){for(let n of Jc(e,t))t.blobBytes.set(n,new Uint8Array(await n.arrayBuffer()))}function Jc(e,t){let n=[],r=[e];for(;r.length;){let o=r.pop();if(!np(o))continue;let s=t.refCount.get(o)||0;if(t.refCount.set(o,s+1),!(s>0)){if(typeof Blob<"u"&&o instanceof Blob){n.push(o);continue}if(typeof FormData<"u"&&o instanceof FormData){let i=t.fdEntries.get(o)||[...o.entries()];t.fdEntries.set(o,i);for(let[,a]of i)typeof a!="string"&&r.push(a);continue}if(Array.isArray(o))for(let i=0;i<o.length;i++)r.push(o[i]);else if(o instanceof Map)for(let[i,a]of o)r.push(i),r.push(a);else if(o instanceof Set)for(let i of o)r.push(i);else if(rp(o))for(let i in o)Object.prototype.hasOwnProperty.call(o,i)&&r.push(o[i])}}for(let[o,s]of t.refCount)s>1&&t.idOf.set(o,t.nextId++);return n}function lt(e,t){if(e===null)return null;if(e===void 0)return{[$]:"undef"};let n=typeof e;if(n==="string"||n==="boolean")return e;if(n==="number")return Number.isNaN(e)?{[$]:"NaN"}:e===1/0?{[$]:"Inf"}:e===-1/0?{[$]:"-Inf"}:Object.is(e,-0)?{[$]:"-0"}:e;if(n==="bigint")return{[$]:"BigInt",v:e.toString()};if(n==="symbol"){let s=Symbol.keyFor(e);if(s===void 0)throw new TypeError("Cannot serialize a local Symbol; only Symbol.for() registered symbols are supported.");return{[$]:"Sym",v:s}}if(n==="function")throw new TypeError("Cannot serialize a function.");let r=t.idOf.get(e);if(r!==void 0&&t.emitted.has(r))return{[$]:"Ref",v:r};r!==void 0&&t.emitted.add(r);let o;if(e instanceof Date)o={[$]:"Date",v:Number.isNaN(e.getTime())?null:e.toISOString()};else if(e instanceof Error)o={[$]:"Error",v:{name:e.name,message:e.message,stack:e.stack||null}};else if(typeof Blob<"u"&&e instanceof Blob){let s=t.blobBytes.get(e);typeof File<"u"&&e instanceof File?o={[$]:"File",v:Xn(s),n:e.name,t:e.type||"",m:e.lastModified}:o={[$]:"Blob",v:Xn(s),t:e.type||""}}else if(typeof FormData<"u"&&e instanceof FormData){let s=t.fdEntries.get(e)||[...e.entries()],i=[];for(let[a,c]of s)i.push([a,lt(c,t)]);o={[$]:"FD",v:i}}else if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o=Xd(e);else if(e instanceof Map){let s=[];for(let[i,a]of e)s.push([lt(i,t),lt(a,t)]);o={[$]:"Map",v:s}}else if(e instanceof Set){let s=[];for(let i of e)s.push(lt(i,t));o={[$]:"Set",v:s}}else if(Array.isArray(e))o=e.map(s=>lt(s,t));else{o={};for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=op(s)?"_"+s:s;Wc(o,i,lt(e[s],t))}}if(r!==void 0){if(Array.isArray(o))return{[$]:"Arr",_id:r,v:o};o._id=r}return o}function Xd(e){if(e instanceof ArrayBuffer)return{[$]:"buf",v:Xn(new Uint8Array(e))};if(e instanceof DataView)return{[$]:"dv",v:Xn(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))};let t=e.constructor.name,n=Zd[t];if(!n)throw new TypeError(`Unsupported typed array: ${t}`);let r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return{[$]:n,v:Xn(r)}}function ep(){return{refs:new Map}}function ut(e,t){if(e===null||typeof e!="object")return e;if(Array.isArray(e)){let s=[];for(let i=0;i<e.length;i++)s.push(ut(e[i],t));return s}let n=e[$];if(typeof n=="string")return tp(e,n,t);let r={},o=e._id;typeof o=="number"&&t.refs.set(o,r);for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||s==="_id")continue;let i=sp(s)?s.slice(1):s;Wc(r,i,ut(e[s],t))}return r}function tp(e,t,n){let r=e._id,o=s=>(typeof r=="number"&&n.refs.set(r,s),s);switch(t){case"undef":return;case"NaN":return NaN;case"Inf":return 1/0;case"-Inf":return-1/0;case"-0":return-0;case"BigInt":return o(BigInt(e.v));case"Sym":return o(Symbol.for(e.v));case"Date":return o(e.v==null?new Date(NaN):new Date(e.v));case"Error":{let s=new Error(e.v.message);return s.name=e.v.name,e.v.stack&&(s.stack=e.v.stack),typeof r=="number"&&n.refs.set(r,s),s}case"Map":{let s=new Map;typeof r=="number"&&n.refs.set(r,s);for(let[i,a]of e.v)s.set(ut(i,n),ut(a,n));return s}case"Set":{let s=new Set;typeof r=="number"&&n.refs.set(r,s);for(let i of e.v)s.add(ut(i,n));return s}case"Arr":{let s=[];typeof r=="number"&&n.refs.set(r,s);for(let i of e.v)s.push(ut(i,n));return s}case"Ref":{let s=n.refs.get(e.v);if(s===void 0)throw new TypeError(`Dangling reference: id=${e.v}`);return s}case"Blob":{if(typeof Blob>"u")throw new TypeError("Blob is not available in this environment.");let s=Yn(e.v);return o(new Blob([s],{type:e.t||""}))}case"File":{if(typeof File>"u")throw new TypeError("File is not available in this environment.");let s=Yn(e.v);return o(new File([s],e.n,{type:e.t||"",lastModified:e.m}))}case"FD":{if(typeof FormData>"u")throw new TypeError("FormData is not available in this environment.");let s=new FormData;o(s);for(let[i,a]of e.v){let c=ut(a,n);s.append(i,c)}return s}default:{if(t==="buf"){let i=Yn(e.v);return o(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}if(t==="dv"){let i=Yn(e.v);return o(new DataView(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)))}let s=Qd[t];if(s){let i=Yn(e.v),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength);return o(new s(a))}throw new TypeError(`Unknown serialization tag: ${t}`)}}}function np(e){return e!==null&&typeof e=="object"}function rp(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function op(e){return/^_+\$wj$/.test(e)||/^_+id$/.test(e)}function sp(e){return/^__+\$wj$/.test(e)||/^__+id$/.test(e)}function Xn(e){if(Yc)return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64");let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Yn(e){if(Yc){let r=Buffer.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}var $,Jd,Zd,Qd,Yc,ft=A(()=>{$="_$wj",Jd=new Set(["__proto__","constructor","prototype"]);Zd={Int8Array:"i8",Uint8Array:"u8",Uint8ClampedArray:"u8c",Int16Array:"i16",Uint16Array:"u16",Int32Array:"i32",Uint32Array:"u32",Float32Array:"f32",Float64Array:"f64",BigInt64Array:"bi64",BigUint64Array:"bu64"},Qd={i8:Int8Array,u8:Uint8Array,u8c:Uint8ClampedArray,i16:Int16Array,u16:Uint16Array,i32:Int32Array,u32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:typeof BigInt64Array<"u"?BigInt64Array:null,bu64:typeof BigUint64Array<"u"?BigUint64Array:null};Yc=typeof Buffer<"u"&&typeof Buffer.from=="function"});function di(e,t){return t.length?`${e}${Zc}${encodeURIComponent(ci(t))}`:e}function ip(e){let t=e.indexOf(Zc);if(t===-1)return{id:e,args:[]};let n=Se(decodeURIComponent(e.slice(t+1)));if(!Array.isArray(n))throw new TypeError("bound action arguments are not a list");return{id:e.slice(0,t),args:n}}function Qc(e){if(typeof e!="function"||Object.prototype.hasOwnProperty.call(e,"bind"))return e;try{Object.defineProperty(e,"bind",{value:ap,configurable:!0,writable:!0})}catch{}return e}function ap(e,...t){let n=Function.prototype.bind.call(this,e,...t),r=li.get(this),o=r?r.target:this,s=r?[...r.args,...t]:t;li.set(n,{target:o,args:s});let i=er(o);if(i)try{Object.defineProperty(n,fi,{get:()=>di(i,s)})}catch{}return Qc(n)}function cp(e){ui=e}function er(e){if(typeof e!="function")return null;let t=e[fi];return typeof t=="string"&&t?t:null}async function Ro(e){let t=er(e);if(t)return t;if(typeof e!="function"||!ui)return null;let n=li.get(e);if(n){let r=await Ro(n.target);return r?di(r,n.args):null}try{let r=await ui(e);return typeof r=="string"&&r?r:null}catch{return null}}function un(e,t,n){if(typeof e!="function")return!1;let r=String(t).toLowerCase(),o=String(n||"").toLowerCase();return r==="action"?o==="form":r==="formaction"?o==="button"||o==="input":!1}function tr(e,t,n=!0){if(!e||e===U&&n)return;let r=e===U?'a second "name" attribute':`name="${e}"`;throw new Error(`[webjs] formaction=\${action} on <${t||"button"}> cannot be used when the element already carries a "name" attribute (found ${r}). The action identity is submitted as the button's own name/value pair, so there is no room for a second one. Move the action to the enclosing <form action=\${action}> or drop the submitter's "name".`)}function pi(e,t){let n=String(e||"").toLowerCase(),r=t==null?null:String(t).toLowerCase();if(lp(n,r)){if(n==="input"&&r==="image")throw new Error('[webjs] formaction=${action} is not supported on <input type="image"> because image submitters submit coordinate pairs (name.x/name.y) instead of name=value, so the action identity would never arrive. Use a <button> instead.');if(n==="input")throw new Error('[webjs] formaction=${action} is not supported on <input type="submit"> because the action identity has to occupy the submitter\'s "value", which on this control is also its visible label, so the button would render captioned with the action\'s id and could not be given a real one. Use <button formaction=${action}>Publish</button>, whose label is its children.');return}throw new Error(`[webjs] formaction=\${action} on <${n}>${r?` type="${r}"`:""} requires a submitter control, and formaction is inert on anything else. Use <button formaction=\${action}>.`)}function lp(e,t){let n=t==null?null:String(t).toLowerCase();return e==="button"?n==null||n===""||n==="submit":e==="input"?n==="submit"||n==="image":!1}function nr(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used when the element already carries a "value" attribute. The action identity is submitted as the button's own name/value pair, so both halves are taken. Drop the "value", or dispatch on it from one form-level action instead.`)}function hi(e){throw new Error(`[webjs] a bound formaction=\${action} on <${e||"button"}> cannot also carry a plain formaction attribute: the two name different targets and the renderers resolve them differently. Drop the static attribute.`)}function rr(e){throw new Error(`[webjs] formaction=\${action} on <${e||"button"}> cannot be used with a "form" attribute, which re-points the submitter at a form other than the bound one it sits in. Keep the submitter inside its bound <form>.`)}function or(e,t){if(e)throw new Error(`[webjs] two formaction=\${action} holes were found on one <${t||"button"}>. Only one can win, and the two renderers pick differently, so bind exactly one action per submitter.`)}function mi(e,t){let r=(e||[]).filter(o=>sr(o))[0];if(r)throw new Error(`[webjs] a <${t||"button"}> submitter binds .${r}=. That property is a reflected IDL attribute on a submitter, so a property binding is dropped at SSR and written to the attribute in the browser: the page would render on the server and throw on hydration. Write it as a plain attribute.`)}function sr(e){let t=String(e).toLowerCase();return t==="name"||t==="value"||t==="formaction"||t==="formmethod"||t==="formenctype"}function up(e,t,n){let r=t==null?null:String(t),o=n==null?null:String(n);if(r!=null&&/^dialog$/i.test(r))throw new Error(`[webjs] formaction=\${action} on <${e}> cannot be combined with formmethod="dialog", which dismisses a <dialog> instead of submitting, so the bound action would never run. Drop one of the two.`);if(r!=null&&!/^post$/i.test(r))throw new Error(`[webjs] <${e} formmethod="${r}" formaction=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${r}" submission sends none, so the action would never run. Drop the formmethod attribute (WebJs emits formmethod="post" on a bound submitter), or drop the binding.`);if(o!=null&&!el.has(o.toLowerCase()))throw new Error(`[webjs] <${e} formenctype="${o}" formaction=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${o}" body is neither, so the bound action could never read it. Drop the formenctype attribute (WebJs emits multipart/form-data on a bound submitter).`)}function _e(e,t,n){if(ar(e)&&(wp(e,t,n),!!bp(t)))throw new Error(yp(t,n))}function Co(e,t,n){gp(t,n)&&_e(e,t,n)}function fn(e,t,n){if(e)return e;let r=t==="button"||t==="input"?"formaction=":"action=";throw typeof n=="function"&&/^bound /.test(n.name)?new Error(`[webjs] the function in ${r} on <${t||"form"}> is a bound function that is not a server action. Bind the imported action itself: action.bind(null, id) on a function exported from a 'use server' *.server.{js,ts} module keeps its identity, and the bound arguments arrive before the form data. See https://webjs.dev/docs/server-actions#bound-arguments`):new Error(`[webjs] the function in ${r} on <${t||"form"}> is not a server action. Only a function imported from a 'use server' *.server.{js,ts} module can be bound to a form or a submitter, because the identity the browser submits has to resolve back to something the server can run. A 'use server' directive inside a function body (Next.js's inline action) is not one: the boundary is a file. Move the function into its own module, e.g. modules/<feature>/actions/<name>.server.ts starting with 'use server', export it and import it here, or pass a url string. See https://webjs.dev/docs/troubleshooting#inline-use-server`)}function fp(e,t){if(e!=null&&!/^post$/i.test(e))throw new Error(`[webjs] <form method="${e}" action=\${action}> cannot work: a bound server action is submitted as a POST body, and a "${e}" form sends no body. Drop the method attribute (WebJs emits method="post") or remove the bound action.`);if(t!=null&&!el.has(t.toLowerCase()))throw new Error(`[webjs] <form enctype="${t}" action=\${action}> cannot work: a form submission is parsed as multipart/form-data or application/x-www-form-urlencoded, and a "${t}" body is neither, so the submission would run under JS and do nothing without it. Drop the enctype attribute (WebJs emits multipart/form-data).`)}function tl(e,t){let n=ir(e);No({staticAction:n.has("action")});let r=nl(n.has("method")?n.get("method"):K,n.has("enctype")?n.get("enctype"):K),o=e.endsWith("/>")?"/>":">",s=e.slice(0,e.length-o.length),i="";return r.method!==null&&(i+=` method="${r.method}"`),r.enctype!==null&&(i+=` enctype="${r.enctype}"`),{tag:s+i+o,hidden:dp(t)}}function No(e){if(e.duplicateAction)throw new Error("[webjs] two action=${...} holes were found on one <form>. A form can carry only one action binding. Move one to a submit button's formaction=${action} or remove the duplicate.");if(e.staticAction)throw new Error('[webjs] a bound <form action=${action}> also carries a plain action="..." attribute. A bound form posts to the page\'s own url, so the two say different things: without JS the browser would post to the written url and with JS it would not. Drop the action attribute, or drop the binding.');let t=e.propAttrs&&e.propAttrs[0];if(t)throw new Error(`[webjs] a bound <form action=\${action}> also binds .${t}=. A property binding on a native element is dropped at SSR and applied in the browser, so the form would submit one way with JS and another way without it. Write it as a plain attribute.`)}function nl(e,t){let n=e!==K&&e!=null,r=t!==K&&t!=null;return fp(n?e:null,r?t:null),{method:n?null:"post",enctype:r?null:"multipart/form-data"}}function gi(e,t,n){let r=t!==K&&t!=null,o=n!==K&&n!=null;return up(e,r?t:null,o?n:null),{formMethod:r?null:"post",formEnctype:o?null:"multipart/form-data"}}function rl(e,t,n){hp(e,t,n);let r=ir(e),o=gi(t,r.has("formmethod")?r.get("formmethod"):K,r.has("formenctype")?r.get("formenctype"):K),s=e.endsWith("/>")?"/>":">",i=e.slice(0,e.length-s.length),a="";return o.formMethod!==null&&(a+=` formmethod="${o.formMethod}"`),o.formEnctype!==null&&(a+=` formenctype="${o.formEnctype}"`),i+a+s}function dp(e){return`<input type="hidden" name="${U}" value="${B(e)}">`}function ol(e,t,n,r,o){let s=typeof t=="function"?er(t):null;if(!s){typeof t=="function"&&fn(null,e.localName,t),mp(e,n,r,o.propAttrs);return}No(o);let i=nl(n,r);e.removeAttribute("action"),Qn(e,"method",n,i.method),Qn(e,"enctype",r,i.enctype),pp(e,s)}function Qn(e,t,n,r){if(r!==null){e.setAttribute(t,r);return}n!==K&&e.getAttribute(t)!==n&&e.setAttribute(t,n)}function pp(e,t){let n=e.firstElementChild,r=n&&n.localName==="input"&&n.getAttribute("name")===U?n:null;if(!r){for(let o of e.children)if(o.localName==="input"&&o.getAttribute("name")===U){r=o;break}}r||(r=e.ownerDocument.createElement("input"),r.setAttribute("type","hidden"),r.setAttribute("name",U),e.insertBefore(r,e.firstChild)),r.getAttribute("value")!==t&&r.setAttribute("value",t)}function hp(e,t,n){let r=ir(e),o=r.has("type")?r.get("type"):null;mi(n.propAttrs,t),or(!!n.duplicateAction,t),r.has("formaction")&&hi(t),Xc(e,"value")>1&&nr(t),Xc(e,"name")>1&&tr(r.get("name")||U,t,!1),pi(t,o),r.has("form")&&rr(t)}function mp(e,t,n,r){let o=e.firstElementChild;if(o&&o.localName==="input"&&o.getAttribute("name")===U)o.remove();else for(let i of e.children)if(i.localName==="input"&&i.getAttribute("name")===U){i.remove();break}let s=i=>(r||[]).some(a=>{let c=String(a).toLowerCase();return c===i||i==="enctype"&&c==="encoding"});t===K&&!s("method")&&e.removeAttribute("method"),n===K&&!s("enctype")&&e.removeAttribute("enctype")}function sl(e,t,n,r){let o=s=>(r||[]).some(i=>String(i).toLowerCase()===s);t===K&&!o("formmethod")&&e.removeAttribute("formmethod"),n===K&&!o("formenctype")&&e.removeAttribute("formenctype")}function ir(e){return new Map(il(e))}function il(e){let t=[],n=1;for(;n<e.length&&!/[\s/>]/.test(e[n]);)n++;for(;n<e.length;){for(;n<e.length&&/[\s/]/.test(e[n]);)n++;if(n>=e.length||e[n]===">")break;let r="";for(;n<e.length&&!/[\s/>=]/.test(e[n]);)r+=e[n++];for(;n<e.length&&/\s/.test(e[n]);)n++;if(e[n]!=="="){r&&t.push([r.toLowerCase(),""]);continue}for(n++;n<e.length&&/\s/.test(e[n]);)n++;let o="",s=e[n];if(s==='"'||s==="'"){for(n++;n<e.length&&e[n]!==s;)o+=e[n++];n++}else for(;n<e.length&&!/[\s>]/.test(e[n]);)o+=e[n++];r&&t.push([r.toLowerCase(),o])}return t}function Xc(e,t){let n=String(t).toLowerCase();return il(e).filter(([r])=>r===n).length}function gp(e,t){let n=String(e).toLowerCase();cn(n[0])&&(n=n.slice(1));let r=String(t||"").toLowerCase();return n==="action"?r==="form":n==="formaction"?r==="button"||r==="input":!1}function ar(e,t){if(typeof e=="function")return!0;if(!Array.isArray(e))return!1;let n=t||new Set;return n.has(e)?!1:(n.add(e),e.some(r=>ar(r,n)))}function bp(e){let t=String(e).toLowerCase();return cn(t[0])&&(t=t.slice(1)),t==="action"||t==="formaction"}function yp(e,t){return`[webjs] a function was interpolated into ${String(e).toLowerCase()}= on <${t||"form"}>. Stringifying a function into HTML would leak its source (a 'use server' action's body included) to every visitor, so this is refused. To run a server action from a form, write an unquoted action=\${action} on the <form> itself or a formaction=\${action} on a <button> inside a bound form. Anywhere else, pass a URL string.`}function wp(e,t,n){if(!ar(e))return;let r=String(t||"").replace(/^[?.@]/,"");if(!/^on[a-z]/i.test(r))return;let o=r.slice(2).toLowerCase();throw new Error(`webjs: a function was interpolated into the \`${r}\` attribute on <${n||"element"}>. An attribute is a string, so the function's source would be written into the HTML as an inline handler that runs without its closure. Bind the event with \`@${o}=\${handler}\` in a WebComponent's render() (a page or layout never hydrates, so its handlers must live in a component). See https://webjs.dev/docs/troubleshooting#function-in-on-attribute`)}var U,fi,Zc,li,ui,el,K,Ge=A(()=>{jt();ct();ft();U="__webjs_action",fi="$$webjsAction",Zc="#";li=new WeakMap;ui=null;el=new Set(["multipart/form-data","application/x-www-form-urlencoded"]);K=Symbol("webjs.attr.absent")});var k,R,j,G,_i,Pe,It,pr,hl,V,Ai,je,C,dt=A(()=>{k=Symbol("webjs.slot.state"),R="data-webjs-light",j="data-projection",G="actual",_i="fallback",Pe=Symbol("webjs.slot.fallbackFrag"),It=Symbol("webjs.slot.templateOwner"),pr="data-wj-slot-owner",hl=64,V=Symbol("webjs.slot.rendering"),Ai=Symbol("webjs.slot.intercepted"),je=Symbol("webjs.slot.park"),C=new WeakSet});function W(e){let t=e,n=t[k];return n||(n={host:e,authored:[],assignedByName:new Map,lastSnapshot:new WeakMap},t[k]=n),n}function pt(e){return!!e[k]}function xi(e){let t=W(e);for(;e.firstChild;){let n=e.firstChild;t.authored.push(n),C.add(n),e.removeChild(n)}Ie(t)}function Ie(e){let t=e.assignedByName;t.clear();for(let n of e.authored)qp(t,ht(e,n),n)}function ht(e,t){let n=mr(e,t);if(n)return X(n.getAttribute("name"));if(e.adoptedKey){let r=e.adoptedKey.get(t);if(r!==void 0)return r}return ml(t)}function vi(e){let t=W(e);t.adopted=!0;let n=new Set,r=e.querySelectorAll(`slot[${R}]`);for(let o of r){let s=o;if(!re(e,s)||s.getAttribute(j)!==G||hn(t,e,s))continue;let i=X(s.getAttribute("name"));if(!n.has(i)){n.add(i);let a=Array.from(s.childNodes);for(let c of a)t.authored.push(c),ml(c)!==i&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(c,i));t.lastSnapshot.set(s,a.slice())}}for(let o of e.querySelectorAll("wj-slot-park"))if(re(e,o)){for(let s of Array.from(o.childNodes))C.add(s),t.authored.push(s);o.remove()}Ie(t)}function X(e){return e==null||e===""||e==="default"?null:e}function ml(e){return e.nodeType!==1?null:X(e.getAttribute("slot"))}function qp(e,t,n){let r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)}var Dt=A(()=>{qt();hr();Mt();dt()});function gl(){De||!de||(De=Node.prototype.appendChild,Ei=Node.prototype.insertBefore,mt=Node.prototype.removeChild,Lo=Node.prototype.replaceChild,Ti=Element.prototype.append,ki=Element.prototype.prepend,Ri=Element.prototype.replaceChildren,gr=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),Oo=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"))}function $t(e,t){let n=e[V];e[V]=!0;try{return t()}finally{e[V]=n,n||Po(e)}}function Ci(e){if(!de)return;let t=e,n=W(e);n.backstop||(n.backstop=new MutationObserver(r=>br(e,n,r)),n.backstop.observe(e,{childList:!0,subtree:!1}),n.flipSensor=new MutationObserver(r=>bl(e,r)),n.flipSensor.observe(e,{attributes:!0,attributeFilter:["slot","name"],subtree:!0}))}function br(e,t,n){let r=e,o=r[je],s=r[Symbol.for("webjs.instance")],i=!1,a=new Set;for(let c of n){for(let l of c.addedNodes)if(a.add(l),l!==o&&!(s&&Oi(s,l))){if(t.authored.indexOf(l)!==-1){i=!0;continue}C.add(l),t.authored.push(l),i=!0}for(let l of c.removedNodes){let u=t.authored.indexOf(l);if(u===-1||e.contains(l))continue;C.has(l)&&l.parentNode==null&&!a.has(l)||(t.authored.splice(u,1),i=!0)}}i&&ie(e)}function Po(e){let t=e,n=t[k];if(!(n&&n.backstop))return;let r=n.backstop.takeRecords();(!(Symbol.for("webjs.instance")in t)||t[Symbol.for("webjs.instance")])&&br(e,n,r)}function bl(e,t){let n=e[k];if(!n)return;let r=!1;for(let o of t){if(o.type!=="attributes")continue;let s=o.target;o.attributeName==="name"?s.tagName==="SLOT"&&s.hasAttribute(R)&&re(e,s)&&(r=!0):o.attributeName==="slot"&&(n.adoptedKey&&n.adoptedKey.delete(s),n.authored.indexOf(s)!==-1&&(r=!0))}r&&ie(e)}function Ni(e){let t=e[k];t&&(t.backstop&&(br(e,t,t.backstop.takeRecords()),t.backstop.disconnect(),t.backstop=void 0),t.flipSensor&&(bl(e,t.flipSensor.takeRecords()),t.flipSensor.disconnect(),t.flipSensor=void 0))}function Li(e){if(!de)return;let t=e,n=t[k];if(!n)return;let r=t[Symbol.for("webjs.instance")],o=Symbol.for("webjs.instance")in t,s=!o&&n.adopted===!0,i=!1;for(let a of Array.from(e.childNodes))if(a!==t[je]){if(n.authored.indexOf(a)!==-1){i=!0;continue}o&&(!r||Oi(r,a))||!o&&s||(C.add(a),n.authored.push(a),i=!0)}i&&ie(e)}var De,Ei,mt,Lo,Ti,ki,Ri,gr,Oo,jo=A(()=>{qt();hr();Mt();yr();Dt();dt();De=null,Ei=null,mt=null,Lo=null,Ti=null,ki=null,Ri=null,gr=null,Oo=null});function Oi(e,t){if(!e||!e.startNode||!e.endNode)return!1;if(t===e.startNode||t===e.endNode)return!0;for(let n=e.startNode.nextSibling;n&&n!==e.endNode;n=n.nextSibling)if(n===t)return!0;return!1}function yl(e){let t=e,n=t[je];return(!n||!n.isConnected)&&(n||(n=e.ownerDocument.createElement("wj-slot-park"),n.setAttribute("hidden",""),n.style.display="none",t[je]=n),$t(e,()=>De.call(e,n))),n}function Ft(e){return e instanceof Node||!!(e&&typeof e=="object"&&e.ownerDocument&&e.ownerDocument.defaultView&&e instanceof e.ownerDocument.defaultView.Node)}function Pi(e,t,n){if(n&&!Ft(t))return[e.ownerDocument.createTextNode(`${t}`)];if(!Ft(t))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");if(t&&t.nodeType===11){let r=Array.from(t.childNodes);Io(e,r);for(let o of r)mt.call(t,o);return r}return Io(e,[t]),[t]}function Io(e,t){mn(e,t);for(let n of t){if(!Ft(n))throw new TypeError("Failed to execute insertion on the host: parameter is not of type Node.");let r=n.nodeType;if(r!==1&&r!==3&&r!==4&&r!==7&&r!==8&&r!==11)throw new DOMException("Failed to execute insertion on the host: the node type may not be inserted here.","HierarchyRequestError")}}function mn(e,t){for(let n of t)if(n===e||n.nodeType===1&&n.contains(e))throw new DOMException("Failed to execute insertion on the host: the new child contains the parent.","HierarchyRequestError")}function ji(e,t,n){let r=e.authored;for(let s of t){let i=r.indexOf(s);i!==-1&&r.splice(i,1)}let o=n==null?r.length:r.indexOf(n);o===-1&&(o=r.length),r.splice(o,0,...t)}function Mi(e,t){let n=e[k];return n?hn(n,e,t):!1}function hn(e,t,n){for(let r=n;r&&r!==t;r=r.parentNode)if(e.authored.indexOf(r)!==-1)return!0;return!1}function Ii(e,t){if(C.has(t))return!0;let n=t.parentNode;if(n==null)return!1;if(n===e||n===e[je])return!0;let r=e[k];return n.nodeType===1&&n.tagName==="SLOT"&&n.hasAttribute(R)&&(r&&r.lastSnapshot.has(n)||e.contains(n)&&re(e,n))}function Di(e,t){let n=[];for(let s of t)Ft(s)?s.nodeType===11?n.push({frag:s}):n.push({node:s}):n.push({text:`${s}`});for(let s of n)s.frag?mn(e,Array.from(s.frag.childNodes)):s.node&&Io(e,[s.node]);let r=e.ownerDocument.createDocumentFragment();for(let s of n)if(s.text!==void 0)De.call(r,e.ownerDocument.createTextNode(s.text));else if(s.frag){let i=Array.from(s.frag.childNodes);Io(e,i);for(let a of i)De.call(r,a)}else s.node&&(mn(e,[s.node]),De.call(r,s.node));let o=Array.from(r.childNodes);mn(e,o);for(let s of o)mt.call(r,s);return o}function Ye(e,t,n){if(t.applying&&t.pendingRecordNodes)for(let r of n||[])t.pendingRecordNodes.add(r);else t.pendingRecordNodes=new Set(n||[]);if(t.adoptedKey&&n)for(let r of n)t.adoptedKey.delete(r);Ie(t),ie(e)}function qi(e){if(!de)return;let t=e;if(t[Ai])return;gl(),t[Ai]=!0;let n=W(e);t.appendChild=function(r){if(t[V])return De.call(this,r);let o=Pi(e,r,!1);for(let s of o)C.add(s);return ji(n,o,null),Ye(e,n,o),r},t.insertBefore=function(r,o){if(t[V])return Ei.call(this,r,o);if(!Ft(r))throw new TypeError("Failed to execute insertBefore on the host: parameter 1 is not of type Node.");if(o!=null&&!Ft(o))throw new TypeError("Failed to execute insertBefore on the host: parameter 2 is not of type Node.");if(mn(e,r.nodeType===11?Array.from(r.childNodes):[r]),o!=null&&(n.authored.indexOf(o)===-1||!Ii(e,o)))throw new DOMException("insertBefore: reference node is not an assigned child of this host","NotFoundError");if(r===o)return r;let s=Pi(e,r,!1);for(let i of s)C.add(i);return ji(n,s,o||null),Ye(e,n,s),r},t.removeChild=function(r){if(t[V])return mt.call(this,r);let o=n.authored.indexOf(r);if(o===-1)return mt.call(this,r);if(!Ii(e,r))throw new DOMException("removeChild: the node is not an assigned child of this host","NotFoundError");return n.authored.splice(o,1),Ye(e,n,[r]),r},t.replaceChild=function(r,o){if(t[V])return Lo.call(this,r,o);if(n.authored.indexOf(o)===-1)return Lo.call(this,r,o);if(!Ft(r))throw new TypeError("Failed to execute replaceChild on the host: parameter 1 is not of type Node.");if(mn(e,r.nodeType===11?Array.from(r.childNodes):[r]),!Ii(e,o))throw new DOMException("replaceChild: the node to be replaced is not an assigned child of this host","NotFoundError");if(r===o)return o;let i=Pi(e,r,!1);for(let c of i)C.add(c);for(let c of i){if(c===o)continue;let l=n.authored.indexOf(c);l!==-1&&n.authored.splice(l,1)}let a=n.authored.indexOf(o);return n.authored.splice(a,1,...i),Ye(e,n,[...i,o]),o},t.append=function(...r){if(t[V])return Ti.apply(this,r);let o=Di(e,r);for(let s of o)C.add(s);ji(n,o,null),Ye(e,n,o)},t.prepend=function(...r){if(t[V])return ki.apply(this,r);let o=Di(e,r);for(let s of o)C.add(s);for(let s of o){let i=n.authored.indexOf(s);i!==-1&&n.authored.splice(i,1)}n.authored.unshift(...o),Ye(e,n,o)},t.replaceChildren=function(...r){if(t[V])return Ri.apply(this,r);let o=Di(e,r);for(let i of o)C.add(i);let s=n.authored;n.authored=o.slice(),Ye(e,n,[...s,...o])},Object.defineProperty(t,"innerHTML",{configurable:!0,get(){return gr.get.call(this)},set(r){if(t[V]){gr.set.call(this,r);return}let o=e.ownerDocument.createElement("div");gr.set.call(o,r===null?"":`${r}`);let s=Array.from(o.childNodes);for(let a of s)C.add(a);let i=n.authored;n.authored=s,Ye(e,n,[...i,...s])}}),Object.defineProperty(t,"textContent",{configurable:!0,get(){return Oo.get.call(this)},set(r){if(t[V]){Oo.set.call(this,r);return}let o=r==null||r===""?[]:[e.ownerDocument.createTextNode(`${r}`)];for(let i of o)C.add(i);let s=n.authored;n.authored=o,Ye(e,n,[...s,...o])}})}var wl,hr=A(()=>{qt();Mt();yr();jo();Dt();dt();wl=new Set});function gt(e,t,n){let r=W(e),o=X(t),s=Array.isArray(n)?n.filter(Boolean):n?[n]:[],i=r.authored.findIndex(c=>ht(r,c)===o),a=r.authored.filter(c=>ht(r,c)===o);r.authored=r.authored.filter(c=>ht(r,c)!==o),(i===-1||i>r.authored.length)&&(i=r.authored.length);for(let c of s)c.nodeType===1&&!mr(r,c)&&(o==null?c.removeAttribute("slot"):c.setAttribute("slot",o)),C.add(c);if(r.authored.splice(i,0,...s),r.applying&&r.pendingRecordNodes){for(let c of a)r.pendingRecordNodes.add(c);for(let c of s)r.pendingRecordNodes.add(c)}else r.pendingRecordNodes=new Set([...a,...s]);if(r.adoptedKey){for(let c of a)r.adoptedKey.delete(c);for(let c of s)r.adoptedKey.delete(c)}Ie(r),ie(e)}function ie(e){if(!de)return;let t=e[k];if(t){if(t.applying){t.reapply=!0;return}t.applying=!0;try{do{t.reapply=!1;let n=t.pendingRecordNodes||wl;t.pendingRecordNodes=void 0,$p(e,t,n),Fp(e,t),Ie(t);let r=[],o=new Set;for(let u of e.querySelectorAll(`slot[${R}]`))if(re(e,u)&&!hn(t,e,u)){if(!u.hasAttribute(j)&&!(Pe in u)){o.add(X(u.getAttribute("name")));continue}r.push(u)}let s=new Map;for(let u of r){let f=X(u.getAttribute("name")),d=s.get(f);d||(d=[],s.set(f,d)),d.push(u)}let i=[];for(let[u,f]of s){let d=t.assignedByName.get(u)||[];for(let p=0;p<f.length;p++){let m=f[p],b=d.filter(w=>{let S=mr(t,w);return S?S===m:p===0}),g=b.filter(w=>w===e||w.nodeType===1&&w.contains(e));if(g.length){for(let w of g)C.delete(w);b=b.filter(w=>g.indexOf(w)===-1)}b.length>0?$i(t,m,b)&&i.push(m):Fi(t,m)&&i.push(m)}}for(let u of i)Hi(t,u);let a=new Set(s.keys());for(let u of o)a.add(u);let c=new Set;for(let u of t.authored)a.has(ht(t,u))||c.add(u);let l=e[je];if(l)for(let u of Array.from(l.childNodes))c.has(u)||mt.call(l,u);if(c.size){let u=yl(e);for(let f of c)f.parentNode!==u&&(C.delete(f),$t(e,()=>De.call(u,f)))}if(t.backstop){let u=t.backstop.takeRecords();u.length&&br(e,t,u)}}while(t.reapply)}finally{t.applying=!1}}}function $p(e,t,n){for(let r of e.querySelectorAll(`slot[${R}][${j}="${G}"]`)){if(!re(e,r)||hn(t,e,r))continue;let o=r,s=t.lastSnapshot.get(o);if(!s)continue;let i=Array.from(o.childNodes);if(Do(i,s))continue;let a=t.authored,c=X(o.getAttribute("name")),l=i.filter(m=>!n.has(m));for(let m of l)a.indexOf(m)===-1&&ht(t,m)!==c&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(m,c));for(let m of a){if(l.indexOf(m)!==-1||ht(t,m)!==c)continue;let b=a.indexOf(m),g=0;for(let w=0;w<l.length;w++){let S=a.indexOf(l[w]);S!==-1&&S<b&&(g=w+1)}l.splice(g,0,m)}let u=new Set(l);for(let m of s)u.add(m);let f=-1,d=0;for(let m of a){if(u.has(m)){f===-1&&(f=d);continue}d+=1}let p=a.filter(m=>!u.has(m));(f===-1||f>p.length)&&(f=p.length),p.splice(f,0,...l),t.authored=p}}function Fp(e,t){let n=e[je];t.authored=t.authored.filter(r=>{if(C.has(r))return!0;let o=r.parentNode;return o==null?!1:!!(o===e||o===n||o.nodeType===1&&o.tagName==="SLOT"&&o.hasAttribute(R)&&(t.lastSnapshot.has(o)||e.contains(o)&&re(e,o)))})}var yr=A(()=>{qt();hr();Mt();jo();Dt();dt()});function Al(){return typeof HTMLElement<"u"&&typeof HTMLSlotElement<"u"}function xl(){if(Sl||(de=Al(),!de))return;wr=HTMLSlotElement.prototype.assignedNodes,Bi=HTMLSlotElement.prototype.assignedElements,Mo=Object.getOwnPropertyDescriptor(Element.prototype,"assignedSlot"),HTMLSlotElement.prototype.assignedNodes=function(n){return this.hasAttribute(R)&&!Vi(this)?Wi(this,n):wr?wr.call(this,n):[]},HTMLSlotElement.prototype.assignedElements=function(n){return this.hasAttribute(R)&&!Vi(this)?Wi(this,n).filter(r=>r.nodeType===1):Bi?Bi.call(this,n):[]},Object.defineProperty(Element.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let n=Mo&&Mo.get?Mo.get.call(this):null;return n||_l(this)}});let e=Object.getOwnPropertyDescriptor(Text.prototype,"assignedSlot");Object.defineProperty(Text.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let n=e&&e.get?e.get.call(this):null;return n||_l(this)}}),Ui=HTMLSlotElement.prototype.assign,HTMLSlotElement.prototype.assign=function(...n){if(this.hasAttribute(R)&&!Vi(this)){let r=Hp(this);if(r){let o=W(r);o.manualAssign||(o.manualAssign=new Map);let s=n.filter(Boolean);for(let[i,a]of o.manualAssign){if(i===this)continue;let c=a.filter(l=>{let u=l.deref();return u!==void 0&&s.indexOf(u)===-1});c.length!==a.length&&(c.length?o.manualAssign.set(i,c):o.manualAssign.delete(i))}if(s.length?o.manualAssign.set(this,s.map(i=>new WeakRef(i))):o.manualAssign.delete(this),o.applying&&o.pendingRecordNodes)for(let i of s)o.pendingRecordNodes.add(i);else o.pendingRecordNodes=new Set(s);Ie(o),ie(r)}return}return Ui?Ui.apply(this,n):void 0},Sl=!0}function mr(e,t){let n=e.manualAssign;if(!n||!n.size)return null;for(let[r,o]of n){let s=!1,i=o.filter(a=>{let c=a.deref();return c===void 0?!1:(c===t&&(s=!0),!0)});if(i.length!==o.length&&(i.length?n.set(r,i):n.delete(r)),s){let a=e.host;return a&&(r===a||a.contains(r))?r:null}}return null}function Hp(e){for(let t=e.parentElement;t;t=t.parentElement)if(t[k])return re(t,e)?t:null;return null}function Vi(e){let t=e;for(let n=0;n<128;n++){let r=t.parentNode;if(!r||r===t)return!1;if(r.nodeType===11&&r.host)return!0;t=r}return!1}function Wi(e,t){if(e.getAttribute(j)!==G)return[];let n=Array.from(e.childNodes);return!t||!t.flatten?n:zi(n,new Set,0)}function zi(e,t,n){if(n>=hl)return e.slice();let r=[];for(let o of e)if(o.nodeType===1&&o.tagName==="SLOT"){let s=o;if(t.has(s))continue;if(t.add(s),s.hasAttribute(R)){let i=Wi(s,{flatten:!1});if(i.length>0)for(let a of zi(i,t,n+1))r.push(a);else for(let a of zi(Array.from(s.childNodes),t,n+1))r.push(a)}else if(wr){let i=wr.call(s,{flatten:!0});for(let a of i)r.push(a)}else r.push(o)}else r.push(o);return r}function _l(e){let t=e.parentElement;return t&&t.tagName==="SLOT"&&t.hasAttribute(R)&&t.getAttribute(j)===G?t:null}var de,wr,Bi,Mo,Ui,Sl,Mt=A(()=>{qt();yr();Dt();dt();de=Al(),wr=null,Bi=null,Mo=null,Ui=null,Sl=!1;xl()});function Ki(e){if(!de)return!1;for(let t of e.querySelectorAll(`slot[${R}][${j}]`))if(re(e,t))return!0;return!1}function re(e,t){let n=t[It];if(n)return n===e;let r=typeof t.getAttribute=="function"?t.getAttribute(pr):null;if(r){let o=Bp(t,r);if(o)return o===e}for(let o=t.parentElement;o&&o!==e;o=o.parentElement)if(o.tagName.includes("-"))return!1;return!0}function Bp(e,t){let n=t.toLowerCase();for(let r=e.parentElement;r;r=r.parentElement)if(r.tagName.toLowerCase()===n)return r;return null}function $i(e,t,n){for(let l of n)C.delete(l);let r=t.getAttribute(j)!==G,o=e.lastSnapshot.get(t)||[],s=r||!Do(o,n);if(!r&&Do(Array.from(t.childNodes),n))return e.lastSnapshot.set(t,n.slice()),s;let i=t[Pe];if(r&&i)for(;t.firstChild;)i.appendChild(t.firstChild);let a=new Set(n);for(let l of Array.from(t.childNodes))a.has(l)||t.removeChild(l);let c=t.firstChild;for(let l of n){if(l===c){c=c.nextSibling;continue}t.insertBefore(l,c)}return t.setAttribute(j,G),e.lastSnapshot.set(t,n.slice()),s}function Fi(e,t){let n=t.getAttribute(j)===G;if(t.setAttribute(j,_i),!n)return vl(t),!1;for(e.lastSnapshot.delete(t);t.firstChild;)t.removeChild(t.firstChild);return vl(t),!0}function vl(e){let t=e[Pe];!t||t.childNodes.length===0||e.appendChild(t)}function Gi(e,t){if(!pt(e))return;let n=W(e),r=X(t.getAttribute("name")),o=n.assignedByName.get(r);if(o)for(let s of o)s.parentNode===t&&(C.add(s),t.removeChild(s));n.lastSnapshot.delete(t)}function El(e){e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1}))}function Hi(e,t){e.pendingSlotChanges||(e.pendingSlotChanges=new Set),e.pendingSlotChanges.add(t),!e.slotChangeScheduled&&(e.slotChangeScheduled=!0,queueMicrotask(()=>{e.slotChangeScheduled=!1;let n=e.pendingSlotChanges||new Set;e.pendingSlotChanges=new Set;for(let r of n)El(r)}))}function Do(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var qt=A(()=>{Mt();Dt();dt()});var bt=A(()=>{qt();hr();Mt();yr();jo();Dt();dt()});var wf={};$c(wf,{observeLazy:()=>Mm,observeViewportOnce:()=>Fm});function yf(e){let t=Va.get(e);return t||(t=import(e).finally(()=>Va.delete(e)),Va.set(e,t),t)}function Mm(e){for(let[t,n]of Object.entries(e))xt.set(t.toLowerCase(),n);if(typeof IntersectionObserver>"u"){for(let t of xt.values())yf(t);xt.clear();return}Mr||(Mr=new IntersectionObserver(qm,{rootMargin:"200px"})),bf(),!Ua&&typeof MutationObserver<"u"&&(Ua=new MutationObserver(()=>bf()),Ua.observe(document.body,{childList:!0,subtree:!0}))}function bf(){if(!(!Mr||!xt.size))for(let e of xt.keys()){if(customElements.get(e)){xt.delete(e);continue}for(let t of document.querySelectorAll(e))Mr.observe(t)}}function qm(e){for(let t of e){if(!t.isIntersecting)continue;let n=t.target.tagName.toLowerCase(),r=xt.get(n);r&&(yf(r),xt.delete(n),Mr?.unobserve(t.target))}}function $m(e){for(let t of e){if(!t.isIntersecting)continue;let n=ds.get(t.target);ds.delete(t.target),Dr?.unobserve(t.target),n&&n()}}function Fm(e,t){return typeof IntersectionObserver>"u"?(t(),()=>{}):(Dr||(Dr=new IntersectionObserver($m,{rootMargin:"200px"})),ds.set(e,t),Dr.observe(e),()=>{ds.delete(e),Dr?.unobserve(e)})}var xt,Mr,Ua,Va,Dr,ds,Sf=A(()=>{xt=new Map,Mr=null,Ua=null,Va=new Map;Dr=null,ds=new WeakMap});var Wa,za=A(()=>{Wa=typeof HTMLElement<"u"?class extends HTMLElement{constructor(){super(),this._webjsLoadedSrc=null,this._webjsLazyTeardown=null}static get observedAttributes(){return["src"]}connectedCallback(){this._webjsScheduleLoad()}disconnectedCallback(){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null)}attributeChangedCallback(t,n,r){t==="src"&&this.isConnected&&this._webjsScheduleLoad()}_webjsScheduleLoad(){let t=this.getAttribute("src");if(!t){this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),this._webjsLoadedSrc=null;return}let n=t;try{n=new URL(t,location.href).href}catch{}if(n===this._webjsLoadedSrc)return;this._webjsLazyTeardown&&(this._webjsLazyTeardown(),this._webjsLazyTeardown=null),(this.getAttribute("loading")||"eager").toLowerCase()==="lazy"?(this._webjsLoadedSrc=n,Promise.resolve().then(()=>(Sf(),wf)).then(({observeViewportOnce:o})=>{this._webjsLoadedSrc!==n||!this.isConnected||(this._webjsLazyTeardown=o(this,()=>{this._webjsLazyTeardown=null,this._webjsLoad(n)}))})):(this._webjsLoadedSrc=n,this._webjsLoad(n))}_webjsLoad(t){Promise.resolve().then(()=>(Ka(),_f)).then(({loadFrame:n})=>{this._webjsLoadedSrc!==t||!this.isConnected||n(this,t)})}}:null;typeof customElements<"u"&&Wa&&!customElements.get("webjs-frame")&&customElements.define("webjs-frame",Wa)});function Bm(e,t,n){switch(e){case"append":n&&t.append(n);break;case"prepend":n&&t.prepend(n);break;case"before":n&&t.before(n);break;case"after":n&&t.after(n);break;case"replace":n&&t.replaceWith(n);break;case"update":n&&t.replaceChildren(n);break;case"remove":t.remove();break;default:break}}function Ja(e,t){let n=t||(typeof document<"u"?document:null);if(!n)return;let r=null;if(typeof e=="string"){let s=n.createElement("template");s.innerHTML=e,r=s.content}else if(e&&e.nodeType)r=e;else return;let o=r.querySelectorAll?Array.from(r.querySelectorAll("webjs-stream")):[];if(o.length)for(let s of o)n.body.append(s);else n.body.append(r)}var Hm,Ga,qr=A(()=>{Hm=new Set(["append","prepend","before","after","replace","update"]);Ga=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this._webjsApplied||(this._webjsApplied=!0,this._webjsApply())}_webjsApply(){let t=(this.getAttribute("action")||"").toLowerCase(),n=this.ownerDocument||document,r=[],o=this.getAttribute("target");if(o){let i=n.getElementById(o);i&&(r=[i])}else{let i=this.getAttribute("targets");if(i)try{r=Array.from(n.querySelectorAll(i))}catch{r=[]}}let s=Hm.has(t)?this.querySelector("template"):null;try{for(let i of r){let a=s?s.content.cloneNode(!0):null;Bm(t,i,a)}}finally{this.remove()}}}:null;typeof customElements<"u"&&Ga&&!customElements.get("webjs-stream")&&customElements.define("webjs-stream",Ga)});var Af,xf=A(()=>{Af=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this.style.display||(this.style.display="contents")}}:null;typeof customElements<"u"&&Af&&!customElements.get("webjs-suspense")&&customElements.define("webjs-suspense",Af)});function ps(e,t){let n=typeof document<"u"?document:null,r=e||n;if(!r||typeof r.querySelectorAll!="function")return;if(t&&t.frame===!0){Ya(r,!0);return}Tf();let o=r===n,s=!!n&&!o&&typeof n.contains=="function"&&n.contains(r),i=!!n&&!o&&!s;i&&(Ya(n,!0),vt.clear(),Za.clear()),(o||i)&&(Xa=!0);let a=Q.ingested+Q.replaced;Wm(Ya(r),a)}function Ya(e,t){let n=null;for(let r of e.querySelectorAll('script[type="application/json"]#__webjs-seeds, script[type="application/json"][data-webjs-seeds]')){let o=Vm(r.getAttribute?.("data-webjs-dev"));o!==null&&(n=o),vf(t?null:r.textContent,r)}for(let r of e.querySelectorAll("[data-webjs-seed]"))vf(t?null:r.getAttribute("data-webjs-seed"),r,()=>r.removeAttribute("data-webjs-seed"));return n}function vf(e,t,n){if(e)try{let r=Se(e);if(r&&typeof r=="object")for(let o in r){vt.has(o)?Q.replaced++:Q.ingested++,vt.set(o,r[o]);let s=o.indexOf("/",o.indexOf("/")+1);s>0&&Za.add(o.slice(0,s))}}catch{}n?n():t.remove?.()}function Vm(e){return typeof e!="string"?null:e||"ok"}function Wm(e,t){if(e===null)return;let n=++Um;Tn={epoch:n,hits:Q.hits,misses:Q.misses,keyMisses:Q.keyMisses,merged:t,marker:e};let r=()=>{!Tn||Tn.epoch!==n||Tf()};try{typeof requestIdleCallback=="function"?requestIdleCallback(r,{timeout:1e3}):setTimeout(r,250)}catch{Tn=null}}function Tf(){let e=Tn;if(Tn=null,!!e)try{zm(e)}catch{}}function zm(e){let t=Q.hits-e.hits,n=Q.misses-e.misses,r=Q.ingested+Q.replaced-e.merged,o=Q.keyMisses-e.keyMisses;if(n===0)return;let s=e.marker==="streamed"?"This page streams (a Suspense or <webjs-suspense> boundary), and a streamed render emits no seeds, so every action call on it goes to the network.":e.marker==="drop"?"The page's seeds could not be serialized, so the whole block was dropped. Something an action returned is not serializer-safe; the server response reports collected above emitted.":o===0?null:"The key is the action file hash plus the function name plus the serialized arguments, so an argument the SSR render never used misses (a deliberate refetch after hydration misses too, and is expected). A miss on an action this page never seeded is NOT counted here, because a mutation or a client-only read could never have been seeded.";if(s===null)return;let a=e.marker==="streamed"||e.marker==="drop"?`${n} of ${t+n} action call(s) in the hydration window went to the network`:`${o} action call(s) in the hydration window asked for a key this page seeded under DIFFERENT arguments`;console.warn(`[webjs] SSR action seeding: ${a} (${r} seed(s) on this page, ${vt.size} still unconsumed). ${s} See https://webjs.dev/docs/data-fetching for the seeding reference.`)}function Km(e,t,n){Xa||(Xa=!0,ps());let r=`${e}/${t}/${n}`;if(vt.has(r)){let o=vt.get(r);return vt.delete(r),Q.hits++,o}return Q.misses++,Za.has(`${e}/${t}`)&&Q.keyMisses++,Ef}function Gm(){return{...Q,pending:vt.size}}var vt,Ef,Xa,Q,Za,Tn,Um,hs=A(()=>{ft();vt=new Map,Ef=Symbol("webjs.seed.miss"),Xa=!1,Q={ingested:0,replaced:0,hits:0,misses:0,keyMisses:0},Za=new Set,Tn=null,Um=0});function Qa(e){if(!(!Array.isArray(e)||!e.length)){ms+=1;for(let t of e)t&&kf.set(t,ms)}}function Ym(){return ms}function Xm(e,t,n){if(!(!Array.isArray(t)||!t.length)&&(kn.delete(e),kn.set(e,{tags:t.slice(),since:typeof n=="number"?n:ms}),kn.size>Jm)){let r=kn.keys().next().value;r!==void 0&&kn.delete(r)}}function Zm(e){let t=kn.get(e);if(!t)return!1;for(let n of t.tags)if((kf.get(n)||0)>t.since)return!0;return!1}function ec(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}var ms,kf,kn,Jm,gs=A(()=>{ms=0,kf=new Map,kn=new Map,Jm=1e3});function Rf(e){return Rn.test(e)}function ys(e){let t=rc(e);return t.includes("stylesheet")&&!t.includes("alternate")}function rc(e){return(e.getAttribute("rel")||"").toLowerCase().split(/\s+/)}var tc,nc,Rn,$r,zt,et,bs,Cf,ve,J=A(()=>{tc="text/vnd.webjs-stream.html",nc=["wheel","touchmove","keydown","pointerdown"],Rn=/\.(?:pdf|zip|tar|gz|7z|rar|dmg|exe|msi|deb|rpm|apk|ipa|xlsx?|docx?|pptx?|csv|odt|ods|odp|rtf|epub|mobi|xml|json|rss|atom|txt|md|wasm|mp3|mp4|mov|avi|webm|ogg|flac|wav|m4a|m4v|mkv|png|jpe?g|gif|webp|avif|bmp|ico|svg|tiff?|heic)$/i,$r="_top",zt="webjs:nav-fallback",et=new Set(["value","checked","selected","indeterminate","disabled","open","popover"]),bs="name=csp-nonce";Cf=250,ve="data-webjs-preload-style"});function Et(e,t,n="warn"){if(oc.has(e)||(oc.add(e),typeof console>"u"))return;let r=n==="error"?console.error:console.warn;r&&r.call(console,t)}function Lf(e,t,n,r){if(typeof process<"u"&&process.env||!r.has(U))return;let o="";try{o=new URL(e.getAttribute("action")||location.href,location.href).pathname}catch{o=location.pathname}if(n!=="post"){Et(`submit-nowhere:${o}:${n}`,`[webjs] this submission carries a bound server action's identity but submits as ${n.toUpperCase()}, which sends no body, so the identity rides the query string and the action never runs. A submitter's own formmethod overrides the form's, and WebJs honours it rather than refusing it, so check for a formmethod on the button that was pressed.`,"error");return}let s=t&&t.getAttribute("formenctype")||e.getAttribute("enctype")||"application/x-www-form-urlencoded";if(s.toLowerCase()==="text/plain"){Et(`submit-nowhere:${o}:${s}`,`[webjs] this submission carries a bound server action's identity but declares enctype="${s}", which the server cannot parse. The router declines to send it so both paths behave the same way, and both are answered with a 405. Drop the enctype and let the binding supply it.`,"error");return}o&&o!==location.pathname&&Et(`submit-elsewhere:${o}`,`[webjs] this submission carries a bound server action's identity but posts to "${o}" rather than this page, because the enclosing <form> declares its own action. A bound submitter emits no formaction, so the form's target wins, which is what native HTML does. The action runs only if "${o}" is a page route; against a route.ts or another origin the identity is ignored and nothing runs. Drop the form's action attribute to keep the submission on this page.`)}function ic(e,t){return!e&&!t&&typeof document<"u"&&document.readyState==="loading"}function ws(e,t,n,r){if(e!=="navigate"||!t||r&&r===n)return!1;try{return new URL(t).origin===new URL(n).origin}catch{return!1}}function Of(){if(typeof location>"u"||Nf)return;Nf=!0;let e=null;try{e=sessionStorage.getItem(zt),sessionStorage.removeItem(zt)}catch{}let t="";try{let n=performance.getEntriesByType("navigation")[0];t=n?n.type:""}catch{}ws(t,document.referrer,location.href,e)&&Ee("pre-boot-navigation",location.href,!1)}function Ee(e,t,n=!0){if(n)try{sessionStorage.setItem(zt,t)}catch{}if(typeof document<"u"&&typeof CustomEvent<"u")try{document.dispatchEvent(new CustomEvent("webjs:navigation-fallback",{detail:{cause:e,href:t,willReload:n}}))}catch{}typeof process<"u"&&process.env||Et(`fallback:${e}`,n?`[webjs] client router fell back to a full page load (${e}) navigating to ${t}. This is correct (no DOM corruption), just not a soft nav.`:`[webjs] client router degraded a soft navigation (${e}) for ${t}, without a full page load.`)}function Pf(e){typeof process<"u"&&process.env||Et(`stream-drop:${e}`,`[webjs] dropped a streamed Suspense resolve for "${e}": no #${e} boundary in the DOM. Benign if this navigation was superseded or degraded. A stuck skeleton here means the shell swap did not place the boundary.`)}function jf(){if(typeof process<"u"&&process.env||sc||typeof document>"u"||typeof getComputedStyle!="function")return;let e=document.documentElement;if(!e)return;sc=!0;let t;try{t=getComputedStyle(e).scrollBehavior}catch{return}t==="smooth"&&Et("scroll-behavior-smooth-html","[webjs] Detected `scroll-behavior: smooth` on <html>. The client router scrolls to the top instantly on navigation (like a native page load), so route transitions are not affected by it. It still applies to in-page #anchor links. Pairing it with a sticky `backdrop-filter` header can also flash on iOS during navigation.")}function Fr(e){if(typeof document>"u")return;let t=document.documentElement;if(!(!t||!t.hasAttribute("data-webjs-nav-progress")))try{e?t.setAttribute("data-navigating",""):t.removeAttribute("data-navigating")}catch{}}function If(){oc.clear(),sc=!1}function Df(e,t){return ic(e,t)}var oc,Nf,sc,Te=A(()=>{Ge();J();oc=new Set;Nf=!1;sc=!1});function ke(e){let t=new Map,n=[],r=!1;function o(s){if(!r){if(s.nodeType===8){let i=s.data.trim();if(i.startsWith("wj:children:")){let a=i.slice(12),c=a.lastIndexOf(":");if(c<=0||c===a.length-1){r=!0;return}let l=a.slice(0,c),u=a.slice(c+1);if(t.has(l)||n.some(f=>f.segment===l)){r=!0;return}n.push({segment:l,routeKey:u,start:s});return}if(i.startsWith("/wj:children")){let a=i.slice(12).replace(/^:/,""),c=n.pop();if(!c||c.segment!==a){r=!0;return}if(c.start.parentNode!==s.parentNode){r=!0;return}{let l=c.start.parentNode.tagName;if(l==="TABLE"||l==="TBODY"||l==="THEAD"||l==="TFOOT"||l==="TR"){r=!0;return}}t.set(c.segment,{routeKey:c.routeKey,start:c.start,end:s});return}return}if(s.hasChildNodes&&s.hasChildNodes())for(let i=s.firstChild;i&&!r;i=i.nextSibling)o(i)}}return o(e),r||n.length>0?null:t}function Cn(e,t){return e===t||e.startsWith(t==="/"?"/":t+"/")}function Hr(e,t){let n=[...e.keys()].filter(i=>t.has(i)).sort((i,a)=>i.length-a.length);if(n.length===0)return null;for(let i of n)if(e.get(i).routeKey!==t.get(i).routeKey){let a=null;for(let c of n){if(c===i)break;i!==c&&Cn(i,c)&&(a=c)}return a?{mode:"replace",segment:a,live:e.get(a),incoming:t.get(a)}:null}let r=n[n.length-1],o=i=>{let a=null;for(let c of i.keys())(a===null||c.length>a.length)&&(a=c);return a};return{mode:o(e)===r&&o(t)===r?"morph":"replace",segment:r,live:e.get(r),incoming:t.get(r)}}function Fe(){let e=ke(document.body);return e?[...e.entries()].map(([t,n])=>`${t}:${n.routeKey}`).join(","):""}var tt=A(()=>{});function Mf(e){He=e||(t=>{location.href=t})}function qf(){return N}function $f(){return++N}function Ss(){return++N}function ac(e){ce=e}function Ff(e){Br=e}function Hf(e){let t=Br!==null&&Br===e;return Br=null,t}function _s(){Br=null}var N,He,ce,Br,nt=A(()=>{N=0,He=e=>{location.href=e};ce=!1;Br=null});function Kt(e){if(!/^\s*(?:<!doctype|<html)/i.test(e)&&typeof document<"u"&&document.implementation)try{let n=document.implementation.createHTMLDocument();if(typeof n.body.setHTMLUnsafe=="function")n.body.setHTMLUnsafe(e);else{let r=n.createElement("template");r.innerHTML=e,n.body.appendChild(r.content)}return n}catch{}return typeof Document<"u"&&typeof Document.parseHTMLUnsafe=="function"&&Qm()?Document.parseHTMLUnsafe(e):eg(e)}function Qm(){if(Nn!==null)return Nn;try{Nn=Document.parseHTMLUnsafe("<!doctype html><body><!--c--><i></i>")?.body?.firstChild?.nodeType===8}catch{Nn=!1}return Nn}function cc(){Nn=null}function eg(e){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(e,"text/html")}var Nn,Ur=A(()=>{Nn=null});function As(e){for(let t of e.composedPath())if(t instanceof HTMLAnchorElement)return t;return null}function lc(e){let t=e;for(;t;){if(t instanceof HTMLAnchorElement)return t;let n=t.nodeType===1?t:null;if(n){let o=n.closest&&n.closest("a");if(o instanceof HTMLAnchorElement)return o}let r=t.getRootNode?t.getRootNode():null;t=typeof ShadowRoot<"u"&&r instanceof ShadowRoot?r.host:null}return null}var xs=A(()=>{});function Vr(e,t){return((t&&t.hasAttribute("formmethod")?t.getAttribute("formmethod")||"":e.getAttribute("method")||"")||"get").toLowerCase()}function Wr(e,t){return t&&t.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||e.action||location.href}function tg(e){let t=String(e||"").toLowerCase();return t==="multipart/form-data"?"multipart/form-data":t==="text/plain"?"text/plain":"application/x-www-form-urlencoded"}function zr(e,t){return tg(t&&t.hasAttribute("formenctype")?t.getAttribute("formenctype"):e.getAttribute("enctype"))}function Kr(e,t){if(t==="multipart/form-data")return e;let n=new URLSearchParams;for(let[r,o]of e)n.append(r,typeof o=="string"?o:o.name);return n}function Gr(e,t){try{return new FormData(e,t||void 0)}catch{let n=new FormData(e);return t&&t.getAttribute("name")&&n.append(t.getAttribute("name"),t.getAttribute("value")||""),n}}var vs=A(()=>{});function rt(e){return e.tagName==="LINK"&&!!e.getAttribute("href")&&ys(e)}function rg(e){return((e.hasAttribute(le)?e.getAttribute(le):e.getAttribute("media"))||"").trim()}function Es(e,t){let n=e.getAttribute("href");if(!n)return null;try{let r=new URL(n,t);r.searchParams.delete(ng);let o=rg(e);return o&&o!=="all"?`${r.href} ${o}`:r.href}catch{return null}}function Ts(){if(!(typeof document>"u"||!document.head))for(let e of document.querySelectorAll("link[href]")){if(Jr.has(e)||!rt(e))continue;let t=Es(e,document.baseURI);t&&Jr.set(e,t)}}function Bf(e){let t=Jr.get(e);return t||(t=Es(e,document.baseURI)||"",t&&Jr.set(e,t)),t||null}function dc(e){e.hasAttribute(le)||(e.setAttribute(le,e.getAttribute("media")||""),e.setAttribute("media","not all"))}function fc(e){if(!e.hasAttribute(le))return;let t=e.getAttribute(le);e.removeAttribute(le),t?e.setAttribute("media",t):e.removeAttribute("media")}function Uf(e,t){if(t?e.setAttribute(Tt,""):e.removeAttribute(Tt),!t){fc(e),e.sheet&&(e.sheet.disabled=!1);return}if(e.sheet){e.sheet.disabled=!0;return}if(dc(e),uc.has(e))return;uc.add(e);let n=()=>{e.removeEventListener("load",n),e.removeEventListener("error",n),uc.delete(e),e.hasAttribute(Tt)&&(fc(e),e.sheet&&(e.sheet.disabled=!0))};e.addEventListener("load",n),e.addEventListener("error",n)}function pc(e,t){let n=null,r=null;for(let o of document.head.querySelectorAll(`link[${Be}]`))o===e||!rt(o)||(r||(r=o),Cn(t,o.getAttribute(Be))&&(n=o));n?n.after(e):r?r.before(e):document.head.appendChild(e)}function ks(e={}){let t=e.base||(typeof document<"u"?document.baseURI:""),n=new Map,r=new Map;for(let o of document.querySelectorAll("link[href]")){if(!rt(o))continue;let s=o.parentNode===document.head;if(!s&&e.leaving&&e.leaving(o))continue;let i=Bf(o);if(!i)continue;let a=o.hasAttribute(ve)?s?r:null:n;a&&!a.has(i)&&a.set(i,o)}return(o,s)=>{if(o.hasAttribute(Tt)||o.hasAttribute(ve))return!0;let i=Es(o,t);if(!i)return!1;let a=o.getAttribute(Be),c=n.get(i);if(c){if(e.frame)return!0;let f=c.hasAttribute(Tt);f&&Uf(c,!1);let d=c.getAttribute(Be);return a&&d!==null&&d!==a&&(!f&&!(e.segment!=null&&Cn(d,e.segment))&&Cn(a,d)||c.setAttribute(Be,a)),!0}let l=e.frame?null:r.get(i);if(l){for(let f of o.attributes)f.name==="href"||f.name==="nonce"||(f.name==="media"&&l.hasAttribute(le)?l.setAttribute(le,f.value):l.setAttribute(f.name,f.value));return l.removeAttribute(ve),r.delete(i),n.set(i,l),!0}if(!a)return!1;if(e.frame)return!0;let u=s(o);try{u.setAttribute("href",new URL(o.getAttribute("href"),t).href)}catch{}return pc(u,a),Jr.set(u,i),n.set(i,u),!0}}function Rs(){if(!(typeof document>"u"||!document.head))for(let e of document.head.querySelectorAll(`link[${le}]`))e.hasAttribute(Tt)||fc(e)}function hc(e,t,n){if(typeof document>"u"||!document.head)return;let r=n||document.baseURI,o=new Set;if(t)for(let s of t.querySelectorAll("link[href]")){if(!rt(s)||s.hasAttribute(Tt)||s.hasAttribute(ve))continue;let i=Es(s,r);i&&o.add(i)}for(let s of document.head.querySelectorAll(`link[${Be}]`)){if(s.hasAttribute(ve)||s.hasAttribute(Tt)||s.hasAttribute("disabled")||!rt(s))continue;let i=s.getAttribute(Be);if(!Cn(i,e))continue;let a=Bf(s);a&&o.has(a)||Uf(s,!0)}}var Be,Tt,le,ng,Jr,uc,Yr=A(()=>{tt();J();Be="data-wj-style-owner",Tt="data-wj-style-off",le="data-wj-style-media",ng="__webjs_dev";Jr=new WeakMap;uc=new WeakSet});function Ns(){if(typeof document>"u")return"";let e=document.querySelector('meta[name="csp-nonce"]');return e&&e.getAttribute("content")||""}function Xr(e){let t=document.createElement("script");for(let r of e.attributes)r.name!=="nonce"&&t.setAttribute(r.name,r.value);let n=Ns();return n&&t.setAttribute("nonce",n),t.textContent=e.textContent,t}function Gt(e){if(!e.hasAttribute("nonce"))return e.cloneNode(!0);let t=e.cloneNode(!0),n=Ns();return n?t.setAttribute("nonce",n):t.removeAttribute("nonce"),t}function he(e){if(!e.hasAttribute("nonce"))return e.outerHTML;let t=e.cloneNode(!0);return t.removeAttribute("nonce"),t.outerHTML}function Cs(e){let t=e.getAttribute("name");if(t)return"name="+t;let n=e.getAttribute("property");if(n)return"property="+n;let r=e.getAttribute("http-equiv");return r?"http-equiv="+r:e.hasAttribute("charset")?"charset":null}function og(e){if(!e.querySelector("meta"))return;let t=o=>{let s=new Map;for(let i of o.querySelectorAll("meta")){let a=Cs(i);if(!a||a===bs)continue;let c=s.get(a);c?c.push(i):s.set(a,[i])}return s},n=t(e),r=t(document.head);for(let[o,s]of n){let i=r.get(o)||[],a=s.map(he).join(`
2
+ `),c=i.map(he).join(`
3
+ `);if(a!==c){if(s.length===1&&i.length===1){let l=i[0];for(let u of[...l.attributes])l.removeAttribute(u.name);for(let u of s[0].attributes)l.setAttribute(u.name,u.value);continue}for(let l of i)l.remove();for(let l of s)document.head.appendChild(Gt(l))}}for(let[o,s]of r)if(!n.has(o))for(let i of s)i.remove()}function Ln(e,t={}){let n=t.styles===!1?null:ks(t),r=e.querySelector("title");r&&(document.title=r.textContent||"");let o=new Set;for(let s of document.head.children)o.add(he(s));for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(s.tagName==="META"&&Cs(s)||rt(s)&&(!n||n(s,Gt))||o.has(he(s))||(s.tagName==="SCRIPT"?document.head.appendChild(Xr(s)):document.head.appendChild(Gt(s))));og(e)}function mc(e,t={}){let n=ks(t),r=new Set;for(let o of document.head.children)r.add(he(o));for(let o of e.children)!rt(o)||n(o,Gt)||r.has(he(o))||document.head.appendChild(Gt(o))}function sg(e){return e.tagName==="STYLE"?!0:e.tagName==="LINK"&&rc(e).includes("stylesheet")}function Zr(e,t={}){let n=t.styles===!1?null:ks(t),r=document.head,o=e.querySelector("title");o&&(document.title=o.textContent||"");let s=new Set;for(let a of r.children)a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&s.add(he(a));let i=new Set;for(let a of e.children)a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&i.add(he(a));for(let a of[...r.children])a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&a.tagName!=="TITLE"&&(sg(a)||a.tagName==="META"&&Cs(a)===bs||i.has(he(a))||a.remove());for(let a of e.children)a.tagName==="SCRIPT"&&a.getAttribute("type")==="importmap"||a.tagName!=="BASE"&&a.tagName!=="TITLE"&&(a.tagName==="META"&&Cs(a)===bs||rt(a)&&(!n||n(a,Gt))||s.has(he(a))||(a.tagName==="SCRIPT"?r.appendChild(Xr(a)):r.appendChild(Gt(a))))}var On=A(()=>{J();Yr()});function Ps(e){let t=e;for(;t;){let n=t.closest("webjs-frame");if(n&&n.id)return n.id;let r=t.getRootNode();if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot)t=r.host;else break}return null}function Re(e){if(!e)return null;let t=e.closest&&e.closest("[data-webjs-frame]"),n=t?t.dataset?t.dataset.webjsFrame:t.getAttribute("data-webjs-frame"):null;if(n!=null&&n!==""){if(n===$r)return null;let r=typeof document<"u"?document.getElementById(n):null;return r&&r.tagName&&r.tagName.toLowerCase()==="webjs-frame"?n:(Et(`webjs:frame-unresolved:${n}`,`[webjs] data-webjs-frame="${n}" did not match a live <webjs-frame id="${n}">; performing a normal navigation instead.`),null)}return Ps(e)}function gc(e){if(!e||typeof document>"u")return null;let t=null;try{t=document.querySelector(`webjs-frame#${CSS.escape(e)}`)}catch{t=document.getElementById(e)}return!t||!t.tagName||t.tagName.toLowerCase()!=="webjs-frame"?null:t}function Qr(e,t){let n=gc(e);if(!n)return null;let r=Ls.has(n);return Ls.set(n,t),n.setAttribute("aria-busy","true"),r||n.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:e,busy:!0}})),n}function eo(e,t){if(Ls.get(e)!==t)return;Ls.delete(e),e.setAttribute("aria-busy","false");let n=e.id||null;e.dispatchEvent(new CustomEvent("webjs:frame-busy",{bubbles:!0,detail:{frameId:n,busy:!1}}))}function to(e,t,n){let r=Os.has(e);return Os.set(e,t),e.setAttribute("aria-busy","true"),r||e.dispatchEvent(new CustomEvent("webjs:submit-start",{bubbles:!0,detail:{form:e,url:n}})),e}function no(e,t,n,r){if(Os.get(e)!==t)return;Os.delete(e),e.setAttribute("aria-busy","false");let o=new CustomEvent("webjs:submit-end",{bubbles:!0,detail:{form:e,url:n,ok:!!r}});e.isConnected?e.dispatchEvent(o):typeof document<"u"?document.dispatchEvent(o):e.dispatchEvent(o)}function bc(e){if(!e||!e.head)return"";let t=e.head.querySelectorAll('[data-webjs-track="reload"]');if(!t.length)return"";let n="";for(let r of t)n+=he(r);return n}var Ls,Os,kt=A(()=>{J();Te();On();Ls=new WeakMap;Os=new WeakMap});function zf(e,t){if(typeof document>"u"||!document.documentElement)return()=>{};me&&me();let n=document.documentElement,r=n.style.getPropertyValue("overflow-anchor");n.style.setProperty("overflow-anchor","none");let o=null,s=typeof t=="number",a=s&&typeof setTimeout=="function"?setTimeout(()=>{s=!1},Cf):null,c=typeof t=="number"&&typeof window<"u"?()=>{s&&(Math.abs(window.scrollY-t)<=1&&Math.abs(window.scrollX-(e||0))<=1||window.scrollTo({left:e||0,top:t,behavior:"instant"}))}:null,l=()=>{if(me===l){if(me=null,o&&(clearTimeout(o),o=null),a&&clearTimeout(a),s=!1,typeof window<"u"){for(let u of nc)window.removeEventListener(u,l,{capture:!0});c&&window.removeEventListener("scroll",c)}r?n.style.setProperty("overflow-anchor",r):n.style.removeProperty("overflow-anchor")}};if(me=l,o=setTimeout(l,2e3),typeof window<"u"){for(let u of nc)window.addEventListener(u,l,{capture:!0,passive:!0});c&&window.addEventListener("scroll",c,{passive:!0})}return l}function Kf(e){if(typeof document>"u"||!document.documentElement)return()=>{};if(ge&&ge(),!(e>0))return()=>{};let t=document.documentElement,n=t.style.getPropertyValue("min-height");t.style.setProperty("min-height",e+"px");let r=null,o=()=>{ge===o&&(ge=null,r&&(clearTimeout(r),r=null),n?t.style.setProperty("min-height",n):t.style.removeProperty("min-height"))};return ge=o,r=setTimeout(o,2e3),o}function Is(e){if(typeof requestAnimationFrame!="function"){setTimeout(e,0);return}requestAnimationFrame(()=>requestAnimationFrame(e))}function Ds(){js+=1}function ro(e,t){let n=Vf(e)||Vf(t);return n?(n.getAttribute("data-preserve-scroll")||"").toLowerCase().trim()!=="false":!1}function Vf(e){return!e||typeof e.closest!="function"?null:e.closest("[data-preserve-scroll]")}var me,ge,js,Ms=A(()=>{J();me=null;ge=null;js=0});function yc(e){if(!ce||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=As(e);if(!t||t.hasAttribute("download")||t.target&&t.target!=="_self")return;let n=t.href;if(!n)return;let r=new URL(n);if(r.origin!==location.origin)return;if(r.pathname===location.pathname&&r.search===location.search&&r.href.includes("#")){Ff(r.href);return}if(t.hasAttribute("data-no-router")||Rn.test(r.pathname))return;e.preventDefault();let o=Re(t);oo(n,!1,o,{preserveScroll:ro(t)})}function Pn(e){Gf(location.href)||oo(location.href,!0,null)}function jn(e){if(!ce||e.defaultPrevented)return;let t=e.target;if(!t||t.nodeType!==1||t.tagName!=="FORM"||t.hasAttribute("data-no-router"))return;let n=e.submitter??null;if(n&&n.hasAttribute("data-no-router"))return;let r=n&&n.hasAttribute("formtarget")?n.getAttribute("formtarget")||"":t.getAttribute("target")||"";if(r&&r!=="_self")return;let o=Vr(t,n);if(o==="dialog")return;let s=zr(t,n),i=o==="get"||o==="head",a=Wr(t,n),c;try{c=new URL(a,location.href)}catch{return}if(c.origin!==location.origin||Rn.test(c.pathname))return;let l=Gr(t,n);if(Lf(t,n,o,l),!i&&s==="text/plain")return;let u=Kr(l,s);e.preventDefault();let f=Re(n||t),d=ro(n||t,t);Jf(c.href,o,u,f,t,{preserveScroll:d})}var qs=A(()=>{xs();J();nt();Te();vs();kt();Ms();Jt()});function wc(e){let t=Ue(e);document.dispatchEvent(new CustomEvent("webjs:before-cache",{detail:{url:e}})),D.has(t)&&D.delete(t);let n={html:document.documentElement.outerHTML,scrollX:typeof window<"u"&&window.scrollX||0,scrollY:typeof window<"u"&&window.scrollY||0,scrollHeight:typeof document<"u"&&document.documentElement&&document.documentElement.scrollHeight||0};for(D.set(t,n);D.size>16;){let r=D.keys().next().value;D.delete(r)}}function Yf(e){let t=Ue(e),n=D.get(t);return n==null?null:(D.delete(t),D.set(t,n),n)}function Ue(e,t){let n=new URL(e,location.href),r=n.pathname+n.search;return t?`${t} ${r}`:r}var D,In=A(()=>{J();D=new Map});function dg(e){let t=Ve.get(e);return t==null?!1:lo()-t>=Sc?(Ve.delete(e),!1):!0}function Hn(){Ve.clear()}function pg(e){for(Ve.has(e)&&Ve.delete(e),Ve.set(e,lo());Ve.size>fg;)Ve.delete(Ve.keys().next().value)}function uo(){try{let e=typeof navigator<"u"?navigator.connection:null;if(e&&(e.saveData===!0||typeof e.effectiveType=="string"&&/2g$/.test(e.effectiveType))||typeof matchMedia=="function"&&matchMedia("(prefers-reduced-data: reduce)").matches)return!0}catch{}return!1}function $s(){try{if(typeof matchMedia=="function")return matchMedia("(hover: hover) and (pointer: fine)").matches}catch{}return!0}function hg(e){let t=e.getAttribute("rel");return t?t.toLowerCase().split(/\s+/).filter(Boolean):[]}function $n(e){if(!e||!(e instanceof HTMLAnchorElement)||e.hasAttribute("download")||e.hasAttribute("data-no-router")||e.target&&e.target!=="_self")return null;let t=e.href;if(!t)return null;let n;try{n=new URL(t)}catch{return null}return n.origin!==location.origin||n.pathname===location.pathname&&n.search===location.search&&n.href.includes("#")||Rn.test(n.pathname)?null:t}function Fs(e){if(e.hasAttribute("data-no-prefetch"))return!0;let t=hg(e);return t.includes("external")||t.includes("no-prefetch")}function Fn(e){if(Fs(e))return"none";switch((e.getAttribute("data-prefetch")||"").toLowerCase().trim()){case"false":case"none":return"none";case"true":case"render":return"render";case"auto":case"viewport":return"viewport";case"intent":return"intent";default:return $s()?"intent":"viewport"}}function Ct(e,t){if(!ce||typeof fetch!="function"||uo())return;let n=Ue(e,t);if(typeof location<"u"&&n===Ue(location.href,t)||ot.has(n)||so.has(n))return;let r=L.get(n);if(r&&lo()-r.at<Sc||dg(n))return;if(ot.size>=Xf){for(so.add(n),Mn.push({href:e,frameId:t||null});Mn.length>cg;){let i=Mn.shift();so.delete(Ue(i.href,i.frameId))}return}let o=Fe();if(!o&&typeof document<"u"&&document.readyState==="loading")return;ot.add(n);let s={"x-webjs-router":"1","x-webjs-prefetch":"1"};o&&(s["x-webjs-have"]=o),t&&(s["x-webjs-frame"]=t),fetch(e,{method:"GET",headers:s,credentials:"same-origin",cache:"no-cache"}).then(async i=>{let a=i.headers.get("content-type")||"";if(!/^text\/html\b/i.test(a)||i.status>=400)return;let c=i.headers.get("x-webjs-build"),l=i.headers.get("x-webjs-src"),u=typeof document<"u"?document.querySelector('script[type="importmap"]'):null,f=u?u.getAttribute("data-webjs-build"):null,d=u?u.getAttribute("data-webjs-src"):null;if((c&&f&&c!==f||l&&d&&l!==d)&&(D.clear(),Xt(n),Hn()),(i.headers.get("x-webjs-frame")||null)!==(t||null)){pg(n);return}let m=i.redirected&&i.url?i.url:e,b=await i.text();co.has(n)||gg(n,{html:b,build:c,src:l,finalUrl:m,frameId:t||null,at:lo()})}).catch(()=>{}).finally(()=>{ot.delete(n),co.delete(n),mg()})}function mg(){for(;Mn.length&&ot.size<Xf;){let{href:e,frameId:t}=Mn.shift();so.delete(Ue(e,t)),Ct(e,t)}}function gg(e,t){for(L.has(e)&&L.delete(e),L.set(e,t);L.size>ag;){let n=L.keys().next().value;L.delete(n)}typeof document<"u"&&document.dispatchEvent(new CustomEvent("webjs:prefetch",{detail:{url:t.finalUrl,key:e,from:"prefetch"}}))}function Hs(e){let t=/<!--wj:children:([^>]*?)-->/.exec(e||"");return t?t[1]:null}function fo(e,t,n){let r=Ue(e,n),o=L.get(r);if(!o)return null;if(lo()-o.at>=Sc)return L.delete(r),null;if(o.frameId)return L.delete(r),gc(o.frameId)?o:null;let s=Hs(o.html);return s&&!new Set(String(t??(Fe()||"")).split(",").filter(Boolean)).has(s)?(L.delete(r),null):(L.delete(r),o)}function lo(){try{if(typeof performance<"u"&&typeof performance.now=="function")return performance.now()}catch{}return 0}function Yt(e){if(!ce)return;let t=lc(e.target);if(!t)return;let n=Fn(t);if(n==="none"||n==="render")return;let r=$n(t);if(r){if(e.type==="touchstart"){Ct(r,Re(t));return}n==="intent"&&(io===t&&qn||(po(),io=t,qn=setTimeout(()=>{qn=null,io=null,t.isConnected&&Ct(r,Re(t))},lg)))}}function _c(e){let t=lc(e.target);t&&t===io&&po()}function po(){qn&&(clearTimeout(qn),qn=null),io=null}function Bs(){for(let e of ao)clearTimeout(e);ao.clear(),Dn=new WeakMap}function Us(){if(typeof document>"u"||uo())return;let e=typeof IntersectionObserver<"u";e&&(Rt?(Rt.disconnect(),Bs()):Rt=new IntersectionObserver(t=>{for(let n of t){let r=n.target;if(n.isIntersecting){if(Dn.has(r))continue;let o=setTimeout(()=>{ao.delete(o),Dn.delete(r),Rt.unobserve(r);let s=$n(r);s&&Fn(r)==="viewport"&&Ct(s,Re(r))},ug);Dn.set(r,o),ao.add(o)}else{let o=Dn.get(r);o&&(clearTimeout(o),ao.delete(o),Dn.delete(r))}}},{threshold:.5}));for(let t of document.querySelectorAll("a[href]")){let n=Fn(t);if(n==="render"){let r=$n(t);r&&Ct(r,Re(t))}else n==="viewport"&&e&&Rt.observe(t)}}function Xt(e){L.clear();for(let t of ot)t!==e&&co.add(t)}function Zf(e,t){let n=Ue(e,t);L.delete(n),ot.has(n)&&co.add(n)}function Qf(e,t){return L.get(Ue(e,t))||null}function ed(){return ot.size}function td(){L.clear(),Ve.clear(),ot.clear(),co.clear(),Mn.length=0,so.clear(),po(),Bs()}function nd(){Rt&&(Rt.disconnect(),Rt=null)}var ag,Sc,Xf,cg,lg,ug,L,Ve,fg,ot,co,Mn,so,qn,io,Rt,Dn,ao,Zt=A(()=>{xs();tt();J();kt();nt();In();ag=8,Sc=3e4,Xf=3,cg=24,lg=100,ug=250,L=new Map,Ve=new Map,fg=16;ot=new Set,co=new Set,Mn=[],so=new Set,qn=null,io=null,Rt=null,Dn=new WeakMap,ao=new Set});function Ac(e){for(let t of e.querySelectorAll("template[data-webjs-resolve]")){let n=t.cloneNode(!0);document.body.appendChild(n);let r=n.getAttribute("data-webjs-resolve"),o=window.__webjsResolve;r&&typeof o=="function"&&o(r)}}async function ho(e){if(!e.body||typeof e.body.getReader!="function")return{shell:await e.text(),streaming:!1};let t=e.body.getReader(),n=new TextDecoder,r="",o="<template data-webjs-resolve",s="<!--wj-stream-shell-->",i=/<\/html\s*>/i;for(;;){let{value:a,done:c}=await t.read();a&&(r+=n.decode(a,{stream:!0})),c&&(r+=n.decode());let l=r.indexOf(s);if(l!==-1)return{shell:r.slice(0,l),streaming:!0,reader:c?null:t,dec:n,rest:r.slice(l+s.length)};let u=r.indexOf(o);if(u!==-1)return{shell:r.slice(0,u),streaming:!0,reader:c?null:t,dec:n,rest:r.slice(u)};if(c)return{shell:r,streaming:!1};let f=i.exec(r);if(f){let d=f.index+f[0].length;return{shell:r.slice(0,d),streaming:!0,reader:t,dec:n,rest:r.slice(d)}}}}function Vs(e){let t=/<template\s+data-webjs-resolve="([^"]+)"\s*>/i.exec(e);if(!t)return null;let n=t[1],r=t.index+t[0].length,o=/<(\/?)template\b[^>]*>/gi;o.lastIndex=r;let s=1,i;for(;i=o.exec(e);)if(i[1]==="/"){if(s--,s===0)return{id:n,content:e.slice(r,i.index),rest:e.slice(i.index+i[0].length)}}else s++;return null}function Ws(e,t){let n=document.getElementById(e);if(!n){Pf(e);return}let r=document.createElement("template");r.innerHTML=t;let o=[...r.content.childNodes];for(let s of o){let i=s.nodeType===1?s.getAttribute("data-webjs-redirect"):null;if(i){en(i,{replace:!0});return}}n.replaceWith(r.content);for(let s of o)s.nodeType===1&&zs(s)}async function mo(e,t,n,r){let o=n,s=()=>{let i;for(;i=Vs(o);){if(!r())return!1;Ws(i.id,i.content),o=i.rest}return!0};if(!e){s();return}try{for(;;){if(!s()){try{await e.cancel()}catch{}return}let{value:i,done:a}=await e.read();if(i&&(o+=t.decode(i,{stream:!0})),a){o+=t.decode(),s();return}}}catch{}}var go=A(()=>{Te();Qt();Jt()});function od(e){if(!(typeof document>"u"||!e))for(let[t,n]of bg){let r=e[t],o=document[t];if(!r||!o||!r.hasAttribute(n))continue;let s=rd(r.getAttribute(n));for(let i of rd(o.getAttribute(n)))s.includes(i)||o.removeAttribute(i);for(let i of s){let a=r.getAttribute(i);a===null?o.removeAttribute(i):o.getAttribute(i)!==a&&o.setAttribute(i,a)}o.setAttribute(n,s.join(" "))}}var bg,rd,sd=A(()=>{bg=[["documentElement","data-wj-html"],["body","data-wj-body"]],rd=e=>(e||"").split(/\s+/).filter(Boolean)});function Un(){if(typeof document>"u")return!1;let e=document.querySelector('meta[name="view-transition"]');return e?(e.getAttribute("content")||"").trim().toLowerCase()==="same-origin":!1}function tn(e,t){let n=typeof document<"u"?document.startViewTransition:void 0;if(Un()&&typeof n=="function"){let r=n.call(document,e);return r&&r.finished&&typeof r.finished.then=="function"?r.finished.then(()=>{t&&t()}).catch(()=>{}):t&&t(),r&&r.updateCallbackDone&&typeof r.updateCallbackDone.then=="function"?r.updateCallbackDone.catch(()=>{}):Promise.resolve()}return e(),t&&t(),Promise.resolve()}function bo(e,t){if(!e||!t||typeof e.querySelectorAll!="function")return;let n=e.querySelectorAll("[data-webjs-permanent][id]");for(let r of n){let o=r.id;if(!o)continue;let s=null;try{s=t.querySelector(`#${CSS.escape(o)}`)}catch{s=null}if(!s||!r.hasAttribute||!r.hasAttribute("data-webjs-permanent"))continue;let i=s.parentNode;i&&s!==r&&(i.replaceChild(r,s),Bn.add(r))}}function st(e,t){let n=[];for(let r of e){if(r.nodeType!==1)continue;let o=r;if(o.hasAttribute&&o.hasAttribute("data-webjs-permanent")&&o.id&&n.push(o),typeof o.querySelectorAll=="function")for(let s of o.querySelectorAll("[data-webjs-permanent][id]"))n.push(s)}if(n.length)for(let r of n){let o=r.id;if(!o)continue;let s=yg(t,o);if(!s||s===r)continue;let i=s.parentNode;if(i)i.replaceChild(r,s),Bn.add(r);else{let a=t.indexOf(s);a!==-1&&(t[a]=r,Bn.add(r))}}}function yg(e,t){for(let n of e){if(n.nodeType!==1)continue;let r=n;if(r.id===t)return r;if(typeof r.querySelector=="function"){let o=null;try{o=r.querySelector(`#${CSS.escape(t)}`)}catch{o=null}if(o)return o}}return null}var Bn,nn=A(()=>{Bn=new WeakSet});function id(e,t){let n=[];for(let r=e.parentNode;r;r=r.parentNode)if(n.unshift(r),r===t)return n;return null}function ld(e,t,n,r){let o=id(e.start,n),s=id(t.start,r);if(!o||!s||o.length!==s.length)return null;for(let i=1;i<o.length;i++)if(o[i].tagName!==s[i].tagName||Ks(o[i]))return null;return{live:o,incoming:s,liveRange:e,incomingRange:t}}function ad(e,t,n){let r=[],o=[],s=r;for(let i=e.firstChild;i;i=i.nextSibling)i===t&&(s=null),s&&s.push(i),i===n&&(s=o);return{before:r,after:o}}function wg(e,t){for(let n of t.attributes)et.has(n.name)||n.name==="data-wj-serialized"||e.getAttribute(n.name)!==n.value&&e.setAttribute(n.name,n.value);for(let n of[...e.attributes])et.has(n.name)||t.hasAttribute(n.name)||e.removeAttribute(n.name)}function Sg(e,t){let n=new Map;for(let i of e){if(i.nodeType!==1)continue;let a=be(i);a&&n.set(a,i)}let r=new Set,o=0,s=[];for(let i of t){if(i.nodeType===1){let c=be(i),l=c?n.get(c):null;if(l&&!r.has(l)){r.add(l),it(l,i),s.push(l),o=Math.max(o,e.indexOf(l)+1);continue}}let a=o;for(;a<e.length;a++){let c=e[a];if(r.has(c)||c.nodeType!==i.nodeType)continue;if(c.nodeType!==1)break;let l=c;if(!be(l)&&l.tagName===i.tagName)break}if(a<e.length&&(i.nodeType===1||i.nodeType===3||i.nodeType===8)){let c=e[a];r.add(c),c.nodeType===1?it(c,i):c.nodeValue!==i.nodeValue&&(c.nodeValue=i.nodeValue),s.push(c),o=a+1;continue}s.push(i)}return s}function cd(e,t,n,r,o){let s=n.map(u=>document.importNode(u,!0));st(t,s);let i=Sg(t,s),a=new Set(i),c=r;if(o){let u=-1;for(let d=0;d<t.length;d++)a.has(t[d])&&(u=d);let f=t.slice(u+1);if(f.length){for(let d of f)a.add(d);c=f[0]}}for(let u of t)!a.has(u)&&u.parentNode===e&&e.removeChild(u);for(let u=i.length-1;u>=0;u--){let f=i[u];(f.parentNode!==e||f.nextSibling!==c)&&e.insertBefore(f,c),c=f}let l=new Set(t);return i.filter(u=>!l.has(u))}function ud(e){let{live:t,incoming:n,liveRange:r,incomingRange:o}=e,s=[];for(let i=0;i<t.length;i++){let a=t[i],c=n[i];i>0&&wg(a,c);let l=i===t.length-1,u=l?r.start:t[i+1],f=l?r.end:t[i+1],d=l?o.start:n[i+1],p=l?o.end:n[i+1],m=ad(a,u,f),b=ad(c,d,p),g=[...cd(a,m.before,b.before,u,!1),...cd(a,m.after,b.after,null,i===0)];for(let w of g)w.nodeType===1&&s.push(Nt(w));for(let w of[m.before,m.after])for(let S of w)S.nodeType===1&&S.isConnected&&s.push(S)}for(let i of s)i.isConnected&&at(i)}var fd=A(()=>{J();rn();Qt();nn()});function sn(e,t,n,r,o,s,i,a){let c=typeof location<"u"?location.href:"";if(r)try{c=new URL(r,c).href}catch{}Ts();let l=!1,u=()=>{if(!l){l=!0;try{ps(e,{frame:!!t})}catch{}if(!t)try{od(e)}catch{}}};try{for(let b of e.querySelectorAll("[data-wj-host]"))b.setAttribute("data-wj-serialized","")}catch{}try{typeof sessionStorage<"u"&&(!r||t||n)&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}if(r&&!t&&!n){let b=document.querySelector('script[type="importmap"]'),g=b?b.getAttribute("data-webjs-build"):null,w=!1;if(o&&g&&(w=o!==g),!w&&e.head&&e.head.children.length>0){let S=bc(document),_=bc(e);S!==_&&(w=!0)}if(w&&typeof location<"u"){D.clear(),Xt(),Hn();try{let S="webjs:importmap-reload";if(sessionStorage&&sessionStorage.getItem(S))sessionStorage.removeItem(S),Ee("deploy-mismatch-reload-suppressed",r,!1);else return sessionStorage&&sessionStorage.setItem(S,"1"),Ee("deploy-mismatch",r),He(r),"none"}catch{return Ee("deploy-mismatch",r),He(r),"none"}}else if(!w){let S=b?b.getAttribute("data-webjs-src"):null;s&&S&&s!==S&&(D.clear(),Xt(),Hn(),b&&b.setAttribute("data-webjs-src",s));try{typeof sessionStorage<"u"&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}}}if(t){u();let b=document.querySelector(`webjs-frame#${CSS.escape(t)}`),g=e.querySelector(`webjs-frame#${CSS.escape(t)}`);if(b&&g){a&&a(),Ln(e.head,{base:c,frame:!0}),Ce=tn(()=>{Rs(),gd(b,g),Nt(b),at(b),Ac(e.body),on()},()=>at(b));return}let w=new CustomEvent("webjs:frame-missing",{bubbles:!0,cancelable:!0,detail:{frameId:t,url:r||(typeof location<"u"?location.href:null),document:e}});return(b||document).dispatchEvent(w),w.defaultPrevented||console.warn(`[webjs] frame "${t}" was not in the navigation response, leaving it unchanged. Handle "webjs:frame-missing" (preventDefault) to override.`),"none"}if(i==="shell"){u(),a&&a(),xc(e,c,!0);return}let f=ke(document.body),d=ke(e.body),p=f&&d?Hr(f,d):null,m=p&&i==="layouts"?ld(p.live,p.incoming,document.body,e.body):null;if(p&&i==="layouts"&&!m){u(),a&&a(),xc(e,c,!0);return}if(p){u(),a&&a();let{mode:b,live:g,incoming:w}=p;Ln(e.head,{base:c,styles:!1});let S=_=>!!(g.start.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING)&&!!(g.end.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_PRECEDING);Ce=tn(()=>{mc(e.head,{base:c,segment:p.segment,leaving:S}),Rs(),b==="replace"?pd(g,w):hd(g,w,e),hc(p.segment,e,c),md(g.start,w.start),m&&ud(m),Ac(e.body),on()},()=>dd(g));return}if(r&&!n&&typeof location<"u")return Ee(f?d?"no-shared-boundary":"incoming-boundaries-malformed":"live-boundaries-malformed",r),He(r),"none";if(r&&n)return Ee("revalidation-discarded",r,!1),"discard";u(),a&&a(),xc(e,c,!1)}function xc(e,t,n){Zr(e.head,{base:t,styles:!1}),bo(document.body,e.body);let r=[...e.body.childNodes];Ce=tn(()=>{mc(e.head,{base:t,segment:"/",leaving:()=>!0}),Rs(),document.body.replaceChildren(...r),n&&hc("/",e,t),Nt(document.body),at(document.body),on()},()=>at(document.body))}var Ce,yo=A(()=>{hs();sd();tt();Te();rn();kt();On();fd();Yr();Zt();In();nt();go();Qt();nn();Ce=Promise.resolve()});function bd(){vc||typeof MutationObserver>"u"||typeof customElements>"u"||(vc=new MutationObserver(e=>{for(let t of e)for(let n of t.addedNodes){if(n.nodeType!==1)continue;let r=n;r.tagName?.includes("-")&&customElements.upgrade(r);for(let o of r.querySelectorAll("*"))o.tagName?.includes("-")&&customElements.upgrade(o)}}),vc.observe(document.body,{childList:!0,subtree:!0}))}function dd(e){if(!(!e||!e.start))for(let t=e.start.nextSibling;t&&t!==e.end;t=t.nextSibling)t.nodeType===1&&at(t)}function at(e){typeof customElements>"u"||zs(e)}function zs(e){let t=e instanceof Element?[e,...e.querySelectorAll("*")]:[...e.querySelectorAll("*")];for(let n of t)n.tagName&&n.tagName.includes("-")&&(customElements.upgrade(n),n.shadowRoot&&zs(n.shadowRoot))}function Nt(e){if(e.tagName==="SCRIPT"){let n=Xr(e);return e.replaceWith(n),n}let t=[];Bn.has(e)&&t.push(e);for(let n of e.querySelectorAll("[data-webjs-permanent]"))Bn.has(n)&&t.push(n);for(let n of e.querySelectorAll("script"))t.length&&t.some(r=>r!==n&&r.contains(n))||n.replaceWith(Xr(n));return e}function wo(e){let t=[];for(let n=e.start.nextSibling;n&&n!==e.end;n=n.nextSibling)n.nodeType===1&&t.push(n);for(let n of t){let r=Nt(n);r.isConnected!==!1&&at(r)}}var vc,Qt=A(()=>{tt();J();Te();rn();Ur();qs();vs();kt();On();Zt();In();go();yo();nn();vc=null});function on(){let e=document.activeElement;!e||e===document.body||e===document.documentElement||typeof e.blur=="function"&&e.blur()}function pd(e,t){let n=e.start.parentNode;if(!n)return;let r=[];for(let s=e.start.nextSibling;s&&s!==e.end;s=s.nextSibling)r.push(s);let o=[];for(let s=t.start.nextSibling;s&&s!==t.end;s=s.nextSibling)o.push(document.importNode(s,!0));st(r,o);for(let s of r)s.parentNode===n&&n.removeChild(s);for(let s of o)n.insertBefore(s,e.end);wo(e)}function hd(e,t,n){if(!e||!t)return;let r=e.start.parentNode;if(!r)return;let o=[];for(let i=e.start.nextSibling;i&&i!==e.end;i=i.nextSibling)o.push(i);let s=[];for(let i=t.start.nextSibling;i&&i!==t.end;i=i.nextSibling)s.push(document.importNode(i,!0));st(o,s),_g(r,e.start,e.end,o,s),wo(e)}function _g(e,t,n,r,o){let s=new Map;for(let c of r){if(c.nodeType!==1)continue;let l=be(c);l&&s.set(l,c)}let i=n,a=[];for(let c of o){if(c.nodeType===1){let l=be(c);if(l&&s.has(l)){let u=s.get(l);it(u,c),a.push(u),s.delete(l);continue}}a.push(c)}for(let c of r)if(c.parentNode===e){if(c.nodeType===1&&a.includes(c))continue;e.removeChild(c)}for(let c of a)e.insertBefore(c,i)}function it(e,t){if(e===t)return;if(e.tagName!==t.tagName){e.replaceWith(t);return}let n=new Set,r=Ks(e)&&typeof e._hydratePropAttrs=="function",o=!1;for(let s of t.attributes)if(n.add(s.name),!et.has(s.name)){if(r&&s.name.startsWith("data-webjs-prop-")){let i=e.__webjsPropAttrValues;(!i||i.get(s.name)!==s.value)&&(e.setAttribute(s.name,s.value),o=!0);continue}s.name!=="data-wj-serialized"&&e.getAttribute(s.name)!==s.value&&e.setAttribute(s.name,s.value)}for(let s of[...e.attributes])et.has(s.name)||n.has(s.name)||e.removeAttribute(s.name);if(o&&e._hydratePropAttrs(),Ks(e)){xg(e,t);return}Vn(e,t)}function Ks(e){let t=e;return t[Symbol.for("webjs.instance")]!=null||t[k]!=null}function Ag(e,t){for(let n=e.parentElement;n&&n!==t;n=n.parentElement)if(n.tagName.includes("-"))return!1;return!0}function Gs(e){let t=new Map,n=`slot[${R}][${j}="${G}"]`;for(let r of e.querySelectorAll(n)){let o=r;if(!Ag(o,e)||Mi(e,o))continue;let s=!1;for(let a=o.parentElement;a&&a!==e;a=a.parentElement)if(a.tagName==="SLOT"&&a.hasAttribute(R)&&a.getAttribute(j)===G){s=!0;break}if(s)continue;let i=X(o.getAttribute("name"));t.has(i)||t.set(i,o)}return t}function md(e,t){let n=e.parentNode;if(!n||n.nodeType!==1)return;let r=n;if(r.tagName!=="SLOT"||!r.hasAttribute(R))return;let o=null;for(let f=r.parentElement;f;f=f.parentElement){if(f[k]){o=f;break}if(f.tagName.includes("-"))return}if(!o)return;let s=X(r.getAttribute("name"));gt(o,s,[...r.childNodes]);let i=t.parentNode;if(!i||i.nodeType!==1)return;let a=i;if(a.tagName!=="SLOT")return;let c=null;for(let f=a.parentElement;f;f=f.parentElement)if(f.tagName.includes("-")){c=f;break}if(!c||c.tagName!==o.tagName)return;let l=Gs(o),u=Gs(c);for(let f of new Set([...l.keys(),...u.keys()])){if(f===s)continue;let d=u.get(f);d?gt(o,f,[...d.childNodes].map(p=>document.importNode(p,!0))):l.get(f)&&gt(o,f,null)}}function xg(e,t){if(!e[k])return;let n=Gs(e),r=Gs(t);if(n.size===0&&r.size===0)return;let o=new Set([...n.keys(),...r.keys()]);for(let s of o){let i=n.get(s),a=r.get(s);i&&a?(Vn(i,a),gt(e,s,[...i.childNodes])):a?gt(e,s,[...a.childNodes].map(c=>document.importNode(c,!0))):gt(e,s,null)}}function Vn(e,t){let n=[...e.childNodes],r=[...t.childNodes].map(a=>document.importNode(a,!0));st(n,r);let o=new Map;for(let a of n){if(a.nodeType!==1)continue;let c=be(a);c&&o.set(c,a)}let s=[];for(let a=0;a<r.length;a++){let c=r[a];if(c.nodeType===1){let l=be(c);if(l&&o.has(l)){let f=o.get(l);it(f,c),s.push(f),o.delete(l);continue}let u=n[a];if(u&&u.nodeType===1&&!be(u)&&u.tagName===c.tagName&&vg(u,c)){it(u,c),s.push(u);continue}}else if(c.nodeType===3){let l=n[a];if(l&&l.nodeType===3){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}else if(c.nodeType===8){let l=n[a];if(l&&l.nodeType===8){l.nodeValue!==c.nodeValue&&(l.nodeValue=c.nodeValue),s.push(l);continue}}s.push(c)}let i=new Set(s);for(let a of n)!i.has(a)&&a.parentNode===e&&e.removeChild(a);for(let a=0;a<s.length;a++){let c=s[a];(c.parentNode!==e||e.childNodes[a]!==c)&&e.insertBefore(c,e.childNodes[a]||null)}}function vg(e,t){let n=e.localName;return n!=="input"&&n!=="select"&&n!=="textarea"?!0:!(e.getAttribute("name")!==t.getAttribute("name")||n==="input"&&(e.getAttribute("type")||"text").toLowerCase()!==(t.getAttribute("type")||"text").toLowerCase())}function be(e){let t=e.getAttribute("data-key");return t?`${e.tagName}:k:${t}`:e.id?`${e.tagName}:i:${e.id}`:null}function Wn(){let e=ke(document.body);if(!e||e.size===0)return null;let t=[...e.keys()].sort((c,l)=>l.length-c.length),n=null,r=null;for(let c of t){let l=document.getElementById(`wj-loading:${c}`);if(l instanceof HTMLTemplateElement){n=c,r=l;break}}if(n===null||r===null)return null;let o=e.get(n),s=Fe(),i=[];for(let c=o.start.nextSibling;c&&c!==o.end;c=c.nextSibling)i.push(c);let a=document.createRange();return a.setStartAfter(o.start),a.setEndBefore(o.end),a.deleteContents(),o.start.parentNode.insertBefore(r.content.cloneNode(!0),o.end),{slot:o,oldChildren:i,token:N,haveKeys:s}}function Lt(e){if(!e||e.token!==N)return;let{slot:t,oldChildren:n}=e;if(t.start.parentNode!==t.end.parentNode)return;let r=document.createRange();r.setStartAfter(t.start),r.setEndBefore(t.end),r.deleteContents();for(let o of n)t.start.parentNode.insertBefore(o,t.end)}function gd(e,t){Vn(e,t)}var rn=A(()=>{bt();tt();J();nt();Qt();nn()});function Eg(e){if(typeof document>"u"||!document.body)return!1;let t=ke(document.body);if(!t)return!1;let n,r=-1;for(let[c,l]of t)c.length>r&&(r=c.length,n=l);if(!n)return!1;let o=n.start.parentNode;if(!o||n.start.parentNode!==n.end.parentNode)return!1;let s=document.createElement("div");s.setAttribute("role","alert"),s.setAttribute("data-webjs-nav-error","");let i=e?`This page could not be loaded. (status ${e})`:"This page could not be loaded.";s.textContent=i;let a=document.createRange();return a.setStartAfter(n.start),a.setEndBefore(n.end),a.deleteContents(),o.insertBefore(s,n.end),!0}function Js(e,t,n){let r=new CustomEvent("webjs:navigation-error",{bubbles:!0,cancelable:!0,detail:{url:e,status:t??null,error:n||null}});if(typeof document<"u")try{document.dispatchEvent(r)}catch{}r.defaultPrevented||Eg(t)||typeof location<"u"&&(Ee("navigation-error-unrecoverable",e),He(e))}var yd=A(()=>{tt();Te();nt()});function Ys(e){if(!e)return[];let t=[];for(let n of String(e).split(",")){let r=n.trim();if(!r)continue;let o=r.endsWith(";layout"),s=o?r.slice(0,-7):r;try{s=decodeURIComponent(s)}catch{}s.startsWith("/")&&t.push({path:s,layout:o})}return t}function wd(e,t){let n=e.path.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(let o=0;o<n.length;o++){let s=n[o];if(/^\[\[\.\.\./.test(s))return!0;if(/^\[\.\.\./.test(s))return r.length>o;if(o>=r.length)return!1;if(!/^\[[^\]]+\]$/.test(s)&&s!==r[o])return!1}return e.layout||r.length===n.length}var Ec=A(()=>{});function Tc(e){if(!ys(e)||e.hasAttribute("disabled")||!e.getAttribute("href"))return!1;let t=e.hasAttribute(le)?e.getAttribute(le):e.getAttribute("media");if(t&&typeof matchMedia=="function")try{if(!matchMedia(t).matches)return!1}catch{return!1}return!0}function _d(e,t){return new Promise(n=>{let r=()=>{clearTimeout(o),e.removeEventListener("load",r),e.removeEventListener("error",r),n()},o=setTimeout(r,t);e.addEventListener("load",r),e.addEventListener("error",r)})}function Ad(e,t,n,r=Sd){if(typeof document>"u"||!e||!document.head)return null;let o=e;if(n)try{o=e.querySelector(`webjs-frame#${CSS.escape(n)}`)}catch{o=null}if(!o)return null;let s=t||document.baseURI,i=f=>{try{return new URL(f,s).href}catch{return null}},a=new Set;for(let f of document.querySelectorAll("link[href]")){if(f.hasAttribute(ve)||!Tc(f))continue;let d=f.href;d&&a.add(d)}let c=Ns(),l=[],u=[];for(let f of o.querySelectorAll("link[href]")){if(!Tc(f))continue;let d=i(f.getAttribute("href"));if(!d||a.has(d))continue;a.add(d);let p=document.createElement("link");p.rel="stylesheet",p.setAttribute(ve,"");for(let b of["media","crossorigin","integrity","referrerpolicy"]){let g=f.getAttribute(b);g&&p.setAttribute(b,g)}c&&p.setAttribute("nonce",c),p.href=d,dc(p),l.push(p),u.push(_d(p,r));let m=f.getAttribute(Be);m?(p.setAttribute(Be,m),pc(p,m)):document.head.appendChild(p)}return l.length?{ready:Promise.all(u).then(()=>{}),copies:l}:null}function Xs(e,t=Sd){if(!(!e||typeof document>"u"))for(let n of e.copies){if(!n.isConnected||!n.hasAttribute(ve))continue;let r=null;for(let o of document.querySelectorAll("link[href]"))if(!(o===n||o.hasAttribute(ve)||!Tc(o))&&o.href===n.href){r=o;break}if(!r||r.sheet){n.remove();continue}_d(r,t).then(()=>n.remove())}}var Sd,xd=A(()=>{J();Yr();On();Sd=2e3});function Tg(e,t){try{let n=new URL(e,location.href),r=new URL(t,location.href);return n.origin===r.origin&&n.pathname===r.pathname&&n.search===r.search}catch{return!1}}function kg(){let e=document.activeElement;if(!e||e===document.body||e===document.documentElement)return null;let t=e,n=null,r=null;try{n=t.selectionStart??null,r=t.selectionEnd??null}catch{}return{el:e,start:n,end:r}}function Rg(e){let{el:t,start:n,end:r}=e;if(!t.isConnected||document.activeElement===t)return;let o=t;if(typeof o.focus!="function")return;let s=window.scrollX,i=window.scrollY;if(o.focus({preventScroll:!0}),n!==null&&r!==null)try{o.setSelectionRange(n,r)}catch{}(window.scrollX!==s||window.scrollY!==i)&&window.scrollTo({left:s,top:i,behavior:"instant"})}async function So(e,t,n,r,o,s,i,a,c,l){o=o||"GET";let u=l&&l.refresh||void 0,f=s!=null&&o!=="GET"&&o!=="HEAD"&&!t,d=!!(l&&l.noPrefetch),p=!!(l&&l.preserveScroll),m=typeof a=="number"?a:N,b,g=null,w=null,S=null,_=null,y=!1,M=e,T=t?Qr(t,m):null;try{try{let ne=o==="GET"&&!s&&!u&&!d?fo(e,r?r.haveKeys:void 0,t):null;if(ne)b=ne.html,w=ne.build,S=ne.src,M=ne.finalUrl,_=200,y=!0;else{let Ot={"x-webjs-router":"1"},Dc=u||f?"":Fe();Dc&&(Ot["x-webjs-have"]=Dc),t&&(Ot["x-webjs-frame"]=t),s!=null&&o!=="GET"&&o!=="HEAD"&&(Ot.accept=tc+", text/html");let ti={method:o,headers:Ot,credentials:"same-origin",cache:"no-cache"};i&&(ti.signal=i),s!=null&&o!=="GET"&&o!=="HEAD"&&(ti.body=s);let z=await fetch(e,ti);if(_=z.status,y=z.ok,u&&z.headers.get("x-webjs-dev-error")==="1"){try{await z.body?.cancel()}catch{}return{ok:!1,status:_,aborted:!1,applied:!1,devError:!0}}let Mc=ec(z.headers.get("x-webjs-invalidate"));Mc.length&&Qa(Mc);for(let an of Ys(z.headers.get("x-webjs-refresh")))an.layout||an.path.includes("[")?We():We(an.path);let qc=z.headers.get("content-type")||"",qd=/^text\/html\b/i.test(qc);if(qc.toLowerCase().indexOf(tc)===0){let an=await z.text(),vo=m===N;return vo&&(Lt(r),Ja(an)),{ok:vo&&y,status:_,aborted:!vo,applied:vo}}if(z.redirected&&z.url&&(M=z.url),z.status===204||z.status===205)return m===N&&n&&history.pushState(null,"",M),{ok:y,status:_,aborted:!1,applied:!1};if(!qd)return m===N&&(Lt(r),Js(e,z.status,null)),{ok:!1,status:_,aborted:!1,applied:!1};w=z.headers.get("x-webjs-build"),S=z.headers.get("x-webjs-src");let ni=await ho(z);b=ni.shell,ni.streaming&&(g=ni)}}catch(ne){return ne&&ne.name==="AbortError"?{ok:!1,status:null,aborted:!0,applied:!1}:m!==N?{ok:!1,status:null,aborted:!0,applied:!1}:(Lt(r),Js(e,null,ne instanceof Error?ne:new Error(String(ne))),{ok:!1,status:null,aborted:!1,applied:!1})}if(m!==N){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:!1,status:_,aborted:!0,applied:!1}}let F=Kt(b);if(!F)return Lt(r),Js(e,null,new Error("navigation response did not parse as HTML")),{ok:!1,status:_,aborted:!1,applied:!1};let q=Ad(F,M||e,t);if(q&&(await q.ready,m!==N)){if(Xs(q),g&&g.reader)try{g.reader.cancel()}catch{}return{ok:!1,status:_,aborted:!0,applied:!1}}let O=f&&!u&&Tg(M,location.href),ee=!1,v=n?()=>{ee||(ee=!0,O?history.replaceState(history.state,"",M):history.pushState(null,"",M))}:null,h=O?kg():null,we=sn(F,t,!!c,M,w,S,u||(f?"layouts":void 0),v);q&&Ce.then(()=>Xs(q),()=>Xs(q)),h&&Ce.then(()=>{m===N&&Rg(h)},()=>{});let xo=we!=="none";if(we==="discard"){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:y,status:_,aborted:!1,applied:!1}}if(v&&v(),n&&!t){let ne=new URL(M),Ot=ne.hash?document.getElementById(ne.hash.slice(1)):null;Ot?Ot.scrollIntoView():!p&&!O&&(jf(),window.scrollTo({left:0,top:0,behavior:"instant"}))}return g&&(g.reader||g.rest)&&Ce.then(()=>mo(g.reader,g.dec,g.rest,()=>m===N)),document.dispatchEvent(new CustomEvent("webjs:navigate",{detail:{url:M,frameId:t,from:"navigate"}})),{ok:y,status:_,aborted:!1,applied:xo,samePage:O}}finally{T&&eo(T,m)}}var vd=A(()=>{gs();qr();tt();J();Te();rn();Ur();kt();yd();Jt();Ec();Zt();nt();go();xd();yo()});function kc(e){if(e.id)return`id:${e.id}`;let t=e.querySelector(`input[name="${Ed}"]`);return t?`act:${t.getAttribute("value")||""}`:`url:${e.getAttribute("action")||""}`}function Ng(e,t){let n=0;for(let r of document.querySelectorAll("form")){if(r===e)return n;kc(r)===t&&n++}return-1}function Lg(e){let t=e.localName;if(t==="textarea")return"text";if(t==="select")return"select";if(t!=="input")return null;let n=(e.getAttribute("type")||"text").toLowerCase();return Cg.has(n)?null:n==="checkbox"||n==="radio"?"check":"text"}function Td(e){let t=new Map,n=[],r=e.elements?[...e.elements]:[...e.querySelectorAll("input, textarea, select")];for(let o of r){let s=o.getAttribute&&o.getAttribute("name");if(!s||s===Ed)continue;let i=Lg(o);if(!i)continue;let a=i==="check"?`${s}\0${o.getAttribute("value")??"on"}`:s,c=t.get(a)||0;t.set(a,c+1),n.push({el:o,name:s,kind:i,n:c})}return n}function kd(e,t){if(t==="check")return{def:String(!!e.defaultChecked),cur:String(!!e.checked)};if(t==="select"){let n=[...e.options];return{def:JSON.stringify(n.map(r=>r.defaultSelected)),cur:JSON.stringify(n.filter(r=>r.selected).map(r=>r.value))}}return{def:e.defaultValue??"",cur:e.value??""}}function Rd(e){if(!e||e.getAttribute("data-preserve-values")==="false")return null;let t=kc(e),n=Td(e).map(({el:r,name:o,kind:s,n:i})=>({name:o,kind:s,n:i,...s==="check"?{value:r.getAttribute("value")??"on"}:{},...kd(r,s)}));return n.length?{form:e,key:t,ord:Ng(e,t),controls:n}:null}function Og(e){if(e.form.isConnected)return e.form;let t=0;for(let n of document.querySelectorAll("form"))if(kc(n)===e.key){if(t===e.ord)return n;t++}return null}function Cd(e){if(!e)return 0;let t=Og(e);if(!t)return 0;let n=new Map;for(let o of Td(t)){let s=o.kind==="check"?`${o.name}\0${o.el.getAttribute("value")??"on"}\0${o.n}`:`${o.name}\0${o.n}`;n.set(s,o)}let r=0;for(let o of e.controls){let s=o.kind==="check"?`${o.name}\0${o.value}\0${o.n}`:`${o.name}\0${o.n}`,i=n.get(s);if(!i||i.kind!==o.kind)continue;let a=kd(i.el,i.kind);if(a.def===o.def&&a.cur!==o.cur){if(o.kind==="check")i.el.checked=o.cur==="true";else if(o.kind==="select"){let c=new Set(JSON.parse(o.cur));for(let l of i.el.options)l.selected=c.has(l.value)}else i.el.value=o.cur;r++}}return r}var Ed,Cg,Nd=A(()=>{Ed="__webjs_action",Cg=new Set(["password","file","hidden","submit","button","image","reset"])});function Gf(e){if(!Hf(e)||!ue)return!1;let t,n;try{t=new URL(ue),n=new URL(e,location.href)}catch{return!1}return t.pathname!==n.pathname||t.search!==n.search?!1:(ue=n.href,!0)}function _o(){ce||typeof document>"u"||(ac(!0),Ts(),globalThis.__webjsRefreshPage=Ld,document.addEventListener("click",yc,!1),document.addEventListener("submit",jn,!1),window.addEventListener("popstate",Pn),document.addEventListener("pointerover",Yt,!0),document.addEventListener("focusin",Yt,!0),document.addEventListener("touchstart",Yt,{capture:!0,passive:!0}),document.addEventListener("pointerout",_c,!0),document.addEventListener("webjs:navigate",Us),bd(),Us(),typeof history<"u"&&"scrollRestoration"in history&&(Zs=history.scrollRestoration,history.scrollRestoration="auto"),typeof location<"u"&&(ue=location.href),Of())}function Rc(){ce&&(ac(!1),document.removeEventListener("click",yc,!1),document.removeEventListener("submit",jn,!1),window.removeEventListener("popstate",Pn),_s(),document.removeEventListener("pointerover",Yt,!0),document.removeEventListener("focusin",Yt,!0),document.removeEventListener("touchstart",Yt,{capture:!0}),document.removeEventListener("pointerout",_c,!0),document.removeEventListener("webjs:navigate",Us),po(),Bs(),nd(),typeof history<"u"&&Zs!==null&&(history.scrollRestoration=Zs,Zs=null),Ds(),me&&me(),ge&&ge(),ue=null,delete globalThis.__webjsRefreshPage)}async function en(e,t){let n=new URL(e,location.href);if(n.origin!==location.origin){He(e);return}await oo(n.href,t?.replace??!1,null,{preserveScroll:t?.scroll===!1})}async function Cc(e,t){if(typeof location>"u")return{ok:!1,status:null,aborted:!1,applied:!1};let n=e&&e.id;if(!n)return{ok:!1,status:null,aborted:!1,applied:!1};let r=new URL(t,location.href);if(r.origin!==location.origin)return{ok:!1,status:null,aborted:!1,applied:!1};ye&&ye.abort(),ye=new AbortController;let o=ye.signal,s=Ss(),i=await So(r.href,n,!1,null,"GET",null,o,s,!1,{noPrefetch:!0});return i&&i.applied&&Zf(r.href,n),i}function We(e){if(!e){D.clear(),Xt();return}let t=new URL(e,location.href),n=t.pathname+t.search;D.delete(n),L.delete(n);let r=` ${n}`;for(let o of[...L.keys()])o.endsWith(r)&&L.delete(o)}async function Ao(e){return await Ld(e)!=="failed"}async function Ld(e){if(!ce||typeof location>"u")return"failed";We(),Hn();try{let t=await oo(location.href,!1,null,{refresh:e==="shell"?"shell":"page"});return!t||t.aborted?"settled":t.devError?"dev-error":t.applied?"applied":"failed"}catch{return"failed"}}async function oo(e,t,n,r){_s();let o=r&&r.refresh||void 0,s=!!(r&&r.preserveScroll);if(ic(t,n)&&typeof location<"u")return Ee("readyState-loading",e),He(e),null;ye&&ye.abort(),ye=new AbortController;let i=ye.signal,a=Ss();n||(Ds(),me&&me(),ge&&ge()),!o&&ue&&wc(ue);let c=setTimeout(()=>{Fr(!0),c=null},150),l=null;!t&&!o&&(l=Wn());let u=!1;try{if(t){let d=Yf(e);if(d){let p=Kt(d.html);if(p){let m=Kf(d.scrollHeight);sn(p,n,!0,null);let b=()=>{};if(typeof window<"u"){let S=()=>{b=zf(d.scrollX,d.scrollY)};if(Un()&&typeof document.startViewTransition=="function"){let _=js;Ce.then(()=>{_!==js||!ce||S()}).catch(()=>{})}else S()}let g=So(e,n,!1,l,"GET",null,i,a,!0).catch(()=>{}),w=new Promise(S=>setTimeout(S,500));return Promise.all([g,w]).then(()=>Is(()=>{b(),Is(m)})),null}}u=!0,typeof window<"u"&&window.scrollTo({left:0,top:0,behavior:"instant"})}let f=await So(e,n,!t&&!o,l,"GET",null,i,a,!1,{refresh:o,preserveScroll:s});return u&&f&&f.applied&&typeof window<"u"&&Is(()=>{a!==N||!ce||window.scrollTo({left:0,top:0,behavior:"instant"})}),f}finally{c&&clearTimeout(c),a===N&&(Fr(!1),typeof location<"u"&&(ue=location.href))}}async function Jf(e,t,n,r,o,s){_s(),ye&&ye.abort(),ye=new AbortController;let i=ye.signal,a=Ss();r||(Ds(),me&&me(),ge&&ge());let c=t==="get"||t==="head",l=new URL(e,location.href);if(c){l.search="";for(let[b,g]of n)l.searchParams.append(b,typeof g=="string"?g:g.name)}ue&&wc(ue);let u=setTimeout(()=>{Fr(!0),u=null},150),f=c?Wn():null,d=o?to(o,a,l.href):null,p=c?null:Rd(o),m=!1;try{let b=await So(l.href,r,!0,f,c?"GET":t.toUpperCase(),c?null:n,i,a,!1,{preserveScroll:!!(s&&s.preserveScroll)});m=!!(b&&b.ok),p&&b&&b.applied&&!b.ok&&a===N&&(await Ce,a===N&&Cd(p)),!c&&o&&b&&b.ok&&b.applied&&b.samePage&&a===N&&(await Ce,a===N&&o.isConnected&&typeof o.reset=="function"&&o.reset()),!c&&a===N&&(D.clear(),Xt())}finally{d&&no(d,a,l.href,m),u&&clearTimeout(u),a===N&&(Fr(!1),typeof location<"u"&&(ue=location.href))}}function Od(){return ue}function Pd(e){ue=e}var ye,ue,Zs,Jt=A(()=>{J();Te();rn();Ur();qs();vd();kt();Nd();Zt();Ms();In();nt();Yr();yo();Qt();nn();ye=null,ue=null;Zs=null});var _f={};$c(_f,{_FALLBACK_MARKER_KEY:()=>zt,_FRAME_TOP:()=>$r,_LIVE_ATTRS:()=>et,_activateSwappedRange:()=>wo,_activeFrameId:()=>Ps,_addNewHeadElements:()=>Ln,_applyOptimisticLoading:()=>Wn,_applyStreamedResolve:()=>Ws,_applySwap:()=>sn,_blurOutgoingFocus:()=>on,_buildHaveHeader:()=>Fe,_buildSubmitFormData:()=>Gr,_bumpNavToken:()=>$f,_clearFormBusy:()=>no,_clearFrameBusy:()=>eo,_collectBoundaries:()=>ke,_currentPageUrl:()=>Od,_diffElementInPlace:()=>it,_eligibleAnchorHref:()=>$n,_encodeSubmitBody:()=>Kr,_findAnchorInPath:()=>As,_getSubmitAction:()=>Wr,_getSubmitEnctype:()=>zr,_getSubmitMethod:()=>Vr,_isNonHtmlPath:()=>Rf,_isPreBootNavigation:()=>ws,_keyOf:()=>be,_markFormBusy:()=>to,_markFrameBusy:()=>Qr,_mergeHead:()=>Zr,_navToken:()=>qf,_onPopState:()=>Pn,_onSubmit:()=>jn,_parseHTML:()=>Kt,_planBoundarySwap:()=>Hr,_prefetch:()=>Ct,_prefetchAnchor:()=>Hs,_prefetchCache:()=>L,_prefetchHasHoverPointer:()=>$s,_prefetchInflightSize:()=>ed,_prefetchMode:()=>Fn,_prefetchPeek:()=>Qf,_prefetchSaysSaveData:()=>uo,_prefetchSuppressed:()=>Fs,_prefetchTake:()=>fo,_reactivateScripts:()=>Nt,_readStreamedShell:()=>ho,_reconcileChildren:()=>Vn,_regraftPermanentElements:()=>bo,_regraftPermanentInSlice:()=>st,_resetParseProbe:()=>cc,_resetPrefetch:()=>td,_resetWarnOnce:()=>If,_resolvePreserveScroll:()=>ro,_resolveTargetFrameId:()=>Re,_restoreOptimistic:()=>Lt,_runWithTransition:()=>tn,_setCurrentPageUrl:()=>Pd,_setHardNavigate:()=>Mf,_shouldFullLoadDuringParse:()=>Df,_snapshotCache:()=>D,_streamBoundariesProgressively:()=>mo,_takeResolveUnit:()=>Vs,_viewTransitionsEnabled:()=>Un,disableClientRouter:()=>Rc,enableClientRouter:()=>_o,loadFrame:()=>Cc,navigate:()=>en,refreshPage:()=>Ao,revalidate:()=>We});var Ka=A(()=>{za();qr();qr();Ge();xf();hs();gs();bt();Jt();J();Te();Jt();Zt();nt();tt();J();Te();rn();Ur();xs();qs();vs();kt();On();Zt();Ms();In();go();yo();Qt();nn();(typeof window>"u"||window.__WEBJS_CLIENT_ROUTER__!==!1)&&_o()});var Fc=Symbol.for("webjs.hot"),Hc=globalThis;function Eo(e,t){let n=Hc[Fc];return n===void 0?e:n.strings(e,t)}function Bc(){let e=Hc[Fc];return e===void 0?null:e.replace}function Kn(e,...t){return{_$webjs:"template",strings:Eo(ri(e),0),values:t}}function ri(e){if(!Array.isArray(e)||Object.prototype.hasOwnProperty.call(e,"raw"))return e;let t=Object.isExtensible(e)?e:e.slice();return Object.defineProperty(t,"raw",{value:t}),t}function Fd(e,...t){return{_$webjs:"template",strings:Eo(ri(e),1),values:t,svg:!0}}function Hd(e,...t){return{_$webjs:"template",strings:Eo(ri(e),2),values:t,mathml:!0}}function H(e){return!!e&&typeof e=="object"&&e._$webjs==="template"}var P="wjm-";var Bd=!(typeof window<"u"&&typeof document<"u");var si=Symbol(),Uc=new WeakMap,Gn=class{constructor(t,n,r){if(r!==si)throw new Error("[webjs] CSSResult is not constructable. Use `css` or `unsafeCSS` instead.");this._$webjsCss=!0,this.cssText=t,this._styleSheet=void 0,this._strings=n}get text(){return this.cssText}get styleSheet(){if(this._styleSheet===void 0&&typeof CSSStyleSheet<"u"){let t=this._strings,n=t!==void 0&&t.length===1,r=n?Uc.get(t):void 0;r===void 0&&(r=new CSSStyleSheet,r.replaceSync(this.cssText),n&&Uc.set(t,r)),this._styleSheet=r}return this._styleSheet}toString(){return this.cssText}};function Ud(e,...t){let n=e[0];for(let r=1;r<e.length;r++)n+=Vd(t[r-1])+e[r];return new Gn(n,e,si)}function Vd(e){if(Jn(e))return e.cssText??e.text;if(typeof e=="number")return String(e);throw new Error(`[webjs] Value passed to 'css' must be a 'css' result or a number, got ${Wd(e)}. Compose another css\`...\` result, or wrap a trusted string in unsafeCSS() from '@webjsdev/core'. Never pass user input through unsafeCSS().`)}function Wd(e){return e===null?"null":typeof e=="string"?JSON.stringify(e.length>40?e.slice(0,40)+"...":e):typeof e}function zd(e){return new Gn(typeof e=="string"?e:String(e),void 0,si)}function Jn(e){return!!e&&typeof e=="object"&&e._$webjsCss===!0}function To(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let r of n)Vc(r)&&t.unshift(r)}else Vc(e)&&t.push(e);return t}function Vc(e){return Jn(e)||typeof CSSStyleSheet<"u"&&e instanceof CSSStyleSheet}function ii(e,t){if(!(!t||!t.length))if("adoptedStyleSheets"in e&&typeof CSSStyleSheet<"u")e.adoptedStyleSheets=t.map(n=>{if(n instanceof CSSStyleSheet)return n;let r=n.styleSheet;if(r)return r;let o=new CSSStyleSheet;return o.replaceSync(oi(n)),o});else{let n=e,r=document.createElement("style");r.textContent=t.map(oi).join(`
4
+ `),n.appendChild(r)}}function oi(e){return Jn(e)?e.cssText??e.text:e&&e.cssRules?Array.from(e.cssRules,t=>t.cssText).join(`
5
+ `):""}function ai(e){if(!e||!e.length)return"";let t=e.filter(Jn).map(oi);return t.length?`<style>${t.join(`
6
+ `)}</style>`:""}function ko(e){return`[webjs] <${e}> declares static styles but renders into light DOM, so the styles are never applied. Add \`static shadow = true\` to scope them in a shadow root, or style the light-DOM markup with Tailwind utilities or a global stylesheet (prefix custom class selectors with the tag name).`}ze();Ge();ze();var bi=Symbol.for("webjs.repeat"),Sp=(e,t)=>t;function al(e,t,n){return n===void 0?{[bi]:!0,items:[...e],keyFn:Sp,templateFn:t}:{[bi]:!0,items:[...e],keyFn:t,templateFn:n}}function dn(e){return!!e&&typeof e=="object"&&e[bi]===!0}ze();function cl(e){return{_$webjs:"class-map",value:e}}function ll(e){return{_$webjs:"style-map",value:e}}function ul(e){return e??E}function cr(e){return e&&(e._$webjs==="class-map"||e._$webjs==="style-map")}function fl(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function yi(e,t){let n=e._$webjs==="class-map";if(t!==(n?"class":"style"))throw new Error("classMap/styleMap must be used in a class/style attribute.");return n?" "+Object.keys(e.value).filter(r=>e.value[r]).join(" ")+" ":Object.entries(e.value).filter(([,r])=>r!=null).map(([r,o])=>`${fl(r)}:${o};`).join("")}function dl(e,t){if(e.kind!=="attr"&&e.kind!=="attr-mixed")throw new Error("classMap/styleMap require an attribute binding.");let n=t._$webjs==="class-map";if(e.name!==(n?"class":"style"))throw new Error("classMap/styleMap must be used in a class/style attribute.");if(e.group&&e.group.length!==1)throw new Error("classMap/styleMap require a single expression.");e.__mapKind!==t._$webjs&&(e.el.setAttribute(e.name,(e.statics||[]).join(n?" ":"")),e.__mapKind=t._$webjs,e.__mapKeys=new Set,e.__staticClasses=n?new Set(e.el.classList):new Set);let r=new Set;for(let[o,s]of Object.entries(t.value))if(n)s&&!e.__staticClasses.has(o)&&(e.el.classList.add(o),r.add(o));else if(s!=null){let i=fl(o),a=String(s);e.el.style.setProperty(i,a.replace(/\s*!important\s*$/,""),/!important\s*$/.test(a)?"important":""),r.add(i)}for(let o of e.__mapKeys)r.has(o)||(n?e.el.classList.remove(o):e.el.style.removeProperty(o));e.__mapKeys=r}function wi(e){let t=Si(e,"unsafeHTML");return typeof t=="string"?{_$webjs:"unsafe-html",value:t}:t}function Si(e,t){if(e==null||e===E)return E;if(e===x)return x;if(typeof e!="string")throw new Error(`${t}() takes a string of trusted markup, not ${Array.isArray(e)?"an array":typeof e}.`);return e}function lr(e){return!!e&&typeof e=="object"&&e._$webjs==="unsafe-html"}function _p(e){let t=Si(e,"unsafeSVG");return typeof t=="string"?{_$webjs:"unsafe-html",value:t,ns:"svg"}:t}function Ap(e){let t=Si(e,"unsafeMathML");return typeof t=="string"?{_$webjs:"unsafe-html",value:t,ns:"mathml"}:t}function xp(e){return{_$webjs:"live",value:e}}function Y(e){return!!e&&typeof e=="object"&&e._$webjs==="live"}function vp(e,t){return{_$webjs:"keyed",key:e,value:t}}function Ne(e){return!!e&&typeof e=="object"&&e._$webjs==="keyed"}function Ep(e,t){return{_$webjs:"guard",deps:e,fn:t}}function Le(e){return!!e&&typeof e=="object"&&e._$webjs==="guard"}function Tp(e){return{_$webjs:"template-content",template:e}}function ur(e){return!!e&&typeof e=="object"&&e._$webjs==="template-content"}function kp(e){return{_$webjs:"ref",target:e}}function pn(e){return!!e&&typeof e=="object"&&e._$webjs==="ref"}function Rp(){return{value:void 0}}function Cp(e){return{_$webjs:"cache",value:e}}function Oe(e){return!!e&&typeof e=="object"&&e._$webjs==="cache"}function Np(...e){return{_$webjs:"until",args:e}}function Je(e){return!!e&&typeof e=="object"&&e._$webjs==="until"}function Lp(e,t){return{_$webjs:"async-append",iterable:e,mapper:t}}function fr(e){return!!e&&typeof e=="object"&&e._$webjs==="async-append"}function Op(e,t){return{_$webjs:"async-replace",iterable:e,mapper:t}}function dr(e){return!!e&&typeof e=="object"&&e._$webjs==="async-replace"}function pl(e){return{_$webjs:"watch",signal:e}}function fe(e){return!!e&&typeof e=="object"&&e._$webjs==="watch"}function Pp(e,t,n){return e?t(e):n?.(e)}function jp(e,t,n){for(let[r,o]of t)if(r===e)return o();return n?.()}function*Ip(e,t){if(e===void 0)return;let n=0;for(let r of e)yield t(r,n++)}function*Dp(e,t){if(e===void 0)return;let n=typeof t=="function",r=-1;for(let o of e)r>-1&&(yield n?t(r):t),r++,yield o}function*Mp(e,t,n=1){let r=t===void 0?0:e;t??=e;for(let o=r;n>0?o<t:t<o;o+=n)yield o}jt();bt();jt();Ge();bt();var Up=new Set(["script","style","textarea","title"]);function Tl(e){let t="text",n="",r="",o="",s=!1,i="";for(let a=0;a<e.length;a++){let c=e[a];a>0&&(t==="tagname"?t="tag":t==="attr"&&(r="",t="tag"));for(let l=0;l<c.length;l++){let u=c[l];switch(t){case"text":u==="<"&&(c.startsWith("<!--",l)?(t="comment",l+=3):/[A-Za-z/]/.test(c[l+1]||"")&&(s=c[l+1]==="/",s&&l++,t="tagname",o=""));break;case"tagname":if(/[\s/>]/.test(u)){if(!s&&/^[A-Z](?=.*[a-z])/.test(o))return{kind:"tag",name:o};t=u===">"?Ji(o,s):"tag",t==="raw"&&(i=o.toLowerCase())}else o+=u;break;case"tag":u===">"?(t=Ji(o,s),t==="raw"&&(i=o.toLowerCase())):u==='"'||u==="'"?(t="q",n=u):/[\s/=]/.test(u)||(t="attr",r=u);break;case"attr":if(/[\s=/>]/.test(u)){if(r==="className"||r==="htmlFor")return{kind:"attr",name:r};r="",u===">"?(t=Ji(o,s),t==="raw"&&(i=o.toLowerCase())):t="tag"}else r+=u;break;case"q":u===n&&(t="tag");break;case"comment":c.startsWith("-->",l)&&(t="text",l+=2);break;case"raw":u==="<"&&c.slice(l+2,l+2+i.length).toLowerCase()===i&&c[l+1]==="/"&&(t="tagname",s=!0,o="",l+=1);break;default:break}}}return t==="attr"&&(r==="className"||r==="htmlFor")?{kind:"attr",name:r}:null}function Ji(e,t){return!t&&Up.has(e.toLowerCase())?"raw":"text"}function kl(e){if(e.kind==="attr"){let t=e.name==="className"?"class":"for";return`webjs: \`${e.name}=\` in an html template is JSX, not HTML: the browser reads it as an unknown \`${e.name.toLowerCase()}\` attribute and it does nothing. Write \`${t}=\` instead (\`${t}=\${...}\` for a dynamic value). See https://webjs.dev/docs/troubleshooting#jsx-in-html-template`}return`webjs: \`<${e.name}>\` in an html template is a JSX component, not HTML: the browser lowercases it into an unknown \`<${e.name.toLowerCase()}>\` element and renders nothing. Use the custom element's tag (\`<my-${e.name.toLowerCase()}>\`, registered with ${e.name}.register('my-${e.name.toLowerCase()}')), or a plain element such as \`<a href>\` for a link. See https://webjs.dev/docs/troubleshooting#jsx-in-html-template`}function qo(e){let t=Tl(e);if(t)throw new Error(kl(t))}var $o=new WeakMap,Fo=new WeakMap,gn=Symbol.for("webjs.instance"),Vp=new Set(["script","style","textarea","title"]),Ht=/[ \t\n\f\r]/,Sr="\uE000";function bn(e){let{strings:t}=e,n=$o.get(t);if(n)return n;if(!Array.isArray(t)||!Object.prototype.hasOwnProperty.call(t,"raw"))throw new Error("[webjs] refusing to render a template result whose strings are not a tagged template's (a TemplateResult built from data, not by html``).");qo(t);let r=[],o="",s="text",i="",a=0,c="",l=0,u=null,f="",d=!1,p="",m=()=>(p="",!d&&Vp.has(f)?"rawtext":"text");for(let w=0;w<t.length;w++){let S=t[w];for(let _=0;_<S.length;_++){let y=S[_];switch(s){case"text":o+=y,y==="<"&&(s="tag-open");break;case"tag-open":o+=y,y==="!"?s="bang-1":y==="/"?(s="tag-name",f="",d=!0):/[a-zA-Z]/.test(y)?(s="tag-name",f=y.toLowerCase(),d=!1):s="text";break;case"bang-1":o+=y,s=y==="-"?"bang-dash":"bogus";break;case"bang-dash":o+=y,y==="-"?(s="comment",l=0):s="bogus";break;case"bogus":o+=y,y===">"&&(s="text");break;case"comment":o+=y,y==="-"?l+=1:(y===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=y,d&&f===""&&y!==">"&&!/[a-zA-Z]/.test(y)?s="bogus":y===">"?s=m():Ht.test(y)?s="in-tag":f+=y.toLowerCase();break;case"in-tag":o+=y,y===">"?s=m():!Ht.test(y)&&y!=="/"&&(s="attr-name",i=y,a=o.length-1);break;case"rawtext":o+=y,p=(p+y.toLowerCase()).slice(-(f.length+3)),p===`</${f}>`&&(s="text",p="",f="");break;case"attr-name":y==="="?(s="after-eq",o+=y):Ht.test(y)?(s="after-name",o+=y):y===">"?(s=m(),i="",o+=y):(i+=y,o+=y);break;case"after-name":o+=y,y==="="?s="after-eq":y===">"?(s=m(),i=""):y==="/"?(s="in-tag",i=""):Ht.test(y)||(s="attr-name",i=y,a=o.length-1);break;case"after-eq":y==='"'||y==="'"?(s="attr-quoted",c=y,o+=y):Ht.test(y)?o+=y:y===">"?(s=m(),i="",o+=y):(s="attr-unquoted",o+=y);break;case"attr-unquoted":Ht.test(y)?(s="in-tag",i="",o+=y):(y===">"&&(s=m(),i=""),o+=y);break;case"attr-quoted":o+=y,y===c&&(s="in-tag",i="");break;case"skip-attr":if(c===""?Ht.test(y)||y===">"||y==="/"&&S[_+1]===">":y===c){if(u){let M=u.firstPartIdx,T=[];for(let h=M;h<r.length;h++)(r[h].kind==="noop"||r[h].kind==="attr-mixed")&&T.push(h);let F=[],q=t[T[0]];if(c==="")F.push(q.slice(q.lastIndexOf("=")+1).trimStart());else{let h=q.lastIndexOf(c);F.push(h>=0?q.slice(h+1):q)}for(let h=1;h<T.length;h++)F.push(t[T[h]]);let O=t[T[T.length-1]+1],ee=c===""?_:O.indexOf(c);F.push(ee>=0?O.slice(0,ee):O);let v=cn(u.name[0]);if(v&&(T.length!==1||F.some(h=>h!=="")))throw new Error("Event, property and boolean bindings require exactly one expression with no surrounding text.");r[M]={kind:v?Ke[u.name[0]]:"attr-mixed",path:[],name:v?u.name.slice(1):u.name,statics:F,group:T};for(let h=1;h<T.length;h++)r[T[h]]={kind:"noop",path:[],mixedAnchor:M};u=null}i="",c===""&&(o+=y),s=c===""&&y===">"?m():"in-tag"}break}}if(w<t.length-1){let _=r.length;if(s==="comment"){l=0,r.push({kind:"noop",path:[]});continue}if(s==="rawtext"){p="",o+=`${Sr}${_}${Sr}`,r.push({kind:"child",path:[]});continue}let y=t[w+1],M=s==="after-eq"&&(y===""?w+1<t.length-1:!/^([ \t\n\f\r]|>|\/>)/.test(y));if(s==="text")o+=`<!--${P}${_}-->`,r.push({kind:"child",path:[]});else if(s==="in-tag"||s==="after-name"){let T=`data-${P}${_}`;o+=`${T}=""`,r.push({kind:"element",path:[]}),s="in-tag",i=""}else if(s==="after-eq"&&!M){let T=i[0],F=i.slice(1);if(cn(T)){o=o.slice(0,a);let q=Ke[T],O=`data-${P}${_}`;o+=`${O}=""`,r.push({kind:q,path:[],name:F})}else{o=o.slice(0,a);let q=`data-${P}${_}`;o+=`${q}=""`,r.push({kind:"attr",path:[],name:i})}s="in-tag",i=""}else if(s==="attr-quoted"||s==="attr-unquoted"||s==="after-eq"){s!=="attr-quoted"&&(c=""),o=o.slice(0,a);let T=`data-${P}${_}`;o+=`${T}=""`,u={name:i,firstPartIdx:_},r.push({kind:"noop",path:[]}),s="skip-attr"}else r.push({kind:"noop",path:[]})}}let b=document.createElement("template");if(e.svg||e.mathml){let w=e.svg?"svg":"math";b.innerHTML=`<${w}>${o}</${w}>`;let S=b.content.firstChild;S.replaceWith(...S.childNodes)}else b.innerHTML=o;o.includes(Sr)&&Wp(b.content),zp(b.content,r);let g=Kp(b.content,r);return n={templateEl:b,parts:r,formActions:g},$o.set(t,n),n}function Wp(e){let t=[],n=r=>{for(let o of r.childNodes)o.nodeType===3?o.data.includes(Sr)&&t.push(o):n(o)};n(e);for(let r of t){let o=r.data.split(Sr),s=[];for(let i=0;i<o.length;i++)i%2?s.push(document.createComment(`${P}${o[i]}`)):o[i]&&s.push(document.createTextNode(o[i]));r.replaceWith(...s)}}function zp(e,t){let n=e.querySelectorAll("slot");for(let r of n){r.setAttribute(R,"");let o=t.length;r.setAttribute(`data-${P}${o}`,""),t.push({kind:"slot",path:[]})}}function Kp(e,t){let n=[],r=[];function o(s){for(let i=0;i<s.childNodes.length;i++){let a=s.childNodes[i];if(n.push(i),a.nodeType===8){let c=a.data;if(c.startsWith(P)){let l=Number(c.slice(P.length));t[l]&&t[l].kind==="child"&&(t[l].path=n.slice())}}else if(a.nodeType===1){let c=a,l=[],u=[];for(let f of c.attributes)if(f.name.startsWith(`data-${P}`)){let d=Number(f.name.slice(`data-${P}`.length));t[d]&&t[d].kind!=="child"&&(t[d].path=n.slice(),u.push({idx:d,kind:t[d].kind,name:t[d].name||""})),l.push(f.name)}if(c.localName==="form"||c.localName==="button"||c.localName==="input"){let f=Gp(c,u,t);f&&r.push(f)}for(let f of l)c.removeAttribute(f);o(a)}n.pop()}}return o(e),r.length?r:null}function Gp(e,t,n){let r=e.localName==="form",o=r?"action":"formaction",s=r?"method":"formmethod",i=r?"enctype":"formenctype",a=t.filter(g=>g.kind==="attr"&&g.name.toLowerCase()===o);if(!a.length)return null;let c=[],l=[],u=[],f=r?[]:t.filter(g=>g.name.toLowerCase()==="name"&&(g.kind==="attr"||g.kind==="attr-mixed"||g.kind==="bool")).map(g=>({i:g.idx,kind:g.kind})),d=!r&&e.hasAttribute("name"),p=!r&&e.hasAttribute("form"),m=!r&&e.hasAttribute("value"),b=r?[]:t.filter(g=>g.name.toLowerCase()==="value"&&(g.kind==="attr"||g.kind==="attr-mixed"||g.kind==="bool")).map(g=>({i:g.idx,kind:g.kind}));for(let g of t){let w=String(g.name).toLowerCase();if(g.kind==="prop"){r?(w==="method"||w==="enctype"||w==="encoding")&&u.push(g.name):sr(w)&&u.push(g.name);continue}if(w!==s&&w!==i||g.kind!=="attr"&&g.kind!=="attr-mixed"&&g.kind!=="bool")continue;let S=n[g.idx],_={i:g.idx,kind:g.kind};g.kind==="attr-mixed"&&(_.statics=S.statics||[],_.group=S.group||[]),(w===s?c:l).push(_)}return{isForm:r,tag:e.localName,actionIdxs:a.map(g=>g.idx),duplicateAction:a.length>1,staticAction:e.getAttribute(o)!=null,authoredName:d,authoredValue:m,authoredForm:p,propAttrs:u,nameParts:f,valueParts:b,staticMethod:e.getAttribute(s),staticEnctype:e.getAttribute(i),methodParts:c,enctypeParts:l}}bt();var Ho=new WeakSet;function Nl(e,t,n){if(e.nodeType!==1||!pt(e))return null;let r=W(e),o=new Set;for(let l of n)(l.kind==="attr"||l.kind==="attr-mixed"||l.kind==="bool")&&l.name==="name"&&o.add(l.el);let s=new Map,i=new Set,a=[],c=[];for(let l of n){if(l.kind!=="slot")continue;let u=l.slotEl;if(o.has(u))continue;let f=r.assignedByName.get(X(u.getAttribute("name")));if(!f||f.length===0)continue;let d=f[0].parentNode;if(!d||d.nodeType!==1||d.localName!=="slot"||i.has(d)||d.getAttribute(j)!==G||!Jp(d.childNodes,f))continue;let p=Cl(u,t),m=Cl(d,e);if(!p||!m||p.length!==m.length)continue;let b=!0;for(let g=0;g<p.length&&b;g++){let w=p[g],S=m[g],_=w.localName;if(_!==S.localName||_.includes("-")||_==="form")b=!1;else{let y=s.get(w);(y?y!==S:i.has(S))&&(b=!1)}}if(b){s.set(u,d),i.add(d),a.push([u,d]);for(let g=0;g<p.length;g++)s.has(p[g])||(s.set(p[g],m[g]),i.add(m[g]),c.push([p[g],m[g]]))}}if(a.length===0)return null;for(let l of[t,...c.map(([u])=>u)]){let u=null;for(let f of l.childNodes){let d=s.get(f);if(d){if(u&&!(u.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_FOLLOWING))return null;u=d}}}return{map:s,slots:a,chains:c}}function Ll(e,t){let n=new Map;for(let r of t){if(r.kind==="slot"){let s=e.map.get(r.slotEl);s&&(r.slotEl=s);continue}if(!r.el)continue;let o=e.map.get(r.el);if(o&&(r.kind==="event"&&r.handler&&(r.el.removeEventListener(r.name,r.dispatcher,r.handler),o.addEventListener(r.name,r.dispatcher,r.handler)),r.el=o,r.kind==="attr"||r.kind==="attr-mixed"||r.kind==="bool")){let s=n.get(o);s||n.set(o,s=new Set),s.add(r.name)}}for(let[r,o]of[...e.chains,...e.slots]){let s=o.localName==="slot",i=n.get(o);for(let a of Array.from(o.attributes))r.hasAttribute(a.name)||i?.has(a.name)||s&&(a.name===j||a.name===pr)||o.removeAttribute(a.name);for(let a of Array.from(r.attributes))o.getAttribute(a.name)!==a.value&&o.setAttribute(a.name,a.value)}}function Ol(e,t,n){let r=s=>e.map.get(s)||s,o=W(t);for(let[s,i]of e.chains)Rl(i,Array.from(s.childNodes,r));Rl(t,n.map(r));for(let[s,i]of e.slots){let a=document.createDocumentFragment();for(;s.firstChild;)a.appendChild(s.firstChild);i[Pe]=a,Ho.add(i),o.lastSnapshot.delete(i)}}function Rl(e,t){let n=new Set(t);for(let o of Array.from(e.childNodes))n.has(o)||e.removeChild(o);let r=e.firstChild;for(let o of t){if(o===r){r=r.nextSibling;continue}e.insertBefore(o,r)}}function Cl(e,t){let n=[],r=e.parentNode;for(;r&&r!==t;){if(r.nodeType!==1)return null;n.push(r),r=r.parentNode}return r===t?n:null}function Jp(e,t){if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}ze();Ge();var oe=Object.freeze({ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6});function ae(e){return!!e&&typeof e=="object"&&e._$webjs==="directive"}var Ae=null,yt=!1,wn=0,yn=null,Yi=0,Pl=(e,t)=>Object.is(e,t),Uo=()=>{},jl=()=>!1;function Il(e,t){e.liveConsumers||(e.liveConsumers=new Map);let n=e.liveConsumers.size===0;if(e.liveConsumers.set(t,(e.liveConsumers.get(t)||0)+1),n){if(e.producers&&e.producers.length>0)for(let r of e.producers)Il(r,e);if(e.watched)try{e.watched.call(e.wrapper)}catch(r){console.error(r)}}}function _r(e,t){if(!e.liveConsumers)return;let n=e.liveConsumers.get(t);if(n!==void 0){if(n>1){e.liveConsumers.set(t,n-1);return}if(e.liveConsumers.delete(t),e.liveConsumers.size===0){if(e.producers&&e.producers.length>0)for(let r of e.producers)_r(r,e);if(e.unwatched)try{e.unwatched.call(e.wrapper)}catch(r){console.error(r)}}}}function na(e){if(yt)throw new Error("Signal read during notification phase");if(Ae===null)return;let t=Ae,n=t.nextProducerIndex++;n<t.producers.length&&t.producers[n]!==e&&Qi(t)&&_r(t.producers[n],t),t.producers[n]!==e&&(t.producers[n]=e,Qi(t)&&Il(e,t)),t.producerLastReadVersions[n]=e.version}function Qi(e){return e.consumerIsAlwaysLive||e.liveConsumers&&e.liveConsumers.size>0}function Dl(e){if(!e.liveConsumers||e.liveConsumers.size===0)return;let t=yt;yt=!0;try{for(let n of e.liveConsumers.keys())n.dirty||Yp(n)}finally{yt=t}}function Yp(e){e.dirty=!0,Dl(e),e.consumerMarkedDirty.call(e.wrapper||e)}function Vo(e){if(!(!e.dirty&&e.lastCleanEpoch===wn)){if(!e.producerMustRecompute()&&!Xp(e)){e.dirty=!1,e.lastCleanEpoch=wn;return}e.producerRecomputeValue(),e.dirty=!1,e.lastCleanEpoch=wn}}function Xp(e){for(let t=0;t<e.producers.length;t++){let n=e.producers[t],r=e.producerLastReadVersions[t];if(r!==n.version||(Vo(n),r!==n.version))return!0}return!1}function ea(e){e&&(e.nextProducerIndex=0);let t=Ae;return Ae=e,t}function ta(e,t){if(Ae=t,!!e){if(Qi(e))for(let n=e.nextProducerIndex;n<e.producers.length;n++)_r(e.producers[n],e);for(;e.producers.length>e.nextProducerIndex;)e.producers.pop(),e.producerLastReadVersions.pop()}}var Wo=class{constructor(t,n){this.__value=t,this.version=0,this.lastCleanEpoch=wn,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.liveConsumers=void 0,this.consumerAllowSignalWrites=!0,this.consumerIsAlwaysLive=!1,this.producerMustRecompute=jl,this.producerRecomputeValue=Uo,this.consumerMarkedDirty=Uo,this.wrapper=this,this.__isSignal=!0,this.__equal=n?.equals||Pl,this.watched=n?.[ra],this.unwatched=n?.[oa]}get(){return na(this),this.__value}peek(){return this.__value}set(t){if(yt)throw new Error("Signal write during notification phase");this.__equal.call(this,this.__value,t)||(this.__value=t,this.version++,wn++,yn!==null?Ml(this):Dl(this))}};function Ml(e){let t=yt;yt=!0;try{if(!e.liveConsumers)return;for(let n of e.liveConsumers.keys())n.dirty||(n.dirty=!0,n.__isWatcher?yn.add(n):Ml(n))}finally{yt=t}}var Xi=Symbol("unset"),Zi=Symbol("computing"),Bo=Symbol("errored"),Ar=class{constructor(t,n){this.__fn=t,this.__value=Xi,this.__error=null,this.version=0,this.lastCleanEpoch=-1,this.dirty=!0,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!1,this.wrapper=this,this.__isSignal=!0,this.__isComputed=!0,this.__equal=n?.equals||Pl,this.watched=n?.[ra],this.unwatched=n?.[oa];let r=this;this.producerMustRecompute=function(){return r.__value===Xi||r.__value===Zi},this.producerRecomputeValue=function(){if(r.__value===Zi)throw new Error("Detected cycle in computations.");let o=r.__value;r.__value=Zi;let s=ea(r),i,a=!1;try{i=r.__fn.call(r.wrapper)}catch(l){i=Bo,r.__error=l,a=!0}finally{ta(r,s)}if(!a&&(o!==Xi&&o!==Bo)&&r.__equal.call(r.wrapper,o,i)){r.__value=o;return}r.__value=i,r.version++},this.consumerMarkedDirty=Uo}get(){if(Vo(this),na(this),this.__value===Bo)throw this.__error;return this.__value}peek(){if(Vo(this),this.__value===Bo)throw this.__error;return this.__value}},zo=class{constructor(t){this.__notify=t,this.version=0,this.lastCleanEpoch=wn,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!0,this.producerMustRecompute=jl,this.producerRecomputeValue=Uo,this.wrapper=this,this.__isWatcher=!0;let n=this;this.consumerMarkedDirty=function(){n.__fire()}}__fire(){this.__notify&&this.__notify.call(this)}watch(...t){if(t.length===0){this.dirty=!1;return}let n=ea(this);try{for(let r of t)na(r),r.__isComputed&&Vo(r)}finally{ta(this,n)}this.dirty=!1}unwatch(...t){for(let n=this.producers.length-1;n>=0;n--)t.includes(this.producers[n])&&(_r(this.producers[n],this),this.producers.splice(n,1),this.producerLastReadVersions.splice(n,1),this.nextProducerIndex=Math.min(this.nextProducerIndex,this.producers.length))}getPending(){return this.producers.filter(t=>t.__isComputed&&t.dirty)}observe(t){let n=ea(this),r;try{r=t()}finally{ta(this,n)}return this.dirty=!1,r}dispose(){for(let t of this.producers)_r(t,this);this.producers=[],this.producerLastReadVersions=[],this.__notify=null}},ra=Symbol("watched"),oa=Symbol("unwatched");function Zp(e){let t=Ae;Ae=null;try{return e()}finally{Ae=t}}function Qp(e){return e.producers.slice()}function eh(e){return e.liveConsumers?[...e.liveConsumers.keys()]:[]}function th(e){return!!e.liveConsumers&&e.liveConsumers.size>0}function nh(e){return e.producers.length>0}function rh(){return Ae&&Ae.__isComputed?Ae:null}function oh(e){Yi++,yn===null&&(yn=new Set);try{e()}finally{if(Yi--,Yi===0){let t=yn;yn=null;for(let n of t)n.__fire()}}}var xe={State:Wo,Computed:Ar,subtle:{Watcher:zo,untrack:Zp,introspectSources:Qp,introspectSinks:eh,hasSinks:th,hasSources:nh,currentComputed:rh,watched:ra,unwatched:oa}};function sh(e,t){return new Wo(e,t)}function ih(e,t){return new Ar(e,t)}function Me(e){return!!(e&&typeof e=="object"&&e.__isSignal===!0)}function ah(e){let t=!1,n=!1,r=new Ar(e),o=new zo(()=>{t||n||(t=!0,queueMicrotask(()=>{if(t=!1,!n){try{r.get()}catch(s){console.error(s)}o.watch()}}))});o.watch(r);try{r.get()}catch(s){console.error(s)}return()=>{n||(n=!0,o.dispose())}}function ch(e){return e}bt();jt();var Z;function la(e){Z=e}var I=null;function ua(e){I=e}var Ko=null;function Hl(e){return e&&e.nodeType===11&&!e.host&&e!==I?Ko??I??e:e}function Bl(e,t){let n=e&&e[k]?e:null;return n?$t(n,t):t()}function vn(e){return e?e.nodeType===11&&e.host?e.host:e:null}function Er(e,t){let n=e.__commitOwner,r=I,o=Z;Z=e.__eventHost,n&&(I=n);try{t()}finally{I=r}}function Tr(e,t){if(e.kind==="noop")return{kind:"noop",mixedAnchor:e.mixedAnchor};let n=t;for(let o of e.path)n=n.childNodes[o];if(e.kind==="child")return{kind:"child",marker:n,__eventHost:Z};let r=n;if(e.kind==="event"){let o={kind:"event",el:r,name:e.name||"",handler:null,eventHost:Z,dispatcher(s){typeof o.handler=="function"?o.handler.call(o.eventHost??o.el,s):o.handler?.handleEvent(s)}};return o}if(e.kind==="attr")return{kind:"attr",el:r,name:e.name||""};if(e.kind==="attr-mixed")return{kind:"attr-mixed",el:r,name:e.name||"",statics:e.statics||[],group:e.group||[]};if(e.kind==="prop")return{kind:"prop",el:r,name:e.name||""};if(e.kind==="bool")return{kind:"bool",el:r,name:e.name||""};if(e.kind==="element")return{kind:"element",el:r,refHost:Z};if(e.kind==="slot")return{kind:"slot",slotEl:r,applied:!1};throw new Error(`unknown part kind ${e.kind}`)}var aa=Symbol.for("webjs.asyncDirectives");function lh(e,t){let n={host:e.__eventHost??e.eventHost??Z};switch(e.kind){case"child":return{type:oe.CHILD,options:n,get parentNode(){return Hl(e.marker.parentNode)},get endNode(){return e.marker},get startNode(){let r=e.child,o=r&&(r.startNode||(Array.isArray(r)?r[0]:void 0));return o?o.previousSibling:e.marker.previousSibling}};case"attr":case"attr-mixed":return{type:oe.ATTRIBUTE,options:n,element:e.el,name:e.name,tagName:e.el.tagName,strings:e.kind==="attr-mixed"?e.statics:void 0,piece:t};case"prop":return{type:oe.PROPERTY,options:n,element:e.el,name:e.name,tagName:e.el.tagName};case"bool":return{type:oe.BOOLEAN_ATTRIBUTE,options:n,element:e.el,name:e.name,tagName:e.el.tagName};case"event":return{type:oe.EVENT,options:n,element:e.el,name:e.name,tagName:e.el.tagName};default:return{type:oe.ELEMENT,options:n,element:e.el}}}function Jo(e){for(let t=e;t;t=t.child)if(t.released=!0,typeof t.inst._$webjsSetConnected=="function"){t.inst._$webjsCommit=void 0;try{t.inst._$webjsSetConnected(!1)}catch(n){console.error("[webjs] an async directive's disconnected() threw:",n)}t.host?.[aa]?.delete(t)}}function uh(e,t){if(!e||typeof e.addController!="function")return;let n=e[aa];if(!n){let r=n=e[aa]=new Set;e.addController({hostConnected(){for(let o of[...r])o.inst._$webjsSetConnected(!0)},hostDisconnected(){for(let o of[...r])o.inst._$webjsSetConnected(!1)}})}n.add(t),t.host=e}function vr(e,t,n,r,o,s,i){if(e.__settingValue)return r;let a=t,c=n,l=0;for(;ae(r);){if(++l>100)throw new Error("[webjs] a custom directive kept returning directives (more than 100 levels deep).");let u=r,f=a[c];if(!f||f.ctor!==u.ctor){f&&Jo(f);let d=lh(e,i),p=d,m=new u.ctor({type:p.type,name:p.name,tagName:p.tagName,strings:p.strings});if(f=a[c]={ctor:u.ctor,inst:m,facade:d,child:void 0,host:void 0,released:!1},typeof m._$webjsSetConnected=="function"){I&&(e.__commitOwner=vn(I)),e.kind!=="child"&&(e.__eventHost??=Z);let b=f;I?.[fa]&&(m.isConnected=!1);let g=e.__eventHost??Z;g&&g.isConnected===!1&&typeof g.addController=="function"&&(m.isConnected=!1),m._$webjsCommit=w=>{if(!b.released)try{Er(e,()=>{let S=vr(e,b,"child",w,o,!0,i);S!==x&&o(S)})}catch(S){kr(e,S)}},uh(e.__eventHost??Z,f)}}r=f.inst.update(f.facade,u.values),a=f,c="child"}return a[c]&&r!==x&&(l>0||s)&&(Jo(a[c]),a[c]=void 0),r}var fa=Symbol("webjs.rootDisconnected");function xr(e,t){if(!(!e||!e.bound))for(let n of e.bound)Ul(n,t)}function Ul(e,t){let n=o=>{for(let s=o;s;s=s.child)typeof s.inst._$webjsSetConnected=="function"&&s.inst._$webjsSetConnected(t)};if(n(e.__directive),e.__pieceDirectives)for(let o of Object.keys(e.__pieceDirectives))n(e.__pieceDirectives[o]);let r=e.kind==="child"?e.child:null;if(r)if(r.kind==="repeat")for(let o of r.map.values())xr(o,t);else if(r.kind==="array")for(let o of r.items)o.type==="tpl"?xr(o.inst,t):o.type==="part"&&Ul(o.sub,t);else"strings"in r&&xr(r,t)}function da(e){if(e.__sigSub&&ma(e),e.__watchSub&&ga(e),e.__directive&&(Jo(e.__directive),e.__directive=void 0),e.__pieceDirectives){for(let t of Object.keys(e.__pieceDirectives))Jo(e.__pieceDirectives[t]);e.__pieceDirectives=void 0}e.kind==="child"&&e.child&&fh(e.child)}function fh(e){if(e){if(e.kind==="repeat"){for(let t of e.map.values())Sn(t);return}if(e.kind==="array"){for(let t of e.items)t.type==="tpl"?Sn(t.inst):t.type==="part"&&da(t.sub);return}"strings"in e&&Sn(e)}}function Sn(e){if(!(!e||!e.bound))for(let t of e.bound)da(t)}function dh(e){return Ne(e)||Le(e)||Oe(e)||Y(e)}var sa=new WeakMap;function Vl(e,t,n){let r=c=>!!c&&typeof c.then=="function",o=e.findIndex(c=>!r(c)),s=o<0?e.length:o,i=o<0?{has:!1}:{has:!0,value:e[o]};for(let c=0;c<s;c++)if(sa.has(e[c])){i={has:!0,value:sa.get(e[c])},s=c;break}let a=s;for(let c=0;c<s;c++){let l=e[c];Promise.resolve(l).then(u=>{sa.set(l,u),!(!t()||c>=a)&&(a=c,n(u))},()=>{})}return i}function Wl(e,t){return e===void 0?!1:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&t.every((n,r)=>Object.is(n,e[r])):Object.is(e,t)}function ph(e,t,n,r,o){let s=e.__pieceGuardDeps??=[],i=e.__pieceUntil??=[];if(i[t]=null,Le(n)){let l=n.deps;if(Wl(s[t],l))return r[t]??"";s[t]=l,n=n.fn()}else s[t]=void 0;for(;Ne(n)||Oe(n);)n=n.value;if(!Je(n))return n;let a={};i[t]=a;let c=Vl(n.args,()=>i[t]===a,l=>{if(l===E){e.el.removeAttribute(e.name);return}_e(l,e.name,e.el.localName),r[t]=String(l??"");let u=o.statics[0];for(let f=0;f<o.group.length;f++)u+=(r[f]??"")+(o.statics[f+1]||"");e.el.setAttribute(e.name,u)});return c.has?c.value:r[t]??""}function se(e,t,n,r,o){if(t===x&&e.kind!=="attr-mixed"||e.kind!=="child"&&e.kind!=="attr-mixed"&&e.kind!=="slot"&&e.kind!=="noop"&&(e.__directive||ae(t))&&(t=vr(e,e,"__directive",t,i=>{let a=e;a.__settingValue=!0;try{se(e,i,void 0,void 0,o)}finally{a.__settingValue=!1}},!0),t===x))return;let s=e;if((e.kind==="attr"||e.kind==="bool"||e.kind==="attr-mixed")&&!s.__applyingSignal){if(e.kind==="attr-mixed"?e.group.some(a=>ia(r?r[a]:t)):ia(t)){kh(e,()=>{s.__applyingSignal=!0;try{se(e,e.kind==="attr-mixed"?t:Fl(t),n,r,o)}finally{s.__applyingSignal=!1}});return}s.__sigSub&&ma(s)}if(cr(t)){dl(e,t);return}if(e.__mapKind=void 0,e.kind==="attr"||e.kind==="prop"||e.kind==="bool"||e.kind==="event"){if(!s.__untilApplying)if(s.__attrUntil=null,Le(t)){let i=t.deps;if(Wl(s.__attrGuardDeps,i))return;s.__attrGuardDeps=i,t=t.fn()}else s.__attrGuardDeps=void 0;for(;Ne(t)||Oe(t);)t=t.value;if(Je(t)){let i={};s.__attrUntil=i;let a=Vl(t.args,()=>s.__attrUntil===i,c=>{s.__untilApplying=!0;try{se(e,c,void 0,r,o)}finally{s.__untilApplying=!1}});if(!a.has)return;t=a.value}}if(Y(t)){let i=t.value;if(i===x||e.kind==="prop"&&e.el[e.name]===i||e.kind==="attr"&&e.el.getAttribute(e.name)===String(i)||e.kind==="bool"&&e.el.hasAttribute(e.name)===!!i)return;t=i}switch(e.kind){case"child":pa(e,t,o);break;case"attr":{let i=Pt(e.name,t);i===null?e.el.removeAttribute(e.name):un(t,e.name,e.el.localName)||(_e(t,e.name,e.el.localName),e.el.setAttribute(e.name,i));break}case"prop":Co(t,e.name,e.el.localName),e.el[e.name]=t===E?void 0:t;break;case"bool":_e(t,e.name,e.el.localName),t&&t!==E?e.el.setAttribute(e.name,""):e.el.removeAttribute(e.name);break;case"event":{let i=e.handler,a=t==null||t===E?null:t,c=i?.capture!==a?.capture||i?.once!==a?.once||i?.passive!==a?.passive;i&&(!a||c)&&e.el.removeEventListener(e.name,e.dispatcher,i),a&&(!i||c)&&e.el.addEventListener(e.name,e.dispatcher,a),e.handler=a}break;case"element":mh(e,t);break;case"attr-mixed":{let i=e,a=i.statics[0],c=e.__pieces??=[];if(i.group.length===1&&!i.statics[0]&&!i.statics[1]&&!c.length&&(r?r[i.group[0]]:t)===x)break;let l=!1;for(let u=0;u<i.group.length;u++){let f=r?r[i.group[u]]:t,d=e.__pieceDirectives;if(ae(f)||d&&d[u]){let p=e.__pieceDirectives??={},m=u;f=vr(e,p,String(u),f,b=>{if(b===x)return;if(b===E){e.el.removeAttribute(e.name);return}c[m]=String(b??"");let g=i.statics[0];for(let w=0;w<i.group.length;w++)g+=(c[w]??"")+(i.statics[w+1]||"");e.el.setAttribute(e.name,g)},!0,u)}if(ia(f)&&(f=Fl(f)),f===x&&(f=c[u]??""),Y(f)&&(f=f.value,l=!0,f===x&&(f=c[u]??"")),f=ph(e,u,f,c,i),_e(f,e.name,e.el.localName),f===E){e.el.removeAttribute(e.name);return}c[u]=String(f??""),a+=c[u],a+=i.statics[u+1]||""}if(l&&e.el.getAttribute(e.name)===a)break;e.el.setAttribute(e.name,a);break}case"slot":{if(e.applied)break;let i=e.slotEl,a=()=>{let l=An(i);if(!l){e.applied=!0;return}if(!l.contains(i)){l.isConnected?queueMicrotask(a):e.applied=!0;return}if(e.applied=!0,!hh(i)){if(Ho.has(i))Ho.delete(i);else{let u=document.createDocumentFragment();for(;i.firstChild;)u.appendChild(i.firstChild);i[Pe]=u}queueMicrotask(()=>ie(l))}},c=An(i);c&&c.contains(i)?a():queueMicrotask(a);break}case"noop":break}}function An(e){let t=e[It];if(t&&t.isConnected)return t;let n=e.parentElement;for(;n;){if(n[k])return n;n=n.parentElement}return null}function hh(e){let t=e;for(let n=0;n<128;n++){let r=t.parentNode;if(!r||r===t)return!1;if(r.nodeType===11&&r.host)return!0;t=r}return!1}function mh(e,t){let n=e,r=pn(t)?t.target:void 0,o=n.__refTarget,s=r!==o;if(s&&o)if(typeof o=="function")try{o.call(n.refHost,void 0)}catch{}else typeof o=="object"&&(o.value=void 0);if(s||n.__refElement!==e.el){if(n.__refTarget=r,r)if(typeof r=="function"){if(!s&&n.__refElement!==void 0)try{r.call(n.refHost,void 0)}catch{}try{r.call(n.refHost,e.el)}catch{}}else typeof r=="object"&&(r.value=e.el);n.__refElement=e.el,e.lastTarget=r}}function pa(e,t,n){if(!(t===x||(e.__directive||ae(t))&&(t=vr(e,e,"__directive",t,o=>pe(e,o,n),!dh(t)),t===x)))return vh(e,t),pe(e,t,n)}function pe(e,t,n){let r=Z;Z=e.__eventHost;let o=Ko;Ko=Hl(e.marker&&e.marker.parentNode);try{return Bl(e.marker&&e.marker.parentNode,()=>zl(e,t,n))}finally{Z=r,Ko=o}}function zl(e,t,n){let r=e.marker;if(ae(t)&&(t=vr(e,e,"__directive",t,s=>pe(e,s,n),!1),t===x))return;if(Y(t))return zl(e,t.value,n);if(lr(t)){let s=String(t.value??""),i=t.ns,a=e.__unsafeCommitted;if(a&&a.str===s&&a.ns===i&&e.child===a.nodes)return;Xe(e);let c=document.createElement("template"),l=i==="svg"?"svg":i==="mathml"?"math":null;if(c.innerHTML=l?`<${l}>${s}</${l}>`:s,l){let d=c.content.firstChild;d.replaceWith(...d.childNodes)}let u=[...c.content.childNodes],f=document.createDocumentFragment();for(let d of u)f.appendChild(d);r.parentNode?.insertBefore(f,r),e.child=u,e.__unsafeCommitted={str:s,ns:i,nodes:u};return}if(Ne(t)){let s=t,i=e.__keyedKey;i!==void 0&&!Object.is(i,s.key)&&Xe(e),e.__keyedKey=s.key,pe(e,s.value,n);return}if(Le(t)){let s=t,i=e.__guardDeps,a=s.deps;if(i!==void 0&&(Array.isArray(i)&&Array.isArray(a)?xh(i,a):Object.is(i,a)))return;let c=Array.isArray(a)?a.slice():a;pe(e,s.fn(),n),e.__guardDeps=c;return}if(ur(t)){Xe(e);let s=t.template;if(s&&s.content){let i=document.importNode(s.content,!0),a=[...i.childNodes];r.parentNode?.insertBefore(i,r),e.child=a}return}if(pn(t))return;if(Oe(t))return Eh(e,t.value,n);if(Je(t))return Th(e,t.args,n);if(fe(t))return $l(e,t.signal,n);if(Me(t))return $l(e,t,n);if(fr(t))return Rh(e,t,n);if(dr(t))return Ch(e,t,n);if(dn(t)){if(e.child&&e.child.kind==="repeat"){yh(e,t,n);return}Xe(e);let s={kind:"repeat",map:new Map};e.child=s,bh(r,s,t,n);return}if(t!==null&&typeof t=="object"&&!Array.isArray(t)&&!_n(t)&&typeof t[Symbol.iterator]=="function"&&(t=Array.from(t)),Array.isArray(t)){if(e.child&&e.child.kind==="array"){_h(e,t,n);return}Xe(e);let s={kind:"array",items:[]};e.child=s,Sh(r,s,t,n);return}if(_n(t)&&Array.isArray(e.child)&&e.child.length===1&&e.child[0]===t)return;if(e.child){let s=e.child;if(s.kind==="repeat")Gl(s),e.child=void 0;else if(s.kind==="array")Xl(s),e.child=void 0;else if(s.kind==="async-stream")eu(s),e.child=void 0;else if("strings"in e.child){let i=e.child;if(H(t)&&i.strings===t.strings){Bt(i,t.values,n);return}xn(i),Ut(i.startNode,i.endNode),e.child=void 0}else{for(let i of e.child)i.parentNode&&i.parentNode.removeChild(i);e.child=void 0}}if(t==null||t===E||t===x||t==="")return;if(H(t)){let s=t,{templateEl:i,parts:a,formActions:c}=bn(s),l=document.importNode(i.content,!0),u=document.createComment(`${P}s`),f=document.createComment(`${P}e`),d=a.map(b=>Tr(b,l)),p=[];for(let b=0;b<s.values.length;b++)se(d[b],s.values[b],void 0,s.values,n),p.push(s.values[b]);n&&n(c,d,s.values);let m=[u,...l.childNodes,f];r.parentNode?.insertBefore(gh(m),r);for(let b of d)b.kind==="slot"&&se(b,void 0,void 0,[],n);e.child={strings:s.strings,bound:d,lastValues:p,startNode:u,endNode:f};return}let o=_n(t)?t:document.createTextNode(String(t));r.parentNode?.insertBefore(o,r),e.child=[o]}function _n(e){return e!==null&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.cloneNode=="function"}function Bt(e,t,n){t=t.map((o,s)=>o===x?e.lastValues[s]:o);let r=null;for(let o=0;o<t.length;o++){let s=t[o];if(Object.is(s,e.lastValues[o])&&!ae(s))continue;let i=e.bound[o],a=i.kind==="attr-mixed"?o:i.mixedAnchor;if(a!=null){if(r?.has(a)){e.lastValues[o]=s;continue}(r??=new Set).add(a)}let c=i.mixedAnchor;try{i.kind==="noop"&&c!=null?se(e.bound[c],t[c],e.lastValues[c],t,n):se(i,s,e.lastValues[o],t,n)}catch(l){throw e.lastValues[o]=ql,i.kind==="noop"&&c!=null&&(e.lastValues[c]=ql),l}e.lastValues[o]=s}n&&n($o.get(e.strings)?.formActions??null,e.bound,t)}var ql=Symbol("webjs.commitFailed");function Ut(e,t){let n=e.parentNode;if(!n)return;let r=e;for(;r&&r!==t;){let o=r.nextSibling;r.parentNode?.removeChild(r),r=o}t.parentNode===n&&n.removeChild(t)}function gh(e){let t=document.createDocumentFragment();for(let n of e)t.appendChild(n);return t}function ha(e,t){let{templateEl:n,parts:r,formActions:o}=bn(e),s=document.importNode(n.content,!0),i=document.createComment(`${P}s`),a=document.createComment(`${P}e`),c=r.map(f=>Tr(f,s)),l=[];for(let f=0;f<e.values.length;f++)se(c[f],e.values[f],void 0,e.values,t),l.push(e.values[f]);t&&t(o,c,e.values);for(let f of c)f.kind==="slot"&&se(f,void 0,void 0,[],t);let u=document.createDocumentFragment();for(u.appendChild(i);s.firstChild;)u.appendChild(s.firstChild);return u.appendChild(a),{inst:{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a},frag:u}}function xn(e){Sn(e);for(let t of e.bound)if(t.kind==="event"&&t.el.removeEventListener(t.name,t.dispatcher,t.handler),t.kind==="element"){let n=t.lastTarget;if(n){if(typeof n=="function")try{n.call(t.refHost,void 0)}catch{}else if(typeof n=="object")try{n.value=void 0}catch{}t.lastTarget=void 0,t.__lastEl=void 0}}}function bh(e,t,n,r){let{items:o,keyFn:s,templateFn:i}=n,a=e.parentNode;if(!a)return;let c=document.createDocumentFragment(),l=new Map;for(let u=0;u<o.length;u++){let f=Kl(t,s(o[u],u),l),d=i(o[u],u);if(!H(d))continue;let{inst:p,frag:m}=ha(d,r);t.map.set(f,p),c.appendChild(m)}a.insertBefore(c,e)}function Kl(e,t,n){let r=n.get(t)??0;if(n.set(t,r+1),r===0)return t;let o=e.dups??=new Map,s=o.get(t);return s||o.set(t,s=[]),s[r-1]??={duplicateOf:t,n:r}}function yh(e,t,n){let r=e.marker,o=r.parentNode;if(!o)return;let s=e.child,{items:i,keyFn:a,templateFn:c}=t,l=new Map,u=new Map;try{for(let f=0;f<i.length;f++){let d=Kl(s,a(i[f],f),u),p=c(i[f],f);if(!H(p))continue;let m=s.map.get(d);if(m&&m.strings===p.strings)Bt(m,p.values,n),ca(m.startNode,m.endNode,o,r),l.set(d,m),s.map.delete(d);else{m&&(s.map.delete(d),xn(m),Ut(m.startNode,m.endNode));let{inst:b,frag:g}=ha(p,n);o.insertBefore(g,r),l.set(d,b)}}for(let[f,d]of[...s.map]){s.map.delete(f);try{xn(d)}finally{Ut(d.startNode,d.endNode)}}s.map=l}catch(f){for(let[d,p]of l)s.map.set(d,p);throw f}}function Gl(e){for(let[t,n]of[...e.map]){e.map.delete(t);try{xn(n)}finally{Ut(n.startNode,n.endNode)}}e.map.clear()}function wh(e){return e.type==="part"?e.start:e.type==="tpl"?e.inst.startNode:e.type==="text"||e.type==="node"?e.node:null}function Go(e){e.type==="part"?(da(e.sub),Xe(e.sub),Ut(e.start,e.sub.marker)):e.type==="tpl"?(xn(e.inst),Ut(e.inst.startNode,e.inst.endNode)):(e.type==="text"||e.type==="node")&&e.node.parentNode?.removeChild(e.node)}function Jl(e,t){if(Y(e)&&(e=e.value),Yl(e)){let n=document.createComment(""),r=document.createComment(""),o=document.createDocumentFragment();o.append(n,r);let s={kind:"child",marker:r,__eventHost:Z};return{item:{type:"part",start:n,sub:s},frag:o,fill:()=>pa(s,e,t)}}if(H(e)){let{inst:n,frag:r}=ha(e,t);return{item:{type:"tpl",inst:n},frag:r}}if(_n(e))return{item:{type:"node",node:e},frag:e};if(e!=null&&e!==E&&e!==x&&e!==""){let n=document.createTextNode(String(e));return{item:{type:"text",node:n},frag:n}}return{item:{type:"empty"},frag:null}}function Sh(e,t,n,r){let o=e.parentNode;if(!o)return;let s=document.createDocumentFragment(),i=[],a=[];for(let c of n){let{item:l,frag:u,fill:f}=Jl(c,r);u&&s.appendChild(u),f&&a.push(f),i.push(l)}o.insertBefore(s,e),t.items=i;for(let c of a)c()}function Yl(e){return e!==null&&typeof e=="object"&&!H(e)&&!_n(e)}function _h(e,t,n){let r=e.marker,o=r.parentNode;if(!o)return;let s=e.child,i=s.items,a=[],c=0;try{for(let l=0;l<t.length;l++){let u=t[l],f=Y(u)?u.value:u,d=i[l];if(Yl(f)){if(d&&d.type==="part"){pa(d.sub,f,n),a.push(d),c=l+1;continue}}else if(H(f)){let g=f;if(d&&d.type==="tpl"&&d.inst.strings===g.strings){Bt(d.inst,g.values,n),a.push(d),c=l+1;continue}}else if(_n(f)){if(d&&d.type==="node"&&d.node===f){a.push(d),c=l+1;continue}}else if(f!=null&&f!==E&&f!==x&&f!==""){if(d&&d.type==="text"){let g=String(f);d.node.data!==g&&(d.node.data=g),a.push(d),c=l+1;continue}}else{d&&Go(d),a.push({type:"empty"}),c=l+1;continue}let{item:p,frag:m,fill:b}=Jl(f,n);m&&o.insertBefore(m,Ah(i,l,r)),a.push(p),b&&b(),d&&Go(d),c=l+1}for(let l=t.length;l<i.length;l++)Go(i[l]),c=l+1;s.items=a}catch(l){throw s.items=a.concat(i.slice(c)),l}}function Ah(e,t,n){for(let r=t;r<e.length;r++){let o=wh(e[r]);if(o&&o.parentNode)return o}return n}function Xl(e){for(let t of e.items)Go(t);e.items=[]}function ca(e,t,n,r){if(t.nextSibling===r&&e.parentNode===n)return;let o=document.createDocumentFragment(),s=e;for(;s;){let i=s.nextSibling;if(o.appendChild(s),s===t)break;s=i}n.insertBefore(o,r)}function xh(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function Xe(e){let t=e;if(t.__untilState&&(t.__untilState.aborted=!0,t.__untilState=void 0),t.__watchSub&&ga(t),!e.child)return;let n=e.child;if(n.kind==="repeat")Gl(n);else if(n.kind==="array")Xl(n);else if(n.kind==="async-stream")eu(n);else if("strings"in n){let r=e.child;xn(r),Ut(r.startNode,r.endNode)}else for(let r of e.child)r.parentNode&&r.parentNode.removeChild(r);e.child=void 0}function vh(e,t){let n=e;n.__untilState&&!Je(t)&&(n.__untilState.aborted=!0,n.__untilState=void 0),n.__guardDeps!==void 0&&!Le(t)&&(n.__guardDeps=void 0),n.__cacheMap&&!Oe(t)&&(n.__cacheMap=void 0),n.__keyedKey!==void 0&&!Ne(t)&&(n.__keyedKey=void 0),n.__watchSub&&!fe(t)&&!Me(t)&&ga(n)}function Eh(e,t,n){let r=e.marker,o=e,s=o.__cacheMap;s||(s=new Map,o.__cacheMap=s);let i=e.child;if(i&&"strings"in i){let c=i;if(H(t)&&c.strings===t.strings){Bt(c,t.values,n);return}let l=document.createDocumentFragment();ca(c.startNode,c.endNode,l,null),s.set(c.strings,{inst:c,holder:l}),e.child=void 0}if(H(t)){let c=t,l=s.get(c.strings);if(l){s.delete(c.strings),e.child&&Xe(e),ca(l.inst.startNode,l.inst.endNode,r.parentNode,r),Bt(l.inst,c.values,n),e.child=l.inst;let u=new Set;for(let f=l.inst.startNode.nextSibling;f&&f!==l.inst.endNode;f=f.nextSibling){if(f.nodeType!==1)continue;let d=f;if(d.matches("slot[data-webjs-light]")){let p=An(d);p&&u.add(p)}for(let p of d.querySelectorAll("slot[data-webjs-light]")){let m=An(p);m&&u.add(m)}}for(let f of u)ie(f);return}}pe(e,t,n)}function Th(e,t,n){let r=e;I&&(r.__commitOwner=vn(I));let o=r.__untilState,s=r.__untilArgs,i=(p,m)=>!!(Object.is(p,m)||H(p)&&H(m)&&p.strings===m.strings),c=s&&s.length===t.length&&s.every((p,m)=>i(p,t[m]))&&o?o.highestResolved:1/0;o&&(o.aborted=!0),r.__untilArgs=t.slice();let l={aborted:!1,highestResolved:c};r.__untilState=l;let u=-1,f;for(let p=0;p<t.length;p++){let m=t[p];if(!m||typeof m.then!="function"){u=p,f=m;break}}u!==-1&&u<=l.highestResolved?(pe(e,f,n),l.highestResolved=u):u===-1&&!r.__untilEverRendered&&pe(e,"",n),r.__untilEverRendered=!0;let d=Math.min(u===-1?t.length:u,l.highestResolved);for(let p=0;p<d;p++){let m=t[p];!m||typeof m.then!="function"||Promise.resolve(m).then(b=>{if(!l.aborted&&!(p>=l.highestResolved)){try{Er(e,()=>pe(e,b,n))}catch(g){kr(e,g);return}l.highestResolved=p}},()=>{})}}function kr(e,t){let n;try{n=t instanceof Error?t:new Error(String(t))}catch{n=new Error("render error (unstringifiable thrown value)")}let r=e.__commitOwner;if(r&&typeof r._handleRenderError=="function"){r._handleRenderError(n);return}throw n}function $l(e,t,n){let r=e;if(I&&(r.__commitOwner=vn(I)),r.__watchSig===t&&r.__watchSub){let i;r.__watchSub.observe(()=>{i=t.get()}),pe(e,i,n);return}r.__watchSub&&(r.__watchSub.dispose(),r.__watchSub=void 0),r.__watchSig=t;let o=new xe.subtle.Watcher(()=>{queueMicrotask(()=>{if(r.__watchSub!==o)return;let i;try{o.observe(()=>{i=t.get()}),Er(e,()=>pe(e,i,n))}catch(a){kr(e,a)}})});r.__watchSub=o;let s;o.observe(()=>{s=t.get()}),pe(e,s,n)}function kh(e,t){ma(e),I&&(e.__commitOwner=vn(I));let n=new xe.subtle.Watcher(()=>{queueMicrotask(()=>{if(e.__sigSub===n)try{Er(e,()=>n.observe(t))}catch(r){kr(e,r)}})});e.__sigSub=n,n.observe(t)}function ia(e){return Me(e)||fe(e)}function Fl(e){return fe(e)?e.signal.get():e.get()}function ma(e){e.__sigSub&&(e.__sigSub.dispose(),e.__sigSub=void 0)}function ga(e){e.__watchSub&&(e.__watchSub.dispose(),e.__watchSub=void 0,e.__watchSig=void 0)}function Rh(e,t,n){let r=e;I&&(r.__commitOwner=vn(I));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="append"&&o.iterable===t.iterable)return;Xe(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"append",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Zl(i,e,t,n)}function Ch(e,t,n){let r=e;I&&(r.__commitOwner=vn(I));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="replace"&&o.iterable===t.iterable)return;Xe(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"replace",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Zl(i,e,t,n)}async function Zl(e,t,n,r){let o=t.marker,s=0;for(;!e.aborted;){let i,a;try{if(i=await e.iterator.next(),e.aborted||i.done)break;a=n.mapper?n.mapper(i.value,s):i.value}catch(c){typeof console<"u"&&console.error("[webjs] asyncStream error:",c);return}try{Er(t,()=>{let c=Ql(a,r);Bl(o.parentNode,()=>{if(e.mode==="replace"){for(let u of e.nodes)u.parentNode&&u.parentNode.removeChild(u);e.nodes=[]}let l=document.createDocumentFragment();for(let u of c)l.appendChild(u);o.parentNode?.insertBefore(l,o),e.nodes.push(...c)})})}catch(c){e.aborted=!0;try{e.iterator.return?.()?.catch?.(()=>{})}catch{}kr(t,c);return}s++}}function Ql(e,t){if(Y(e)&&(e=e.value),e==null||e===E||e===x)return[];if(H(e)){let n=e,{templateEl:r,parts:o,formActions:s}=bn(n),i=document.importNode(r.content,!0),a=o.map(c=>Tr(c,i));for(let c=0;c<n.values.length;c++)se(a[c],n.values[c],void 0,n.values,t);t&&t(s,a,n.values);for(let c of a)c.kind==="slot"&&se(c,void 0,void 0,[],t);return[...i.childNodes]}if(Array.isArray(e)){let n=[];for(let r of e)n.push(...Ql(r,t));return n}return[document.createTextNode(String(e))]}function eu(e){e.aborted=!0;for(let t of e.nodes)t.parentNode&&t.parentNode.removeChild(t);e.nodes=[];try{e.iterator.return?.()?.catch?.(()=>{})}catch{}}var Nh=e=>Kn`${e}`;function Wt(e,t,n={}){return Oh(e,t,n),Lh(t)}var tu=new WeakMap;function Lh(e){let t=tu.get(e);return t||(t={setConnected(n){e[fa]=!n,xr(e[gn],n)}},tu.set(e,t)),t}function Oh(e,t,n){if(e===x)return;e!==null&&typeof e=="object"&&!H(e)&&(e=Nh(e));let r=t,o=r[V];r[V]=!0;let s=Z;la(n.host);let i=I;ua(t);try{let a=r[gn];if(H(e)){let c=e;if(a&&a.strings===c.strings){Bt(a,c.values,Xo);return}a&&nu(a,t);let l=t.firstChild,u=!!l&&l.nodeType===8&&l.data==="webjs-hydrate";u&&l.remove(),r[gn]=null;let f=Ih(c,t,u);r[gn]=f;return}if(a&&nu(a,t),r[gn]=null,t.replaceChildren(),e==null||e===E)return;t.appendChild(document.createTextNode(String(e)))}finally{ua(i),la(s),r[V]=o,o||Po(r)}}function Xo(e,t,n){if(e)for(let r of[!0,!1])for(let o of e){if(o.isForm!==r)continue;let s=o.actionIdxs[0],i=o.isForm?"action":"formaction";for(let l of o.actionIdxs)if(un(Vt(n[l]),i,o.tag)){s=l;break}let a=t[s];if(!a||!a.el)continue;let c=Vt(n[s]);if(o.isForm)ol(a.el,c,Yo(o.methodParts,o.staticMethod,n),Yo(o.enctypeParts,o.staticEnctype,n),o);else{let l=u=>u.some(f=>f.kind==="bool"?!!Vt(n[f.i]):f.kind==="attr"?Pt("name",Vt(n[f.i]))!==null:!0);jh(a.el,c,o,l(o.nameParts),l(o.valueParts),Yo(o.methodParts,o.staticMethod,n),Yo(o.enctypeParts,o.staticEnctype,n))}}}function Ph(e){(Fo.has(e)||e.getAttribute("name")===U)&&(e.getAttribute("name")===U&&e.removeAttribute("name"),e.removeAttribute("value"),Fo.delete(e))}function jh(e,t,n,r,o,s,i){let a=typeof t=="function"?er(t):null;if(!a){typeof t=="function"&&fn(null,e.localName,t),Ph(e),sl(e,s,i,n.propAttrs);return}or(n.duplicateAction,e.localName),mi(n.propAttrs,e.localName),n.staticAction&&hi(e.localName),(n.authoredValue||o)&&nr(e.localName),(n.authoredName||r)&&tr(e.getAttribute("name")||U,e.localName,!1),(n.authoredForm||e.hasAttribute("form"))&&rr(e.localName),pi(e.localName,e.getAttribute("type"));let c=gi(e.localName,s,i);e.removeAttribute("formaction"),e.setAttribute("name",U),e.setAttribute("value",a),Qn(e,"formmethod",s,c.formMethod),Qn(e,"formenctype",i,c.formEnctype),Fo.set(e,a)}function Yo(e,t,n){for(let r of e){if(r.kind==="bool")return Vt(n[r.i])?"":K;if(r.kind==="attr"){let a=Pt("method",Vt(n[r.i]));return a===null?K:a}let o=r.statics||[],s=r.group||[],i=o[0]||"";for(let a=0;a<s.length;a++)i+=String(Vt(n[s[a]])??""),i+=o[a+1]||"";return i}return t??K}function Vt(e){return Y(e)?e.value:e}function Ih(e,t,n=!1){let{templateEl:r,parts:o,formActions:s}=bn(e),i=document.importNode(r.content,!0),a=document.createComment(`${P}s`),c=document.createComment(`${P}e`),l=o.map(p=>Tr(p,i)),u=n?Nl(t,i,l):null;u&&Ll(u,l);let f=[];for(let p=0;p<e.values.length;p++)se(l[p],e.values[p],void 0,e.values,Xo),f.push(e.values[p]);Xo(s,l,e.values),u?Ol(u,t,[a,...i.childNodes,c]):t.replaceChildren(a,...i.childNodes,c);let d=t.nodeType===1&&t[k]?t:null;for(let p of l)p.kind==="slot"&&(d&&p.slotEl&&(p.slotEl[It]=d),se(p,void 0,void 0,[],Xo));return{strings:e.strings,bound:l,lastValues:f,startNode:a,endNode:c}}function nu(e,t){Sn(e);for(let n of e.bound){if(n.kind==="event"&&n.el.removeEventListener(n.name,n.dispatcher,n.handler),n.kind==="element"){let r=n.lastTarget;if(r){if(typeof r=="function")try{r.call(n.refHost,void 0)}catch{}else if(typeof r=="object")try{r.value=void 0}catch{}n.lastTarget=void 0,n.__lastEl=void 0}}if(n.kind==="slot"){let r=An(n.slotEl);r&&Gi(r,n.slotEl)}}t.replaceChildren()}function Dh(e){return!!e&&e.state!==!0&&e.attribute!==!1}function Zo(e,t,n){if(typeof e.converter=="function")return e.converter(t,e.type);if(e.converter&&e.converter.fromAttribute)return e.converter.fromAttribute(t,e.type);if(e.type===Number)return t==null?null:Number(t);if(e.type===Boolean)return t==="false"&&Mh(e,n),t!=null;if(e.type===Object||e.type===Array){if(t==null)return null;try{return JSON.parse(t)}catch{return null}}return t}var ru=new WeakSet;function Mh(e,t){if(ru.has(e))return;ru.add(e);let n=t?`\`${String(t)}\``:"A Boolean property";console.warn(`[webjs] ${n} received the attribute value "false", which is TRUE: a Boolean property is on whenever its attribute is present, as in HTML and Lit. To turn it off, leave the attribute out, or bind it with ?attr=\${false} in a template.`)}function qh(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Qo(e,t){if(Dh(t)){if(typeof t.attribute=="string")return t.attribute;if(typeof e=="string")return e.toLowerCase()}}function es(e,t){let n,r;for(let{propName:o,def:s,primary:i,alias:a}of uu(e))if(i===t){if(o===t)return{propName:o,def:s};n===void 0&&(n={propName:o,def:s})}else r===void 0&&a===t&&(r={propName:o,def:s});return n??r}function au(e){let t=new Set,n=uu(e);for(let{primary:r}of n)t.add(r);for(let{alias:r}of n)r&&t.add(r);return[...t]}function St(e){if(!e||typeof e!="function")return e&&e.properties||{};let t=ou.get(e);if(t&&t.epoch===wt)return t.merged;let n=Object.getPrototypeOf(e),r=n&&n!==Function.prototype?St(n):$h,o=ba.get(e)??0;if(t&&t.inherited===r&&t.version===o)return t.epoch=wt,t.merged;let s=Object.hasOwn(e,"properties")?e.properties:void 0,i=ya.get(e),a=s&&typeof s=="object"?{...r,...s}:r;return i&&(a={...a,...i}),ou.set(e,{epoch:wt,inherited:r,version:o,merged:a}),a}var ou=new WeakMap,$h=Object.freeze({}),ba=new WeakMap,wt=0;function cu(){return wt}var ya=new WeakMap;function Rr(e){return typeof e=="object"&&e!==null?e:{type:e}}function lu(e,t,n){let r=ya.get(e);r||ya.set(e,r={}),r[t]=n,Fh(e)}function Fh(e){ba.set(e,(ba.get(e)??0)+1),wt++}function uu(e){if(e&&typeof e=="function"){let t=su.get(e);if(t&&t.epoch===wt)return t.built;let n=St(e);if(t&&t.merged===n)return t.epoch=wt,t.built;let r=iu(e);return su.set(e,{epoch:wt,merged:n,built:r}),r}return iu(e)}var su=new WeakMap;function iu(e){let t=St(e),n=[];for(let r of Reflect.ownKeys(t)){let o=Rr(t[r]),s=Qo(r,o);if(s===void 0)continue;let i=typeof r=="string"?qh(r):s,a=typeof o.attribute!="string"&&i!==s?i:void 0;n.push({propName:r,def:o,primary:s,alias:a})}return n}var fu=null;function ts(e){fu=e||null}function wa(){return fu||void 0}Ge();var du=Symbol.for("webjs:registry"),pu=Symbol.for("webjs:classToTag"),En=globalThis,qe=En[du]||(En[du]=new Map),mu=En[pu]||(En[pu]=new WeakMap),hu=Symbol.for("webjs:registryVersion"),gu=En[hu]||(En[hu]={v:0}),ns=typeof window<"u"&&typeof customElements<"u";function Sa(e,t){if(!e||typeof e!="string"||!e.includes("-"))throw new Error(`customElements.define: tag "${e}" must contain a hyphen (HTML spec)`);let n=t.lazy===!0,r=qe.get(e);r?(r.cls=t,r.lazy=n):(qe.set(e,{cls:t,moduleUrl:null,lazy:n,tag:e}),gu.v+=1),mu.set(t,e)}if(ns){let e=customElements.define.bind(customElements);customElements.define=function(t,n,r){let o=customElements.get(t);if(!o)e(t,n,r);else if(o!==n){let s=Bc();s&&(n=s(t,o,n))}Sa(t,n)}}if(!ns){let e=globalThis;e.customElements||(e.customElements={define(t,n){Sa(t,n)},get(t){return qe.get(t)?.cls},upgrade(){},whenDefined(t){let n=qe.get(t);return Promise.resolve(n?.cls)}})}function bu(e,t){typeof t.finalize=="function"&&t.finalize(),ns?customElements.define(e,t):Sa(e,t)}function Hh(e,t){if(ns)return;let n=qe.get(e);if(n){n.moduleUrl=t;return}qe.set(e,{cls:null,moduleUrl:t,lazy:!1,tag:e}),gu.v+=1}function rs(e){return qe.get(e)?.cls}function Bh(e){return qe.get(e)?.moduleUrl||null}function Uh(e){return qe.get(e)?.lazy===!0}function Ze(e){return mu.get(e)}function Vh(){return[...qe.keys()]}ft();ze();bt();function Wh(){return{states:new Set,shadowRoot:null,form:null,labels:[],role:"",willValidate:!0,validity:{},validationMessage:"",setFormValue(){},setValidity(){},checkValidity(){return!0},reportValidity(){return!0}}}var Cr=class{constructor(){this.__ssrAttrs=new Map,this.__internals=null}get attributes(){return[...this.__ssrAttrs].map(([t,n])=>({name:t,value:n}))}getAttribute(t){let n=this.__ssrAttrs.get(String(t).toLowerCase());return n===void 0?null:n}setAttribute(t,n){this.__ssrAttrs.set(String(t).toLowerCase(),String(n))}removeAttribute(t){this.__ssrAttrs.delete(String(t).toLowerCase())}hasAttribute(t){return this.__ssrAttrs.has(String(t).toLowerCase())}toggleAttribute(t,n){let r=String(t).toLowerCase(),o=this.__ssrAttrs.has(r);return(n===void 0?!o:n)?(this.__ssrAttrs.set(r,""),!0):(this.__ssrAttrs.delete(r),!1)}getAttributeNames(){return[...this.__ssrAttrs.keys()]}closest(t){let n=String(t).trim().toLowerCase();if(!/^[a-z][a-z0-9-]*$/.test(n))return null;if(this.__ssrTag===n)return this;let r=this.__ssrAncestors;if(!Array.isArray(r))return null;for(let o=r.length-1;o>=0;o--)if(r[o]&&r[o].__ssrTag===n)return r[o];return null}get dataset(){if(this.__dataset)return this.__dataset;let t=this,n=r=>"data-"+String(r).replace(/[A-Z]/g,o=>"-"+o.toLowerCase());return this.__dataset=new Proxy({},{get(r,o){if(typeof o!="string")return;let s=t.getAttribute(n(o));return s===null?void 0:s},set(r,o,s){return typeof o=="string"&&t.setAttribute(n(o),s),!0},has(r,o){return typeof o=="string"&&t.hasAttribute(n(o))},deleteProperty(r,o){return typeof o=="string"&&t.removeAttribute(n(o)),!0},ownKeys(){return t.getAttributeNames().filter(r=>r.startsWith("data-")).map(r=>r.slice(5).replace(/-([a-z])/g,(o,s)=>s.toUpperCase()))},getOwnPropertyDescriptor(r,o){if(typeof o=="string"&&t.hasAttribute(n(o)))return{enumerable:!0,configurable:!0,value:t.getAttribute(n(o))}}}),this.__dataset}get className(){return this.getAttribute("class")??""}set className(t){this.setAttribute("class",t)}get hidden(){return this.hasAttribute("hidden")}set hidden(t){this.toggleAttribute("hidden",!!t)}get id(){return this.getAttribute("id")??""}set id(t){this.setAttribute("id",t)}get title(){return this.getAttribute("title")??""}set title(t){this.setAttribute("title",t)}get slot(){return this.getAttribute("slot")??""}set slot(t){this.setAttribute("slot",t)}get role(){return this.getAttribute("role")}set role(t){t==null?this.removeAttribute("role"):this.setAttribute("role",t)}get tabIndex(){let t=this.getAttribute("tabindex");return t===null?-1:Number.parseInt(t,10)||0}set tabIndex(t){this.setAttribute("tabindex",String(t))}addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}get shadowRoot(){return null}attachShadow(){throw new Error("[webjs] attachShadow() was called during SSR, which has no DOM. Declare `static shadow = true` (and `static shadowRootOptions` for the attachShadow options) instead: the server writes the shadow root as Declarative Shadow DOM and the browser attaches it.")}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return this.__internals=Wh(),this.__internals}},zh=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];for(let e of zh){let t="aria-"+e.slice(4).toLowerCase();Object.defineProperty(Cr.prototype,e,{configurable:!0,get(){return this.getAttribute(t)},set(n){n==null?this.removeAttribute(t):this.setAttribute(t,String(n))}})}function yu(e,t){return!Object.is(e,t)}function wu(e){try{return String(e)}catch{return Object.prototype.toString.call(e)}}function _a(e,t,n){if(typeof console>"u"||!console.warn)return;let r=Ze(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${String(t)}" on <${r}> holds a function (or an array carrying one), which has no HTML attribute representation. Removing "${n}" instead of stringifying it (a stringified function writes its source into the page, so a server action's body would ship to the browser). Pass a string, or drop reflect on this property.`)}function Su(e,t,n,r){if(typeof console>"u"||!console.warn)return;let o=Ze(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${String(t)}" on <${o}> holds a value JSON.stringify cannot serialize (a cycle, a BigInt, or a throwing toJSON), so it has no HTML attribute representation. Removing "${n}" instead. Detail: ${r}`)}function _u(e,t={}){return e&&typeof e=="object"&&!("call"in e)&&(t=e,e=void 0),{...e?{type:e}:{},...t}}var Aa=typeof window<"u"&&typeof HTMLElement<"u",Kh=Aa?HTMLElement:Cr,Gh=Promise.resolve(!0),Nr=new Set,Lr=new WeakMap,Au=new WeakSet,xu=new WeakMap,xa=new WeakSet,vu=new WeakMap,Eu=new WeakSet,Tu=new WeakSet,Jh=Object.freeze({type:String}),va=new WeakMap;function ku(e,t){for(let n=e.prototype;n&&n!==_t.prototype;n=Object.getPrototypeOf(n)){let r=Object.getOwnPropertyDescriptor(n,t);if(r)return r.set&&va.has(r.set)?va.get(r.set)??null:r.get||r.set?{get:r.get,set:r.set}:null}return null}function Yh(e,t){let n=[];for(let r of Reflect.ownKeys(t)){let o=t[r],s=Rr(o),i=ku(e,r),a=!s.noAccessor&&i===null,c=Symbol(String(r));if(n.push({propName:r,decl:s,builtIn:a,wrapped:i!==null,key:c}),s.noAccessor)continue;let l=e.getPropertyDescriptor(r,c,s);l!==void 0&&Object.defineProperty(e.prototype,r,l)}Lr.set(e,n);for(let r=Object.getPrototypeOf(e);r&&r!==Function.prototype;r=Object.getPrototypeOf(r))xa.add(r);return n}function Xh(e){if(typeof e.attachInternals!="function")return null;let t;try{t=e.attachInternals()}catch{return null}return Object.defineProperty(e,"attachInternals",{value:()=>t,configurable:!0,writable:!0}),t.shadowRoot??null}var _t=class e extends Kh{static shadow=!1;static shadowRootOptions={mode:"open"};static hydrate=void 0;static properties={};static styles=null;static get elementStyles(){let t=vu.get(this);return t===void 0&&(t=this.finalizeStyles(this.styles),vu.set(this,t)),t}static finalizeStyles(t){return To(t)}static register(t){bu(t,this)}get renderRoot(){return this._renderRoot}set renderRoot(t){this._renderRoot=t}get hasUpdated(){return!!this.__firstRendered}get isUpdatePending(){return this._scheduled||this._isUpdating||this._initialUpdatePending}static get observedAttributes(){return this.finalize(),au(this)}static get elementProperties(){let t=cu(),n=xu.get(this);if(n&&n.epoch===t)return n.map;let r=St(this);if(n&&n.merged===r)return n.epoch=t,n.map;let o=new Map;for(let s of Reflect.ownKeys(r))o.set(s,Rr(r[s]));return xu.set(this,{epoch:t,merged:r,map:o}),o}static getPropertyOptions(t){return this.elementProperties.get(t)??Jh}static createProperty(t,n={}){if(Lr.has(this)||xa.has(this))throw new Error(`[webjs] ${this.name||"A component"}.createProperty('${t}') ran after an instance of the class${xa.has(this)&&!Lr.has(this)?", or of a subclass,":""} was constructed. Declare the property in \`static properties\` (or the WebComponent({ ... }) factory), or call createProperty at class definition time, before any element is created.`);lu(this,t,n)}static getPropertyDescriptor(t,n,r){let o=ku(this,t),s;if(o){let{get:i,set:a}=o;s={configurable:!0,enumerable:!0,get(){return i?.call(this)},set(c){let l=i?.call(this);a?.call(this,c),this.requestUpdate(t,l,r)}}}else s={configurable:!0,enumerable:!0,get(){return this[n]},set(i){let a=this[n];this[n]=i,this.requestUpdate(t,a,r)}};return va.set(s.set,o),s}static finalize(){if(Au.has(this))return;Au.add(this);let t=Object.getPrototypeOf(this);if(t&&typeof t.finalize=="function"&&t.finalize(),this.createProperty!==e.createProperty&&Object.hasOwn(this,"properties")){let n=this.properties;if(n&&typeof n=="object")for(let r of Reflect.ownKeys(n))this.createProperty(r,Rr(n[r]))}this.elementProperties,this.elementStyles}static addInitializer(t){if(!Object.hasOwn(this,"_initializers")){let n=Object.getPrototypeOf(this)._initializers;this._initializers=n?[...n]:[]}this._initializers.push(t)}constructor(){super(),this._renderRoot=void 0,this._scheduled=!1,this._connected=!1,this._initialUpdatePending=!0,this.__controllers=null,this.__firstRendered=!1,this._changedProperties=new Map,this._updateResolve=null,this._updatePromise=Gh,this._isUpdating=!1,this._initializeProperties();let t=this.constructor._initializers;if(t)for(let n of t)n(this)}_initializeProperties(){let t=this.constructor,n=Lr.get(t);n===void 0&&(t.finalize(),n=Yh(t,St(t)));for(let r=0;r<n.length;r++){let{propName:o,decl:s,builtIn:i,key:a}=n[r];if(Object.hasOwn(this,o)&&((this.__instanceProperties??=new Map).set(o,this[o]),delete this[o]),!!i&&s.default!==void 0){let c=typeof s.default=="function"?s.default():s.default;this[a]=c,s.useDefault&&(this.__defaultValues??=new Map).set(o,c)}}}_reflectAttribute(t,n,r){let o=Qo(t,r);if(o!==void 0&&!this.__reflectingAttribute){this.__reflectingAttribute=!0;try{if(r.converter&&r.converter.toAttribute){let s=r.converter.toAttribute(n,r.type);s==null?this.removeAttribute(o):this.setAttribute(o,s)}else if(typeof n=="function")this.removeAttribute(o),_a(this,t,o);else if(r.type===Boolean)n?this.setAttribute(o,""):this.removeAttribute(o);else if(n==null)this.removeAttribute(o);else if(r.type===Object||r.type===Array){let s,i=!0;try{s=JSON.stringify(n)}catch(a){i=!1,this.removeAttribute(o),Su(this,t,o,a&&a.message)}i&&this.setAttribute(o,s)}else ar(n)?(this.removeAttribute(o),_a(this,t,o)):this.setAttribute(o,String(n))}finally{this.__reflectingAttribute=!1}}}connectedCallback(){if(!Aa)return;if(this.__webjsPropsHydrated||(this.__webjsPropsHydrated=!0,this._hydratePropAttrs()),this.constructor.hydrate==="visible"&&typeof IntersectionObserver<"u"&&!this.__hydrationActivated){this.__hydrationActivated=!1,this.__hydrationObserver=new IntersectionObserver(n=>{for(let r of n)if(r.isIntersecting){this.__hydrationObserver.unobserve(this),this.__hydrationObserver.disconnect(),this.__hydrationObserver=null,this.__hydrationActivated=!0,this._activate();return}},{rootMargin:"200px"}),this.__hydrationObserver.observe(this);return}this._activate()}_hydratePropAttrs(){let t=[],n=this.attributes;for(let o=0;o<n.length;o++){let s=n[o].name;s.startsWith("data-webjs-prop-")&&t.push(s)}let r=this;r.__webjsPropAttrValues||(r.__webjsPropAttrValues=new Map);for(let o of t){let s=this.getAttribute(o);if(this.removeAttribute(o),s==null)continue;r.__webjsPropAttrValues.set(o,s);let i=Qh(o.slice(16));try{this[i]=Se(s)}catch(a){console.warn(`[webjs] failed to decode ${o} on <${this.tagName.toLowerCase()}>: ${a&&a.message}`)}}}_activate(){this._connected=!0,this.__accessorsLifted||(this.__accessorsLifted=!0,em(this)),this._reflectDeclaredAttributes();let t=this.constructor;t.shadow!==!0&&!this.hasAttribute("data-wj-host")&&this.setAttribute("data-wj-host",""),this._setupRenderRoot(),t.shadow!==!0&&this._renderRoot===this&&pt(this)&&(qi(this),Ci(this));for(let n of this.__controllers||Nr)n.hostConnected&&n.hostConnected();this._updateResolve===null&&(this._updatePromise=new Promise(n=>{this._updateResolve=n})),this.__updatingEnabled=!0,this.enableUpdating(!0),!this._scheduled&&(this._scheduled=!0,queueMicrotask(()=>this._runScheduledUpdate("initial render")))}_setupRenderRoot(){let t=this.constructor;if(this._renderRoot===void 0){let n=this.createRenderRoot(),r=typeof ShadowRoot<"u"&&n instanceof ShadowRoot;if(r!==(t.shadow===!0)){let o=Ze(t)||this.tagName?.toLowerCase();throw new Error(r?`[webjs] <${o}> createRenderRoot() returned a shadow root, but the class does not declare \`static shadow = true\`. WebJs renders on the server from \`static shadow\`, so add \`static shadow = true\` (with \`static shadowRootOptions\` for the attachShadow options) and drop the override, or call \`super.createRenderRoot()\` from it.`:`[webjs] <${o}> declares \`static shadow = true\`, but createRenderRoot() returned something other than a shadow root. Return \`super.createRenderRoot()\` from the override, or remove \`static shadow = true\` to render into light DOM.`)}this._renderRoot=n}t.shadow!==!0&&this._renderRoot===this&&(t.styles&&!Eu.has(t)&&(Eu.add(t),console.error(ko(Ze(t)||this.tagName?.toLowerCase()))),this.render===e.prototype.render?this.removeAttribute("data-wj-serialized"):pt(this)?Li(this):this.__isHydrating()||this.hasAttribute("data-wj-serialized")||Ki(this)?(this.removeAttribute("data-wj-serialized"),W(this),vi(this)):xi(this))}_runScheduledUpdate(t){try{let n=this.scheduleUpdate();n&&typeof n.then=="function"&&n.then(void 0,r=>{console.error(`[webjs] lifecycle hook threw during ${t}:`,r)})}catch(n){console.error(`[webjs] lifecycle hook threw during ${t}:`,n)}}scheduleUpdate(){return this.performUpdate()}performUpdate(){!this._scheduled&&!this._initialUpdatePending||(this.__firstRendered||this._prepareFirstUpdate(),this._scheduled=!1,this._initialUpdatePending=!1,this._performRender())}_prepareFirstUpdate(){this._renderRoot===void 0&&this._setupRenderRoot();let t=this.__instanceProperties;if(t){this.__instanceProperties=void 0;for(let[n,r]of t)this[n]=r}for(let{propName:n,decl:r,wrapped:o}of Lr.get(this.constructor)||[]){let s=this[n];if(!(!o||this._changedProperties.has(n)||s===void 0)){if(r.useDefault&&!(this.__defaultValues??=new Map).has(n)){this.__defaultValues.set(n,s);continue}this._changedProperties.set(n,void 0),r.reflect&&(this.__reflectPending??=new Set).add(n)}}}enableUpdating(t){}createRenderRoot(){let t=this.constructor;if(t.shadow!==!0)return this;let n=t.shadowRootOptions??{mode:"open"},r=this.shadowRoot??(n.mode==="closed"?Xh(this):null),o=r??this.attachShadow(n),s=t.elementStyles;if(s.length){if(r){let i=r.querySelector("style");i&&i.remove()}ii(o,s)}return o}__isHydrating(){let t=this.firstChild,n=t!=null&&t.nodeType===8&&t.data==="webjs-hydrate";return n&&(this.__hydratedAtActivate=!0),n}disconnectedCallback(){this._connected=!1,this.__hydrationObserver&&(this.__hydrationObserver.disconnect(),this.__hydrationObserver=null),Ni(this);for(let t of["__signalWatcher","__postWatcher"]){let n=this;n[t]&&(n[t].dispose(),n[t]=void 0)}for(let t of this.__controllers||Nr)t.hostDisconnected&&t.hostDisconnected()}attributeChangedCallback(t,n,r){if(this.__reflectingAttribute)return;let o=es(this.constructor,t);if(o===void 0)return;let{propName:s,def:i}=o;if(this.__attributeToProperty===s)return;let a=Zo(i,r,s);a==null&&i.useDefault&&this.__defaultValues?.has(s)&&(a=this.__defaultValues.get(s)),this.__attributeToProperty=s;try{this[s]=a}finally{this.__attributeToProperty=void 0}}requestUpdate(t,n,r){if(t!==void 0){let o=r??this.constructor.getPropertyOptions(t),s=o.hasChanged||yu,i=this[t];if(o.useDefault&&!(this.__defaultValues??=new Map).has(t)&&(this.__defaultValues.set(t,n!==void 0?n:i),n===void 0)){this._scheduleUpdate();return}let a=o.useDefault&&o.reflect?Qo(t,o):void 0,c=a!==void 0&&Object.is(i,this.__defaultValues?.get(t))&&!this.hasAttribute(a);if(!s(i,n)&&!c)return;this._changedProperties.has(t)||this._changedProperties.set(t,this.__firstRendered||o.useDefault?n:void 0),o.reflect&&this.__attributeToProperty!==t&&(this._connected?this._reflectAttribute(t,i,o):(this.__reflectPending??=new Set).add(t))}this._scheduleUpdate()}_scheduleUpdate(){if(this._updateResolve===null&&(this._updatePromise=new Promise(n=>{this._updateResolve=n})),this._isUpdating||this._scheduled||!this.__updatingEnabled)return;this._scheduled=!0;let t=this.__settlingPromise;t?t.then(()=>this._runScheduledUpdate("update cycle")):queueMicrotask(()=>this._runScheduledUpdate("update cycle"))}_performRender(){if(!this._renderRoot)return;this.__cycleRendered=!1;let t=this._tracked("__signalWatcher",()=>this._runUpdateCycle());t&&t()}_tracked(t,n){let r=this,o=r[t];o||(o=r[t]=new xe.subtle.Watcher(()=>{!o.__inPhase&&this._connected&&this.requestUpdate()}));let s=t==="__signalWatcher"?xe.subtle.introspectSources(o):null;o.__inPhase=!0;try{return o.observe(n)}finally{o.__inPhase=!1,s&&!this.__cycleRendered&&o.watch(...new Set([...s,...xe.subtle.introspectSources(o)])),this._connected||(o.dispose(),r[t]===o&&(r[t]=void 0))}}_runUpdateCycle(){let t=this._changedProperties;this._isUpdating=!0;let n=!1,r=null;try{if(this.shouldUpdate(t)){this.willUpdate(t);for(let o of this.__controllers||Nr)o.hostUpdate&&o.hostUpdate();this.__renderToken=(this.__renderToken||0)+1,this.__renderAbort&&this.__renderAbort.abort(),this.__renderAbort=typeof AbortController<"u"?new AbortController:null,this.__cycleRendered=!0;try{let o=this.update(t);o&&typeof o.then=="function"&&(r=o)}catch(o){this._handleRenderError(o)}r||(n=!0)}}catch(o){console.error("[webjs] lifecycle hook threw during update phase:",o)}finally{this._isUpdating=!1,this._changedProperties===t&&(this._changedProperties=new Map)}if(r){let o=this.__renderToken;this.__pendingAsyncCommits=(this.__pendingAsyncCommits||0)+1;let s=()=>{this.__pendingAsyncCommits--,o===this.__renderToken&&this._postCommit(t)};r.then(s,i=>{try{o===this.__renderToken&&this._handleRenderError(i instanceof Error?i:new Error(wu(i)))}finally{s()}});return}if(n)return()=>this._postCommit(t);this.__pendingAsyncCommits||this._resolveUpdate(),!n&&this.__postWatcher&&this.__postWatcher.watch()}_resolveUpdate(){if(this._updateResolve){let t=!this._scheduled;this._updateResolve(t),this._updateResolve=null}}performServerUpdate(){let t=this._changedProperties;this._isUpdating=!0;try{this.willUpdate(t);for(let n of this.__controllers||Nr)if(n.hostUpdate)try{n.hostUpdate()}catch(r){Zh(this,n,r)}this._reflectDeclaredAttributes()}finally{this._isUpdating=!1}}_reflectDeclaredAttributes(){let t=St(this.constructor);for(let n of Reflect.ownKeys(t)){let r=t[n];!r||!r.reflect||this[n]!==void 0&&(r.useDefault&&(!this.__defaultValues?.has(n)||Object.is(this[n],this.__defaultValues.get(n)))||this._reflectAttribute(n,this[n],r))}}shouldUpdate(t){return!0}willUpdate(t){}update(t){let n=this.__reflectPending;this.__reflectPending=void 0;for(let s of n||[]){let i=St(this.constructor)[s];this._reflectAttribute(s,this[s],i)}let r,o=wa();ts(this.__renderAbort?this.__renderAbort.signal:null);try{r=this.render()}finally{ts(o||null)}if(r&&typeof r.then=="function")return this._commitAsync(r);this._markUpdated(),xe.subtle.untrack(()=>Wt(r,this._renderRoot,{host:this}))}_markUpdated(){this._isUpdating=!1,this._changedProperties=new Map,this.__cycleResolve=this._updateResolve,this.__settlingPromise=this._updatePromise,this._updateResolve=null}_commitAsync(t){let n=this.__renderToken;if(this.__firstRendered&&this._overridesRenderFallback())try{let r=this.renderFallback();r!==void 0&&xe.subtle.untrack(()=>Wt(r,this._renderRoot,{host:this}))}catch(r){console.error("[webjs] renderFallback() threw:",r)}return Promise.resolve(t).then(r=>{if(n===this.__renderToken)try{Wt(r,this._renderRoot,{host:this})}catch(o){this._handleRenderError(o instanceof Error?o:new Error(String(o)))}},r=>{n===this.__renderToken&&this._handleRenderError(r instanceof Error?r:new Error(String(r)))})}_overridesRenderFallback(){return this.renderFallback!==Or.prototype.renderFallback}_handleRenderError(t){console.error(`[webjs] render error in <${Ze(this.constructor)||this.tagName?.toLowerCase()}>:`,t);try{let n=this.renderError(t);n!==void 0&&xe.subtle.untrack(()=>Wt(n,this._renderRoot,{host:this}))}catch(n){console.error("[webjs] renderError() also threw:",n)}}_postCommit(t){let n;this.__cycleResolve!==void 0?(n=this.__cycleResolve,this.__cycleResolve=void 0):(n=this._updateResolve,this._updateResolve=null,this.__settlingPromise=this._updatePromise);try{this._tracked("__postWatcher",()=>{for(let r of this.__controllers||Nr)r.hostUpdated?.();this.__firstRendered||(this.__firstRendered=!0,this.firstUpdated(t)),this.updated(t)})}catch(r){console.error("[webjs] lifecycle hook threw during post-commit phase:",r)}finally{this.__settlingPromise=void 0,n?.(!this._scheduled)}}updated(t){}firstUpdated(t){}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return Aa&&this._initialUpdatePending&&this._updateResolve===null&&(this._updatePromise=new Promise(t=>{this._updateResolve=t})),this._updatePromise}addController(t){(this.__controllers??=new Set).add(t),this._connected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers&&this.__controllers.delete(t)}render(){return x}renderError(t){}renderFallback(){}};function Zh(e,t,n){let r=t&&t.constructor;if(r&&Tu.has(r))return;r&&Tu.add(r);let o=e.__ssrTag||Ze(e.constructor)||"a component";console.error(`[webjs] ${r&&r.name?r.name:"A controller"}.hostUpdate() threw during SSR of <${o}>, so it was skipped and the component rendered without it. Controllers' hostUpdate() runs on the server too; guard browser-only work with \`if (isServer) return;\` (isServer from '@webjsdev/core'), or move it to hostConnected() or hostUpdated(), which never run at SSR.`,n)}function Qh(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Or(e){return new.target?Reflect.construct(_t,arguments,new.target):class extends _t{static properties=e}}function em(e){for(let t of Object.keys(e))for(let n=Object.getPrototypeOf(e);n&&n!==_t.prototype;n=Object.getPrototypeOf(n)){let r=Object.getOwnPropertyDescriptor(n,t);if(r){if(r.set){let o=e[t];delete e[t],e[t]=o}break}}}Object.setPrototypeOf(Or,_t);Or.prototype=_t.prototype;var tm={toAttribute(e,t){return t===Boolean?e?"":null:t===Object||t===Array?e==null?e:JSON.stringify(e):e},fromAttribute(e,t){if(t===Boolean)return e!==null;if(t===Number)return e===null?null:Number(e);if(t===Object||t===Array)try{return JSON.parse(e)}catch{return null}return e}},nm=(e,t)=>!Object.is(e,t);var Ea=null;function rm(e){Ea=e}function Ta(){if(!Ea)return"";try{return Ea()||""}catch{return""}}ct();ze();jt();ct();Ge();var bw=Symbol.for("webjs.suspense");function om(e){return{_$webjsSuspense:!0,fallback:e.fallback,children:e.children}}function ka(e){return!!e&&typeof e=="object"&&e._$webjsSuspense===!0}ft();var Ru={AElig:198,AMP:38,Aacute:193,Abreve:258,Acirc:194,Acy:1040,Afr:120068,Agrave:192,Alpha:913,Amacr:256,And:10835,Aogon:260,Aopf:120120,ApplyFunction:8289,Aring:197,Ascr:119964,Assign:8788,Atilde:195,Auml:196,Backslash:8726,Barv:10983,Barwed:8966,Bcy:1041,Because:8757,Bernoullis:8492,Beta:914,Bfr:120069,Bopf:120121,Breve:728,Bscr:8492,Bumpeq:8782,CHcy:1063,COPY:169,Cacute:262,Cap:8914,CapitalDifferentialD:8517,Cayleys:8493,Ccaron:268,Ccedil:199,Ccirc:264,Cconint:8752,Cdot:266,Cedilla:184,CenterDot:183,Cfr:8493,Chi:935,CircleDot:8857,CircleMinus:8854,CirclePlus:8853,CircleTimes:8855,ClockwiseContourIntegral:8754,CloseCurlyDoubleQuote:8221,CloseCurlyQuote:8217,Colon:8759,Colone:10868,Congruent:8801,Conint:8751,ContourIntegral:8750,Copf:8450,Coproduct:8720,CounterClockwiseContourIntegral:8755,Cross:10799,Cscr:119966,Cup:8915,CupCap:8781,DD:8517,DDotrahd:10513,DJcy:1026,DScy:1029,DZcy:1039,Dagger:8225,Darr:8609,Dashv:10980,Dcaron:270,Dcy:1044,Del:8711,Delta:916,Dfr:120071,DiacriticalAcute:180,DiacriticalDot:729,DiacriticalDoubleAcute:733,DiacriticalGrave:96,DiacriticalTilde:732,Diamond:8900,DifferentialD:8518,Dopf:120123,Dot:168,DotDot:8412,DotEqual:8784,DoubleContourIntegral:8751,DoubleDot:168,DoubleDownArrow:8659,DoubleLeftArrow:8656,DoubleLeftRightArrow:8660,DoubleLeftTee:10980,DoubleLongLeftArrow:10232,DoubleLongLeftRightArrow:10234,DoubleLongRightArrow:10233,DoubleRightArrow:8658,DoubleRightTee:8872,DoubleUpArrow:8657,DoubleUpDownArrow:8661,DoubleVerticalBar:8741,DownArrow:8595,DownArrowBar:10515,DownArrowUpArrow:8693,DownBreve:785,DownLeftRightVector:10576,DownLeftTeeVector:10590,DownLeftVector:8637,DownLeftVectorBar:10582,DownRightTeeVector:10591,DownRightVector:8641,DownRightVectorBar:10583,DownTee:8868,DownTeeArrow:8615,Downarrow:8659,Dscr:119967,Dstrok:272,ENG:330,ETH:208,Eacute:201,Ecaron:282,Ecirc:202,Ecy:1069,Edot:278,Efr:120072,Egrave:200,Element:8712,Emacr:274,EmptySmallSquare:9723,EmptyVerySmallSquare:9643,Eogon:280,Eopf:120124,Epsilon:917,Equal:10869,EqualTilde:8770,Equilibrium:8652,Escr:8496,Esim:10867,Eta:919,Euml:203,Exists:8707,ExponentialE:8519,Fcy:1060,Ffr:120073,FilledSmallSquare:9724,FilledVerySmallSquare:9642,Fopf:120125,ForAll:8704,Fouriertrf:8497,Fscr:8497,GJcy:1027,GT:62,Gamma:915,Gammad:988,Gbreve:286,Gcedil:290,Gcirc:284,Gcy:1043,Gdot:288,Gfr:120074,Gg:8921,Gopf:120126,GreaterEqual:8805,GreaterEqualLess:8923,GreaterFullEqual:8807,GreaterGreater:10914,GreaterLess:8823,GreaterSlantEqual:10878,GreaterTilde:8819,Gscr:119970,Gt:8811,HARDcy:1066,Hacek:711,Hat:94,Hcirc:292,Hfr:8460,HilbertSpace:8459,Hopf:8461,HorizontalLine:9472,Hscr:8459,Hstrok:294,HumpDownHump:8782,HumpEqual:8783,IEcy:1045,IJlig:306,IOcy:1025,Iacute:205,Icirc:206,Icy:1048,Idot:304,Ifr:8465,Igrave:204,Im:8465,Imacr:298,ImaginaryI:8520,Implies:8658,Int:8748,Integral:8747,Intersection:8898,InvisibleComma:8291,InvisibleTimes:8290,Iogon:302,Iopf:120128,Iota:921,Iscr:8464,Itilde:296,Iukcy:1030,Iuml:207,Jcirc:308,Jcy:1049,Jfr:120077,Jopf:120129,Jscr:119973,Jsercy:1032,Jukcy:1028,KHcy:1061,KJcy:1036,Kappa:922,Kcedil:310,Kcy:1050,Kfr:120078,Kopf:120130,Kscr:119974,LJcy:1033,LT:60,Lacute:313,Lambda:923,Lang:10218,Laplacetrf:8466,Larr:8606,Lcaron:317,Lcedil:315,Lcy:1051,LeftAngleBracket:10216,LeftArrow:8592,LeftArrowBar:8676,LeftArrowRightArrow:8646,LeftCeiling:8968,LeftDoubleBracket:10214,LeftDownTeeVector:10593,LeftDownVector:8643,LeftDownVectorBar:10585,LeftFloor:8970,LeftRightArrow:8596,LeftRightVector:10574,LeftTee:8867,LeftTeeArrow:8612,LeftTeeVector:10586,LeftTriangle:8882,LeftTriangleBar:10703,LeftTriangleEqual:8884,LeftUpDownVector:10577,LeftUpTeeVector:10592,LeftUpVector:8639,LeftUpVectorBar:10584,LeftVector:8636,LeftVectorBar:10578,Leftarrow:8656,Leftrightarrow:8660,LessEqualGreater:8922,LessFullEqual:8806,LessGreater:8822,LessLess:10913,LessSlantEqual:10877,LessTilde:8818,Lfr:120079,Ll:8920,Lleftarrow:8666,Lmidot:319,LongLeftArrow:10229,LongLeftRightArrow:10231,LongRightArrow:10230,Longleftarrow:10232,Longleftrightarrow:10234,Longrightarrow:10233,Lopf:120131,LowerLeftArrow:8601,LowerRightArrow:8600,Lscr:8466,Lsh:8624,Lstrok:321,Lt:8810,Map:10501,Mcy:1052,MediumSpace:8287,Mellintrf:8499,Mfr:120080,MinusPlus:8723,Mopf:120132,Mscr:8499,Mu:924,NJcy:1034,Nacute:323,Ncaron:327,Ncedil:325,Ncy:1053,NegativeMediumSpace:8203,NegativeThickSpace:8203,NegativeThinSpace:8203,NegativeVeryThinSpace:8203,NestedGreaterGreater:8811,NestedLessLess:8810,NewLine:10,Nfr:120081,NoBreak:8288,NonBreakingSpace:160,Nopf:8469,Not:10988,NotCongruent:8802,NotCupCap:8813,NotDoubleVerticalBar:8742,NotElement:8713,NotEqual:8800,NotEqualTilde:[8770,824],NotExists:8708,NotGreater:8815,NotGreaterEqual:8817,NotGreaterFullEqual:[8807,824],NotGreaterGreater:[8811,824],NotGreaterLess:8825,NotGreaterSlantEqual:[10878,824],NotGreaterTilde:8821,NotHumpDownHump:[8782,824],NotHumpEqual:[8783,824],NotLeftTriangle:8938,NotLeftTriangleBar:[10703,824],NotLeftTriangleEqual:8940,NotLess:8814,NotLessEqual:8816,NotLessGreater:8824,NotLessLess:[8810,824],NotLessSlantEqual:[10877,824],NotLessTilde:8820,NotNestedGreaterGreater:[10914,824],NotNestedLessLess:[10913,824],NotPrecedes:8832,NotPrecedesEqual:[10927,824],NotPrecedesSlantEqual:8928,NotReverseElement:8716,NotRightTriangle:8939,NotRightTriangleBar:[10704,824],NotRightTriangleEqual:8941,NotSquareSubset:[8847,824],NotSquareSubsetEqual:8930,NotSquareSuperset:[8848,824],NotSquareSupersetEqual:8931,NotSubset:[8834,8402],NotSubsetEqual:8840,NotSucceeds:8833,NotSucceedsEqual:[10928,824],NotSucceedsSlantEqual:8929,NotSucceedsTilde:[8831,824],NotSuperset:[8835,8402],NotSupersetEqual:8841,NotTilde:8769,NotTildeEqual:8772,NotTildeFullEqual:8775,NotTildeTilde:8777,NotVerticalBar:8740,Nscr:119977,Ntilde:209,Nu:925,OElig:338,Oacute:211,Ocirc:212,Ocy:1054,Odblac:336,Ofr:120082,Ograve:210,Omacr:332,Omega:937,Omicron:927,Oopf:120134,OpenCurlyDoubleQuote:8220,OpenCurlyQuote:8216,Or:10836,Oscr:119978,Oslash:216,Otilde:213,Otimes:10807,Ouml:214,OverBar:8254,OverBrace:9182,OverBracket:9140,OverParenthesis:9180,PartialD:8706,Pcy:1055,Pfr:120083,Phi:934,Pi:928,PlusMinus:177,Poincareplane:8460,Popf:8473,Pr:10939,Precedes:8826,PrecedesEqual:10927,PrecedesSlantEqual:8828,PrecedesTilde:8830,Prime:8243,Product:8719,Proportion:8759,Proportional:8733,Pscr:119979,Psi:936,QUOT:34,Qfr:120084,Qopf:8474,Qscr:119980,RBarr:10512,REG:174,Racute:340,Rang:10219,Rarr:8608,Rarrtl:10518,Rcaron:344,Rcedil:342,Rcy:1056,Re:8476,ReverseElement:8715,ReverseEquilibrium:8651,ReverseUpEquilibrium:10607,Rfr:8476,Rho:929,RightAngleBracket:10217,RightArrow:8594,RightArrowBar:8677,RightArrowLeftArrow:8644,RightCeiling:8969,RightDoubleBracket:10215,RightDownTeeVector:10589,RightDownVector:8642,RightDownVectorBar:10581,RightFloor:8971,RightTee:8866,RightTeeArrow:8614,RightTeeVector:10587,RightTriangle:8883,RightTriangleBar:10704,RightTriangleEqual:8885,RightUpDownVector:10575,RightUpTeeVector:10588,RightUpVector:8638,RightUpVectorBar:10580,RightVector:8640,RightVectorBar:10579,Rightarrow:8658,Ropf:8477,RoundImplies:10608,Rrightarrow:8667,Rscr:8475,Rsh:8625,RuleDelayed:10740,SHCHcy:1065,SHcy:1064,SOFTcy:1068,Sacute:346,Sc:10940,Scaron:352,Scedil:350,Scirc:348,Scy:1057,Sfr:120086,ShortDownArrow:8595,ShortLeftArrow:8592,ShortRightArrow:8594,ShortUpArrow:8593,Sigma:931,SmallCircle:8728,Sopf:120138,Sqrt:8730,Square:9633,SquareIntersection:8851,SquareSubset:8847,SquareSubsetEqual:8849,SquareSuperset:8848,SquareSupersetEqual:8850,SquareUnion:8852,Sscr:119982,Star:8902,Sub:8912,Subset:8912,SubsetEqual:8838,Succeeds:8827,SucceedsEqual:10928,SucceedsSlantEqual:8829,SucceedsTilde:8831,SuchThat:8715,Sum:8721,Sup:8913,Superset:8835,SupersetEqual:8839,Supset:8913,THORN:222,TRADE:8482,TSHcy:1035,TScy:1062,Tab:9,Tau:932,Tcaron:356,Tcedil:354,Tcy:1058,Tfr:120087,Therefore:8756,Theta:920,ThickSpace:[8287,8202],ThinSpace:8201,Tilde:8764,TildeEqual:8771,TildeFullEqual:8773,TildeTilde:8776,Topf:120139,TripleDot:8411,Tscr:119983,Tstrok:358,Uacute:218,Uarr:8607,Uarrocir:10569,Ubrcy:1038,Ubreve:364,Ucirc:219,Ucy:1059,Udblac:368,Ufr:120088,Ugrave:217,Umacr:362,UnderBar:95,UnderBrace:9183,UnderBracket:9141,UnderParenthesis:9181,Union:8899,UnionPlus:8846,Uogon:370,Uopf:120140,UpArrow:8593,UpArrowBar:10514,UpArrowDownArrow:8645,UpDownArrow:8597,UpEquilibrium:10606,UpTee:8869,UpTeeArrow:8613,Uparrow:8657,Updownarrow:8661,UpperLeftArrow:8598,UpperRightArrow:8599,Upsi:978,Upsilon:933,Uring:366,Uscr:119984,Utilde:360,Uuml:220,VDash:8875,Vbar:10987,Vcy:1042,Vdash:8873,Vdashl:10982,Vee:8897,Verbar:8214,Vert:8214,VerticalBar:8739,VerticalLine:124,VerticalSeparator:10072,VerticalTilde:8768,VeryThinSpace:8202,Vfr:120089,Vopf:120141,Vscr:119985,Vvdash:8874,Wcirc:372,Wedge:8896,Wfr:120090,Wopf:120142,Wscr:119986,Xfr:120091,Xi:926,Xopf:120143,Xscr:119987,YAcy:1071,YIcy:1031,YUcy:1070,Yacute:221,Ycirc:374,Ycy:1067,Yfr:120092,Yopf:120144,Yscr:119988,Yuml:376,ZHcy:1046,Zacute:377,Zcaron:381,Zcy:1047,Zdot:379,ZeroWidthSpace:8203,Zeta:918,Zfr:8488,Zopf:8484,Zscr:119989,aacute:225,abreve:259,ac:8766,acE:[8766,819],acd:8767,acirc:226,acute:180,acy:1072,aelig:230,af:8289,afr:120094,agrave:224,alefsym:8501,aleph:8501,alpha:945,amacr:257,amalg:10815,amp:38,and:8743,andand:10837,andd:10844,andslope:10840,andv:10842,ang:8736,ange:10660,angle:8736,angmsd:8737,angmsdaa:10664,angmsdab:10665,angmsdac:10666,angmsdad:10667,angmsdae:10668,angmsdaf:10669,angmsdag:10670,angmsdah:10671,angrt:8735,angrtvb:8894,angrtvbd:10653,angsph:8738,angst:197,angzarr:9084,aogon:261,aopf:120146,ap:8776,apE:10864,apacir:10863,ape:8778,apid:8779,apos:39,approx:8776,approxeq:8778,aring:229,ascr:119990,ast:42,asymp:8776,asympeq:8781,atilde:227,auml:228,awconint:8755,awint:10769,bNot:10989,backcong:8780,backepsilon:1014,backprime:8245,backsim:8765,backsimeq:8909,barvee:8893,barwed:8965,barwedge:8965,bbrk:9141,bbrktbrk:9142,bcong:8780,bcy:1073,bdquo:8222,becaus:8757,because:8757,bemptyv:10672,bepsi:1014,bernou:8492,beta:946,beth:8502,between:8812,bfr:120095,bigcap:8898,bigcirc:9711,bigcup:8899,bigodot:10752,bigoplus:10753,bigotimes:10754,bigsqcup:10758,bigstar:9733,bigtriangledown:9661,bigtriangleup:9651,biguplus:10756,bigvee:8897,bigwedge:8896,bkarow:10509,blacklozenge:10731,blacksquare:9642,blacktriangle:9652,blacktriangledown:9662,blacktriangleleft:9666,blacktriangleright:9656,blank:9251,blk12:9618,blk14:9617,blk34:9619,block:9608,bne:[61,8421],bnequiv:[8801,8421],bnot:8976,bopf:120147,bot:8869,bottom:8869,bowtie:8904,boxDL:9559,boxDR:9556,boxDl:9558,boxDr:9555,boxH:9552,boxHD:9574,boxHU:9577,boxHd:9572,boxHu:9575,boxUL:9565,boxUR:9562,boxUl:9564,boxUr:9561,boxV:9553,boxVH:9580,boxVL:9571,boxVR:9568,boxVh:9579,boxVl:9570,boxVr:9567,boxbox:10697,boxdL:9557,boxdR:9554,boxdl:9488,boxdr:9484,boxh:9472,boxhD:9573,boxhU:9576,boxhd:9516,boxhu:9524,boxminus:8863,boxplus:8862,boxtimes:8864,boxuL:9563,boxuR:9560,boxul:9496,boxur:9492,boxv:9474,boxvH:9578,boxvL:9569,boxvR:9566,boxvh:9532,boxvl:9508,boxvr:9500,bprime:8245,breve:728,brvbar:166,bscr:119991,bsemi:8271,bsim:8765,bsime:8909,bsol:92,bsolb:10693,bsolhsub:10184,bull:8226,bullet:8226,bump:8782,bumpE:10926,bumpe:8783,bumpeq:8783,cacute:263,cap:8745,capand:10820,capbrcup:10825,capcap:10827,capcup:10823,capdot:10816,caps:[8745,65024],caret:8257,caron:711,ccaps:10829,ccaron:269,ccedil:231,ccirc:265,ccups:10828,ccupssm:10832,cdot:267,cedil:184,cemptyv:10674,cent:162,centerdot:183,cfr:120096,chcy:1095,check:10003,checkmark:10003,chi:967,cir:9675,cirE:10691,circ:710,circeq:8791,circlearrowleft:8634,circlearrowright:8635,circledR:174,circledS:9416,circledast:8859,circledcirc:8858,circleddash:8861,cire:8791,cirfnint:10768,cirmid:10991,cirscir:10690,clubs:9827,clubsuit:9827,colon:58,colone:8788,coloneq:8788,comma:44,commat:64,comp:8705,compfn:8728,complement:8705,complexes:8450,cong:8773,congdot:10861,conint:8750,copf:120148,coprod:8720,copy:169,copysr:8471,crarr:8629,cross:10007,cscr:119992,csub:10959,csube:10961,csup:10960,csupe:10962,ctdot:8943,cudarrl:10552,cudarrr:10549,cuepr:8926,cuesc:8927,cularr:8630,cularrp:10557,cup:8746,cupbrcap:10824,cupcap:10822,cupcup:10826,cupdot:8845,cupor:10821,cups:[8746,65024],curarr:8631,curarrm:10556,curlyeqprec:8926,curlyeqsucc:8927,curlyvee:8910,curlywedge:8911,curren:164,curvearrowleft:8630,curvearrowright:8631,cuvee:8910,cuwed:8911,cwconint:8754,cwint:8753,cylcty:9005,dArr:8659,dHar:10597,dagger:8224,daleth:8504,darr:8595,dash:8208,dashv:8867,dbkarow:10511,dblac:733,dcaron:271,dcy:1076,dd:8518,ddagger:8225,ddarr:8650,ddotseq:10871,deg:176,delta:948,demptyv:10673,dfisht:10623,dfr:120097,dharl:8643,dharr:8642,diam:8900,diamond:8900,diamondsuit:9830,diams:9830,die:168,digamma:989,disin:8946,div:247,divide:247,divideontimes:8903,divonx:8903,djcy:1106,dlcorn:8990,dlcrop:8973,dollar:36,dopf:120149,dot:729,doteq:8784,doteqdot:8785,dotminus:8760,dotplus:8724,dotsquare:8865,doublebarwedge:8966,downarrow:8595,downdownarrows:8650,downharpoonleft:8643,downharpoonright:8642,drbkarow:10512,drcorn:8991,drcrop:8972,dscr:119993,dscy:1109,dsol:10742,dstrok:273,dtdot:8945,dtri:9663,dtrif:9662,duarr:8693,duhar:10607,dwangle:10662,dzcy:1119,dzigrarr:10239,eDDot:10871,eDot:8785,eacute:233,easter:10862,ecaron:283,ecir:8790,ecirc:234,ecolon:8789,ecy:1101,edot:279,ee:8519,efDot:8786,efr:120098,eg:10906,egrave:232,egs:10902,egsdot:10904,el:10905,elinters:9191,ell:8467,els:10901,elsdot:10903,emacr:275,empty:8709,emptyset:8709,emptyv:8709,emsp:8195,emsp13:8196,emsp14:8197,eng:331,ensp:8194,eogon:281,eopf:120150,epar:8917,eparsl:10723,eplus:10865,epsi:949,epsilon:949,epsiv:1013,eqcirc:8790,eqcolon:8789,eqsim:8770,eqslantgtr:10902,eqslantless:10901,equals:61,equest:8799,equiv:8801,equivDD:10872,eqvparsl:10725,erDot:8787,erarr:10609,escr:8495,esdot:8784,esim:8770,eta:951,eth:240,euml:235,euro:8364,excl:33,exist:8707,expectation:8496,exponentiale:8519,fallingdotseq:8786,fcy:1092,female:9792,ffilig:64259,fflig:64256,ffllig:64260,ffr:120099,filig:64257,fjlig:[102,106],flat:9837,fllig:64258,fltns:9649,fnof:402,fopf:120151,forall:8704,fork:8916,forkv:10969,fpartint:10765,frac12:189,frac13:8531,frac14:188,frac15:8533,frac16:8537,frac18:8539,frac23:8532,frac25:8534,frac34:190,frac35:8535,frac38:8540,frac45:8536,frac56:8538,frac58:8541,frac78:8542,frasl:8260,frown:8994,fscr:119995,gE:8807,gEl:10892,gacute:501,gamma:947,gammad:989,gap:10886,gbreve:287,gcirc:285,gcy:1075,gdot:289,ge:8805,gel:8923,geq:8805,geqq:8807,geqslant:10878,ges:10878,gescc:10921,gesdot:10880,gesdoto:10882,gesdotol:10884,gesl:[8923,65024],gesles:10900,gfr:120100,gg:8811,ggg:8921,gimel:8503,gjcy:1107,gl:8823,glE:10898,gla:10917,glj:10916,gnE:8809,gnap:10890,gnapprox:10890,gne:10888,gneq:10888,gneqq:8809,gnsim:8935,gopf:120152,grave:96,gscr:8458,gsim:8819,gsime:10894,gsiml:10896,gt:62,gtcc:10919,gtcir:10874,gtdot:8919,gtlPar:10645,gtquest:10876,gtrapprox:10886,gtrarr:10616,gtrdot:8919,gtreqless:8923,gtreqqless:10892,gtrless:8823,gtrsim:8819,gvertneqq:[8809,65024],gvnE:[8809,65024],hArr:8660,hairsp:8202,half:189,hamilt:8459,hardcy:1098,harr:8596,harrcir:10568,harrw:8621,hbar:8463,hcirc:293,hearts:9829,heartsuit:9829,hellip:8230,hercon:8889,hfr:120101,hksearow:10533,hkswarow:10534,hoarr:8703,homtht:8763,hookleftarrow:8617,hookrightarrow:8618,hopf:120153,horbar:8213,hscr:119997,hslash:8463,hstrok:295,hybull:8259,hyphen:8208,iacute:237,ic:8291,icirc:238,icy:1080,iecy:1077,iexcl:161,iff:8660,ifr:120102,igrave:236,ii:8520,iiiint:10764,iiint:8749,iinfin:10716,iiota:8489,ijlig:307,imacr:299,image:8465,imagline:8464,imagpart:8465,imath:305,imof:8887,imped:437,in:8712,incare:8453,infin:8734,infintie:10717,inodot:305,int:8747,intcal:8890,integers:8484,intercal:8890,intlarhk:10775,intprod:10812,iocy:1105,iogon:303,iopf:120154,iota:953,iprod:10812,iquest:191,iscr:119998,isin:8712,isinE:8953,isindot:8949,isins:8948,isinsv:8947,isinv:8712,it:8290,itilde:297,iukcy:1110,iuml:239,jcirc:309,jcy:1081,jfr:120103,jmath:567,jopf:120155,jscr:119999,jsercy:1112,jukcy:1108,kappa:954,kappav:1008,kcedil:311,kcy:1082,kfr:120104,kgreen:312,khcy:1093,kjcy:1116,kopf:120156,kscr:12e4,lAarr:8666,lArr:8656,lAtail:10523,lBarr:10510,lE:8806,lEg:10891,lHar:10594,lacute:314,laemptyv:10676,lagran:8466,lambda:955,lang:10216,langd:10641,langle:10216,lap:10885,laquo:171,larr:8592,larrb:8676,larrbfs:10527,larrfs:10525,larrhk:8617,larrlp:8619,larrpl:10553,larrsim:10611,larrtl:8610,lat:10923,latail:10521,late:10925,lates:[10925,65024],lbarr:10508,lbbrk:10098,lbrace:123,lbrack:91,lbrke:10635,lbrksld:10639,lbrkslu:10637,lcaron:318,lcedil:316,lceil:8968,lcub:123,lcy:1083,ldca:10550,ldquo:8220,ldquor:8222,ldrdhar:10599,ldrushar:10571,ldsh:8626,le:8804,leftarrow:8592,leftarrowtail:8610,leftharpoondown:8637,leftharpoonup:8636,leftleftarrows:8647,leftrightarrow:8596,leftrightarrows:8646,leftrightharpoons:8651,leftrightsquigarrow:8621,leftthreetimes:8907,leg:8922,leq:8804,leqq:8806,leqslant:10877,les:10877,lescc:10920,lesdot:10879,lesdoto:10881,lesdotor:10883,lesg:[8922,65024],lesges:10899,lessapprox:10885,lessdot:8918,lesseqgtr:8922,lesseqqgtr:10891,lessgtr:8822,lesssim:8818,lfisht:10620,lfloor:8970,lfr:120105,lg:8822,lgE:10897,lhard:8637,lharu:8636,lharul:10602,lhblk:9604,ljcy:1113,ll:8810,llarr:8647,llcorner:8990,llhard:10603,lltri:9722,lmidot:320,lmoust:9136,lmoustache:9136,lnE:8808,lnap:10889,lnapprox:10889,lne:10887,lneq:10887,lneqq:8808,lnsim:8934,loang:10220,loarr:8701,lobrk:10214,longleftarrow:10229,longleftrightarrow:10231,longmapsto:10236,longrightarrow:10230,looparrowleft:8619,looparrowright:8620,lopar:10629,lopf:120157,loplus:10797,lotimes:10804,lowast:8727,lowbar:95,loz:9674,lozenge:9674,lozf:10731,lpar:40,lparlt:10643,lrarr:8646,lrcorner:8991,lrhar:8651,lrhard:10605,lrm:8206,lrtri:8895,lsaquo:8249,lscr:120001,lsh:8624,lsim:8818,lsime:10893,lsimg:10895,lsqb:91,lsquo:8216,lsquor:8218,lstrok:322,lt:60,ltcc:10918,ltcir:10873,ltdot:8918,lthree:8907,ltimes:8905,ltlarr:10614,ltquest:10875,ltrPar:10646,ltri:9667,ltrie:8884,ltrif:9666,lurdshar:10570,luruhar:10598,lvertneqq:[8808,65024],lvnE:[8808,65024],mDDot:8762,macr:175,male:9794,malt:10016,maltese:10016,map:8614,mapsto:8614,mapstodown:8615,mapstoleft:8612,mapstoup:8613,marker:9646,mcomma:10793,mcy:1084,mdash:8212,measuredangle:8737,mfr:120106,mho:8487,micro:181,mid:8739,midast:42,midcir:10992,middot:183,minus:8722,minusb:8863,minusd:8760,minusdu:10794,mlcp:10971,mldr:8230,mnplus:8723,models:8871,mopf:120158,mp:8723,mscr:120002,mstpos:8766,mu:956,multimap:8888,mumap:8888,nGg:[8921,824],nGt:[8811,8402],nGtv:[8811,824],nLeftarrow:8653,nLeftrightarrow:8654,nLl:[8920,824],nLt:[8810,8402],nLtv:[8810,824],nRightarrow:8655,nVDash:8879,nVdash:8878,nabla:8711,nacute:324,nang:[8736,8402],nap:8777,napE:[10864,824],napid:[8779,824],napos:329,napprox:8777,natur:9838,natural:9838,naturals:8469,nbsp:160,nbump:[8782,824],nbumpe:[8783,824],ncap:10819,ncaron:328,ncedil:326,ncong:8775,ncongdot:[10861,824],ncup:10818,ncy:1085,ndash:8211,ne:8800,neArr:8663,nearhk:10532,nearr:8599,nearrow:8599,nedot:[8784,824],nequiv:8802,nesear:10536,nesim:[8770,824],nexist:8708,nexists:8708,nfr:120107,ngE:[8807,824],nge:8817,ngeq:8817,ngeqq:[8807,824],ngeqslant:[10878,824],nges:[10878,824],ngsim:8821,ngt:8815,ngtr:8815,nhArr:8654,nharr:8622,nhpar:10994,ni:8715,nis:8956,nisd:8954,niv:8715,njcy:1114,nlArr:8653,nlE:[8806,824],nlarr:8602,nldr:8229,nle:8816,nleftarrow:8602,nleftrightarrow:8622,nleq:8816,nleqq:[8806,824],nleqslant:[10877,824],nles:[10877,824],nless:8814,nlsim:8820,nlt:8814,nltri:8938,nltrie:8940,nmid:8740,nopf:120159,not:172,notin:8713,notinE:[8953,824],notindot:[8949,824],notinva:8713,notinvb:8951,notinvc:8950,notni:8716,notniva:8716,notnivb:8958,notnivc:8957,npar:8742,nparallel:8742,nparsl:[11005,8421],npart:[8706,824],npolint:10772,npr:8832,nprcue:8928,npre:[10927,824],nprec:8832,npreceq:[10927,824],nrArr:8655,nrarr:8603,nrarrc:[10547,824],nrarrw:[8605,824],nrightarrow:8603,nrtri:8939,nrtrie:8941,nsc:8833,nsccue:8929,nsce:[10928,824],nscr:120003,nshortmid:8740,nshortparallel:8742,nsim:8769,nsime:8772,nsimeq:8772,nsmid:8740,nspar:8742,nsqsube:8930,nsqsupe:8931,nsub:8836,nsubE:[10949,824],nsube:8840,nsubset:[8834,8402],nsubseteq:8840,nsubseteqq:[10949,824],nsucc:8833,nsucceq:[10928,824],nsup:8837,nsupE:[10950,824],nsupe:8841,nsupset:[8835,8402],nsupseteq:8841,nsupseteqq:[10950,824],ntgl:8825,ntilde:241,ntlg:8824,ntriangleleft:8938,ntrianglelefteq:8940,ntriangleright:8939,ntrianglerighteq:8941,nu:957,num:35,numero:8470,numsp:8199,nvDash:8877,nvHarr:10500,nvap:[8781,8402],nvdash:8876,nvge:[8805,8402],nvgt:[62,8402],nvinfin:10718,nvlArr:10498,nvle:[8804,8402],nvlt:[60,8402],nvltrie:[8884,8402],nvrArr:10499,nvrtrie:[8885,8402],nvsim:[8764,8402],nwArr:8662,nwarhk:10531,nwarr:8598,nwarrow:8598,nwnear:10535,oS:9416,oacute:243,oast:8859,ocir:8858,ocirc:244,ocy:1086,odash:8861,odblac:337,odiv:10808,odot:8857,odsold:10684,oelig:339,ofcir:10687,ofr:120108,ogon:731,ograve:242,ogt:10689,ohbar:10677,ohm:937,oint:8750,olarr:8634,olcir:10686,olcross:10683,oline:8254,olt:10688,omacr:333,omega:969,omicron:959,omid:10678,ominus:8854,oopf:120160,opar:10679,operp:10681,oplus:8853,or:8744,orarr:8635,ord:10845,order:8500,orderof:8500,ordf:170,ordm:186,origof:8886,oror:10838,orslope:10839,orv:10843,oscr:8500,oslash:248,osol:8856,otilde:245,otimes:8855,otimesas:10806,ouml:246,ovbar:9021,par:8741,para:182,parallel:8741,parsim:10995,parsl:11005,part:8706,pcy:1087,percnt:37,period:46,permil:8240,perp:8869,pertenk:8241,pfr:120109,phi:966,phiv:981,phmmat:8499,phone:9742,pi:960,pitchfork:8916,piv:982,planck:8463,planckh:8462,plankv:8463,plus:43,plusacir:10787,plusb:8862,pluscir:10786,plusdo:8724,plusdu:10789,pluse:10866,plusmn:177,plussim:10790,plustwo:10791,pm:177,pointint:10773,popf:120161,pound:163,pr:8826,prE:10931,prap:10935,prcue:8828,pre:10927,prec:8826,precapprox:10935,preccurlyeq:8828,preceq:10927,precnapprox:10937,precneqq:10933,precnsim:8936,precsim:8830,prime:8242,primes:8473,prnE:10933,prnap:10937,prnsim:8936,prod:8719,profalar:9006,profline:8978,profsurf:8979,prop:8733,propto:8733,prsim:8830,prurel:8880,pscr:120005,psi:968,puncsp:8200,qfr:120110,qint:10764,qopf:120162,qprime:8279,qscr:120006,quaternions:8461,quatint:10774,quest:63,questeq:8799,quot:34,rAarr:8667,rArr:8658,rAtail:10524,rBarr:10511,rHar:10596,race:[8765,817],racute:341,radic:8730,raemptyv:10675,rang:10217,rangd:10642,range:10661,rangle:10217,raquo:187,rarr:8594,rarrap:10613,rarrb:8677,rarrbfs:10528,rarrc:10547,rarrfs:10526,rarrhk:8618,rarrlp:8620,rarrpl:10565,rarrsim:10612,rarrtl:8611,rarrw:8605,ratail:10522,ratio:8758,rationals:8474,rbarr:10509,rbbrk:10099,rbrace:125,rbrack:93,rbrke:10636,rbrksld:10638,rbrkslu:10640,rcaron:345,rcedil:343,rceil:8969,rcub:125,rcy:1088,rdca:10551,rdldhar:10601,rdquo:8221,rdquor:8221,rdsh:8627,real:8476,realine:8475,realpart:8476,reals:8477,rect:9645,reg:174,rfisht:10621,rfloor:8971,rfr:120111,rhard:8641,rharu:8640,rharul:10604,rho:961,rhov:1009,rightarrow:8594,rightarrowtail:8611,rightharpoondown:8641,rightharpoonup:8640,rightleftarrows:8644,rightleftharpoons:8652,rightrightarrows:8649,rightsquigarrow:8605,rightthreetimes:8908,ring:730,risingdotseq:8787,rlarr:8644,rlhar:8652,rlm:8207,rmoust:9137,rmoustache:9137,rnmid:10990,roang:10221,roarr:8702,robrk:10215,ropar:10630,ropf:120163,roplus:10798,rotimes:10805,rpar:41,rpargt:10644,rppolint:10770,rrarr:8649,rsaquo:8250,rscr:120007,rsh:8625,rsqb:93,rsquo:8217,rsquor:8217,rthree:8908,rtimes:8906,rtri:9657,rtrie:8885,rtrif:9656,rtriltri:10702,ruluhar:10600,rx:8478,sacute:347,sbquo:8218,sc:8827,scE:10932,scap:10936,scaron:353,sccue:8829,sce:10928,scedil:351,scirc:349,scnE:10934,scnap:10938,scnsim:8937,scpolint:10771,scsim:8831,scy:1089,sdot:8901,sdotb:8865,sdote:10854,seArr:8664,searhk:10533,searr:8600,searrow:8600,sect:167,semi:59,seswar:10537,setminus:8726,setmn:8726,sext:10038,sfr:120112,sfrown:8994,sharp:9839,shchcy:1097,shcy:1096,shortmid:8739,shortparallel:8741,shy:173,sigma:963,sigmaf:962,sigmav:962,sim:8764,simdot:10858,sime:8771,simeq:8771,simg:10910,simgE:10912,siml:10909,simlE:10911,simne:8774,simplus:10788,simrarr:10610,slarr:8592,smallsetminus:8726,smashp:10803,smeparsl:10724,smid:8739,smile:8995,smt:10922,smte:10924,smtes:[10924,65024],softcy:1100,sol:47,solb:10692,solbar:9023,sopf:120164,spades:9824,spadesuit:9824,spar:8741,sqcap:8851,sqcaps:[8851,65024],sqcup:8852,sqcups:[8852,65024],sqsub:8847,sqsube:8849,sqsubset:8847,sqsubseteq:8849,sqsup:8848,sqsupe:8850,sqsupset:8848,sqsupseteq:8850,squ:9633,square:9633,squarf:9642,squf:9642,srarr:8594,sscr:120008,ssetmn:8726,ssmile:8995,sstarf:8902,star:9734,starf:9733,straightepsilon:1013,straightphi:981,strns:175,sub:8834,subE:10949,subdot:10941,sube:8838,subedot:10947,submult:10945,subnE:10955,subne:8842,subplus:10943,subrarr:10617,subset:8834,subseteq:8838,subseteqq:10949,subsetneq:8842,subsetneqq:10955,subsim:10951,subsub:10965,subsup:10963,succ:8827,succapprox:10936,succcurlyeq:8829,succeq:10928,succnapprox:10938,succneqq:10934,succnsim:8937,succsim:8831,sum:8721,sung:9834,sup:8835,sup1:185,sup2:178,sup3:179,supE:10950,supdot:10942,supdsub:10968,supe:8839,supedot:10948,suphsol:10185,suphsub:10967,suplarr:10619,supmult:10946,supnE:10956,supne:8843,supplus:10944,supset:8835,supseteq:8839,supseteqq:10950,supsetneq:8843,supsetneqq:10956,supsim:10952,supsub:10964,supsup:10966,swArr:8665,swarhk:10534,swarr:8601,swarrow:8601,swnwar:10538,szlig:223,target:8982,tau:964,tbrk:9140,tcaron:357,tcedil:355,tcy:1090,tdot:8411,telrec:8981,tfr:120113,there4:8756,therefore:8756,theta:952,thetasym:977,thetav:977,thickapprox:8776,thicksim:8764,thinsp:8201,thkap:8776,thksim:8764,thorn:254,tilde:732,times:215,timesb:8864,timesbar:10801,timesd:10800,tint:8749,toea:10536,top:8868,topbot:9014,topcir:10993,topf:120165,topfork:10970,tosa:10537,tprime:8244,trade:8482,triangle:9653,triangledown:9663,triangleleft:9667,trianglelefteq:8884,triangleq:8796,triangleright:9657,trianglerighteq:8885,tridot:9708,trie:8796,triminus:10810,triplus:10809,trisb:10701,tritime:10811,trpezium:9186,tscr:120009,tscy:1094,tshcy:1115,tstrok:359,twixt:8812,twoheadleftarrow:8606,twoheadrightarrow:8608,uArr:8657,uHar:10595,uacute:250,uarr:8593,ubrcy:1118,ubreve:365,ucirc:251,ucy:1091,udarr:8645,udblac:369,udhar:10606,ufisht:10622,ufr:120114,ugrave:249,uharl:8639,uharr:8638,uhblk:9600,ulcorn:8988,ulcorner:8988,ulcrop:8975,ultri:9720,umacr:363,uml:168,uogon:371,uopf:120166,uparrow:8593,updownarrow:8597,upharpoonleft:8639,upharpoonright:8638,uplus:8846,upsi:965,upsih:978,upsilon:965,upuparrows:8648,urcorn:8989,urcorner:8989,urcrop:8974,uring:367,urtri:9721,uscr:120010,utdot:8944,utilde:361,utri:9653,utrif:9652,uuarr:8648,uuml:252,uwangle:10663,vArr:8661,vBar:10984,vBarv:10985,vDash:8872,vangrt:10652,varepsilon:1013,varkappa:1008,varnothing:8709,varphi:981,varpi:982,varpropto:8733,varr:8597,varrho:1009,varsigma:962,varsubsetneq:[8842,65024],varsubsetneqq:[10955,65024],varsupsetneq:[8843,65024],varsupsetneqq:[10956,65024],vartheta:977,vartriangleleft:8882,vartriangleright:8883,vcy:1074,vdash:8866,vee:8744,veebar:8891,veeeq:8794,vellip:8942,verbar:124,vert:124,vfr:120115,vltri:8882,vnsub:[8834,8402],vnsup:[8835,8402],vopf:120167,vprop:8733,vrtri:8883,vscr:120011,vsubnE:[10955,65024],vsubne:[8842,65024],vsupnE:[10956,65024],vsupne:[8843,65024],vzigzag:10650,wcirc:373,wedbar:10847,wedge:8743,wedgeq:8793,weierp:8472,wfr:120116,wopf:120168,wp:8472,wr:8768,wreath:8768,wscr:120012,xcap:8898,xcirc:9711,xcup:8899,xdtri:9661,xfr:120117,xhArr:10234,xharr:10231,xi:958,xlArr:10232,xlarr:10229,xmap:10236,xnis:8955,xodot:10752,xopf:120169,xoplus:10753,xotime:10754,xrArr:10233,xrarr:10230,xscr:120013,xsqcup:10758,xuplus:10756,xutri:9651,xvee:8897,xwedge:8896,yacute:253,yacy:1103,ycirc:375,ycy:1099,yen:165,yfr:120118,yicy:1111,yopf:120170,yscr:120014,yucy:1102,yuml:255,zacute:378,zcaron:382,zcy:1079,zdot:380,zeetrf:8488,zeta:950,zfr:120119,zhcy:1078,zigrarr:8669,zopf:120171,zscr:120015,zwj:8205,zwnj:8204},Cu=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];function ju(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Iu(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var Nu={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},sm=/&(?:#(\d+);?|#[xX]([0-9a-fA-F]+);?|([a-zA-Z][a-zA-Z0-9]*)(;?))/g,Lu=new Map(Object.entries(Ru)),im=new Set(Cu);function At(e){return e.indexOf("&")===-1?e:e.replace(sm,(t,n,r,o,s,i)=>n!==void 0?Pu(parseInt(n,10)):r!==void 0?Pu(parseInt(r,16)):am(t,o,s===";",e[i+t.length]))}function am(e,t,n,r){if(n){let o=Lu.get(t);return o===void 0?e:Ou(o)}return!im.has(t)||r==="="?e:Ou(Lu.get(t))}function Ou(e){return typeof e=="number"?String.fromCodePoint(e):String.fromCodePoint(...e)}function Pu(e){return e===0||e>1114111||e>=55296&&e<=57343?"\uFFFD":Nu[e]!==void 0?String.fromCodePoint(Nu[e]):String.fromCodePoint(e)}var cm=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Pr(e){return cm.has(e.toLowerCase())}function Ra(e){return e==="script"||e==="style"}function lm(e){return e==="textarea"||e==="title"}function os(e){return Ra(e)||lm(e)||e==="iframe"||e==="xmp"||e==="noembed"||e==="noframes"||e==="plaintext"}jt();var as=0,Ca=1,Na=2,La=3,$e=4,Oa=0,ss=1,is=2,Pa=3,um=4,Du=new WeakMap,fm=0;function $u(e){let t=Du.get(e);return t===void 0&&(qo(e),t=Fu(e),Du.set(e,t)),t}function cs(e){return Fu([e])}var Qe=/\s/,Mu=/[a-zA-Z]/,qu=/[\s/>]/,dm=/^\?$/,pm=new Set(["tag-name","in-tag","attr-name","after-name","after-eq","attr-quoted","attr-unquoted"]);function Fu(e){fm+=1;let t=[],n="",r=()=>{n&&(t.push({t:as,s:n}),n="")},o="text",s="",i=0,a="",c=!1,l=0,u="",f=null,d=-1,p=0,m=!1,b="",g=!1,w=!1,S=!1,_="",y="",M=()=>{f&&(f.tag=u,f=null)},T=O=>{let ee=n.slice(p);n=n.slice(0,p),r(),t.push({t:La,tag:O,text:ee}),o="text"},F=O=>{let ee=m,v=ee?"/>":">";n=n.slice(0,n.length-v.length),r(),t.push({t:Na,selfClose:ee,close:v}),m=!1,s="";let h=u;if(Ra(h)&&O){o="rawtext",b="",g=!1,w=!1,S=!1;return}if(!ee&&os(h)){o="textonly",_=h,y="";return}o="text"},q="";for(let O=0;O<e.length;O++){let ee=q?e[O].slice(1):e[O];q="";for(let v=0;v<ee.length;v++){let h=ee[v];switch(o){case"text":h==="<"&&(r(),o="tag-open"),n+=h;break;case"tag-open":h==="!"?(n+=h,o="bang-1"):dm.test(h)?(n+=h,o="bogus"):h==="/"?(n+=h,o="close-open"):Mu.test(h)?(n=n.slice(0,-1),r(),f={t:Ca,tag:""},d=t.length,t.push(f),n="<"+h,u=h.toLowerCase(),o="tag-name"):(n+=h,o="text");break;case"close-open":Mu.test(h)?(p=n.length-2,n+=h,u=h.toLowerCase(),o="close-name"):(n+=h,o=h===">"?"text":"bogus");break;case"close-name":n+=h,h===">"?T(u):Qe.test(h)||h==="/"?o="close-tail":u+=h.toLowerCase();break;case"close-tail":n+=h,h===">"&&T(u);break;case"bang-1":n+=h,o=h==="-"?"bang-dash":"bogus";break;case"bang-dash":n+=h,o=h==="-"?"comment-start":"bogus";break;case"bogus":n+=h,h===">"&&(o="text");break;case"comment-start":n+=h,h===">"?o="text":h==="-"?o="comment-start-dash":(o="comment",l=0);break;case"comment-start-dash":n+=h,h===">"?o="text":h==="-"?(o="comment",l=2):(o="comment",l=0);break;case"comment":n+=h,h==="-"?l+=1:h===">"&&l>=2?(o="text",l=0):h==="!"&&l>=2?o="comment-bang":l=0;break;case"comment-bang":n+=h,h===">"?(o="text",l=0):(o="comment",l=h==="-"?1:0);break;case"tag-name":n+=h,h===">"?(M(),F(!0)):Qe.test(h)?(M(),o="in-tag"):h==="/"?(M(),m=!0,o="in-tag"):u+=h.toLowerCase();break;case"in-tag":n+=h,h===">"?F(!0):h==="/"?m=!0:Qe.test(h)?m=!1:(m=!1,o="attr-name",s=h,i=n.length-1);break;case"attr-name":h==="="?(o="after-eq",n+=h):Qe.test(h)?(o="after-name",n+=h):h==="/"?(o="in-tag",s="",m=!0,n+=h):h===">"?(n+=h,F(!1)):(s+=h,n+=h);break;case"after-name":n+=h,h==="="?o="after-eq":Qe.test(h)||(h===">"?F(!0):h==="/"?(o="in-tag",s="",m=!0):(o="attr-name",s=h,i=n.length-1));break;case"after-eq":h==='"'||h==="'"?(o="attr-quoted",a=h,n+=h):Qe.test(h)?n+=h:h===">"?(n+=h,F(!1)):(o="attr-unquoted",n+=h);break;case"attr-unquoted":Qe.test(h)?(o="in-tag",s="",n+=h):h===">"?(n+=h,F(!1)):n+=h;break;case"attr-quoted":if(c){Qe.test(h)||h===">"||h==="/"&&ee[v+1]===">"?(n+='"',c=!1,o="in-tag",s="",v--):n+=h==='"'?"&quot;":h;break}n+=h,h===a&&(o="in-tag",s="");break;case"rawtext":{n+=h;let we=h.toLowerCase();u==="script"?(S&&(S=!1,qu.test(h)&&g&&(w=!0)),b=(b+we).slice(-9),b.endsWith("<!--")?g||(g=!0):b.endsWith("-->")||b.endsWith("--!>")?(g=!1,w=!1):b.endsWith("<script")?S=!0:b.endsWith("<\/script>")&&(w?w=!1:(p=n.length-9,T("script"),b="",u=""))):(b=(b+we).slice(-8),b.endsWith("</style>")&&(p=n.length-8,T("style"),b="",u=""));break}case"textonly":if(y==="</"+_&&qu.test(h)){p=n.length-y.length,n+=h,u=_,_="",y="",h===">"?T(u):o="close-tail";break}n+=h,_!=="plaintext"&&(y=(y+h.toLowerCase()).slice(-(_.length+2)));break}}if(O<e.length-1){if(Ke[s[0]]===void 0&&!c){let v=e[O+1],h=v!==""&&(Qe.test(v[0])||v[0]===">"||v[0]==="/"&&v[1]===">");if(o==="after-eq"&&!h)n+='"',o="attr-quoted",a='"',c=!0;else if(o==="attr-unquoted"){let we=n.indexOf("=",i)+1,xo=/^\s*/.exec(n.slice(we))[0].length;n=n.slice(0,we+xo)+'"'+n.slice(we+xo).replace(/"/g,"&quot;"),o="attr-quoted",a='"',c=!0}}if(o==="comment"||o==="comment-start"||o==="comment-start-dash"||o==="comment-bang")r(),t.push({t:$e,k:ss}),l=0,o="comment";else if(o==="rawtext")r(),t.push({t:$e,k:ss}),b="",S=!1;else if(o==="text"||o==="textonly")r(),t.push({t:$e,k:Oa}),y="";else if(o==="after-eq"){let v=s[0],h=Ke[v],we=n.slice(i);n=n.slice(0,i),r(),t.push({t:$e,k:is,kind:h===void 0?"plain":h,name:h===void 0?s:s.slice(1),tag:u,lead:we}),o="in-tag",s=""}else if(o==="attr-quoted"&&Ke[s[0]]!==void 0){let v=n.slice(i);if(!v.endsWith("="+a)||!e[O+1].startsWith(a))throw new Error("Event, property and boolean bindings require exactly one expression with no surrounding text.");n=n.slice(0,i),r(),t.push({t:$e,k:is,kind:Ke[s[0]],name:s.slice(1),tag:u,lead:v.slice(0,-1)}),q=a,o="in-tag",s=""}else if(o==="attr-quoted"||o==="attr-unquoted"){let v=n.slice(i);r(),t.push({t:$e,k:Pa,name:s,tag:u,quote:o==="attr-quoted"?a:"",prefix:v})}else r(),t.push({t:$e,k:um}),p=0}}return f&&(f.tag=u),d!==-1&&pm.has(o)&&t.splice(d,1),r(),t}ct();function ls(){return typeof process<"u"&&process.env&&!0}function ja(e){let t=e&&typeof e.message=="string"?e.message:"",n=/^(\w+) is not defined\b/.exec(t);return e instanceof ReferenceError&&n&&hm.has(n[1])?`\`${n[1]}\` is a browser-only global and is undefined during SSR.`:(n=/\.(\w+) is not a function\b/.exec(t),e instanceof TypeError&&n&&mm.has(n[1])?`\`${n[1]}\` is an HTMLElement method that does not exist on the server-side component instance during SSR.`:null)}var hm=new Set(["document","window","localStorage","sessionStorage","navigator","matchMedia","requestAnimationFrame","getComputedStyle","IntersectionObserver","MutationObserver","ResizeObserver"]),mm=new Set(["attachShadow","querySelector","querySelectorAll","getBoundingClientRect","focus","blur","scrollIntoView"]);function jr(e,t,n){if(!(n===void 0?!ls():!!n))return"";let o=t&&t.message?t.message:String(t);return Kn`<div data-webjs-error="${e}" style="border:1px solid #f5c2c7;background:#f8d7da;color:#842029;padding:8px 12px;border-radius:6px;font:13px/1.4 system-ui,sans-serif">
6
7
  <strong>&lt;${e}&gt; failed to render</strong>
7
8
  <div style="margin-top:4px;white-space:pre-wrap">${o}</div>
8
- </div>`}ze();Nt();function ml(e){let t={},r=/([a-zA-Z_:][\w:.-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,n;for(;(n=r.exec(e))!==null;)t[n[1]]=n[2]??n[3]??n[4]??"";return t}function gl(e,t){if(!(!e||typeof e.setAttribute!="function"))for(let r in t)e.setAttribute(r,rt(t[r]))}function qi(e){return e.includes("data-wj-host")&&/\sdata-wj-host(?=[\s>=])/i.test(e)?e:`${e.slice(0,-1)} data-wj-host>`}function bl(e,t,r){if(!t||typeof t.getAttributeNames!="function")return e;let n="";for(let o of t.getAttributeNames()){let s=String(o).toLowerCase();if(r.has(s))continue;let i=t.getAttribute(o);n+=i===""?` ${s}`:` ${s}="${q(String(i))}"`}return n?`${e.slice(0,-1)}${n}>`:e}function yl(e,t,r){for(let n in t){let o=t[n],s=Ao(r,n.toLowerCase());if(s===void 0)continue;let{propName:i,def:a}=s;e[i]=_o(a,rt(o))}}function wl(e){let t={};for(let r of Object.keys(e)){if(!r.startsWith("data-webjs-prop-"))continue;let n=al(r.slice(16));try{t[n]=Ie(rt(e[r]))}catch{}delete e[r]}return t}ze();function Sl(e,t,r){if(!t||typeof t.getAttribute!="function"||typeof t.getAttributeNames!="function")return e;let n=e.search(/[\s>]/),o=e.slice(0,n),s=e.slice(n,-1),i=/([a-zA-Z_:][\w:.-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,a="",c=0,l=!1,u;for(;(u=i.exec(s))!==null;){let d=u[0],p=u[1];if(p.toLowerCase().startsWith("data-webjs-prop-"))continue;let g=rt(u[2]??u[3]??u[4]??""),y=t.getAttribute(p);if(y!==g){if(l=!0,y===null){let m=u.index;for(;m>c&&/\s/.test(s[m-1]);)m--;a+=s.slice(c,m)}else a+=s.slice(c,u.index)+(y===""?p:`${p}="${q(String(y))}"`);c=u.index+d.length}}let f=l?`${o}${a}${s.slice(c)}>`:e;return bl(f,t,r)}var _l=/\S/;function Al(e,t,r,n,o){e.ctx&&e.ctx.usedComponents&&e.ctx.usedComponents.add(t);let s=r.shadow===!0,i={kind:"component",tag:t,Cls:r,isShadow:s,instance:null,opening:n,tpl:void 0,pending:null,presentAttrNames:null,error:null,outer:"",partition:!s,depth:0,seg:null,pendingSeg:null,segments:null,closeText:""};try{let a=new r;i.instance=a,a.__ssrTag=t,a.__ssrAncestors=e.ancestors.slice();let c=o?ml(o):{},l=new Set;for(let d in c)l.add(d.toLowerCase());let u=wl(c);gl(a,c),yl(a,c,r);for(let d in u)a[d]=u[d];typeof a.performServerUpdate=="function"&&a.performServerUpdate();let f=a.render?a.render():"";if(i.presentAttrNames=l,f&&typeof f.then=="function")return i.pending=f,i;i.tpl=f,vl(i)}catch(a){i.error=a}return i}async function xl(e){try{e.tpl=await e.pending,vl(e)}catch(t){e.error=t}e.pending=null}function vl(e){e.opening=Sl(e.opening,e.instance,e.presentAttrNames),e.isShadow||(e.opening=qi(e.opening))}async function El(e,t,r){let{tag:n,Cls:o,isShadow:s}=t;if(t.error===null)try{let i=await ep(e,t,r);return s?`${t.opening}<template shadowrootmode="open">${Tl(o)}${i}</template>${r}${t.closeText}`:_l.test(i)?`${t.opening}<!--webjs-hydrate-->${i}</${n}>`:`${t.opening}<!--webjs-hydrate-->${r}${t.closeText}`}catch(i){t.error=i}return rp(e,t)}async function ep(e,t,r){let n=e.owner;e.owner=t.isShadow?null:{tag:t.tag,partition:tp(r,t.segments),consumed:null};try{return await e.capture(()=>e.value(t.tpl))}finally{e.owner=n}}function tp(e,t){let r=new Map;if(!t)return e.length>0&&r.set(null,e),r;let n="",o=0;for(let s of t){n+=e.slice(o,s.start);let i=r.get(s.slot);r.set(s.slot,i===void 0?e.slice(s.start,s.end):i+e.slice(s.start,s.end)),o=s.end}return n+=e.slice(o),n.length>0&&r.set(null,n),r}function Tl(e){let t=e.styles,r=Array.isArray(t)?t:t&&Cr(t)?[t]:[];return vs(r)}async function rp(e,t){let{tag:r,Cls:n,instance:o,isShadow:s}=t,i=t.error,a=Ii(i);console.error(a?`[webjs] SSR failed for <${r}>: ${a} It was touched in the component's constructor or render(), which run during SSR. Move browser-only work to connectedCallback() or a lifecycle hook (firstUpdated/updated), which SSR never calls; seed first-paint defaults in the constructor only from server-known inputs (attributes / props).`:`[webjs] SSR failed for <${r}>:`,i);let c=i instanceof Error?i:new Error(String(i)),l="";try{let f;o&&typeof o.renderError=="function"&&(f=o.renderError(c)),f===void 0&&(f=cn(r,c,e.dev)),l=await e.capture(()=>e.value(f))}catch(f){console.error(`[webjs] renderError() for <${r}> also threw:`,f),l=""}let u=t.opening;return s||(u=qi(u)),s?`${u}<template shadowrootmode="open">${Tl(n)}${l}</template>`:`${u}<!--webjs-hydrate-->${l}</${r}>`}function Mi(e){let t=kl(e,"slot");return t?t.value===""||t.value==="default"?null:t.value:null}function kl(e,t){let r=/([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,n;for(;n=r.exec(e);)if(n[1].toLowerCase()===t)return{value:n[2]??n[3]??n[4]??"",start:n.index,end:n.index+n[0].length};return null}function Nl(e,t){let{attrsRaw:r,owner:n}=e,o=n.tag?` data-wj-slot-owner="${q(n.tag)}"`:"",s=null,i="";if(_l.test(r)){let f=kl(r,"name");s=f?f.value:null,i=(f?r.slice(0,f.start)+r.slice(f.end):r).trim()}let a=s==="default"||s===""?null:s,c=n.partition.get(a),l=s!==null?` name="${q(s)}"`:"",u=i?` ${i}`:"";return c!==void 0&&!(n.consumed&&n.consumed.has(a))?((n.consumed??=new Set).add(a),`<slot data-webjs-light data-projection="actual"${o}${l}${u}>${c}</slot>`):`<slot data-webjs-light data-projection="fallback"${o}${l}${u}>${t}</slot>`}async function Cl(e,t,r){return e.ctx&&t.id?(e.ctx.pending.push({id:t.id,promise:Promise.resolve(Os(r))}),`<webjs-suspense id="${t.id}">${t.fallback}</webjs-suspense>`):`<webjs-suspense>${r}</webjs-suspense>`}var Lo=class{constructor(t,r={}){this.ctx=t,this.expand=r.expand!==!1,this.dev=r.dev,this.controller=r.controller||null,this.buf="",this.frames=[],this.ancestors=r.ancestors?r.ancestors.slice():[],this.owner=null,this.inert=[],this.defer=0,this.tagState=null}flush(){this.controller&&this.buf&&(this.controller.enqueue(this.buf),this.buf="")}emit(t){this.controller?(this.flush(),this.controller.enqueue(t)):this.buf+=t}async capture(t){let r=this.buf,n=this.frames,o=this.tagState,s=this.controller,i=this.inert,a=this.defer,c=this.ancestors.length;this.buf="",this.frames=[],this.tagState=null,this.controller=null,this.inert=i.slice();try{return await t(),await this.finishOpenFrames(),this.buf}finally{this.buf=r,this.frames=n,this.tagState=o,this.controller=s,this.inert=i,this.defer=a,this.ancestors.length=c}}async value(t){if(!(t==null||t===T||t===B)){if(typeof t.then=="function")return this.value(await t);if(typeof t=="string"){this.emit(Wt(t));return}if(F(t))return this.template(t);if(Array.isArray(t)){for(let r of t)await this.value(r);return}if(Dr(t)){let r=String(t.value??"");this.expand?await this.ops(Ro(r),Di):this.emit(r);return}if(J(t))return this.value(t.value);if(er(t))return this.value(t.signal.get());if(Yt(t))return this.value(t.value);if(Jt(t))return this.value(t.fn());if($r(t)){let r=t.template,n=String(r?.innerHTML??"");this.expand?await this.ops(Ro(n),Di):this.emit(n);return}if(!Xt(t)){if(Zt(t))return this.value(t.value);if(Qt(t)){let r=t.args;for(let n of r)if(!n||typeof n.then!="function")return this.value(n);if(r.length>0)try{let n=await Promise.race(r.map(o=>Promise.resolve(o).catch(()=>{})));return this.value(n)}catch{return}return}if(!(Fr(t)||Br(t))){if(Gt(t)){let r=t;for(let n=0;n<r.items.length;n++)await this.value(r.templateFn(r.items[n],n));return}if(Ni(t)){let r=t,n=this.ctx;if(n){let o=`s${n.nextId++}`;this.emit(`<webjs-boundary id="${o}">`),await this.value(r.fallback),this.emit("</webjs-boundary>"),n.pending.push({id:o,promise:Promise.resolve(r.children)})}else await this.value(r.fallback);return}this.emit(Wt(String(t)))}}}}async template(t){await this.ops(dl(t.strings),t.values),this.flush()}async ops(t,r){let n=0;for(let o=0;o<t.length;o++){let s=t[o];switch(s.t){case Co:this.buf+=s.s;break;case Ri:this.open(s.tag);break;case Li:{let i=this.tagEnd(s);i&&await i;break}case Oi:{let i=this.close(s);i&&await i;break}case ke:{let i=r[n++];switch(i&&typeof i.then=="function"&&(i=await i),J(i)&&(i=i.value),s.k){case ji:this.flush(),typeof i=="string"?this.emit(Wt(i)):typeof i=="number"?this.emit(Wt(String(i))):await this.value(i);break;case ko:this.buf+=String(i??"");break;case No:await this.attr(s,i);break;case Pi:if(s.quote){this.buf=this.buf.slice(0,-s.prefix.length);let a=s.prefix,c=!1,l=i;for(let u=o;u<t.length;u++){let f=t[u];if(f.t===ke)u!==o&&(l=r[n++],l&&typeof l.then=="function"&&(l=await l),J(l)&&(l=l.value)),Mr(l)&&(l=Ls(l,s.name)),ye(l,s.name,s.tag),l===T&&(c=!0),a+=l===T||l===B?"":q(String(l??""));else if(f.t===Co){let d=f.s.indexOf(s.quote);if(d>=0){c||(this.buf+=a+f.s.slice(0,d+1)),this.buf+=f.s.slice(d+1),o=u;break}a+=f.s}}break}ye(i,s.name,s.tag),this.buf+=q(String(i??""));break;default:break}break}}}}open(t){let r=this.frames[this.frames.length-1];r&&r.partition&&r.depth===0&&!this.inert.length&&(r.seg={start:this.buf.length,end:0,slot:null});let n,o;this.expand&&this.defer===0&&!this.inert.length&&(t==="webjs-suspense"||t==="slot"&&this.owner!==null||t.includes("-")&&Eo(t))?(n=this.buf,this.buf=""):(t==="form"||t==="button"||t==="input")&&(o=this.buf,this.buf=""),this.tagState={tag:t,start:this.buf.length,outer:n,formOuter:o,actionId:null,submitterTag:null,actionCount:0,propAttrs:null,submitterProps:null,fallback:null}}async attr(t,r){if(Mr(r)){if(t.kind!=="plain")throw new Error("classMap/styleMap require an attribute binding.");r=Ls(r,t.name)}if(r===B)return;r===T&&t.kind==="prop"&&(r=void 0);let n=this.tagState,o=t.name,s=t.tag;if(t.kind==="event")return;if(t.kind==="prop"){if(s==="webjs-suspense"&&o==="fallback"){this.expand&&this.ctx&&n&&(n.fallback=await this.capture(()=>this.value(r)));return}if(!s.includes("-")){Zn(r,o,s),n&&np(n,o,s);return}if(!this.expand||r===void 0)return;try{let a=await rn(r);this.buf+=`data-webjs-prop-${cl(o)}="${q(a)}"`}catch(a){console.warn(`[webjs] property binding .${o} has an unserializable value during SSR. Dropping. The browser will see the property as undefined. Detail: ${a&&a.message}`)}return}if(t.kind==="bool"){ye(r,o,s),r&&r!==T&&(this.buf+=`${o}=""`);return}if(Kt(r,o,s)){if(n&&Rl(n,o,s),s==="form")n&&(n.actionId=zt(await Ts(r),s)),this.buf=this.buf.replace(/\s+$/,"");else{Pr(!!n&&n.submitterTag!=null,s);let a=qr(n?this.buf.slice(n.start):"");a.has("name")&&Lr(a.get("name")||"",s,!1),a.has("value")&&Or(s),a.has("form")&&jr(s);let c=zt(await Ts(r),s);n&&(n.submitterTag=s),this.buf+=`name="${M}" value="${q(c)}"`}return}n&&Rl(n,o,s),ye(r,o,s);let i=ht(o,r);i!==null&&(this.buf+=`${t.lead}"${q(i)}"`)}tagEnd(t){let r=this.tagState;if(this.tagState=null,r&&r.fallback!=null&&this.defer>0&&r.tag==="webjs-suspense"&&(this.buf+=` data-webjs-fallback="${q(r.fallback)}"`),this.buf+=t.close,!r)return;let n=r.tag;if((r.actionId!=null||r.submitterTag!=null)&&this.closeBoundFormTag(r),r.formOuter!==void 0&&(r.start=r.formOuter.length,this.buf=r.formOuter+this.buf),this.inert.length)return;let o=!!t.selfClose;To(n)&&!o&&this.inert.push(n);let s=this.frames[this.frames.length-1];if(r.outer!==void 0)return n==="webjs-suspense"?this.openSuspense(t,r,s,o):n==="slot"?this.openSlot(t,r,s,o):this.openComponent(t,r,s,o,Eo(n));if(!o&&!an(n)){for(let i=this.frames.length-1;i>=0;i--)if(this.frames[i].tag===n){this.frames[i].nested=(this.frames[i].nested||0)+1;break}}if(s&&s.partition&&s.seg&&s.depth===0){let i=this.buf.slice(r.start);s.seg.slot=Mi(i.slice(1+n.length,i.length-t.close.length)),o||an(n)?this.endSeg(s):s.depth+=1}else s&&s.partition&&!o&&!an(n)&&(s.depth+=1)}async openSuspense(t,r,n,o){this.closeSeg(n,r);let s=r.fallback;if(s===null){let a=/data-webjs-fallback="([^"]*)"/i.exec(this.buf);if(a){let c=rt(a[1]);s=await this.capture(()=>this.ops(Ro(c),Di))}}let i={kind:"suspense",tag:r.tag,outer:r.outer,fallback:s||"",id:null};if(this.ctx&&(i.id=`s${this.ctx.nextId++}`),this.buf="",this.ctx&&(this.defer+=1),o){await this.finish(i);return}this.frames.push(i)}async openSlot(t,r,n,o){let s=r.tag;this.closeSeg(n,r);let i=this.buf,a=i.slice(1+s.length,i.length-t.close.length),c={kind:"slot",tag:s,outer:r.outer,attrsRaw:a,owner:this.owner};if(this.buf="",o){await this.finish(c);return}this.frames.push(c)}async openComponent(t,r,n,o,s){let i=r.tag;this.closeSeg(n,r);let a=this.buf,c=t.selfClose?a.slice(0,a.length-t.close.length)+">":a,l=a.slice(1+i.length,a.length-t.close.length);this.buf="";let u=Al(this,i,s,c,l);if(u.pending&&await xl(u),u.outer=r.outer,u.instance&&(this.ancestors.push(u.instance),u.pushedAncestor=!0),o){await this.finish(u);return}this.frames.push(u)}closeSeg(t,r){if(!(t&&t.partition&&t.seg&&t.depth===0))return;let n=this.buf;t.seg.slot=Mi(n.slice(1+r.tag.length).replace(/\/?>$/,"")),t.pendingSeg=t.seg,t.seg=null}endSeg(t){let r=t.seg;t.seg=null,!(!r||r.slot===null)&&(r.end=this.buf.length,(t.segments??=[]).push(r))}closeBoundFormTag(t){let r=t.actionCount>1;if(t.actionId!=null){Qn({duplicateAction:r,propAttrs:t.propAttrs||[]});let n=Fa(this.buf.slice(t.start),t.actionId);this.buf=this.buf.slice(0,t.start)+n.tag+n.hidden}t.submitterTag!=null&&(this.buf=this.buf.slice(0,t.start)+Ha(this.buf.slice(t.start),t.submitterTag,{duplicateAction:r,propAttrs:t.submitterProps||[]}))}close(t){let r=t.tag;if(this.inert.length){if(this.inert[this.inert.length-1]!==r){this.buf+=t.text;return}this.inert.pop(),this.buf+=t.text,this.ordinaryClose();return}for(let n=this.frames.length-1;n>=0;n--)if(this.frames[n].tag===r){if(this.frames[n].nested>0){this.frames[n].nested-=1;break}return this.closeFrames(n,t.text)}this.buf+=t.text,this.ordinaryClose()}async closeFrames(t,r){for(;this.frames.length-1>t;)await this.finish(this.frames.pop());let n=this.frames.pop();n.closeText=r,await this.finish(n)}ordinaryClose(){let t=this.frames[this.frames.length-1];t&&t.partition&&(t.depth>0&&(t.depth-=1),t.depth===0&&t.seg&&this.endSeg(t))}async finishOpenFrames(){for(;this.frames.length;)await this.finish(this.frames.pop())}async finish(t){t.kind==="suspense"&&this.ctx&&t.id&&(this.defer-=1);let r=this.buf;this.buf=t.outer;let n;t.kind==="component"?(t.seg&&this.endSegIn(t,r),n=await El(this,t,r),t.pushedAncestor&&this.ancestors.pop()):t.kind==="slot"?n=Nl(t,r):n=await Cl(this,t,r),this.buf+=n;let o=this.frames[this.frames.length-1];o&&o.partition&&o.pendingSeg&&(o.seg=o.pendingSeg,o.pendingSeg=null,this.endSeg(o))}endSegIn(t,r){let n=t.seg;t.seg=null,n.slot!==null&&(n.end=r.length,(t.segments??=[]).push(n))}},Di=Object.freeze([]);function np(e,t,r){let n=String(r).toLowerCase();if(n==="button"||n==="input"){Ir(t)&&(e.submitterProps??=[]).push(String(t));return}if(n!=="form")return;let o=String(t).toLowerCase();o==="encoding"&&(o="enctype"),(o==="method"||o==="enctype")&&(e.propAttrs??=[]).push(String(t))}function Rl(e,t,r){let n=String(r).toLowerCase(),o=String(t).toLowerCase();(n==="form"&&o==="action"||(n==="button"||n==="input")&&o==="formaction")&&(e.actionCount+=1)}async function ln(e,t,r){let n=new Lo(t,r);return await n.value(e),await n.finishOpenFrames(),n.buf}async function Ll(e,t,r){let n=new Lo(t,{expand:!1,controller:r});await n.value(e),n.flush()}function Ol(e,t,r){return Ll(e,t,r)}async function jl(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;return r&&r.dev===void 0&&n!==void 0&&(r.dev=n),ln(e,r,{expand:!(t&&t.ssr===!1),dev:n})}function Pl(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;return r&&r.dev===void 0&&n!==void 0&&(r.dev=n),new ReadableStream({async start(o){try{if(t&&t.ssr===!1)await Ol(e,r,o);else{let s=await ln(e,r,{expand:!0,dev:n});o.enqueue(s)}r&&r.pending.length&&await op(r,o,n),o.close()}catch(s){o.error(s)}}})}async function op(e,t,r){let n=ki(),o=n?` nonce="${q(n)}"`:"";for(;e.pending.length;){let s=e.pending.splice(0);await Promise.all(s.map(async({id:i,promise:a})=>{try{let c=await a,l=await ln(c,e,{expand:!0,dev:r});t.enqueue(`<template data-webjs-resolve="${i}">${l}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(c){console.error(`[webjs] Suspense boundary "${i}" rejected:`,c);try{let l=c instanceof Error?c:new Error(String(c)),u=await ln(cn("webjs-suspense",l,r),e,{expand:!0,dev:r});t.enqueue(`<template data-webjs-resolve="${i}">${u}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(l){console.error(`[webjs] Suspense boundary "${i}" error render also threw:`,l)}}}))}}ze();var Il=Symbol.for("webjs.notFound"),ql=Symbol.for("webjs.redirect"),Ml=Symbol.for("webjs.forbidden"),Dl=Symbol.for("webjs.unauthorized");function sp(){let e=new Error("webjs: notFound()");throw e.__webjs=Il,e}function ip(){let e=new Error("webjs: forbidden()");throw e.__webjs=Ml,e}function ap(){let e=new Error("webjs: unauthorized()");throw e.__webjs=Dl,e}function cp(e,t){let r=typeof t=="object"&&t!==null?t.status:t,n=new Error(`webjs: redirect(${e})`);throw n.__webjs=ql,n.url=e,n.status=typeof r=="number"?r:void 0,n}function lp(e){return!!e&&e.__webjs===Il}function up(e){return!!e&&e.__webjs===ql}function fp(e){return!!e&&e.__webjs===Ml}function dp(e){return!!e&&e.__webjs===Dl}var $i=null;function pp(e){$i=e}function hp(e){if(typeof e!="string"||!e||!$i)return e;try{return $i(e)||e}catch{return e}}je();function mp(e,t={}){let r=t.reconnect!==!1,n=0,o=!1,s=null,i=[];function a(){o||(s=new WebSocket(gp(e),t.protocols),s.onopen=c=>{for(n=0;i.length&&s&&s.readyState===WebSocket.OPEN;)s.send(i.shift());t.onOpen?.(c)},s.onmessage=c=>{let l=c.data;if(typeof l=="string")try{l=JSON.parse(l)}catch{}t.onMessage?.(l,c)},s.onerror=c=>{t.onError?.(c)},s.onclose=c=>{if(t.onClose?.(c),!o&&r){let l=Math.min(1e3*2**n++,3e4);setTimeout(a,l)}})}return a(),{send(c){let l=typeof c=="string"||c instanceof ArrayBuffer||ArrayBuffer.isView(c)?c:JSON.stringify(c);s&&s.readyState===WebSocket.OPEN?s.send(l):i.push(l)},close(c,l){o=!0;try{s?.close(c,l)}catch{}},get socket(){return s},get readyState(){return s?.readyState??3}}}function gp(e){if(/^wss?:\/\//i.test(e))return e;let t=typeof location<"u"&&location.protocol==="https:"?"wss:":"ws:",r=typeof location<"u"?location.host:"";return`${t}//${r}${e.startsWith("/")?e:"/"+e}`}Nt();var Fi="application/vnd.webjs+json";async function bp(e,t={}){let r=new Headers(t.headers||{});r.has("accept")||r.set("accept",Fi);let n=t.body;n!=null&&typeof n=="object"&&!(n instanceof FormData)&&!(n instanceof Blob)&&!(n instanceof ArrayBuffer)&&!(n instanceof URLSearchParams)&&!(typeof ReadableStream<"u"&&n instanceof ReadableStream)&&!ArrayBuffer.isView(n)&&(n=await rn(n),r.has("content-type")||r.set("content-type",Fi));let o=await fetch(e,{...t,headers:r,body:n}),s=o.headers.get("content-type")||"",i=await o.text(),a=s.includes(Fi)?i?Ie(i):null:s.includes("application/json")?i?JSON.parse(i):null:i;if(!o.ok){let c=a&&a.error||`richFetch ${e} -> ${o.status}`,l=new Error(c);throw l.status=o.status,l.body=a,l}return a}Nt();Wi();Vi();dn();var Ca=class{constructor(t,r){this.host=t,this.options=r,this.updates=[],this._nextId=0}get value(){let t=this.options.source();if(!this.options.update)return this.updates.length>0?this.updates[this.updates.length-1].payload:t;for(let r of this.updates)t=this.options.update(t,r.payload);return t}add(t,r){let n=`opt-${++this._nextId}`;this.updates.push({id:n,payload:t}),this.host?.requestUpdate?.();let o=()=>{let s=this.updates.findIndex(i=>i.id===n);s!==-1&&(this.updates.splice(s,1),this.host?.requestUpdate?.())};return r&&typeof r.then=="function"&&(typeof r.finally=="function"?r.finally(()=>o()).catch(()=>{}):r.then(()=>o(),()=>o())),o}};async function fh(e,t,r){let n=e.get();e.set(t);let o;try{o=await r()}catch(s){throw e.set(n),s}return o&&o.success===!1&&e.set(n),o}function dh(e,t,r){return e&&typeof e.get=="function"&&typeof e.set=="function"?fh(e,t,r):new Ca(e,t)}Po();qo();var ph="application/vnd.webjs+stream",hh=1,mh=2,gh=3,Xu=new Uint8Array(0);function bh(e,t){let r=t||Xu,n=r.length,o=new Uint8Array(5+n);return o[0]=e&255,o[1]=n>>>24&255,o[2]=n>>>16&255,o[3]=n>>>8&255,o[4]=n&255,n&&o.set(r,5),o}function yh(){let e=Xu;return{push(t){if(t&&t.length){let n=new Uint8Array(e.length+t.length);n.set(e,0),n.set(t,e.length),e=n}let r=[];for(;e.length>=5;){let n=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0;if(e.length<5+o)break;let s=e.slice(5,5+o);r.push({type:n,payload:s}),e=e.slice(5+o)}return r}}}var wh=Symbol.for("webjs.context");function Sh(e){return{__context__:wh,name:e}}var ws=class extends Event{constructor(t,r,n=!1){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=n}},Ra=class{constructor(t,{context:r,initialValue:n}){this._host=t,this._context=r,this._value=n,this._subscriptions=new Set,this._onRequest=o=>{let s=o;if(s.context===this._context)if(o.stopPropagation(),s.subscribe){let i={callback:s.callback},a=()=>{this._subscriptions.delete(i)};this._subscriptions.add(i),s.callback(this._value,a)}else s.callback(this._value)},typeof t.addController=="function"&&t.addController(this)}get value(){return this._value}setValue(t){if(!Object.is(this._value,t)){this._value=t;for(let r of this._subscriptions){let n=()=>{this._subscriptions.delete(r)};r.callback(t,n)}}}hostConnected(){this._host.addEventListener("context-request",this._onRequest)}hostDisconnected(){this._host.removeEventListener("context-request",this._onRequest),this._subscriptions.clear()}},La=class{constructor(t,{context:r,subscribe:n=!0}){this._host=t,this._context=r,this._subscribe=n,this._value=void 0,this._unsubscribe=void 0,typeof t.addController=="function"&&t.addController(this)}get value(){return this._value}hostConnected(){this._dispatchRequest()}hostDisconnected(){this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=void 0)}_dispatchRequest(){let t=new ws(this._context,(r,n)=>{let o=this._value;this._value=r,n&&(this._unsubscribe=n),!Object.is(o,r)&&typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()},this._subscribe);this._host.dispatchEvent(t)}};function _h(){return typeof window<"u"}var We={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},Oa=class{constructor(t,{task:r,args:n,autoRun:o=!0}){this._host=t,this._taskFn=r,this._argsFn=n||(()=>[]),this._autoRun=o,this._status=We.INITIAL,this._value=void 0,this._error=void 0,this._abortController=null,this._prevArgs=null,typeof t.addController=="function"&&t.addController(this)}get status(){return this._status}get value(){return this._value}get error(){return this._error}async run(){this.abort();let t=new AbortController;this._abortController=t;let r=this._argsFn();this._prevArgs=r,this._status=We.PENDING,this._error=void 0,this._requestHostUpdate();try{let n=await this._taskFn(...r,{signal:t.signal});if(t.signal.aborted)return;this._value=n,this._status=We.COMPLETE,this._error=void 0}catch(n){if(t.signal.aborted)return;this._error=n,this._status=We.ERROR,this._value=void 0}finally{this._abortController===t&&(this._abortController=null)}this._requestHostUpdate()}abort(){this._abortController&&(this._abortController.abort(),this._abortController=null)}render(t={}){switch(this._status){case We.INITIAL:return t.initial?.();case We.PENDING:return t.pending?.();case We.COMPLETE:return t.complete?.(this._value);case We.ERROR:return t.error?.(this._error);default:return}}hostUpdate(){if(!this._autoRun||!_h())return;let t=this._argsFn();this._argsEqual(this._prevArgs,t)||this.run()}hostUpdated(){}hostConnected(){}hostDisconnected(){this.abort()}_requestHostUpdate(){typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()}_argsEqual(t,r){if(t===null||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}};pt();export{La as ContextConsumer,Ra as ContextProvider,ws as ContextRequestEvent,M as FORM_ACTION_FIELD,Da as FORM_ACTION_ID_KEY,hh as FRAME_CHUNK,mh as FRAME_END,gh as FRAME_ERROR,P as MARKER,zl as SEED_MISS,ph as STREAM_CONTENT_TYPE,xe as Signal,Hd as Suspense,Oa as Task,We as TaskStatus,sn as WebComponent,Ui as WebjsFrame,Ki as WebjsStream,xi as activeActionSignal,xs as adoptStyles,Sd as allTags,hp as asset,Ef as asyncAppend,Tf as asyncReplace,Wf as batch,xf as cache,Ga as classMap,zf as computed,mp as connectWS,jp as consumeStale,Sh as createContext,yh as createFrameDecoder,Af as createRef,ki as cspNonce,rf as css,Wc as deserialize,Ta as disableClientRouter,Yf as effect,Yn as enableClientRouter,bh as encodeFrame,q as escapeAttr,Wt as escapeText,Lp as fetchMark,ip as forbidden,wf as guard,As as html,Ja as ifDefined,Fr as isAsyncAppend,Br as isAsyncReplace,Cr as isCSS,Zt as isCache,fp as isForbidden,Jt as isGuard,Yt as isKeyed,wd as isLazy,J as isLive,lp as isNotFound,up as isRedirect,Xt as isRef,Gt as isRepeat,Gf as isSignal,Ni as isSuspense,F as isTemplate,$r as isTemplateContent,dp as isUnauthorized,Dr as isUnsafeHTML,Qt as isUntil,er as isWatch,yf as keyed,bf as live,Na as loadFrame,Eo as lookup,yd as lookupModuleUrl,Xi as markStale,ka as navigate,B as noChange,sp as notFound,T as nothing,dh as optimistic,Ie as parse,Zi as parseTagHeader,bd as primeModuleUrl,Jc as prop,cp as redirect,_f as ref,ys as refreshPage,Op as registerKeyTags,Et as render,zi as renderStream,Pl as renderToStream,jl as renderToString,za as repeat,bs as revalidate,bp as richFetch,jo as scanSeeds,Cp as seedStats,Vc as serialize,xo as setActiveActionSignal,pp as setAssetUrlProvider,Bd as setCspNonceProvider,sf as setFormActionResolver,Kf as signal,rn as stringify,Ya as styleMap,vs as stylesToString,tf as svg,Tt as tagOf,Np as takeSeed,Sf as templateContent,ap as unauthorized,Os as unsafeHTML,vf as until,kf as watch};
9
+ </div>`}ct();ft();function Hu(e){let t={},n=/([a-zA-Z_:][\w:.-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,r;for(;(r=n.exec(e))!==null;)t[r[1]]=r[2]??r[3]??r[4]??"";return t}function Bu(e,t){if(!(!e||typeof e.setAttribute!="function"))for(let n in t)e.setAttribute(n,At(t[n]))}function Ia(e){return e.includes("data-wj-host")&&/\sdata-wj-host(?=[\s>=])/i.test(e)?e:`${e.slice(0,-1)} data-wj-host>`}function Uu(e,t,n){if(!t||typeof t.getAttributeNames!="function")return e;let r="";for(let o of t.getAttributeNames()){let s=String(o).toLowerCase();if(n.has(s))continue;let i=t.getAttribute(o);r+=i===""?` ${s}`:` ${s}="${B(String(i))}"`}return r?`${e.slice(0,-1)}${r}>`:e}function Vu(e,t,n){for(let r in t){let o=t[r],s=es(n,r.toLowerCase());if(s===void 0)continue;let{propName:i,def:a}=s;e[i]=Zo(a,At(o),i)}}function Wu(e){let t={};for(let n of Object.keys(e)){if(!n.startsWith("data-webjs-prop-"))continue;let r=ju(n.slice(16));try{t[r]=Se(At(e[n]))}catch{}delete e[n]}return t}ct();function zu(e,t,n){if(!t||typeof t.getAttribute!="function"||typeof t.getAttributeNames!="function")return e;let r=e.search(/[\s>]/),o=e.slice(0,r),s=e.slice(r,-1),i=/([a-zA-Z_:][\w:.-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,a="",c=0,l=!1,u;for(;(u=i.exec(s))!==null;){let d=u[0],p=u[1];if(p.toLowerCase().startsWith("data-webjs-prop-"))continue;let m=At(u[2]??u[3]??u[4]??""),b=t.getAttribute(p);if(b!==m){if(l=!0,b===null){let g=u.index;for(;g>c&&/\s/.test(s[g-1]);)g--;a+=s.slice(c,g)}else a+=s.slice(c,u.index)+(b===""?p:`${p}="${B(String(b))}"`);c=u.index+d.length}}let f=l?`${o}${a}${s.slice(c)}>`:e;return Uu(f,t,n)}var Ju=/\S/;function Yu(e,t,n,r,o){e.ctx&&e.ctx.usedComponents&&e.ctx.usedComponents.add(t);let s=n.shadow===!0;s||ym(e,t,n);let i={kind:"component",tag:t,Cls:n,isShadow:s,instance:null,opening:r,tpl:void 0,pending:null,presentAttrNames:null,error:null,outer:"",partition:!s,depth:0,seg:null,pendingSeg:null,segments:null,closeText:""};try{let a=new n;i.instance=a,a.__ssrTag=t,a.__ssrAncestors=e.ancestors.slice();let c=o?Hu(o):{},l=new Set;for(let d in c)l.add(d.toLowerCase());let u=Wu(c);Bu(a,c),Vu(a,c,n);for(let d in u)a[d]=u[d];typeof a.performServerUpdate=="function"&&a.performServerUpdate();let f=a.render?a.render():"";if(i.presentAttrNames=l,f&&typeof f.then=="function")return i.pending=f,i;i.tpl=f,Zu(i)}catch(a){i.error=a}return i}async function Xu(e){try{e.tpl=await e.pending,Zu(e)}catch(t){e.error=t}e.pending=null}function Zu(e){e.opening=zu(e.opening,e.instance,e.presentAttrNames),e.isShadow||(e.opening=Ia(e.opening))}async function Qu(e,t,n){let{tag:r,Cls:o,isShadow:s}=t;if(t.error===null)try{let i=await gm(e,t,n);return s?`${t.opening}${ef(o)}${tf(o)}${i}</template>${n}${t.closeText}`:Ju.test(i)?`${t.opening}<!--webjs-hydrate-->${i}</${r}>`:`${t.opening}<!--webjs-hydrate-->${n}${t.closeText}`}catch(i){t.error=i}return Sm(e,t)}async function gm(e,t,n){let r=e.owner;e.owner=t.isShadow?null:{tag:t.tag,partition:bm(n,t.segments),consumed:null},e.componentDepth=(e.componentDepth||0)+1;try{return await e.capture(()=>e.value(t.tpl))}finally{e.owner=r,e.componentDepth-=1}}function bm(e,t){let n=new Map;if(!t)return e.length>0&&n.set(null,e),n;let r="",o=0;for(let s of t){r+=e.slice(o,s.start);let i=n.get(s.slot);n.set(s.slot,i===void 0?e.slice(s.start,s.end):i+e.slice(s.start,s.end)),o=s.end}return r+=e.slice(o),r.length>0&&n.set(null,r),n}function ef(e){let t=e.shadowRootOptions;if(!t)return Ku;let n=t.mode==="closed"?"closed":"open";return n==="open"&&!t.delegatesFocus&&!t.clonable&&!t.serializable?Ku:`<template shadowrootmode="${n}"`+(t.delegatesFocus?" shadowrootdelegatesfocus":"")+(t.clonable?" shadowrootclonable":"")+(t.serializable?" shadowrootserializable":"")+">"}var Ku='<template shadowrootmode="open">';function tf(e){return ai(e.elementStyles??To(e.styles))}var Gu=new WeakSet;function ym(e,t,n){!n.styles||Gu.has(n)||!(e.dev===void 0?!ls():e.dev)||(Gu.add(n),console.error(ko(t)))}var wm=Symbol.for("webjs.ssr.componentError");async function Sm(e,t){let{tag:n,Cls:r,instance:o,isShadow:s}=t,i=t.error,a=ja(i);console.error(a?`[webjs] SSR failed for <${n}>: ${a} It was touched in the component's constructor or render(), which run during SSR. Move browser-only work to connectedCallback() or a lifecycle hook (firstUpdated/updated), which SSR never calls; seed first-paint defaults in the constructor only from server-known inputs (attributes / props).`:`[webjs] SSR failed for <${n}>:`,i);let c=globalThis[wm];if(typeof c=="function")try{c(n,i)}catch{}let l=i instanceof Error?i:new Error(String(i)),u="";try{let d;o&&typeof o.renderError=="function"&&(d=o.renderError(l)),d===void 0&&(d=jr(n,l,e.dev)),e.componentDepth=(e.componentDepth||0)+1;try{u=await e.capture(()=>e.value(d))}finally{e.componentDepth-=1}}catch(d){console.error(`[webjs] renderError() for <${n}> also threw:`,d),u=""}let f=t.opening;return s||(f=Ia(f)),s?`${f}${ef(r)}${tf(r)}${u}</template>`:`${f}<!--webjs-hydrate-->${u}</${n}>`}function Da(e){let t=nf(e,"slot");return t?t.value===""||t.value==="default"?null:t.value:null}function nf(e,t){let n=/([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,r;for(;r=n.exec(e);)if(r[1].toLowerCase()===t)return{value:r[2]??r[3]??r[4]??"",start:r.index,end:r.index+r[0].length};return null}function rf(e,t){let{attrsRaw:n,owner:r}=e,o=r.tag?` data-wj-slot-owner="${B(r.tag)}"`:"",s=null,i="";if(Ju.test(n)){let f=nf(n,"name");s=f?f.value:null,i=(f?n.slice(0,f.start)+n.slice(f.end):n).trim()}let a=s==="default"||s===""?null:s,c=r.partition.get(a),l=s!==null?` name="${B(s)}"`:"",u=i?` ${i}`:"";return c!==void 0&&!(r.consumed&&r.consumed.has(a))?((r.consumed??=new Set).add(a),`<slot data-webjs-light data-projection="actual"${o}${l}${u}>${c}</slot>`):`<slot data-webjs-light data-projection="fallback"${o}${l}${u}>${t}</slot>`}async function of(e,t,n){return e.ctx&&t.id?(e.ctx.pending.push({id:t.id,promise:Promise.resolve(wi(n))}),`<webjs-suspense id="${t.id}">${t.fallback}</webjs-suspense>`):`<webjs-suspense>${n}</webjs-suspense>`}var fs=class{constructor(t,n={}){this.ctx=t,this.expand=n.expand!==!1,this.dev=n.dev,this.controller=n.controller||null,this.buf="",this.frames=[],this.ancestors=n.ancestors?n.ancestors.slice():[],this.owner=null,this.inert=[],this.defer=0,this.tagState=null,this.componentDepth=0}flush(){this.controller&&this.buf&&(this.controller.enqueue(this.buf),this.buf="")}emit(t){this.controller?(this.flush(),this.controller.enqueue(t)):this.buf+=t}async capture(t){let n=this.buf,r=this.frames,o=this.tagState,s=this.controller,i=this.inert,a=this.defer,c=this.ancestors.length;this.buf="",this.frames=[],this.tagState=null,this.controller=null,this.inert=i.slice();try{return await t(),await this.finishOpenFrames(),this.buf}finally{this.buf=n,this.frames=r,this.tagState=o,this.controller=s,this.inert=i,this.defer=a,this.ancestors.length=c}}async value(t){if(ae(t)&&(t=us(t,_m)),Me(t)&&(t=t.get()),!(t==null||t===E||t===x)){if(typeof t.then=="function")return this.value(await t);if(typeof t=="string"){this.emit(ln(t));return}if(H(t))return this.template(t);if(Array.isArray(t)){for(let n of t)await this.value(n);return}if(typeof t=="object"&&typeof t[Symbol.iterator]=="function"){for(let n of t)await this.value(n);return}if(lr(t)){let n=String(t.value??"");this.expand?await this.ops(cs(n),Ma):this.emit(n);return}if(Y(t))return this.value(t.value);if(fe(t))return this.value(t.signal.get());if(Ne(t))return this.value(t.value);if(Le(t))return this.value(t.fn());if(ur(t)){let n=t.template,r=String(n?.innerHTML??"");this.expand?await this.ops(cs(r),Ma):this.emit(r);return}if(!pn(t)){if(Oe(t))return this.value(t.value);if(Je(t)){let n=t.args;for(let r of n)if(!r||typeof r.then!="function")return this.value(r);if(n.length>0)try{let r=await Promise.race(n.map(o=>Promise.resolve(o).catch(()=>{})));return this.value(r)}catch{return}return}if(!(fr(t)||dr(t))){if(dn(t)){let n=t;for(let r=0;r<n.items.length;r++)await this.value(n.templateFn(n.items[r],r));return}if(ka(t)){let n=t,r=this.ctx;if(r){let o=`s${r.nextId++}`;this.emit(`<webjs-boundary id="${o}">`),await this.value(n.fallback),this.emit("</webjs-boundary>"),r.pending.push({id:o,promise:Promise.resolve(n.children)})}else await this.value(n.fallback);return}this.emit(ln(String(t)))}}}}async template(t){if(!Array.isArray(t.strings)||!Object.prototype.hasOwnProperty.call(t.strings,"raw"))throw new Error("[webjs] refusing to render a template result whose strings are not a tagged template's (a TemplateResult built from data, not by html``).");await this.ops($u(t.strings),t.values),this.flush()}async ops(t,n){let r=0;for(let o=0;o<t.length;o++){let s=t[o];switch(s.t){case as:this.buf+=s.s;break;case Ca:this.open(s.tag);break;case Na:{let i=this.tagEnd(s);i&&await i;break}case La:{let i=this.close(s);i&&await i;break}case $e:{let i=n[r++];switch(i&&typeof i.then=="function"&&(i=await i),Y(i)&&(i=i.value),s.k){case Oa:this.flush(),typeof i=="string"?this.emit(ln(i)):typeof i=="number"?this.emit(ln(String(i))):await this.value(i);break;case ss:this.buf+=String(i??"");break;case is:await this.attr(s,i);break;case Pa:if(s.quote){this.buf=this.buf.slice(0,-s.prefix.length);let a=s.prefix,c=!1,l=i;for(let u=o;u<t.length;u++){let f=t[u];if(f.t===$e)u!==o&&(l=n[r++],l&&typeof l.then=="function"&&(l=await l),Y(l)&&(l=l.value)),l=await $a(l),ae(l)&&(l=us(l,{type:oe.ATTRIBUTE,name:s.name,tagName:s.tag?.toUpperCase()})),(Me(l)||fe(l))&&(l=qa(l)),cr(l)&&(l=yi(l,s.name)),_e(l,s.name,s.tag),l===E&&(c=!0),a+=l===E||l===x?"":B(String(l??""));else if(f.t===as){let d=f.s.indexOf(s.quote);if(d>=0){c||(this.buf+=a+f.s.slice(0,d+1)),this.buf+=f.s.slice(d+1),o=u;break}a+=f.s}}break}i=await $a(i),ae(i)&&(i=us(i,{type:oe.ATTRIBUTE,name:s.name,tagName:s.tag?.toUpperCase()})),(Me(i)||fe(i))&&(i=qa(i)),_e(i,s.name,s.tag),this.buf+=B(String(i??""));break;default:break}break}}}}open(t){let n=this.frames[this.frames.length-1];n&&n.partition&&n.depth===0&&!this.inert.length&&(n.seg={start:this.buf.length,end:0,slot:null});let r,o;this.expand&&this.defer===0&&!this.inert.length&&(t==="webjs-suspense"||t==="slot"&&this.owner!==null||t.includes("-")&&rs(t))?(r=this.buf,this.buf=""):(t==="form"||t==="button"||t==="input")&&(o=this.buf,this.buf=""),this.tagState={tag:t,start:this.buf.length,outer:r,formOuter:o,actionId:null,submitterTag:null,actionCount:0,propAttrs:null,submitterProps:null,fallback:null}}async attr(t,n){if(t.kind!=="event"&&(n=await $a(n)),ae(n)&&t.kind!=="event"){let a=t.kind==="prop"?oe.PROPERTY:t.kind==="bool"?oe.BOOLEAN_ATTRIBUTE:oe.ATTRIBUTE;n=us(n,{type:a,name:t.name,tagName:t.tag?.toUpperCase()})}if((Me(n)||fe(n))&&(t.kind==="plain"||t.kind==="bool")&&(n=qa(n)),cr(n)){if(t.kind!=="plain")throw new Error("classMap/styleMap require an attribute binding.");n=yi(n,t.name)}if(n===x)return;n===E&&t.kind==="prop"&&(n=void 0);let r=this.tagState,o=t.name,s=t.tag;if(t.kind==="event"){if(this.dev&&this.componentDepth===0)throw new Error(af(!0,o,s));return}if(t.kind==="prop"){if(s==="webjs-suspense"&&o==="fallback"){this.expand&&this.ctx&&r&&(r.fallback=await this.capture(()=>this.value(n)));return}if(!s.includes("-")){if(this.dev&&this.componentDepth===0&&!xm(o,s))throw new Error(af(!1,o,s));Co(n,o,s),r&&Am(r,o,s);return}if(!this.expand||n===void 0)return;try{let a=await Zn(n);this.buf+=`data-webjs-prop-${Iu(o)}="${B(a)}"`}catch(a){console.warn(`[webjs] property binding .${o} has an unserializable value during SSR. Dropping. The browser will see the property as undefined. Detail: ${a&&a.message}`)}return}if(t.kind==="bool"){_e(n,o,s),n&&n!==E&&(this.buf+=`${o}=""`);return}if(un(n,o,s)){if(r&&sf(r,o,s),s==="form")r&&(r.actionId=fn(await Ro(n),s,n)),this.buf=this.buf.replace(/\s+$/,"");else{or(!!r&&r.submitterTag!=null,s);let a=ir(r?this.buf.slice(r.start):"");a.has("name")&&tr(a.get("name")||"",s,!1),a.has("value")&&nr(s),a.has("form")&&rr(s);let c=fn(await Ro(n),s,n);r&&(r.submitterTag=s),this.buf+=`name="${U}" value="${B(c)}"`}return}r&&sf(r,o,s),_e(n,o,s);let i=Pt(o,n);i!==null&&(this.buf+=`${t.lead}"${B(i)}"`)}tagEnd(t){let n=this.tagState;if(this.tagState=null,n&&n.fallback!=null&&this.defer>0&&n.tag==="webjs-suspense"&&(this.buf+=` data-webjs-fallback="${B(n.fallback)}"`),this.buf+=t.close,!n)return;let r=n.tag;if((n.actionId!=null||n.submitterTag!=null)&&this.closeBoundFormTag(n),n.formOuter!==void 0&&(n.start=n.formOuter.length,this.buf=n.formOuter+this.buf),this.inert.length)return;let o=!!t.selfClose;os(r)&&!o&&this.inert.push(r);let s=this.frames[this.frames.length-1];if(n.outer!==void 0)return r==="webjs-suspense"?this.openSuspense(t,n,s,o):r==="slot"?this.openSlot(t,n,s,o):this.openComponent(t,n,s,o,rs(r));if(!o&&!Pr(r)){for(let i=this.frames.length-1;i>=0;i--)if(this.frames[i].tag===r){this.frames[i].nested=(this.frames[i].nested||0)+1;break}}if(s&&s.partition&&s.seg&&s.depth===0){let i=this.buf.slice(n.start);s.seg.slot=Da(i.slice(1+r.length,i.length-t.close.length)),o||Pr(r)?this.endSeg(s):s.depth+=1}else s&&s.partition&&!o&&!Pr(r)&&(s.depth+=1)}async openSuspense(t,n,r,o){this.closeSeg(r,n);let s=n.fallback;if(s===null){let a=/data-webjs-fallback="([^"]*)"/i.exec(this.buf);if(a){let c=At(a[1]);s=await this.capture(()=>this.ops(cs(c),Ma))}}let i={kind:"suspense",tag:n.tag,outer:n.outer,fallback:s||"",id:null};if(this.ctx&&(i.id=`s${this.ctx.nextId++}`),this.buf="",this.ctx&&(this.defer+=1),o){await this.finish(i);return}this.frames.push(i)}async openSlot(t,n,r,o){let s=n.tag;this.closeSeg(r,n);let i=this.buf,a=i.slice(1+s.length,i.length-t.close.length),c={kind:"slot",tag:s,outer:n.outer,attrsRaw:a,owner:this.owner};if(this.buf="",o){await this.finish(c);return}this.frames.push(c)}async openComponent(t,n,r,o,s){let i=n.tag;this.closeSeg(r,n);let a=this.buf,c=t.selfClose?a.slice(0,a.length-t.close.length)+">":a,l=a.slice(1+i.length,a.length-t.close.length);this.buf="";let u=Yu(this,i,s,c,l);if(u.pending&&await Xu(u),u.outer=n.outer,u.instance&&(this.ancestors.push(u.instance),u.pushedAncestor=!0),o){await this.finish(u);return}this.frames.push(u)}closeSeg(t,n){if(!(t&&t.partition&&t.seg&&t.depth===0))return;let r=this.buf;t.seg.slot=Da(r.slice(1+n.tag.length).replace(/\/?>$/,"")),t.pendingSeg=t.seg,t.seg=null}endSeg(t){let n=t.seg;t.seg=null,!(!n||n.slot===null)&&(n.end=this.buf.length,(t.segments??=[]).push(n))}closeBoundFormTag(t){let n=t.actionCount>1;if(t.actionId!=null){No({duplicateAction:n,propAttrs:t.propAttrs||[]});let r=tl(this.buf.slice(t.start),t.actionId);this.buf=this.buf.slice(0,t.start)+r.tag+r.hidden}t.submitterTag!=null&&(this.buf=this.buf.slice(0,t.start)+rl(this.buf.slice(t.start),t.submitterTag,{duplicateAction:n,propAttrs:t.submitterProps||[]}))}close(t){let n=t.tag;if(this.inert.length){if(this.inert[this.inert.length-1]!==n){this.buf+=t.text;return}this.inert.pop(),this.buf+=t.text,this.ordinaryClose();return}for(let r=this.frames.length-1;r>=0;r--)if(this.frames[r].tag===n){if(this.frames[r].nested>0){this.frames[r].nested-=1;break}return this.closeFrames(r,t.text)}this.buf+=t.text,this.ordinaryClose()}async closeFrames(t,n){for(;this.frames.length-1>t;)await this.finish(this.frames.pop());let r=this.frames.pop();r.closeText=n,await this.finish(r)}ordinaryClose(){let t=this.frames[this.frames.length-1];t&&t.partition&&(t.depth>0&&(t.depth-=1),t.depth===0&&t.seg&&this.endSeg(t))}async finishOpenFrames(){for(;this.frames.length;)await this.finish(this.frames.pop())}async finish(t){t.kind==="suspense"&&this.ctx&&t.id&&(this.defer-=1);let n=this.buf;this.buf=t.outer;let r;t.kind==="component"?(t.seg&&this.endSegIn(t,n),r=await Qu(this,t,n),t.pushedAncestor&&this.ancestors.pop()):t.kind==="slot"?r=rf(t,n):r=await of(this,t,n),this.buf+=r;let o=this.frames[this.frames.length-1];o&&o.partition&&o.pendingSeg&&(o.seg=o.pendingSeg,o.pendingSeg=null,this.endSeg(o))}endSegIn(t,n){let r=t.seg;t.seg=null,r.slot!==null&&(r.end=n.length,(t.segments??=[]).push(r))}},Ma=Object.freeze([]);function qa(e){return fe(e)?e.signal.get():e.get()}var _m=Object.freeze({type:oe.CHILD});function us(e,t){for(let n=0;ae(e);n++){if(n>100)throw new Error("[webjs] a custom directive kept returning directives (more than 100 levels deep).");e=new e.ctor(t).render(...e.values)}return e}function Am(e,t,n){let r=String(n).toLowerCase();if(r==="button"||r==="input"){sr(t)&&(e.submitterProps??=[]).push(String(t));return}if(r!=="form")return;let o=String(t).toLowerCase();o==="encoding"&&(o="enctype"),(o==="method"||o==="enctype")&&(e.propAttrs??=[]).push(String(t))}function sf(e,t,n){let r=String(n).toLowerCase(),o=String(t).toLowerCase();(r==="form"&&o==="action"||(r==="button"||r==="input")&&o==="formaction")&&(e.actionCount+=1)}async function Ir(e,t,n){let r=new fs(t,n);return await r.value(e),await r.finishOpenFrames(),r.buf}async function cf(e,t,n){let r=new fs(t,{expand:!1,controller:n});await r.value(e),r.flush()}function xm(e,t){return/^(?:action|method|enctype|encoding|formaction|formmethod|formenctype)$/i.test(e)&&/^(?:form|button|input)$/.test(t)}function af(e,t,n){return`webjs: ${e?`an \`@${t}\` event listener`:`a \`.${t}\` property binding`} on <${n}> in a page or layout template. Pages and layouts render only on the server and never hydrate, so it is dropped and never runs. Move the interactive markup into a WebComponent and render its tag from the page (its render() hydrates in the browser)`+(e?"":", or write a plain attribute (`"+t.toLowerCase()+"=${value}`) when the value only needs to reach the HTML")+". This check runs in dev only. See https://webjs.dev/docs/troubleshooting#binding-in-page-template"}async function $a(e){for(let t=0;t<8;t++){let n=e;if(Le(n))e=n.fn();else if(Ne(n)||Oe(n))e=n.value;else if(Y(n))e=n.value;else if(Je(n)){let r=n.args.find(o=>!o||typeof o.then!="function");r!==void 0||n.args.some(o=>!o||typeof o.then!="function")?e=r:n.args.length?e=await Promise.race(n.args.map(o=>Promise.resolve(o).catch(()=>{}))):e=void 0}else return e}return e}function lf(e,t,n){return cf(e,t,n)}async function uf(e,t={ssr:!0}){let n=t&&t.suspenseCtx,r=t&&t.dev!==void 0?t.dev:n&&n.dev;return n&&n.dev===void 0&&r!==void 0&&(n.dev=r),Ir(e,n,{expand:!(t&&t.ssr===!1),dev:r})}function ff(e,t={ssr:!0}){let n=t&&t.suspenseCtx,r=t&&t.dev!==void 0?t.dev:n&&n.dev;return n&&n.dev===void 0&&r!==void 0&&(n.dev=r),new ReadableStream({async start(o){try{if(t&&t.ssr===!1)await lf(e,n,o);else{let s=await Ir(e,n,{expand:!0,dev:r});o.enqueue(s)}n&&n.pending.length&&await vm(n,o,r),o.close()}catch(s){o.error(s)}}})}async function vm(e,t,n){let r=Ta(),o=r?` nonce="${B(r)}"`:"";for(;e.pending.length;){let s=e.pending.splice(0);await Promise.all(s.map(async({id:i,promise:a})=>{try{let c=await a,l=await Ir(c,e,{expand:!0,dev:n});t.enqueue(`<template data-webjs-resolve="${i}">${l}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(c){console.error(`[webjs] Suspense boundary "${i}" rejected:`,c);try{let l=c instanceof Error?c:new Error(String(c)),u=await Ir(jr("webjs-suspense",l,n),e,{expand:!0,dev:n});t.enqueue(`<template data-webjs-resolve="${i}">${u}</template><script${o}>(function(){var t=document.currentScript.previousElementSibling;var b=document.getElementById("${i}");if(b&&t){b.replaceWith(t.content.cloneNode(true));t.remove()}document.currentScript.remove()})()<\/script>`)}catch(l){console.error(`[webjs] Suspense boundary "${i}" error render also threw:`,l)}}}))}}ct();var df=Symbol.for("webjs.notFound"),pf=Symbol.for("webjs.redirect"),hf=Symbol.for("webjs.forbidden"),mf=Symbol.for("webjs.unauthorized");function Em(){let e=new Error("webjs: notFound()");throw e.__webjs=df,e}function Tm(){let e=new Error("webjs: forbidden()");throw e.__webjs=hf,e}function km(){let e=new Error("webjs: unauthorized()");throw e.__webjs=mf,e}function gf(e,t){let n,r;t==="push"||t==="replace"?r=t:typeof t=="object"&&t!==null?(n=t.status,(t.type==="push"||t.type==="replace")&&(r=t.type)):typeof t=="number"&&(n=t);let o=new Error(`webjs: redirect(${e})`);throw o.__webjs=pf,o.url=e,o.status=typeof n=="number"?n:void 0,o.redirectType=r,o}function Rm(e,t){return gf(e,{status:308,type:t})}function Cm(e){return!!e&&e.__webjs===df}function Fa(e){return!!e&&e.__webjs===pf}function Nm(e){return!!e&&e.__webjs===hf}function Lm(e){return!!e&&e.__webjs===mf}var Ha=null;function Om(e){Ha=e}function Pm(e){if(typeof e!="string"||!e||!Ha)return e;try{return Ha(e)||e}catch{return e}}Ge();function jm(e,t={}){let n=t.reconnect!==!1,r=0,o=!1,s=null,i=[];function a(){o||(s=new WebSocket(Im(e),t.protocols),s.onopen=c=>{for(r=0;i.length&&s&&s.readyState===WebSocket.OPEN;)s.send(i.shift());t.onOpen?.(c)},s.onmessage=c=>{let l=c.data;if(typeof l=="string")try{l=JSON.parse(l)}catch{}t.onMessage?.(l,c)},s.onerror=c=>{t.onError?.(c)},s.onclose=c=>{if(t.onClose?.(c),!o&&n){let l=Math.min(1e3*2**r++,3e4);setTimeout(a,l)}})}return a(),{send(c){let l=typeof c=="string"||c instanceof ArrayBuffer||ArrayBuffer.isView(c)?c:JSON.stringify(c);s&&s.readyState===WebSocket.OPEN?s.send(l):i.push(l)},close(c,l){o=!0;try{s?.close(c,l)}catch{}},get socket(){return s},get readyState(){return s?.readyState??3}}}function Im(e){if(/^wss?:\/\//i.test(e))return e;let t=typeof location<"u"&&location.protocol==="https:"?"wss:":"ws:",n=typeof location<"u"?location.host:"";return`${t}//${n}${e.startsWith("/")?e:"/"+e}`}ft();var Ba="application/vnd.webjs+json";async function Dm(e,t={}){let n=new Headers(t.headers||{});n.has("accept")||n.set("accept",Ba);let r=t.body;r!=null&&typeof r=="object"&&!(r instanceof FormData)&&!(r instanceof Blob)&&!(r instanceof ArrayBuffer)&&!(r instanceof URLSearchParams)&&!(typeof ReadableStream<"u"&&r instanceof ReadableStream)&&!ArrayBuffer.isView(r)&&(r=await Zn(r),n.has("content-type")||n.set("content-type",Ba));let o=await fetch(e,{...t,headers:n,body:r}),s=o.headers.get("content-type")||"",i=await o.text(),a=s.includes(Ba)?i?Se(i):null:s.includes("application/json")?i?JSON.parse(i):null:i;if(!o.ok){let c=a&&a.error||`richFetch ${e} -> ${o.status}`,l=new Error(c);throw l.status=o.status,l.body=a,l}return a}ft();Ka();za();qr();var Nc=class{constructor(t,n){this.host=t,this.options=n,this.updates=[],this._nextId=0}get value(){let t=this.options.source();if(!this.options.update)return this.updates.length>0?this.updates[this.updates.length-1].payload:t;for(let n of this.updates)t=this.options.update(t,n.payload);return t}add(t,n){let r=`opt-${++this._nextId}`;this.updates.push({id:r,payload:t}),this.host?.requestUpdate?.();let o=()=>{let s=this.updates.findIndex(i=>i.id===r);s!==-1&&(this.updates.splice(s,1),this.host?.requestUpdate?.())};return n&&typeof n.then=="function"&&(typeof n.finally=="function"?n.finally(()=>o()).catch(()=>{}):n.then(()=>o(),()=>o())),o}};async function jg(e,t,n){let r=e.get();e.set(t);let o;try{o=await n()}catch(s){throw e.set(r),s}return o&&o.success===!1&&e.set(r),o}function Ig(e,t,n){return e&&typeof e.get=="function"&&typeof e.set=="function"?jg(e,t,n):new Nc(e,t)}hs();gs();Jt();Ec();async function Dg(e){let t=Ys(e);if(!t.length||typeof location>"u")return!1;let n=!1,r=!1;for(let o of t)o.layout||o.path.includes("[")?We():We(o.path),wd(o,location.pathname)&&(n=!0,o.layout&&(r=!0));if(!n)return!1;try{return await Ao(r?"shell":"page")}catch{return!1}}var jd=!1;function Mg(e){let t=e.lastIndexOf(";"),n=t===-1?e:e.slice(0,t),r=t!==-1&&e.slice(t+1)==="replace",o=new Error(`webjs: redirect(${n})`);if(o.__webjs=Symbol.for("webjs.redirect"),o.url=n,typeof location<"u"){!jd&&typeof addEventListener=="function"&&(jd=!0,addEventListener("unhandledrejection",i=>{Fa(i.reason)&&i.preventDefault()}));let s;try{s=new URL(n,location.href)}catch{s=null}s&&s.origin===location.origin?Promise.resolve(en(s.pathname+s.search+s.hash,{replace:r})).catch(()=>location.assign(s.href)):s&&(r?location.replace(s.href):location.assign(s.href))}return Promise.reject(o)}var qg="application/vnd.webjs+stream",$g=1,Fg=2,Hg=3,Id=new Uint8Array(0);function Bg(e,t){let n=t||Id,r=n.length,o=new Uint8Array(5+r);return o[0]=e&255,o[1]=r>>>24&255,o[2]=r>>>16&255,o[3]=r>>>8&255,o[4]=r&255,r&&o.set(n,5),o}function Ug(){let e=Id;return{push(t){if(t&&t.length){let r=new Uint8Array(e.length+t.length);r.set(e,0),r.set(t,e.length),e=r}let n=[];for(;e.length>=5;){let r=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0;if(e.length<5+o)break;let s=e.slice(5,5+o);n.push({type:r,payload:s}),e=e.slice(5+o)}return n}}}function Vg(e){return e}var zn=class extends Event{constructor(t,n,r,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=n,this.callback=r,this.subscribe=o??!1}},Qs=class extends Event{constructor(t,n){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=n}},Lc=class{constructor(t){this.subscriptions=new Map,this._value=void 0,t!==void 0&&(this.value=t)}get value(){return this._value}set value(t){this.setValue(t)}setValue(t,n=!1){let r=n||!Object.is(t,this._value);this._value=t,r&&this.updateObservers()}updateObservers=()=>{for(let[t,{disposer:n}]of this.subscriptions)t(this._value,n)};addCallback(t,n,r){if(!r){t(this.value);return}this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:n});let{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}},Oc=class extends Lc{constructor(t,n,r){let o=n!=null&&n.context!==void 0;super(o?n.initialValue:r),this.host=t,this.context=o?n.context:n,this.attachListeners(),this.host.addController?.(this)}onContextRequest=t=>{let n=t;if(n.context!==this.context)return;let r=n.contextTarget??n.composedPath()[0];r!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,r,n.subscribe))};onProviderRequest=t=>{let n=t;if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:i}]of this.subscriptions)o.has(s)||(o.add(s),i.dispatchEvent(new zn(this.context,i,s,!0)));n.stopPropagation()};attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Qs(this.context,this.host))}},Pc=class{constructor(t,n,r,o){this.host=t,this.provided=!1,this.value=void 0,this.unsubscribe=void 0,n!=null&&n.context!==void 0?(this.context=n.context,this.callback=n.callback,this.subscribe=n.subscribe??!1):(this.context=n,this.callback=r,this.subscribe=o??!1),this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new zn(this.context,this.host,this._callback,this.subscribe))}_callback=(t,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),(!this.provided||this.subscribe)&&(this.provided=!0,this.callback&&this.callback(t,n)),this.unsubscribe=n}},jc=class{constructor(){this.pendingContextRequests=new Map}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}onContextProvider=t=>{let n=t,r=this.pendingContextRequests.get(n.context);if(r!==void 0){this.pendingContextRequests.delete(n.context);for(let{elementRef:o,callbackRef:s}of r.requests){let i=o.deref(),a=s.deref();i===void 0||a===void 0||i.dispatchEvent(new zn(n.context,i,a,!0))}}};onContextRequest=t=>{let n=t;if(n.subscribe!==!0)return;let r=n.contextTarget??n.composedPath()[0],o=n.callback,s=this.pendingContextRequests.get(n.context);s===void 0&&this.pendingContextRequests.set(n.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),!i.has(o)&&(i.add(o),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(o)}))}};var te={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},Dd=Symbol("webjs.task.initialState");function Wg(){return typeof window<"u"}var Md=(e,t)=>e===t||e.length===t.length&&e.every((n,r)=>Object.is(n,t[r])),ei=(e,t)=>{if(Object.is(e,t))return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){let n=e,r=t;if(n.constructor!==r.constructor)return!1;if(Array.isArray(n))return n.length!==r.length?!1:n.every((s,i)=>ei(s,r[i]));if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(n instanceof Map&&r instanceof Map){if(n.size!==r.size)return!1;for(let[s,i]of n.entries())if(ei(i,r.get(s))===!1||i===void 0&&r.has(s)===!1)return!1;return!0}if(n instanceof Set&&r instanceof Set){if(n.size!==r.size)return!1;for(let s of n.keys())if(r.has(s)===!1)return!1;return!0}if(n instanceof RegExp)return n.source===r.source&&n.flags===r.flags;let o=Object.keys(n);if(o.length!==Object.keys(r).length)return!1;for(let s of o)if(!Object.hasOwn(r,s)||!ei(n[s],r[s]))return!1;return!0}return!1},zg=(e,t)=>e===t||e.length===t.length&&e.every((n,r)=>ei(n,t[r])),Ic=class{constructor(t,n,r){this._host=t,t.addController(this);let o=typeof n=="object"&&n!==null?n:{task:n,args:r};if(typeof o.task!="function")throw new TypeError("[webjs] new Task(host, { task, args }) needs a task function. Pass a config object or new Task(host, taskFn, argsFn).");this._task=o.task,this._argsFn=o.args,this._argsEqual=o.argsEqual??Md,this._onComplete=o.onComplete,this._onError=o.onError,this.autoRun=o.autoRun??!0,this._status=te.INITIAL,this._value=void 0,this._error=void 0,this._previousArgs=void 0,this._callId=0,this._abortController=void 0,this._taskComplete=void 0,this._resolveTaskComplete=void 0,this._rejectTaskComplete=void 0,"initialValue"in o&&(this._value=o.initialValue,this._status=te.COMPLETE,this._previousArgs=this._getArgs())}get taskComplete(){return this._taskComplete?this._taskComplete:(this._status===te.PENDING?this._taskComplete=new Promise((t,n)=>{this._resolveTaskComplete=t,this._rejectTaskComplete=n}):this._status===te.ERROR?this._taskComplete=Promise.reject(this._error):this._taskComplete=Promise.resolve(this._value),this._taskComplete)}get status(){return this._status}get value(){return this._value}get error(){return this._error}hostUpdate(){this.autoRun===!0&&this._performTask()}hostUpdated(){this.autoRun==="afterUpdate"&&this._performTask()}_getArgs(){if(this._argsFn===void 0)return;let t=this._argsFn();if(!Array.isArray(t))throw new Error("[webjs] The Task args function must return an array.");return t}async _performTask(){if(!Wg())return;let t=this._getArgs(),n=this._previousArgs;this._previousArgs=t,t!==n&&t!==void 0&&(n===void 0||!this._argsEqual(n,t))&&await this.run(t)}async run(t){t??=this._getArgs(),this._previousArgs=t,this._status===te.PENDING?this._abortController?.abort():(this._taskComplete=void 0,this._resolveTaskComplete=void 0,this._rejectTaskComplete=void 0),this._status=te.PENDING;let n,r;this.autoRun==="afterUpdate"?queueMicrotask(()=>this._host.requestUpdate()):this._host.requestUpdate();let o=++this._callId;this._abortController=new AbortController;let s=!1;try{n=await this._task(t,{signal:this._abortController.signal})}catch(i){s=!0,r=i}if(this._callId===o){if(n===Dd)this._status=te.INITIAL;else{if(s===!1){try{this._onComplete?.(n)}catch{}this._status=te.COMPLETE,this._resolveTaskComplete?.(n)}else{try{this._onError?.(r)}catch{}this._status=te.ERROR,this._rejectTaskComplete?.(r)}this._value=n,this._error=r}this._host.requestUpdate()}}abort(t){this._status===te.PENDING&&this._abortController?.abort(t)}render(t){switch(this._status){case te.INITIAL:return t.initial?.();case te.PENDING:return t.pending?.();case te.COMPLETE:return t.complete?.(this._value);case te.ERROR:return t.error?.(this._error);default:throw new Error(`[webjs] Unexpected Task status: ${this._status}`)}}};ze();export{Gn as CSSResult,Pc as ContextConsumer,Oc as ContextProvider,Qs as ContextProviderEvent,zn as ContextRequestEvent,jc as ContextRoot,U as FORM_ACTION_FIELD,fi as FORM_ACTION_ID_KEY,$g as FRAME_CHUNK,Fg as FRAME_END,Hg as FRAME_ERROR,P as MARKER,Ef as SEED_MISS,qg as STREAM_CONTENT_TYPE,xe as Signal,ch as SignalWatcher,om as Suspense,Ic as Task,te as TaskStatus,Or as WebComponent,Wa as WebjsFrame,Ga as WebjsStream,wa as activeActionSignal,ii as adoptStyles,Vh as allTags,Dg as applyActionRefresh,Pm as asset,Lp as asyncAppend,Op as asyncReplace,oh as batch,di as bindActionId,Cp as cache,jp as choose,cl as classMap,ih as computed,jm as connectWS,Zm as consumeStale,Vg as createContext,Ug as createFrameDecoder,Rp as createRef,Ta as cspNonce,Ud as css,zg as deepArrayEquals,tm as defaultConverter,Kc as deserialize,Rc as disableClientRouter,ah as effect,_o as enableClientRouter,Bg as encodeFrame,B as escapeAttr,ln as escapeText,Ym as fetchMark,Mg as followActionRedirect,Tm as forbidden,Ep as guard,Kn as html,ul as ifDefined,Dd as initialState,Qc as installActionBind,fr as isAsyncAppend,dr as isAsyncReplace,Jn as isCSS,Oe as isCache,Nm as isForbidden,Le as isGuard,Ne as isKeyed,Uh as isLazy,Y as isLive,Cm as isNotFound,Fa as isRedirect,pn as isRef,dn as isRepeat,Bd as isServer,Me as isSignal,ka as isSuspense,H as isTemplate,ur as isTemplateContent,Lm as isUnauthorized,lr as isUnsafeHTML,Je as isUntil,fe as isWatch,Dp as join,vp as keyed,xp as live,Cc as loadFrame,rs as lookup,Bh as lookupModuleUrl,Ip as map,Qa as markStale,Hd as mathml,en as navigate,x as noChange,nm as notEqual,Em as notFound,E as nothing,Ig as optimistic,Se as parse,ec as parseTagHeader,Rm as permanentRedirect,Hh as primeModuleUrl,_u as prop,Mp as range,gf as redirect,kp as ref,Ao as refreshPage,Xm as registerKeyTags,Wt as render,Ja as renderStream,ff as renderToStream,uf as renderToString,al as repeat,We as revalidate,Dm as richFetch,ps as scanSeeds,Gm as seedStats,zc as serialize,ts as setActiveActionSignal,Om as setAssetUrlProvider,rm as setCspNonceProvider,cp as setFormActionResolver,Md as shallowArrayEquals,sh as signal,ip as splitActionId,Zn as stringify,ci as stringifySync,ll as styleMap,ai as stylesToString,Fd as svg,Ze as tagOf,Km as takeSeed,Tp as templateContent,km as unauthorized,zd as unsafeCSS,wi as unsafeHTML,Ap as unsafeMathML,_p as unsafeSVG,Np as until,pl as watch,Pp as when};
9
10
  //# sourceMappingURL=webjs-core.js.map