@webjsdev/core 0.7.50 → 0.7.53

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 (64) hide show
  1. package/dist/webjs-core-browser.js +5 -5
  2. package/dist/webjs-core-browser.js.map +3 -3
  3. package/dist/webjs-core-testing.js +20 -20
  4. package/dist/webjs-core-testing.js.map +3 -3
  5. package/dist/webjs-core.js +7 -7
  6. package/dist/webjs-core.js.map +3 -3
  7. package/index-browser.js +1 -1
  8. package/index.d.ts +3 -3
  9. package/index.js +1 -1
  10. package/package.json +1 -1
  11. package/src/component/lifecycle.js +1481 -0
  12. package/src/component/reactive.js +171 -0
  13. package/src/component/server-element.js +248 -0
  14. package/src/component.js +2 -1896
  15. package/src/css.d.ts +9 -0
  16. package/src/escape.d.ts +2 -0
  17. package/src/html.d.ts +9 -0
  18. package/src/render-client/parts.js +2039 -0
  19. package/src/render-client/reconciler.js +388 -0
  20. package/src/render-client/template-compiler.js +525 -0
  21. package/src/render-client.js +1 -2938
  22. package/src/render-server/attrs.js +160 -0
  23. package/src/render-server/dsd.js +445 -0
  24. package/src/render-server/html-scan.js +402 -0
  25. package/src/render-server/slots.js +213 -0
  26. package/src/render-server/stream.js +163 -0
  27. package/src/render-server/template-renderer.js +938 -0
  28. package/src/render-server/text.js +163 -0
  29. package/src/render-server.js +6 -2405
  30. package/src/repeat.d.ts +15 -0
  31. package/src/rich-fetch.d.ts +4 -0
  32. package/src/router-client/anchors.js +44 -0
  33. package/src/router-client/boundaries.js +221 -0
  34. package/src/router-client/constants.js +206 -0
  35. package/src/router-client/diagnostics.js +377 -0
  36. package/src/router-client/dom-differ.js +709 -0
  37. package/src/router-client/dom-parse.js +150 -0
  38. package/src/router-client/events.js +182 -0
  39. package/src/router-client/fetch-apply.js +432 -0
  40. package/src/router-client/form-encoder.js +135 -0
  41. package/src/router-client/frames.js +329 -0
  42. package/src/router-client/head-merge.js +344 -0
  43. package/src/router-client/nav-error.js +105 -0
  44. package/src/router-client/navigator.js +952 -0
  45. package/src/router-client/prefetch.js +831 -0
  46. package/src/router-client/scroll.js +308 -0
  47. package/src/router-client/snapshot-cache.js +113 -0
  48. package/src/router-client/state.js +155 -0
  49. package/src/router-client/stream.js +206 -0
  50. package/src/router-client/swap.js +454 -0
  51. package/src/router-client/upgrade.js +261 -0
  52. package/src/router-client/view-transition.js +223 -0
  53. package/src/router-client.d.ts +11 -2
  54. package/src/router-client.js +78 -5345
  55. package/src/slot/assignment.js +304 -0
  56. package/src/slot/interception.js +558 -0
  57. package/src/slot/polyfills.js +365 -0
  58. package/src/slot/project.js +432 -0
  59. package/src/slot/sensors.js +303 -0
  60. package/src/slot/state.js +245 -0
  61. package/src/slot/symbols.js +85 -0
  62. package/src/slot.js +7 -2199
  63. package/src/suspense.d.ts +9 -0
  64. package/src/websocket-client.d.ts +22 -0
@@ -1,10 +1,10 @@
1
- var ga=Object.defineProperty;var J=(e,t)=>()=>(e&&(t=e(e=0)),t);var Go=(e,t)=>{for(var n in t)ga(e,n,{get:t[n],enumerable:!0})};function Nt(e){return Object.prototype.hasOwnProperty.call(ze,e)}var ze,on=J(()=>{ze=Object.freeze({"@":"event",".":"prop","?":"bool"})});function sn(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function U(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}var Tt=J(()=>{});function ya(e){dr=e}function an(e){if(typeof e!="function")return null;let t=e[Jo];return typeof t=="string"&&t?t:null}async function Lt(e){let t=an(e);if(t)return t;if(typeof e!="function"||!dr)return null;try{let n=await dr(e);return typeof n=="string"&&n?n:null}catch{return null}}function We(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 Ke(e,t,n=!0){if(!e||e===L&&n)return;let r=e===L?'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 pr(e,t){let n=String(e||"").toLowerCase(),r=t==null?null:String(t).toLowerCase();if(wa(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 wa(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 Ge(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 hr(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 Ye(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 Je(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 mr(e,t){let r=(e||[]).filter(o=>Ze(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 Ze(e){let t=String(e).toLowerCase();return t==="name"||t==="value"||t==="formaction"||t==="formmethod"||t==="formenctype"}function Sa(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&&!Zo.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 Z(e,t,n){if(cn(e)&&Ca(t))throw new Error(Na(t,n))}function jt(e,t,n){ka(t,n)&&Z(e,t,n)}function ge(e,t){if(e)return e;let n=t==="button"||t==="input"?"formaction=":"action=";throw new Error(`[webjs] the function in ${n} 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 Aa(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&&!Zo.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 gr(e,t){let n=Xe(e);qt({staticAction:n.has("action")});let r=Xo(n.has("method")?n.get("method"):H,n.has("enctype")?n.get("enctype"):H),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:_a(t)}}function qt(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 Xo(e,t){let n=e!==H&&e!=null,r=t!==H&&t!=null;return Aa(n?e:null,r?t:null),{method:n?null:"post",enctype:r?null:"multipart/form-data"}}function br(e,t,n){let r=t!==H&&t!=null,o=n!==H&&n!=null;return Sa(e,r?t:null,o?n:null),{formMethod:r?null:"post",formEnctype:o?null:"multipart/form-data"}}function yr(e,t,n){Ea(e,t,n);let r=Xe(e),o=br(t,r.has("formmethod")?r.get("formmethod"):H,r.has("formenctype")?r.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 _a(e){return`<input type="hidden" name="${L}" value="${U(e)}">`}function Qo(e,t,n,r,o){let s=typeof t=="function"?an(t):null;if(!s){typeof t=="function"&&ge(null,e.localName),xa(e,n,r,o.propAttrs);return}qt(o);let i=Xo(n,r);e.removeAttribute("action"),Rt(e,"method",n,i.method),Rt(e,"enctype",r,i.enctype),va(e,s)}function Rt(e,t,n,r){if(r!==null){e.setAttribute(t,r);return}n!==H&&e.getAttribute(t)!==n&&e.setAttribute(t,n)}function va(e,t){let n=e.firstElementChild,r=n&&n.localName==="input"&&n.getAttribute("name")===L?n:null;if(!r){for(let o of e.children)if(o.localName==="input"&&o.getAttribute("name")===L){r=o;break}}r||(r=e.ownerDocument.createElement("input"),r.setAttribute("type","hidden"),r.setAttribute("name",L),e.insertBefore(r,e.firstChild)),r.getAttribute("value")!==t&&r.setAttribute("value",t)}function Ea(e,t,n){let r=Xe(e),o=r.has("type")?r.get("type"):null;mr(n.propAttrs,t),Je(!!n.duplicateAction,t),r.has("formaction")&&hr(t),Yo(e,"value")>1&&Ge(t),Yo(e,"name")>1&&Ke(r.get("name")||L,t,!1),pr(t,o),r.has("form")&&Ye(t)}function xa(e,t,n,r){let o=e.firstElementChild;if(o&&o.localName==="input"&&o.getAttribute("name")===L)o.remove();else for(let i of e.children)if(i.localName==="input"&&i.getAttribute("name")===L){i.remove();break}let s=i=>(r||[]).some(a=>{let c=String(a).toLowerCase();return c===i||i==="enctype"&&c==="encoding"});t===H&&!s("method")&&e.removeAttribute("method"),n===H&&!s("enctype")&&e.removeAttribute("enctype")}function es(e,t,n,r){let o=s=>(r||[]).some(i=>String(i).toLowerCase()===s);t===H&&!o("formmethod")&&e.removeAttribute("formmethod"),n===H&&!o("formenctype")&&e.removeAttribute("formenctype")}function Xe(e){return new Map(ts(e))}function ts(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 Yo(e,t){let n=String(t).toLowerCase();return ts(e).filter(([r])=>r===n).length}function ka(e,t){let n=String(e).toLowerCase();Nt(n[0])&&(n=n.slice(1));let r=String(t||"").toLowerCase();return n==="action"?r==="form":n==="formaction"?r==="button"||r==="input":!1}function cn(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=>cn(r,n)))}function Ca(e){let t=String(e).toLowerCase();return Nt(t[0])&&(t=t.slice(1)),t==="action"||t==="formaction"}function Na(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 L,Jo,dr,Zo,H,Qe=J(()=>{on();Tt();L="__webjs_action",Jo="$$webjsAction",dr=null;Zo=new Set(["multipart/form-data","application/x-www-form-urlencoded"]);H=Symbol("webjs.attr.absent")});function ps(){return typeof HTMLElement<"u"&&typeof HTMLSlotElement<"u"}function nc(){if(ls||(we=ps(),!we))return;Dt=HTMLSlotElement.prototype.assignedNodes,Tr=HTMLSlotElement.prototype.assignedElements,hn=Object.getOwnPropertyDescriptor(Element.prototype,"assignedSlot"),HTMLSlotElement.prototype.assignedNodes=function(n){return this.hasAttribute(M)&&!Lr(this)?Pr(this,n):Dt?Dt.call(this,n):[]},HTMLSlotElement.prototype.assignedElements=function(n){return this.hasAttribute(M)&&!Lr(this)?Pr(this,n).filter(r=>r.nodeType===1):Tr?Tr.call(this,n):[]},Object.defineProperty(Element.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let n=hn&&hn.get?hn.get.call(this):null;return n||us(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||us(this)}}),Rr=HTMLSlotElement.prototype.assign,HTMLSlotElement.prototype.assign=function(...n){if(this.hasAttribute(M)&&!Lr(this)){let r=rc(this);if(r){let o=ue(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);ct(o),fe(r)}return}return Rr?Rr.apply(this,n):void 0},ls=!0}function Br(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 rc(e){for(let t=e.parentElement;t;t=t.parentElement)if(t[P])return le(t,e)?t:null;return null}function Lr(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 Pr(e,t){if(e.getAttribute(Y)!==re)return[];let n=Array.from(e.childNodes);return!t||!t.flatten?n:Dr(n,new Set,0)}function Dr(e,t,n){if(n>=tc)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(M)){let i=Pr(s,{flatten:!1});if(i.length>0)for(let a of Dr(i,t,n+1))r.push(a);else for(let a of Dr(Array.from(s.childNodes),t,n+1))r.push(a)}else if(Dt){let i=Dt.call(s,{flatten:!0});for(let a of i)r.push(a)}else r.push(o)}else r.push(o);return r}function us(e){let t=e.parentElement;return t&&t.tagName==="SLOT"&&t.hasAttribute(M)&&t.getAttribute(Y)===re?t:null}function ue(e){let t=e,n=t[P];return n||(n={host:e,authored:[],assignedByName:new Map,lastSnapshot:new WeakMap},t[P]=n),n}function Ur(e){return!!e[P]}function hs(e){let t=ue(e);for(;e.firstChild;){let n=e.firstChild;t.authored.push(n),j.add(n),e.removeChild(n)}ct(t)}function ct(e){let t=e.assignedByName;t.clear();for(let n of e.authored)oc(t,Ie(e,n),n)}function Ie(e,t){let n=Br(e,t);if(n)return te(n.getAttribute("name"));if(e.adoptedKey){let r=e.adoptedKey.get(t);if(r!==void 0)return r}return gs(t)}function ms(e){let t=ue(e);t.adopted=!0;let n=new Set,r=e.querySelectorAll(`slot[${M}]`);for(let o of r){let s=o;if(!le(e,s)||s.getAttribute(Y)!==re||Sn(t,e,s))continue;let i=te(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),gs(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(le(e,o)){for(let s of Array.from(o.childNodes))j.add(s),t.authored.push(s);o.remove()}ct(t)}function te(e){return e==null||e===""||e==="default"?null:e}function gs(e){return e.nodeType!==1?null:te(e.getAttribute("slot"))}function oc(e,t,n){let r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)}function $e(e,t,n){let r=ue(e),o=te(t),s=Array.isArray(n)?n.filter(Boolean):n?[n]:[],i=r.authored.findIndex(c=>Ie(r,c)===o),a=r.authored.filter(c=>Ie(r,c)===o);r.authored=r.authored.filter(c=>Ie(r,c)!==o),(i===-1||i>r.authored.length)&&(i=r.authored.length);for(let c of s)c.nodeType===1&&!Br(r,c)&&(o==null?c.removeAttribute("slot"):c.setAttribute("slot",o)),j.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)}ct(r),fe(e)}function sc(){ye||!we||(ye=Node.prototype.appendChild,bs=Node.prototype.insertBefore,at=Node.prototype.removeChild,$r=Node.prototype.replaceChild,ys=Element.prototype.append,ws=Element.prototype.prepend,Ss=Element.prototype.replaceChildren,mn=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),Mr=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"))}function yn(e,t){let n=e[V];e[V]=!0;try{return t()}finally{e[V]=n,n||Hr(e)}}function As(e){if(!we)return;let t=e,n=ue(e);n.backstop||(n.backstop=new MutationObserver(r=>wn(e,n,r)),n.backstop.observe(e,{childList:!0,subtree:!1}),n.flipSensor=new MutationObserver(r=>_s(e,r)),n.flipSensor.observe(e,{attributes:!0,attributeFilter:["slot","name"],subtree:!0}))}function wn(e,t,n){let r=e,o=r[De],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&&xs(s,l))){if(t.authored.indexOf(l)!==-1){i=!0;continue}j.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;j.has(l)&&l.parentNode==null&&!a.has(l)||(t.authored.splice(u,1),i=!0)}}i&&fe(e)}function Hr(e){let t=e,n=t[P];if(!(n&&n.backstop))return;let r=n.backstop.takeRecords();(!(Symbol.for("webjs.instance")in t)||t[Symbol.for("webjs.instance")])&&wn(e,n,r)}function _s(e,t){let n=e[P];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(M)&&le(e,s)&&(r=!0):o.attributeName==="slot"&&(n.adoptedKey&&n.adoptedKey.delete(s),n.authored.indexOf(s)!==-1&&(r=!0))}r&&fe(e)}function vs(e){let t=e[P];t&&(t.backstop&&(wn(e,t,t.backstop.takeRecords()),t.backstop.disconnect(),t.backstop=void 0),t.flipSensor&&(_s(e,t.flipSensor.takeRecords()),t.flipSensor.disconnect(),t.flipSensor=void 0))}function Es(e){if(!we)return;let t=e,n=t[P];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[De]){if(n.authored.indexOf(a)!==-1){i=!0;continue}o&&(!r||xs(r,a))||!o&&s||(j.add(a),n.authored.push(a),i=!0)}i&&fe(e)}function xs(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 ic(e){let t=e,n=t[De];return(!n||!n.isConnected)&&(n||(n=e.ownerDocument.createElement("wj-slot-park"),n.setAttribute("hidden",""),n.style.display="none",t[De]=n),yn(e,()=>ye.call(e,n))),n}function Pe(e){return e instanceof Node||!!(e&&typeof e=="object"&&e.ownerDocument&&e.ownerDocument.defaultView&&e instanceof e.ownerDocument.defaultView.Node)}function jr(e,t,n){if(n&&!Pe(t))return[e.ownerDocument.createTextNode(`${t}`)];if(!Pe(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);gn(e,r);for(let o of r)at.call(t,o);return r}return gn(e,[t]),[t]}function gn(e,t){it(e,t);for(let n of t){if(!Pe(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 it(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 qr(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 ks(e,t){let n=e[P];return n?Sn(n,e,t):!1}function Sn(e,t,n){for(let r=n;r&&r!==t;r=r.parentNode)if(e.authored.indexOf(r)!==-1)return!0;return!1}function Or(e,t){if(j.has(t))return!0;let n=t.parentNode;if(n==null)return!1;if(n===e||n===e[De])return!0;let r=e[P];return n.nodeType===1&&n.tagName==="SLOT"&&n.hasAttribute(M)&&(r&&r.lastSnapshot.has(n)||e.contains(n)&&le(e,n))}function Ir(e,t){let n=[];for(let s of t)Pe(s)?s.nodeType===11?n.push({frag:s}):n.push({node:s}):n.push({text:`${s}`});for(let s of n)s.frag?it(e,Array.from(s.frag.childNodes)):s.node&&gn(e,[s.node]);let r=e.ownerDocument.createDocumentFragment();for(let s of n)if(s.text!==void 0)ye.call(r,e.ownerDocument.createTextNode(s.text));else if(s.frag){let i=Array.from(s.frag.childNodes);gn(e,i);for(let a of i)ye.call(r,a)}else s.node&&(it(e,[s.node]),ye.call(r,s.node));let o=Array.from(r.childNodes);it(e,o);for(let s of o)at.call(r,s);return o}function ce(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);ct(t),fe(e)}function Cs(e){if(!we)return;let t=e;if(t[fs])return;sc(),t[fs]=!0;let n=ue(e);t.appendChild=function(r){if(t[V])return ye.call(this,r);let o=jr(e,r,!1);for(let s of o)j.add(s);return qr(n,o,null),ce(e,n,o),r},t.insertBefore=function(r,o){if(t[V])return bs.call(this,r,o);if(!Pe(r))throw new TypeError("Failed to execute insertBefore on the host: parameter 1 is not of type Node.");if(o!=null&&!Pe(o))throw new TypeError("Failed to execute insertBefore on the host: parameter 2 is not of type Node.");if(it(e,r.nodeType===11?Array.from(r.childNodes):[r]),o!=null&&(n.authored.indexOf(o)===-1||!Or(e,o)))throw new DOMException("insertBefore: reference node is not an assigned child of this host","NotFoundError");if(r===o)return r;let s=jr(e,r,!1);for(let i of s)j.add(i);return qr(n,s,o||null),ce(e,n,s),r},t.removeChild=function(r){if(t[V])return at.call(this,r);let o=n.authored.indexOf(r);if(o===-1)return at.call(this,r);if(!Or(e,r))throw new DOMException("removeChild: the node is not an assigned child of this host","NotFoundError");return n.authored.splice(o,1),ce(e,n,[r]),r},t.replaceChild=function(r,o){if(t[V])return $r.call(this,r,o);if(n.authored.indexOf(o)===-1)return $r.call(this,r,o);if(!Pe(r))throw new TypeError("Failed to execute replaceChild on the host: parameter 1 is not of type Node.");if(it(e,r.nodeType===11?Array.from(r.childNodes):[r]),!Or(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=jr(e,r,!1);for(let c of i)j.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),ce(e,n,[...i,o]),o},t.append=function(...r){if(t[V])return ys.apply(this,r);let o=Ir(e,r);for(let s of o)j.add(s);qr(n,o,null),ce(e,n,o)},t.prepend=function(...r){if(t[V])return ws.apply(this,r);let o=Ir(e,r);for(let s of o)j.add(s);for(let s of o){let i=n.authored.indexOf(s);i!==-1&&n.authored.splice(i,1)}n.authored.unshift(...o),ce(e,n,o)},t.replaceChildren=function(...r){if(t[V])return Ss.apply(this,r);let o=Ir(e,r);for(let i of o)j.add(i);let s=n.authored;n.authored=o.slice(),ce(e,n,[...s,...o])},Object.defineProperty(t,"innerHTML",{configurable:!0,get(){return mn.get.call(this)},set(r){if(t[V]){mn.set.call(this,r);return}let o=e.ownerDocument.createElement("div");mn.set.call(o,r===null?"":`${r}`);let s=Array.from(o.childNodes);for(let a of s)j.add(a);let i=n.authored;n.authored=s,ce(e,n,[...i,...s])}}),Object.defineProperty(t,"textContent",{configurable:!0,get(){return Mr.get.call(this)},set(r){if(t[V]){Mr.set.call(this,r);return}let o=r==null||r===""?[]:[e.ownerDocument.createTextNode(`${r}`)];for(let i of o)j.add(i);let s=n.authored;n.authored=o,ce(e,n,[...s,...o])}})}function fe(e){if(!we)return;let t=e[P];if(t){if(t.applying){t.reapply=!0;return}t.applying=!0;try{do{t.reapply=!1;let n=t.pendingRecordNodes||ac;t.pendingRecordNodes=void 0,cc(e,t,n),lc(e,t),ct(t);let r=[],o=new Set;for(let u of e.querySelectorAll(`slot[${M}]`))if(le(e,u)&&!Sn(t,e,u)){if(!u.hasAttribute(Y)&&!($t in u)){o.add(te(u.getAttribute("name")));continue}r.push(u)}let s=new Map;for(let u of r){let f=te(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],w=d.filter(_=>{let g=Br(t,_);return g?g===m:p===0}),b=w.filter(_=>_===e||_.nodeType===1&&_.contains(e));if(b.length){for(let _ of b)j.delete(_);w=w.filter(_=>b.indexOf(_)===-1)}w.length>0?fc(t,m,w)&&i.push(m):dc(t,m)&&i.push(m)}}for(let u of i)hc(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(Ie(t,u))||c.add(u);let l=e[De];if(l)for(let u of Array.from(l.childNodes))c.has(u)||at.call(l,u);if(c.size){let u=ic(e);for(let f of c)f.parentNode!==u&&(j.delete(f),yn(e,()=>ye.call(u,f)))}if(t.backstop){let u=t.backstop.takeRecords();u.length&&wn(e,t,u)}}while(t.reapply)}finally{t.applying=!1}}}function cc(e,t,n){for(let r of e.querySelectorAll(`slot[${M}][${Y}="${re}"]`)){if(!le(e,r)||Sn(t,e,r))continue;let o=r,s=t.lastSnapshot.get(o);if(!s)continue;let i=Array.from(o.childNodes);if(Fr(i,s))continue;let a=t.authored,c=te(o.getAttribute("name")),l=i.filter(m=>!n.has(m));for(let m of l)a.indexOf(m)===-1&&Ie(t,m)!==c&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(m,c));for(let m of a){if(l.indexOf(m)!==-1||Ie(t,m)!==c)continue;let w=a.indexOf(m),b=0;for(let _=0;_<l.length;_++){let g=a.indexOf(l[_]);g!==-1&&g<w&&(b=_+1)}l.splice(b,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 lc(e,t){let n=e[De];t.authored=t.authored.filter(r=>{if(j.has(r))return!0;let o=r.parentNode;return o==null?!1:!!(o===e||o===n||o.nodeType===1&&o.tagName==="SLOT"&&o.hasAttribute(M)&&(t.lastSnapshot.has(o)||e.contains(o)&&le(e,o)))})}function Ns(e){if(!we)return!1;for(let t of e.querySelectorAll(`slot[${M}][${Y}]`))if(le(e,t))return!0;return!1}function le(e,t){let n=t[bn];if(n)return n===e;let r=typeof t.getAttribute=="function"?t.getAttribute(ec):null;if(r){let o=uc(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 uc(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 fc(e,t,n){for(let l of n)j.delete(l);let r=t.getAttribute(Y)!==re,o=e.lastSnapshot.get(t)||[],s=r||!Fr(o,n);if(!r&&Fr(Array.from(t.childNodes),n))return e.lastSnapshot.set(t,n.slice()),s;let i=t[$t];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(Y,re),e.lastSnapshot.set(t,n.slice()),s}function dc(e,t){let n=t.getAttribute(Y)===re;if(t.setAttribute(Y,Qa),!n)return ds(t),!1;for(e.lastSnapshot.delete(t);t.firstChild;)t.removeChild(t.firstChild);return ds(t),!0}function ds(e){let t=e[$t];!t||t.childNodes.length===0||e.appendChild(t)}function Ts(e,t){if(!Ur(e))return;let n=ue(e),r=te(t.getAttribute("name")),o=n.assignedByName.get(r);if(o)for(let s of o)s.parentNode===t&&(j.add(s),t.removeChild(s));n.lastSnapshot.delete(t)}function pc(e){e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1}))}function hc(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)pc(r)}))}function Fr(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 we,P,M,Y,re,Qa,$t,bn,ec,tc,Dt,Tr,hn,Rr,ls,V,fs,De,j,ye,bs,at,$r,ys,ws,Ss,mn,Mr,ac,An=J(()=>{we=ps(),P=Symbol("webjs.slot.state"),M="data-webjs-light",Y="data-projection",re="actual",Qa="fallback",$t=Symbol("webjs.slot.fallbackFrag"),bn=Symbol("webjs.slot.templateOwner"),ec="data-wj-slot-owner",tc=64,Dt=null,Tr=null,hn=null,Rr=null,ls=!1;nc();V=Symbol("webjs.slot.rendering"),fs=Symbol("webjs.slot.intercepted"),De=Symbol("webjs.slot.park"),j=new WeakSet,ye=null,bs=null,at=null,$r=null,ys=null,ws=null,Ss=null,mn=null,Mr=null;ac=new Set});function Vs(e,t,n){Vc.has(t)?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}async function Vt(e){return JSON.stringify(await zs(e))}function de(e){return Ws(JSON.parse(e))}async function zs(e){let t=zc();return await Wc(e,t),Me(e,t)}function Ws(e){return Ae(e,Jc())}function zc(){return{refCount:new Map,idOf:new Map,emitted:new Set,nextId:0,blobBytes:new Map,fdEntries:new Map}}async function Wc(e,t){let n=[e];for(;n.length;){let r=n.pop();if(!Xc(r))continue;let o=t.refCount.get(r)||0;if(t.refCount.set(r,o+1),!(o>0)){if(typeof Blob<"u"&&r instanceof Blob){let s=new Uint8Array(await r.arrayBuffer());t.blobBytes.set(r,s);continue}if(typeof FormData<"u"&&r instanceof FormData){let s=t.fdEntries.get(r)||[...r.entries()];t.fdEntries.set(r,s);for(let[,i]of s)typeof i!="string"&&n.push(i);continue}if(Array.isArray(r))for(let s=0;s<r.length;s++)n.push(r[s]);else if(r instanceof Map)for(let[s,i]of r)n.push(s),n.push(i);else if(r instanceof Set)for(let s of r)n.push(s);else if(Qc(r))for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&n.push(r[s])}}for(let[r,o]of t.refCount)o>1&&t.idOf.set(r,t.nextId++)}function Me(e,t){if(e===null)return null;if(e===void 0)return{[q]:"undef"};let n=typeof e;if(n==="string"||n==="boolean")return e;if(n==="number")return Number.isNaN(e)?{[q]:"NaN"}:e===1/0?{[q]:"Inf"}:e===-1/0?{[q]:"-Inf"}:Object.is(e,-0)?{[q]:"-0"}:e;if(n==="bigint")return{[q]:"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{[q]:"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{[q]:"Ref",v:r};r!==void 0&&t.emitted.add(r);let o;if(e instanceof Date)o={[q]:"Date",v:Number.isNaN(e.getTime())?null:e.toISOString()};else if(e instanceof Error)o={[q]:"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={[q]:"File",v:Ht(s),n:e.name,t:e.type||"",m:e.lastModified}:o={[q]:"Blob",v:Ht(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,Me(c,t)]);o={[q]:"FD",v:i}}else if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o=Kc(e);else if(e instanceof Map){let s=[];for(let[i,a]of e)s.push([Me(i,t),Me(a,t)]);o={[q]:"Map",v:s}}else if(e instanceof Set){let s=[];for(let i of e)s.push(Me(i,t));o={[q]:"Set",v:s}}else if(Array.isArray(e))o=e.map(s=>Me(s,t));else{o={};for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=el(s)?"_"+s:s;Vs(o,i,Me(e[s],t))}}if(r!==void 0){if(Array.isArray(o))return{[q]:"Arr",_id:r,v:o};o._id=r}return o}function Kc(e){if(e instanceof ArrayBuffer)return{[q]:"buf",v:Ht(new Uint8Array(e))};if(e instanceof DataView)return{[q]:"dv",v:Ht(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))};let t=e.constructor.name,n=Gc[t];if(!n)throw new TypeError(`Unsupported typed array: ${t}`);let r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return{[q]:n,v:Ht(r)}}function Jc(){return{refs:new Map}}function Ae(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(Ae(e[i],t));return s}let n=e[q];if(typeof n=="string")return Zc(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=tl(s)?s.slice(1):s;Vs(r,i,Ae(e[s],t))}return r}function Zc(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(Ae(i,n),Ae(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(Ae(i,n));return s}case"Arr":{let s=[];typeof r=="number"&&n.refs.set(r,s);for(let i of e.v)s.push(Ae(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=Ut(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=Ut(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=Ae(a,n);s.append(i,c)}return s}default:{if(t==="buf"){let i=Ut(e.v);return o(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}if(t==="dv"){let i=Ut(e.v);return o(new DataView(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)))}let s=Yc[t];if(s){let i=Ut(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 Xc(e){return e!==null&&typeof e=="object"}function Qc(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function el(e){return/^_+\$wj$/.test(e)||/^_+id$/.test(e)}function tl(e){return/^__+\$wj$/.test(e)||/^__+id$/.test(e)}function Ht(e){if(Ks)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 Ut(e){if(Ks){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 q,Vc,Gc,Yc,Ks,ht=J(()=>{q="_$wj",Vc=new Set(["__proto__","constructor","prototype"]);Gc={Int8Array:"i8",Uint8Array:"u8",Uint8ClampedArray:"u8c",Int16Array:"i16",Uint16Array:"u16",Int32Array:"i32",Uint32Array:"u32",Float32Array:"f32",Float64Array:"f64",BigInt64Array:"bi64",BigUint64Array:"bu64"},Yc={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};Ks=typeof Buffer<"u"&&typeof Buffer.from=="function"});var gi={};Go(gi,{observeLazy:()=>Ql,observeViewportOnce:()=>nu});function mi(e){let t=io.get(e);return t||(t=import(e).finally(()=>io.delete(e)),io.set(e,t),t)}function Ql(e){for(let[t,n]of Object.entries(e))Fe.set(t.toLowerCase(),n);if(typeof IntersectionObserver>"u"){for(let t of Fe.values())mi(t);Fe.clear();return}Gt||(Gt=new IntersectionObserver(eu,{rootMargin:"200px"})),hi(),typeof MutationObserver<"u"&&new MutationObserver(()=>hi()).observe(document.body,{childList:!0,subtree:!0})}function hi(){if(!(!Gt||!Fe.size))for(let e of Fe.keys())for(let t of document.querySelectorAll(e))Gt.observe(t)}function eu(e){for(let t of e){if(!t.isIntersecting)continue;let n=t.target.tagName.toLowerCase(),r=Fe.get(n);r&&(mi(r),Fe.delete(n),Gt?.unobserve(t.target))}}function tu(e){for(let t of e){if(!t.isIntersecting)continue;let n=$n.get(t.target);$n.delete(t.target),Kt?.unobserve(t.target),n&&n()}}function nu(e,t){return typeof IntersectionObserver>"u"?(t(),()=>{}):(Kt||(Kt=new IntersectionObserver(tu,{rootMargin:"200px"})),$n.set(e,t),Kt.observe(e),()=>{$n.delete(e),Kt?.unobserve(e)})}var Fe,Gt,io,Kt,$n,bi=J(()=>{Fe=new Map,Gt=null,io=new Map;Kt=null,$n=new WeakMap});var ao,co=J(()=>{ao=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(()=>(bi(),gi)).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(()=>(lo(),yi)).then(({loadFrame:n})=>{this._webjsLoadedSrc!==t||!this.isConnected||n(this,t)})}}:null;typeof customElements<"u"&&ao&&!customElements.get("webjs-frame")&&customElements.define("webjs-frame",ao)});function ou(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 fo(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 ru,uo,Mn=J(()=>{ru=new Set(["append","prepend","before","after","replace","update"]);uo=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=ru.has(t)?this.querySelector("template"):null;try{for(let i of r){let a=s?s.content.cloneNode(!0):null;ou(t,i,a)}}finally{this.remove()}}}:null;typeof customElements<"u"&&uo&&!customElements.get("webjs-stream")&&customElements.define("webjs-stream",uo)});var wi,Si=J(()=>{wi=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this.style.display||(this.style.display="contents")}}:null;typeof customElements<"u"&&wi&&!customElements.get("webjs-suspense")&&customElements.define("webjs-suspense",wi)});function Fn(e,t){let n=typeof document<"u"?document:null,r=e||n;if(!r||typeof r.querySelectorAll!="function")return;if(t&&t.frame===!0){po(r,!0);return}vi();let o=r===n,s=!!n&&!o&&typeof n.contains=="function"&&n.contains(r),i=!!n&&!o&&!s;i&&(po(n,!0),ve.clear(),mo.clear()),(o||i)&&(ho=!0);let a=z.ingested+z.replaced;au(po(r),a)}function po(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=iu(r.getAttribute?.("data-webjs-dev"));o!==null&&(n=o),Ai(t?null:r.textContent,r)}for(let r of e.querySelectorAll("[data-webjs-seed]"))Ai(t?null:r.getAttribute("data-webjs-seed"),r,()=>r.removeAttribute("data-webjs-seed"));return n}function Ai(e,t,n){if(e)try{let r=de(e);if(r&&typeof r=="object")for(let o in r){ve.has(o)?z.replaced++:z.ingested++,ve.set(o,r[o]);let s=o.indexOf("/",o.indexOf("/")+1);s>0&&mo.add(o.slice(0,s))}}catch{}n?n():t.remove?.()}function iu(e){return typeof e!="string"?null:e||"ok"}function au(e,t){if(e===null)return;let n=++su;gt={epoch:n,hits:z.hits,misses:z.misses,keyMisses:z.keyMisses,merged:t,marker:e};let r=()=>{!gt||gt.epoch!==n||vi()};try{typeof requestIdleCallback=="function"?requestIdleCallback(r,{timeout:1e3}):setTimeout(r,250)}catch{gt=null}}function vi(){let e=gt;if(gt=null,!!e)try{cu(e)}catch{}}function cu(e){let t=z.hits-e.hits,n=z.misses-e.misses,r=z.ingested+z.replaced-e.merged,o=z.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, ${ve.size} still unconsumed). ${s} See https://webjs.dev/docs/data-fetching for the seeding reference.`)}function lu(e,t,n){ho||(ho=!0,Fn());let r=`${e}/${t}/${n}`;if(ve.has(r)){let o=ve.get(r);return ve.delete(r),z.hits++,o}return z.misses++,mo.has(`${e}/${t}`)&&z.keyMisses++,_i}function uu(){return{...z,pending:ve.size}}var ve,_i,ho,z,mo,gt,su,go=J(()=>{ht();ve=new Map,_i=Symbol("webjs.seed.miss"),ho=!1,z={ingested:0,replaced:0,hits:0,misses:0,keyMisses:0},mo=new Set,gt=null,su=0});function bo(e){if(!(!Array.isArray(e)||!e.length)){Bn+=1;for(let t of e)t&&Ei.set(t,Bn)}}function du(){return Bn}function pu(e,t,n){if(!(!Array.isArray(t)||!t.length)&&(bt.delete(e),bt.set(e,{tags:t.slice(),since:typeof n=="number"?n:Bn}),bt.size>fu)){let r=bt.keys().next().value;r!==void 0&&bt.delete(r)}}function hu(e){let t=bt.get(e);if(!t)return!1;for(let n of t.tags)if((Ei.get(n)||0)>t.since)return!0;return!1}function yo(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}var Bn,Ei,bt,fu,wo=J(()=>{Bn=0,Ei=new Map,bt=new Map,fu=1e3});var yi={};Go(yi,{_FALLBACK_MARKER_KEY:()=>Wn,_FRAME_TOP:()=>Vi,_LIVE_ATTRS:()=>ko,_activateSwappedRange:()=>Uo,_activeFrameId:()=>Hi,_addNewHeadElements:()=>No,_applyOptimisticLoading:()=>Mo,_applyStreamedResolve:()=>da,_applySwap:()=>$o,_blurOutgoingFocus:()=>Vn,_buildHaveHeader:()=>nn,_buildSubmitFormData:()=>Bi,_bumpNavToken:()=>ef,_clearFormBusy:()=>ia,_clearFrameBusy:()=>oa,_collectBoundaries:()=>xt,_currentPageUrl:()=>tf,_diffElementInPlace:()=>Qn,_eligibleAnchorHref:()=>Gn,_encodeSubmitBody:()=>Fi,_findAnchorInPath:()=>Ui,_getSubmitAction:()=>$i,_getSubmitEnctype:()=>Mi,_getSubmitMethod:()=>Di,_isNonHtmlPath:()=>sf,_isPreBootNavigation:()=>Wi,_keyOf:()=>Et,_markFormBusy:()=>sa,_markFrameBusy:()=>ra,_mergeHead:()=>la,_navToken:()=>Qu,_onPopState:()=>Lo,_onSubmit:()=>jo,_parseHTML:()=>To,_planBoundarySwap:()=>Ki,_prefetch:()=>kt,_prefetchAnchor:()=>Qi,_prefetchCache:()=>O,_prefetchHasHoverPointer:()=>Zi,_prefetchInflightSize:()=>Ju,_prefetchMode:()=>Yn,_prefetchPeek:()=>Yu,_prefetchSaysSaveData:()=>Io,_prefetchSuppressed:()=>Xi,_prefetchTake:()=>ea,_reactivateScripts:()=>rr,_readStreamedShell:()=>ua,_reconcileChildren:()=>ar,_regraftPermanentElements:()=>aa,_regraftPermanentInSlice:()=>ir,_resetParseProbe:()=>gu,_resetPrefetch:()=>Zu,_resetWarnOnce:()=>rf,_resolveTargetFrameId:()=>qo,_restoreOptimistic:()=>Yt,_runWithTransition:()=>Hn,_setCurrentPageUrl:()=>nf,_setHardNavigate:()=>Xu,_shouldFullLoadDuringParse:()=>of,_snapshotCache:()=>W,_streamBoundariesProgressively:()=>pa,_takeResolveUnit:()=>fa,_viewTransitionsEnabled:()=>Do,disableClientRouter:()=>ji,enableClientRouter:()=>Ro,loadFrame:()=>Oi,navigate:()=>qi,revalidate:()=>Ii});function To(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"&&mu()?Document.parseHTMLUnsafe(e):bu(e)}function mu(){if(yt!==null)return yt;try{yt=Document.parseHTMLUnsafe("<!doctype html><body><!--c--><i></i>")?.body?.firstChild?.nodeType===8}catch{yt=!1}return yt}function gu(){yt=null}function bu(e){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(e,"text/html")}function yu(){So||typeof MutationObserver>"u"||typeof customElements>"u"||(So=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)}}),So.observe(document.body,{childList:!0,subtree:!0}))}function Li(){if(typeof document>"u"||!document.documentElement)return()=>{};ne&&ne();let e=document.documentElement,t=e.style.getPropertyValue("overflow-anchor");e.style.setProperty("overflow-anchor","none");let n=null,r=()=>{if(ne===r){if(ne=null,n&&(clearTimeout(n),n=null),typeof window<"u")for(let o of zn)window.removeEventListener(o,r,{capture:!0});t?e.style.setProperty("overflow-anchor",t):e.style.removeProperty("overflow-anchor")}};if(ne=r,n=setTimeout(r,wu),typeof window<"u")for(let o of zn)window.addEventListener(o,r,{capture:!0,passive:!0});return r}function Su(e,t){if(typeof window>"u"||typeof requestAnimationFrame!="function")return;X&&X();let n=0,r=null,o=null,s=()=>{if(X===s){X=null,n&&cancelAnimationFrame(n),r&&(clearTimeout(r),r=null),o&&(o(),o=null);for(let a of zn)window.removeEventListener(a,s,{capture:!0})}},i=()=>{if(X!==s)return;if(document.documentElement.scrollHeight-window.innerHeight>=e){window.scrollTo({left:t,top:e,behavior:"instant"}),o=Li(),n&&(cancelAnimationFrame(n),n=0);return}n=requestAnimationFrame(i)};X=s;for(let a of zn)window.addEventListener(a,s,{capture:!0,passive:!0});r=setTimeout(s,Ri),n=requestAnimationFrame(i)}function Au(e){if(typeof requestAnimationFrame!="function"){setTimeout(e,0);return}requestAnimationFrame(()=>requestAnimationFrame(e))}function Ro(){he||typeof document>"u"||(he=!0,document.addEventListener("click",Pi,!1),document.addEventListener("submit",jo,!1),window.addEventListener("popstate",Lo),document.addEventListener("pointerover",vt,!0),document.addEventListener("focusin",vt,!0),document.addEventListener("touchstart",vt,{capture:!0,passive:!0}),document.addEventListener("pointerout",ta,!0),document.addEventListener("webjs:navigate",xo),yu(),xo(),typeof history<"u"&&"scrollRestoration"in history&&(Un=history.scrollRestoration,history.scrollRestoration="manual"),typeof location<"u"&&(ae=location.href),Eu())}function ji(){he&&(he=!1,document.removeEventListener("click",Pi,!1),document.removeEventListener("submit",jo,!1),window.removeEventListener("popstate",Lo),document.removeEventListener("pointerover",vt,!0),document.removeEventListener("focusin",vt,!0),document.removeEventListener("touchstart",vt,{capture:!0}),document.removeEventListener("pointerout",ta,!0),document.removeEventListener("webjs:navigate",xo),sr(),Po(),xe&&(xe.disconnect(),xe=null),typeof history<"u"&&Un!==null&&(history.scrollRestoration=Un,Un=null),Jt+=1,ne&&ne(),X&&X(),ae=null)}async function qi(e,t){let n=new URL(e,location.href);if(n.origin!==location.origin){Ue(e);return}await Oo(n.href,t?.replace??!1,null)}async function Oi(e,t){if(typeof location>"u")return{ok:!1,status:null,aborted:!1};let n=e&&e.id;if(!n)return{ok:!1,status:null,aborted:!1};let r=new URL(t,location.href);if(r.origin!==location.origin)return{ok:!1,status:null,aborted:!1};Q&&Q.abort(),Q=new AbortController;let o=Q.signal,s=++B;return Jn(r.href,n,!1,null,"GET",null,o,s)}function Ii(e){if(!e){W.clear(),O.clear();return}let t=new URL(e,location.href),n=t.pathname+t.search;W.delete(n),O.delete(n)}function Pi(e){if(!he||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=Ui(e);if(!t||t.hasAttribute("download")||t.hasAttribute("data-no-router")||t.target&&t.target!=="_self")return;let n=t.href;if(!n)return;let r=new URL(n);if(r.origin!==location.origin||r.pathname===location.pathname&&r.search===location.search&&r.hash||or.test(r.pathname))return;e.preventDefault();let o=qo(t);Oo(n,!1,o)}function Lo(e){Oo(location.href,!0,null)}function jo(e){if(!he||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=Di(t,n);if(o==="dialog")return;let s=Mi(t,n),i=o==="get"||o==="head",a=$i(t,n),c;try{c=new URL(a,location.href)}catch{return}if(c.origin!==location.origin||or.test(c.pathname))return;let l=Bi(t,n);if(vu(t,n,o,l),!i&&s==="text/plain")return;let u=Fi(l,s);e.preventDefault();let f=qo(n||t);Nu(c.href,o,u,f,t)}function Di(e,t){return((t&&t.hasAttribute("formmethod")?t.getAttribute("formmethod")||"":e.getAttribute("method")||"")||"get").toLowerCase()}function $i(e,t){return t&&t.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||e.action||location.href}function _u(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 Mi(e,t){return _u(t&&t.hasAttribute("formenctype")?t.getAttribute("formenctype"):e.getAttribute("enctype"))}function Fi(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 Bi(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}}function Ui(e){for(let t of e.composedPath())if(t instanceof HTMLAnchorElement)return t;return null}function Hi(e){let t=e;for(;t;){let n=t.closest("webjs-frame");if(n&&n.id)return n.id;let r=t.getRootNode();if(r&&r.host)t=r.host;else break}return null}function qo(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===Vi)return null;let r=typeof document<"u"?document.getElementById(n):null;return r&&r.tagName&&r.tagName.toLowerCase()==="webjs-frame"?n:(He(`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 Hi(e)}function He(e,t,n="warn"){if(_o.has(e)||(_o.add(e),typeof console>"u"))return;let r=n==="error"?console.error:console.warn;r&&r.call(console,t)}function vu(e,t,n,r){if(typeof process<"u"&&process.env||!r.has(L))return;let o="";try{o=new URL(e.getAttribute("action")||location.href,location.href).pathname}catch{o=location.pathname}if(n!=="post"){He(`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"){He(`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&&He(`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 zi(e,t){return!e&&!t&&typeof document<"u"&&document.readyState==="loading"}function Wi(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 Eu(){if(typeof location>"u"||ki)return;ki=!0;let e=null;try{e=sessionStorage.getItem(Wn),sessionStorage.removeItem(Wn)}catch{}let t="";try{let n=performance.getEntriesByType("navigation")[0];t=n?n.type:""}catch{}Wi(t,document.referrer,location.href,e)&&Ee("pre-boot-navigation",location.href,!1)}function Ee(e,t,n=!0){if(n)try{sessionStorage.setItem(Wn,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||He(`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 xu(e){typeof process<"u"&&process.env||He(`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 Ci(){if(typeof process<"u"&&process.env||vo||typeof document>"u"||typeof getComputedStyle!="function")return;let e=document.documentElement;if(!e)return;vo=!0;let t;try{t=getComputedStyle(e).scrollBehavior}catch{return}t==="smooth"&&He("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 Kn(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 xt(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 Ki(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.startsWith(c==="/"?c: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 Gi(e){let t=ke(e);document.dispatchEvent(new CustomEvent("webjs:before-cache",{detail:{url:e}})),W.has(t)&&W.delete(t);let n={html:document.documentElement.outerHTML,scrollX:typeof window<"u"&&window.scrollX||0,scrollY:typeof window<"u"&&window.scrollY||0};for(W.set(t,n);W.size>ku;){let r=W.keys().next().value;W.delete(r)}}function Cu(e){let t=ke(e),n=W.get(t);return n==null?null:(W.delete(t),W.set(t,n),typeof n=="string"?{html:n,scrollX:0,scrollY:0}:n)}function ke(e){let t=new URL(e,location.href);return t.pathname+t.search}async function Oo(e,t,n){if(zi(t,n)&&typeof location<"u"){Ee("readyState-loading",e),Ue(e);return}Q&&Q.abort(),Q=new AbortController;let r=Q.signal,o=++B;n||(Jt+=1,ne&&ne(),X&&X()),ae&&Gi(ae);let s=setTimeout(()=>{Kn(!0),s=null},150),i=null;t||(i=Mo());try{if(t){let a=Cu(e);if(a){let c=To(a.html);if(c){$o(c,n,!0,null);let l=()=>{};if(typeof window<"u"){let d=()=>{window.scrollTo({left:a.scrollX,top:a.scrollY,behavior:"instant"}),window.scrollY>=a.scrollY-1?l=Li():Su(a.scrollY,a.scrollX)};if(Do()&&typeof document.startViewTransition=="function"){let p=Jt;en.then(()=>{p!==Jt||!he||d()}).catch(()=>{})}else d()}let u=Jn(e,n,!1,i,"GET",null,r,o,!0).catch(()=>{}),f=new Promise(d=>setTimeout(d,Ri));Promise.all([u,f]).then(()=>Au(l));return}}typeof window<"u"&&window.scrollTo({left:0,top:0,behavior:"instant"})}await Jn(e,n,!t,i,"GET",null,r,o)}finally{s&&clearTimeout(s),o===B&&(Kn(!1),typeof location<"u"&&(ae=location.href))}}async function Nu(e,t,n,r,o){Q&&Q.abort(),Q=new AbortController;let s=Q.signal,i=++B;r||(Jt+=1,ne&&ne(),X&&X());let a=t==="get"||t==="head",c=new URL(e,location.href);if(a){c.search="";for(let[p,m]of n)c.searchParams.append(p,typeof m=="string"?m:m.name)}ae&&Gi(ae);let l=setTimeout(()=>{Kn(!0),l=null},150),u=Mo(),f=o?sa(o,i,c.href):null,d=!1;try{let p=await Jn(c.href,r,!0,u,a?"GET":t.toUpperCase(),a?null:n,s,i);d=!!(p&&p.ok),!a&&i===B&&(W.clear(),O.clear())}finally{f&&ia(f,i,c.href,d),l&&clearTimeout(l),i===B&&(Kn(!1),typeof location<"u"&&(ae=location.href))}}function nn(){let e=xt(document.body);return e?[...e.entries()].map(([t,n])=>`${t}:${n.routeKey}`).join(","):""}function Io(){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 Zi(){try{if(typeof matchMedia=="function")return matchMedia("(hover: hover) and (pointer: fine)").matches}catch{}return!0}function qu(e){let t=e.getAttribute("rel");return t?t.toLowerCase().split(/\s+/).filter(Boolean):[]}function Gn(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.hash||or.test(n.pathname)?null:t}function Xi(e){if(e.hasAttribute("data-no-prefetch"))return!0;let t=qu(e);return t.includes("external")||t.includes("no-prefetch")}function Yn(e){if(Xi(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 Zi()?"intent":"viewport"}}function kt(e){if(!he||typeof fetch!="function"||Io())return;let t=ke(e);if(typeof location<"u"&&t===ke(location.href)||Be.has(t)||Zt.has(t))return;let n=O.get(t);if(n&&Eo()-n.at<Yi)return;if(Be.size>=Ji){for(Zt.add(t),At.push(e);At.length>Ru;){let s=At.shift();Zt.delete(ke(s))}return}let r=nn();if(!r&&typeof document<"u"&&document.readyState==="loading")return;Be.add(t);let o={"x-webjs-router":"1","x-webjs-prefetch":"1"};r&&(o["x-webjs-have"]=r),fetch(e,{method:"GET",headers:o,credentials:"same-origin",cache:"no-cache"}).then(async s=>{let i=s.headers.get("content-type")||"";if(!/^text\/html\b/i.test(i)||s.status>=400)return;let a=s.headers.get("x-webjs-build"),c=s.headers.get("x-webjs-src"),l=typeof document<"u"?document.querySelector('script[type="importmap"]'):null,u=l?l.getAttribute("data-webjs-build"):null,f=l?l.getAttribute("data-webjs-src"):null;(a&&u&&a!==u||c&&f&&c!==f)&&(W.clear(),O.clear());let d=s.redirected&&s.url?s.url:e,p=await s.text();Iu(t,{html:p,build:a,src:c,finalUrl:d,at:Eo()})}).catch(()=>{}).finally(()=>{Be.delete(t),Ou()})}function Ou(){for(;At.length&&Be.size<Ji;){let e=At.shift();Zt.delete(ke(e)),kt(e)}}function Iu(e,t){for(O.has(e)&&O.delete(e),O.set(e,t);O.size>Tu;){let n=O.keys().next().value;O.delete(n)}typeof document<"u"&&document.dispatchEvent(new CustomEvent("webjs:prefetch",{detail:{url:t.finalUrl,key:e,from:"prefetch"}}))}function Qi(e){let t=/<!--wj:children:([^>]*?)-->/.exec(e||"");return t?t[1]:null}function ea(e,t){let n=ke(e),r=O.get(n);if(!r)return null;if(Eo()-r.at>=Yi)return O.delete(n),null;let o=Qi(r.html);return o&&!new Set(String(t??(nn()||"")).split(",").filter(Boolean)).has(o)?(O.delete(n),null):(O.delete(n),r)}function Eo(){try{if(typeof performance<"u"&&typeof performance.now=="function")return performance.now()}catch{}return 0}function vt(e){if(!he)return;let t=na(e.target);if(!t)return;let n=Yn(t);if(n==="none"||n==="render")return;let r=Gn(t);if(r){if(e.type==="touchstart"){kt(r);return}n==="intent"&&(Xt===t&&_t||(sr(),Xt=t,_t=setTimeout(()=>{_t=null,Xt=null,kt(r)},Lu)))}}function ta(e){let t=na(e.target);t&&t===Xt&&sr()}function sr(){_t&&(clearTimeout(_t),_t=null),Xt=null}function Po(){for(let e of Qt)clearTimeout(e);Qt.clear(),wt=new WeakMap}function na(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=r&&r.host?r.host:null}return null}function xo(){if(typeof document>"u"||Io())return;let e=typeof IntersectionObserver<"u";e&&(xe?(xe.disconnect(),Po()):xe=new IntersectionObserver(t=>{for(let n of t){let r=n.target;if(n.isIntersecting){if(wt.has(r))continue;let o=setTimeout(()=>{Qt.delete(o),wt.delete(r),xe.unobserve(r);let s=Gn(r);s&&Yn(r)==="viewport"&&kt(s)},ju);wt.set(r,o),Qt.add(o)}else{let o=wt.get(r);o&&(clearTimeout(o),Qt.delete(o),wt.delete(r))}}},{threshold:.5}));for(let t of document.querySelectorAll("a[href]")){let n=Yn(t);if(n==="render"){let r=Gn(t);r&&kt(r)}else n==="viewport"&&e&&xe.observe(t)}}function Pu(e){if(typeof document>"u"||!document.body)return!1;let t=xt(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 Ao(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||Pu(t)||typeof location<"u"&&(Ee("navigation-error-unrecoverable",e),Ue(e))}async function Jn(e,t,n,r,o,s,i,a,c){o=o||"GET";let l=typeof a=="number"?a:B,u,f=null,d=null,p=null,m=null,w=!1,b=e,_=t?ra(t,l):null;try{try{let S=o==="GET"&&!s&&!t?ea(e,r?r.haveKeys:void 0):null;if(S)u=S.html,d=S.build,p=S.src,b=S.finalUrl,m=200,w=!0;else{let E={"x-webjs-router":"1"},T=nn();T&&(E["x-webjs-have"]=T),t&&(E["x-webjs-frame"]=t),s!=null&&o!=="GET"&&o!=="HEAD"&&(E.accept=xi+", text/html");let k={method:o,headers:E,credentials:"same-origin",cache:"no-cache"};i&&(k.signal=i),s!=null&&o!=="GET"&&o!=="HEAD"&&(k.body=s);let v=await fetch(e,k);m=v.status,w=v.ok;let A=yo(v.headers.get("x-webjs-invalidate"));A.length&&bo(A);let h=v.headers.get("content-type")||"",y=/^text\/html\b/i.test(h);if(h.toLowerCase().indexOf(xi)===0){let R=await v.text();return l===B&&(Yt(r),fo(R)),{ok:w,status:m,aborted:!1}}if(v.redirected&&v.url&&(b=v.url),v.status===204||v.status===205)return l===B&&n&&history.pushState(null,"",b),{ok:w,status:m,aborted:!1};if(!y)return l===B&&(Yt(r),Ao(e,v.status,null)),{ok:!1,status:m,aborted:!1};d=v.headers.get("x-webjs-build"),p=v.headers.get("x-webjs-src");let N=await ua(v);u=N.shell,N.streaming&&(f=N)}}catch(S){return S&&S.name==="AbortError"?{ok:!1,status:null,aborted:!0}:l!==B?{ok:!1,status:null,aborted:!0}:(Yt(r),Ao(e,null,S instanceof Error?S:new Error(String(S))),{ok:!1,status:null,aborted:!1})}if(l!==B){if(f&&f.reader)try{f.reader.cancel()}catch{}return{ok:!1,status:m,aborted:!0}}let g=To(u);if(!g)return Yt(r),Ao(e,null,new Error("navigation response did not parse as HTML")),{ok:!1,status:m,aborted:!1};if($o(g,t,!!c,b,d,p)==="discard"){if(f&&f.reader)try{f.reader.cancel()}catch{}return{ok:w,status:m,aborted:!1}}if(n&&history.pushState(null,"",b),n){let S=new URL(b);if(S.hash){let E=document.getElementById(S.hash.slice(1));E?E.scrollIntoView():(Ci(),window.scrollTo({left:0,top:0,behavior:"instant"}))}else Ci(),window.scrollTo({left:0,top:0,behavior:"instant"})}return f&&(f.reader||f.rest)&&en.then(()=>pa(f.reader,f.dec,f.rest,()=>l===B)),document.dispatchEvent(new CustomEvent("webjs:navigate",{detail:{url:b,frameId:t,from:"navigate"}})),{ok:w,status:m,aborted:!1}}finally{_&&oa(_,l)}}function ra(e,t){if(typeof document>"u")return null;let n=null;try{n=document.querySelector(`webjs-frame#${CSS.escape(e)}`)}catch{n=document.getElementById(e)}if(!n)return null;let r=Zn.has(n);return Zn.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 oa(e,t){if(Zn.get(e)!==t)return;Zn.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 sa(e,t,n){let r=Xn.has(e);return Xn.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 ia(e,t,n,r){if(Xn.get(e)!==t)return;Xn.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 Ni(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+=pe(r);return n}function Do(){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 Hn(e,t){let n=typeof document<"u"?document.startViewTransition:void 0;if(Do()&&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 aa(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),tn.add(r))}}function ir(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=Du(t,o);if(!s||s===r)continue;let i=s.parentNode;if(i)i.replaceChild(r,s),tn.add(r);else{let a=t.indexOf(s);a!==-1&&(t[a]=r,tn.add(r))}}}function Du(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}function $u(e){if(!(!e||!e.start))for(let t=e.start.nextSibling;t&&t!==e.end;t=t.nextSibling)t.nodeType===1&&St(t)}function $o(e,t,n,r,o,s){let i=!1,a=()=>{if(!i){i=!0;try{Fn(e,{frame:!!t})}catch{}}};try{for(let p of e.querySelectorAll("[data-wj-host]"))p.setAttribute("data-wj-serialized","")}catch{}try{typeof sessionStorage<"u"&&(!r||t||n)&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}if(r&&!t&&!n){let p=document.querySelector('script[type="importmap"]'),m=p?p.getAttribute("data-webjs-build"):null,w=!1;if(o&&m&&(w=o!==m),!w&&e.head&&e.head.children.length>0){let b=Ni(document),_=Ni(e);b!==_&&(w=!0)}if(w&&typeof location<"u"){W.clear(),O.clear();try{let b="webjs:importmap-reload";if(sessionStorage&&sessionStorage.getItem(b))sessionStorage.removeItem(b),Ee("deploy-mismatch-reload-suppressed",r,!1);else{sessionStorage&&sessionStorage.setItem(b,"1"),Ee("deploy-mismatch",r),Ue(r);return}}catch{Ee("deploy-mismatch",r),Ue(r);return}}else if(!w){let b=p?p.getAttribute("data-webjs-src"):null;s&&b&&s!==b&&(W.clear(),O.clear(),p&&p.setAttribute("data-webjs-src",s));try{typeof sessionStorage<"u"&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}}}if(t){a();let p=document.querySelector(`webjs-frame#${CSS.escape(t)}`),m=e.querySelector(`webjs-frame#${CSS.escape(t)}`);if(p&&m){No(e.head),en=Hn(()=>{Wu(p,m),rr(p),St(p),Ti(e.body),Vn()},()=>St(p));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}});(p||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.`);return}let c=xt(document.body),l=xt(e.body),u=c&&l?Ki(c,l):null;if(u){a();let{mode:p,live:m,incoming:w}=u;No(e.head),en=Hn(()=>{p==="replace"?Mu(m,w):Fu(m,w,e),Vu(m.start,w.start),Ti(e.body),Vn()},()=>$u(m));return}if(r&&!n&&typeof location<"u"){Ee(c?l?"no-shared-boundary":"incoming-boundaries-malformed":"live-boundaries-malformed",r),Ue(r);return}if(r&&n)return Ee("revalidation-discarded",r,!1),"discard";a(),la(e.head),aa(document.body,e.body);let f=[...e.body.childNodes];en=Hn(()=>{document.body.replaceChildren(...f),rr(document.body),St(document.body),Vn()},()=>St(document.body))}function Vn(){let e=document.activeElement;!e||e===document.body||e===document.documentElement||typeof e.blur=="function"&&e.blur()}function Mu(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));ir(r,o);for(let s of r)s.parentNode===n&&n.removeChild(s);for(let s of o)n.insertBefore(s,e.end);Uo(e)}function Fu(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));ir(o,s),Bu(r,e.start,e.end,o,s),Uo(e)}function Bu(e,t,n,r,o){let s=new Map;for(let c of r){if(c.nodeType!==1)continue;let l=Et(c);l&&s.set(l,c)}let i=n,a=[];for(let c of o){if(c.nodeType===1){let l=Et(c);if(l&&s.has(l)){let u=s.get(l);Qn(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 Qn(e,t){if(e===t)return;if(e.tagName!==t.tagName){e.replaceWith(t);return}let n=new Set;for(let r of t.attributes)n.add(r.name),!ko.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])ko.has(r.name)||n.has(r.name)||e.removeAttribute(r.name);if(Uu(e)){zu(e,t);return}ar(e,t)}function Uu(e){let t=e;return t[Symbol.for("webjs.instance")]!=null||t[P]!=null}function Hu(e,t){for(let n=e.parentElement;n&&n!==t;n=n.parentElement)if(n.tagName.includes("-"))return!1;return!0}function er(e){let t=new Map,n=`slot[${M}][${Y}="${re}"]`;for(let r of e.querySelectorAll(n)){let o=r;if(!Hu(o,e)||ks(e,o))continue;let s=!1;for(let a=o.parentElement;a&&a!==e;a=a.parentElement)if(a.tagName==="SLOT"&&a.hasAttribute(M)&&a.getAttribute(Y)===re){s=!0;break}if(s)continue;let i=te(o.getAttribute("name"));t.has(i)||t.set(i,o)}return t}function Vu(e,t){let n=e.parentNode;if(!n||n.nodeType!==1)return;let r=n;if(r.tagName!=="SLOT"||!r.hasAttribute(M))return;let o=null;for(let f=r.parentElement;f;f=f.parentElement){if(f[P]){o=f;break}if(f.tagName.includes("-"))return}if(!o)return;let s=te(r.getAttribute("name"));$e(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=er(o),u=er(c);for(let f of new Set([...l.keys(),...u.keys()])){if(f===s)continue;let d=u.get(f);d?$e(o,f,[...d.childNodes].map(p=>document.importNode(p,!0))):l.get(f)&&$e(o,f,null)}}function zu(e,t){if(!e[P])return;let n=er(e),r=er(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?(ar(i,a),$e(e,s,[...i.childNodes])):a?$e(e,s,[...a.childNodes].map(c=>document.importNode(c,!0))):$e(e,s,null)}}function ar(e,t){let n=[...e.childNodes],r=[...t.childNodes].map(a=>document.importNode(a,!0));ir(n,r);let o=new Map;for(let a of n){if(a.nodeType!==1)continue;let c=Et(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=Et(c);if(l&&o.has(l)){let f=o.get(l);Qn(f,c),s.push(f),o.delete(l);continue}let u=n[a];if(u&&u.nodeType===1&&!Et(u)&&u.tagName===c.tagName){Qn(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 Et(e){let t=e.getAttribute("data-key");return t?`${e.tagName}:k:${t}`:e.id?`${e.tagName}:i:${e.id}`:null}function Mo(){let e=xt(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=nn(),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:B,haveKeys:s}}function Yt(e){if(!e||e.token!==B)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 Wu(e,t){ar(e,t)}function ca(){if(typeof document>"u")return"";let e=document.querySelector('meta[name="csp-nonce"]');return e&&e.getAttribute("content")||""}function tr(e){let t=document.createElement("script");for(let r of e.attributes)r.name!=="nonce"&&t.setAttribute(r.name,r.value);let n=ca();return n&&t.setAttribute("nonce",n),t.textContent=e.textContent,t}function Fo(e){if(!e.hasAttribute("nonce"))return e.cloneNode(!0);let t=e.cloneNode(!0),n=ca();return n?t.setAttribute("nonce",n):t.removeAttribute("nonce"),t}function pe(e){if(!e.hasAttribute("nonce"))return e.outerHTML;let t=e.cloneNode(!0);return t.removeAttribute("nonce"),t.outerHTML}function nr(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 Ku(e){if(!e.querySelector("meta"))return;let t=o=>{let s=new Map;for(let i of o.querySelectorAll("meta")){let a=nr(i);if(!a||a===Co)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(pe).join(`
2
- `),c=i.map(pe).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(Fo(l))}}for(let[o,s]of r)if(!n.has(o))for(let i of s)i.remove()}function No(e){let t=e.querySelector("title");t&&(document.title=t.textContent||"");let n=new Set;for(let r of document.head.children)n.add(pe(r));for(let r of e.children)r.tagName==="SCRIPT"&&r.getAttribute("type")==="importmap"||r.tagName!=="BASE"&&r.tagName!=="TITLE"&&(r.tagName==="META"&&nr(r)||n.has(pe(r))||(r.tagName==="SCRIPT"?document.head.appendChild(tr(r)):document.head.appendChild(Fo(r))));Ku(e)}function Gu(e){return e.tagName==="STYLE"?!0:e.tagName==="LINK"&&(e.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}function la(e){let t=document.head,n=e.querySelector("title");n&&(document.title=n.textContent||"");let r=new Set;for(let s of t.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&r.add(pe(s));let o=new Set;for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&o.add(pe(s));for(let s of[...t.children])s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(Gu(s)||s.tagName==="META"&&nr(s)===Co||o.has(pe(s))||s.remove());for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(s.tagName==="META"&&nr(s)===Co||r.has(pe(s))||(s.tagName==="SCRIPT"?t.appendChild(tr(s)):t.appendChild(Fo(s))))}function St(e){typeof customElements>"u"||Bo(e)}function Bo(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&&Bo(n.shadowRoot))}function Ti(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 ua(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 fa(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 da(e,t){let n=document.getElementById(e);if(!n){xu(e);return}let r=document.createElement("template");r.innerHTML=t;let o=[...r.content.childNodes];n.replaceWith(r.content);for(let s of o)s.nodeType===1&&Bo(s)}async function pa(e,t,n,r){let o=n,s=()=>{let i;for(;i=fa(o);){if(!r())return!1;da(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{}}function rr(e){if(e.tagName==="SCRIPT"){let n=tr(e);return e.replaceWith(n),n}let t=[];tn.has(e)&&t.push(e);for(let n of e.querySelectorAll("[data-webjs-permanent]"))tn.has(n)&&t.push(n);for(let n of e.querySelectorAll("script"))t.length&&t.some(r=>r!==n&&r.contains(n))||n.replaceWith(tr(n));return e}function Uo(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=rr(n);r.isConnected!==!1&&St(r)}}function Yu(e){return O.get(ke(e))||null}function Ju(){return Be.size}function Zu(){O.clear(),Be.clear(),At.length=0,Zt.clear(),sr(),Po()}function Xu(e){Ue=e||(t=>{location.href=t})}function Qu(){return B}function ef(){return++B}function tf(){return ae}function nf(e){ae=e}function rf(){_o.clear(),vo=!1}function of(e,t){return zi(e,t)}function sf(e){return or.test(e)}var xi,yt,he,Q,B,So,ae,Un,wu,Ri,zn,ne,X,Jt,or,Ue,Vi,_o,Wn,ki,vo,ku,W,Tu,Yi,Ji,Ru,Lu,ju,O,Be,At,Zt,_t,Xt,xe,wt,Qt,Zn,Xn,tn,en,ko,Co,lo=J(()=>{co();Mn();Mn();Qe();Si();go();wo();An();xi="text/vnd.webjs-stream.html";yt=null;he=!1,Q=null,B=0,So=null;ae=null,Un=null,wu=2e3,Ri=500,zn=["wheel","touchmove","keydown","pointerdown"],ne=null;X=null,Jt=0;or=/\.(?: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,Ue=e=>{location.href=e};Vi="_top";_o=new Set;Wn="webjs:nav-fallback",ki=!1;vo=!1;ku=16,W=new Map;Tu=8,Yi=3e4,Ji=3,Ru=24,Lu=100,ju=250,O=new Map,Be=new Set,At=[],Zt=new Set,_t=null,Xt=null,xe=null,wt=new WeakMap,Qt=new Set;Zn=new WeakMap;Xn=new WeakMap;tn=new WeakSet;en=Promise.resolve();ko=new Set(["value","checked","selected","indeterminate","disabled","open","popover"]);Co="name=csp-nonce";(typeof window>"u"||window.__WEBJS_CLIENT_ROUTER__!==!1)&&Ro()});function ur(e,...t){return{_$webjs:"template",strings:e,values:t}}function F(e){return!!e&&typeof e=="object"&&e._$webjs==="template"}var $="wjm-";function ba(e,...t){let n=e[0];for(let r=1;r<e.length;r++)n+=String(t[r-1]??"")+e[r];return{_$webjsCss:!0,text:n}}function Ve(e){return!!e&&typeof e=="object"&&e._$webjsCss===!0}function fr(e,t){if(!(!t||!t.length))if("adoptedStyleSheets"in e&&typeof CSSStyleSheet<"u"){let n=t.map(r=>{let o=new CSSStyleSheet;return o.replaceSync(r.text),o});e.adoptedStyleSheets=n}else{let n=e,r=document.createElement("style");r.textContent=t.map(o=>o.text).join(`
4
- `),n.appendChild(r)}}function rn(e){return!e||!e.length?"":`<style>${e.map(t=>t.text).join(`
5
- `)}</style>`}on();Tt();Qe();var ns=Symbol.for("webjs.repeat");function rs(e,t,n){return{[ns]:!0,items:[...e],keyFn:t,templateFn:n}}function Ce(e){return!!e&&typeof e=="object"&&e[ns]===!0}function wr(e){return{_$webjs:"unsafe-html",value:String(e??"")}}function et(e){return!!e&&typeof e=="object"&&e._$webjs==="unsafe-html"}function Ta(e){return{_$webjs:"live",value:e}}function Ne(e){return!!e&&typeof e=="object"&&e._$webjs==="live"}function Ra(e,t){return{_$webjs:"keyed",key:e,value:t}}function Te(e){return!!e&&typeof e=="object"&&e._$webjs==="keyed"}function La(e,t){return{_$webjs:"guard",deps:e,fn:t}}function Re(e){return!!e&&typeof e=="object"&&e._$webjs==="guard"}function ja(e){return{_$webjs:"template-content",template:e}}function tt(e){return!!e&&typeof e=="object"&&e._$webjs==="template-content"}function qa(e){return{_$webjs:"ref",target:e}}function Le(e){return!!e&&typeof e=="object"&&e._$webjs==="ref"}function Oa(){return{value:void 0}}function Ia(e){return{_$webjs:"cache",value:e}}function je(e){return!!e&&typeof e=="object"&&e._$webjs==="cache"}function Pa(...e){return{_$webjs:"until",args:e}}function qe(e){return!!e&&typeof e=="object"&&e._$webjs==="until"}function Da(e,t){return{_$webjs:"async-append",iterable:e,mapper:t}}function nt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-append"}function $a(e,t){return{_$webjs:"async-replace",iterable:e,mapper:t}}function rt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-replace"}function Ma(e){return{_$webjs:"watch",signal:e}}function Oe(e){return!!e&&typeof e=="object"&&e._$webjs==="watch"}var ee=null,be=!1,st=0,ot=null,Sr=0,os=(e,t)=>Object.is(e,t),un=()=>{},ss=()=>!1;function is(e,t){e.liveConsumers||(e.liveConsumers=new Set);let n=e.liveConsumers.size===0;if(e.liveConsumers.add(t),n){if(e.producers&&e.producers.length>0)for(let r of e.producers)is(r,e);if(e.watched)try{e.watched.call(e.wrapper)}catch(r){console.error(r)}}}function Ot(e,t){if(e.liveConsumers&&(e.liveConsumers.delete(t),e.liveConsumers.size===0)){if(e.producers&&e.producers.length>0)for(let n of e.producers)Ot(n,e);if(e.unwatched)try{e.unwatched.call(e.wrapper)}catch(n){console.error(n)}}}function kr(e){if(be)throw new Error("Signal read during notification phase");if(ee===null)return;let t=ee,n=t.nextProducerIndex++;n<t.producers.length&&t.producers[n]!==e&&vr(t)&&Ot(t.producers[n],t),t.producers[n]!==e&&(t.producers[n]=e,vr(t)&&is(e,t)),t.producerLastReadVersions[n]=e.version}function vr(e){return e.consumerIsAlwaysLive||e.liveConsumers&&e.liveConsumers.size>0}function as(e){if(!e.liveConsumers||e.liveConsumers.size===0)return;let t=be;be=!0;try{for(let n of e.liveConsumers)n.dirty||Fa(n)}finally{be=t}}function Fa(e){e.dirty=!0,as(e),e.consumerMarkedDirty.call(e.wrapper||e)}function fn(e){if(!(!e.dirty&&e.lastCleanEpoch===st)){if(!e.producerMustRecompute()&&!Ba(e)){e.dirty=!1,e.lastCleanEpoch=st;return}e.producerRecomputeValue(),e.dirty=!1,e.lastCleanEpoch=st}}function Ba(e){for(let t=0;t<e.producers.length;t++){let n=e.producers[t],r=e.producerLastReadVersions[t];if(r!==n.version||(fn(n),r!==n.version))return!0}return!1}function Er(e){e&&(e.nextProducerIndex=0);let t=ee;return ee=e,t}function xr(e,t){if(ee=t,!!e){if(vr(e))for(let n=e.nextProducerIndex;n<e.producers.length;n++)Ot(e.producers[n],e);for(;e.producers.length>e.nextProducerIndex;)e.producers.pop(),e.producerLastReadVersions.pop()}}var dn=class{constructor(t,n){this.__value=t,this.version=0,this.lastCleanEpoch=st,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.liveConsumers=void 0,this.consumerAllowSignalWrites=!0,this.consumerIsAlwaysLive=!1,this.producerMustRecompute=ss,this.producerRecomputeValue=un,this.consumerMarkedDirty=un,this.wrapper=this,this.__isSignal=!0,this.__equal=n?.equals||os,this.watched=n?.[Cr],this.unwatched=n?.[Nr]}get(){return kr(this),this.__value}peek(){return this.__value}set(t){if(be)throw new Error("Signal write during notification phase");this.__equal.call(this,this.__value,t)||(this.__value=t,this.version++,st++,ot!==null?cs(this):as(this))}};function cs(e){let t=be;be=!0;try{if(!e.liveConsumers)return;for(let n of e.liveConsumers)n.dirty||(n.dirty=!0,n.__isWatcher?ot.add(n):cs(n))}finally{be=t}}var Ar=Symbol("unset"),_r=Symbol("computing"),ln=Symbol("errored"),It=class{constructor(t,n){this.__fn=t,this.__value=Ar,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||os,this.watched=n?.[Cr],this.unwatched=n?.[Nr];let r=this;this.producerMustRecompute=function(){return r.__value===Ar||r.__value===_r},this.producerRecomputeValue=function(){if(r.__value===_r)throw new Error("Detected cycle in computations.");let o=r.__value;r.__value=_r;let s=Er(r),i,a=!1;try{i=r.__fn.call(r.wrapper)}catch(l){i=ln,r.__error=l,a=!0}finally{xr(r,s)}if(!a&&(o!==Ar&&o!==ln)&&r.__equal.call(r.wrapper,o,i)){r.__value=o;return}r.__value=i,r.version++},this.consumerMarkedDirty=un}get(){if(fn(this),kr(this),this.__value===ln)throw this.__error;return this.__value}peek(){if(fn(this),this.__value===ln)throw this.__error;return this.__value}},pn=class{constructor(t){this.__notify=t,this.version=0,this.lastCleanEpoch=st,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!0,this.producerMustRecompute=ss,this.producerRecomputeValue=un,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=Er(this);try{for(let r of t)kr(r),r.__isComputed&&fn(r)}finally{xr(this,n)}this.dirty=!1}unwatch(...t){for(let n=this.producers.length-1;n>=0;n--)t.includes(this.producers[n])&&(Ot(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=Er(this),r;try{r=t()}finally{xr(this,n)}return this.dirty=!1,r}dispose(){for(let t of this.producers)Ot(t,this);this.producers=[],this.producerLastReadVersions=[],this.__notify=null}},Cr=Symbol("watched"),Nr=Symbol("unwatched");function Ua(e){let t=ee;ee=null;try{return e()}finally{ee=t}}function Ha(e){return e.producers.slice()}function Va(e){return e.liveConsumers?[...e.liveConsumers]:[]}function za(e){return!!e.liveConsumers&&e.liveConsumers.size>0}function Wa(e){return e.producers.length>0}function Ka(){return ee&&ee.__isComputed?ee:null}function Ga(e){Sr++,ot===null&&(ot=new Set);try{e()}finally{if(Sr--,Sr===0){let t=ot;ot=null;for(let n of t)n.__fire()}}}var Pt={State:dn,Computed:It,subtle:{Watcher:pn,untrack:Ua,introspectSources:Ha,introspectSinks:Va,hasSinks:za,hasSources:Wa,currentComputed:Ka,watched:Cr,unwatched:Nr}};function Ya(e,t){return new dn(e,t)}function Ja(e,t){return new It(e,t)}function Za(e){return!!(e&&typeof e=="object"&&e.__isSignal===!0)}function Xa(e){let t=!1,n=!1,r=new It(e),o=new pn(()=>{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())}}An();function js(e,t){let n=e&&e[P]?e:null;return n?yn(n,t):t()}var Vr=new WeakMap,zr=new WeakMap,_n=Symbol.for("webjs.instance"),K=null;function xn(e){return e?e.nodeType===11&&e.host?e.host:e:null}function Kr(e,t){let n=e.__commitOwner,r=K;n&&(K=n);try{t()}finally{K=r}}function dt(e,t){let n=t,r=n[V];n[V]=!0;let o=K;K=t;try{let s=n[_n];if(F(e)){let i=e;if(s&&s.strings===i.strings){ut(s,i.values);return}s&&Ls(s,t);let a=t.firstChild;a&&a.nodeType===8&&a.data==="webjs-hydrate"&&a.remove(),n[_n]=null;let c=Sc(i,t);n[_n]=c;return}if(s&&Ls(s,t),n[_n]=null,t.replaceChildren(),e==null||e===!1||e===!0)return;if(Array.isArray(e)){for(let i of e){let a=document.createTextNode(String(i??""));t.appendChild(a)}return}t.appendChild(document.createTextNode(String(e)))}finally{K=o,n[V]=r,r||Hr(n)}}function kn(e){let{strings:t}=e,n=Vr.get(t);if(n)return n;let r=[],o="",s="text",i="",a=0,c="",l=0,u=null,f="",d="";for(let w=0;w<t.length;w++){let b=t[w];for(let _=0;_<b.length;_++){let g=b[_];switch(s){case"text":o+=g,g==="<"&&(s="tag-open");break;case"tag-open":o+=g,g==="!"?s="bang-1":g==="/"?(s="tag-name",f=""):/[a-zA-Z]/.test(g)?(s="tag-name",f=g.toLowerCase()):s="text";break;case"bang-1":o+=g,s=g==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=g,g==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=g,g==="-"?l+=1:(g===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=g,g===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(d="")):/\s/.test(g)?s="in-tag":f+=g.toLowerCase();break;case"in-tag":o+=g,g===">"?(s=f==="script"||f==="style"?"rawtext":"text",s==="rawtext"&&(d="")):!/\s/.test(g)&&g!=="/"&&(s="attr-name",i=g,a=o.length-1);break;case"rawtext":o+=g,d=(d+g.toLowerCase()).slice(-9),(d.endsWith("<\/script>")||d.endsWith("</style>"))&&(s="text",d="",f="");break;case"attr-name":g==="="?(s="after-eq",o+=g):/\s/.test(g)?(s="in-tag",i="",o+=g):g===">"?(s="text",i="",o+=g):(i+=g,o+=g);break;case"after-eq":g==='"'||g==="'"?(s="attr-quoted",c=g,o+=g):/\s/.test(g)?(s="in-tag",i="",o+=g):g===">"?(s="text",i="",o+=g):(s="attr-unquoted",o+=g);break;case"attr-unquoted":/\s/.test(g)?(s="in-tag",i="",o+=g):(g===">"&&(s="text",i=""),o+=g);break;case"attr-quoted":o+=g,g===c&&(s="in-tag",i="");break;case"skip-attr":if(g===c){if(u){let x=u.firstPartIdx,S=[];for(let h=x;h<r.length;h++)(r[h].kind==="noop"||r[h].kind==="attr-mixed")&&S.push(h);let E=[],T=t[S[0]],k=T.lastIndexOf(c);E.push(k>=0?T.slice(k+1):T);for(let h=1;h<S.length;h++)E.push(t[S[h]]);let v=t[S[S.length-1]+1],A=v.indexOf(c);E.push(A>=0?v.slice(0,A):v),r[x]={kind:"attr-mixed",path:[],name:u.name,statics:E,group:S};for(let h=1;h<S.length;h++)r[S[h]]={kind:"noop",path:[],mixedAnchor:x};u=null}s="in-tag",i=""}break}}if(w<t.length-1){let _=r.length;if(s==="comment"){l=0,r.push({kind:"noop",path:[]});continue}if(s==="rawtext"){d="",r.push({kind:"noop",path:[]});continue}if(s==="text")o+=`<!--${$}${_}-->`,r.push({kind:"child",path:[]});else if(s==="in-tag"){let g=`data-${$}${_}`;o+=`${g}=""`,r.push({kind:"element",path:[]})}else if(s==="after-eq"){let g=i[0],x=i.slice(1);if(Nt(g)){o=o.slice(0,a);let S=ze[g],E=`data-${$}${_}`;o+=`${E}=""`,r.push({kind:S,path:[],name:x})}else{o=o.slice(0,a);let S=`data-${$}${_}`;o+=`${S}=""`,r.push({kind:"attr",path:[],name:i})}s="in-tag",i=""}else if(s==="attr-quoted"||s==="attr-unquoted"){o=o.slice(0,a);let g=`data-${$}${_}`;o+=`${g}=""`,u={name:i,firstPartIdx:_},r.push({kind:"noop",path:[]}),s="skip-attr"}else s==="skip-attr"&&r.push({kind:"noop",path:[]})}}let p=document.createElement("template");p.innerHTML=o,mc(p.content,r);let m=gc(p.content,r);return n={templateEl:p,parts:r,formActions:m},Vr.set(t,n),n}function mc(e,t){let n=e.querySelectorAll("slot");for(let r of n){r.setAttribute(M,"");let o=t.length;r.setAttribute(`data-${$}${o}`,""),t.push({kind:"slot",path:[]})}}function gc(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($)){let l=Number(c.slice($.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-${$}`)){let d=Number(f.name.slice(`data-${$}`.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=bc(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 bc(e,t,n){let r=e.localName==="form",o=r?"action":"formaction",s=r?"method":"formmethod",i=r?"enctype":"formenctype",a=t.filter(b=>b.kind==="attr"&&b.name.toLowerCase()===o);if(!a.length)return null;let c=[],l=[],u=[],f=r?[]:t.filter(b=>b.name.toLowerCase()==="name"&&(b.kind==="attr"||b.kind==="attr-mixed"||b.kind==="bool")).map(b=>({i:b.idx,kind:b.kind})),d=!r&&e.hasAttribute("name"),p=!r&&e.hasAttribute("form"),m=!r&&e.hasAttribute("value"),w=r?[]:t.filter(b=>b.name.toLowerCase()==="value"&&(b.kind==="attr"||b.kind==="attr-mixed"||b.kind==="bool")).map(b=>({i:b.idx,kind:b.kind}));for(let b of t){let _=String(b.name).toLowerCase();if(b.kind==="prop"){r?(_==="method"||_==="enctype"||_==="encoding")&&u.push(b.name):Ze(_)&&u.push(b.name);continue}if(_!==s&&_!==i||b.kind!=="attr"&&b.kind!=="attr-mixed"&&b.kind!=="bool")continue;let g=n[b.idx],x={i:b.idx,kind:b.kind};b.kind==="attr-mixed"&&(x.statics=g.statics||[],x.group=g.group||[]),(_===s?c:l).push(x)}return{isForm:r,tag:e.localName,actionIdxs:a.map(b=>b.idx),duplicateAction:a.length>1,staticAction:e.getAttribute(o)!=null,authoredName:d,authoredValue:m,authoredForm:p,propAttrs:u,nameParts:f,valueParts:w,staticMethod:e.getAttribute(s),staticEnctype:e.getAttribute(i),methodParts:c,enctypeParts:l}}function Bt(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(We(lt(n[l]),i,o.tag)){s=l;break}let a=t[s];if(!a||!a.el)continue;let c=lt(n[s]);if(o.isForm)Qo(a.el,c,vn(o.methodParts,o.staticMethod,n),vn(o.enctypeParts,o.staticEnctype,n),o);else{let l=u=>u.some(f=>f.kind==="bool"?!!lt(n[f.i]):!0);wc(a.el,c,o,l(o.nameParts),l(o.valueParts),vn(o.methodParts,o.staticMethod,n),vn(o.enctypeParts,o.staticEnctype,n))}}}function yc(e){(zr.has(e)||e.getAttribute("name")===L)&&(e.getAttribute("name")===L&&e.removeAttribute("name"),e.removeAttribute("value"),zr.delete(e))}function wc(e,t,n,r,o,s,i){let a=typeof t=="function"?an(t):null;if(!a){typeof t=="function"&&ge(null,e.localName),yc(e),es(e,s,i,n.propAttrs);return}Je(n.duplicateAction,e.localName),mr(n.propAttrs,e.localName),n.staticAction&&hr(e.localName),(n.authoredValue||o)&&Ge(e.localName),(n.authoredName||r)&&Ke(e.getAttribute("name")||L,e.localName,!1),(n.authoredForm||e.hasAttribute("form"))&&Ye(e.localName),pr(e.localName,e.getAttribute("type"));let c=br(e.localName,s,i);e.removeAttribute("formaction"),e.setAttribute("name",L),e.setAttribute("value",a),Rt(e,"formmethod",s,c.formMethod),Rt(e,"formenctype",i,c.formEnctype),zr.set(e,a)}function Sc(e,t){let{templateEl:n,parts:r,formActions:o}=kn(e),s=n.content.cloneNode(!0),i=document.createComment(`${$}s`),a=document.createComment(`${$}e`),c=r.map(f=>Cn(f,s)),l=[];for(let f=0;f<e.values.length;f++)se(c[f],e.values[f],void 0,e.values),l.push(e.values[f]);Bt(o,c,e.values),t.replaceChildren(i,...s.childNodes,a);let u=t.nodeType===1&&t[P]?t:null;for(let f of c)f.kind==="slot"&&(u&&f.slotEl&&(f.slotEl[bn]=u),se(f,void 0,void 0,[]));return{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a}}function Cn(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};let r=n;if(e.kind==="event"){let o={kind:"event",el:r,name:e.name||"",handler:null,dispatcher(s){o.handler?.(s)}};return r.addEventListener(o.name,o.dispatcher),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};if(e.kind==="slot")return{kind:"slot",slotEl:r,applied:!1};throw new Error(`unknown part kind ${e.kind}`)}var Rs=Symbol("webjs.commitFailed");function ut(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(Object.is(r,e.lastValues[n]))continue;let o=e.bound[n],s=o.mixedAnchor;try{o.kind==="noop"&&s!=null?se(e.bound[s],t[s],e.lastValues[s],t):se(o,r,e.lastValues[n],t)}catch(i){throw e.lastValues[n]=Rs,o.kind==="noop"&&s!=null&&(e.lastValues[s]=Rs),i}e.lastValues[n]=r}Bt(Vr.get(e.strings)?.formActions??null,e.bound,t)}function Ls(e,t){for(let n of e.bound){if(n.kind==="event"&&n.el.removeEventListener(n.name,n.dispatcher),n.kind==="element"){let r=n.lastTarget;if(r){if(typeof r=="function")try{r(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=Mt(n.slotEl);r&&Ts(r,n.slotEl)}}t.replaceChildren()}function vn(e,t,n){for(let r of e){if(r.kind==="bool")return lt(n[r.i])?"":H;if(r.kind==="attr"){let a=lt(n[r.i]);return a==null?"":String(a)}let o=r.statics||[],s=r.group||[],i=o[0]||"";for(let a=0;a<s.length;a++)i+=String(lt(n[s[a]])??""),i+=o[a+1]||"";return i}return t??H}function lt(e){return Ne(e)?e.value:e}function se(e,t,n,r){if(Ne(t)){let o=t.value;if(e.kind==="prop"&&e.el[e.name]===o||e.kind==="attr"&&e.el.getAttribute(e.name)===String(o)||e.kind==="bool"&&e.el.hasAttribute(e.name)===!!o)return;t=o}switch(e.kind){case"child":vc(e,t);break;case"attr":{t==null||t===!1?e.el.removeAttribute(e.name):We(t,e.name,e.el.localName)||(Z(t,e.name,e.el.localName),e.el.setAttribute(e.name,String(t)));break}case"prop":jt(t,e.name,e.el.localName),e.el[e.name]=t;break;case"bool":Z(t,e.name,e.el.localName),t?e.el.setAttribute(e.name,""):e.el.removeAttribute(e.name);break;case"event":e.handler=typeof t=="function"?t:null;break;case"element":_c(e,t);break;case"attr-mixed":{let o=e,s=o.statics[0];for(let i=0;i<o.group.length;i++){let a=r?r[o.group[i]]:t;Z(a,e.name,e.el.localName),s+=String(a??""),s+=o.statics[i+1]||""}e.el.setAttribute(e.name,s);break}case"slot":{if(e.applied)break;let o=e.slotEl,s=()=>{let a=Mt(o);if(!a){e.applied=!0;return}if(!a.contains(o)){a.isConnected?queueMicrotask(s):e.applied=!0;return}if(e.applied=!0,Ac(o))return;let c=document.createDocumentFragment();for(;o.firstChild;)c.appendChild(o.firstChild);o[$t]=c,queueMicrotask(()=>fe(a))},i=Mt(o);i&&i.contains(o)?s():queueMicrotask(s);break}case"noop":break}}function Mt(e){let t=e[bn];if(t&&t.isConnected)return t;let n=e.parentElement;for(;n;){if(n[P])return n;n=n.parentElement}return null}function Ac(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 _c(e,t){let n=e,r=Le(t)?t.target:void 0,o=n.__refTarget,s=r!==o;if(s&&o)if(typeof o=="function")try{o(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(void 0)}catch{}try{r(e.el)}catch{}}else typeof r=="object"&&(r.value=e.el);n.__refElement=e.el,e.lastTarget=r}}function vc(e,t){return qc(e,t),oe(e,t)}function oe(e,t){return js(e.marker&&e.marker.parentNode,()=>Ec(e,t))}function Ec(e,t){let n=e.marker;if(et(t)){Se(e);let o=String(t.value??""),s=document.createElement("template");s.innerHTML=o;let i=[...s.content.childNodes],a=document.createDocumentFragment();for(let c of i)a.appendChild(c);n.parentNode?.insertBefore(a,n),e.child=i;return}if(Te(t)){let o=t,s=e.__keyedKey;s!==void 0&&!Object.is(s,o.key)&&Se(e),e.__keyedKey=o.key,oe(e,o.value);return}if(Re(t)){let o=t,s=e.__guardDeps,i=o.deps;if(s!==void 0&&(Array.isArray(s)&&Array.isArray(i)?jc(s,i):Object.is(s,i)))return;let a=Array.isArray(i)?i.slice():i;oe(e,o.fn()),e.__guardDeps=a;return}if(tt(t)){Se(e);let o=t.template;if(o&&o.content){let s=o.content.cloneNode(!0),i=[...s.childNodes];n.parentNode?.insertBefore(s,n),e.child=i}return}if(Le(t))return;if(je(t))return Oc(e,t.value);if(qe(t))return Ic(e,t.args);if(Oe(t))return Pc(e,t.signal);if(nt(t))return Dc(e,t);if(rt(t))return $c(e,t);if(Ce(t)){if(e.child&&e.child.kind==="repeat"){Cc(e,t);return}Se(e);let o={kind:"repeat",map:new Map};e.child=o,kc(n,o,t);return}if(Array.isArray(t)){if(e.child&&e.child.kind==="array"){Rc(e,t);return}Se(e);let o={kind:"array",items:[]};e.child=o,Tc(n,o,t);return}if(e.child){let o=e.child;if(o.kind==="repeat")qs(o),e.child=void 0;else if(o.kind==="array")Is(o),e.child=void 0;else if(o.kind==="async-stream")Ms(o),e.child=void 0;else if("strings"in e.child){let s=e.child;if(F(t)&&s.strings===t.strings){ut(s,t.values);return}ft(s.startNode,s.endNode),e.child=void 0}else{for(let s of e.child)s.parentNode&&s.parentNode.removeChild(s);e.child=void 0}}if(t==null||t===!1||t===!0)return;if(F(t)){let o=t,{templateEl:s,parts:i,formActions:a}=kn(o),c=s.content.cloneNode(!0),l=document.createComment(`${$}s`),u=document.createComment(`${$}e`),f=i.map(m=>Cn(m,c)),d=[];for(let m=0;m<o.values.length;m++)se(f[m],o.values[m],void 0,o.values),d.push(o.values[m]);Bt(a,f,o.values);let p=[l,...c.childNodes,u];n.parentNode?.insertBefore(xc(p),n);for(let m of f)m.kind==="slot"&&se(m,void 0,void 0,[]);e.child={strings:o.strings,bound:f,lastValues:d,startNode:l,endNode:u};return}let r=document.createTextNode(String(t));n.parentNode?.insertBefore(r,n),e.child=[r]}function xc(e){let t=document.createDocumentFragment();for(let n of e)t.appendChild(n);return t}function ft(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 Gr(e){let{templateEl:t,parts:n,formActions:r}=kn(e),o=t.content.cloneNode(!0),s=document.createComment(`${$}s`),i=document.createComment(`${$}e`),a=n.map(u=>Cn(u,o)),c=[];for(let u=0;u<e.values.length;u++)se(a[u],e.values[u],void 0,e.values),c.push(e.values[u]);Bt(r,a,e.values);for(let u of a)u.kind==="slot"&&se(u,void 0,void 0,[]);let l=document.createDocumentFragment();for(l.appendChild(s);o.firstChild;)l.appendChild(o.firstChild);return l.appendChild(i),{inst:{strings:e.strings,bound:a,lastValues:c,startNode:s,endNode:i},frag:l}}function Ft(e){for(let t of e.bound)if(t.kind==="event"&&t.el.removeEventListener(t.name,t.dispatcher),t.kind==="element"){let n=t.lastTarget;if(n){if(typeof n=="function")try{n(void 0)}catch{}else if(typeof n=="object")try{n.value=void 0}catch{}t.lastTarget=void 0,t.__lastEl=void 0}}}function kc(e,t,n){let{items:r,keyFn:o,templateFn:s}=n,i=e.parentNode;if(!i)return;let a=document.createDocumentFragment();for(let c=0;c<r.length;c++){let l=o(r[c],c),u=s(r[c],c);if(!F(u))continue;let{inst:f,frag:d}=Gr(u);t.map.set(l,f),a.appendChild(d)}i.insertBefore(a,e)}function Cc(e,t){let n=e.marker,r=n.parentNode;if(!r)return;let o=e.child,{items:s,keyFn:i,templateFn:a}=t,c=new Map;try{for(let l=0;l<s.length;l++){let u=i(s[l],l),f=a(s[l],l);if(!F(f))continue;let d=o.map.get(u);if(d&&d.strings===f.strings)ut(d,f.values),Wr(d.startNode,d.endNode,r,n),c.set(u,d),o.map.delete(u);else{d&&(o.map.delete(u),Ft(d),ft(d.startNode,d.endNode));let{inst:p,frag:m}=Gr(f);r.insertBefore(m,n),c.set(u,p)}}for(let[l,u]of[...o.map]){o.map.delete(l);try{Ft(u)}finally{ft(u.startNode,u.endNode)}}o.map=c}catch(l){for(let[u,f]of c)o.map.set(u,f);throw l}}function qs(e){for(let[t,n]of[...e.map]){e.map.delete(t);try{Ft(n)}finally{ft(n.startNode,n.endNode)}}e.map.clear()}function Nc(e){return e.type==="tpl"?e.inst.startNode:e.type==="text"?e.node:null}function En(e){e.type==="tpl"?(Ft(e.inst),ft(e.inst.startNode,e.inst.endNode)):e.type==="text"&&e.node.parentNode?.removeChild(e.node)}function Os(e){if(F(e)){let{inst:t,frag:n}=Gr(e);return{item:{type:"tpl",inst:t},frag:n}}if(e!=null&&e!==!1&&e!==!0){let t=document.createTextNode(String(e));return{item:{type:"text",node:t},frag:t}}return{item:{type:"empty"},frag:null}}function Tc(e,t,n){let r=e.parentNode;if(!r)return;let o=document.createDocumentFragment(),s=[];for(let i of n){let{item:a,frag:c}=Os(i);c&&o.appendChild(c),s.push(a)}r.insertBefore(o,e),t.items=s}function Rc(e,t){let n=e.marker,r=n.parentNode;if(!r)return;let o=e.child,s=o.items,i=[],a=0;try{for(let c=0;c<t.length;c++){let l=t[c],u=s[c];if(F(l)){let p=l;if(u&&u.type==="tpl"&&u.inst.strings===p.strings){ut(u.inst,p.values),i.push(u),a=c+1;continue}}else if(l!=null&&l!==!1&&l!==!0){if(u&&u.type==="text"){let p=String(l);u.node.data!==p&&(u.node.data=p),i.push(u),a=c+1;continue}}else{u&&En(u),i.push({type:"empty"}),a=c+1;continue}let{item:f,frag:d}=Os(l);d&&r.insertBefore(d,Lc(s,c,n)),i.push(f),u&&En(u),a=c+1}for(let c=t.length;c<s.length;c++)En(s[c]),a=c+1;o.items=i}catch(c){throw o.items=i.concat(s.slice(a)),c}}function Lc(e,t,n){for(let r=t;r<e.length;r++){let o=Nc(e[r]);if(o&&o.parentNode)return o}return n}function Is(e){for(let t of e.items)En(t);e.items=[]}function Wr(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 jc(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 Se(e){let t=e;if(t.__untilState&&(t.__untilState.aborted=!0,t.__untilState=void 0),t.__watchSub&&Ps(t),!e.child)return;let n=e.child;if(n.kind==="repeat")qs(n);else if(n.kind==="array")Is(n);else if(n.kind==="async-stream")Ms(n);else if("strings"in n){let r=e.child;Ft(r),ft(r.startNode,r.endNode)}else for(let r of e.child)r.parentNode&&r.parentNode.removeChild(r);e.child=void 0}function qc(e,t){let n=e;n.__untilState&&!qe(t)&&(n.__untilState.aborted=!0,n.__untilState=void 0),n.__guardDeps!==void 0&&!Re(t)&&(n.__guardDeps=void 0),n.__cacheMap&&!je(t)&&(n.__cacheMap=void 0),n.__keyedKey!==void 0&&!Te(t)&&(n.__keyedKey=void 0),n.__watchSub&&!Oe(t)&&Ps(n)}function Oc(e,t){let n=e.marker,r=e,o=r.__cacheMap;o||(o=new Map,r.__cacheMap=o);let s=e.child;if(s&&"strings"in s){let a=s;if(F(t)&&a.strings===t.strings){ut(a,t.values);return}let c=document.createDocumentFragment();Wr(a.startNode,a.endNode,c,null),o.set(a.strings,{inst:a,holder:c}),e.child=void 0}if(F(t)){let a=t,c=o.get(a.strings);if(c){o.delete(a.strings),e.child&&Se(e),Wr(c.inst.startNode,c.inst.endNode,n.parentNode,n),ut(c.inst,a.values),e.child=c.inst;let l=new Set;for(let u=c.inst.startNode.nextSibling;u&&u!==c.inst.endNode;u=u.nextSibling){if(u.nodeType!==1)continue;let f=u;if(f.matches("slot[data-webjs-light]")){let d=Mt(f);d&&l.add(d)}for(let d of f.querySelectorAll("slot[data-webjs-light]")){let p=Mt(d);p&&l.add(p)}}for(let u of l)fe(u);return}}oe(e,t)}function Ic(e,t){let n=e;K&&(n.__commitOwner=xn(K));let r=n.__untilState,o=n.__untilArgs,s=(d,p)=>!!(Object.is(d,p)||F(d)&&F(p)&&d.strings===p.strings),a=o&&o.length===t.length&&o.every((d,p)=>s(d,t[p]))&&r?r.highestResolved:1/0;r&&(r.aborted=!0),n.__untilArgs=t.slice();let c={aborted:!1,highestResolved:a};n.__untilState=c;let l=-1,u;for(let d=0;d<t.length;d++){let p=t[d];if(!p||typeof p.then!="function"){l=d,u=p;break}}l!==-1&&l<=c.highestResolved?(oe(e,u),c.highestResolved=l):l===-1&&!n.__untilEverRendered&&oe(e,""),n.__untilEverRendered=!0;let f=Math.min(l===-1?t.length:l,c.highestResolved);for(let d=0;d<f;d++){let p=t[d];!p||typeof p.then!="function"||Promise.resolve(p).then(m=>{if(!c.aborted&&!(d>=c.highestResolved)){try{Kr(e,()=>oe(e,m))}catch(w){Yr(e,w);return}c.highestResolved=d}},()=>{})}}function Yr(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 Pc(e,t){let n=e;if(K&&(n.__commitOwner=xn(K)),n.__watchSig===t&&n.__watchSub){let s;n.__watchSub.observe(()=>{s=t.get()}),oe(e,s);return}n.__watchSub&&(n.__watchSub.dispose(),n.__watchSub=void 0),n.__watchSig=t;let r=new Pt.subtle.Watcher(()=>{queueMicrotask(()=>{if(n.__watchSub!==r)return;let s;try{r.observe(()=>{s=t.get()}),Kr(e,()=>oe(e,s))}catch(i){Yr(e,i)}})});n.__watchSub=r;let o;r.observe(()=>{o=t.get()}),oe(e,o)}function Ps(e){e.__watchSub&&(e.__watchSub.dispose(),e.__watchSub=void 0,e.__watchSig=void 0)}function Dc(e,t){let n=e;K&&(n.__commitOwner=xn(K));let r=e.child;if(r&&r.kind==="async-stream"&&r.mode==="append"&&r.iterable===t.iterable)return;Se(e);let o=t.iterable[Symbol.asyncIterator](),s={kind:"async-stream",mode:"append",aborted:!1,iterable:t.iterable,iterator:o,nodes:[]};e.child=s,Ds(s,e,t)}function $c(e,t){let n=e;K&&(n.__commitOwner=xn(K));let r=e.child;if(r&&r.kind==="async-stream"&&r.mode==="replace"&&r.iterable===t.iterable)return;Se(e);let o=t.iterable[Symbol.asyncIterator](),s={kind:"async-stream",mode:"replace",aborted:!1,iterable:t.iterable,iterator:o,nodes:[]};e.child=s,Ds(s,e,t)}async function Ds(e,t,n){let r=t.marker,o=0;for(;!e.aborted;){let s,i;try{if(s=await e.iterator.next(),e.aborted||s.done)break;i=n.mapper?n.mapper(s.value,o):s.value}catch(a){typeof console<"u"&&console.error("[webjs] asyncStream error:",a);return}try{Kr(t,()=>{let a=$s(i);js(r.parentNode,()=>{if(e.mode==="replace"){for(let l of e.nodes)l.parentNode&&l.parentNode.removeChild(l);e.nodes=[]}let c=document.createDocumentFragment();for(let l of a)c.appendChild(l);r.parentNode?.insertBefore(c,r),e.nodes.push(...a)})})}catch(a){e.aborted=!0;try{e.iterator.return?.()?.catch?.(()=>{})}catch{}Yr(t,a);return}o++}}function $s(e){if(e==null||e===!1||e===!0)return[];if(F(e)){let t=e,{templateEl:n,parts:r,formActions:o}=kn(t),s=n.content.cloneNode(!0),i=r.map(a=>Cn(a,s));for(let a=0;a<t.values.length;a++)se(i[a],t.values[a],void 0,t.values);Bt(o,i,t.values);for(let a of i)a.kind==="slot"&&se(a,void 0,void 0,[]);return[...s.childNodes]}if(Array.isArray(e)){let t=[];for(let n of e)t.push(...$s(n));return t}return[document.createTextNode(String(e))]}function Ms(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 Nn(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 Mc(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Tn(e,t){let n=e&&e.properties||{};for(let[r,o]of Object.entries(n)){let s=typeof o=="object"&&o!==null?o:{type:o};if(!s.state&&(s.attribute||Mc(r))===t)return{propName:r,def:s}}}var Fs=null;function Rn(e){Fs=e||null}function Fc(){return Fs||void 0}Qe();var Bs=Symbol.for("webjs:registry"),Us=Symbol.for("webjs:classToTag"),Ln=globalThis,ie=Ln[Bs]||(Ln[Bs]=new Map),Hs=Ln[Us]||(Ln[Us]=new WeakMap),jn=typeof window<"u"&&typeof customElements<"u";function Jr(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=ie.get(e);r?(r.cls=t,r.lazy=n):ie.set(e,{cls:t,moduleUrl:null,lazy:n,tag:e}),Hs.set(t,e)}if(jn){let e=customElements.define.bind(customElements);customElements.define=function(t,n,r){customElements.get(t)||e(t,n,r),Jr(t,n)}}if(!jn){let e=globalThis;e.customElements||(e.customElements={define(t,n){Jr(t,n)},get(t){return ie.get(t)?.cls},upgrade(){},whenDefined(t){let n=ie.get(t);return Promise.resolve(n?.cls)}})}function Zr(e,t){jn?customElements.define(e,t):Jr(e,t)}function Bc(e,t){if(jn)return;let n=ie.get(e);if(n){n.moduleUrl=t;return}ie.set(e,{cls:null,moduleUrl:t,lazy:!1,tag:e})}function Xr(e){return ie.get(e)?.cls}function Uc(e){return ie.get(e)?.moduleUrl||null}function Hc(e){return ie.get(e)?.lazy===!0}function pt(e){return Hs.get(e)}function Qr(){return[...ie.keys()]}ht();An();var Zs=typeof window<"u"&&typeof HTMLElement<"u";function nl(e,t){return e!==t}function rl(e){try{return String(e)}catch{return Object.prototype.toString.call(e)}}function Gs(e,t,n){if(typeof console>"u"||!console.warn)return;let r=pt(e.constructor)||e.tagName?.toLowerCase()||"unknown";console.warn(`[webjs] reflect:true property "${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 ol(e,t,n,r){if(typeof console>"u"||!console.warn)return;let o=pt(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 "${n}" instead. Detail: ${r}`)}function sl(){return{states:new Set,shadowRoot:null,form:null,labels:[],role:"",willValidate:!0,validity:{},validationMessage:"",setFormValue(){},setValidity(){},checkValidity(){return!0},reportValidity(){return!0}}}var qn=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}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=sl(),this.__internals}},il=["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 il){let t="aria-"+e.slice(4).toLowerCase();Object.defineProperty(qn.prototype,e,{configurable:!0,get(){return this.getAttribute(t)},set(n){n==null?this.removeAttribute(t):this.setAttribute(t,String(n))}})}var al=Zs?HTMLElement:qn,Xs=Symbol("webjs.factoryProps"),Ys=new WeakSet,mt=class e extends al{static shadow=!1;static hydrate=void 0;static properties={};static styles=null;static register(t){Zr(t,this)}static get observedAttributes(){let t=this.properties||{};return Object.keys(t).filter(n=>!(typeof t[n]=="object"&&t[n].state)).map(n=>typeof t[n]=="object"&&t[n].attribute||Js(n))}constructor(){super(),this._renderRoot=null,this._scheduled=!1,this._connected=!1,this.__controllers=new Set,this.__firstRendered=!1,this._changedProperties=new Map,this._updateResolve=null,this._updatePromise=Promise.resolve(!0),this._isUpdating=!1,this._assertFactoryProperties(),this._initializeProperties()}_assertFactoryProperties(){let t=this.constructor;if(Ys.has(t))return;let n=t;for(;n&&n!==e;){if(Object.hasOwn(n,"properties")&&!Object.hasOwn(n,Xs)){let r=n.name||"a component";throw new Error(`${r}: \`static properties\` is no longer supported. Declare reactive properties via the factory instead: \`class ${r} 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.`)}n=Object.getPrototypeOf(n)}Ys.add(t)}_initializeProperties(){let n=this.constructor.properties;if(!(!n||typeof n!="object")){this.__propValues={};for(let[r,o]of Object.entries(n)){let s=typeof o=="object"?o:{type:o},i=this[r];Object.defineProperty(this,r,{configurable:!0,enumerable:!0,get:()=>this.__propValues[r],set:a=>{let c=this.__propValues[r];(s.hasChanged||nl)(a,c)&&(this.__propValues[r]=a,s.reflect&&!s.state&&this._connected&&this._reflectAttribute(r,a,s),this.requestUpdate(r,c))}}),i!==void 0?this.__propValues[r]=i:s.default!==void 0&&(this.__propValues[r]=typeof s.default=="function"?s.default():s.default)}}}_reflectAttribute(t,n,r){let o=r.attribute||Js(t);if(!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),Gs(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),ol(this,t,o,a&&a.message)}i&&this.setAttribute(o,s)}else cn(n)?(this.removeAttribute(o),Gs(this,t,o)):this.setAttribute(o,String(n))}finally{this.__reflectingAttribute=!1}}}connectedCallback(){if(!Zs)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 r=0;r<n.length;r++){let o=n[r].name;o.startsWith("data-webjs-prop-")&&t.push(o)}for(let r of t){let o=this.getAttribute(r);if(this.removeAttribute(r),o==null)continue;let s=cl(r.slice(16));try{this[s]=de(o)}catch(i){console.warn(`[webjs] failed to decode ${r} on <${this.tagName.toLowerCase()}>: ${i&&i.message}`)}}}_activate(){this._connected=!0,this._reflectDeclaredAttributes();let t=this.constructor;if(t.shadow!==!0&&!this.hasAttribute("data-wj-host")&&this.setAttribute("data-wj-host",""),t.shadow===!0){let n=!!this.shadowRoot;this.shadowRoot||this.attachShadow({mode:"open"}),this._renderRoot=this.shadowRoot;let r=t.styles,o=Array.isArray(r)?r:Ve(r)?[r]:[];if(o.length){if(n){let s=this.shadowRoot.querySelector("style");s&&s.remove()}fr(this._renderRoot,o)}}else this._renderRoot=this,t.styles&&console.warn(`[webjs] <${pt(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().`),Ur(this)?Es(this):this.__isHydrating()||this.hasAttribute("data-wj-serialized")||Ns(this)?(this.removeAttribute("data-wj-serialized"),ue(this),ms(this)):hs(this),Cs(this),As(this);for(let n of this.__controllers)n.hostConnected&&n.hostConnected();this._updateResolve===null&&(this._updatePromise=new Promise(n=>{this._updateResolve=n})),this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1;try{this._performRender()}catch(n){console.error("[webjs] lifecycle hook threw during initial render:",n)}})}__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),vs(this),this.__signalWatcher&&(this.__signalWatcher.dispose(),this.__signalWatcher=void 0);for(let t of this.__controllers)t.hostDisconnected&&t.hostDisconnected()}attributeChangedCallback(t,n,r){if(this.__reflectingAttribute)return;let o=Tn(this.constructor,t);if(o===void 0)return;let{propName:s,def:i}=o,a=Nn(i,r);this[s]!==a&&(this[s]=a,this._connected&&this.requestUpdate())}requestUpdate(t,n){t!==void 0&&!this._changedProperties.has(t)&&this._changedProperties.set(t,n),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;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)o.hostUpdate&&o.hostUpdate();this.__renderToken=(this.__renderToken||0)+1,this.__renderAbort&&this.__renderAbort.abort(),this.__renderAbort=typeof AbortController<"u"?new AbortController:null,Rn(this.__renderAbort?this.__renderAbort.signal:null);try{let o=this.update(t);o&&typeof o.then=="function"&&(r=o)}catch(o){this._handleRenderError(o)}finally{Rn(null)}if(!r){for(let o of this.__controllers)o.hostUpdated&&o.hostUpdated();n=!0}}}catch(o){console.error("[webjs] lifecycle hook threw during update phase:",o)}finally{this._isUpdating=!1,(n||r)&&(this._changedProperties=new Map)}if(r){let o=this.__renderToken;this.__pendingAsyncCommits=(this.__pendingAsyncCommits||0)+1;let s=()=>{if(this.__pendingAsyncCommits--,o===this.__renderToken){for(let i of this.__controllers)i.hostUpdated&&i.hostUpdated();this._postCommit(t)}};r.then(s,i=>{try{o===this.__renderToken&&this._handleRenderError(i instanceof Error?i:new Error(rl(i)))}finally{s()}});return}n?this._postCommit(t):this.__pendingAsyncCommits||this._resolveUpdate()}_resolveUpdate(){if(this._updateResolve){let t=this._changedProperties.size===0;this._updateResolve(t),this._updateResolve=null}}performServerUpdate(){let t=this._changedProperties;this._isUpdating=!0;try{this.willUpdate(t);for(let n of this.__controllers)n.hostUpdate&&n.hostUpdate();this._reflectDeclaredAttributes()}finally{this._isUpdating=!1}}_reflectDeclaredAttributes(){let t=this.constructor.properties||{};for(let n of Object.keys(t)){let r=t[n];!r||!r.reflect||r.state||this._reflectAttribute(n,this[n],r)}}shouldUpdate(t){return!0}willUpdate(t){}update(t){this.__signalWatcher||(this.__signalWatcher=new Pt.subtle.Watcher(()=>{this._connected&&this.requestUpdate()}));let n;if(this.__signalWatcher.observe(()=>{n=this.render()}),n&&typeof n.then=="function")return this._commitAsync(n);dt(n,this._renderRoot)}_commitAsync(t){let n=this.__renderToken;if(this.__firstRendered&&this._overridesRenderFallback())try{let r=this.renderFallback();r!==void 0&&dt(r,this._renderRoot)}catch(r){console.error("[webjs] renderFallback() threw:",r)}return Promise.resolve(t).then(r=>{if(n===this.__renderToken)try{dt(r,this._renderRoot)}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!==On.prototype.renderFallback}_handleRenderError(t){console.error(`[webjs] render error in <${pt(this.constructor)||this.tagName?.toLowerCase()}>:`,t);try{let n=this.renderError(t);n!==void 0&&dt(n,this._renderRoot)}catch(n){console.error("[webjs] renderError() also threw:",n)}}_postCommit(t){try{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{this._resolveUpdate()}}updated(t){}firstUpdated(t){}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}addController(t){this.__controllers.add(t),this._connected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}render(){return""}renderError(t){}renderFallback(){}};function Js(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function cl(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function On(e){return new.target?Reflect.construct(mt,arguments,new.target):class extends mt{static properties=e;static[Xs]=!0}}Object.setPrototypeOf(On,mt);On.prototype=mt.prototype;function ll(e,t={}){return e&&typeof e=="object"&&!("call"in e)&&(t=e,e=void 0),{...e?{type:e}:{},...t}}on();Tt();Qe();var sd=Symbol.for("webjs.suspense");function ul(e){return{_$webjsSuspense:!0,fallback:e.fallback,children:e.children}}function In(e){return!!e&&typeof e=="object"&&e._$webjsSuspense===!0}ht();var eo=null;function fl(e){eo=e}function to(){if(!eo)return"";try{return eo()||""}catch{return""}}var Qs={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},ei=["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"];async function dl(e,t={ssr:!0}){let n=t&&t.suspenseCtx,r=t&&t.dev!==void 0?t.dev:n&&n.dev;n&&n.dev===void 0&&r!==void 0&&(n.dev=r);let o=await D(e,n);return t&&t.ssr===!1?o:await _e(o,n,[],r)}async function D(e,t){if(e==null||e===!1||e===!0)return"";if(e&&typeof e.then=="function")return e=await e,D(e,t);if(et(e))return String(e.value??"");if(Ne(e))return D(e.value,t);if(Oe(e))return D(e.signal.get(),t);if(Te(e))return D(e.value,t);if(Re(e))return D(e.fn(),t);if(tt(e)){let n=e.template;return String(n?.innerHTML??"")}if(Le(e))return"";if(je(e))return D(e.value,t);if(qe(e)){let n=e.args;for(let r of n)if(!r||typeof r.then!="function")return D(r,t);if(n.length>0)try{let r=await Promise.race(n.map(o=>Promise.resolve(o).catch(()=>{})));return D(r,t)}catch{return""}return""}if(nt(e)||rt(e))return"";if(Array.isArray(e))return(await Promise.all(e.map(r=>D(r,t)))).join("");if(Ce(e)){let n=e;return(await Promise.all(n.items.map((o,s)=>D(n.templateFn(o,s),t)))).join("")}if(In(e)){let n=e,r=await D(n.fallback,t);if(t){let o=`s${t.nextId++}`;return t.pending.push({id:o,promise:Promise.resolve(n.children)}),`<webjs-boundary id="${o}">${r}</webjs-boundary>`}return r}return F(e)?pl(e,t):sn(String(e))}async function pl(e,t){let{strings:n,values:r}=e,o="",s="text",i="",a=0,c="",l=0,u="",f="",d=-1,p=null,m=null,w=0,b=[],_=[],g=!1,x=()=>{let k=b,v=_,A=w>1,h=m;if(b=[],_=[],w=0,m=null,p!=null){qt({duplicateAction:A,propAttrs:k});let y=gr(o.slice(d),p);o=o.slice(0,d)+y.tag+y.hidden,p=null}h!=null&&(o=o.slice(0,d)+yr(o.slice(d),h,{duplicateAction:A,propAttrs:v}))},S=(k,v)=>{let A=String(v).toLowerCase();if(A==="button"||A==="input"){Ze(k)&&_.push(String(k));return}if(A!=="form")return;let h=String(k).toLowerCase();h==="encoding"&&(h="enctype"),(h==="method"||h==="enctype")&&b.push(String(k))},E=(k,v)=>{let A=String(v).toLowerCase(),h=String(k).toLowerCase();(A==="form"&&h==="action"||(A==="button"||A==="input")&&h==="formaction")&&(w+=1)},T=k=>{x(),g=!1,s=k&&ro(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let k=0;k<n.length;k++){let v=n[k];for(let A=0;A<v.length;A++){let h=v[A];switch(s){case"text":o+=h,h==="<"&&(s="tag-open",d=o.length-1,g=!1);break;case"tag-open":o+=h,h==="!"?s="bang-1":h==="/"?(s="tag-name",u="",g=!0):/[a-zA-Z]/.test(h)?(s="tag-name",u=h.toLowerCase()):s="text";break;case"bang-1":o+=h,s=h==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=h,h==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=h,h==="-"?l+=1:(h===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=h,h===">"?T(!0):/\s/.test(h)?s="in-tag":u+=h.toLowerCase();break;case"in-tag":o+=h,h===">"?T(!0):!/\s/.test(h)&&h!=="/"&&(s="attr-name",i=h,a=o.length-1);break;case"rawtext":o+=h,f=(f+h.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":h==="="?(s="after-eq",o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):(i+=h,o+=h);break;case"after-eq":h==='"'||h==="'"?(s="attr-quoted",c=h,o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):(s="attr-unquoted",o+=h);break;case"attr-unquoted":/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):o+=h;break;case"attr-quoted":o+=h,h===c&&(s="in-tag",i="");break}}if(k<r.length){let A=r[k];if(A&&typeof A.then=="function"&&(A=await A),s==="comment")o+=String(A??""),l=0;else if(s==="rawtext")o+=String(A??""),f="";else if(s==="text")o+=await D(A,t);else if(s==="after-eq"){let h=i[0],y=i.slice(1),C=ze[h];if(C==="event")o=o.slice(0,a),s="in-tag",i="";else if(C==="prop"){if(o=o.slice(0,a),u==="webjs-suspense"&&y==="fallback"){let N=await D(A,t);o+=`data-webjs-fallback="${U(N)}"`,s="in-tag",i="";continue}if(!u.includes("-")){jt(A,y,u),S(y,u),s="in-tag",i="";continue}if(A===void 0){s="in-tag",i="";continue}try{let N=await Vt(A);o+=`data-webjs-prop-${jl(y)}="${U(N)}"`}catch(N){console.warn(`[webjs] property binding .${y} has an unserializable value during SSR. Dropping. The browser will see the property as undefined. Detail: ${N&&N.message}`)}s="in-tag",i=""}else if(C==="bool")Z(A,y,u),o=o.slice(0,a),A&&(o+=`${y}=""`),s="in-tag",i="";else if(We(A,i,u)){if(E(i,u),u==="form")p=ge(await Lt(A),u),o=o.slice(0,a).replace(/\s+$/,"");else{Je(m!=null,u);let N=Xe(o.slice(d));N.has("name")&&Ke(N.get("name")||"",u,!1),N.has("value")&&Ge(u),N.has("form")&&Ye(u);let R=ge(await Lt(A),u);m=u,o=o.slice(0,a)+`name="${L}" value="${U(R)}"`}s="in-tag",i=""}else E(i,u),Z(A,i,u),o+=`"${U(String(A??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(Z(A,i,u),o+=U(String(A??"")))}}return o}var hl=new Set(["document","window","localStorage","sessionStorage","navigator","matchMedia","requestAnimationFrame","getComputedStyle","IntersectionObserver","MutationObserver","ResizeObserver"]),ml=new Set(["attachShadow","querySelector","querySelectorAll","getBoundingClientRect","focus","blur","scrollIntoView"]);function gl(e){let t=e&&typeof e.message=="string"?e.message:"",n=/^(\w+) is not defined\b/.exec(t);return e instanceof ReferenceError&&n&&hl.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&&ml.has(n[1])?`\`${n[1]}\` is an HTMLElement method that does not exist on the server-side component instance during SSR.`:null)}function bl(){return typeof process<"u"&&process.env&&!0}function ci(e,t,n){if(!(n===void 0?!bl():!!n))return"";let o=t&&t.message?t.message:String(t);return ur`<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 El=Object.defineProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ss=(e,t)=>{for(var r in t)El(e,r,{get:t[r],enumerable:!0})};function is(e,...t){return{_$webjs:"template",strings:e,values:t}}function W(e){return!!e&&typeof e=="object"&&e._$webjs==="template"}var M,Pt=v(()=>{M="wjm-"});function Cr(e){return Object.prototype.hasOwnProperty.call(qt,e)}var qt,Vn=v(()=>{qt=Object.freeze({"@":"event",".":"prop","?":"bool"})});function Wn(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function H(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}var Xe=v(()=>{});function Nl(e){cs=e}function zn(e){if(typeof e!="function")return null;let t=e[ra];return typeof t=="string"&&t?t:null}async function Lr(e){let t=zn(e);if(t)return t;if(typeof e!="function"||!cs)return null;try{let r=await cs(e);return typeof r=="string"&&r?r:null}catch{return null}}function Qe(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 Dt(e,t,r=!0){if(!e||e===F&&r)return;let n=e===F?'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 ls(e,t){let r=String(e||"").toLowerCase(),n=t==null?null:String(t).toLowerCase();if(kl(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 kl(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 Mt(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 us(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 Ft(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 $t(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 fs(e,t){let n=(e||[]).filter(o=>Bt(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 Bt(e){let t=String(e).toLowerCase();return t==="name"||t==="value"||t==="formaction"||t==="formmethod"||t==="formenctype"}function Cl(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&&!na.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 ie(e,t,r){if(Kn(e)&&ql(t))throw new Error(Dl(t,r))}function Or(e,t,r){Il(t,r)&&ie(e,t,r)}function Ie(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 Rl(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&&!na.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 ds(e,t){let r=Ht(e);jr({staticAction:r.has("action")});let n=oa(r.has("method")?r.get("method"):K,r.has("enctype")?r.get("enctype"):K),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:Ll(t)}}function jr(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 oa(e,t){let r=e!==K&&e!=null,n=t!==K&&t!=null;return Rl(r?e:null,n?t:null),{method:r?null:"post",enctype:n?null:"multipart/form-data"}}function ps(e,t,r){let n=t!==K&&t!=null,o=r!==K&&r!=null;return Cl(e,n?t:null,o?r:null),{formMethod:n?null:"post",formEnctype:o?null:"multipart/form-data"}}function ms(e,t,r){jl(e,t,r);let n=Ht(e),o=ps(t,n.has("formmethod")?n.get("formmethod"):K,n.has("formenctype")?n.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 Ll(e){return`<input type="hidden" name="${F}" value="${H(e)}">`}function sa(e,t,r,n,o){let s=typeof t=="function"?zn(t):null;if(!s){typeof t=="function"&&Ie(null,e.localName),Pl(e,r,n,o.propAttrs);return}jr(o);let i=oa(r,n);e.removeAttribute("action"),Rr(e,"method",r,i.method),Rr(e,"enctype",n,i.enctype),Ol(e,s)}function Rr(e,t,r,n){if(n!==null){e.setAttribute(t,n);return}r!==K&&e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Ol(e,t){let r=e.firstElementChild,n=r&&r.localName==="input"&&r.getAttribute("name")===F?r:null;if(!n){for(let o of e.children)if(o.localName==="input"&&o.getAttribute("name")===F){n=o;break}}n||(n=e.ownerDocument.createElement("input"),n.setAttribute("type","hidden"),n.setAttribute("name",F),e.insertBefore(n,e.firstChild)),n.getAttribute("value")!==t&&n.setAttribute("value",t)}function jl(e,t,r){let n=Ht(e),o=n.has("type")?n.get("type"):null;fs(r.propAttrs,t),$t(!!r.duplicateAction,t),n.has("formaction")&&us(t),ta(e,"value")>1&&Mt(t),ta(e,"name")>1&&Dt(n.get("name")||F,t,!1),ls(t,o),n.has("form")&&Ft(t)}function Pl(e,t,r,n){let o=e.firstElementChild;if(o&&o.localName==="input"&&o.getAttribute("name")===F)o.remove();else for(let i of e.children)if(i.localName==="input"&&i.getAttribute("name")===F){i.remove();break}let s=i=>(n||[]).some(a=>{let c=String(a).toLowerCase();return c===i||i==="enctype"&&c==="encoding"});t===K&&!s("method")&&e.removeAttribute("method"),r===K&&!s("enctype")&&e.removeAttribute("enctype")}function ia(e,t,r,n){let o=s=>(n||[]).some(i=>String(i).toLowerCase()===s);t===K&&!o("formmethod")&&e.removeAttribute("formmethod"),r===K&&!o("formenctype")&&e.removeAttribute("formenctype")}function Ht(e){return new Map(aa(e))}function aa(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 ta(e,t){let r=String(t).toLowerCase();return aa(e).filter(([n])=>n===r).length}function Il(e,t){let r=String(e).toLowerCase();Cr(r[0])&&(r=r.slice(1));let n=String(t||"").toLowerCase();return r==="action"?n==="form":r==="formaction"?n==="button"||n==="input":!1}function Kn(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=>Kn(n,r)))}function ql(e){let t=String(e).toLowerCase();return Cr(t[0])&&(t=t.slice(1)),t==="action"||t==="formaction"}function Dl(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 F,ra,cs,na,K,Ne=v(()=>{Vn();Xe();F="__webjs_action",ra="$$webjsAction",cs=null;na=new Set(["multipart/form-data","application/x-www-form-urlencoded"]);K=Symbol("webjs.attr.absent")});function la(e,t,r){return{[ca]:!0,items:[...e],keyFn:t,templateFn:r}}function et(e){return!!e&&typeof e=="object"&&e[ca]===!0}var ca,Pr=v(()=>{ca=Symbol.for("webjs.repeat")});function hs(e){return{_$webjs:"unsafe-html",value:String(e??"")}}function Ut(e){return!!e&&typeof e=="object"&&e._$webjs==="unsafe-html"}function Ml(e){return{_$webjs:"live",value:e}}function Y(e){return!!e&&typeof e=="object"&&e._$webjs==="live"}function Fl(e,t){return{_$webjs:"keyed",key:e,value:t}}function tt(e){return!!e&&typeof e=="object"&&e._$webjs==="keyed"}function $l(e,t){return{_$webjs:"guard",deps:e,fn:t}}function rt(e){return!!e&&typeof e=="object"&&e._$webjs==="guard"}function Bl(e){return{_$webjs:"template-content",template:e}}function Vt(e){return!!e&&typeof e=="object"&&e._$webjs==="template-content"}function Hl(e){return{_$webjs:"ref",target:e}}function nt(e){return!!e&&typeof e=="object"&&e._$webjs==="ref"}function Ul(){return{value:void 0}}function Vl(e){return{_$webjs:"cache",value:e}}function ot(e){return!!e&&typeof e=="object"&&e._$webjs==="cache"}function Wl(...e){return{_$webjs:"until",args:e}}function st(e){return!!e&&typeof e=="object"&&e._$webjs==="until"}function zl(e,t){return{_$webjs:"async-append",iterable:e,mapper:t}}function Wt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-append"}function Kl(e,t){return{_$webjs:"async-replace",iterable:e,mapper:t}}function zt(e){return!!e&&typeof e=="object"&&e._$webjs==="async-replace"}function Gl(e){return{_$webjs:"watch",signal:e}}function it(e){return!!e&&typeof e=="object"&&e._$webjs==="watch"}var Kt=v(()=>{Pr()});var L,O,z,J,gs,qe,at,bs,ua,U,ys,be,j,De=v(()=>{L=Symbol("webjs.slot.state"),O="data-webjs-light",z="data-projection",J="actual",gs="fallback",qe=Symbol("webjs.slot.fallbackFrag"),at=Symbol("webjs.slot.templateOwner"),bs="data-wj-slot-owner",ua=64,U=Symbol("webjs.slot.rendering"),ys=Symbol("webjs.slot.intercepted"),be=Symbol("webjs.slot.park"),j=new WeakSet});function Z(e){let t=e,r=t[L];return r||(r={host:e,authored:[],assignedByName:new Map,lastSnapshot:new WeakMap},t[L]=r),r}function Ir(e){return!!e[L]}function ws(e){let t=Z(e);for(;e.firstChild;){let r=e.firstChild;t.authored.push(r),j.add(r),e.removeChild(r)}ye(t)}function ye(e){let t=e.assignedByName;t.clear();for(let r of e.authored)Yl(t,Me(e,r),r)}function Me(e,t){let r=Dr(e,t);if(r)return Q(r.getAttribute("name"));if(e.adoptedKey){let n=e.adoptedKey.get(t);if(n!==void 0)return n}return fa(t)}function Ss(e){let t=Z(e);t.adopted=!0;let r=new Set,n=e.querySelectorAll(`slot[${O}]`);for(let o of n){let s=o;if(!X(e,s)||s.getAttribute(z)!==J||Gt(t,e,s))continue;let i=Q(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),fa(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))j.add(s),t.authored.push(s);o.remove()}ye(t)}function Q(e){return e==null||e===""||e==="default"?null:e}function fa(e){return e.nodeType!==1?null:Q(e.getAttribute("slot"))}function Yl(e,t,r){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(r)}var ct=v(()=>{ut();qr();lt();De()});function da(){we||!ae||(we=Node.prototype.appendChild,_s=Node.prototype.insertBefore,Fe=Node.prototype.removeChild,Gn=Node.prototype.replaceChild,As=Element.prototype.append,xs=Element.prototype.prepend,vs=Element.prototype.replaceChildren,Mr=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),Yn=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"))}function ft(e,t){let r=e[U];e[U]=!0;try{return t()}finally{e[U]=r,r||Jn(e)}}function Es(e){if(!ae)return;let t=e,r=Z(e);r.backstop||(r.backstop=new MutationObserver(n=>Fr(e,r,n)),r.backstop.observe(e,{childList:!0,subtree:!1}),r.flipSensor=new MutationObserver(n=>pa(e,n)),r.flipSensor.observe(e,{attributes:!0,attributeFilter:["slot","name"],subtree:!0}))}function Fr(e,t,r){let n=e,o=n[be],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&&ks(s,l))){if(t.authored.indexOf(l)!==-1){i=!0;continue}j.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;j.has(l)&&l.parentNode==null&&!a.has(l)||(t.authored.splice(u,1),i=!0)}}i&&ne(e)}function Jn(e){let t=e,r=t[L];if(!(r&&r.backstop))return;let n=r.backstop.takeRecords();(!(Symbol.for("webjs.instance")in t)||t[Symbol.for("webjs.instance")])&&Fr(e,r,n)}function pa(e,t){let r=e[L];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(O)&&X(e,s)&&(n=!0):o.attributeName==="slot"&&(r.adoptedKey&&r.adoptedKey.delete(s),r.authored.indexOf(s)!==-1&&(n=!0))}n&&ne(e)}function Ts(e){let t=e[L];t&&(t.backstop&&(Fr(e,t,t.backstop.takeRecords()),t.backstop.disconnect(),t.backstop=void 0),t.flipSensor&&(pa(e,t.flipSensor.takeRecords()),t.flipSensor.disconnect(),t.flipSensor=void 0))}function Ns(e){if(!ae)return;let t=e,r=t[L];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[be]){if(r.authored.indexOf(a)!==-1){i=!0;continue}o&&(!n||ks(n,a))||!o&&s||(j.add(a),r.authored.push(a),i=!0)}i&&ne(e)}var we,_s,Fe,Gn,As,xs,vs,Mr,Yn,Zn=v(()=>{ut();qr();lt();$r();ct();De();we=null,_s=null,Fe=null,Gn=null,As=null,xs=null,vs=null,Mr=null,Yn=null});function ks(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 ma(e){let t=e,r=t[be];return(!r||!r.isConnected)&&(r||(r=e.ownerDocument.createElement("wj-slot-park"),r.setAttribute("hidden",""),r.style.display="none",t[be]=r),ft(e,()=>we.call(e,r))),r}function dt(e){return e instanceof Node||!!(e&&typeof e=="object"&&e.ownerDocument&&e.ownerDocument.defaultView&&e instanceof e.ownerDocument.defaultView.Node)}function Cs(e,t,r){if(r&&!dt(t))return[e.ownerDocument.createTextNode(`${t}`)];if(!dt(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);Xn(e,n);for(let o of n)Fe.call(t,o);return n}return Xn(e,[t]),[t]}function Xn(e,t){Yt(e,t);for(let r of t){if(!dt(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 Yt(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 Rs(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 js(e,t){let r=e[L];return r?Gt(r,e,t):!1}function Gt(e,t,r){for(let n=r;n&&n!==t;n=n.parentNode)if(e.authored.indexOf(n)!==-1)return!0;return!1}function Ls(e,t){if(j.has(t))return!0;let r=t.parentNode;if(r==null)return!1;if(r===e||r===e[be])return!0;let n=e[L];return r.nodeType===1&&r.tagName==="SLOT"&&r.hasAttribute(O)&&(n&&n.lastSnapshot.has(r)||e.contains(r)&&X(e,r))}function Os(e,t){let r=[];for(let s of t)dt(s)?s.nodeType===11?r.push({frag:s}):r.push({node:s}):r.push({text:`${s}`});for(let s of r)s.frag?Yt(e,Array.from(s.frag.childNodes)):s.node&&Xn(e,[s.node]);let n=e.ownerDocument.createDocumentFragment();for(let s of r)if(s.text!==void 0)we.call(n,e.ownerDocument.createTextNode(s.text));else if(s.frag){let i=Array.from(s.frag.childNodes);Xn(e,i);for(let a of i)we.call(n,a)}else s.node&&(Yt(e,[s.node]),we.call(n,s.node));let o=Array.from(n.childNodes);Yt(e,o);for(let s of o)Fe.call(n,s);return o}function ke(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);ye(t),ne(e)}function Ps(e){if(!ae)return;let t=e;if(t[ys])return;da(),t[ys]=!0;let r=Z(e);t.appendChild=function(n){if(t[U])return we.call(this,n);let o=Cs(e,n,!1);for(let s of o)j.add(s);return Rs(r,o,null),ke(e,r,o),n},t.insertBefore=function(n,o){if(t[U])return _s.call(this,n,o);if(!dt(n))throw new TypeError("Failed to execute insertBefore on the host: parameter 1 is not of type Node.");if(o!=null&&!dt(o))throw new TypeError("Failed to execute insertBefore on the host: parameter 2 is not of type Node.");if(Yt(e,n.nodeType===11?Array.from(n.childNodes):[n]),o!=null&&(r.authored.indexOf(o)===-1||!Ls(e,o)))throw new DOMException("insertBefore: reference node is not an assigned child of this host","NotFoundError");if(n===o)return n;let s=Cs(e,n,!1);for(let i of s)j.add(i);return Rs(r,s,o||null),ke(e,r,s),n},t.removeChild=function(n){if(t[U])return Fe.call(this,n);let o=r.authored.indexOf(n);if(o===-1)return Fe.call(this,n);if(!Ls(e,n))throw new DOMException("removeChild: the node is not an assigned child of this host","NotFoundError");return r.authored.splice(o,1),ke(e,r,[n]),n},t.replaceChild=function(n,o){if(t[U])return Gn.call(this,n,o);if(r.authored.indexOf(o)===-1)return Gn.call(this,n,o);if(!dt(n))throw new TypeError("Failed to execute replaceChild on the host: parameter 1 is not of type Node.");if(Yt(e,n.nodeType===11?Array.from(n.childNodes):[n]),!Ls(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=Cs(e,n,!1);for(let c of i)j.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),ke(e,r,[...i,o]),o},t.append=function(...n){if(t[U])return As.apply(this,n);let o=Os(e,n);for(let s of o)j.add(s);Rs(r,o,null),ke(e,r,o)},t.prepend=function(...n){if(t[U])return xs.apply(this,n);let o=Os(e,n);for(let s of o)j.add(s);for(let s of o){let i=r.authored.indexOf(s);i!==-1&&r.authored.splice(i,1)}r.authored.unshift(...o),ke(e,r,o)},t.replaceChildren=function(...n){if(t[U])return vs.apply(this,n);let o=Os(e,n);for(let i of o)j.add(i);let s=r.authored;r.authored=o.slice(),ke(e,r,[...s,...o])},Object.defineProperty(t,"innerHTML",{configurable:!0,get(){return Mr.get.call(this)},set(n){if(t[U]){Mr.set.call(this,n);return}let o=e.ownerDocument.createElement("div");Mr.set.call(o,n===null?"":`${n}`);let s=Array.from(o.childNodes);for(let a of s)j.add(a);let i=r.authored;r.authored=s,ke(e,r,[...i,...s])}}),Object.defineProperty(t,"textContent",{configurable:!0,get(){return Yn.get.call(this)},set(n){if(t[U]){Yn.set.call(this,n);return}let o=n==null||n===""?[]:[e.ownerDocument.createTextNode(`${n}`)];for(let i of o)j.add(i);let s=r.authored;r.authored=o,ke(e,r,[...s,...o])}})}var ha,qr=v(()=>{ut();lt();$r();Zn();ct();De();ha=new Set});function $e(e,t,r){let n=Z(e),o=Q(t),s=Array.isArray(r)?r.filter(Boolean):r?[r]:[],i=n.authored.findIndex(c=>Me(n,c)===o),a=n.authored.filter(c=>Me(n,c)===o);n.authored=n.authored.filter(c=>Me(n,c)!==o),(i===-1||i>n.authored.length)&&(i=n.authored.length);for(let c of s)c.nodeType===1&&!Dr(n,c)&&(o==null?c.removeAttribute("slot"):c.setAttribute("slot",o)),j.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)}ye(n),ne(e)}function ne(e){if(!ae)return;let t=e[L];if(t){if(t.applying){t.reapply=!0;return}t.applying=!0;try{do{t.reapply=!1;let r=t.pendingRecordNodes||ha;t.pendingRecordNodes=void 0,Jl(e,t,r),Zl(e,t),ye(t);let n=[],o=new Set;for(let u of e.querySelectorAll(`slot[${O}]`))if(X(e,u)&&!Gt(t,e,u)){if(!u.hasAttribute(z)&&!(qe in u)){o.add(Q(u.getAttribute("name")));continue}n.push(u)}let s=new Map;for(let u of n){let f=Q(u.getAttribute("name")),p=s.get(f);p||(p=[],s.set(f,p)),p.push(u)}let i=[];for(let[u,f]of s){let p=t.assignedByName.get(u)||[];for(let d=0;d<f.length;d++){let m=f[d],g=p.filter(_=>{let b=Dr(t,_);return b?b===m:d===0}),w=g.filter(_=>_===e||_.nodeType===1&&_.contains(e));if(w.length){for(let _ of w)j.delete(_);g=g.filter(_=>w.indexOf(_)===-1)}g.length>0?Is(t,m,g)&&i.push(m):qs(t,m)&&i.push(m)}}for(let u of i)Ds(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(Me(t,u))||c.add(u);let l=e[be];if(l)for(let u of Array.from(l.childNodes))c.has(u)||Fe.call(l,u);if(c.size){let u=ma(e);for(let f of c)f.parentNode!==u&&(j.delete(f),ft(e,()=>we.call(u,f)))}if(t.backstop){let u=t.backstop.takeRecords();u.length&&Fr(e,t,u)}}while(t.reapply)}finally{t.applying=!1}}}function Jl(e,t,r){for(let n of e.querySelectorAll(`slot[${O}][${z}="${J}"]`)){if(!X(e,n)||Gt(t,e,n))continue;let o=n,s=t.lastSnapshot.get(o);if(!s)continue;let i=Array.from(o.childNodes);if(Qn(i,s))continue;let a=t.authored,c=Q(o.getAttribute("name")),l=i.filter(m=>!r.has(m));for(let m of l)a.indexOf(m)===-1&&Me(t,m)!==c&&(t.adoptedKey||(t.adoptedKey=new WeakMap),t.adoptedKey.set(m,c));for(let m of a){if(l.indexOf(m)!==-1||Me(t,m)!==c)continue;let g=a.indexOf(m),w=0;for(let _=0;_<l.length;_++){let b=a.indexOf(l[_]);b!==-1&&b<g&&(w=_+1)}l.splice(w,0,m)}let u=new Set(l);for(let m of s)u.add(m);let f=-1,p=0;for(let m of a){if(u.has(m)){f===-1&&(f=p);continue}p+=1}let d=a.filter(m=>!u.has(m));(f===-1||f>d.length)&&(f=d.length),d.splice(f,0,...l),t.authored=d}}function Zl(e,t){let r=e[be];t.authored=t.authored.filter(n=>{if(j.has(n))return!0;let o=n.parentNode;return o==null?!1:!!(o===e||o===r||o.nodeType===1&&o.tagName==="SLOT"&&o.hasAttribute(O)&&(t.lastSnapshot.has(o)||e.contains(o)&&X(e,o)))})}var $r=v(()=>{ut();qr();lt();Zn();ct();De()});function ya(){return typeof HTMLElement<"u"&&typeof HTMLSlotElement<"u"}function wa(){if(ga||(ae=ya(),!ae))return;Br=HTMLSlotElement.prototype.assignedNodes,Ms=HTMLSlotElement.prototype.assignedElements,eo=Object.getOwnPropertyDescriptor(Element.prototype,"assignedSlot"),HTMLSlotElement.prototype.assignedNodes=function(r){return this.hasAttribute(O)&&!$s(this)?Bs(this,r):Br?Br.call(this,r):[]},HTMLSlotElement.prototype.assignedElements=function(r){return this.hasAttribute(O)&&!$s(this)?Bs(this,r).filter(n=>n.nodeType===1):Ms?Ms.call(this,r):[]},Object.defineProperty(Element.prototype,"assignedSlot",{configurable:!0,enumerable:!0,get:function(){let r=eo&&eo.get?eo.get.call(this):null;return r||ba(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||ba(this)}}),Fs=HTMLSlotElement.prototype.assign,HTMLSlotElement.prototype.assign=function(...r){if(this.hasAttribute(O)&&!$s(this)){let n=Xl(this);if(n){let o=Z(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);ye(o),ne(n)}return}return Fs?Fs.apply(this,r):void 0},ga=!0}function Dr(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 Xl(e){for(let t=e.parentElement;t;t=t.parentElement)if(t[L])return X(t,e)?t:null;return null}function $s(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 Bs(e,t){if(e.getAttribute(z)!==J)return[];let r=Array.from(e.childNodes);return!t||!t.flatten?r:Hs(r,new Set,0)}function Hs(e,t,r){if(r>=ua)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(O)){let i=Bs(s,{flatten:!1});if(i.length>0)for(let a of Hs(i,t,r+1))n.push(a);else for(let a of Hs(Array.from(s.childNodes),t,r+1))n.push(a)}else if(Br){let i=Br.call(s,{flatten:!0});for(let a of i)n.push(a)}else n.push(o)}else n.push(o);return n}function ba(e){let t=e.parentElement;return t&&t.tagName==="SLOT"&&t.hasAttribute(O)&&t.getAttribute(z)===J?t:null}var ae,Br,Ms,eo,Fs,ga,lt=v(()=>{ut();$r();ct();De();ae=ya(),Br=null,Ms=null,eo=null,Fs=null,ga=!1;wa()});function Us(e){if(!ae)return!1;for(let t of e.querySelectorAll(`slot[${O}][${z}]`))if(X(e,t))return!0;return!1}function X(e,t){let r=t[at];if(r)return r===e;let n=typeof t.getAttribute=="function"?t.getAttribute(bs):null;if(n){let o=Ql(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 Ql(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 Is(e,t,r){for(let l of r)j.delete(l);let n=t.getAttribute(z)!==J,o=e.lastSnapshot.get(t)||[],s=n||!Qn(o,r);if(!n&&Qn(Array.from(t.childNodes),r))return e.lastSnapshot.set(t,r.slice()),s;let i=t[qe];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(z,J),e.lastSnapshot.set(t,r.slice()),s}function qs(e,t){let r=t.getAttribute(z)===J;if(t.setAttribute(z,gs),!r)return Sa(t),!1;for(e.lastSnapshot.delete(t);t.firstChild;)t.removeChild(t.firstChild);return Sa(t),!0}function Sa(e){let t=e[qe];!t||t.childNodes.length===0||e.appendChild(t)}function Vs(e,t){if(!Ir(e))return;let r=Z(e),n=Q(t.getAttribute("name")),o=r.assignedByName.get(n);if(o)for(let s of o)s.parentNode===t&&(j.add(s),t.removeChild(s));r.lastSnapshot.delete(t)}function _a(e){e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1}))}function Ds(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)_a(n)}))}function Qn(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 ut=v(()=>{lt();ct();De()});var pt=v(()=>{ut();qr();lt();$r();Zn();ct();De()});function Ha(e,t,r){Bu.has(t)?Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}):e[t]=r}async function Jr(e){return JSON.stringify(await Ua(e))}function Ce(e){return Va(JSON.parse(e))}async function Ua(e){let t=Hu();return await Uu(e,t),bt(e,t)}function Va(e){return Ue(e,Ku())}function Hu(){return{refCount:new Map,idOf:new Map,emitted:new Set,nextId:0,blobBytes:new Map,fdEntries:new Map}}async function Uu(e,t){let r=[e];for(;r.length;){let n=r.pop();if(!Yu(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(Ju(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 bt(e,t){if(e===null)return null;if(e===void 0)return{[$]:"undef"};let r=typeof e;if(r==="string"||r==="boolean")return e;if(r==="number")return Number.isNaN(e)?{[$]:"NaN"}:e===1/0?{[$]:"Inf"}:e===-1/0?{[$]:"-Inf"}:Object.is(e,-0)?{[$]:"-0"}:e;if(r==="bigint")return{[$]:"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{[$]:"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{[$]:"Ref",v:n};n!==void 0&&t.emitted.add(n);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:Yr(s),n:e.name,t:e.type||"",m:e.lastModified}:o={[$]:"Blob",v:Yr(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,bt(c,t)]);o={[$]:"FD",v:i}}else if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o=Vu(e);else if(e instanceof Map){let s=[];for(let[i,a]of e)s.push([bt(i,t),bt(a,t)]);o={[$]:"Map",v:s}}else if(e instanceof Set){let s=[];for(let i of e)s.push(bt(i,t));o={[$]:"Set",v:s}}else if(Array.isArray(e))o=e.map(s=>bt(s,t));else{o={};for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=Zu(s)?"_"+s:s;Ha(o,i,bt(e[s],t))}}if(n!==void 0){if(Array.isArray(o))return{[$]:"Arr",_id:n,v:o};o._id=n}return o}function Vu(e){if(e instanceof ArrayBuffer)return{[$]:"buf",v:Yr(new Uint8Array(e))};if(e instanceof DataView)return{[$]:"dv",v:Yr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))};let t=e.constructor.name,r=Wu[t];if(!r)throw new TypeError(`Unsupported typed array: ${t}`);let n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return{[$]:r,v:Yr(n)}}function Ku(){return{refs:new Map}}function Ue(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(Ue(e[i],t));return s}let r=e[$];if(typeof r=="string")return Gu(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=Xu(s)?s.slice(1):s;Ha(n,i,Ue(e[s],t))}return n}function Gu(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(Ue(i,r),Ue(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(Ue(i,r));return s}case"Arr":{let s=[];typeof n=="number"&&r.refs.set(n,s);for(let i of e.v)s.push(Ue(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=Gr(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=Gr(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=Ue(a,r);s.append(i,c)}return s}default:{if(t==="buf"){let i=Gr(e.v);return o(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength))}if(t==="dv"){let i=Gr(e.v);return o(new DataView(i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength)))}let s=zu[t];if(s){let i=Gr(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 Yu(e){return e!==null&&typeof e=="object"}function Ju(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Zu(e){return/^_+\$wj$/.test(e)||/^_+id$/.test(e)}function Xu(e){return/^__+\$wj$/.test(e)||/^__+id$/.test(e)}function Yr(e){if(Wa)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 Gr(e){if(Wa){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 $,Bu,Wu,zu,Wa,yt=v(()=>{$="_$wj",Bu=new Set(["__proto__","constructor","prototype"]);Wu={Int8Array:"i8",Uint8Array:"u8",Uint8ClampedArray:"u8c",Int16Array:"i16",Uint16Array:"u16",Int32Array:"i32",Uint32Array:"u32",Float32Array:"f32",Float64Array:"f64",BigInt64Array:"bi64",BigUint64Array:"bu64"},zu={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};Wa=typeof Buffer<"u"&&typeof Buffer.from=="function"});function of(e){return{_$webjsSuspense:!0,fallback:e.fallback,children:e.children}}function yo(e){return!!e&&typeof e=="object"&&e._$webjsSuspense===!0}var xm,di=v(()=>{xm=Symbol.for("webjs.suspense")});function ec(e){return sf.has(e.toLowerCase())}function pi(e,t){let r=t+4;if(e[r]===">")return r+1;if(e.startsWith("->",r))return r+2;for(;r<e.length;){if(e.startsWith("-->",r))return r+3;if(e.startsWith("--!>",r))return r+4;r+=1}return-1}function af(e,t){let r=/<!--|-->|<\/script(?=[\s/>])|<script(?=[\s/>])/gi;r.lastIndex=t;let n=!1,o=!1,s;for(;(s=r.exec(e))!==null;){let i=s[0];if(i==="<!--"){let a=s.index+4;for(;e[a]==="-";)a+=1;e[a]===">"?(n=!1,o=!1,r.lastIndex=a+1):n||(n=!0)}else if(i==="-->")n=!1,o=!1;else if(i[1]==="/")if(o)o=!1;else return s.index;else n&&(o=!0)}return-1}function nr(e){let t=[],r=e.length,n=0;for(;n<r;){let o=e.indexOf("<",n);if(o===-1)break;if(e.startsWith("<!--",o)){let d=pi(e,o),m=d===-1?r:d;t.push([o,m]),n=m;continue}if(e.startsWith("<!",o)||e.startsWith("<?",o)){let d=e.indexOf(">",o),m=d===-1?r:d+1;t.push([o,m]),n=m;continue}let s=/^<\/?([a-zA-Z][^\s/>]*)/.exec(e.slice(o,o+64));if(!s){if(e.startsWith("</",o)){let d=e.indexOf(">",o),m=d===-1?r:d+1;t.push([o,m]),n=m;continue}n=o+1;continue}let i=o+1,a="",c=!1,l=!1,u=!1;for(;i<r;){let d=e[i],m=d===" "||d===" "||d===`
2
+ `||d==="\r"||d==="\f";if(a)d===a&&(a="");else if(d===">"){u=!l&&e[i-1]==="/",i+=1;break}else c?m||(d==='"'||d==="'"?a=d:l=!0,c=!1):l?m&&(l=!1):d==="="&&(c=!0);i+=1}i>o+1&&t.push([o+1,i]),n=i;let f=s[1].toLowerCase();if(!(e[o+1]==="/")&&!u&&uf(f)){let d;if(f==="plaintext")d=r;else if(f==="script"){let m=af(e,i);d=m===-1?r:m}else{let m=new RegExp(`</${f}(?=[\\s/>])`,"i").exec(e.slice(i));d=m?i+m.index:r}d>i&&t.push([i,d]),n=d}}return t}function cf(e,t){for(let[r,n]of e){if(r>t)return!1;if(t<n)return!0}return!1}function Qr(e){let t=0;return r=>{for(;t<e.length&&e[t][1]<=r;)t+=1;return t>=e.length?!1:r>=e[t][0]}}function wt(e,t,r,n){let o=St(r),s=new RegExp(`<${o}(?:[\\s>/])`,"gi"),i=new RegExp(`</${o}\\s*>`,"gi"),a=n===void 0?nr(e):n,c=u=>{let f;for(;(f=u.exec(e))!==null;)if(a.length===0||!cf(a,f.index))return f;return null};s.lastIndex=t,i.lastIndex=t;let l=1;for(;l>0;){let u=c(s),f=c(i);if(!f)return-1;if(u&&u.index<f.index)l++,i.lastIndex=u.index+1;else{if(l--,l===0)return f.index;s.lastIndex=f.index+1}}return-1}function St(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wo(e){return e==="script"||e==="style"}function lf(e){return e==="textarea"||e==="title"}function uf(e){return wo(e)||lf(e)||e==="iframe"||e==="xmp"||e==="noembed"||e==="noframes"||e==="plaintext"}var sf,So=v(()=>{sf=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"])});var tc,rc,nc=v(()=>{tc={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},rc=["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 cc(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function lc(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function or(e){return e.indexOf("&")===-1?e:e.replace(ff,(t,r,n,o,s,i)=>r!==void 0?ac(parseInt(r,10)):n!==void 0?ac(parseInt(n,16)):pf(t,o,s===";",e[i+t.length]))}function pf(e,t,r,n){if(r){let o=sc.get(t);return o===void 0?e:ic(o)}return!df.has(t)||n==="="?e:ic(sc.get(t))}function ic(e){return typeof e=="number"?String.fromCodePoint(e):String.fromCodePoint(...e)}function ac(e){return e===0||e>1114111||e>=55296&&e<=57343?"\uFFFD":oc[e]!==void 0?String.fromCodePoint(oc[e]):String.fromCodePoint(e)}var oc,ff,sc,df,_o=v(()=>{nc();oc={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},ff=/&(?:#(\d+);?|#[xX]([0-9a-fA-F]+);?|([a-zA-Z][a-zA-Z0-9]*)(;?))/g,sc=new Map(Object.entries(tc)),df=new Set(rc)});var pc={};ss(pc,{browserMemberHint:()=>mi,defaultSSRErrorTemplate:()=>en,isProd:()=>uc,render:()=>I,renderTemplate:()=>fc,streamRender:()=>te,streamTemplate:()=>dc});function uc(){return typeof process<"u"&&process.env&&!0}function mi(e){let t=e&&typeof e.message=="string"?e.message:"",r=/^(\w+) is not defined\b/.exec(t);return e instanceof ReferenceError&&r&&mf.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&&hf.has(r[1])?`\`${r[1]}\` is an HTMLElement method that does not exist on the server-side component instance during SSR.`:null)}function en(e,t,r){if(!(r===void 0?!uc():!!r))return"";let o=t&&t.message?t.message:String(t);return is`<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
3
  <strong>&lt;${e}&gt; failed to render</strong>
7
4
  <div style="margin-top:4px;white-space:pre-wrap">${o}</div>
8
- </div>`}function li(e,t){let n=t+4;if(e[n]===">")return n+1;if(e.startsWith("->",n))return n+2;for(;n<e.length;){if(e.startsWith("-->",n))return n+3;if(e.startsWith("--!>",n))return n+4;n+=1}return-1}function yl(e,t){let n=/<!--|-->|<\/script(?=[\s/>])|<script(?=[\s/>])/gi;n.lastIndex=t;let r=!1,o=!1,s;for(;(s=n.exec(e))!==null;){let i=s[0];if(i==="<!--"){let a=s.index+4;for(;e[a]==="-";)a+=1;e[a]===">"?(r=!1,o=!1,n.lastIndex=a+1):r||(r=!0)}else if(i==="-->")r=!1,o=!1;else if(i[1]==="/")if(o)o=!1;else return s.index;else r&&(o=!0)}return-1}function Pn(e){let t=[],n=e.length,r=0;for(;r<n;){let o=e.indexOf("<",r);if(o===-1)break;if(e.startsWith("<!--",o)){let p=li(e,o),m=p===-1?n:p;t.push([o,m]),r=m;continue}if(e.startsWith("<!",o)||e.startsWith("<?",o)){let p=e.indexOf(">",o),m=p===-1?n:p+1;t.push([o,m]),r=m;continue}let s=/^<\/?([a-zA-Z][^\s/>]*)/.exec(e.slice(o,o+64));if(!s){if(e.startsWith("</",o)){let p=e.indexOf(">",o),m=p===-1?n:p+1;t.push([o,m]),r=m;continue}r=o+1;continue}let i=o+1,a="",c=!1,l=!1,u=!1;for(;i<n;){let p=e[i],m=p===" "||p===" "||p===`
9
- `||p==="\r"||p==="\f";if(a)p===a&&(a="");else if(p===">"){u=!l&&e[i-1]==="/",i+=1;break}else c?m||(p==='"'||p==="'"?a=p:l=!0,c=!1):l?m&&(l=!1):p==="="&&(c=!0);i+=1}i>o+1&&t.push([o+1,i]),r=i;let f=s[1].toLowerCase();if(!(e[o+1]==="/")&&!u&&Cl(f)){let p;if(f==="plaintext")p=n;else if(f==="script"){let m=yl(e,i);p=m===-1?n:m}else{let m=new RegExp(`</${f}(?=[\\s/>])`,"i").exec(e.slice(i));p=m?i+m.index:n}p>i&&t.push([i,p]),r=p}}return t}function wl(e,t){for(let[n,r]of e){if(n>t)return!1;if(t<r)return!0}return!1}function no(e){let t=0;return n=>{for(;t<e.length&&e[t][1]<=n;)t+=1;return t>=e.length?!1:n>=e[t][0]}}async function _e(e,t,n=[],r){e=await _l(e,t,n,r);let o=Qr();if(!o.length)return e;let s=[...o].sort((p,m)=>m.length-p.length),i=new RegExp(`<(${s.map(zt).join("|")})(?=[\\s>/])((?:"[^"]*"|'[^']*'|[^>])*?)(/?)>`,"g"),a=[],c=Pn(e),l=no(c);for(let p of e.matchAll(i)){let[m,w,b,_]=p,g=Xr(w);if(!g||l(p.index))continue;t&&t.usedComponents&&t.usedComponents.add(w);let x=_?`<${w}${b}>`:m,S=null;try{let E=g.shadow===!0;S=new g,S.__ssrTag=w,S.__ssrAncestors=n;let T=ni(b),k=Pl(T),v=new Set(Object.keys(ni(b)).map(R=>R.toLowerCase()));Nl(S,T),Rl(S,T,g);for(let[R,I]of Object.entries(k))S[R]=I;let A="",h=p.index+m.length;if(!_){let R=p.index+m.length,I=Wt(e,R,w,c);if(I!==-1){A=e.slice(R,I);let Ct=new RegExp(`</${zt(w)}\\s*>`,"i"),lr=e.slice(I),Ko=Ct.exec(lr),ma=Ko?Ko[0].length:`</${w}>`.length;h=I+ma}else A=e.slice(R),h=e.length}let y=El(A);typeof S.performServerUpdate=="function"&&S.performServerUpdate();let C=S.render?S.render():"";C&&typeof C.then=="function"&&(C=await C),x=Tl(x,S,v),E||(x=ri(x));let N=await D(C,t);if(E){let R=await _e(N,t,[...n,S],r),I=g.styles,Ct=Array.isArray(I)?I:I&&Ve(I)?[I]:[],lr=rn(Ct);a.push({start:p.index,end:p.index+m.length,text:`${x}<template shadowrootmode="open">${lr}${R}</template>`})}else{if(N.trim()===""){a.push({start:p.index,end:p.index+m.length,text:`${x}<!--webjs-hydrate-->`});continue}let I=xl(N,y,w),Ct=await _e(I,t,[...n,S],r);a.push({start:p.index,end:h,text:`${x}<!--webjs-hydrate-->${Ct}</${w}>`})}}catch(E){let T=gl(E);console.error(T?`[webjs] SSR failed for <${w}>: ${T} 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 <${w}>:`,E);let k=E instanceof Error?E:new Error(String(E)),v="";try{let C;S&&typeof S.renderError=="function"&&(C=S.renderError(k)),C===void 0&&(C=ci(w,k,r)),v=await D(C,t),v.trim()&&(v=await _e(v,t,S?[...n,S]:n,r))}catch(C){console.error(`[webjs] renderError() for <${w}> also threw:`,C),v=""}let A=p.index+m.length;if(!_){let C=p.index+m.length,N=Wt(e,C,w,c);if(N!==-1){let I=new RegExp(`</${zt(w)}\\s*>`,"i").exec(e.slice(N));A=N+(I?I[0].length:`</${w}>`.length)}else A=e.length}let h=g.shadow===!0;h||(x=ri(x));let y;if(h){let C=g.styles,N=Array.isArray(C)?C:C&&Ve(C)?[C]:[],R=rn(N);y=`${x}<template shadowrootmode="open">${R}${v}</template>`}else y=`${x}<!--webjs-hydrate-->${v}</${w}>`;a.push({start:p.index,end:A,text:y})}}if(!a.length)return e;a.sort((p,m)=>p.start-m.start);let u=[],f=-1;for(let p of a)p.start>=f&&(u.push(p),f=p.end);let d=e;for(let p=u.length-1;p>=0;p--){let{start:m,end:w,text:b}=u[p];d=d.slice(0,m)+b+d.slice(w)}return d}var Sl=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Al(e){return Sl.has(e.toLowerCase())}async function _l(e,t,n=[],r){if(e.indexOf("<webjs-suspense")===-1)return e;let o=/<webjs-suspense((?:"[^"]*"|'[^']*'|[^>])*?)>/i,s=Pn(e),i=no(s),a=0,c="",l=e;for(let u=0;u<1e4;u++){let f=o.exec(l);if(!f){c+=l;break}if(i(a+f.index)){let E=f.index+f[0].length;c+=l.slice(0,E),l=l.slice(E),a+=E;continue}let d=f.index,p=f.index+f[0].length;c+=l.slice(0,d);let m=f[1]||"",w=/data-webjs-fallback="([^"]*)"/i.exec(m),b=w?Dn(w[1]):"",_=[];for(let[E,T]of s)T<=a||_.push([Math.max(0,E-a),T-a]);let g=Wt(l,p,"webjs-suspense",_),x,S;if(g===-1)x=l.slice(p),S="";else{x=l.slice(p,g);let E=/<\/webjs-suspense\s*>/i.exec(l.slice(g));S=l.slice(g+(E?E[0].length:17))}if(t){let E=`s${t.nextId++}`;t.pending.push({id:E,promise:Promise.resolve(wr(x))}),c+=`<webjs-suspense id="${E}">${b}</webjs-suspense>`}else{let E=await _e(x,t,n,r);c+=`<webjs-suspense>${E}</webjs-suspense>`}a+=l.length-S.length,l=S}return c}function Wt(e,t,n,r){let o=zt(n),s=new RegExp(`<${o}(?:[\\s>/])`,"gi"),i=new RegExp(`</${o}\\s*>`,"gi"),a=r===void 0?Pn(e):r,c=u=>{let f;for(;(f=u.exec(e))!==null;)if(a.length===0||!wl(a,f.index))return f;return null};s.lastIndex=t,i.lastIndex=t;let l=1;for(;l>0;){let u=c(s),f=c(i);if(!f)return-1;if(u&&u.index<f.index)l++,i.lastIndex=u.index+1;else{if(l--,l===0)return f.index;s.lastIndex=f.index+1}}return-1}function vl(e){let t=/\bslot\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(e);if(!t)return null;let n=t[1]??t[2]??t[3]??"";return n===""||n==="default"?null:n}function El(e){let t=new Map,n="",r=0;for(;r<e.length;){let o=e.indexOf("<",r);if(o===-1){n+=e.slice(r);break}o>r&&(n+=e.slice(r,o));let s=e.slice(o);if(s.startsWith("<!--")){let b=li(e,o);if(b===-1){n+=s,r=e.length;break}n+=e.slice(o,b),r=b;continue}if(s.startsWith("<!")||s.startsWith("</")){let b=e.indexOf(">",o);if(b===-1){n+=s,r=e.length;break}n+=e.slice(o,b+1),r=b+1;continue}let i=/^<([a-zA-Z][\w-]*)((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/.exec(s);if(!i){n+="<",r=o+1;continue}let[a,c,l,u]=i,f=c.toLowerCase(),d=!!u||Al(f),p=vl(l),m;if(d)m=o+a.length;else{let b=o+a.length,_=Wt(e,b,f);if(_===-1){let T=e.slice(o);p!==null?ti(t,p,T):n+=T,r=e.length;continue}let g=new RegExp(`</${zt(f)}\\s*>`,"i"),x=e.slice(_),S=g.exec(x),E=S?S[0].length:`</${f}>`.length;m=_+E}let w=e.slice(o,m);p!==null?ti(t,p,w):n+=w,r=m}return n.length>0&&t.set(null,n),t}function ti(e,t,n){let r=e.get(t);r!==void 0?e.set(t,r+n):e.set(t,n)}function xl(e,t,n){let r=n?` data-wj-slot-owner="${U(n)}"`:"",o=new Set,s="",i=0,a=/<slot((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/gi,c=Pn(e),l=no(c),u;for(;(u=a.exec(e))!==null;){if(l(u.index))continue;s+=e.slice(i,u.index);let[f,d,p]=u,m=!!p,w=/\bname\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(d),b=w?w[1]??w[2]??w[3]:null,_=d.replace(/\bname\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i,"").trim(),g="",x;if(m)x=u.index+f.length;else{let v=u.index+f.length,A=Wt(e,v,"slot",c);if(A===-1)g=e.slice(v),x=e.length;else{g=e.slice(v,A);let h=/<\/slot\s*>/i,y=e.slice(A),C=h.exec(y),N=C?C[0].length:7;x=A+N}}let S=b==="default"||b===""?null:b,E=t.get(S),T=b!==null?` name="${U(b)}"`:"",k=_?` ${_}`:"";E!==void 0&&!o.has(S)?(o.add(S),s+=`<slot data-webjs-light data-projection="actual"${r}${T}${k}>${E}</slot>`):s+=`<slot data-webjs-light data-projection="fallback"${r}${T}${k}>${g}</slot>`,i=x,a.lastIndex=x}return s+=e.slice(i),s}function zt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ro(e){return e==="script"||e==="style"}function kl(e){return e==="textarea"||e==="title"}function Cl(e){return ro(e)||kl(e)||e==="iframe"||e==="xmp"||e==="noembed"||e==="noframes"||e==="plaintext"}function ni(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 Nl(e,t){if(!(!e||typeof e.setAttribute!="function"))for(let[n,r]of Object.entries(t))e.setAttribute(n,Dn(r))}function ri(e){return/\sdata-wj-host(?=[\s>=])/i.test(e)?e:`${e.slice(0,-1)} data-wj-host>`}function Tl(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}="${U(String(i))}"`}return r?`${e.slice(0,-1)}${r}>`:e}function Rl(e,t,n){for(let[r,o]of Object.entries(t)){let s=Tn(n,r.toLowerCase());if(s===void 0)continue;let{propName:i,def:a}=s;e[i]=Nn(a,Dn(o))}}function Ll(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function jl(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var oi={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},ql=/&(?:#(\d+);?|#[xX]([0-9a-fA-F]+);?|([a-zA-Z][a-zA-Z0-9]*)(;?))/g,si=new Map(Object.entries(Qs)),Ol=new Set(ei);function Dn(e){return e.indexOf("&")===-1?e:e.replace(ql,(t,n,r,o,s,i)=>n!==void 0?ai(parseInt(n,10)):r!==void 0?ai(parseInt(r,16)):Il(t,o,s===";",e[i+t.length]))}function Il(e,t,n,r){if(n){let o=si.get(t);return o===void 0?e:ii(o)}return!Ol.has(t)||r==="="?e:ii(si.get(t))}function ii(e){return typeof e=="number"?String.fromCodePoint(e):String.fromCodePoint(...e)}function ai(e){return e===0||e>1114111||e>=55296&&e<=57343?"\uFFFD":oi[e]!==void 0?String.fromCodePoint(oi[e]):String.fromCodePoint(e)}function Pl(e){let t={};for(let n of Object.keys(e)){if(!n.startsWith("data-webjs-prop-"))continue;let r=Ll(n.slice(16));try{t[r]=de(Dn(e[n]))}catch{}delete e[n]}return t}function Dl(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 G(e,n,o,"none");else{let s=await D(e,n),i=await _e(s,n,[],r);o.enqueue(i)}n&&n.pending.length&&await Ml(n,o,r),o.close()}catch(s){o.error(s)}}})}async function G(e,t,n){if(!(e==null||e===!1||e===!0)){if(e&&typeof e.then=="function")return e=await e,G(e,t,n);if(et(e)){n.enqueue(String(e.value??""));return}if(Ne(e))return G(e.value,t,n);if(Oe(e))return G(e.signal.get(),t,n);if(Te(e))return G(e.value,t,n);if(Re(e))return G(e.fn(),t,n);if(tt(e)){let r=e.template;n.enqueue(String(r?.innerHTML??""));return}if(!Le(e)){if(je(e))return G(e.value,t,n);if(qe(e)){let r=e.args;for(let o of r)if(!o||typeof o.then!="function")return G(o,t,n);if(r.length>0)try{let o=await Promise.race(r.map(s=>Promise.resolve(s).catch(()=>{})));return G(o,t,n)}catch{return}return}if(!(nt(e)||rt(e))){if(Array.isArray(e)){for(let r of e)await G(r,t,n);return}if(Ce(e)){let r=e;for(let o=0;o<r.items.length;o++)await G(r.templateFn(r.items[o],o),t,n);return}if(In(e)){let r=e;if(t){let o=`s${t.nextId++}`;n.enqueue(`<webjs-boundary id="${o}">`),await G(r.fallback,t,n),n.enqueue("</webjs-boundary>"),t.pending.push({id:o,promise:Promise.resolve(r.children)})}else await G(r.fallback,t,n);return}if(F(e)){await $l(e,t,n);return}n.enqueue(sn(String(e)))}}}}async function $l(e,t,n){let{strings:r,values:o}=e,s="text",i="",a=0,c="",l=0,u="",f="",d="",p=-1,m=null,w=0,b=[],_=[],g=null,x=!1,S=()=>{let v=b,A=_,h=w>1,y=g;if(b=[],_=[],w=0,g=null,m!=null){qt({duplicateAction:h,propAttrs:v});let C=gr(d.slice(p),m);d=d.slice(0,p)+C.tag+C.hidden,m=null}y!=null&&(d=d.slice(0,p)+yr(d.slice(p),y,{duplicateAction:h,propAttrs:A}))},E=(v,A)=>{let h=String(A).toLowerCase();if(h==="button"||h==="input"){Ze(v)&&_.push(String(v));return}if(h!=="form")return;let y=String(v).toLowerCase();y==="encoding"&&(y="enctype"),(y==="method"||y==="enctype")&&b.push(String(v))},T=(v,A)=>{let h=String(A).toLowerCase(),y=String(v).toLowerCase();(h==="form"&&y==="action"||(h==="button"||h==="input")&&y==="formaction")&&(w+=1)},k=v=>{S(),x=!1,s=v&&ro(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let v=0;v<r.length;v++){let A=r[v];for(let h=0;h<A.length;h++){let y=A[h];switch(s){case"text":d+=y,y==="<"&&(s="tag-open",p=d.length-1,x=!1);break;case"tag-open":d+=y,y==="!"?s="bang-1":y==="/"?(s="tag-name",u="",x=!0):/[a-zA-Z]/.test(y)?(s="tag-name",u=y.toLowerCase()):s="text";break;case"bang-1":d+=y,s=y==="-"?"bang-dash":"tag-name";break;case"bang-dash":d+=y,y==="-"?(s="comment",l=0):s="tag-name";break;case"comment":d+=y,y==="-"?l+=1:(y===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":d+=y,y===">"?k(!0):/\s/.test(y)?s="in-tag":u+=y.toLowerCase();break;case"in-tag":d+=y,y===">"?k(!0):!/\s/.test(y)&&y!=="/"&&(s="attr-name",i=y,a=d.length-1);break;case"rawtext":d+=y,f=(f+y.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":y==="="?(s="after-eq",d+=y):/\s/.test(y)?(s="in-tag",i="",d+=y):y===">"?(s="text",i="",d+=y,k(!1)):(i+=y,d+=y);break;case"after-eq":y==='"'||y==="'"?(s="attr-quoted",c=y,d+=y):/\s/.test(y)?(s="in-tag",i="",d+=y):y===">"?(s="text",i="",d+=y,k(!1)):(s="attr-unquoted",d+=y);break;case"attr-unquoted":/\s/.test(y)?(s="in-tag",i="",d+=y):y===">"?(s="text",i="",d+=y,k(!1)):d+=y;break;case"attr-quoted":d+=y,y===c&&(s="in-tag",i="");break}}if(v<o.length){let h=o[v];if(h&&typeof h.then=="function"&&(h=await h),s==="comment")d+=String(h??""),l=0;else if(s==="rawtext")d+=String(h??""),f="";else if(s==="text")d&&(n.enqueue(d),d=""),await G(h,t,n);else if(s==="after-eq"){let y=i[0],C=i.slice(1),N=ze[y];if(N==="event"||N==="prop")N==="prop"&&!u.includes("-")&&(jt(h,C,u),E(C,u)),d=d.slice(0,a),s="in-tag",i="";else if(N==="bool")Z(h,C,u),d=d.slice(0,a),h&&(d+=`${C}=""`),s="in-tag",i="";else if(We(h,i,u)){if(T(i,u),u==="form")m=ge(await Lt(h),u),d=d.slice(0,a).replace(/\s+$/,"");else{Je(g!=null,u);let R=Xe(d.slice(p));R.has("name")&&Ke(R.get("name")||"",u,!1),R.has("value")&&Ge(u),R.has("form")&&Ye(u);let I=ge(await Lt(h),u);g=u,d=d.slice(0,a)+`name="${L}" value="${U(I)}"`}s="in-tag",i=""}else T(i,u),Z(h,i,u),d+=`"${U(String(h??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(Z(h,i,u),d+=U(String(h??"")))}}d&&n.enqueue(d)}async function Ml(e,t,n){let r=to(),o=r?` nonce="${U(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 D(c,e),u=await _e(l,e,[],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(c){console.error(`[webjs] Suspense boundary "${i}" rejected:`,c);try{let l=c instanceof Error?c:new Error(String(c)),u=await _e(await D(ci("webjs-suspense",l,n),e),e,[],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)}}}))}}Tt();var ui=Symbol.for("webjs.notFound"),fi=Symbol.for("webjs.redirect"),di=Symbol.for("webjs.forbidden"),pi=Symbol.for("webjs.unauthorized");function Fl(){let e=new Error("webjs: notFound()");throw e.__webjs=ui,e}function Bl(){let e=new Error("webjs: forbidden()");throw e.__webjs=di,e}function Ul(){let e=new Error("webjs: unauthorized()");throw e.__webjs=pi,e}function Hl(e,t){let n=typeof t=="object"&&t!==null?t.status:t,r=new Error(`webjs: redirect(${e})`);throw r.__webjs=fi,r.url=e,r.status=typeof n=="number"?n:void 0,r}function Vl(e){return!!e&&e.__webjs===ui}function zl(e){return!!e&&e.__webjs===fi}function Wl(e){return!!e&&e.__webjs===di}function Kl(e){return!!e&&e.__webjs===pi}var oo=null;function Gl(e){oo=e}function Yl(e){if(typeof e!="string"||!e||!oo)return e;try{return oo(e)||e}catch{return e}}Qe();function Jl(e,t={}){let n=t.reconnect!==!1,r=0,o=!1,s=null,i=[];function a(){o||(s=new WebSocket(Zl(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 Zl(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}`}ht();var so="application/vnd.webjs+json";async function Xl(e,t={}){let n=new Headers(t.headers||{});n.has("accept")||n.set("accept",so);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 Vt(r),n.has("content-type")||n.set("content-type",so));let o=await fetch(e,{...t,headers:n,body:r}),s=o.headers.get("content-type")||"",i=await o.text(),a=s.includes(so)?i?de(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}ht();lo();co();Mn();var Ho=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 af(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 cf(e,t,n){return e&&typeof e.get=="function"&&typeof e.set=="function"?af(e,t,n):new Ho(e,t)}go();wo();var lf="application/vnd.webjs+stream",uf=1,ff=2,df=3,ha=new Uint8Array(0);function pf(e,t){let n=t||ha,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 hf(){let e=ha;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}}}var mf=Symbol.for("webjs.context");function gf(e){return{__context__:mf,name:e}}var cr=class extends Event{constructor(t,n,r=!1){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=n,this.subscribe=r}},Vo=class{constructor(t,{context:n,initialValue:r}){this._host=t,this._context=n,this._value=r,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 n of this._subscriptions){let r=()=>{this._subscriptions.delete(n)};n.callback(t,r)}}}hostConnected(){this._host.addEventListener("context-request",this._onRequest)}hostDisconnected(){this._host.removeEventListener("context-request",this._onRequest),this._subscriptions.clear()}},zo=class{constructor(t,{context:n,subscribe:r=!0}){this._host=t,this._context=n,this._subscribe=r,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 cr(this._context,(n,r)=>{let o=this._value;this._value=n,r&&(this._unsubscribe=r),!Object.is(o,n)&&typeof this._host.requestUpdate=="function"&&this._host.requestUpdate()},this._subscribe);this._host.dispatchEvent(t)}};function bf(){return typeof window<"u"}var me={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},Wo=class{constructor(t,{task:n,args:r,autoRun:o=!0}){this._host=t,this._taskFn=n,this._argsFn=r||(()=>[]),this._autoRun=o,this._status=me.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 n=this._argsFn();this._prevArgs=n,this._status=me.PENDING,this._error=void 0,this._requestHostUpdate();try{let r=await this._taskFn(...n,{signal:t.signal});if(t.signal.aborted)return;this._value=r,this._status=me.COMPLETE,this._error=void 0}catch(r){if(t.signal.aborted)return;this._error=r,this._status=me.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 me.INITIAL:return t.initial?.();case me.PENDING:return t.pending?.();case me.COMPLETE:return t.complete?.(this._value);case me.ERROR:return t.error?.(this._error);default:return}}hostUpdate(){if(!this._autoRun||!bf())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,n){if(t===null||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==n[r])return!1;return!0}};export{zo as ContextConsumer,Vo as ContextProvider,cr as ContextRequestEvent,L as FORM_ACTION_FIELD,Jo as FORM_ACTION_ID_KEY,uf as FRAME_CHUNK,ff as FRAME_END,df as FRAME_ERROR,$ as MARKER,_i as SEED_MISS,lf as STREAM_CONTENT_TYPE,Pt as Signal,ul as Suspense,Wo as Task,me as TaskStatus,On as WebComponent,ao as WebjsFrame,uo as WebjsStream,Fc as activeActionSignal,fr as adoptStyles,Qr as allTags,Yl as asset,Da as asyncAppend,$a as asyncReplace,Ga as batch,Ia as cache,Ja as computed,Jl as connectWS,hu as consumeStale,gf as createContext,hf as createFrameDecoder,Oa as createRef,to as cspNonce,ba as css,Ws as deserialize,ji as disableClientRouter,Xa as effect,Ro as enableClientRouter,pf as encodeFrame,U as escapeAttr,sn as escapeText,du as fetchMark,Bl as forbidden,La as guard,ur as html,nt as isAsyncAppend,rt as isAsyncReplace,Ve as isCSS,je as isCache,Wl as isForbidden,Re as isGuard,Te as isKeyed,Hc as isLazy,Ne as isLive,Vl as isNotFound,zl as isRedirect,Le as isRef,Ce as isRepeat,Za as isSignal,In as isSuspense,F as isTemplate,tt as isTemplateContent,Kl as isUnauthorized,et as isUnsafeHTML,qe as isUntil,Oe as isWatch,Ra as keyed,Ta as live,Oi as loadFrame,Xr as lookup,Uc as lookupModuleUrl,bo as markStale,qi as navigate,Fl as notFound,cf as optimistic,de as parse,yo as parseTagHeader,Bc as primeModuleUrl,ll as prop,Hl as redirect,qa as ref,Zr as register,pu as registerKeyTags,dt as render,fo as renderStream,Dl as renderToStream,dl as renderToString,rs as repeat,Ii as revalidate,Xl as richFetch,Fn as scanSeeds,uu as seedStats,zs as serialize,Rn as setActiveActionSignal,Gl as setAssetUrlProvider,fl as setCspNonceProvider,ya as setFormActionResolver,Ya as signal,Vt as stringify,rn as stylesToString,pt as tagOf,lu as takeSeed,ja as templateContent,Ul as unauthorized,wr as unsafeHTML,Pa as until,Ma as watch};
5
+ </div>`}async function I(e,t){if(e==null||e===!1||e===!0)return"";if(e&&typeof e.then=="function")return e=await e,I(e,t);if(Ut(e))return String(e.value??"");if(Y(e))return I(e.value,t);if(it(e))return I(e.signal.get(),t);if(tt(e))return I(e.value,t);if(rt(e))return I(e.fn(),t);if(Vt(e)){let r=e.template;return String(r?.innerHTML??"")}if(nt(e))return"";if(ot(e))return I(e.value,t);if(st(e)){let r=e.args;for(let n of r)if(!n||typeof n.then!="function")return I(n,t);if(r.length>0)try{let n=await Promise.race(r.map(o=>Promise.resolve(o).catch(()=>{})));return I(n,t)}catch{return""}return""}if(Wt(e)||zt(e))return"";if(Array.isArray(e))return(await Promise.all(e.map(n=>I(n,t)))).join("");if(et(e)){let r=e;return(await Promise.all(r.items.map((o,s)=>I(r.templateFn(o,s),t)))).join("")}if(yo(e)){let r=e,n=await I(r.fallback,t);if(t){let o=`s${t.nextId++}`;return t.pending.push({id:o,promise:Promise.resolve(r.children)}),`<webjs-boundary id="${o}">${n}</webjs-boundary>`}return n}return W(e)?fc(e,t):Wn(String(e))}async function fc(e,t){let{strings:r,values:n}=e,o="",s="text",i="",a=0,c="",l=0,u="",f="",p=-1,d=null,m=null,g=0,w=[],_=[],b=()=>{let N=w,k=_,S=g>1,h=m;if(w=[],_=[],g=0,m=null,d!=null){jr({duplicateAction:S,propAttrs:N});let y=ds(o.slice(p),d);o=o.slice(0,p)+y.tag+y.hidden,d=null}h!=null&&(o=o.slice(0,p)+ms(o.slice(p),h,{duplicateAction:S,propAttrs:k}))},E=(N,k)=>{let S=String(k).toLowerCase();if(S==="button"||S==="input"){Bt(N)&&_.push(String(N));return}if(S!=="form")return;let h=String(N).toLowerCase();h==="encoding"&&(h="enctype"),(h==="method"||h==="enctype")&&w.push(String(N))},A=(N,k)=>{let S=String(k).toLowerCase(),h=String(N).toLowerCase();(S==="form"&&h==="action"||(S==="button"||S==="input")&&h==="formaction")&&(g+=1)},T=N=>{b(),s=N&&wo(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let N=0;N<r.length;N++){let k=r[N];for(let S=0;S<k.length;S++){let h=k[S];switch(s){case"text":o+=h,h==="<"&&(s="tag-open",p=o.length-1);break;case"tag-open":o+=h,h==="!"?s="bang-1":h==="/"?(s="tag-name",u=""):/[a-zA-Z]/.test(h)?(s="tag-name",u=h.toLowerCase()):s="text";break;case"bang-1":o+=h,s=h==="-"?"bang-dash":"tag-name";break;case"bang-dash":o+=h,h==="-"?(s="comment",l=0):s="tag-name";break;case"comment":o+=h,h==="-"?l+=1:(h===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":o+=h,h===">"?T(!0):/\s/.test(h)?s="in-tag":u+=h.toLowerCase();break;case"in-tag":o+=h,h===">"?T(!0):!/\s/.test(h)&&h!=="/"&&(s="attr-name",i=h,a=o.length-1);break;case"rawtext":o+=h,f=(f+h.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":h==="="?(s="after-eq",o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):(i+=h,o+=h);break;case"after-eq":h==='"'||h==="'"?(s="attr-quoted",c=h,o+=h):/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):(s="attr-unquoted",o+=h);break;case"attr-unquoted":/\s/.test(h)?(s="in-tag",i="",o+=h):h===">"?(s="text",i="",o+=h,T(!1)):o+=h;break;case"attr-quoted":o+=h,h===c&&(s="in-tag",i="");break}}if(N<n.length){let S=n[N];if(S&&typeof S.then=="function"&&(S=await S),Y(S)&&(S=S.value),s==="comment")o+=String(S??""),l=0;else if(s==="rawtext")o+=String(S??""),f="";else if(s==="text")o+=await I(S,t);else if(s==="after-eq"){let h=i[0],y=i.slice(1),C=qt[h];if(C==="event")o=o.slice(0,a),s="in-tag",i="";else if(C==="prop"){if(o=o.slice(0,a),u==="webjs-suspense"&&y==="fallback"){let x=await I(S,t);o+=`data-webjs-fallback="${H(x)}"`,s="in-tag",i="";continue}if(!u.includes("-")){Or(S,y,u),E(y,u),s="in-tag",i="";continue}if(S===void 0){s="in-tag",i="";continue}try{let x=await Jr(S);o+=`data-webjs-prop-${lc(y)}="${H(x)}"`}catch(x){console.warn(`[webjs] property binding .${y} has an unserializable value during SSR. Dropping. The browser will see the property as undefined. Detail: ${x&&x.message}`)}s="in-tag",i=""}else if(C==="bool")ie(S,y,u),o=o.slice(0,a),S&&(o+=`${y}=""`),s="in-tag",i="";else if(Qe(S,i,u)){if(A(i,u),u==="form")d=Ie(await Lr(S),u),o=o.slice(0,a).replace(/\s+$/,"");else{$t(m!=null,u);let x=Ht(o.slice(p));x.has("name")&&Dt(x.get("name")||"",u,!1),x.has("value")&&Mt(u),x.has("form")&&Ft(u);let q=Ie(await Lr(S),u);m=u,o=o.slice(0,a)+`name="${F}" value="${H(q)}"`}s="in-tag",i=""}else A(i,u),ie(S,i,u),o+=`"${H(String(S??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(ie(S,i,u),o+=H(String(S??"")))}}return o}async function te(e,t,r){if(!(e==null||e===!1||e===!0)){if(e&&typeof e.then=="function")return e=await e,te(e,t,r);if(Ut(e)){r.enqueue(String(e.value??""));return}if(Y(e))return te(e.value,t,r);if(it(e))return te(e.signal.get(),t,r);if(tt(e))return te(e.value,t,r);if(rt(e))return te(e.fn(),t,r);if(Vt(e)){let n=e.template;r.enqueue(String(n?.innerHTML??""));return}if(!nt(e)){if(ot(e))return te(e.value,t,r);if(st(e)){let n=e.args;for(let o of n)if(!o||typeof o.then!="function")return te(o,t,r);if(n.length>0)try{let o=await Promise.race(n.map(s=>Promise.resolve(s).catch(()=>{})));return te(o,t,r)}catch{return}return}if(!(Wt(e)||zt(e))){if(Array.isArray(e)){for(let n of e)await te(n,t,r);return}if(et(e)){let n=e;for(let o=0;o<n.items.length;o++)await te(n.templateFn(n.items[o],o),t,r);return}if(yo(e)){let n=e;if(t){let o=`s${t.nextId++}`;r.enqueue(`<webjs-boundary id="${o}">`),await te(n.fallback,t,r),r.enqueue("</webjs-boundary>"),t.pending.push({id:o,promise:Promise.resolve(n.children)})}else await te(n.fallback,t,r);return}if(W(e)){await dc(e,t,r);return}r.enqueue(Wn(String(e)))}}}}async function dc(e,t,r){let{strings:n,values:o}=e,s="text",i="",a=0,c="",l=0,u="",f="",p="",d=-1,m=null,g=0,w=[],_=[],b=null,E=()=>{let k=w,S=_,h=g>1,y=b;if(w=[],_=[],g=0,b=null,m!=null){jr({duplicateAction:h,propAttrs:k});let C=ds(p.slice(d),m);p=p.slice(0,d)+C.tag+C.hidden,m=null}y!=null&&(p=p.slice(0,d)+ms(p.slice(d),y,{duplicateAction:h,propAttrs:S}))},A=(k,S)=>{let h=String(S).toLowerCase();if(h==="button"||h==="input"){Bt(k)&&_.push(String(k));return}if(h!=="form")return;let y=String(k).toLowerCase();y==="encoding"&&(y="enctype"),(y==="method"||y==="enctype")&&w.push(String(k))},T=(k,S)=>{let h=String(S).toLowerCase(),y=String(k).toLowerCase();(h==="form"&&y==="action"||(h==="button"||h==="input")&&y==="formaction")&&(g+=1)},N=k=>{E(),s=k&&wo(u)?"rawtext":"text",s==="rawtext"&&(f="")};for(let k=0;k<n.length;k++){let S=n[k];for(let h=0;h<S.length;h++){let y=S[h];switch(s){case"text":p+=y,y==="<"&&(s="tag-open",d=p.length-1);break;case"tag-open":p+=y,y==="!"?s="bang-1":y==="/"?(s="tag-name",u=""):/[a-zA-Z]/.test(y)?(s="tag-name",u=y.toLowerCase()):s="text";break;case"bang-1":p+=y,s=y==="-"?"bang-dash":"tag-name";break;case"bang-dash":p+=y,y==="-"?(s="comment",l=0):s="tag-name";break;case"comment":p+=y,y==="-"?l+=1:(y===">"&&l>=2&&(s="text"),l=0);break;case"tag-name":p+=y,y===">"?N(!0):/\s/.test(y)?s="in-tag":u+=y.toLowerCase();break;case"in-tag":p+=y,y===">"?N(!0):!/\s/.test(y)&&y!=="/"&&(s="attr-name",i=y,a=p.length-1);break;case"rawtext":p+=y,f=(f+y.toLowerCase()).slice(-9),(f.endsWith("<\/script>")||f.endsWith("</style>"))&&(s="text",f="",u="");break;case"attr-name":y==="="?(s="after-eq",p+=y):/\s/.test(y)?(s="in-tag",i="",p+=y):y===">"?(s="text",i="",p+=y,N(!1)):(i+=y,p+=y);break;case"after-eq":y==='"'||y==="'"?(s="attr-quoted",c=y,p+=y):/\s/.test(y)?(s="in-tag",i="",p+=y):y===">"?(s="text",i="",p+=y,N(!1)):(s="attr-unquoted",p+=y);break;case"attr-unquoted":/\s/.test(y)?(s="in-tag",i="",p+=y):y===">"?(s="text",i="",p+=y,N(!1)):p+=y;break;case"attr-quoted":p+=y,y===c&&(s="in-tag",i="");break}}if(k<o.length){let h=o[k];if(h&&typeof h.then=="function"&&(h=await h),Y(h)&&(h=h.value),s==="comment")p+=String(h??""),l=0;else if(s==="rawtext")p+=String(h??""),f="";else if(s==="text")p&&(r.enqueue(p),p=""),await te(h,t,r);else if(s==="after-eq"){let y=i[0],C=i.slice(1),x=qt[y];if(x==="event"||x==="prop")x==="prop"&&!u.includes("-")&&(Or(h,C,u),A(C,u)),p=p.slice(0,a),s="in-tag",i="";else if(x==="bool")ie(h,C,u),p=p.slice(0,a),h&&(p+=`${C}=""`),s="in-tag",i="";else if(Qe(h,i,u)){if(T(i,u),u==="form")m=Ie(await Lr(h),u),p=p.slice(0,a).replace(/\s+$/,"");else{$t(b!=null,u);let q=Ht(p.slice(d));q.has("name")&&Dt(q.get("name")||"",u,!1),q.has("value")&&Mt(u),q.has("form")&&Ft(u);let B=Ie(await Lr(h),u);b=u,p=p.slice(0,a)+`name="${F}" value="${H(B)}"`}s="in-tag",i=""}else T(i,u),ie(h,i,u),p+=`"${H(String(h??""))}"`,s="in-tag",i=""}else(s==="attr-quoted"||s==="attr-unquoted")&&(ie(h,i,u),p+=H(String(h??"")))}}p&&r.enqueue(p)}var mf,hf,Ao=v(()=>{Pt();Vn();Xe();Ne();Pr();di();Kt();yt();So();_o();mf=new Set(["document","window","localStorage","sessionStorage","navigator","matchMedia","requestAnimationFrame","getComputedStyle","IntersectionObserver","MutationObserver","ResizeObserver"]),hf=new Set(["attachShadow","querySelector","querySelectorAll","getBoundingClientRect","focus","blur","scrollIntoView"])});var Cc={};ss(Cc,{observeLazy:()=>Of,observeViewportOnce:()=>If});function kc(e){let t=wi.get(e);return t||(t=import(e).finally(()=>wi.delete(e)),wi.set(e,t),t)}function Of(e){for(let[t,r]of Object.entries(e))_t.set(t.toLowerCase(),r);if(typeof IntersectionObserver>"u"){for(let t of _t.values())kc(t);_t.clear();return}rn||(rn=new IntersectionObserver(jf,{rootMargin:"200px"})),Nc(),typeof MutationObserver<"u"&&new MutationObserver(()=>Nc()).observe(document.body,{childList:!0,subtree:!0})}function Nc(){if(!(!rn||!_t.size))for(let e of _t.keys())for(let t of document.querySelectorAll(e))rn.observe(t)}function jf(e){for(let t of e){if(!t.isIntersecting)continue;let r=t.target.tagName.toLowerCase(),n=_t.get(r);n&&(kc(n),_t.delete(r),rn?.unobserve(t.target))}}function Pf(e){for(let t of e){if(!t.isIntersecting)continue;let r=xo.get(t.target);xo.delete(t.target),tn?.unobserve(t.target),r&&r()}}function If(e,t){return typeof IntersectionObserver>"u"?(t(),()=>{}):(tn||(tn=new IntersectionObserver(Pf,{rootMargin:"200px"})),xo.set(e,t),tn.observe(e),()=>{xo.delete(e),tn?.unobserve(e)})}var _t,rn,wi,tn,xo,Rc=v(()=>{_t=new Map,rn=null,wi=new Map;tn=null,xo=new WeakMap});var Si,_i=v(()=>{Si=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(()=>(Rc(),Cc)).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(()=>(Ai(),Lc)).then(({loadFrame:r})=>{this._webjsLoadedSrc!==t||!this.isConnected||r(this,t)})}}:null;typeof customElements<"u"&&Si&&!customElements.get("webjs-frame")&&customElements.define("webjs-frame",Si)});function Df(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 vi(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 qf,xi,nn=v(()=>{qf=new Set(["append","prepend","before","after","replace","update"]);xi=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=qf.has(t)?this.querySelector("template"):null;try{for(let i of n){let a=s?s.content.cloneNode(!0):null;Df(t,i,a)}}finally{this.remove()}}}:null;typeof customElements<"u"&&xi&&!customElements.get("webjs-stream")&&customElements.define("webjs-stream",xi)});var Oc,jc=v(()=>{Oc=typeof HTMLElement<"u"?class extends HTMLElement{connectedCallback(){this.style.display||(this.style.display="contents")}}:null;typeof customElements<"u"&&Oc&&!customElements.get("webjs-suspense")&&customElements.define("webjs-suspense",Oc)});function vo(e,t){let r=typeof document<"u"?document:null,n=e||r;if(!n||typeof n.querySelectorAll!="function")return;if(t&&t.frame===!0){Ei(n,!0);return}qc();let o=n===r,s=!!r&&!o&&typeof r.contains=="function"&&r.contains(n),i=!!r&&!o&&!s;i&&(Ei(r,!0),Ve.clear(),Ni.clear()),(o||i)&&(Ti=!0);let a=G.ingested+G.replaced;$f(Ei(n),a)}function Ei(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=Ff(n.getAttribute?.("data-webjs-dev"));o!==null&&(r=o),Pc(t?null:n.textContent,n)}for(let n of e.querySelectorAll("[data-webjs-seed]"))Pc(t?null:n.getAttribute("data-webjs-seed"),n,()=>n.removeAttribute("data-webjs-seed"));return r}function Pc(e,t,r){if(e)try{let n=Ce(e);if(n&&typeof n=="object")for(let o in n){Ve.has(o)?G.replaced++:G.ingested++,Ve.set(o,n[o]);let s=o.indexOf("/",o.indexOf("/")+1);s>0&&Ni.add(o.slice(0,s))}}catch{}r?r():t.remove?.()}function Ff(e){return typeof e!="string"?null:e||"ok"}function $f(e,t){if(e===null)return;let r=++Mf;sr={epoch:r,hits:G.hits,misses:G.misses,keyMisses:G.keyMisses,merged:t,marker:e};let n=()=>{!sr||sr.epoch!==r||qc()};try{typeof requestIdleCallback=="function"?requestIdleCallback(n,{timeout:1e3}):setTimeout(n,250)}catch{sr=null}}function qc(){let e=sr;if(sr=null,!!e)try{Bf(e)}catch{}}function Bf(e){let t=G.hits-e.hits,r=G.misses-e.misses,n=G.ingested+G.replaced-e.merged,o=G.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, ${Ve.size} still unconsumed). ${s} See https://webjs.dev/docs/data-fetching for the seeding reference.`)}function Hf(e,t,r){Ti||(Ti=!0,vo());let n=`${e}/${t}/${r}`;if(Ve.has(n)){let o=Ve.get(n);return Ve.delete(n),G.hits++,o}return G.misses++,Ni.has(`${e}/${t}`)&&G.keyMisses++,Ic}function Uf(){return{...G,pending:Ve.size}}var Ve,Ic,Ti,G,Ni,sr,Mf,Eo=v(()=>{yt();Ve=new Map,Ic=Symbol("webjs.seed.miss"),Ti=!1,G={ingested:0,replaced:0,hits:0,misses:0,keyMisses:0},Ni=new Set,sr=null,Mf=0});function ki(e){if(!(!Array.isArray(e)||!e.length)){To+=1;for(let t of e)t&&Dc.set(t,To)}}function Wf(){return To}function zf(e,t,r){if(!(!Array.isArray(t)||!t.length)&&(ir.delete(e),ir.set(e,{tags:t.slice(),since:typeof r=="number"?r:To}),ir.size>Vf)){let n=ir.keys().next().value;n!==void 0&&ir.delete(n)}}function Kf(e){let t=ir.get(e);if(!t)return!1;for(let r of t.tags)if((Dc.get(r)||0)>t.since)return!0;return!1}function Ci(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}var To,Dc,ir,Vf,No=v(()=>{To=0,Dc=new Map,ir=new Map,Vf=1e3});function Mc(e){return ar.test(e)}var Ri,Li,ar,on,At,cr,ko,Fc,re=v(()=>{Ri="text/vnd.webjs-stream.html",Li=["wheel","touchmove","keydown","pointerdown"],ar=/\.(?: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,on="_top",At="webjs:nav-fallback",cr=new Set(["value","checked","selected","indeterminate","disabled","open","popover"]),ko="name=csp-nonce";Fc=250});function We(e,t,r="warn"){if(Oi.has(e)||(Oi.add(e),typeof console>"u"))return;let n=r==="error"?console.error:console.warn;n&&n.call(console,t)}function Bc(e,t,r,n){if(typeof process<"u"&&process.env||!n.has(F))return;let o="";try{o=new URL(e.getAttribute("action")||location.href,location.href).pathname}catch{o=location.pathname}if(r!=="post"){We(`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"){We(`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&&We(`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 Pi(e,t){return!e&&!t&&typeof document<"u"&&document.readyState==="loading"}function Co(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 Hc(){if(typeof location>"u"||$c)return;$c=!0;let e=null;try{e=sessionStorage.getItem(At),sessionStorage.removeItem(At)}catch{}let t="";try{let r=performance.getEntriesByType("navigation")[0];t=r?r.type:""}catch{}Co(t,document.referrer,location.href,e)&&pe("pre-boot-navigation",location.href,!1)}function pe(e,t,r=!0){if(r)try{sessionStorage.setItem(At,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||We(`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 Uc(e){typeof process<"u"&&process.env||We(`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 Vc(){if(typeof process<"u"&&process.env||ji||typeof document>"u"||typeof getComputedStyle!="function")return;let e=document.documentElement;if(!e)return;ji=!0;let t;try{t=getComputedStyle(e).scrollBehavior}catch{return}t==="smooth"&&We("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 sn(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 Wc(){Oi.clear(),ji=!1}function zc(e,t){return Pi(e,t)}var Oi,$c,ji,me=v(()=>{Ne();re();Oi=new Set;$c=!1;ji=!1});function he(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 an(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.startsWith(c==="/"?c: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 Ae(){let e=he(document.body);return e?[...e.entries()].map(([t,r])=>`${t}:${r.routeKey}`).join(","):""}var ze=v(()=>{});function Kc(e){xe=e||(t=>{location.href=t})}function Gc(){return V}function Yc(){return++V}function Ro(){return++V}function Ii(e){oe=e}function Jc(e){cn=e}function Zc(e){let t=cn!==null&&cn===e;return cn=null,t}function Lo(){cn=null}var V,xe,oe,cn,Le=v(()=>{V=0,xe=e=>{location.href=e};oe=!1;cn=null});function xt(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"&&Gf()?Document.parseHTMLUnsafe(e):Yf(e)}function Gf(){if(lr!==null)return lr;try{lr=Document.parseHTMLUnsafe("<!doctype html><body><!--c--><i></i>")?.body?.firstChild?.nodeType===8}catch{lr=!1}return lr}function qi(){lr=null}function Yf(e){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(e,"text/html")}var lr,ln=v(()=>{lr=null});function Oo(e){for(let t of e.composedPath())if(t instanceof HTMLAnchorElement)return t;return null}function Di(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=n&&n.host?n.host:null}return null}var jo=v(()=>{});function un(e,t){return((t&&t.hasAttribute("formmethod")?t.getAttribute("formmethod")||"":e.getAttribute("method")||"")||"get").toLowerCase()}function fn(e,t){return t&&t.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||e.action||location.href}function Jf(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 dn(e,t){return Jf(t&&t.hasAttribute("formenctype")?t.getAttribute("formenctype"):e.getAttribute("enctype"))}function pn(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 mn(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 Po=v(()=>{});function Xc(){if(typeof document>"u")return"";let e=document.querySelector('meta[name="csp-nonce"]');return e&&e.getAttribute("content")||""}function hn(e){let t=document.createElement("script");for(let n of e.attributes)n.name!=="nonce"&&t.setAttribute(n.name,n.value);let r=Xc();return r&&t.setAttribute("nonce",r),t.textContent=e.textContent,t}function Mi(e){if(!e.hasAttribute("nonce"))return e.cloneNode(!0);let t=e.cloneNode(!0),r=Xc();return r?t.setAttribute("nonce",r):t.removeAttribute("nonce"),t}function ve(e){if(!e.hasAttribute("nonce"))return e.outerHTML;let t=e.cloneNode(!0);return t.removeAttribute("nonce"),t.outerHTML}function Io(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 Zf(e){if(!e.querySelector("meta"))return;let t=o=>{let s=new Map;for(let i of o.querySelectorAll("meta")){let a=Io(i);if(!a||a===ko)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(ve).join(`
6
+ `),c=i.map(ve).join(`
7
+ `);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(Mi(l))}}for(let[o,s]of n)if(!r.has(o))for(let i of s)i.remove()}function ur(e){let t=e.querySelector("title");t&&(document.title=t.textContent||"");let r=new Set;for(let n of document.head.children)r.add(ve(n));for(let n of e.children)n.tagName==="SCRIPT"&&n.getAttribute("type")==="importmap"||n.tagName!=="BASE"&&n.tagName!=="TITLE"&&(n.tagName==="META"&&Io(n)||r.has(ve(n))||(n.tagName==="SCRIPT"?document.head.appendChild(hn(n)):document.head.appendChild(Mi(n))));Zf(e)}function Xf(e){return e.tagName==="STYLE"?!0:e.tagName==="LINK"&&(e.getAttribute("rel")||"").toLowerCase().split(/\s+/).includes("stylesheet")}function gn(e){let t=document.head,r=e.querySelector("title");r&&(document.title=r.textContent||"");let n=new Set;for(let s of t.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&n.add(ve(s));let o=new Set;for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&o.add(ve(s));for(let s of[...t.children])s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(Xf(s)||s.tagName==="META"&&Io(s)===ko||o.has(ve(s))||s.remove());for(let s of e.children)s.tagName==="SCRIPT"&&s.getAttribute("type")==="importmap"||s.tagName!=="BASE"&&s.tagName!=="TITLE"&&(s.tagName==="META"&&Io(s)===ko||n.has(ve(s))||(s.tagName==="SCRIPT"?t.appendChild(hn(s)):t.appendChild(Mi(s))))}var bn=v(()=>{re()});function Mo(e){let t=e;for(;t;){let r=t.closest("webjs-frame");if(r&&r.id)return r.id;let n=t.getRootNode();if(n&&n.host)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===on)return null;let n=typeof document<"u"?document.getElementById(r):null;return n&&n.tagName&&n.tagName.toLowerCase()==="webjs-frame"?r:(We(`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 Mo(e)}function Fi(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 yn(e,t){let r=Fi(e);if(!r)return null;let n=qo.has(r);return qo.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 wn(e,t){if(qo.get(e)!==t)return;qo.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 Sn(e,t,r){let n=Do.has(e);return Do.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 _n(e,t,r,n){if(Do.get(e)!==t)return;Do.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 $i(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+=ve(n);return r}var qo,Do,Ke=v(()=>{re();me();bn();qo=new WeakMap;Do=new WeakMap});function tl(e,t){if(typeof document>"u"||!document.documentElement)return()=>{};ce&&ce();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},Fc):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(ce===l){if(ce=null,o&&(clearTimeout(o),o=null),a&&clearTimeout(a),s=!1,typeof window<"u"){for(let u of Li)window.removeEventListener(u,l,{capture:!0});c&&window.removeEventListener("scroll",c)}n?r.style.setProperty("overflow-anchor",n):r.style.removeProperty("overflow-anchor")}};if(ce=l,o=setTimeout(l,2e3),typeof window<"u"){for(let u of Li)window.addEventListener(u,l,{capture:!0,passive:!0});c&&window.addEventListener("scroll",c,{passive:!0})}return l}function rl(e){if(typeof document>"u"||!document.documentElement)return()=>{};if(le&&le(),!(e>0))return()=>{};let t=document.documentElement,r=t.style.getPropertyValue("min-height");t.style.setProperty("min-height",e+"px");let n=null,o=()=>{le===o&&(le=null,n&&(clearTimeout(n),n=null),r?t.style.setProperty("min-height",r):t.style.removeProperty("min-height"))};return le=o,n=setTimeout(o,2e3),o}function $o(e){if(typeof requestAnimationFrame!="function"){setTimeout(e,0);return}requestAnimationFrame(()=>requestAnimationFrame(e))}function Bo(){Fo+=1}function An(e,t){let r=Qc(e)||Qc(t);return r?(r.getAttribute("data-preserve-scroll")||"").toLowerCase().trim()!=="false":!1}function Qc(e){return!e||typeof e.closest!="function"?null:e.closest("[data-preserve-scroll]")}var ce,le,Fo,Ho=v(()=>{re();ce=null;le=null;Fo=0});function Bi(e){if(!oe||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=Oo(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("#")){Jc(n.href);return}if(t.hasAttribute("data-no-router")||ar.test(n.pathname))return;e.preventDefault();let o=ge(t);xn(r,!1,o,{preserveScroll:An(t)})}function fr(e){nl(location.href)||xn(location.href,!0,null)}function dr(e){if(!oe||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=un(t,r);if(o==="dialog")return;let s=dn(t,r),i=o==="get"||o==="head",a=fn(t,r),c;try{c=new URL(a,location.href)}catch{return}if(c.origin!==location.origin||ar.test(c.pathname))return;let l=mn(t,r);if(Bc(t,r,o,l),!i&&s==="text/plain")return;let u=pn(l,s);e.preventDefault();let f=ge(r||t),p=An(r||t,t);ol(c.href,o,u,f,t,{preserveScroll:p})}var Uo=v(()=>{jo();re();Le();me();Po();Ke();Ho();vn()});function Hi(e){let t=Ee(e);document.dispatchEvent(new CustomEvent("webjs:before-cache",{detail:{url:e}})),D.has(t)&&D.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(D.set(t,r);D.size>16;){let n=D.keys().next().value;D.delete(n)}}function sl(e){let t=Ee(e),r=D.get(t);return r==null?null:(D.delete(t),D.set(t,r),typeof r=="string"?{html:r,scrollX:0,scrollY:0,scrollHeight:0}:r)}function Ee(e,t){let r=new URL(e,location.href),n=r.pathname+r.search;return t?`${t} ${n}`:n}var D,pr=v(()=>{re();D=new Map});function sd(e){let t=Te.get(e);return t==null?!1:Cn()-t>=Ui?(Te.delete(e),!1):!0}function wr(){Te.clear()}function id(e){for(Te.has(e)&&Te.delete(e),Te.set(e,Cn());Te.size>od;)Te.delete(Te.keys().next().value)}function Rn(){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 Vo(){try{if(typeof matchMedia=="function")return matchMedia("(hover: hover) and (pointer: fine)").matches}catch{}return!0}function ad(e){let t=e.getAttribute("rel");return t?t.toLowerCase().split(/\s+/).filter(Boolean):[]}function br(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("#")||ar.test(r.pathname)?null:t}function Wo(e){if(e.hasAttribute("data-no-prefetch"))return!0;let t=ad(e);return t.includes("external")||t.includes("no-prefetch")}function yr(e){if(Wo(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 Vo()?"intent":"viewport"}}function Ye(e,t){if(!oe||typeof fetch!="function"||Rn())return;let r=Ee(e,t);if(typeof location<"u"&&r===Ee(location.href,t)||Oe.has(r)||En.has(r))return;let n=P.get(r);if(n&&Cn()-n.at<Ui||sd(r))return;if(Oe.size>=il){for(En.add(r),hr.push({href:e,frameId:t||null});hr.length>td;){let i=hr.shift();En.delete(Ee(i.href,i.frameId))}return}let o=Ae();if(!o&&typeof document<"u"&&document.readyState==="loading")return;Oe.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,p=u?u.getAttribute("data-webjs-src"):null;if((c&&f&&c!==f||l&&p&&l!==p)&&(D.clear(),Et(r),wr()),(i.headers.get("x-webjs-frame")||null)!==(t||null)){id(r);return}let m=i.redirected&&i.url?i.url:e,g=await i.text();kn.has(r)||ld(r,{html:g,build:c,src:l,finalUrl:m,frameId:t||null,at:Cn()})}).catch(()=>{}).finally(()=>{Oe.delete(r),kn.delete(r),cd()})}function cd(){for(;hr.length&&Oe.size<il;){let{href:e,frameId:t}=hr.shift();En.delete(Ee(e,t)),Ye(e,t)}}function ld(e,t){for(P.has(e)&&P.delete(e),P.set(e,t);P.size>ed;){let r=P.keys().next().value;P.delete(r)}typeof document<"u"&&document.dispatchEvent(new CustomEvent("webjs:prefetch",{detail:{url:t.finalUrl,key:e,from:"prefetch"}}))}function zo(e){let t=/<!--wj:children:([^>]*?)-->/.exec(e||"");return t?t[1]:null}function Ln(e,t,r){let n=Ee(e,r),o=P.get(n);if(!o)return null;if(Cn()-o.at>=Ui)return P.delete(n),null;if(o.frameId)return P.delete(n),Fi(o.frameId)?o:null;let s=zo(o.html);return s&&!new Set(String(t??(Ae()||"")).split(",").filter(Boolean)).has(s)?(P.delete(n),null):(P.delete(n),o)}function Cn(){try{if(typeof performance<"u"&&typeof performance.now=="function")return performance.now()}catch{}return 0}function vt(e){if(!oe)return;let t=Di(e.target);if(!t)return;let r=yr(t);if(r==="none"||r==="render")return;let n=br(t);if(n){if(e.type==="touchstart"){Ye(n,ge(t));return}r==="intent"&&(Tn===t&&gr||(On(),Tn=t,gr=setTimeout(()=>{gr=null,Tn=null,Ye(n,ge(t))},rd)))}}function Vi(e){let t=Di(e.target);t&&t===Tn&&On()}function On(){gr&&(clearTimeout(gr),gr=null),Tn=null}function Ko(){for(let e of Nn)clearTimeout(e);Nn.clear(),mr=new WeakMap}function Go(){if(typeof document>"u"||Rn())return;let e=typeof IntersectionObserver<"u";e&&(Ge?(Ge.disconnect(),Ko()):Ge=new IntersectionObserver(t=>{for(let r of t){let n=r.target;if(r.isIntersecting){if(mr.has(n))continue;let o=setTimeout(()=>{Nn.delete(o),mr.delete(n),Ge.unobserve(n);let s=br(n);s&&yr(n)==="viewport"&&Ye(s,ge(n))},nd);mr.set(n,o),Nn.add(o)}else{let o=mr.get(n);o&&(clearTimeout(o),Nn.delete(o),mr.delete(n))}}},{threshold:.5}));for(let t of document.querySelectorAll("a[href]")){let r=yr(t);if(r==="render"){let n=br(t);n&&Ye(n,ge(t))}else r==="viewport"&&e&&Ge.observe(t)}}function Et(e){P.clear();for(let t of Oe)t!==e&&kn.add(t)}function al(e,t){let r=Ee(e,t);P.delete(r),Oe.has(r)&&kn.add(r)}function cl(e,t){return P.get(Ee(e,t))||null}function ll(){return Oe.size}function ul(){P.clear(),Te.clear(),Oe.clear(),kn.clear(),hr.length=0,En.clear(),On(),Ko()}function fl(){Ge&&(Ge.disconnect(),Ge=null)}var ed,Ui,il,td,rd,nd,P,Te,od,Oe,kn,hr,En,gr,Tn,Ge,mr,Nn,Tt=v(()=>{jo();ze();re();Ke();Le();pr();ed=8,Ui=3e4,il=3,td=24,rd=100,nd=250,P=new Map,Te=new Map,od=16;Oe=new Set,kn=new Set,hr=[],En=new Set,gr=null,Tn=null,Ge=null,mr=new WeakMap,Nn=new Set});function Wi(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 jn(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 p=f.index+f[0].length;return{shell:n.slice(0,p),streaming:!0,reader:t,dec:r,rest:n.slice(p)}}}}function Yo(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 Jo(e,t){let r=document.getElementById(e);if(!r){Uc(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&&Zo(s)}async function Pn(e,t,r,n){let o=r,s=()=>{let i;for(;i=Yo(o);){if(!n())return!1;Jo(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 In=v(()=>{me();Sr()});function Ar(){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 Nt(e,t){let r=typeof document<"u"?document.startViewTransition:void 0;if(Ar()&&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 qn(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),_r.add(n))}}function kt(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=ud(t,o);if(!s||s===n)continue;let i=s.parentNode;if(i)i.replaceChild(n,s),_r.add(n);else{let a=t.indexOf(s);a!==-1&&(t[a]=n,_r.add(n))}}}function ud(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 _r,xr=v(()=>{_r=new WeakSet});function Ot(e,t,r,n,o,s,i,a){let c=!1,l=()=>{if(!c){c=!0;try{vo(e,{frame:!!t})}catch{}}};try{for(let d of e.querySelectorAll("[data-wj-host]"))d.setAttribute("data-wj-serialized","")}catch{}try{typeof sessionStorage<"u"&&(!n||t||r)&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}if(n&&!t&&!r){let d=document.querySelector('script[type="importmap"]'),m=d?d.getAttribute("data-webjs-build"):null,g=!1;if(o&&m&&(g=o!==m),!g&&e.head&&e.head.children.length>0){let w=$i(document),_=$i(e);w!==_&&(g=!0)}if(g&&typeof location<"u"){D.clear(),Et(),wr();try{let w="webjs:importmap-reload";if(sessionStorage&&sessionStorage.getItem(w))sessionStorage.removeItem(w),pe("deploy-mismatch-reload-suppressed",n,!1);else return sessionStorage&&sessionStorage.setItem(w,"1"),pe("deploy-mismatch",n),xe(n),"none"}catch{return pe("deploy-mismatch",n),xe(n),"none"}}else if(!g){let w=d?d.getAttribute("data-webjs-src"):null;s&&w&&s!==w&&(D.clear(),Et(),wr(),d&&d.setAttribute("data-webjs-src",s));try{typeof sessionStorage<"u"&&sessionStorage.removeItem("webjs:importmap-reload")}catch{}}}if(t){l();let d=document.querySelector(`webjs-frame#${CSS.escape(t)}`),m=e.querySelector(`webjs-frame#${CSS.escape(t)}`);if(d&&m){a&&a(),ur(e.head),Ct=Nt(()=>{bl(d,m),vr(d),Rt(d),Wi(e.body),Lt()},()=>Rt(d));return}let g=new CustomEvent("webjs:frame-missing",{bubbles:!0,cancelable:!0,detail:{frameId:t,url:n||(typeof location<"u"?location.href:null),document:e}});return(d||document).dispatchEvent(g),g.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"){l(),a&&a(),dl(e);return}let u=he(document.body),f=he(e.body),p=u&&f?an(u,f):null;if(p){l(),a&&a();let{mode:d,live:m,incoming:g}=p;ur(e.head),Ct=Nt(()=>{d==="replace"?ml(m,g):hl(m,g,e),gl(m.start,g.start),Wi(e.body),Lt()},()=>pl(m));return}if(n&&!r&&typeof location<"u")return pe(u?f?"no-shared-boundary":"incoming-boundaries-malformed":"live-boundaries-malformed",n),xe(n),"none";if(n&&r)return pe("revalidation-discarded",n,!1),"discard";l(),a&&a(),dl(e)}function dl(e){gn(e.head),qn(document.body,e.body);let t=[...e.body.childNodes];Ct=Nt(()=>{document.body.replaceChildren(...t),vr(document.body),Rt(document.body),Lt()},()=>Rt(document.body))}var Ct,Dn=v(()=>{Eo();ze();me();Er();Ke();bn();Tt();pr();Le();In();Sr();xr();Ct=Promise.resolve()});function yl(){zi||typeof MutationObserver>"u"||typeof customElements>"u"||(zi=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)}}),zi.observe(document.body,{childList:!0,subtree:!0}))}function pl(e){if(!(!e||!e.start))for(let t=e.start.nextSibling;t&&t!==e.end;t=t.nextSibling)t.nodeType===1&&Rt(t)}function Rt(e){typeof customElements>"u"||Zo(e)}function Zo(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&&Zo(r.shadowRoot))}function vr(e){if(e.tagName==="SCRIPT"){let r=hn(e);return e.replaceWith(r),r}let t=[];_r.has(e)&&t.push(e);for(let r of e.querySelectorAll("[data-webjs-permanent]"))_r.has(r)&&t.push(r);for(let r of e.querySelectorAll("script"))t.length&&t.some(n=>n!==r&&n.contains(r))||r.replaceWith(hn(r));return e}function Mn(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=vr(r);n.isConnected!==!1&&Rt(n)}}var zi,Sr=v(()=>{ze();re();me();Er();ln();Uo();Po();Ke();bn();Tt();pr();In();Dn();xr();zi=null});function Lt(){let e=document.activeElement;!e||e===document.body||e===document.documentElement||typeof e.blur=="function"&&e.blur()}function ml(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));kt(n,o);for(let s of n)s.parentNode===r&&r.removeChild(s);for(let s of o)r.insertBefore(s,e.end);Mn(e)}function hl(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));kt(o,s),fd(n,e.start,e.end,o,s),Mn(e)}function fd(e,t,r,n,o){let s=new Map;for(let c of n){if(c.nodeType!==1)continue;let l=Je(c);l&&s.set(l,c)}let i=r,a=[];for(let c of o){if(c.nodeType===1){let l=Je(c);if(l&&s.has(l)){let u=s.get(l);Tr(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 Tr(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),!cr.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])cr.has(n.name)||r.has(n.name)||e.removeAttribute(n.name);if(dd(e)){md(e,t);return}Nr(e,t)}function dd(e){let t=e;return t[Symbol.for("webjs.instance")]!=null||t[L]!=null}function pd(e,t){for(let r=e.parentElement;r&&r!==t;r=r.parentElement)if(r.tagName.includes("-"))return!1;return!0}function Xo(e){let t=new Map,r=`slot[${O}][${z}="${J}"]`;for(let n of e.querySelectorAll(r)){let o=n;if(!pd(o,e)||js(e,o))continue;let s=!1;for(let a=o.parentElement;a&&a!==e;a=a.parentElement)if(a.tagName==="SLOT"&&a.hasAttribute(O)&&a.getAttribute(z)===J){s=!0;break}if(s)continue;let i=Q(o.getAttribute("name"));t.has(i)||t.set(i,o)}return t}function gl(e,t){let r=e.parentNode;if(!r||r.nodeType!==1)return;let n=r;if(n.tagName!=="SLOT"||!n.hasAttribute(O))return;let o=null;for(let f=n.parentElement;f;f=f.parentElement){if(f[L]){o=f;break}if(f.tagName.includes("-"))return}if(!o)return;let s=Q(n.getAttribute("name"));$e(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=Xo(o),u=Xo(c);for(let f of new Set([...l.keys(),...u.keys()])){if(f===s)continue;let p=u.get(f);p?$e(o,f,[...p.childNodes].map(d=>document.importNode(d,!0))):l.get(f)&&$e(o,f,null)}}function md(e,t){if(!e[L])return;let r=Xo(e),n=Xo(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?(Nr(i,a),$e(e,s,[...i.childNodes])):a?$e(e,s,[...a.childNodes].map(c=>document.importNode(c,!0))):$e(e,s,null)}}function Nr(e,t){let r=[...e.childNodes],n=[...t.childNodes].map(a=>document.importNode(a,!0));kt(r,n);let o=new Map;for(let a of r){if(a.nodeType!==1)continue;let c=Je(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=Je(c);if(l&&o.has(l)){let f=o.get(l);Tr(f,c),s.push(f),o.delete(l);continue}let u=r[a];if(u&&u.nodeType===1&&!Je(u)&&u.tagName===c.tagName){Tr(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 Je(e){let t=e.getAttribute("data-key");return t?`${e.tagName}:k:${t}`:e.id?`${e.tagName}:i:${e.id}`:null}function kr(){let e=he(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=Ae(),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:V,haveKeys:s}}function Ze(e){if(!e||e.token!==V)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 bl(e,t){Nr(e,t)}var Er=v(()=>{pt();ze();re();Le();Sr();xr()});function hd(e){if(typeof document>"u"||!document.body)return!1;let t=he(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 Qo(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||hd(t)||typeof location<"u"&&(pe("navigation-error-unrecoverable",e),xe(e))}var wl=v(()=>{ze();me();Le()});async function Fn(e,t,r,n,o,s,i,a,c,l){o=o||"GET";let u=l&&l.refresh||void 0,f=!!(l&&l.noPrefetch),p=!!(l&&l.preserveScroll),d=typeof a=="number"?a:V,m,g=null,w=null,_=null,b=null,E=!1,A=e,T=t?yn(t,d):null;try{try{let C=o==="GET"&&!s&&!u&&!f?Ln(e,n?n.haveKeys:void 0,t):null;if(C)m=C.html,w=C.build,_=C.src,A=C.finalUrl,b=200,E=!0;else{let x={"x-webjs-router":"1"},q=u?"":Ae();q&&(x["x-webjs-have"]=q),t&&(x["x-webjs-frame"]=t),s!=null&&o!=="GET"&&o!=="HEAD"&&(x.accept=Ri+", text/html");let B={method:o,headers:x,credentials:"same-origin",cache:"no-cache"};i&&(B.signal=i),s!=null&&o!=="GET"&&o!=="HEAD"&&(B.body=s);let R=await fetch(e,B);b=R.status,E=R.ok;let Pe=Ci(R.headers.get("x-webjs-invalidate"));Pe.length&&ki(Pe);let jt=R.headers.get("content-type")||"",Bn=/^text\/html\b/i.test(jt);if(jt.toLowerCase().indexOf(Ri)===0){let vl=await R.text(),Hn=d===V;return Hn&&(Ze(n),vi(vl)),{ok:Hn&&E,status:b,aborted:!Hn,applied:Hn}}if(R.redirected&&R.url&&(A=R.url),R.status===204||R.status===205)return d===V&&r&&history.pushState(null,"",A),{ok:E,status:b,aborted:!1,applied:!1};if(!Bn)return d===V&&(Ze(n),Qo(e,R.status,null)),{ok:!1,status:b,aborted:!1,applied:!1};w=R.headers.get("x-webjs-build"),_=R.headers.get("x-webjs-src");let os=await jn(R);m=os.shell,os.streaming&&(g=os)}}catch(C){return C&&C.name==="AbortError"?{ok:!1,status:null,aborted:!0,applied:!1}:d!==V?{ok:!1,status:null,aborted:!0,applied:!1}:(Ze(n),Qo(e,null,C instanceof Error?C:new Error(String(C))),{ok:!1,status:null,aborted:!1,applied:!1})}if(d!==V){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:!1,status:b,aborted:!0,applied:!1}}let N=xt(m);if(!N)return Ze(n),Qo(e,null,new Error("navigation response did not parse as HTML")),{ok:!1,status:b,aborted:!1,applied:!1};let k=!1,S=r?()=>{k||(k=!0,history.pushState(null,"",A))}:null,h=Ot(N,t,!!c,A,w,_,u,S),y=h!=="none";if(h==="discard"){if(g&&g.reader)try{g.reader.cancel()}catch{}return{ok:E,status:b,aborted:!1,applied:!1}}if(S&&S(),r&&!t){let C=new URL(A),x=C.hash?document.getElementById(C.hash.slice(1)):null;x?x.scrollIntoView():p||(Vc(),window.scrollTo({left:0,top:0,behavior:"instant"}))}return g&&(g.reader||g.rest)&&Ct.then(()=>Pn(g.reader,g.dec,g.rest,()=>d===V)),document.dispatchEvent(new CustomEvent("webjs:navigate",{detail:{url:A,frameId:t,from:"navigate"}})),{ok:E,status:b,aborted:!1,applied:y}}finally{T&&wn(T,d)}}var Sl=v(()=>{No();nn();ze();re();me();Er();ln();Ke();wl();vn();Tt();Le();In();Dn()});function nl(e){if(!Zc(e)||!se)return!1;let t,r;try{t=new URL(se),r=new URL(e,location.href)}catch{return!1}return t.pathname!==r.pathname||t.search!==r.search?!1:(se=r.href,!0)}function $n(){oe||typeof document>"u"||(Ii(!0),globalThis.__webjsRefreshPage=rs,document.addEventListener("click",Bi,!1),document.addEventListener("submit",dr,!1),window.addEventListener("popstate",fr),document.addEventListener("pointerover",vt,!0),document.addEventListener("focusin",vt,!0),document.addEventListener("touchstart",vt,{capture:!0,passive:!0}),document.addEventListener("pointerout",Vi,!0),document.addEventListener("webjs:navigate",Go),yl(),Go(),typeof history<"u"&&"scrollRestoration"in history&&(es=history.scrollRestoration,history.scrollRestoration="auto"),typeof location<"u"&&(se=location.href),Hc())}function Ki(){oe&&(Ii(!1),document.removeEventListener("click",Bi,!1),document.removeEventListener("submit",dr,!1),window.removeEventListener("popstate",fr),Lo(),document.removeEventListener("pointerover",vt,!0),document.removeEventListener("focusin",vt,!0),document.removeEventListener("touchstart",vt,{capture:!0}),document.removeEventListener("pointerout",Vi,!0),document.removeEventListener("webjs:navigate",Go),On(),Ko(),fl(),typeof history<"u"&&es!==null&&(history.scrollRestoration=es,es=null),Bo(),ce&&ce(),le&&le(),se=null,delete globalThis.__webjsRefreshPage)}async function Gi(e,t){let r=new URL(e,location.href);if(r.origin!==location.origin){xe(e);return}await xn(r.href,t?.replace??!1,null,{preserveScroll:t?.scroll===!1})}async function Yi(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};ue&&ue.abort(),ue=new AbortController;let o=ue.signal,s=Ro(),i=await Fn(n.href,r,!1,null,"GET",null,o,s,!1,{noPrefetch:!0});return i&&i.applied&&al(n.href,r),i}function ts(e){if(!e){D.clear(),Et();return}let t=new URL(e,location.href),r=t.pathname+t.search;D.delete(r),P.delete(r);let n=` ${r}`;for(let o of[...P.keys()])o.endsWith(n)&&P.delete(o)}async function rs(e){if(!oe||typeof location>"u")return!1;ts(),wr();try{let t=await xn(location.href,!1,null,{refresh:e==="shell"?"shell":"page"});return!t||t.aborted?!0:t.applied}catch{return!1}}async function xn(e,t,r,n){Lo();let o=n&&n.refresh||void 0,s=!!(n&&n.preserveScroll);if(Pi(t,r)&&typeof location<"u")return pe("readyState-loading",e),xe(e),null;ue&&ue.abort(),ue=new AbortController;let i=ue.signal,a=Ro();r||(Bo(),ce&&ce(),le&&le()),!o&&se&&Hi(se);let c=setTimeout(()=>{sn(!0),c=null},150),l=null;!t&&!o&&(l=kr());let u=!1;try{if(t){let p=sl(e);if(p){let d=xt(p.html);if(d){let m=rl(p.scrollHeight);Ot(d,r,!0,null);let g=()=>{};if(typeof window<"u"){let b=()=>{g=tl(p.scrollX,p.scrollY)};if(Ar()&&typeof document.startViewTransition=="function"){let E=Fo;Ct.then(()=>{E!==Fo||!oe||b()}).catch(()=>{})}else b()}let w=Fn(e,r,!1,l,"GET",null,i,a,!0).catch(()=>{}),_=new Promise(b=>setTimeout(b,500));return Promise.all([w,_]).then(()=>$o(()=>{g(),$o(m)})),null}}u=!0,typeof window<"u"&&window.scrollTo({left:0,top:0,behavior:"instant"})}let f=await Fn(e,r,!t&&!o,l,"GET",null,i,a,!1,{refresh:o,preserveScroll:s});return u&&f&&f.applied&&typeof window<"u"&&$o(()=>{a!==V||!oe||window.scrollTo({left:0,top:0,behavior:"instant"})}),f}finally{c&&clearTimeout(c),a===V&&(sn(!1),typeof location<"u"&&(se=location.href))}}async function ol(e,t,r,n,o,s){Lo(),ue&&ue.abort(),ue=new AbortController;let i=ue.signal,a=Ro();n||(Bo(),ce&&ce(),le&&le());let c=t==="get"||t==="head",l=new URL(e,location.href);if(c){l.search="";for(let[m,g]of r)l.searchParams.append(m,typeof g=="string"?g:g.name)}se&&Hi(se);let u=setTimeout(()=>{sn(!0),u=null},150),f=kr(),p=o?Sn(o,a,l.href):null,d=!1;try{let m=await Fn(l.href,n,!0,f,c?"GET":t.toUpperCase(),c?null:r,i,a,!1,{preserveScroll:!!(s&&s.preserveScroll)});d=!!(m&&m.ok),!c&&a===V&&(D.clear(),Et())}finally{p&&_n(p,a,l.href,d),u&&clearTimeout(u),a===V&&(sn(!1),typeof location<"u"&&(se=location.href))}}function _l(){return se}function Al(e){se=e}var ue,se,es,vn=v(()=>{re();me();Er();ln();Uo();Sl();Ke();Tt();Ho();pr();Le();Dn();Sr();xr();ue=null,se=null;es=null});var Lc={};ss(Lc,{_FALLBACK_MARKER_KEY:()=>At,_FRAME_TOP:()=>on,_LIVE_ATTRS:()=>cr,_activateSwappedRange:()=>Mn,_activeFrameId:()=>Mo,_addNewHeadElements:()=>ur,_applyOptimisticLoading:()=>kr,_applyStreamedResolve:()=>Jo,_applySwap:()=>Ot,_blurOutgoingFocus:()=>Lt,_buildHaveHeader:()=>Ae,_buildSubmitFormData:()=>mn,_bumpNavToken:()=>Yc,_clearFormBusy:()=>_n,_clearFrameBusy:()=>wn,_collectBoundaries:()=>he,_currentPageUrl:()=>_l,_diffElementInPlace:()=>Tr,_eligibleAnchorHref:()=>br,_encodeSubmitBody:()=>pn,_findAnchorInPath:()=>Oo,_getSubmitAction:()=>fn,_getSubmitEnctype:()=>dn,_getSubmitMethod:()=>un,_isNonHtmlPath:()=>Mc,_isPreBootNavigation:()=>Co,_keyOf:()=>Je,_markFormBusy:()=>Sn,_markFrameBusy:()=>yn,_mergeHead:()=>gn,_navToken:()=>Gc,_onPopState:()=>fr,_onSubmit:()=>dr,_parseHTML:()=>xt,_planBoundarySwap:()=>an,_prefetch:()=>Ye,_prefetchAnchor:()=>zo,_prefetchCache:()=>P,_prefetchHasHoverPointer:()=>Vo,_prefetchInflightSize:()=>ll,_prefetchMode:()=>yr,_prefetchPeek:()=>cl,_prefetchSaysSaveData:()=>Rn,_prefetchSuppressed:()=>Wo,_prefetchTake:()=>Ln,_reactivateScripts:()=>vr,_readStreamedShell:()=>jn,_reconcileChildren:()=>Nr,_regraftPermanentElements:()=>qn,_regraftPermanentInSlice:()=>kt,_resetParseProbe:()=>qi,_resetPrefetch:()=>ul,_resetWarnOnce:()=>Wc,_resolvePreserveScroll:()=>An,_resolveTargetFrameId:()=>ge,_restoreOptimistic:()=>Ze,_runWithTransition:()=>Nt,_setCurrentPageUrl:()=>Al,_setHardNavigate:()=>Kc,_shouldFullLoadDuringParse:()=>zc,_snapshotCache:()=>D,_streamBoundariesProgressively:()=>Pn,_takeResolveUnit:()=>Yo,_viewTransitionsEnabled:()=>Ar,disableClientRouter:()=>Ki,enableClientRouter:()=>$n,loadFrame:()=>Yi,navigate:()=>Gi,refreshPage:()=>rs,revalidate:()=>ts});var Ai=v(()=>{_i();nn();nn();Ne();jc();Eo();No();pt();vn();re();me();vn();Tt();Le();ze();re();me();Er();ln();jo();Uo();Po();Ke();bn();Tt();Ho();pr();In();Dn();Sr();xr();(typeof window>"u"||window.__WEBJS_CLIENT_ROUTER__!==!1)&&$n()});Pt();function Tl(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 It(e){return!!e&&typeof e=="object"&&e._$webjsCss===!0}function as(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(`
8
+ `),r.appendChild(n)}}function Un(e){return!e||!e.length?"":`<style>${e.map(t=>t.text).join(`
9
+ `)}</style>`}Pt();Ne();Kt();pt();Pt();Vn();Ne();pt();var to=new WeakMap,ro=new WeakMap,Hr=Symbol.for("webjs.instance");function Jt(e){let{strings:t}=e,r=to.get(t);if(r)return r;let n=[],o="",s="text",i="",a=0,c="",l=0,u=null,f="",p="";for(let g=0;g<t.length;g++){let w=t[g];for(let _=0;_<w.length;_++){let b=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"&&(p="")):/\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"&&(p="")):!/\s/.test(b)&&b!=="/"&&(s="attr-name",i=b,a=o.length-1);break;case"rawtext":o+=b,p=(p+b.toLowerCase()).slice(-9),(p.endsWith("<\/script>")||p.endsWith("</style>"))&&(s="text",p="",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 E=u.firstPartIdx,A=[];for(let y=E;y<n.length;y++)(n[y].kind==="noop"||n[y].kind==="attr-mixed")&&A.push(y);let T=[],N=t[A[0]],k=N.lastIndexOf(c);T.push(k>=0?N.slice(k+1):N);for(let y=1;y<A.length;y++)T.push(t[A[y]]);let S=t[A[A.length-1]+1],h=S.indexOf(c);T.push(h>=0?S.slice(0,h):S),n[E]={kind:"attr-mixed",path:[],name:u.name,statics:T,group:A};for(let y=1;y<A.length;y++)n[A[y]]={kind:"noop",path:[],mixedAnchor:E};u=null}s="in-tag",i=""}break}}if(g<t.length-1){let _=n.length;if(s==="comment"){l=0,n.push({kind:"noop",path:[]});continue}if(s==="rawtext"){p="",n.push({kind:"noop",path:[]});continue}if(s==="text")o+=`<!--${M}${_}-->`,n.push({kind:"child",path:[]});else if(s==="in-tag"){let b=`data-${M}${_}`;o+=`${b}=""`,n.push({kind:"element",path:[]})}else if(s==="after-eq"){let b=i[0],E=i.slice(1);if(Cr(b)){o=o.slice(0,a);let A=qt[b],T=`data-${M}${_}`;o+=`${T}=""`,n.push({kind:A,path:[],name:E})}else{o=o.slice(0,a);let A=`data-${M}${_}`;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-${M}${_}`;o+=`${b}=""`,u={name:i,firstPartIdx:_},n.push({kind:"noop",path:[]}),s="skip-attr"}else s==="skip-attr"&&n.push({kind:"noop",path:[]})}}let d=document.createElement("template");d.innerHTML=o,eu(d.content,n);let m=tu(d.content,n);return r={templateEl:d,parts:n,formActions:m},to.set(t,r),r}function eu(e,t){let r=e.querySelectorAll("slot");for(let n of r){n.setAttribute(O,"");let o=t.length;n.setAttribute(`data-${M}${o}`,""),t.push({kind:"slot",path:[]})}}function tu(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(M)){let l=Number(c.slice(M.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-${M}`)){let p=Number(f.name.slice(`data-${M}`.length));t[p]&&t[p].kind!=="child"&&(t[p].path=r.slice(),u.push({idx:p,kind:t[p].kind,name:t[p].name||""})),l.push(f.name)}if(c.localName==="form"||c.localName==="button"||c.localName==="input"){let f=ru(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 ru(e,t,r){let n=e.localName==="form",o=n?"action":"formaction",s=n?"method":"formmethod",i=n?"enctype":"formenctype",a=t.filter(w=>w.kind==="attr"&&w.name.toLowerCase()===o);if(!a.length)return null;let c=[],l=[],u=[],f=n?[]:t.filter(w=>w.name.toLowerCase()==="name"&&(w.kind==="attr"||w.kind==="attr-mixed"||w.kind==="bool")).map(w=>({i:w.idx,kind:w.kind})),p=!n&&e.hasAttribute("name"),d=!n&&e.hasAttribute("form"),m=!n&&e.hasAttribute("value"),g=n?[]:t.filter(w=>w.name.toLowerCase()==="value"&&(w.kind==="attr"||w.kind==="attr-mixed"||w.kind==="bool")).map(w=>({i:w.idx,kind:w.kind}));for(let w of t){let _=String(w.name).toLowerCase();if(w.kind==="prop"){n?(_==="method"||_==="enctype"||_==="encoding")&&u.push(w.name):Bt(_)&&u.push(w.name);continue}if(_!==s&&_!==i||w.kind!=="attr"&&w.kind!=="attr-mixed"&&w.kind!=="bool")continue;let b=r[w.idx],E={i:w.idx,kind:w.kind};w.kind==="attr-mixed"&&(E.statics=b.statics||[],E.group=b.group||[]),(_===s?c:l).push(E)}return{isForm:n,tag:e.localName,actionIdxs:a.map(w=>w.idx),duplicateAction:a.length>1,staticAction:e.getAttribute(o)!=null,authoredName:p,authoredValue:m,authoredForm:d,propAttrs:u,nameParts:f,valueParts:g,staticMethod:e.getAttribute(s),staticEnctype:e.getAttribute(i),methodParts:c,enctypeParts:l}}Pt();Ne();Pr();Kt();var fe=null,Be=!1,Xt=0,Zt=null,Ws=0,Aa=(e,t)=>Object.is(e,t),oo=()=>{},xa=()=>!1;function va(e,t){e.liveConsumers||(e.liveConsumers=new Set);let r=e.liveConsumers.size===0;if(e.liveConsumers.add(t),r){if(e.producers&&e.producers.length>0)for(let n of e.producers)va(n,e);if(e.watched)try{e.watched.call(e.wrapper)}catch(n){console.error(n)}}}function Ur(e,t){if(e.liveConsumers&&(e.liveConsumers.delete(t),e.liveConsumers.size===0)){if(e.producers&&e.producers.length>0)for(let r of e.producers)Ur(r,e);if(e.unwatched)try{e.unwatched.call(e.wrapper)}catch(r){console.error(r)}}}function Zs(e){if(Be)throw new Error("Signal read during notification phase");if(fe===null)return;let t=fe,r=t.nextProducerIndex++;r<t.producers.length&&t.producers[r]!==e&&Gs(t)&&Ur(t.producers[r],t),t.producers[r]!==e&&(t.producers[r]=e,Gs(t)&&va(e,t)),t.producerLastReadVersions[r]=e.version}function Gs(e){return e.consumerIsAlwaysLive||e.liveConsumers&&e.liveConsumers.size>0}function Ea(e){if(!e.liveConsumers||e.liveConsumers.size===0)return;let t=Be;Be=!0;try{for(let r of e.liveConsumers)r.dirty||nu(r)}finally{Be=t}}function nu(e){e.dirty=!0,Ea(e),e.consumerMarkedDirty.call(e.wrapper||e)}function so(e){if(!(!e.dirty&&e.lastCleanEpoch===Xt)){if(!e.producerMustRecompute()&&!ou(e)){e.dirty=!1,e.lastCleanEpoch=Xt;return}e.producerRecomputeValue(),e.dirty=!1,e.lastCleanEpoch=Xt}}function ou(e){for(let t=0;t<e.producers.length;t++){let r=e.producers[t],n=e.producerLastReadVersions[t];if(n!==r.version||(so(r),n!==r.version))return!0}return!1}function Ys(e){e&&(e.nextProducerIndex=0);let t=fe;return fe=e,t}function Js(e,t){if(fe=t,!!e){if(Gs(e))for(let r=e.nextProducerIndex;r<e.producers.length;r++)Ur(e.producers[r],e);for(;e.producers.length>e.nextProducerIndex;)e.producers.pop(),e.producerLastReadVersions.pop()}}var io=class{constructor(t,r){this.__value=t,this.version=0,this.lastCleanEpoch=Xt,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.liveConsumers=void 0,this.consumerAllowSignalWrites=!0,this.consumerIsAlwaysLive=!1,this.producerMustRecompute=xa,this.producerRecomputeValue=oo,this.consumerMarkedDirty=oo,this.wrapper=this,this.__isSignal=!0,this.__equal=r?.equals||Aa,this.watched=r?.[Xs],this.unwatched=r?.[Qs]}get(){return Zs(this),this.__value}peek(){return this.__value}set(t){if(Be)throw new Error("Signal write during notification phase");this.__equal.call(this,this.__value,t)||(this.__value=t,this.version++,Xt++,Zt!==null?Ta(this):Ea(this))}};function Ta(e){let t=Be;Be=!0;try{if(!e.liveConsumers)return;for(let r of e.liveConsumers)r.dirty||(r.dirty=!0,r.__isWatcher?Zt.add(r):Ta(r))}finally{Be=t}}var zs=Symbol("unset"),Ks=Symbol("computing"),no=Symbol("errored"),Vr=class{constructor(t,r){this.__fn=t,this.__value=zs,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||Aa,this.watched=r?.[Xs],this.unwatched=r?.[Qs];let n=this;this.producerMustRecompute=function(){return n.__value===zs||n.__value===Ks},this.producerRecomputeValue=function(){if(n.__value===Ks)throw new Error("Detected cycle in computations.");let o=n.__value;n.__value=Ks;let s=Ys(n),i,a=!1;try{i=n.__fn.call(n.wrapper)}catch(l){i=no,n.__error=l,a=!0}finally{Js(n,s)}if(!a&&(o!==zs&&o!==no)&&n.__equal.call(n.wrapper,o,i)){n.__value=o;return}n.__value=i,n.version++},this.consumerMarkedDirty=oo}get(){if(so(this),Zs(this),this.__value===no)throw this.__error;return this.__value}peek(){if(so(this),this.__value===no)throw this.__error;return this.__value}},ao=class{constructor(t){this.__notify=t,this.version=0,this.lastCleanEpoch=Xt,this.dirty=!1,this.producers=[],this.producerLastReadVersions=[],this.nextProducerIndex=0,this.liveConsumers=void 0,this.consumerAllowSignalWrites=!1,this.consumerIsAlwaysLive=!0,this.producerMustRecompute=xa,this.producerRecomputeValue=oo,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=Ys(this);try{for(let n of t)Zs(n),n.__isComputed&&so(n)}finally{Js(this,r)}this.dirty=!1}unwatch(...t){for(let r=this.producers.length-1;r>=0;r--)t.includes(this.producers[r])&&(Ur(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=Ys(this),n;try{n=t()}finally{Js(this,r)}return this.dirty=!1,n}dispose(){for(let t of this.producers)Ur(t,this);this.producers=[],this.producerLastReadVersions=[],this.__notify=null}},Xs=Symbol("watched"),Qs=Symbol("unwatched");function su(e){let t=fe;fe=null;try{return e()}finally{fe=t}}function iu(e){return e.producers.slice()}function au(e){return e.liveConsumers?[...e.liveConsumers]:[]}function cu(e){return!!e.liveConsumers&&e.liveConsumers.size>0}function lu(e){return e.producers.length>0}function uu(){return fe&&fe.__isComputed?fe:null}function fu(e){Ws++,Zt===null&&(Zt=new Set);try{e()}finally{if(Ws--,Ws===0){let t=Zt;Zt=null;for(let r of t)r.__fire()}}}var Wr={State:io,Computed:Vr,subtle:{Watcher:ao,untrack:su,introspectSources:iu,introspectSinks:au,hasSinks:cu,hasSources:lu,currentComputed:uu,watched:Xs,unwatched:Qs}};function du(e,t){return new io(e,t)}function pu(e,t){return new Vr(e,t)}function mu(e){return!!(e&&typeof e=="object"&&e.__isSignal===!0)}function hu(e){let t=!1,r=!1,n=new Vr(e),o=new ao(()=>{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())}}pt();var ee=null;function ti(e){ee=e}function ka(e,t){let r=e&&e[L]?e:null;return r?ft(r,t):t()}function lo(e){return e?e.nodeType===11&&e.host?e.host:e:null}function ri(e,t){let r=e.__commitOwner,n=ee;r&&(ee=r);try{t()}finally{ee=n}}function Kr(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};let n=r;if(e.kind==="event"){let o={kind:"event",el:n,name:e.name||"",handler:null,dispatcher(s){o.handler?.(s)}};return n.addEventListener(o.name,o.dispatcher),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 de(e,t,r,n,o){if(Y(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":yu(e,t,o);break;case"attr":{t==null||t===!1?e.el.removeAttribute(e.name):Qe(t,e.name,e.el.localName)||(ie(t,e.name,e.el.localName),e.el.setAttribute(e.name,String(t)));break}case"prop":Or(t,e.name,e.el.localName),e.el[e.name]=t;break;case"bool":ie(t,e.name,e.el.localName),t?e.el.setAttribute(e.name,""):e.el.removeAttribute(e.name);break;case"event":e.handler=typeof t=="function"?t:null;break;case"element":bu(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;Y(c)&&(c=c.value),ie(c,e.name,e.el.localName),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=Qt(s);if(!c){e.applied=!0;return}if(!c.contains(s)){c.isConnected?queueMicrotask(i):e.applied=!0;return}if(e.applied=!0,gu(s))return;let l=document.createDocumentFragment();for(;s.firstChild;)l.appendChild(s.firstChild);s[qe]=l,queueMicrotask(()=>ne(c))},a=Qt(s);a&&a.contains(s)?i():queueMicrotask(i);break}case"noop":break}}function Qt(e){let t=e[at];if(t&&t.isConnected)return t;let r=e.parentElement;for(;r;){if(r[L])return r;r=r.parentElement}return null}function gu(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 bu(e,t){let r=e,n=nt(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 yu(e,t,r){return Nu(e,t),Se(e,t,r)}function Se(e,t,r){return ka(e.marker&&e.marker.parentNode,()=>Ca(e,t,r))}function Ca(e,t,r){let n=e.marker;if(Y(t))return Ca(e,t.value,r);if(Ut(t)){He(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(tt(t)){let s=t,i=e.__keyedKey;i!==void 0&&!Object.is(i,s.key)&&He(e),e.__keyedKey=s.key,Se(e,s.value,r);return}if(rt(t)){let s=t,i=e.__guardDeps,a=s.deps;if(i!==void 0&&(Array.isArray(i)&&Array.isArray(a)?Tu(i,a):Object.is(i,a)))return;let c=Array.isArray(a)?a.slice():a;Se(e,s.fn(),r),e.__guardDeps=c;return}if(Vt(t)){He(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(nt(t))return;if(ot(t))return ku(e,t.value,r);if(st(t))return Cu(e,t.args,r);if(it(t))return Ru(e,t.signal,r);if(Wt(t))return Lu(e,t,r);if(zt(t))return Ou(e,t,r);if(et(t)){if(e.child&&e.child.kind==="repeat"){_u(e,t,r);return}He(e);let s={kind:"repeat",map:new Map};e.child=s,Su(n,s,t,r);return}if(Array.isArray(t)){if(e.child&&e.child.kind==="array"){vu(e,t,r);return}He(e);let s={kind:"array",items:[]};e.child=s,xu(n,s,t,r);return}if(e.child){let s=e.child;if(s.kind==="repeat")Ra(s),e.child=void 0;else if(s.kind==="array")Oa(s),e.child=void 0;else if(s.kind==="async-stream")qa(s),e.child=void 0;else if("strings"in e.child){let i=e.child;if(W(t)&&i.strings===t.strings){mt(i,t.values,r);return}er(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===!1||t===!0)return;if(W(t)){let s=t,{templateEl:i,parts:a,formActions:c}=Jt(s),l=i.content.cloneNode(!0),u=document.createComment(`${M}s`),f=document.createComment(`${M}e`),p=a.map(g=>Kr(g,l)),d=[];for(let g=0;g<s.values.length;g++)de(p[g],s.values[g],void 0,s.values,r),d.push(s.values[g]);r&&r(c,p,s.values);let m=[u,...l.childNodes,f];n.parentNode?.insertBefore(wu(m),n);for(let g of p)g.kind==="slot"&&de(g,void 0,void 0,[],r);e.child={strings:s.strings,bound:p,lastValues:d,startNode:u,endNode:f};return}let o=document.createTextNode(String(t));n.parentNode?.insertBefore(o,n),e.child=[o]}function mt(e,t,r){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?de(e.bound[i],t[i],e.lastValues[i],t,r):de(s,o,e.lastValues[n],t,r)}catch(a){throw e.lastValues[n]=Na,s.kind==="noop"&&i!=null&&(e.lastValues[i]=Na),a}e.lastValues[n]=o}r&&r(to.get(e.strings)?.formActions??null,e.bound,t)}var Na=Symbol("webjs.commitFailed");function er(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 wu(e){let t=document.createDocumentFragment();for(let r of e)t.appendChild(r);return t}function ni(e,t){let{templateEl:r,parts:n,formActions:o}=Jt(e),s=r.content.cloneNode(!0),i=document.createComment(`${M}s`),a=document.createComment(`${M}e`),c=n.map(f=>Kr(f,s)),l=[];for(let f=0;f<e.values.length;f++)de(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"&&de(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.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 Su(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(!W(f))continue;let{inst:p,frag:d}=ni(f,n);t.map.set(u,p),c.appendChild(d)}a.insertBefore(c,e)}function _u(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),p=c(i[u],u);if(!W(p))continue;let d=s.map.get(f);if(d&&d.strings===p.strings)mt(d,p.values,r),ei(d.startNode,d.endNode,o,n),l.set(f,d),s.map.delete(f);else{d&&(s.map.delete(f),zr(d),er(d.startNode,d.endNode));let{inst:m,frag:g}=ni(p,r);o.insertBefore(g,n),l.set(f,m)}}for(let[u,f]of[...s.map]){s.map.delete(u);try{zr(f)}finally{er(f.startNode,f.endNode)}}s.map=l}catch(u){for(let[f,p]of l)s.map.set(f,p);throw u}}function Ra(e){for(let[t,r]of[...e.map]){e.map.delete(t);try{zr(r)}finally{er(r.startNode,r.endNode)}}e.map.clear()}function Au(e){return e.type==="tpl"?e.inst.startNode:e.type==="text"?e.node:null}function co(e){e.type==="tpl"?(zr(e.inst),er(e.inst.startNode,e.inst.endNode)):e.type==="text"&&e.node.parentNode?.removeChild(e.node)}function La(e,t){if(Y(e)&&(e=e.value),W(e)){let{inst:r,frag:n}=ni(e,t);return{item:{type:"tpl",inst:r},frag:n}}if(e!=null&&e!==!1&&e!==!0){let r=document.createTextNode(String(e));return{item:{type:"text",node:r},frag:r}}return{item:{type:"empty"},frag:null}}function xu(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}=La(a,n);l&&s.appendChild(l),i.push(c)}o.insertBefore(s,e),t.items=i}function vu(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=Y(u)?u.value:u,p=i[l];if(W(f)){let g=f;if(p&&p.type==="tpl"&&p.inst.strings===g.strings){mt(p.inst,g.values,r),a.push(p),c=l+1;continue}}else if(f!=null&&f!==!1&&f!==!0){if(p&&p.type==="text"){let g=String(f);p.node.data!==g&&(p.node.data=g),a.push(p),c=l+1;continue}}else{p&&co(p),a.push({type:"empty"}),c=l+1;continue}let{item:d,frag:m}=La(f,r);m&&o.insertBefore(m,Eu(i,l,n)),a.push(d),p&&co(p),c=l+1}for(let l=t.length;l<i.length;l++)co(i[l]),c=l+1;s.items=a}catch(l){throw s.items=a.concat(i.slice(c)),l}}function Eu(e,t,r){for(let n=t;n<e.length;n++){let o=Au(e[n]);if(o&&o.parentNode)return o}return r}function Oa(e){for(let t of e.items)co(t);e.items=[]}function ei(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 Tu(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 He(e){let t=e;if(t.__untilState&&(t.__untilState.aborted=!0,t.__untilState=void 0),t.__watchSub&&ja(t),!e.child)return;let r=e.child;if(r.kind==="repeat")Ra(r);else if(r.kind==="array")Oa(r);else if(r.kind==="async-stream")qa(r);else if("strings"in r){let n=e.child;zr(n),er(n.startNode,n.endNode)}else for(let n of e.child)n.parentNode&&n.parentNode.removeChild(n);e.child=void 0}function Nu(e,t){let r=e;r.__untilState&&!st(t)&&(r.__untilState.aborted=!0,r.__untilState=void 0),r.__guardDeps!==void 0&&!rt(t)&&(r.__guardDeps=void 0),r.__cacheMap&&!ot(t)&&(r.__cacheMap=void 0),r.__keyedKey!==void 0&&!tt(t)&&(r.__keyedKey=void 0),r.__watchSub&&!it(t)&&ja(r)}function ku(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(W(t)&&c.strings===t.strings){mt(c,t.values,r);return}let l=document.createDocumentFragment();ei(c.startNode,c.endNode,l,null),s.set(c.strings,{inst:c,holder:l}),e.child=void 0}if(W(t)){let c=t,l=s.get(c.strings);if(l){s.delete(c.strings),e.child&&He(e),ei(l.inst.startNode,l.inst.endNode,n.parentNode,n),mt(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 p=f;if(p.matches("slot[data-webjs-light]")){let d=Qt(p);d&&u.add(d)}for(let d of p.querySelectorAll("slot[data-webjs-light]")){let m=Qt(d);m&&u.add(m)}}for(let f of u)ne(f);return}}Se(e,t,r)}function Cu(e,t,r){let n=e;ee&&(n.__commitOwner=lo(ee));let o=n.__untilState,s=n.__untilArgs,i=(d,m)=>!!(Object.is(d,m)||W(d)&&W(m)&&d.strings===m.strings),c=s&&s.length===t.length&&s.every((d,m)=>i(d,t[m]))&&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 d=0;d<t.length;d++){let m=t[d];if(!m||typeof m.then!="function"){u=d,f=m;break}}u!==-1&&u<=l.highestResolved?(Se(e,f,r),l.highestResolved=u):u===-1&&!n.__untilEverRendered&&Se(e,"",r),n.__untilEverRendered=!0;let p=Math.min(u===-1?t.length:u,l.highestResolved);for(let d=0;d<p;d++){let m=t[d];!m||typeof m.then!="function"||Promise.resolve(m).then(g=>{if(!l.aborted&&!(d>=l.highestResolved)){try{ri(e,()=>Se(e,g,r))}catch(w){oi(e,w);return}l.highestResolved=d}},()=>{})}}function oi(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 Ru(e,t,r){let n=e;if(ee&&(n.__commitOwner=lo(ee)),n.__watchSig===t&&n.__watchSub){let i;n.__watchSub.observe(()=>{i=t.get()}),Se(e,i,r);return}n.__watchSub&&(n.__watchSub.dispose(),n.__watchSub=void 0),n.__watchSig=t;let o=new Wr.subtle.Watcher(()=>{queueMicrotask(()=>{if(n.__watchSub!==o)return;let i;try{o.observe(()=>{i=t.get()}),ri(e,()=>Se(e,i,r))}catch(a){oi(e,a)}})});n.__watchSub=o;let s;o.observe(()=>{s=t.get()}),Se(e,s,r)}function ja(e){e.__watchSub&&(e.__watchSub.dispose(),e.__watchSub=void 0,e.__watchSig=void 0)}function Lu(e,t,r){let n=e;ee&&(n.__commitOwner=lo(ee));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="append"&&o.iterable===t.iterable)return;He(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"append",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Pa(i,e,t,r)}function Ou(e,t,r){let n=e;ee&&(n.__commitOwner=lo(ee));let o=e.child;if(o&&o.kind==="async-stream"&&o.mode==="replace"&&o.iterable===t.iterable)return;He(e);let s=t.iterable[Symbol.asyncIterator](),i={kind:"async-stream",mode:"replace",aborted:!1,iterable:t.iterable,iterator:s,nodes:[]};e.child=i,Pa(i,e,t,r)}async function Pa(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{ri(t,()=>{let c=Ia(a,n);ka(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{}oi(t,c);return}s++}}function Ia(e,t){if(Y(e)&&(e=e.value),e==null||e===!1||e===!0)return[];if(W(e)){let r=e,{templateEl:n,parts:o,formActions:s}=Jt(r),i=n.content.cloneNode(!0),a=o.map(c=>Kr(c,i));for(let c=0;c<r.values.length;c++)de(a[c],r.values[c],void 0,r.values,t);t&&t(s,a,r.values);for(let c of a)c.kind==="slot"&&de(c,void 0,void 0,[],t);return[...i.childNodes]}if(Array.isArray(e)){let r=[];for(let n of e)r.push(...Ia(n,t));return r}return[document.createTextNode(String(e))]}function qa(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 ht(e,t){let r=t,n=r[U];r[U]=!0;let o=ee;ti(t);try{let s=r[Hr];if(W(e)){let i=e;if(s&&s.strings===i.strings){mt(s,i.values,fo);return}s&&Da(s,t);let a=t.firstChild;a&&a.nodeType===8&&a.data==="webjs-hydrate"&&a.remove(),r[Hr]=null;let c=Iu(i,t);r[Hr]=c;return}if(s&&Da(s,t),r[Hr]=null,t.replaceChildren(),e==null||e===!1||e===!0)return;if(Array.isArray(e)){for(let i of e){let a=document.createTextNode(String(i??""));t.appendChild(a)}return}t.appendChild(document.createTextNode(String(e)))}finally{ti(o),r[U]=n,n||Jn(r)}}function fo(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(Qe(tr(r[l]),i,o.tag)){s=l;break}let a=t[s];if(!a||!a.el)continue;let c=tr(r[s]);if(o.isForm)sa(a.el,c,uo(o.methodParts,o.staticMethod,r),uo(o.enctypeParts,o.staticEnctype,r),o);else{let l=u=>u.some(f=>f.kind==="bool"?!!tr(r[f.i]):!0);Pu(a.el,c,o,l(o.nameParts),l(o.valueParts),uo(o.methodParts,o.staticMethod,r),uo(o.enctypeParts,o.staticEnctype,r))}}}function ju(e){(ro.has(e)||e.getAttribute("name")===F)&&(e.getAttribute("name")===F&&e.removeAttribute("name"),e.removeAttribute("value"),ro.delete(e))}function Pu(e,t,r,n,o,s,i){let a=typeof t=="function"?zn(t):null;if(!a){typeof t=="function"&&Ie(null,e.localName),ju(e),ia(e,s,i,r.propAttrs);return}$t(r.duplicateAction,e.localName),fs(r.propAttrs,e.localName),r.staticAction&&us(e.localName),(r.authoredValue||o)&&Mt(e.localName),(r.authoredName||n)&&Dt(e.getAttribute("name")||F,e.localName,!1),(r.authoredForm||e.hasAttribute("form"))&&Ft(e.localName),ls(e.localName,e.getAttribute("type"));let c=ps(e.localName,s,i);e.removeAttribute("formaction"),e.setAttribute("name",F),e.setAttribute("value",a),Rr(e,"formmethod",s,c.formMethod),Rr(e,"formenctype",i,c.formEnctype),ro.set(e,a)}function uo(e,t,r){for(let n of e){if(n.kind==="bool")return tr(r[n.i])?"":K;if(n.kind==="attr"){let a=tr(r[n.i]);return a==null?"":String(a)}let o=n.statics||[],s=n.group||[],i=o[0]||"";for(let a=0;a<s.length;a++)i+=String(tr(r[s[a]])??""),i+=o[a+1]||"";return i}return t??K}function tr(e){return Y(e)?e.value:e}function Iu(e,t){let{templateEl:r,parts:n,formActions:o}=Jt(e),s=r.content.cloneNode(!0),i=document.createComment(`${M}s`),a=document.createComment(`${M}e`),c=n.map(f=>Kr(f,s)),l=[];for(let f=0;f<e.values.length;f++)de(c[f],e.values[f],void 0,e.values,fo),l.push(e.values[f]);fo(o,c,e.values),t.replaceChildren(i,...s.childNodes,a);let u=t.nodeType===1&&t[L]?t:null;for(let f of c)f.kind==="slot"&&(u&&f.slotEl&&(f.slotEl[at]=u),de(f,void 0,void 0,[],fo));return{strings:e.strings,bound:c,lastValues:l,startNode:i,endNode:a}}function Da(e,t){for(let r of e.bound){if(r.kind==="event"&&r.el.removeEventListener(r.name,r.dispatcher),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=Qt(r.slotEl);n&&Vs(n,r.slotEl)}}t.replaceChildren()}function po(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 qu(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function mo(e,t){let r=e&&e.properties||{};for(let[n,o]of Object.entries(r)){let s=typeof o=="object"&&o!==null?o:{type:o};if(!s.state&&(s.attribute||qu(n))===t)return{propName:n,def:s}}}var Ma=null;function ho(e){Ma=e||null}function Du(){return Ma||void 0}Ne();var Fa=Symbol.for("webjs:registry"),$a=Symbol.for("webjs:classToTag"),go=globalThis,_e=go[Fa]||(go[Fa]=new Map),Ba=go[$a]||(go[$a]=new WeakMap),bo=typeof window<"u"&&typeof customElements<"u";function si(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=_e.get(e);n?(n.cls=t,n.lazy=r):_e.set(e,{cls:t,moduleUrl:null,lazy:r,tag:e}),Ba.set(t,e)}if(bo){let e=customElements.define.bind(customElements);customElements.define=function(t,r,n){customElements.get(t)||e(t,r,n),si(t,r)}}if(!bo){let e=globalThis;e.customElements||(e.customElements={define(t,r){si(t,r)},get(t){return _e.get(t)?.cls},upgrade(){},whenDefined(t){let r=_e.get(t);return Promise.resolve(r?.cls)}})}function ii(e,t){bo?customElements.define(e,t):si(e,t)}function Mu(e,t){if(bo)return;let r=_e.get(e);if(r){r.moduleUrl=t;return}_e.set(e,{cls:null,moduleUrl:t,lazy:!1,tag:e})}function ai(e){return _e.get(e)?.cls}function Fu(e){return _e.get(e)?.moduleUrl||null}function $u(e){return _e.get(e)?.lazy===!0}function gt(e){return Ba.get(e)}function ci(){return[..._e.keys()]}yt();pt();function Qu(){return{states:new Set,shadowRoot:null,form:null,labels:[],role:"",willValidate:!0,validity:{},validationMessage:"",setFormValue(){},setValidity(){},checkValidity(){return!0},reportValidity(){return!0}}}var Zr=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=Qu(),this.__internals}},ef=["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 ef){let t="aria-"+e.slice(4).toLowerCase();Object.defineProperty(Zr.prototype,e,{configurable:!0,get(){return this.getAttribute(t)},set(r){r==null?this.removeAttribute(t):this.setAttribute(t,String(r))}})}function za(e,t){return e!==t}function Ka(e){try{return String(e)}catch{return Object.prototype.toString.call(e)}}function li(e,t,r){if(typeof console>"u"||!console.warn)return;let n=gt(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 Ga(e,t,r,n){if(typeof console>"u"||!console.warn)return;let o=gt(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 Ya(e,t={}){return e&&typeof e=="object"&&!("call"in e)&&(t=e,e=void 0),{...e?{type:e}:{},...t}}var Xa=typeof window<"u"&&typeof HTMLElement<"u",tf=Xa?HTMLElement:Zr,Qa=Symbol("webjs.factoryProps"),Ja=new WeakSet,rr=class e extends tf{static shadow=!1;static hydrate=void 0;static properties={};static styles=null;static register(t){ii(t,this)}static get observedAttributes(){let t=this.properties||{};return Object.keys(t).filter(r=>!(typeof t[r]=="object"&&t[r].state)).map(r=>typeof t[r]=="object"&&t[r].attribute||Za(r))}constructor(){super(),this._renderRoot=null,this._scheduled=!1,this._connected=!1,this.__controllers=new Set,this.__firstRendered=!1,this._changedProperties=new Map,this._updateResolve=null,this._updatePromise=Promise.resolve(!0),this._isUpdating=!1,this._assertFactoryProperties(),this._initializeProperties()}_assertFactoryProperties(){let t=this.constructor;if(Ja.has(t))return;let r=t;for(;r&&r!==e;){if(Object.hasOwn(r,"properties")&&!Object.hasOwn(r,Qa)){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)}Ja.add(t)}_initializeProperties(){let r=this.constructor.properties;if(!(!r||typeof r!="object")){this.__propValues={};for(let[n,o]of Object.entries(r)){let s=typeof o=="object"?o:{type:o},i=this[n];Object.defineProperty(this,n,{configurable:!0,enumerable:!0,get:()=>this.__propValues[n],set:a=>{let c=this.__propValues[n];(s.hasChanged||za)(a,c)&&(this.__propValues[n]=a,s.reflect&&!s.state&&this._connected&&this._reflectAttribute(n,a,s),this.requestUpdate(n,c))}}),i!==void 0?this.__propValues[n]=i:s.default!==void 0&&(this.__propValues[n]=typeof s.default=="function"?s.default():s.default)}}}_reflectAttribute(t,r,n){let o=n.attribute||Za(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),li(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),Ga(this,t,o,a&&a.message)}i&&this.setAttribute(o,s)}else Kn(r)?(this.removeAttribute(o),li(this,t,o)):this.setAttribute(o,String(r))}finally{this.__reflectingAttribute=!1}}}connectedCallback(){if(!Xa)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=rf(n.slice(16));try{this[s]=Ce(o)}catch(i){console.warn(`[webjs] failed to decode ${n} on <${this.tagName.toLowerCase()}>: ${i&&i.message}`)}}}_activate(){this._connected=!0,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:It(n)?[n]:[];if(o.length){if(r){let s=this.shadowRoot.querySelector("style");s&&s.remove()}as(this._renderRoot,o)}}else this._renderRoot=this,t.styles&&console.warn(`[webjs] <${gt(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().`),Ir(this)?Ns(this):this.__isHydrating()||this.hasAttribute("data-wj-serialized")||Us(this)?(this.removeAttribute("data-wj-serialized"),Z(this),Ss(this)):ws(this),Ps(this),Es(this);for(let r of this.__controllers)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),Ts(this),this.__signalWatcher&&(this.__signalWatcher.dispose(),this.__signalWatcher=void 0);for(let t of this.__controllers)t.hostDisconnected&&t.hostDisconnected()}attributeChangedCallback(t,r,n){if(this.__reflectingAttribute)return;let o=mo(this.constructor,t);if(o===void 0)return;let{propName:s,def:i}=o,a=po(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;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)o.hostUpdate&&o.hostUpdate();this.__renderToken=(this.__renderToken||0)+1,this.__renderAbort&&this.__renderAbort.abort(),this.__renderAbort=typeof AbortController<"u"?new AbortController:null,ho(this.__renderAbort?this.__renderAbort.signal:null);try{let o=this.update(t);o&&typeof o.then=="function"&&(n=o)}catch(o){this._handleRenderError(o)}finally{ho(null)}if(!n){for(let o of this.__controllers)o.hostUpdated&&o.hostUpdated();r=!0}}}catch(o){console.error("[webjs] lifecycle hook threw during update phase:",o)}finally{this._isUpdating=!1,(r||n)&&(this._changedProperties=new Map)}if(n){let o=this.__renderToken;this.__pendingAsyncCommits=(this.__pendingAsyncCommits||0)+1;let s=()=>{if(this.__pendingAsyncCommits--,o===this.__renderToken){for(let i of this.__controllers)i.hostUpdated&&i.hostUpdated();this._postCommit(t)}};n.then(s,i=>{try{o===this.__renderToken&&this._handleRenderError(i instanceof Error?i:new Error(Ka(i)))}finally{s()}});return}r?this._postCommit(t):this.__pendingAsyncCommits||this._resolveUpdate()}_resolveUpdate(){if(this._updateResolve){let t=this._changedProperties.size===0;this._updateResolve(t),this._updateResolve=null}}performServerUpdate(){let t=this._changedProperties;this._isUpdating=!0;try{this.willUpdate(t);for(let r of this.__controllers)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||n.state||this._reflectAttribute(r,this[r],n)}}shouldUpdate(t){return!0}willUpdate(t){}update(t){this.__signalWatcher||(this.__signalWatcher=new Wr.subtle.Watcher(()=>{this._connected&&this.requestUpdate()}));let r;if(this.__signalWatcher.observe(()=>{r=this.render()}),r&&typeof r.then=="function")return this._commitAsync(r);ht(r,this._renderRoot)}_commitAsync(t){let r=this.__renderToken;if(this.__firstRendered&&this._overridesRenderFallback())try{let n=this.renderFallback();n!==void 0&&ht(n,this._renderRoot)}catch(n){console.error("[webjs] renderFallback() threw:",n)}return Promise.resolve(t).then(n=>{if(r===this.__renderToken)try{ht(n,this._renderRoot)}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!==Xr.prototype.renderFallback}_handleRenderError(t){console.error(`[webjs] render error in <${gt(this.constructor)||this.tagName?.toLowerCase()}>:`,t);try{let r=this.renderError(t);r!==void 0&&ht(r,this._renderRoot)}catch(r){console.error("[webjs] renderError() also threw:",r)}}_postCommit(t){try{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._resolveUpdate()}}updated(t){}firstUpdated(t){}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}addController(t){this.__controllers.add(t),this._connected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}render(){return""}renderError(t){}renderFallback(){}};function Za(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function rf(e){return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Xr(e){return new.target?Reflect.construct(rr,arguments,new.target):class extends rr{static properties=e;static[Qa]=!0}}Object.setPrototypeOf(Xr,rr);Xr.prototype=rr.prototype;var ui=null;function nf(e){ui=e}function fi(){if(!ui)return"";try{return ui()||""}catch{return""}}Xe();Ao();Kt();Ao();So();_o();Xe();yt();_o();function hi(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 mc(e,t){if(!(!e||typeof e.setAttribute!="function"))for(let[r,n]of Object.entries(t))e.setAttribute(r,or(n))}function gi(e){return/\sdata-wj-host(?=[\s>=])/i.test(e)?e:`${e.slice(0,-1)} data-wj-host>`}function hc(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}="${H(String(i))}"`}return n?`${e.slice(0,-1)}${n}>`:e}function gc(e,t,r){for(let[n,o]of Object.entries(t)){let s=mo(r,n.toLowerCase());if(s===void 0)continue;let{propName:i,def:a}=s;e[i]=po(a,or(o))}}function bc(e){let t={};for(let r of Object.keys(e)){if(!r.startsWith("data-webjs-prop-"))continue;let n=cc(r.slice(16));try{t[n]=Ce(or(e[r]))}catch{}delete e[r]}return t}Xe();So();function gf(e){let t=/\bslot\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(e);if(!t)return null;let r=t[1]??t[2]??t[3]??"";return r===""||r==="default"?null:r}function wc(e){let t=new Map,r="",n=0;for(;n<e.length;){let o=e.indexOf("<",n);if(o===-1){r+=e.slice(n);break}o>n&&(r+=e.slice(n,o));let s=e.slice(o);if(s.startsWith("<!--")){let w=pi(e,o);if(w===-1){r+=s,n=e.length;break}r+=e.slice(o,w),n=w;continue}if(s.startsWith("<!")||s.startsWith("</")){let w=e.indexOf(">",o);if(w===-1){r+=s,n=e.length;break}r+=e.slice(o,w+1),n=w+1;continue}let i=/^<([a-zA-Z][\w-]*)((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/.exec(s);if(!i){r+="<",n=o+1;continue}let[a,c,l,u]=i,f=c.toLowerCase(),p=!!u||ec(f),d=gf(l),m;if(p)m=o+a.length;else{let w=o+a.length,_=wt(e,w,f);if(_===-1){let N=e.slice(o);d!==null?yc(t,d,N):r+=N,n=e.length;continue}let b=new RegExp(`</${St(f)}\\s*>`,"i"),E=e.slice(_),A=b.exec(E),T=A?A[0].length:`</${f}>`.length;m=_+T}let g=e.slice(o,m);d!==null?yc(t,d,g):r+=g,n=m}return r.length>0&&t.set(null,r),t}function yc(e,t,r){let n=e.get(t);n!==void 0?e.set(t,n+r):e.set(t,r)}function Sc(e,t,r){let n=r?` data-wj-slot-owner="${H(r)}"`:"",o=new Set,s="",i=0,a=/<slot((?:"[^"]*"|'[^']*'|[^>])*?)(\/?)>/gi,c=nr(e),l=Qr(c),u;for(;(u=a.exec(e))!==null;){if(l(u.index))continue;s+=e.slice(i,u.index);let[f,p,d]=u,m=!!d,g=/\bname\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(p),w=g?g[1]??g[2]??g[3]:null,_=p.replace(/\bname\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i,"").trim(),b="",E;if(m)E=u.index+f.length;else{let S=u.index+f.length,h=wt(e,S,"slot",c);if(h===-1)b=e.slice(S),E=e.length;else{b=e.slice(S,h);let y=/<\/slot\s*>/i,C=e.slice(h),x=y.exec(C),q=x?x[0].length:7;E=h+q}}let A=w==="default"||w===""?null:w,T=t.get(A),N=w!==null?` name="${H(w)}"`:"",k=_?` ${_}`:"";T!==void 0&&!o.has(A)?(o.add(A),s+=`<slot data-webjs-light data-projection="actual"${n}${N}${k}>${T}</slot>`):s+=`<slot data-webjs-light data-projection="fallback"${n}${N}${k}>${b}</slot>`,i=E,a.lastIndex=E}return s+=e.slice(i),s}async function Re(e,t,r=[],n){e=await bf(e,t,r,n);let o=ci();if(!o.length)return e;let s=[...o].sort((d,m)=>m.length-d.length),i=new RegExp(`<(${s.map(St).join("|")})(?=[\\s>/])((?:"[^"]*"|'[^']*'|[^>])*?)(/?)>`,"g"),a=[],c=nr(e),l=Qr(c);for(let d of e.matchAll(i)){let[m,g,w,_]=d,b=ai(g);if(!b||l(d.index))continue;t&&t.usedComponents&&t.usedComponents.add(g);let E=_?`<${g}${w}>`:m,A=null;try{let T=b.shadow===!0;A=new b,A.__ssrTag=g,A.__ssrAncestors=r;let N=hi(w),k=bc(N),S=new Set(Object.keys(hi(w)).map(B=>B.toLowerCase()));mc(A,N),gc(A,N,b);for(let[B,R]of Object.entries(k))A[B]=R;let h="",y=d.index+m.length;if(!_){let B=d.index+m.length,R=wt(e,B,g,c);if(R!==-1){h=e.slice(B,R);let Pe=new RegExp(`</${St(g)}\\s*>`,"i"),jt=e.slice(R),Bn=Pe.exec(jt),ea=Bn?Bn[0].length:`</${g}>`.length;y=R+ea}else h=e.slice(B),y=e.length}let C=wc(h);typeof A.performServerUpdate=="function"&&A.performServerUpdate();let x=A.render?A.render():"";x&&typeof x.then=="function"&&(x=await x),E=hc(E,A,S),T||(E=gi(E));let q=await I(x,t);if(T){let B=await Re(q,t,[...r,A],n),R=b.styles,Pe=Array.isArray(R)?R:R&&It(R)?[R]:[],jt=Un(Pe);a.push({start:d.index,end:d.index+m.length,text:`${E}<template shadowrootmode="open">${jt}${B}</template>`})}else{if(q.trim()===""){a.push({start:d.index,end:d.index+m.length,text:`${E}<!--webjs-hydrate-->`});continue}let R=Sc(q,C,g),Pe=await Re(R,t,[...r,A],n);a.push({start:d.index,end:y,text:`${E}<!--webjs-hydrate-->${Pe}</${g}>`})}}catch(T){let N=mi(T);console.error(N?`[webjs] SSR failed for <${g}>: ${N} 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 <${g}>:`,T);let k=T instanceof Error?T:new Error(String(T)),S="";try{let x;A&&typeof A.renderError=="function"&&(x=A.renderError(k)),x===void 0&&(x=en(g,k,n)),S=await I(x,t),S.trim()&&(S=await Re(S,t,A?[...r,A]:r,n))}catch(x){console.error(`[webjs] renderError() for <${g}> also threw:`,x),S=""}let h=d.index+m.length;if(!_){let x=d.index+m.length,q=wt(e,x,g,c);if(q!==-1){let R=new RegExp(`</${St(g)}\\s*>`,"i").exec(e.slice(q));h=q+(R?R[0].length:`</${g}>`.length)}else h=e.length}let y=b.shadow===!0;y||(E=gi(E));let C;if(y){let x=b.styles,q=Array.isArray(x)?x:x&&It(x)?[x]:[],B=Un(q);C=`${E}<template shadowrootmode="open">${B}${S}</template>`}else C=`${E}<!--webjs-hydrate-->${S}</${g}>`;a.push({start:d.index,end:h,text:C})}}if(!a.length)return e;a.sort((d,m)=>d.start-m.start);let u=[],f=-1;for(let d of a)d.start>=f&&(u.push(d),f=d.end);let p=e;for(let d=u.length-1;d>=0;d--){let{start:m,end:g,text:w}=u[d];p=p.slice(0,m)+w+p.slice(g)}return p}async function bf(e,t,r=[],n){if(e.indexOf("<webjs-suspense")===-1)return e;let o=/<webjs-suspense((?:"[^"]*"|'[^']*'|[^>])*?)>/i,s=nr(e),i=Qr(s),a=0,c="",l=e;for(let u=0;u<1e4;u++){let f=o.exec(l);if(!f){c+=l;break}if(i(a+f.index)){let T=f.index+f[0].length;c+=l.slice(0,T),l=l.slice(T),a+=T;continue}let p=f.index,d=f.index+f[0].length;c+=l.slice(0,p);let m=f[1]||"",g=/data-webjs-fallback="([^"]*)"/i.exec(m),w=g?or(g[1]):"",_=[];for(let[T,N]of s)N<=a||_.push([Math.max(0,T-a),N-a]);let b=wt(l,d,"webjs-suspense",_),E,A;if(b===-1)E=l.slice(d),A="";else{E=l.slice(d,b);let T=/<\/webjs-suspense\s*>/i.exec(l.slice(b));A=l.slice(b+(T?T[0].length:17))}if(t){let T=`s${t.nextId++}`;t.pending.push({id:T,promise:Promise.resolve(hs(E))}),c+=`<webjs-suspense id="${T}">${w}</webjs-suspense>`}else{let T=await Re(E,t,r,n);c+=`<webjs-suspense>${T}</webjs-suspense>`}a+=l.length-A.length,l=A}return c}async function _c(e,t={ssr:!0}){let r=t&&t.suspenseCtx,n=t&&t.dev!==void 0?t.dev:r&&r.dev;r&&r.dev===void 0&&n!==void 0&&(r.dev=n);let o=await I(e,r);return t&&t.ssr===!1?o:await Re(o,r,[],n)}function Ac(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){let{streamRender:s}=await Promise.resolve().then(()=>(Ao(),pc));await s(e,r,o)}else{let s=await I(e,r),i=await Re(s,r,[],n);o.enqueue(i)}r&&r.pending.length&&await yf(r,o,n),o.close()}catch(s){o.error(s)}}})}async function yf(e,t,r){let n=fi(),o=n?` nonce="${H(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 I(c,e),u=await Re(l,e,[],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(c){console.error(`[webjs] Suspense boundary "${i}" rejected:`,c);try{let l=c instanceof Error?c:new Error(String(c)),u=await Re(await I(en("webjs-suspense",l,r),e),e,[],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)}}}))}}Xe();var xc=Symbol.for("webjs.notFound"),vc=Symbol.for("webjs.redirect"),Ec=Symbol.for("webjs.forbidden"),Tc=Symbol.for("webjs.unauthorized");function wf(){let e=new Error("webjs: notFound()");throw e.__webjs=xc,e}function Sf(){let e=new Error("webjs: forbidden()");throw e.__webjs=Ec,e}function _f(){let e=new Error("webjs: unauthorized()");throw e.__webjs=Tc,e}function Af(e,t){let r=typeof t=="object"&&t!==null?t.status:t,n=new Error(`webjs: redirect(${e})`);throw n.__webjs=vc,n.url=e,n.status=typeof r=="number"?r:void 0,n}function xf(e){return!!e&&e.__webjs===xc}function vf(e){return!!e&&e.__webjs===vc}function Ef(e){return!!e&&e.__webjs===Ec}function Tf(e){return!!e&&e.__webjs===Tc}var bi=null;function Nf(e){bi=e}function kf(e){if(typeof e!="string"||!e||!bi)return e;try{return bi(e)||e}catch{return e}}Ne();Pr();di();function Cf(e,t={}){let r=t.reconnect!==!1,n=0,o=!1,s=null,i=[];function a(){o||(s=new WebSocket(Rf(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 Rf(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}`}yt();var yi="application/vnd.webjs+json";async function Lf(e,t={}){let r=new Headers(t.headers||{});r.has("accept")||r.set("accept",yi);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 Jr(n),r.has("content-type")||r.set("content-type",yi));let o=await fetch(e,{...t,headers:r,body:n}),s=o.headers.get("content-type")||"",i=await o.text(),a=s.includes(yi)?i?Ce(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}yt();Ai();_i();nn();var Ji=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 bd(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 yd(e,t,r){return e&&typeof e.get=="function"&&typeof e.set=="function"?bd(e,t,r):new Ji(e,t)}Eo();No();var wd="application/vnd.webjs+stream",Sd=1,_d=2,Ad=3,xl=new Uint8Array(0);function xd(e,t){let r=t||xl,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 vd(){let e=xl;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}}}Kt();var Ed=Symbol.for("webjs.context");function Td(e){return{__context__:Ed,name:e}}var ns=class extends Event{constructor(t,r,n=!1){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=n}},Zi=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()}},Xi=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 ns(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 Nd(){return typeof window<"u"}var je={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},Qi=class{constructor(t,{task:r,args:n,autoRun:o=!0}){this._host=t,this._taskFn=r,this._argsFn=n||(()=>[]),this._autoRun=o,this._status=je.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=je.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=je.COMPLETE,this._error=void 0}catch(n){if(t.signal.aborted)return;this._error=n,this._status=je.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 je.INITIAL:return t.initial?.();case je.PENDING:return t.pending?.();case je.COMPLETE:return t.complete?.(this._value);case je.ERROR:return t.error?.(this._error);default:return}}hostUpdate(){if(!this._autoRun||!Nd())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}};export{Xi as ContextConsumer,Zi as ContextProvider,ns as ContextRequestEvent,F as FORM_ACTION_FIELD,ra as FORM_ACTION_ID_KEY,Sd as FRAME_CHUNK,_d as FRAME_END,Ad as FRAME_ERROR,M as MARKER,Ic as SEED_MISS,wd as STREAM_CONTENT_TYPE,Wr as Signal,of as Suspense,Qi as Task,je as TaskStatus,Xr as WebComponent,Si as WebjsFrame,xi as WebjsStream,Du as activeActionSignal,as as adoptStyles,ci as allTags,kf as asset,zl as asyncAppend,Kl as asyncReplace,fu as batch,Vl as cache,pu as computed,Cf as connectWS,Kf as consumeStale,Td as createContext,vd as createFrameDecoder,Ul as createRef,fi as cspNonce,Tl as css,Va as deserialize,Ki as disableClientRouter,hu as effect,$n as enableClientRouter,xd as encodeFrame,H as escapeAttr,Wn as escapeText,Wf as fetchMark,Sf as forbidden,$l as guard,is as html,Wt as isAsyncAppend,zt as isAsyncReplace,It as isCSS,ot as isCache,Ef as isForbidden,rt as isGuard,tt as isKeyed,$u as isLazy,Y as isLive,xf as isNotFound,vf as isRedirect,nt as isRef,et as isRepeat,mu as isSignal,yo as isSuspense,W as isTemplate,Vt as isTemplateContent,Tf as isUnauthorized,Ut as isUnsafeHTML,st as isUntil,it as isWatch,Fl as keyed,Ml as live,Yi as loadFrame,ai as lookup,Fu as lookupModuleUrl,ki as markStale,Gi as navigate,wf as notFound,yd as optimistic,Ce as parse,Ci as parseTagHeader,Mu as primeModuleUrl,Ya as prop,Af as redirect,Hl as ref,rs as refreshPage,ii as register,zf as registerKeyTags,ht as render,vi as renderStream,Ac as renderToStream,_c as renderToString,la as repeat,ts as revalidate,Lf as richFetch,vo as scanSeeds,Uf as seedStats,Ua as serialize,ho as setActiveActionSignal,Nf as setAssetUrlProvider,nf as setCspNonceProvider,Nl as setFormActionResolver,du as signal,Jr as stringify,Un as stylesToString,gt as tagOf,Hf as takeSeed,Bl as templateContent,_f as unauthorized,hs as unsafeHTML,Wl as until,Gl as watch};
10
10
  //# sourceMappingURL=webjs-core.js.map