@jxsuite/studio 5.7.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{cf-account-picker-882a7ecm.js → cf-account-picker-bb2yq946.js} +2 -2
- package/dist/chunks/content-source-t0q184js.js +4 -0
- package/dist/chunks/{convert-to-repeater-grfep2w8.js → convert-to-repeater-vqkt7s3s.js} +2 -2
- package/dist/chunks/entry-commands-fxzgcc4k.js +4 -0
- package/dist/chunks/{extension-sections-dp8endhx.js → extension-sections-8beq9ac3.js} +2 -2
- package/dist/chunks/file-ops-2n77759h.js +4 -0
- package/dist/chunks/files-fjy7zpxt.js +4 -0
- package/dist/chunks/{format-host-e2pjvd25.js → format-host-wj3mf3n8.js} +2 -2
- package/dist/chunks/fs-events-7kcgn4e9.js +4 -0
- package/dist/chunks/git-panel-7z2mpt2d.js +4 -0
- package/dist/chunks/{grid-view-5amhg604.js → grid-view-ca10def6.js} +2 -2
- package/dist/chunks/{iframe-host-t819mcg5.js → iframe-host-a0zjd6xp.js} +2 -2
- package/dist/chunks/{layers-4bsr82wz.js → layers-p677nrh5.js} +2 -2
- package/dist/chunks/layers-panel-y4w1dq90.js +4 -0
- package/dist/chunks/media-picker-xg7yjpz9.js +4 -0
- package/dist/chunks/menu-fpekzj6w.js +4 -0
- package/dist/chunks/publish-panel-xtbfgg2r.js +4 -0
- package/dist/chunks/quick-search-d3a6m7j3.js +4 -0
- package/dist/chunks/right-panel-31vbk5xp.js +4 -0
- package/dist/chunks/studio-1q6amtph.js +5 -0
- package/dist/chunks/{studio-56z7evx4.js → studio-3ck2a5c4.js} +2 -2
- package/dist/chunks/{studio-gh97gngt.js → studio-4fde4a0x.js} +2 -2
- package/dist/chunks/{studio-gfn1kpxj.js → studio-4jj9gme2.js} +3 -3
- package/dist/chunks/{studio-zpnk016a.js → studio-4m50vh74.js} +3 -3
- package/dist/chunks/{studio-dkn3x3hz.js → studio-4r0sjtx8.js} +2 -2
- package/dist/chunks/{studio-a7xqhc3n.js → studio-5d7wfmnp.js} +2 -2
- package/dist/chunks/{studio-ceb34dxj.js → studio-5gs9th4b.js} +2 -2
- package/dist/chunks/{studio-j6gnhvaa.js → studio-5vy2wfm5.js} +2 -2
- package/dist/chunks/{studio-spf2skgc.js → studio-7qvs7v0m.js} +2 -2
- package/dist/chunks/{studio-e6re3rk1.js → studio-84rtc120.js} +2 -2
- package/dist/chunks/{studio-nt06yybj.js → studio-8xcwewjq.js} +2 -2
- package/dist/chunks/{studio-cxt150pj.js → studio-aekhcdzw.js} +2 -2
- package/dist/chunks/{studio-222rqyyc.js → studio-bftp4n4b.js} +2 -2
- package/dist/chunks/{studio-xta2vxp6.js → studio-capk0583.js} +2 -2
- package/dist/chunks/{studio-wma2c6g8.js → studio-cbr9czkn.js} +2 -2
- package/dist/chunks/{studio-c9d3pxf7.js → studio-chdmwwzw.js} +2 -2
- package/dist/chunks/{studio-0k9mvpgj.js → studio-cp1gbff9.js} +2 -2
- package/dist/chunks/{studio-1x8x26k3.js → studio-cqmtbg2p.js} +2 -2
- package/dist/chunks/{studio-c6w3tq7t.js → studio-e47215hh.js} +2 -2
- package/dist/chunks/{studio-frb0qbf7.js → studio-fbx6twps.js} +2 -2
- package/dist/chunks/{studio-xk0z6msk.js → studio-fthwn4kf.js} +2 -2
- package/dist/chunks/{studio-0scebvb9.js → studio-g8dsj3d2.js} +2 -2
- package/dist/chunks/{studio-54g077x3.js → studio-ge5fqjth.js} +2 -2
- package/dist/chunks/{studio-p7c1agz0.js → studio-gjknvzam.js} +3 -3
- package/dist/chunks/{studio-mwxgyn9h.js → studio-hnvnfbdv.js} +3 -3
- package/dist/chunks/{studio-9mqfamps.js → studio-mk00zd5d.js} +2 -2
- package/dist/chunks/{studio-skzanb0k.js → studio-qa73881a.js} +2 -2
- package/dist/chunks/{studio-xry7tk3z.js → studio-rmn2dz59.js} +2 -2
- package/dist/chunks/{studio-eh0rac07.js → studio-rr4xkv81.js} +2 -2
- package/dist/chunks/{studio-f195h2hq.js → studio-tmeq6mjb.js} +2 -2
- package/dist/chunks/{studio-cvbkkfqb.js → studio-x5g1xk77.js} +2 -2
- package/dist/chunks/{studio-65fhspdd.js → studio-xg1942as.js} +2 -2
- package/dist/chunks/{studio-888knnkc.js → studio-xkfs0dp2.js} +2 -2
- package/dist/chunks/{studio-xy3tv3az.js → studio-zev8ssp1.js} +3 -3
- package/dist/chunks/{studio-tw7rre6s.js → studio-ztvcxm3w.js} +2 -2
- package/dist/chunks/{workspace-b69mgm0e.js → workspace-5vmgsagj.js} +2 -2
- package/dist/iframe-entry.js +3 -3
- package/dist/manifest.json +36 -36
- package/dist/studio.js +10 -10
- package/package.json +11 -11
- package/src/ui/schema-form.ts +6 -2
- package/dist/chunks/content-source-37x3vsap.js +0 -4
- package/dist/chunks/entry-commands-c5h3nqck.js +0 -4
- package/dist/chunks/file-ops-937cvqk6.js +0 -4
- package/dist/chunks/files-tznwe1p1.js +0 -4
- package/dist/chunks/fs-events-fv64ak3s.js +0 -4
- package/dist/chunks/git-panel-gb713ttc.js +0 -4
- package/dist/chunks/layers-panel-b6shnaax.js +0 -4
- package/dist/chunks/media-picker-ej0kdh1j.js +0 -4
- package/dist/chunks/menu-rtxf9chb.js +0 -4
- package/dist/chunks/publish-panel-bq36xcmj.js +0 -4
- package/dist/chunks/quick-search-zm00h9dh.js +0 -4
- package/dist/chunks/right-panel-pq2f71q3.js +0 -4
- package/dist/chunks/studio-693nhyky.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Qn,vp,ZC,m,u,Rr,Hn,Gu,$r,yp,Ox,Mx,Pl,wp,xp,_p,Ku,Ua,Cp,Sc,No,Fl,Px,kv,XC,Fx,QC,ek,ci,Cm,Sv,tk}from"./studio-
|
|
1
|
+
import{Qn,vp,ZC,m,u,Rr,Hn,Gu,$r,yp,Ox,Mx,Pl,wp,xp,_p,Ku,Ua,Cp,Sc,No,Fl,Px,kv,XC,Fx,QC,ek,ci,Cm,Sv,tk}from"./studio-x5g1xk77.js";import"./studio-7pgy3xaf.js";import"./studio-cqmtbg2p.js";import"./studio-y7jehjrp.js";import"./studio-fqq890ap.js";export{ZC as MAX_PANES,Qn as PRIMARY_PANE,vp as SECONDARY_PANE,ci as activateTab,Rr as activePane,u as activeTab,QC as closeAllTabs,wp as closePane,Fx as closeTab,_p as detachTab,$r as focusPane,Ku as insertIntoPane,yp as isPaneFocused,Cp as isTabActive,XC as moveTab,Cm as moveTabToPane,No as openTab,Mx as paneBeside,Hn as paneById,xp as paneIsEmpty,Gu as paneOfTab,Px as promoteDirtyPreviewTabs,Fl as promoteTab,Pl as receivingPane,tk as registerTabCommands,Sv as renameTab,ek as replaceAllTabs,kv as setTabPinned,Ua as setWorkspaceProject,Ox as splitRight,Sc as tabIsLive,m as workspace};
|
|
2
2
|
|
|
3
3
|
//# debugId=1D3E7F0FC61927CE64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=workspace-
|
|
4
|
+
//# sourceMappingURL=workspace-5vmgsagj.js.map
|
package/dist/iframe-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var So,jn,Wt,K=(e,t)=>{for(var[n,r,o]of So||[])for(var s=[e],i=globalThis,a=i.document,c,l,u,f,d;l=s.pop();)if(!jn[l]&&(u=r[l])){jn[l]=1;for(f=1;f<u.length;f++)s.push(o[u[f]]);if(!t&&l!==e&&(c=a&&a.head)){if(Wt===void 0)Wt=(f=a.querySelector("meta[property=csp-nonce]"))&&(f.nonce||f.getAttribute("nonce"))||"";if(d=a.createElement("link"),d.rel="modulepreload",d.crossOrigin="",Wt)d.nonce=Wt;d.href=new i.URL(u[0],n),c.appendChild(d)}}},Na=(e,t,n,r)=>{for(var o={},s=0;s<t.length;s++)o[t[s]]=n[s];(So||=[]).push([e,o,t]),jn||={},K(t[r],1)};Na(import.meta.url,["
|
|
2
|
-
function ko(e){let{target:t,source:n,targetOrigin:r,acceptOrigin:o,token:s}=e,i=new Set,a=(c)=>{if(o!=="*"&&c.origin!==o)return;let l=c.data;if(!l||typeof l!=="object"||l["jx:canvas"]!==s)return;for(let u of i)u(l.payload)};return n.addEventListener("message",a),{dispose(){i.clear(),n.removeEventListener("message",a)},onMessage(c){return i.add(c),()=>i.delete(c)},post(c){t.postMessage({["jx:canvas"]:s,payload:c},r)}}}function ne(e){return e.getBoundingClientRect()}function To(e){return e.getBoundingClientRect()}function Ao(e,t,n=document){return n.elementFromPoint(e,t)}function re(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function _e(e){return re(e)&&typeof e.$ref==="string"}function ft(e){return re(e)&&e.$prototype==="Function"}function Ke(e){return re(e)&&re(e.$expression)}function Co(e){return Ke(e)&&Array.isArray(e.parameters)&&e.parameters.length>0}function Hn(e){return ft(e)&&Array.isArray(e.body)}function Fn(e){return re(e)&&typeof e.$prototype==="string"&&e.$prototype!=="Function"}function Wn(e){return re(e)&&e.timing==="server"&&typeof e.$src==="string"&&typeof e.$export==="string"&&!e.$prototype}function Bt(e){return re(e)&&e.$prototype==="Array"}function ie(e){return typeof e==="string"&&e.includes("${")}function Bn(e){return/\breturn\b[^\S\n]*(?![;}\s]|$)/.test(e)}function Po(e){return _e(e)||ft(e)||Ke(e)}function Ro(e){if(!e)return[];return e.map((t)=>typeof t==="string"?t:t.name)}function Kn(e){if(!re(e)||!re(e.$expression))return!1;let t=e.$expression;if(t.operator==="?:")return typeof t.value==="string"&&typeof t.initial==="string";if(t.operator==="switch")return re(t.cases)&&Object.values(t.cases).every((n)=>typeof n==="string")&&typeof t.default==="string";return!1}function Ma(e){if(typeof e==="string")return[e];if(!Kn(e))return[];let t=e.$expression;if(t.operator==="?:")return[...new Set([t.value,t.initial])];return[...new Set([...Object.values(t.cases),t.default])]}function xe(e){return typeof e==="string"?e:Ma(e).join("|")}function Kt(e){return e.startsWith("#")}function Vn(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return(n)=>(n in t)}var Vt=Object.assign;var _a=Object.prototype.hasOwnProperty,Ut=(e,t)=>_a.call(e,t),Ve=Array.isArray,dt=(e)=>No(e)==="[object Map]";var $o=(e)=>typeof e==="function",Oa=(e)=>typeof e==="string",Ue=(e)=>typeof e==="symbol",qe=(e)=>e!==null&&typeof e==="object";var Da=Object.prototype.toString,No=(e)=>Da.call(e),Mo=(e)=>No(e).slice(8,-1);var qt=(e)=>Oa(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var zt=(e)=>{let t=Object.create(null);return(n)=>t[n]||(t[n]=e(n))},La=/-\w/g,yf=zt((e)=>e.replace(La,(t)=>t.slice(1).toUpperCase())),Ia=/\B([A-Z])/g,bf=zt((e)=>e.replace(Ia,"-$1").toLowerCase()),_o=zt((e)=>e.charAt(0).toUpperCase()+e.slice(1)),wf=zt((e)=>e?`on${_o(e)}`:""),ye=(e,t)=>!Object.is(e,t);var Ja="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Ef=Vn(Ja+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var q;class Lo{constructor(e=!1){if(this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&q)if(q.active)this.parent=q,this.index=(q.scopes||(q.scopes=[])).push(this)-1;else this._active=!1,this._warnOnRun=!1}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active){if(this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let r=this.scopes.slice();for(e=0,t=r.length;e<t;e++)r[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}}run(e){if(this._active){let t=q;try{return q=this,e()}finally{q=t}}}on(){if(++this._on===1)this.prevScope=q,q=this}off(){if(this._on>0&&--this._on===0){if(q===this)q=this.prevScope;else{let e=q;while(e){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();this.effects.length=0;for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let r=this.parent.scopes.pop();if(r&&r!==this)this.parent.scopes[this.index]=r,r.index=this.index}this.parent=void 0}}}function Ge(e){return new Lo(e)}function Zt(e,t=!1){if(q)q.cleanups.push(e)}var H;var Un=new WeakSet;class Xt{constructor(e){if(this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,q)if(q.active)q.effects.push(this);else this.flags&=-2}pause(){this.flags|=64}resume(){if(this.flags&64){if(this.flags&=-65,Un.has(this))Un.delete(this),this.trigger()}}notify(){if(this.flags&2&&!(this.flags&32))return;if(!(this.flags&8))Jo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Oo(this),jo(this);let e=H,t=ae;H=this,ae=!0;try{return this.fn()}finally{Ho(this),H=e,ae=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)nr(e);this.deps=this.depsTail=void 0,Oo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){if(this.flags&64)Un.add(this);else if(this.scheduler)this.scheduler();else this.runIfDirty()}runIfDirty(){if(Gn(this))this.run()}get dirty(){return Gn(this)}}var Io=0,mt,ht;function Jo(e,t=!1){if(e.flags|=8,t){e.next=ht,ht=e;return}e.next=mt,mt=e}function er(){Io++}function tr(){if(--Io>0)return;if(ht){let t=ht;ht=void 0;while(t){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;while(mt){let t=mt;mt=void 0;while(t){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){if(!e)e=r}t=n}}if(e)throw e}function jo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ho(e){let t,n=e.depsTail,r=n;while(r){let o=r.prevDep;if(r.version===-1){if(r===n)n=o;nr(r),ja(r)}else t=r;r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Gn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fo(t.dep.computed)||t.dep.version!==t.version))return!0;if(e._dirty)return!0;return!1}function Fo(e){if(e.flags&4&&!(e.flags&16))return;if(e.flags&=-17,e.globalVersion===gt)return;if(e.globalVersion=gt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gn(e)))return;e.flags|=2;let t=e.dep,n=H,r=ae;H=e,ae=!0;try{jo(e);let o=e.fn(e._value);if(t.version===0||ye(o,e._value))e.flags|=128,e._value=o,t.version++}catch(o){throw t.version++,o}finally{H=n,ae=r,Ho(e),e.flags&=-3}}function nr(e,t=!1){let{dep:n,prevSub:r,nextSub:o}=e;if(r)r.nextSub=o,e.prevSub=void 0;if(o)o.prevSub=r,e.nextSub=void 0;if(n.subs===e){if(n.subs=r,!r&&n.computed){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)nr(s,!0)}}if(!t&&!--n.sc&&n.map)n.map.delete(n.key)}function ja(e){let{prevDep:t,nextDep:n}=e;if(t)t.nextDep=n,e.prevDep=void 0;if(n)n.prevDep=t,e.nextDep=void 0}function z(e,t){if(e.effect instanceof Xt)e=e.effect.fn;let n=new Xt(e);if(t)Vt(n,t);try{n.run()}catch(o){throw n.stop(),o}let r=n.run.bind(n);return r.effect=n,r}var ae=!0,Wo=[];function Qt(){Wo.push(ae),ae=!1}function en(){let e=Wo.pop();ae=e===void 0?!0:e}function tn(e,t=!1){if(H instanceof Xt)H.cleanup=e}function Oo(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=H;H=void 0;try{t()}finally{H=n}}}var gt=0;class Bo{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!H||!ae||H===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==H){if(t=this.activeLink=new Bo(H,this),!H.deps)H.deps=H.depsTail=t;else t.prevDep=H.depsTail,H.depsTail.nextDep=t,H.depsTail=t;Ko(t)}else if(t.version===-1){if(t.version=this.version,t.nextDep){let n=t.nextDep;if(n.prevDep=t.prevDep,t.prevDep)t.prevDep.nextDep=n;if(t.prevDep=H.depsTail,t.nextDep=void 0,H.depsTail.nextDep=t,H.depsTail=t,H.deps===t)H.deps=n}}return t}trigger(e){this.version++,gt++,this.notify(e)}notify(e){er();try{for(let t=this.subs;t;t=t.prevSub)if(t.sub.notify())t.sub.dep.notify()}finally{tr()}}}function Ko(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ko(r)}let n=e.dep.subs;if(n!==e){if(e.prevSub=n,n)n.nextSub=e}e.dep.subs=e}}var Yn=new WeakMap,Oe=Symbol(""),Xn=Symbol(""),xt=Symbol("");function X(e,t,n){if(ae&&H){let r=Yn.get(e);if(!r)Yn.set(e,r=new Map);let o=r.get(n);if(!o)r.set(n,o=new nn),o.map=r,o.key=n;o.track()}}function Te(e,t,n,r,o,s){let i=Yn.get(e);if(!i){gt++;return}let a=(c)=>{if(c)c.trigger()};if(er(),t==="clear")i.forEach(a);else{let c=Ve(e),l=c&&qt(n);if(c&&n==="length"){let u=Number(r);i.forEach((f,d)=>{if(d==="length"||d===xt||!Ue(d)&&d>=u)a(f)})}else{if(n!==void 0||i.has(void 0))a(i.get(n));if(l)a(i.get(xt));switch(t){case"add":if(!c){if(a(i.get(Oe)),dt(e))a(i.get(Xn))}else if(l)a(i.get("length"));break;case"delete":if(!c){if(a(i.get(Oe)),dt(e))a(i.get(Xn))}break;case"set":if(dt(e))a(i.get(Oe));break}}}tr()}function ze(e){let t=j(e);if(t===e)return t;if(X(t,"iterate",xt),Ce(e))return t;if(!we(e))return t.map(me);return yt(e)?t.map((n)=>De(me(n))):t.map(De)}function rr(e){return X(e=j(e),"iterate",xt),e}function pe(e,t){if(we(e))return yt(e)?De(me(t)):De(t);return me(t)}var Ha={__proto__:null,[Symbol.iterator](){return qn(this,Symbol.iterator,(e)=>pe(this,e))},concat(...e){return ze(this).concat(...e.map((t)=>Ve(t)?ze(t):t))},entries(){return qn(this,"entries",(e)=>(e[1]=pe(this,e[1]),e))},every(e,t){return be(this,"every",e,t,void 0,arguments)},filter(e,t){return be(this,"filter",e,t,(n)=>n.map((r)=>pe(this,r)),arguments)},find(e,t){return be(this,"find",e,t,(n)=>pe(this,n),arguments)},findIndex(e,t){return be(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return be(this,"findLast",e,t,(n)=>pe(this,n),arguments)},findLastIndex(e,t){return be(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return be(this,"forEach",e,t,void 0,arguments)},includes(...e){return zn(this,"includes",e)},indexOf(...e){return zn(this,"indexOf",e)},join(e){return ze(this).join(e)},lastIndexOf(...e){return zn(this,"lastIndexOf",e)},map(e,t){return be(this,"map",e,t,void 0,arguments)},pop(){return pt(this,"pop")},push(...e){return pt(this,"push",e)},reduce(e,...t){return Do(this,"reduce",e,t)},reduceRight(e,...t){return Do(this,"reduceRight",e,t)},shift(){return pt(this,"shift")},some(e,t){return be(this,"some",e,t,void 0,arguments)},splice(...e){return pt(this,"splice",e)},toReversed(){return ze(this).toReversed()},toSorted(e){return ze(this).toSorted(e)},toSpliced(...e){return ze(this).toSpliced(...e)},unshift(...e){return pt(this,"unshift",e)},values(){return qn(this,"values",(e)=>pe(this,e))}};function qn(e,t,n){let r=rr(e),o=r[t]();if(r!==e&&!Ce(e))o._next=o.next,o.next=()=>{let s=o._next();if(!s.done)s.value=n(s.value);return s};return o}var Fa=Array.prototype;function be(e,t,n,r,o,s){let i=rr(e),a=i!==e&&!Ce(e),c=i[t];if(c!==Fa[t]){let f=c.apply(e,s);return a?me(f):f}let l=n;if(i!==e){if(a)l=function(f,d){return n.call(this,pe(e,f),d,e)};else if(n.length>2)l=function(f,d){return n.call(this,f,d,e)}}let u=c.call(i,l,r);return a&&o?o(u):u}function Do(e,t,n,r){let o=rr(e),s=o!==e&&!Ce(e),i=n,a=!1;if(o!==e){if(s)a=r.length===0,i=function(l,u,f){if(a)a=!1,l=pe(e,l);return n.call(this,l,pe(e,u),f,e)};else if(n.length>3)i=function(l,u,f){return n.call(this,l,u,f,e)}}let c=o[t](i,...r);return a?pe(e,c):c}function zn(e,t,n){let r=j(e);X(r,"iterate",xt);let o=r[t](...n);if((o===-1||o===!1)&&el(n[0]))return n[0]=j(n[0]),r[t](...n);return o}function pt(e,t,n=[]){Qt(),er();let r=j(e)[t].apply(e,n);return tr(),en(),r}var Wa=Vn("__proto__,__v_isRef,__isVue"),Vo=new Set(Object.getOwnPropertyNames(Symbol).filter((e)=>e!=="arguments"&&e!=="caller").map((e)=>Symbol[e]).filter(Ue));function Ba(e){if(!Ue(e))e=String(e);let t=j(this);return X(t,"has",e),t.hasOwnProperty(e)}class or{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t==="__v_skip")return e.__v_skip;let r=this._isReadonly,o=this._isShallow;if(t==="__v_isReactive")return!r;else if(t==="__v_isReadonly")return r;else if(t==="__v_isShallow")return o;else if(t==="__v_raw"){if(n===(r?o?Za:Go:o?zo:qo).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n))return e;return}let s=Ve(e);if(!r){let a;if(s&&(a=Ha[t]))return a;if(t==="hasOwnProperty")return Ba}let i=Reflect.get(e,t,Ae(e)?e:n);if(Ue(t)?Vo.has(t):Wa(t))return i;if(!r)X(e,"get",t);if(o)return i;if(Ae(i)){let a=s&&qt(t)?i:i.value;return r&&qe(a)?Qn(a):a}if(qe(i))return r?Qn(i):rn(i);return i}}class sr extends or{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t],s=Ve(e)&&qt(t);if(!this._isShallow){let c=we(o);if(!Ce(n)&&!we(n))o=j(o),n=j(n);if(!s&&Ae(o)&&!Ae(n))if(c)return!0;else return o.value=n,!0}let i=s?Number(t)<e.length:Ut(e,t),a=Reflect.set(e,t,n,Ae(e)?e:r);if(e===j(r)&&a){if(!i)Te(e,"add",t,n);else if(ye(n,o))Te(e,"set",t,n,o)}return a}deleteProperty(e,t){let n=Ut(e,t),r=e[t],o=Reflect.deleteProperty(e,t);if(o&&n)Te(e,"delete",t,void 0,r);return o}has(e,t){let n=Reflect.has(e,t);if(!Ue(t)||!Vo.has(t))X(e,"has",t);return n}ownKeys(e){return X(e,"iterate",Ve(e)?"length":Oe),Reflect.ownKeys(e)}}class Uo extends or{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}var Ka=new sr,Va=new Uo,Ua=new sr(!0);var Zn=(e)=>e,Gt=(e)=>Reflect.getPrototypeOf(e);function qa(e,t,n){return function(...r){let o=this.__v_raw,s=j(o),i=dt(s),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,l=o[e](...r),u=n?Zn:t?De:me;return!t&&X(s,"iterate",c?Xn:Oe),Vt(Object.create(l),{next(){let{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function Yt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function za(e,t){let n={get(o){let s=this.__v_raw,i=j(s),a=j(o);if(!e){if(ye(o,a))X(i,"get",o);X(i,"get",a)}let{has:c}=Gt(i),l=t?Zn:e?De:me;if(c.call(i,o))return l(s.get(o));else if(c.call(i,a))return l(s.get(a));else if(s!==i)s.get(o)},get size(){let o=this.__v_raw;return!e&&X(j(o),"iterate",Oe),o.size},has(o){let s=this.__v_raw,i=j(s),a=j(o);if(!e){if(ye(o,a))X(i,"has",o);X(i,"has",a)}return o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){let i=this,a=i.__v_raw,c=j(a),l=t?Zn:e?De:me;return!e&&X(c,"iterate",Oe),a.forEach((u,f)=>o.call(s,l(u),l(f),i))}};return Vt(n,e?{add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear")}:{add(o){let s=j(this),i=Gt(s),a=j(o),c=!t&&!Ce(o)&&!we(o)?a:o;if(!(i.has.call(s,c)||ye(o,c)&&i.has.call(s,o)||ye(a,c)&&i.has.call(s,a)))s.add(c),Te(s,"add",c,c);return this},set(o,s){if(!t&&!Ce(s)&&!we(s))s=j(s);let i=j(this),{has:a,get:c}=Gt(i),l=a.call(i,o);if(!l)o=j(o),l=a.call(i,o);let u=c.call(i,o);if(i.set(o,s),!l)Te(i,"add",o,s);else if(ye(s,u))Te(i,"set",o,s,u);return this},delete(o){let s=j(this),{has:i,get:a}=Gt(s),c=i.call(s,o);if(!c)o=j(o),c=i.call(s,o);let l=a?a.call(s,o):void 0,u=s.delete(o);if(c)Te(s,"delete",o,void 0,l);return u},clear(){let o=j(this),s=o.size!==0,i=void 0,a=o.clear();if(s)Te(o,"clear",void 0,void 0,void 0);return a}}),["keys","values","entries",Symbol.iterator].forEach((o)=>{n[o]=qa(o,e,t)}),n}function ir(e,t){let n=za(e,t);return(r,o,s)=>{if(o==="__v_isReactive")return!e;else if(o==="__v_isReadonly")return e;else if(o==="__v_raw")return r;return Reflect.get(Ut(n,o)&&o in r?n:r,o,s)}}var Ga={get:ir(!1,!1)},Ya={get:ir(!1,!0)},Xa={get:ir(!0,!1)};var qo=new WeakMap,zo=new WeakMap,Go=new WeakMap,Za=new WeakMap;function Qa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rn(e){if(we(e))return e;return ar(e,!1,Ka,Ga,qo)}function Yo(e){return ar(e,!1,Ua,Ya,zo)}function Qn(e){return ar(e,!0,Va,Xa,Go)}function ar(e,t,n,r,o){if(!qe(e))return e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;let s=o.get(e);if(s)return s;let i=Qa(Mo(e));if(i===0)return e;let a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function yt(e){if(we(e))return yt(e.__v_raw);return!!(e&&e.__v_isReactive)}function we(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function el(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}var me=(e)=>qe(e)?rn(e):e,De=(e)=>qe(e)?Qn(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function le(e){return tl(e,!1)}function tl(e,t){if(Ae(e))return e;return new Xo(e,t)}class Xo{constructor(e,t){this.dep=new nn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:me(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Ce(e)||we(e);if(e=n?e:j(e),ye(e,t))this._rawValue=e,this._value=n?e:me(e),this.dep.trigger()}}class Zo{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new nn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&H!==this)return Jo(this,!0),!0}get value(){let e=this.dep.track();if(Fo(this),e)e.version=this.dep.version;return this._value}set value(e){if(this.setter)this.setter(e)}}function bt(e,t,n=!1){let r,o;if($o(e))r=e;else r=e.get,o=e.set;return new Zo(r,o,n)}function on(e){return e.replaceAll(/[A-Z]/g,(t)=>`-${t.toLowerCase()}`)}var nl=new Set(["all","print","screen","speech"]);function Qo(e,t){if(e.startsWith("@--"))return t[e.slice(1)]??e.slice(1);if(e.startsWith("@(")){let n=e.slice(2,-1).trim();return nl.has(n.toLowerCase())?n:e.slice(1)}return null}function wt(e){return e.startsWith("@position-try")||e.startsWith("@property")||e.startsWith("@font-face")||e.startsWith("@counter-style")}function vt(e){return e.startsWith("@keyframes")}function es(e,t){let n=[];for(let r of lr(e))for(let o of lr(t))n.push(rl(r,o));return n.join(", ")}function rl(e,t){if(t.startsWith("&"))return t.replaceAll("&",e);if(t.startsWith("[")||t.startsWith(":")||t.startsWith("."))return`${e}${t}`;return`${e} ${t}`}function lr(e){let t=[],n=0,r=null,o=0;for(let i=0;i<e.length;i+=1){let a=e[i];if(r){if(a==="\\")i+=1;else if(a===r)r=null;continue}if(a==='"'||a==="'")r=a;else if(a==="("||a==="[")n+=1;else if(a===")"||a==="]")n=Math.max(0,n-1);else if(a===","&&n===0)t.push(e.slice(o,i)),o=i+1}t.push(e.slice(o));let s=t.map((i)=>i.trim()).filter((i)=>i!=="");return s.length>0?s:[e]}var ol=/[\s>+~,()]/,sl=/^[A-Za-z_\u{00A0}-\u{FFFF}][\w\u{00A0}-\u{FFFF}-]*/u;function il(e,t){let n="",r=0;for(;;){let o=e.indexOf("[open]",r);if(o===-1)return n+e.slice(r);let s=o;while(s>0&&!ol.test(e[s-1]))s-=1;let i=sl.exec(e.slice(s,o))?.[0]?.toLowerCase(),a=i===void 0?t.dialog===!0:i==="dialog";n+=e.slice(r,o)+(a?"[data-jx-dialog-open]":"[open]"),r=o+6}}function cr(e,t={}){if(e.includes("::backdrop"))return null;let n=e.replaceAll(":popover-open","[data-jx-popover-open]").replaceAll(":modal","[data-jx-dialog-open]").replaceAll("[inert]","[data-jx-inert]");return il(n,t)}var Pe="data-color-scheme";function sn(e){return/^\(\s*prefers-color-scheme\s*:\s*(light|dark)\s*\)$/.exec(e.trim())?.[1]??null}function ts(e,t){if(e===":root"||e==="html")return{auto:`${e}:where(:not([${Pe}]))`,forced:`${e}:where([${Pe}="${t}"])`};return{auto:`:where(:root:not([${Pe}])) ${e}`,forced:`:where(:root[${Pe}="${t}"]) ${e}`}}function St(e){return e.startsWith(":")||e.startsWith(".")||e.startsWith("&")||e.startsWith("[")}function ur(e){return e.startsWith("--")?e:on(e)}function Et(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function ns(e,t,n){let r=n.map(([s,i])=>`${s}: ${i}`).join("; "),o=t===null?r:`${t} { ${r} }`;for(let s=e.length-1;s>=0;s-=1)o=`${e[s]} { ${o} }`;return o}function al(e,t,n){let r=n.map(({selector:s,declarations:i})=>`${s} { ${i.map(([a,c])=>`${a}: ${c}`).join("; ")} }`).join(" "),o=`@keyframes ${t} { ${r} }`;for(let s=e.length-1;s>=0;s-=1)o=`${e[s]} { ${o} }`;return o}function ll(e){let t=Object.keys(e).filter((r)=>vt(r));if(t.length===0)return e;let n={...e};for(let r of t)delete n[r];return n}function cl(e){let t=e.startsWith("&")?e.slice(1):e;return t===""||t.startsWith(":")||t.startsWith(".")||t.startsWith("[")}function kt(e,t={}){let{scope:n=null,mediaQueries:r={},transposeValue:o=(g)=>g,transposeSelector:s=(g)=>g,resolveValue:i}=t,a=[],c=(g)=>g!==null&&typeof g==="object"&&!Array.isArray(g)&&!_e(g),l=(g,y)=>{if(c(y))return[y];if(!wt(g)||!Array.isArray(y)||y.length===0)return[];return y.every((S)=>c(S))?y:[]},u=(g,y,S,A)=>{if(y===void 0||y===null)return null;if(_e(y))return S?i?.(g,y,A)??null:null;if(typeof y==="object")return null;let C=String(y);if(ie(C))return S?i?.(g,C,A)??null:null;return o(C)},f=(g,y,S=!0,A="self")=>{let C=[];for(let[T,x]of Object.entries(g)){if(l(T,x).length>0)continue;if(y&&(T.startsWith("@")||St(T)))continue;if(T.startsWith("$"))continue;let v=u(T,x,S,A);if(v!==null)C.push([ur(T),v])}return C},d=(g,y,S,A,C)=>{if(S.length===0)return;let T=y;if(T!==null){let v=s(T);if(v===null)return;T=v}let x=ns(g,T,S);a.push({text:x,conditions:[...g],selector:T,declarations:S,target:A,key:Et(x),...typeof C==="string"&&C!==""?{description:C}:{}})},m=(g,y,S)=>{let A=g.slice(10).trim();if(A==="")return;let C=[];for(let[x,v]of Object.entries(y)){if(!c(v))continue;let P=f(v,!0,!1,"unscoped");if(P.length>0)C.push({declarations:P,selector:x.trim()})}if(C.length===0)return;let T=al(S,A,C);a.push({blocks:C,conditions:[...S],declarations:[],key:Et(T),selector:null,target:"unscoped",text:T})},w=(g,y,S,A,C)=>{if(g==="@--")return;if(wt(g)){d([...A,g],null,f(y,!1,!0,"unscoped"),"unscoped",y.$description);return}if(vt(g)){m(g,y,A);return}let T=Qo(g,r),x=T===null?g:`@media ${T}`,v=T===null?null:sn(T);if(v!==null&&S!==null){let{auto:P,forced:E}=ts(S,v);b(y,P,[...A,x],C),b(ll(y),E,A,C);return}b(y,S,[...A,x],C)};function b(g,y,S,A){d(S,y,f(g,!0,!0,A),A,g.$description);for(let[C,T]of Object.entries(g))for(let x of l(C,T))if(C.startsWith("@"))w(C,x,y,S,A);else if(y!==null)b(x,es(y,C),S,cl(C)?A:"descendant")}return b(e,n,[],"self"),a}var Ee="en-US",rs="UTC",os=[{api:"Intl.NumberFormat",params:["value","locale","options"],path:"Intl/formatNumber",summary:"Format a number for a locale — grouping, decimals, currency, percent, units."},{api:"Intl.DateTimeFormat",params:["value","locale","options"],path:"Intl/formatDate",summary:"Format a date or timestamp for a locale. Pass `timeZone` in options."},{api:"Intl.RelativeTimeFormat",params:["value","unit","locale","options"],path:"Intl/formatRelativeTime",summary:'Format a relative time — `-3, "day"` becomes "3 days ago".'},{api:"Intl.ListFormat",params:["values","locale","options"],path:"Intl/formatList",summary:'Join a list the way a locale does — "a, b, and c", not a hand-written comma join.'},{api:"Intl.PluralRules",params:["value","locale","options"],path:"Intl/plural",summary:'Which plural category a number falls in ("one", "few", "other") — many languages have '+"more than two, so a ternary on `n === 1` is wrong outside English."},{api:"Intl.Collator",params:["a","b","locale","options"],path:"Intl/compare",summary:'Compare two strings for sorting. `<` and `sort()` order by UTF-16 code unit, which puts "Zebra" before "apple" and sorts every accented word into the wrong place.'},{api:"Intl.DisplayNames",params:["code","type","locale","options"],path:"Intl/displayName",summary:'The name of a language, region, script or currency in a locale — "de" as "German" or '+'"Deutsch", from CLDR rather than a hand-kept table.'},{api:"Intl.Segmenter",params:["value","granularity","locale"],path:"Intl/segment",summary:"Split text into graphemes, words or sentences (UAX #29). `[...str]` splits code points, so it cuts an emoji with a skin-tone modifier in half."}],ss=os.map((e)=>e.path),is=Object.fromEntries(os.map((e)=>[e.path,e.params.indexOf("locale")]));function ul(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function fr(e){if(e==="")return[];return e.split("/").map((t)=>ul(t))}function ce(e,t){let n=e;for(let r of fr(t))n=n?.[r];return n}function dr(e){let t=e.$map;return t&&typeof t==="object"?t:void 0}var ls=new Set(["=","+=","-=","*=","/=","push","pop","shift","unshift","splice"]),cs=new Set(["!","-"]),us=new Set(["+","-","*","/","%","===","!==","<","<=",">",">=","&&","||","??"]),fl=new Set(["=","+=","-=","*=","/="]),dl=new Set(["push","pop","shift","unshift","splice"]),fs=new Set(["reduce","map","filter"]),ds=new Set(["?:","switch"]),ps=new Set(["includes","indexOf","lastIndexOf","join","slice","concat","at","flat","toSorted","toReversed","toSpliced","with","toUpperCase","toLowerCase","trim","trimStart","trimEnd","split","startsWith","endsWith","padStart","padEnd","replaceAll","repeat","charAt","normalize","toLocaleUpperCase","toLocaleLowerCase","toFixed","toPrecision","toLocaleString"]),pl=new Set([...ls,...cs,...us,...fs,...ds,...ps,"call"]),ml=new Set(["isNaN","isFinite","parseFloat","parseInt","encodeURIComponent","decodeURIComponent","structuredClone","Math/abs","Math/ceil","Math/floor","Math/round","Math/trunc","Math/sign","Math/sqrt","Math/cbrt","Math/pow","Math/exp","Math/log","Math/log2","Math/log10","Math/min","Math/max","Math/hypot","Number/isInteger","Number/isFinite","Number/isNaN","Number/parseFloat","Number/parseInt","JSON/parse","JSON/stringify","Object/keys","Object/values","Object/entries","Object/fromEntries","Array/from","Array/isArray","Array/of","String/fromCharCode","String/fromCodePoint",...ss]),hl={"Intl/compare":(e,t,n,r)=>new Intl.Collator(n??Ee,r).compare(e,t),"Intl/displayName":(e,t,n,r)=>new Intl.DisplayNames(n??Ee,{...r,type:t??"language"}).of(e),"Intl/formatDate":(e,t,n)=>new Intl.DateTimeFormat(t??Ee,{timeZone:rs,...n}).format(new Date(e)),"Intl/formatList":(e,t,n)=>new Intl.ListFormat(t??Ee,n).format(e),"Intl/formatNumber":(e,t,n)=>new Intl.NumberFormat(t??Ee,n).format(e),"Intl/formatRelativeTime":(e,t,n,r)=>new Intl.RelativeTimeFormat(n??Ee,r).format(e,t),"Intl/plural":(e,t,n)=>new Intl.PluralRules(t??Ee,n).select(e),"Intl/segment":(e,t,n)=>[...new Intl.Segmenter(n??Ee,{granularity:t??"grapheme"}).segment(e)].map((r)=>r.segment)};function gl(e,t,n){let r=is[e];if(r===void 0||r<0||t[r]!=null)return t;let s=n.$page?.locale;if(typeof s!=="string"||s==="")return t;let i=[...t];return i[r]=s,i}function xl(e){return e.startsWith("window#/")&&ml.has(e.slice(8))}function ms(e){return ls.has(e)}var as=64,yl=64;function W(e,t){if(!e)return;let n=(e.depth??0)+1;if(n>yl)return;return{depth:n,path:[...e.path??[],...Array.isArray(t)?t:[t]],report:e.report}}function F(e,t,n,r,o){if(e===null||e===void 0)return e;if(typeof e==="object"&&!Array.isArray(e)&&"operator"in e)return Z(e,t,n,r,o);if(typeof e==="object"&&!Array.isArray(e)&&"$ref"in e){let s=an(e.$ref,t,n,r);return o?.report(o.path??[],s),s}if(Array.isArray(e))return e.map((s,i)=>F(s,t,n,r,W(o,i)));return o?.report(o.path??[],e),e}function bl(e,t,n,r){let o=(s)=>{if(!e.slice(s.length).includes("/"))return t;return an(e.slice(0,e.lastIndexOf("/")),t,n,r)};if(e.startsWith("#/state/"))return o("#/state/");if(e.startsWith("parent#/"))return o("parent#/");if(e.startsWith("$map/")||e.startsWith("$args/"))return e.split("/").length>2?an(e.slice(0,e.lastIndexOf("/")),t,n,r):void 0;return}function an(e,t,n,r){if(e==="$reduce/acc")return r?.acc;if(e.startsWith("$reduce/"))return r?.acc;if(e.startsWith("$args/")){let o=e.slice(6).split("/"),s=r?.args?.[o[0]];return o.length>1?Re(s,o.slice(1).join("/")):s}if(e.startsWith("event#/")){let o=e.slice(7);return Re(n,o)}if(e.startsWith("$map/")){let o=e.split("/"),[,s]=o,i,a=dr(t);if(s==="item")i=r?.item??a?.item??t["$map/item"];else if(s==="index")i=r?.index??a?.index??t["$map/index"];else i=a?.[s]??t[`$map/${s}`];return o.length>2?Re(i,o.slice(2).join("/")):i}if(e.startsWith("#/state/"))return ce(t,e.slice(8));if(e.startsWith("parent#/"))return ce(t,e.slice(8));if(e.startsWith("window#/"))return Re(globalThis.window,e.slice(8));if(e.startsWith("document#/"))return Re(globalThis.document,e.slice(10));return ce(t,e)??null}function wl(e,t,n,r){if(e.startsWith("$map/")){let o=e.split("/"),[,s]=o,i,a=dr(t);if(s==="item")i=r?.item??a?.item??t["$map/item"];else if(s==="index")i=r?.index??a?.index??t["$map/index"];else i=a?.[s]??t[`$map/${s}`];if(o.length>2){let c=o.slice(2),l=c.pop(),u=c.length>0?Re(i,c.join("/")):i;return{key:l,obj:u}}return{key:s==="item"?"$map/item":"$map/index",obj:dr(t)??t}}if(e.startsWith("#/state/")){let o=e.slice(8);if(o.indexOf("/")===-1)return{key:o,obj:t};let i=fr(o),a=i.pop(),c=t;for(let l of i)c=c[l];return{key:a,obj:c}}return{key:e,obj:t}}function Z(e,t,n,r,o){let s=El(e,t,n,r,o);return o?.report(o.path??[],s),s}function El(e,t,n,r,o){let{operator:s,target:i,value:a,initial:c}=e;if(!pl.has(s))throw Error(`$expression: unknown operator "${s}"`);if(cs.has(s)&&!("value"in e)){let l=F(i,t,n,r,W(o,"target"));if(s==="!")return!l;if(s==="-")return-l}if(s==="call"){let l=i?.$ref;if(typeof l!=="string")throw TypeError("$expression: call target must be a $ref pointer");let u=(r?.callDepth??0)+1;if(u>as)throw Error(`$expression: call depth exceeded (${as})`);let f=Array.isArray(a)?a.map((m,w)=>F(m,t,n,r,W(o,["value",w]))):[];if(l.startsWith("window#/")){if(!xl(l))throw Error(`$expression: "${l}" is not a blessed pure global`);let m=l.slice(8),w=hl[m];if(w)return w(...gl(m,f,t));let b=Re(globalThis.window,m),g=m.lastIndexOf("/"),y=g===-1?globalThis.window:Re(globalThis.window,m.slice(0,g));return b.apply(y,f)}let d=an(l,t,n,r);if(typeof d==="function")return d.apply(bl(l,t,n,r),f);if(d&&typeof d==="object"&&"$expression"in d){let m=d,w={};for(let[b,g]of(m.parameters??[]).entries()){let y=typeof g==="string"?g:g?.name??"";if(!y)continue;w[y]=f[b]===void 0&&typeof g==="object"&&g!==null&&"default"in g?g.default:f[b]}return Z(m.$expression,t,n,{args:w,callDepth:u})}throw TypeError(`$expression: call target "${l}" is not callable`)}if(ds.has(s)){if(s==="?:"){let m=F(i,t,n,r,W(o,"target"));if(o){let w=F(a,t,n,r,W(o,"value")),b=F(c,t,n,r,W(o,"initial"));return m?w:b}return m?F(a,t,n,r):F(c,t,n,r)}let l=F(i,t,n,r,W(o,"target")),u=String(l),f=e.cases??{},d=Object.hasOwn(f,u);if(o){let m;for(let[b,g]of Object.entries(f)){let y=F(g,t,n,r,W(o,["cases",b]));if(b===u)m=y}let w=F(e.default,t,n,r,W(o,"default"));return d?m:w}return d?F(f[u],t,n,r):F(e.default,t,n,r)}if(us.has(s)){let l=F(i,t,n,r,W(o,"target")),u=F(a,t,n,r,W(o,"value"));switch(s){case"+":return l+u;case"-":return l-u;case"*":return l*u;case"/":return l/u;case"%":return l%u;case"===":return l===u;case"!==":return l!==u;case"<":return l<u;case"<=":return l<=u;case">":return l>u;case">=":return l>=u;case"&&":return l&&u;case"||":return l||u;case"??":return l??u;default:break}}if(fl.has(s)){let l=F(a,t,n,r,W(o,"value")),{obj:u,key:f}=wl(i.$ref,t,n,r);switch(s){case"=":{u[f]=l;break}case"+=":{let d=u[f];u[f]=d+l;break}case"-=":{let d=u[f];u[f]=d-l;break}case"*=":{let d=u[f];u[f]=d*l;break}case"/=":{let d=u[f];u[f]=d/l;break}default:break}return}if(dl.has(s)){let l=F(i,t,n,r,W(o,"target"));switch(s){case"push":return l.push(F(a,t,n,r,W(o,"value")));case"unshift":return l.unshift(F(a,t,n,r,W(o,"value")));case"pop":return l.pop();case"shift":return l.shift();case"splice":{let u=F(a,t,n,r,W(o,"value"));return l.splice(...u)}default:break}}if(ps.has(s)){let l=F(i,t,n,r,W(o,"target")),u=a===void 0?[]:Array.isArray(a)?F(a,t,n,r,W(o,"value")):[F(a,t,n,r,W(o,"value"))],f=l?.[s];if(typeof f!=="function")return;return f.apply(l,u)}if(fs.has(s)){let l=F(i,t,n,r,W(o,"target"));if(s==="reduce"){let u=F(c,t,n,r,W(o,"initial"));for(let[f,d]of l.entries())u=Z(a,t,n,{acc:u,index:f,item:d},f===0?W(o,"value"):void 0);return u}if(s==="map")return l.map((u,f)=>Z(a,t,n,{...r,index:f,item:u},f===0?W(o,"value"):void 0));if(s==="filter")return l.filter((u,f)=>Z(a,t,n,{...r,index:f,item:u},f===0?W(o,"value"):void 0))}return}function Re(e,t){return ce(e,t)}function Le(e,t,n,r){return F(e,t,n,r)}function ln(e){let t=e.replaceAll("\\","/");return t.length>1&&t.endsWith("/")?t.slice(0,-1):t}function hs(e){let t=ln(e);return t.startsWith("/")?t:`/${t}`}function gs(e,t){return[...e].toSorted((n,r)=>r[t].length-n[t].length)}function vl(e,t){return e===t||e.startsWith(`${t}/`)}function xs(e,t){let n=ln(t);for(let r of gs(e,"dir")){let o=ln(r.dir);if(!vl(n,o)||n===o)continue;let i=n.slice(o.length+1).split("/").map((a)=>encodeURIComponent(a)).join("/");return`${hs(r.urlPrefix)}/${i}`}return null}function Sl(e,t){let n=t.split("#")[0].split("?")[0];if(!n.startsWith("/"))return null;let r;try{r=decodeURIComponent(n)}catch{return null}if(/%2e|%2f/i.test(r))return null;for(let o of gs(e,"urlPrefix")){let s=hs(o.urlPrefix);if(!r.startsWith(`${s}/`))continue;let a=r.slice(s.length+1).split("/");if(a.some((c)=>c===""||c==="."||c===".."))return null;return`${ln(o.dir)}/${a.join("/")}`}return null}var jf=String.raw`"'\s<>()\\`;var kl="public";function Tt(e){let t=e.search(/[#?]/);return t===-1?{path:e,suffix:""}:{path:e.slice(0,t),suffix:e.slice(t)}}function pr(e){return e===""||e.startsWith("/")||e.startsWith("#")||e.includes("${")||/^[a-z][\w+.-]*:/i.test(e)}function mr(e){return e.replaceAll("\\","/").replace(/^\.\//,"").replace(/^\/+/,"").replace(/\/+$/,"")}function hr(e,t){let r=(e===""||e==="."?[]:mr(e).split("/")).filter((o)=>o!==""&&o!==".");for(let o of t.replaceAll("\\","/").split("/")){if(o===""||o===".")continue;if(o===".."){if(r.length===0)return null;r.pop();continue}r.push(o)}return r.join("/")}function Tl(e,t,n){let{path:r}=Tt(e);if(!r.startsWith("/"))return[];let o;try{o=decodeURIComponent(r)}catch{return[]}if(/%2e|%2f/i.test(o))return[];let s=o.replace(/^\/+/,"");if(s===""||s.split("/").some((a)=>a==="."||a===".."))return[];let i=[];for(let a of n){if(a==="mounts"){let c=Sl(t,r);if(c!==null&&!c.startsWith("/")&&!/^[A-Za-z]:/.test(c))i.push(mr(c));continue}i.push(a==="root"?s:`${kl}/${s}`)}return[...new Set(i)]}function ys(e,t,n,r){let{path:o}=Tt(e);if(o==="")return null;if(pr(e))return o.startsWith("/")?Tl(o,n,r)[0]??null:null;if(o.endsWith("/"))return null;let s;try{s=decodeURIComponent(o)}catch{return null}let i=hr(t,s);if(i===null||i===""||i===mr(t))return null;return i}function bs(e){return e.split("/").map((t)=>encodeURIComponent(t)).join("/")}function ws(e){let t=[],n=0;while(n<e.length){while(n<e.length&&(/\s/.test(e[n])||e[n]===","))n+=1;if(n>=e.length)break;let r=n;while(n<e.length&&!/\s/.test(e[n]))n+=1;let o=e.slice(r,n);if(o.endsWith(",")){t.push({descriptor:"",url:o.replace(/,+$/,"")});continue}while(n<e.length&&/\s/.test(e[n]))n+=1;let s=n;while(n<e.length&&e[n]!==",")n+=1;let i=e.slice(s,n).trim();if(n+=1,o=o.replace(/,+$/,""),o!=="")t.push({descriptor:i,url:o})}return t}function Es(e){return e.map(({url:t,descriptor:n})=>n?`${t} ${n}`:t).join(", ")}function Al(e){if("operator"in e)return"expression";if("if"in e)return"if";if("$switch"in e)return"switch";if("stopPropagation"in e)return"stopPropagation";if("preventDefault"in e)return"preventDefault";return"dispatch"}async function Ye(e,t,n,r={}){let o=r.args?{args:r.args}:void 0;for(let s of e)switch(Al(s)){case"expression":{let i=Z(s,t,n,o);if(i&&typeof i.then==="function")await i;break}case"if":{let i=s,a=Le(i.if,t,n,o)?i.then:i.else;if(Array.isArray(a))await Ye(a,t,n,r);break}case"switch":{let i=s,a=String(Le(i.$switch,t,n,o)),c=i.cases??{},l=Object.hasOwn(c,a)?c[a]:i.default;if(Array.isArray(l))await Ye(l,t,n,r);break}case"dispatch":{let i=s,a=typeof r.target==="function"?r.target():r.target,c=n?.currentTarget??a;if(!c)break;let l={};if("detail"in i)l.detail=Le(i.detail,t,n,o);if(i.bubbles!==void 0)l.bubbles=i.bubbles;if(i.composed!==void 0)l.composed=i.composed;c.dispatchEvent(new CustomEvent(i.dispatchEvent,l));break}case"stopPropagation":{n?.stopPropagation();break}case"preventDefault":{n?.preventDefault();break}default:break}}function vs(e,t){for(let n of e.split(";")){let r=n.indexOf("=");if(r===-1)continue;if(n.slice(0,r).trim()===t)return n.slice(r+1)}return null}function Ss(e,t,n){let r=e.startsWith("__Host-"),o=[`${e}=${encodeURIComponent(JSON.stringify(t))}`];if(n.maxAge!==void 0)o.push(`Max-Age=${n.maxAge}`);let s=r?"/":n.path;if(s)o.push(`Path=${s}`);if(n.domain&&!r)o.push(`Domain=${n.domain}`);let{sameSite:i}=n;if(n.secure===!0||r||e.startsWith("__Secure-")||i?.toLowerCase()==="none")o.push("Secure");if(i)o.push(`SameSite=${i}`);return o.join("; ")}var gr=new Map;async function Sr(e,t){if(typeof e!=="string")return e;let n=t?.resolver?.(e);if(n)return n;if(gr.has(e))return gr.get(e);let r=fetch(e).then(async(o)=>{if(!o.ok)throw Error(`Jx: failed to fetch ${e} (${o.status})`);if((o.headers?.get("Content-Type")??"").includes("text/html"))throw Error(`Jx: ${e} returned HTML, not a document — the host answered a missing file with its `+"app shell (a single-page fallback), so this path is not served.");return await o.json()});return gr.set(e,r),r}var Cl=new Set(["type","properties","items","enum","minimum","maximum","minLength","maxLength","pattern","required","examples"]),Ls={skip:!1};function Is(e){Ls.skip=e}var Js={skip:!1};function js(e){Js.skip=e}var yr=null;function Hs(e){yr=e||null}function Fs(e){return yr?`${e}?token=${encodeURIComponent(yr)}`:e}function Ws(e){let t=Ge(!0);return t.run(()=>{z(e)}),()=>t.stop()}function gn(e){let t=Ge(!0);try{return{result:t.run(e),stop:()=>t.stop()}}catch(n){throw t.stop(),n}}var Bs=!1;function Ks(e){Bs=e}var Pl=/(-?\d*\.?\d+)(?:s|l|d)?v(h|w|min|max|i|b)\b/gi,Rl={b:"cqb",h:"cqh",i:"cqi",max:"cqmax",min:"cqmin",w:"cqw"};function $l(e){if(!Bs||!e.includes("v"))return e;return e.replace(Pl,(t,n,r)=>`${n}${Rl[r.toLowerCase()]??`cq${r}`}`)}var Vs=!1;function Us(e){Vs=e}var kr=!1;function qs(e){kr=e}var Tr=!1;function zs(e){Tr=e}var un=!1;function br(e){return un||e.dataset.jxPath!==void 0}function Nl(e,t){if(Vs&&t==="href"&&(e.tagName==="A"||e.tagName==="AREA"))return"data-jx-href";if(kr&&t==="popover"&&br(e))return"data-jx-popover";if(Tr&&br(e)){if(t==="commandfor")return"data-jx-commandfor";if(t==="inert")return"data-jx-inert";if(t==="open"&&e.tagName==="DIALOG")return"data-jx-open"}return t}var Ze=null;function xn(e){Ze=e}var Ml=new Set(["src","poster","data"]),_l=new Set(["srcset","imagesrcset"]),Ol=new Set(["LINK"]);function Dl(e,t){return Ml.has(t)||t==="href"&&Ol.has(e)}function Ar(e,t,n){if(!Ze||n==="")return n;let r=t.toLowerCase();if(_l.has(r)){let o=ws(n),s=!1,i=o.map((a)=>{let c=Ze?.(a.url,r)??null;if(c===null||c===a.url)return a;return s=!0,{descriptor:a.descriptor,url:c}});return s?Es(i):n}if(!Dl(e,r))return n;return Ze(n,r)??n}var Ll=/\burl\(\s*(?<q>["']?)(?<u>[^"')]*)\k<q>\s*\)/g;function Il(e){if(!Ze||!e.includes("url("))return e;return e.replaceAll(Ll,(t,n,r)=>{let o=r===""?null:Ze?.(r,"url()")??null;return o===null?t:`url(${n}${o}${n})`})}function fn(e){return $l(Il(e))}var Gs=!1;function Ys(e){Gs=e}var Jl=/^\s*\$\{\s*state\.(\w+)\s*\}\s*$/;function jl(e,t,n){if(!Gs||e!=="textContent")return null;let r=null;if(V(t)){if(!t.$ref.startsWith("#/state/"))return null;let s=t.$ref.slice(8);r=s&&!s.includes("/")?s:null}else if(typeof t==="string")r=Jl.exec(t)?.[1]??null;if(!r)return null;let o=j(n)[r];if(Ae(o)||typeof o==="function")return null;if(typeof o==="object"&&o!==null)return null;return r}async function yn(e,t={},n=location.href,r){let o=()=>r?.root??null,s={},i=e.state??{},a=yt(t);for(let f of Object.keys(t))if(a&&!(f in i))Object.defineProperty(s,f,{configurable:!0,enumerable:!0,get:()=>t[f],set:(d)=>{t[f]=d}});else s[f]=t[f];let c=e.imports??{};for(let[,f]of Object.entries(i))if(Fn(f)&&!f.$src){let d=c[f.$prototype];if(d){if(!d.endsWith(".class.json")){console.warn(`Jx: import "${f.$prototype}" must map to a .class.json path, got "${d}"`);continue}f.$src=d}}for(let[f,d]of Object.entries(i)){if(typeof d==="string"){if(!d.includes("${"))s[f]=d;continue}if(typeof d==="number"||typeof d==="boolean"||d===null){s[f]=d;continue}if(Array.isArray(d)){s[f]=d;continue}if(typeof d==="object"){if(d.$prototype)continue;if(Ke(d))continue;if(Wn(d))continue;if("default"in d){s[f]=d.default;continue}if(Hl(d))continue;s[f]=d}}let l=rn(s);for(let[f,d]of Object.entries(i))if(typeof d==="string"&&d.includes("${"))l[f]=bt(()=>ve(d,l));for(let[f,d]of Object.entries(i))if(Ke(d)){let m=d.$expression;if(Co(d)){let w=d.parameters;l[f]=(...b)=>{let g={};for(let[y,S]of w.entries()){let A=typeof S==="string"?S:S?.name??"";if(!A)continue;g[A]=b[y]===void 0&&typeof S==="object"&&S!==null&&"default"in S?S.default:b[y]}return Z(m,l,null,{args:g})}}else if(ms(m.operator)){let w=(b,g)=>Z(m,b,g);l[f]=w}else l[f]=bt(()=>Z(m,l,null))}for(let[f,d]of Object.entries(i))if(Hn(d)){let{body:m}=d;if(Array.isArray(d.parameters)&&d.parameters.length>0){let w=d.parameters;l[f]=(...b)=>{let g={};for(let[y,S]of w.entries()){let A=typeof S==="string"?S:S?.name??"";if(!A)continue;g[A]=b[y]===void 0&&typeof S==="object"&&S!==null&&"default"in S?S.default:b[y]}return Ye(m,l,null,{args:g,target:o})}}else{let w=(b,g)=>{Ye(m,b,g??null,{target:o})};l[f]=w}}else if(ft(d))l[f]=await Bl(d,l,f,n);for(let[f,d]of Object.entries(i))if(Fn(d))l[f]=await tc(d,l,f,n,r);if(!(r?.skipServerFunctions??Ls.skip)){for(let[f,d]of Object.entries(i))if(Wn(d))l[f]=await ic(d,l,f,n)}let u=r?.media??si;if(e.$media)l.$media=e.$media;else if(!l.$media&&Object.keys(u).length>0)l.$media=u;return l}function Hl(e){for(let t of Object.keys(e))if(Cl.has(t))return!0;return!1}function ve(e,t){let n=t?.$map;return Function("state","$map","item","index",`return \`${e}\``)(t,n,n?.item,n?.index)}function Fl(e){if(!e.startsWith("${")||!e.endsWith("}"))return!1;let t=0;for(let n=1;n<e.length;n+=1){let r=e[n];if(r==="{")t+=1;else if(r==="}"){if(t-=1,t===0)return n===e.length-1}}return!1}function Wl(e,t){if(!Fl(e))return ve(e,t);let n=t?.$map;return Function("state","$map","item","index",`return (${e.slice(2,-1)})`)(t,n,n?.item,n?.index)}var Ie=new Map,Xe=new Map;function Xs(e,t){if(typeof t==="function"){Ie.delete(e),Xe.set(e,t);return}Xe.delete(e),Ie.set(e,t)}function Cr(e){let t=Ie.get(e);if(t)return t;let n=Xe.get(e);if(!n)return;if(typeof n!=="function")return n;let r=Promise.resolve(n()).then((o)=>(Ie.set(e,o),Xe.delete(e),o),(o)=>{throw Xe.set(e,n),o});return Xe.set(e,r),r}async function Bl(e,t,n,r){if(e.body&&e.$src)throw Error(`Jx: '${n}' declares both body and $src — these are mutually exclusive`);if(!e.body&&!e.$src){let a=wr(e),c=Function(...a,"");return Object.defineProperty(c,"name",{configurable:!0,value:e.name??n}),c}let o;if(typeof e.body==="string"){let a=wr(e);o=Function(...a,e.body),Object.defineProperty(o,"name",{configurable:!0,value:e.name??n})}else{let a=e.$src;if(!a)throw Error(`Jx: '${n}' has neither body nor $src`);let c=e.$export??n,l,u=Cr(a);if(u instanceof Promise)l=await u;else if(u)l=u;else{if(r){let d=new URL(a,r).href;try{l=await import(d)}catch{l=await import(a)}}else l=await import(a);Ie.set(a,l)}let f=l[c]??l.default?.[c];if(typeof f!=="function")throw TypeError(`Jx: export "${c}" not found or not a function in "${a}"`);o=f}let s=(e.parameters??e.arguments??[]).length>0,i=!1;if(!s){if(typeof e.body==="string")i=Bn(e.body);else if(o)i=o.length<=1&&Bn(o.toString())}if(i)return bt(()=>o(t));return o}function wr(e){let t=e.parameters?Ro(e.parameters):e.arguments??[];return t.length>0&&t[0]==="state"?t:["state",...t]}var Pt=new Set(["$schema","$id","$defs","state","$ref","$props","$elements","$title","$description","$switch","$prototype","$src","$export","$media","$map","timing","default","description","body","parameters","arguments","name","tagName","children","style","attributes","items","map","filter","sort","cases","observedAttributes"]),ks=new Set,Kl="http://www.w3.org/2000/svg",Vl="http://www.w3.org/1998/Math/MathML";function Ul(e,t){if(e==="svg")return Kl;if(e==="math")return Vl;return t??null}function ue(e,t,n){let r=n?._path??[];if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){let f=document.createTextNode(String(e));if(typeof e==="string"&&ie(e))z(()=>{f.textContent=ve(e,t)});return f}let o=t;for(let[f,d]of Object.entries(e))if(f.startsWith("$")&&!Pt.has(f)){if(o===t)o=Object.create(t);o[f]=V(d)?G(d.$ref,t):d}if("$ref"in e&&!e.tagName){let f=String(e.$ref??"");if(!ks.has(f))ks.add(f),console.warn(`Jx: a $ref child ("${f}") is not a supported component instance; register the `+"component in $elements and use its custom-element tag instead (spec §13).")}let s=$r(e.tagName,o),i=s.includes("-")&&customElements.get(s);if(e.$props&&i)return Ds(e,o,n,r);if(e.$props){if(s.includes("-"))return Ds(e,o,n,r);let{$props:f,...d}=e;return ue(d,uc(e,o),n)}if(e.$switch)return ec(e,o,n);let a=Ul(s,n?._ns),c=s==="foreignObject"?null:a,l=a?document.createElementNS(a,s):document.createElement(s);if(n?.onNodeCreated)n.onNodeCreated(l,r,e,o);if(Pr(l,e,o),e.style&&s.includes("-"))Rr.set(l,e.style);bn(l,e.style??{},o.$media??{},o),En(l,e.attributes??{},o);let u=e.children;if(Bt(u)){let f=n||c?{...n,_ns:c,_path:[...r,"children"]}:void 0;Er(l,u,o,f)}else if(Array.isArray(u))for(let f=0;f<u.length;f++){let d=u[f],m=n||c?{...n,_ns:c,_path:[...r,"children",f]}:void 0;if(Bt(d))Er(l,d,o,m);else l.append(ue(d,o,m))}return l}function Pr(e,t,n){for(let[r,o]of Object.entries(t)){if(Pt.has(r))continue;if(r.startsWith("$"))continue;if(r.startsWith("on")&&Zs(e,r,o,n))continue;Qs(e,r,o,n)}}function Zs(e,t,n,r){let o=t.slice(2),s=r;if(V(n)){let i=G(n.$ref,r);if(typeof i==="function"){let a=i;e.addEventListener(o,(c)=>a(s,c))}return!0}if(Hn(n)){let{body:i}=n;return e.addEventListener(o,(a)=>{Ye(i,s,a)}),!0}if(ft(n)&&typeof n.body==="string"){let i=wr(n),a=Function(...i,n.body);return e.addEventListener(o,(c)=>a(s,c)),!0}if(Ke(n)){let i=n.$expression;return e.addEventListener(o,(a)=>Z(i,s,a)),!0}return!1}function ql(e,t,n){for(let[r,o]of Object.entries(t))if(r.startsWith("on")&&!Pt.has(r))Zs(e,r,o,n)}function Qs(e,t,n,r){let o=e,s=jl(t,n,r);if(s)e.dataset.jxBoundProp=s;let i=(c)=>typeof c==="string"?Ar(e.tagName,t,c):c,a=(c)=>{let l=e;if(t==="className"&&!(l instanceof HTMLElement)){l.setAttribute("class",c==null?"":String(c));return}if(o[t]===c)return;o[t]=c};if(V(n)){let c=n;if(t==="id"){o[t]=G(c.$ref,r);return}z(()=>{a(i(G(c.$ref,r)))});return}if(ie(n)){z(()=>{a(i(ve(n,r)))});return}a(i(n))}function Ts(e,t){let n=[];return{detach:t,insert(r){let o=[];for(let i of r){let a=e.cssRules.length;try{e.insertRule(i,a)}catch{continue}let c=e.cssRules[a];if(c)o.push(c)}let s={rules:o,texts:r};return n.push(s),s},remove(r){let o=n.indexOf(r);if(o!==-1)n.splice(o,1);if(r.rules.length===0)return;let s=[...e.cssRules],i=r.rules.map((a)=>s.indexOf(a)).filter((a)=>a>=0).toSorted((a,c)=>c-a);for(let a of i)e.deleteRule(a);r.rules.length=0},replaceAll(r){n.length=0,n.push({rules:[],texts:r}),e.replaceSync(r.join(`
|
|
1
|
+
var So,jn,Wt,K=(e,t)=>{for(var[n,r,o]of So||[])for(var s=[e],i=globalThis,a=i.document,c,l,u,f,d;l=s.pop();)if(!jn[l]&&(u=r[l])){jn[l]=1;for(f=1;f<u.length;f++)s.push(o[u[f]]);if(!t&&l!==e&&(c=a&&a.head)){if(Wt===void 0)Wt=(f=a.querySelector("meta[property=csp-nonce]"))&&(f.nonce||f.getAttribute("nonce"))||"";if(d=a.createElement("link"),d.rel="modulepreload",d.crossOrigin="",Wt)d.nonce=Wt;d.href=new i.URL(u[0],n),c.appendChild(d)}}},Na=(e,t,n,r)=>{for(var o={},s=0;s<t.length;s++)o[t[s]]=n[s];(So||=[]).push([e,o,t]),jn||={},K(t[r],1)};Na(import.meta.url,["cch5s5d6","h19v1jfz","fd6g9xy3","spy3hc77","4d35zd64","8sjmfed3","fpezvnkt","qbh8akb1","gw7sq8rn","2mqby73c","8htra4er","n3v7gwas","pff8f3ze","8qh9a3bm","jwthg40w","2nnzqhrj","jqhna8zy","embq5ctg","1qmw7wqy","773hdzyj","mtm9fq5t","s8fkmnq8","37d07z9m","f7mqjwpm","haw7jkvz","z6qrytv3"],[["./iframe-entry.js"],["./chunks/tree-h19v1jfz.js"],["./chunks/tooltip-fd6g9xy3.js",23],["./chunks/textfield-spy3hc77.js"],["./chunks/toast-4d35zd64.js",24],["./chunks/toast-host-8sjmfed3.js",24],["./chunks/color-fpezvnkt.js",25],["./chunks/icons-qbh8akb1.js"],["./chunks/number-field-gw7sq8rn.js"],["./chunks/action-group-2mqby73c.js"],["./chunks/popover-8htra4er.js",23],["./chunks/select-n3v7gwas.js"],["./chunks/split-pff8f3ze.js"],["./chunks/swatch-group-8qh9a3bm.js"],["./chunks/tabs-jwthg40w.js"],["./chunks/toolbar-2nnzqhrj.js"],["./chunks/color-area-jqhna8zy.js",25],["./chunks/color-field-embq5ctg.js",25,23],["./chunks/color-slider-1qmw7wqy.js",25],["./chunks/combobox-773hdzyj.js",23],["./chunks/dialog-mtm9fq5t.js"],["./chunks/listbox-s8fkmnq8.js"],["./chunks/menu-37d07z9m.js",23],["./chunks/iframe-entry-f7mqjwpm.js"],["./chunks/iframe-entry-haw7jkvz.js"],["./chunks/iframe-entry-z6qrytv3.js"]],0);
|
|
2
|
+
function ko(e){let{target:t,source:n,targetOrigin:r,acceptOrigin:o,token:s}=e,i=new Set,a=(c)=>{if(o!=="*"&&c.origin!==o)return;let l=c.data;if(!l||typeof l!=="object"||l["jx:canvas"]!==s)return;for(let u of i)u(l.payload)};return n.addEventListener("message",a),{dispose(){i.clear(),n.removeEventListener("message",a)},onMessage(c){return i.add(c),()=>i.delete(c)},post(c){t.postMessage({["jx:canvas"]:s,payload:c},r)}}}function ne(e){return e.getBoundingClientRect()}function To(e){return e.getBoundingClientRect()}function Ao(e,t,n=document){return n.elementFromPoint(e,t)}function re(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function _e(e){return re(e)&&typeof e.$ref==="string"}function ft(e){return re(e)&&e.$prototype==="Function"}function Ke(e){return re(e)&&re(e.$expression)}function Co(e){return Ke(e)&&Array.isArray(e.parameters)&&e.parameters.length>0}function Hn(e){return ft(e)&&Array.isArray(e.body)}function Fn(e){return re(e)&&typeof e.$prototype==="string"&&e.$prototype!=="Function"}function Wn(e){return re(e)&&e.timing==="server"&&typeof e.$src==="string"&&typeof e.$export==="string"&&!e.$prototype}function Bt(e){return re(e)&&e.$prototype==="Array"}function ie(e){return typeof e==="string"&&e.includes("${")}function Bn(e){return/\breturn\b[^\S\n]*(?![;}\s]|$)/.test(e)}function Po(e){return _e(e)||ft(e)||Ke(e)}function Ro(e){if(!e)return[];return e.map((t)=>typeof t==="string"?t:t.name)}function Kn(e){if(!re(e)||!re(e.$expression))return!1;let t=e.$expression;if(t.operator==="?:")return typeof t.value==="string"&&typeof t.initial==="string";if(t.operator==="switch")return re(t.cases)&&Object.values(t.cases).every((n)=>typeof n==="string")&&typeof t.default==="string";return!1}function Ma(e){if(typeof e==="string")return[e];if(!Kn(e))return[];let t=e.$expression;if(t.operator==="?:")return[...new Set([t.value,t.initial])];return[...new Set([...Object.values(t.cases),t.default])]}function xe(e){return typeof e==="string"?e:Ma(e).join("|")}function Kt(e){return e.startsWith("#")}function Vn(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return(n)=>(n in t)}var Vt=Object.assign;var _a=Object.prototype.hasOwnProperty,Ut=(e,t)=>_a.call(e,t),Ve=Array.isArray,dt=(e)=>No(e)==="[object Map]";var $o=(e)=>typeof e==="function",Oa=(e)=>typeof e==="string",Ue=(e)=>typeof e==="symbol",qe=(e)=>e!==null&&typeof e==="object";var Da=Object.prototype.toString,No=(e)=>Da.call(e),Mo=(e)=>No(e).slice(8,-1);var qt=(e)=>Oa(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var zt=(e)=>{let t=Object.create(null);return(n)=>t[n]||(t[n]=e(n))},La=/-\w/g,yf=zt((e)=>e.replace(La,(t)=>t.slice(1).toUpperCase())),Ia=/\B([A-Z])/g,bf=zt((e)=>e.replace(Ia,"-$1").toLowerCase()),_o=zt((e)=>e.charAt(0).toUpperCase()+e.slice(1)),wf=zt((e)=>e?`on${_o(e)}`:""),ye=(e,t)=>!Object.is(e,t);var Ja="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Ef=Vn(Ja+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var q;class Lo{constructor(e=!1){if(this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&q)if(q.active)this.parent=q,this.index=(q.scopes||(q.scopes=[])).push(this)-1;else this._active=!1,this._warnOnRun=!1}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active){if(this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let r=this.scopes.slice();for(e=0,t=r.length;e<t;e++)r[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}}run(e){if(this._active){let t=q;try{return q=this,e()}finally{q=t}}}on(){if(++this._on===1)this.prevScope=q,q=this}off(){if(this._on>0&&--this._on===0){if(q===this)q=this.prevScope;else{let e=q;while(e){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();this.effects.length=0;for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let r=this.parent.scopes.pop();if(r&&r!==this)this.parent.scopes[this.index]=r,r.index=this.index}this.parent=void 0}}}function Ge(e){return new Lo(e)}function Zt(e,t=!1){if(q)q.cleanups.push(e)}var H;var Un=new WeakSet;class Xt{constructor(e){if(this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,q)if(q.active)q.effects.push(this);else this.flags&=-2}pause(){this.flags|=64}resume(){if(this.flags&64){if(this.flags&=-65,Un.has(this))Un.delete(this),this.trigger()}}notify(){if(this.flags&2&&!(this.flags&32))return;if(!(this.flags&8))Jo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Oo(this),jo(this);let e=H,t=ae;H=this,ae=!0;try{return this.fn()}finally{Ho(this),H=e,ae=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)nr(e);this.deps=this.depsTail=void 0,Oo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){if(this.flags&64)Un.add(this);else if(this.scheduler)this.scheduler();else this.runIfDirty()}runIfDirty(){if(Gn(this))this.run()}get dirty(){return Gn(this)}}var Io=0,mt,ht;function Jo(e,t=!1){if(e.flags|=8,t){e.next=ht,ht=e;return}e.next=mt,mt=e}function er(){Io++}function tr(){if(--Io>0)return;if(ht){let t=ht;ht=void 0;while(t){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;while(mt){let t=mt;mt=void 0;while(t){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){if(!e)e=r}t=n}}if(e)throw e}function jo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ho(e){let t,n=e.depsTail,r=n;while(r){let o=r.prevDep;if(r.version===-1){if(r===n)n=o;nr(r),ja(r)}else t=r;r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Gn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fo(t.dep.computed)||t.dep.version!==t.version))return!0;if(e._dirty)return!0;return!1}function Fo(e){if(e.flags&4&&!(e.flags&16))return;if(e.flags&=-17,e.globalVersion===gt)return;if(e.globalVersion=gt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gn(e)))return;e.flags|=2;let t=e.dep,n=H,r=ae;H=e,ae=!0;try{jo(e);let o=e.fn(e._value);if(t.version===0||ye(o,e._value))e.flags|=128,e._value=o,t.version++}catch(o){throw t.version++,o}finally{H=n,ae=r,Ho(e),e.flags&=-3}}function nr(e,t=!1){let{dep:n,prevSub:r,nextSub:o}=e;if(r)r.nextSub=o,e.prevSub=void 0;if(o)o.prevSub=r,e.nextSub=void 0;if(n.subs===e){if(n.subs=r,!r&&n.computed){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)nr(s,!0)}}if(!t&&!--n.sc&&n.map)n.map.delete(n.key)}function ja(e){let{prevDep:t,nextDep:n}=e;if(t)t.nextDep=n,e.prevDep=void 0;if(n)n.prevDep=t,e.nextDep=void 0}function z(e,t){if(e.effect instanceof Xt)e=e.effect.fn;let n=new Xt(e);if(t)Vt(n,t);try{n.run()}catch(o){throw n.stop(),o}let r=n.run.bind(n);return r.effect=n,r}var ae=!0,Wo=[];function Qt(){Wo.push(ae),ae=!1}function en(){let e=Wo.pop();ae=e===void 0?!0:e}function tn(e,t=!1){if(H instanceof Xt)H.cleanup=e}function Oo(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=H;H=void 0;try{t()}finally{H=n}}}var gt=0;class Bo{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!H||!ae||H===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==H){if(t=this.activeLink=new Bo(H,this),!H.deps)H.deps=H.depsTail=t;else t.prevDep=H.depsTail,H.depsTail.nextDep=t,H.depsTail=t;Ko(t)}else if(t.version===-1){if(t.version=this.version,t.nextDep){let n=t.nextDep;if(n.prevDep=t.prevDep,t.prevDep)t.prevDep.nextDep=n;if(t.prevDep=H.depsTail,t.nextDep=void 0,H.depsTail.nextDep=t,H.depsTail=t,H.deps===t)H.deps=n}}return t}trigger(e){this.version++,gt++,this.notify(e)}notify(e){er();try{for(let t=this.subs;t;t=t.prevSub)if(t.sub.notify())t.sub.dep.notify()}finally{tr()}}}function Ko(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ko(r)}let n=e.dep.subs;if(n!==e){if(e.prevSub=n,n)n.nextSub=e}e.dep.subs=e}}var Yn=new WeakMap,Oe=Symbol(""),Xn=Symbol(""),xt=Symbol("");function X(e,t,n){if(ae&&H){let r=Yn.get(e);if(!r)Yn.set(e,r=new Map);let o=r.get(n);if(!o)r.set(n,o=new nn),o.map=r,o.key=n;o.track()}}function Te(e,t,n,r,o,s){let i=Yn.get(e);if(!i){gt++;return}let a=(c)=>{if(c)c.trigger()};if(er(),t==="clear")i.forEach(a);else{let c=Ve(e),l=c&&qt(n);if(c&&n==="length"){let u=Number(r);i.forEach((f,d)=>{if(d==="length"||d===xt||!Ue(d)&&d>=u)a(f)})}else{if(n!==void 0||i.has(void 0))a(i.get(n));if(l)a(i.get(xt));switch(t){case"add":if(!c){if(a(i.get(Oe)),dt(e))a(i.get(Xn))}else if(l)a(i.get("length"));break;case"delete":if(!c){if(a(i.get(Oe)),dt(e))a(i.get(Xn))}break;case"set":if(dt(e))a(i.get(Oe));break}}}tr()}function ze(e){let t=j(e);if(t===e)return t;if(X(t,"iterate",xt),Ce(e))return t;if(!we(e))return t.map(me);return yt(e)?t.map((n)=>De(me(n))):t.map(De)}function rr(e){return X(e=j(e),"iterate",xt),e}function pe(e,t){if(we(e))return yt(e)?De(me(t)):De(t);return me(t)}var Ha={__proto__:null,[Symbol.iterator](){return qn(this,Symbol.iterator,(e)=>pe(this,e))},concat(...e){return ze(this).concat(...e.map((t)=>Ve(t)?ze(t):t))},entries(){return qn(this,"entries",(e)=>(e[1]=pe(this,e[1]),e))},every(e,t){return be(this,"every",e,t,void 0,arguments)},filter(e,t){return be(this,"filter",e,t,(n)=>n.map((r)=>pe(this,r)),arguments)},find(e,t){return be(this,"find",e,t,(n)=>pe(this,n),arguments)},findIndex(e,t){return be(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return be(this,"findLast",e,t,(n)=>pe(this,n),arguments)},findLastIndex(e,t){return be(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return be(this,"forEach",e,t,void 0,arguments)},includes(...e){return zn(this,"includes",e)},indexOf(...e){return zn(this,"indexOf",e)},join(e){return ze(this).join(e)},lastIndexOf(...e){return zn(this,"lastIndexOf",e)},map(e,t){return be(this,"map",e,t,void 0,arguments)},pop(){return pt(this,"pop")},push(...e){return pt(this,"push",e)},reduce(e,...t){return Do(this,"reduce",e,t)},reduceRight(e,...t){return Do(this,"reduceRight",e,t)},shift(){return pt(this,"shift")},some(e,t){return be(this,"some",e,t,void 0,arguments)},splice(...e){return pt(this,"splice",e)},toReversed(){return ze(this).toReversed()},toSorted(e){return ze(this).toSorted(e)},toSpliced(...e){return ze(this).toSpliced(...e)},unshift(...e){return pt(this,"unshift",e)},values(){return qn(this,"values",(e)=>pe(this,e))}};function qn(e,t,n){let r=rr(e),o=r[t]();if(r!==e&&!Ce(e))o._next=o.next,o.next=()=>{let s=o._next();if(!s.done)s.value=n(s.value);return s};return o}var Fa=Array.prototype;function be(e,t,n,r,o,s){let i=rr(e),a=i!==e&&!Ce(e),c=i[t];if(c!==Fa[t]){let f=c.apply(e,s);return a?me(f):f}let l=n;if(i!==e){if(a)l=function(f,d){return n.call(this,pe(e,f),d,e)};else if(n.length>2)l=function(f,d){return n.call(this,f,d,e)}}let u=c.call(i,l,r);return a&&o?o(u):u}function Do(e,t,n,r){let o=rr(e),s=o!==e&&!Ce(e),i=n,a=!1;if(o!==e){if(s)a=r.length===0,i=function(l,u,f){if(a)a=!1,l=pe(e,l);return n.call(this,l,pe(e,u),f,e)};else if(n.length>3)i=function(l,u,f){return n.call(this,l,u,f,e)}}let c=o[t](i,...r);return a?pe(e,c):c}function zn(e,t,n){let r=j(e);X(r,"iterate",xt);let o=r[t](...n);if((o===-1||o===!1)&&el(n[0]))return n[0]=j(n[0]),r[t](...n);return o}function pt(e,t,n=[]){Qt(),er();let r=j(e)[t].apply(e,n);return tr(),en(),r}var Wa=Vn("__proto__,__v_isRef,__isVue"),Vo=new Set(Object.getOwnPropertyNames(Symbol).filter((e)=>e!=="arguments"&&e!=="caller").map((e)=>Symbol[e]).filter(Ue));function Ba(e){if(!Ue(e))e=String(e);let t=j(this);return X(t,"has",e),t.hasOwnProperty(e)}class or{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t==="__v_skip")return e.__v_skip;let r=this._isReadonly,o=this._isShallow;if(t==="__v_isReactive")return!r;else if(t==="__v_isReadonly")return r;else if(t==="__v_isShallow")return o;else if(t==="__v_raw"){if(n===(r?o?Za:Go:o?zo:qo).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n))return e;return}let s=Ve(e);if(!r){let a;if(s&&(a=Ha[t]))return a;if(t==="hasOwnProperty")return Ba}let i=Reflect.get(e,t,Ae(e)?e:n);if(Ue(t)?Vo.has(t):Wa(t))return i;if(!r)X(e,"get",t);if(o)return i;if(Ae(i)){let a=s&&qt(t)?i:i.value;return r&&qe(a)?Qn(a):a}if(qe(i))return r?Qn(i):rn(i);return i}}class sr extends or{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t],s=Ve(e)&&qt(t);if(!this._isShallow){let c=we(o);if(!Ce(n)&&!we(n))o=j(o),n=j(n);if(!s&&Ae(o)&&!Ae(n))if(c)return!0;else return o.value=n,!0}let i=s?Number(t)<e.length:Ut(e,t),a=Reflect.set(e,t,n,Ae(e)?e:r);if(e===j(r)&&a){if(!i)Te(e,"add",t,n);else if(ye(n,o))Te(e,"set",t,n,o)}return a}deleteProperty(e,t){let n=Ut(e,t),r=e[t],o=Reflect.deleteProperty(e,t);if(o&&n)Te(e,"delete",t,void 0,r);return o}has(e,t){let n=Reflect.has(e,t);if(!Ue(t)||!Vo.has(t))X(e,"has",t);return n}ownKeys(e){return X(e,"iterate",Ve(e)?"length":Oe),Reflect.ownKeys(e)}}class Uo extends or{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}var Ka=new sr,Va=new Uo,Ua=new sr(!0);var Zn=(e)=>e,Gt=(e)=>Reflect.getPrototypeOf(e);function qa(e,t,n){return function(...r){let o=this.__v_raw,s=j(o),i=dt(s),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,l=o[e](...r),u=n?Zn:t?De:me;return!t&&X(s,"iterate",c?Xn:Oe),Vt(Object.create(l),{next(){let{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function Yt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function za(e,t){let n={get(o){let s=this.__v_raw,i=j(s),a=j(o);if(!e){if(ye(o,a))X(i,"get",o);X(i,"get",a)}let{has:c}=Gt(i),l=t?Zn:e?De:me;if(c.call(i,o))return l(s.get(o));else if(c.call(i,a))return l(s.get(a));else if(s!==i)s.get(o)},get size(){let o=this.__v_raw;return!e&&X(j(o),"iterate",Oe),o.size},has(o){let s=this.__v_raw,i=j(s),a=j(o);if(!e){if(ye(o,a))X(i,"has",o);X(i,"has",a)}return o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){let i=this,a=i.__v_raw,c=j(a),l=t?Zn:e?De:me;return!e&&X(c,"iterate",Oe),a.forEach((u,f)=>o.call(s,l(u),l(f),i))}};return Vt(n,e?{add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear")}:{add(o){let s=j(this),i=Gt(s),a=j(o),c=!t&&!Ce(o)&&!we(o)?a:o;if(!(i.has.call(s,c)||ye(o,c)&&i.has.call(s,o)||ye(a,c)&&i.has.call(s,a)))s.add(c),Te(s,"add",c,c);return this},set(o,s){if(!t&&!Ce(s)&&!we(s))s=j(s);let i=j(this),{has:a,get:c}=Gt(i),l=a.call(i,o);if(!l)o=j(o),l=a.call(i,o);let u=c.call(i,o);if(i.set(o,s),!l)Te(i,"add",o,s);else if(ye(s,u))Te(i,"set",o,s,u);return this},delete(o){let s=j(this),{has:i,get:a}=Gt(s),c=i.call(s,o);if(!c)o=j(o),c=i.call(s,o);let l=a?a.call(s,o):void 0,u=s.delete(o);if(c)Te(s,"delete",o,void 0,l);return u},clear(){let o=j(this),s=o.size!==0,i=void 0,a=o.clear();if(s)Te(o,"clear",void 0,void 0,void 0);return a}}),["keys","values","entries",Symbol.iterator].forEach((o)=>{n[o]=qa(o,e,t)}),n}function ir(e,t){let n=za(e,t);return(r,o,s)=>{if(o==="__v_isReactive")return!e;else if(o==="__v_isReadonly")return e;else if(o==="__v_raw")return r;return Reflect.get(Ut(n,o)&&o in r?n:r,o,s)}}var Ga={get:ir(!1,!1)},Ya={get:ir(!1,!0)},Xa={get:ir(!0,!1)};var qo=new WeakMap,zo=new WeakMap,Go=new WeakMap,Za=new WeakMap;function Qa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rn(e){if(we(e))return e;return ar(e,!1,Ka,Ga,qo)}function Yo(e){return ar(e,!1,Ua,Ya,zo)}function Qn(e){return ar(e,!0,Va,Xa,Go)}function ar(e,t,n,r,o){if(!qe(e))return e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;let s=o.get(e);if(s)return s;let i=Qa(Mo(e));if(i===0)return e;let a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function yt(e){if(we(e))return yt(e.__v_raw);return!!(e&&e.__v_isReactive)}function we(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function el(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}var me=(e)=>qe(e)?rn(e):e,De=(e)=>qe(e)?Qn(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function le(e){return tl(e,!1)}function tl(e,t){if(Ae(e))return e;return new Xo(e,t)}class Xo{constructor(e,t){this.dep=new nn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:me(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Ce(e)||we(e);if(e=n?e:j(e),ye(e,t))this._rawValue=e,this._value=n?e:me(e),this.dep.trigger()}}class Zo{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new nn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&H!==this)return Jo(this,!0),!0}get value(){let e=this.dep.track();if(Fo(this),e)e.version=this.dep.version;return this._value}set value(e){if(this.setter)this.setter(e)}}function bt(e,t,n=!1){let r,o;if($o(e))r=e;else r=e.get,o=e.set;return new Zo(r,o,n)}function on(e){return e.replaceAll(/[A-Z]/g,(t)=>`-${t.toLowerCase()}`)}var nl=new Set(["all","print","screen","speech"]);function Qo(e,t){if(e.startsWith("@--"))return t[e.slice(1)]??e.slice(1);if(e.startsWith("@(")){let n=e.slice(2,-1).trim();return nl.has(n.toLowerCase())?n:e.slice(1)}return null}function wt(e){return e.startsWith("@position-try")||e.startsWith("@property")||e.startsWith("@font-face")||e.startsWith("@counter-style")}function vt(e){return e.startsWith("@keyframes")}function es(e,t){let n=[];for(let r of lr(e))for(let o of lr(t))n.push(rl(r,o));return n.join(", ")}function rl(e,t){if(t.startsWith("&"))return t.replaceAll("&",e);if(t.startsWith("[")||t.startsWith(":")||t.startsWith("."))return`${e}${t}`;return`${e} ${t}`}function lr(e){let t=[],n=0,r=null,o=0;for(let i=0;i<e.length;i+=1){let a=e[i];if(r){if(a==="\\")i+=1;else if(a===r)r=null;continue}if(a==='"'||a==="'")r=a;else if(a==="("||a==="[")n+=1;else if(a===")"||a==="]")n=Math.max(0,n-1);else if(a===","&&n===0)t.push(e.slice(o,i)),o=i+1}t.push(e.slice(o));let s=t.map((i)=>i.trim()).filter((i)=>i!=="");return s.length>0?s:[e]}var ol=/[\s>+~,()]/,sl=/^[A-Za-z_\u{00A0}-\u{FFFF}][\w\u{00A0}-\u{FFFF}-]*/u;function il(e,t){let n="",r=0;for(;;){let o=e.indexOf("[open]",r);if(o===-1)return n+e.slice(r);let s=o;while(s>0&&!ol.test(e[s-1]))s-=1;let i=sl.exec(e.slice(s,o))?.[0]?.toLowerCase(),a=i===void 0?t.dialog===!0:i==="dialog";n+=e.slice(r,o)+(a?"[data-jx-dialog-open]":"[open]"),r=o+6}}function cr(e,t={}){if(e.includes("::backdrop"))return null;let n=e.replaceAll(":popover-open","[data-jx-popover-open]").replaceAll(":modal","[data-jx-dialog-open]").replaceAll("[inert]","[data-jx-inert]");return il(n,t)}var Pe="data-color-scheme";function sn(e){return/^\(\s*prefers-color-scheme\s*:\s*(light|dark)\s*\)$/.exec(e.trim())?.[1]??null}function ts(e,t){if(e===":root"||e==="html")return{auto:`${e}:where(:not([${Pe}]))`,forced:`${e}:where([${Pe}="${t}"])`};return{auto:`:where(:root:not([${Pe}])) ${e}`,forced:`:where(:root[${Pe}="${t}"]) ${e}`}}function St(e){return e.startsWith(":")||e.startsWith(".")||e.startsWith("&")||e.startsWith("[")}function ur(e){return e.startsWith("--")?e:on(e)}function Et(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function ns(e,t,n){let r=n.map(([s,i])=>`${s}: ${i}`).join("; "),o=t===null?r:`${t} { ${r} }`;for(let s=e.length-1;s>=0;s-=1)o=`${e[s]} { ${o} }`;return o}function al(e,t,n){let r=n.map(({selector:s,declarations:i})=>`${s} { ${i.map(([a,c])=>`${a}: ${c}`).join("; ")} }`).join(" "),o=`@keyframes ${t} { ${r} }`;for(let s=e.length-1;s>=0;s-=1)o=`${e[s]} { ${o} }`;return o}function ll(e){let t=Object.keys(e).filter((r)=>vt(r));if(t.length===0)return e;let n={...e};for(let r of t)delete n[r];return n}function cl(e){let t=e.startsWith("&")?e.slice(1):e;return t===""||t.startsWith(":")||t.startsWith(".")||t.startsWith("[")}function kt(e,t={}){let{scope:n=null,mediaQueries:r={},transposeValue:o=(g)=>g,transposeSelector:s=(g)=>g,resolveValue:i}=t,a=[],c=(g)=>g!==null&&typeof g==="object"&&!Array.isArray(g)&&!_e(g),l=(g,y)=>{if(c(y))return[y];if(!wt(g)||!Array.isArray(y)||y.length===0)return[];return y.every((S)=>c(S))?y:[]},u=(g,y,S,A)=>{if(y===void 0||y===null)return null;if(_e(y))return S?i?.(g,y,A)??null:null;if(typeof y==="object")return null;let C=String(y);if(ie(C))return S?i?.(g,C,A)??null:null;return o(C)},f=(g,y,S=!0,A="self")=>{let C=[];for(let[T,x]of Object.entries(g)){if(l(T,x).length>0)continue;if(y&&(T.startsWith("@")||St(T)))continue;if(T.startsWith("$"))continue;let v=u(T,x,S,A);if(v!==null)C.push([ur(T),v])}return C},d=(g,y,S,A,C)=>{if(S.length===0)return;let T=y;if(T!==null){let v=s(T);if(v===null)return;T=v}let x=ns(g,T,S);a.push({text:x,conditions:[...g],selector:T,declarations:S,target:A,key:Et(x),...typeof C==="string"&&C!==""?{description:C}:{}})},m=(g,y,S)=>{let A=g.slice(10).trim();if(A==="")return;let C=[];for(let[x,v]of Object.entries(y)){if(!c(v))continue;let P=f(v,!0,!1,"unscoped");if(P.length>0)C.push({declarations:P,selector:x.trim()})}if(C.length===0)return;let T=al(S,A,C);a.push({blocks:C,conditions:[...S],declarations:[],key:Et(T),selector:null,target:"unscoped",text:T})},w=(g,y,S,A,C)=>{if(g==="@--")return;if(wt(g)){d([...A,g],null,f(y,!1,!0,"unscoped"),"unscoped",y.$description);return}if(vt(g)){m(g,y,A);return}let T=Qo(g,r),x=T===null?g:`@media ${T}`,v=T===null?null:sn(T);if(v!==null&&S!==null){let{auto:P,forced:E}=ts(S,v);b(y,P,[...A,x],C),b(ll(y),E,A,C);return}b(y,S,[...A,x],C)};function b(g,y,S,A){d(S,y,f(g,!0,!0,A),A,g.$description);for(let[C,T]of Object.entries(g))for(let x of l(C,T))if(C.startsWith("@"))w(C,x,y,S,A);else if(y!==null)b(x,es(y,C),S,cl(C)?A:"descendant")}return b(e,n,[],"self"),a}var Ee="en-US",rs="UTC",os=[{api:"Intl.NumberFormat",params:["value","locale","options"],path:"Intl/formatNumber",summary:"Format a number for a locale — grouping, decimals, currency, percent, units."},{api:"Intl.DateTimeFormat",params:["value","locale","options"],path:"Intl/formatDate",summary:"Format a date or timestamp for a locale. Pass `timeZone` in options."},{api:"Intl.RelativeTimeFormat",params:["value","unit","locale","options"],path:"Intl/formatRelativeTime",summary:'Format a relative time — `-3, "day"` becomes "3 days ago".'},{api:"Intl.ListFormat",params:["values","locale","options"],path:"Intl/formatList",summary:'Join a list the way a locale does — "a, b, and c", not a hand-written comma join.'},{api:"Intl.PluralRules",params:["value","locale","options"],path:"Intl/plural",summary:'Which plural category a number falls in ("one", "few", "other") — many languages have '+"more than two, so a ternary on `n === 1` is wrong outside English."},{api:"Intl.Collator",params:["a","b","locale","options"],path:"Intl/compare",summary:'Compare two strings for sorting. `<` and `sort()` order by UTF-16 code unit, which puts "Zebra" before "apple" and sorts every accented word into the wrong place.'},{api:"Intl.DisplayNames",params:["code","type","locale","options"],path:"Intl/displayName",summary:'The name of a language, region, script or currency in a locale — "de" as "German" or '+'"Deutsch", from CLDR rather than a hand-kept table.'},{api:"Intl.Segmenter",params:["value","granularity","locale"],path:"Intl/segment",summary:"Split text into graphemes, words or sentences (UAX #29). `[...str]` splits code points, so it cuts an emoji with a skin-tone modifier in half."}],ss=os.map((e)=>e.path),is=Object.fromEntries(os.map((e)=>[e.path,e.params.indexOf("locale")]));function ul(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function fr(e){if(e==="")return[];return e.split("/").map((t)=>ul(t))}function ce(e,t){let n=e;for(let r of fr(t))n=n?.[r];return n}function dr(e){let t=e.$map;return t&&typeof t==="object"?t:void 0}var ls=new Set(["=","+=","-=","*=","/=","push","pop","shift","unshift","splice"]),cs=new Set(["!","-"]),us=new Set(["+","-","*","/","%","===","!==","<","<=",">",">=","&&","||","??"]),fl=new Set(["=","+=","-=","*=","/="]),dl=new Set(["push","pop","shift","unshift","splice"]),fs=new Set(["reduce","map","filter"]),ds=new Set(["?:","switch"]),ps=new Set(["includes","indexOf","lastIndexOf","join","slice","concat","at","flat","toSorted","toReversed","toSpliced","with","toUpperCase","toLowerCase","trim","trimStart","trimEnd","split","startsWith","endsWith","padStart","padEnd","replaceAll","repeat","charAt","normalize","toLocaleUpperCase","toLocaleLowerCase","toFixed","toPrecision","toLocaleString"]),pl=new Set([...ls,...cs,...us,...fs,...ds,...ps,"call"]),ml=new Set(["isNaN","isFinite","parseFloat","parseInt","encodeURIComponent","decodeURIComponent","structuredClone","Math/abs","Math/ceil","Math/floor","Math/round","Math/trunc","Math/sign","Math/sqrt","Math/cbrt","Math/pow","Math/exp","Math/log","Math/log2","Math/log10","Math/min","Math/max","Math/hypot","Number/isInteger","Number/isFinite","Number/isNaN","Number/parseFloat","Number/parseInt","JSON/parse","JSON/stringify","Object/keys","Object/values","Object/entries","Object/fromEntries","Array/from","Array/isArray","Array/of","String/fromCharCode","String/fromCodePoint",...ss]),hl={"Intl/compare":(e,t,n,r)=>new Intl.Collator(n??Ee,r).compare(e,t),"Intl/displayName":(e,t,n,r)=>new Intl.DisplayNames(n??Ee,{...r,type:t??"language"}).of(e),"Intl/formatDate":(e,t,n)=>new Intl.DateTimeFormat(t??Ee,{timeZone:rs,...n}).format(new Date(e)),"Intl/formatList":(e,t,n)=>new Intl.ListFormat(t??Ee,n).format(e),"Intl/formatNumber":(e,t,n)=>new Intl.NumberFormat(t??Ee,n).format(e),"Intl/formatRelativeTime":(e,t,n,r)=>new Intl.RelativeTimeFormat(n??Ee,r).format(e,t),"Intl/plural":(e,t,n)=>new Intl.PluralRules(t??Ee,n).select(e),"Intl/segment":(e,t,n)=>[...new Intl.Segmenter(n??Ee,{granularity:t??"grapheme"}).segment(e)].map((r)=>r.segment)};function gl(e,t,n){let r=is[e];if(r===void 0||r<0||t[r]!=null)return t;let s=n.$page?.locale;if(typeof s!=="string"||s==="")return t;let i=[...t];return i[r]=s,i}function xl(e){return e.startsWith("window#/")&&ml.has(e.slice(8))}function ms(e){return ls.has(e)}var as=64,yl=64;function W(e,t){if(!e)return;let n=(e.depth??0)+1;if(n>yl)return;return{depth:n,path:[...e.path??[],...Array.isArray(t)?t:[t]],report:e.report}}function F(e,t,n,r,o){if(e===null||e===void 0)return e;if(typeof e==="object"&&!Array.isArray(e)&&"operator"in e)return Z(e,t,n,r,o);if(typeof e==="object"&&!Array.isArray(e)&&"$ref"in e){let s=an(e.$ref,t,n,r);return o?.report(o.path??[],s),s}if(Array.isArray(e))return e.map((s,i)=>F(s,t,n,r,W(o,i)));return o?.report(o.path??[],e),e}function bl(e,t,n,r){let o=(s)=>{if(!e.slice(s.length).includes("/"))return t;return an(e.slice(0,e.lastIndexOf("/")),t,n,r)};if(e.startsWith("#/state/"))return o("#/state/");if(e.startsWith("parent#/"))return o("parent#/");if(e.startsWith("$map/")||e.startsWith("$args/"))return e.split("/").length>2?an(e.slice(0,e.lastIndexOf("/")),t,n,r):void 0;return}function an(e,t,n,r){if(e==="$reduce/acc")return r?.acc;if(e.startsWith("$reduce/"))return r?.acc;if(e.startsWith("$args/")){let o=e.slice(6).split("/"),s=r?.args?.[o[0]];return o.length>1?Re(s,o.slice(1).join("/")):s}if(e.startsWith("event#/")){let o=e.slice(7);return Re(n,o)}if(e.startsWith("$map/")){let o=e.split("/"),[,s]=o,i,a=dr(t);if(s==="item")i=r?.item??a?.item??t["$map/item"];else if(s==="index")i=r?.index??a?.index??t["$map/index"];else i=a?.[s]??t[`$map/${s}`];return o.length>2?Re(i,o.slice(2).join("/")):i}if(e.startsWith("#/state/"))return ce(t,e.slice(8));if(e.startsWith("parent#/"))return ce(t,e.slice(8));if(e.startsWith("window#/"))return Re(globalThis.window,e.slice(8));if(e.startsWith("document#/"))return Re(globalThis.document,e.slice(10));return ce(t,e)??null}function wl(e,t,n,r){if(e.startsWith("$map/")){let o=e.split("/"),[,s]=o,i,a=dr(t);if(s==="item")i=r?.item??a?.item??t["$map/item"];else if(s==="index")i=r?.index??a?.index??t["$map/index"];else i=a?.[s]??t[`$map/${s}`];if(o.length>2){let c=o.slice(2),l=c.pop(),u=c.length>0?Re(i,c.join("/")):i;return{key:l,obj:u}}return{key:s==="item"?"$map/item":"$map/index",obj:dr(t)??t}}if(e.startsWith("#/state/")){let o=e.slice(8);if(o.indexOf("/")===-1)return{key:o,obj:t};let i=fr(o),a=i.pop(),c=t;for(let l of i)c=c[l];return{key:a,obj:c}}return{key:e,obj:t}}function Z(e,t,n,r,o){let s=El(e,t,n,r,o);return o?.report(o.path??[],s),s}function El(e,t,n,r,o){let{operator:s,target:i,value:a,initial:c}=e;if(!pl.has(s))throw Error(`$expression: unknown operator "${s}"`);if(cs.has(s)&&!("value"in e)){let l=F(i,t,n,r,W(o,"target"));if(s==="!")return!l;if(s==="-")return-l}if(s==="call"){let l=i?.$ref;if(typeof l!=="string")throw TypeError("$expression: call target must be a $ref pointer");let u=(r?.callDepth??0)+1;if(u>as)throw Error(`$expression: call depth exceeded (${as})`);let f=Array.isArray(a)?a.map((m,w)=>F(m,t,n,r,W(o,["value",w]))):[];if(l.startsWith("window#/")){if(!xl(l))throw Error(`$expression: "${l}" is not a blessed pure global`);let m=l.slice(8),w=hl[m];if(w)return w(...gl(m,f,t));let b=Re(globalThis.window,m),g=m.lastIndexOf("/"),y=g===-1?globalThis.window:Re(globalThis.window,m.slice(0,g));return b.apply(y,f)}let d=an(l,t,n,r);if(typeof d==="function")return d.apply(bl(l,t,n,r),f);if(d&&typeof d==="object"&&"$expression"in d){let m=d,w={};for(let[b,g]of(m.parameters??[]).entries()){let y=typeof g==="string"?g:g?.name??"";if(!y)continue;w[y]=f[b]===void 0&&typeof g==="object"&&g!==null&&"default"in g?g.default:f[b]}return Z(m.$expression,t,n,{args:w,callDepth:u})}throw TypeError(`$expression: call target "${l}" is not callable`)}if(ds.has(s)){if(s==="?:"){let m=F(i,t,n,r,W(o,"target"));if(o){let w=F(a,t,n,r,W(o,"value")),b=F(c,t,n,r,W(o,"initial"));return m?w:b}return m?F(a,t,n,r):F(c,t,n,r)}let l=F(i,t,n,r,W(o,"target")),u=String(l),f=e.cases??{},d=Object.hasOwn(f,u);if(o){let m;for(let[b,g]of Object.entries(f)){let y=F(g,t,n,r,W(o,["cases",b]));if(b===u)m=y}let w=F(e.default,t,n,r,W(o,"default"));return d?m:w}return d?F(f[u],t,n,r):F(e.default,t,n,r)}if(us.has(s)){let l=F(i,t,n,r,W(o,"target")),u=F(a,t,n,r,W(o,"value"));switch(s){case"+":return l+u;case"-":return l-u;case"*":return l*u;case"/":return l/u;case"%":return l%u;case"===":return l===u;case"!==":return l!==u;case"<":return l<u;case"<=":return l<=u;case">":return l>u;case">=":return l>=u;case"&&":return l&&u;case"||":return l||u;case"??":return l??u;default:break}}if(fl.has(s)){let l=F(a,t,n,r,W(o,"value")),{obj:u,key:f}=wl(i.$ref,t,n,r);switch(s){case"=":{u[f]=l;break}case"+=":{let d=u[f];u[f]=d+l;break}case"-=":{let d=u[f];u[f]=d-l;break}case"*=":{let d=u[f];u[f]=d*l;break}case"/=":{let d=u[f];u[f]=d/l;break}default:break}return}if(dl.has(s)){let l=F(i,t,n,r,W(o,"target"));switch(s){case"push":return l.push(F(a,t,n,r,W(o,"value")));case"unshift":return l.unshift(F(a,t,n,r,W(o,"value")));case"pop":return l.pop();case"shift":return l.shift();case"splice":{let u=F(a,t,n,r,W(o,"value"));return l.splice(...u)}default:break}}if(ps.has(s)){let l=F(i,t,n,r,W(o,"target")),u=a===void 0?[]:Array.isArray(a)?F(a,t,n,r,W(o,"value")):[F(a,t,n,r,W(o,"value"))],f=l?.[s];if(typeof f!=="function")return;return f.apply(l,u)}if(fs.has(s)){let l=F(i,t,n,r,W(o,"target"));if(s==="reduce"){let u=F(c,t,n,r,W(o,"initial"));for(let[f,d]of l.entries())u=Z(a,t,n,{acc:u,index:f,item:d},f===0?W(o,"value"):void 0);return u}if(s==="map")return l.map((u,f)=>Z(a,t,n,{...r,index:f,item:u},f===0?W(o,"value"):void 0));if(s==="filter")return l.filter((u,f)=>Z(a,t,n,{...r,index:f,item:u},f===0?W(o,"value"):void 0))}return}function Re(e,t){return ce(e,t)}function Le(e,t,n,r){return F(e,t,n,r)}function ln(e){let t=e.replaceAll("\\","/");return t.length>1&&t.endsWith("/")?t.slice(0,-1):t}function hs(e){let t=ln(e);return t.startsWith("/")?t:`/${t}`}function gs(e,t){return[...e].toSorted((n,r)=>r[t].length-n[t].length)}function vl(e,t){return e===t||e.startsWith(`${t}/`)}function xs(e,t){let n=ln(t);for(let r of gs(e,"dir")){let o=ln(r.dir);if(!vl(n,o)||n===o)continue;let s=n.slice(o.length+1),{filter:i}=r;if(i&&!i(s))return null;let a=s.split("/").map((c)=>encodeURIComponent(c)).join("/");return`${hs(r.urlPrefix)}/${a}`}return null}function Sl(e,t){let n=t.split("#")[0].split("?")[0];if(!n.startsWith("/"))return null;let r;try{r=decodeURIComponent(n)}catch{return null}if(/%2e|%2f/i.test(r))return null;for(let o of gs(e,"urlPrefix")){let s=hs(o.urlPrefix);if(!r.startsWith(`${s}/`))continue;let a=r.slice(s.length+1).split("/");if(a.some((l)=>l===""||l==="."||l===".."))return null;let{filter:c}=o;if(c&&!c(a.join("/")))return null;return`${ln(o.dir)}/${a.join("/")}`}return null}var jf=String.raw`"'\s<>()\\`;var kl="public";function Tt(e){let t=e.search(/[#?]/);return t===-1?{path:e,suffix:""}:{path:e.slice(0,t),suffix:e.slice(t)}}function pr(e){return e===""||e.startsWith("/")||e.startsWith("#")||e.includes("${")||/^[a-z][\w+.-]*:/i.test(e)}function mr(e){return e.replaceAll("\\","/").replace(/^\.\//,"").replace(/^\/+/,"").replace(/\/+$/,"")}function hr(e,t){let r=(e===""||e==="."?[]:mr(e).split("/")).filter((o)=>o!==""&&o!==".");for(let o of t.replaceAll("\\","/").split("/")){if(o===""||o===".")continue;if(o===".."){if(r.length===0)return null;r.pop();continue}r.push(o)}return r.join("/")}function Tl(e,t,n){let{path:r}=Tt(e);if(!r.startsWith("/"))return[];let o;try{o=decodeURIComponent(r)}catch{return[]}if(/%2e|%2f/i.test(o))return[];let s=o.replace(/^\/+/,"");if(s===""||s.split("/").some((a)=>a==="."||a===".."))return[];let i=[];for(let a of n){if(a==="mounts"){let c=Sl(t,r);if(c!==null&&!c.startsWith("/")&&!/^[A-Za-z]:/.test(c))i.push(mr(c));continue}i.push(a==="root"?s:`${kl}/${s}`)}return[...new Set(i)]}function ys(e,t,n,r){let{path:o}=Tt(e);if(o==="")return null;if(pr(e))return o.startsWith("/")?Tl(o,n,r)[0]??null:null;if(o.endsWith("/"))return null;let s;try{s=decodeURIComponent(o)}catch{return null}let i=hr(t,s);if(i===null||i===""||i===mr(t))return null;return i}function bs(e){return e.split("/").map((t)=>encodeURIComponent(t)).join("/")}function ws(e){let t=[],n=0;while(n<e.length){while(n<e.length&&(/\s/.test(e[n])||e[n]===","))n+=1;if(n>=e.length)break;let r=n;while(n<e.length&&!/\s/.test(e[n]))n+=1;let o=e.slice(r,n);if(o.endsWith(",")){t.push({descriptor:"",url:o.replace(/,+$/,"")});continue}while(n<e.length&&/\s/.test(e[n]))n+=1;let s=n;while(n<e.length&&e[n]!==",")n+=1;let i=e.slice(s,n).trim();if(n+=1,o=o.replace(/,+$/,""),o!=="")t.push({descriptor:i,url:o})}return t}function Es(e){return e.map(({url:t,descriptor:n})=>n?`${t} ${n}`:t).join(", ")}function Al(e){if("operator"in e)return"expression";if("if"in e)return"if";if("$switch"in e)return"switch";if("stopPropagation"in e)return"stopPropagation";if("preventDefault"in e)return"preventDefault";return"dispatch"}async function Ye(e,t,n,r={}){let o=r.args?{args:r.args}:void 0;for(let s of e)switch(Al(s)){case"expression":{let i=Z(s,t,n,o);if(i&&typeof i.then==="function")await i;break}case"if":{let i=s,a=Le(i.if,t,n,o)?i.then:i.else;if(Array.isArray(a))await Ye(a,t,n,r);break}case"switch":{let i=s,a=String(Le(i.$switch,t,n,o)),c=i.cases??{},l=Object.hasOwn(c,a)?c[a]:i.default;if(Array.isArray(l))await Ye(l,t,n,r);break}case"dispatch":{let i=s,a=typeof r.target==="function"?r.target():r.target,c=n?.currentTarget??a;if(!c)break;let l={};if("detail"in i)l.detail=Le(i.detail,t,n,o);if(i.bubbles!==void 0)l.bubbles=i.bubbles;if(i.composed!==void 0)l.composed=i.composed;c.dispatchEvent(new CustomEvent(i.dispatchEvent,l));break}case"stopPropagation":{n?.stopPropagation();break}case"preventDefault":{n?.preventDefault();break}default:break}}function vs(e,t){for(let n of e.split(";")){let r=n.indexOf("=");if(r===-1)continue;if(n.slice(0,r).trim()===t)return n.slice(r+1)}return null}function Ss(e,t,n){let r=e.startsWith("__Host-"),o=[`${e}=${encodeURIComponent(JSON.stringify(t))}`];if(n.maxAge!==void 0)o.push(`Max-Age=${n.maxAge}`);let s=r?"/":n.path;if(s)o.push(`Path=${s}`);if(n.domain&&!r)o.push(`Domain=${n.domain}`);let{sameSite:i}=n;if(n.secure===!0||r||e.startsWith("__Secure-")||i?.toLowerCase()==="none")o.push("Secure");if(i)o.push(`SameSite=${i}`);return o.join("; ")}var gr=new Map;async function Sr(e,t){if(typeof e!=="string")return e;let n=t?.resolver?.(e);if(n)return n;if(gr.has(e))return gr.get(e);let r=fetch(e).then(async(o)=>{if(!o.ok)throw Error(`Jx: failed to fetch ${e} (${o.status})`);if((o.headers?.get("Content-Type")??"").includes("text/html"))throw Error(`Jx: ${e} returned HTML, not a document — the host answered a missing file with its `+"app shell (a single-page fallback), so this path is not served.");return await o.json()});return gr.set(e,r),r}var Cl=new Set(["type","properties","items","enum","minimum","maximum","minLength","maxLength","pattern","required","examples"]),Ls={skip:!1};function Is(e){Ls.skip=e}var Js={skip:!1};function js(e){Js.skip=e}var yr=null;function Hs(e){yr=e||null}function Fs(e){return yr?`${e}?token=${encodeURIComponent(yr)}`:e}function Ws(e){let t=Ge(!0);return t.run(()=>{z(e)}),()=>t.stop()}function gn(e){let t=Ge(!0);try{return{result:t.run(e),stop:()=>t.stop()}}catch(n){throw t.stop(),n}}var Bs=!1;function Ks(e){Bs=e}var Pl=/(-?\d*\.?\d+)(?:s|l|d)?v(h|w|min|max|i|b)\b/gi,Rl={b:"cqb",h:"cqh",i:"cqi",max:"cqmax",min:"cqmin",w:"cqw"};function $l(e){if(!Bs||!e.includes("v"))return e;return e.replace(Pl,(t,n,r)=>`${n}${Rl[r.toLowerCase()]??`cq${r}`}`)}var Vs=!1;function Us(e){Vs=e}var kr=!1;function qs(e){kr=e}var Tr=!1;function zs(e){Tr=e}var un=!1;function br(e){return un||e.dataset.jxPath!==void 0}function Nl(e,t){if(Vs&&t==="href"&&(e.tagName==="A"||e.tagName==="AREA"))return"data-jx-href";if(kr&&t==="popover"&&br(e))return"data-jx-popover";if(Tr&&br(e)){if(t==="commandfor")return"data-jx-commandfor";if(t==="inert")return"data-jx-inert";if(t==="open"&&e.tagName==="DIALOG")return"data-jx-open"}return t}var Ze=null;function xn(e){Ze=e}var Ml=new Set(["src","poster","data"]),_l=new Set(["srcset","imagesrcset"]),Ol=new Set(["LINK"]);function Dl(e,t){return Ml.has(t)||t==="href"&&Ol.has(e)}function Ar(e,t,n){if(!Ze||n==="")return n;let r=t.toLowerCase();if(_l.has(r)){let o=ws(n),s=!1,i=o.map((a)=>{let c=Ze?.(a.url,r)??null;if(c===null||c===a.url)return a;return s=!0,{descriptor:a.descriptor,url:c}});return s?Es(i):n}if(!Dl(e,r))return n;return Ze(n,r)??n}var Ll=/\burl\(\s*(?<q>["']?)(?<u>[^"')]*)\k<q>\s*\)/g;function Il(e){if(!Ze||!e.includes("url("))return e;return e.replaceAll(Ll,(t,n,r)=>{let o=r===""?null:Ze?.(r,"url()")??null;return o===null?t:`url(${n}${o}${n})`})}function fn(e){return $l(Il(e))}var Gs=!1;function Ys(e){Gs=e}var Jl=/^\s*\$\{\s*state\.(\w+)\s*\}\s*$/;function jl(e,t,n){if(!Gs||e!=="textContent")return null;let r=null;if(V(t)){if(!t.$ref.startsWith("#/state/"))return null;let s=t.$ref.slice(8);r=s&&!s.includes("/")?s:null}else if(typeof t==="string")r=Jl.exec(t)?.[1]??null;if(!r)return null;let o=j(n)[r];if(Ae(o)||typeof o==="function")return null;if(typeof o==="object"&&o!==null)return null;return r}async function yn(e,t={},n=location.href,r){let o=()=>r?.root??null,s={},i=e.state??{},a=yt(t);for(let f of Object.keys(t))if(a&&!(f in i))Object.defineProperty(s,f,{configurable:!0,enumerable:!0,get:()=>t[f],set:(d)=>{t[f]=d}});else s[f]=t[f];let c=e.imports??{};for(let[,f]of Object.entries(i))if(Fn(f)&&!f.$src){let d=c[f.$prototype];if(d){if(!d.endsWith(".class.json")){console.warn(`Jx: import "${f.$prototype}" must map to a .class.json path, got "${d}"`);continue}f.$src=d}}for(let[f,d]of Object.entries(i)){if(typeof d==="string"){if(!d.includes("${"))s[f]=d;continue}if(typeof d==="number"||typeof d==="boolean"||d===null){s[f]=d;continue}if(Array.isArray(d)){s[f]=d;continue}if(typeof d==="object"){if(d.$prototype)continue;if(Ke(d))continue;if(Wn(d))continue;if("default"in d){s[f]=d.default;continue}if(Hl(d))continue;s[f]=d}}let l=rn(s);for(let[f,d]of Object.entries(i))if(typeof d==="string"&&d.includes("${"))l[f]=bt(()=>ve(d,l));for(let[f,d]of Object.entries(i))if(Ke(d)){let m=d.$expression;if(Co(d)){let w=d.parameters;l[f]=(...b)=>{let g={};for(let[y,S]of w.entries()){let A=typeof S==="string"?S:S?.name??"";if(!A)continue;g[A]=b[y]===void 0&&typeof S==="object"&&S!==null&&"default"in S?S.default:b[y]}return Z(m,l,null,{args:g})}}else if(ms(m.operator)){let w=(b,g)=>Z(m,b,g);l[f]=w}else l[f]=bt(()=>Z(m,l,null))}for(let[f,d]of Object.entries(i))if(Hn(d)){let{body:m}=d;if(Array.isArray(d.parameters)&&d.parameters.length>0){let w=d.parameters;l[f]=(...b)=>{let g={};for(let[y,S]of w.entries()){let A=typeof S==="string"?S:S?.name??"";if(!A)continue;g[A]=b[y]===void 0&&typeof S==="object"&&S!==null&&"default"in S?S.default:b[y]}return Ye(m,l,null,{args:g,target:o})}}else{let w=(b,g)=>{Ye(m,b,g??null,{target:o})};l[f]=w}}else if(ft(d))l[f]=await Bl(d,l,f,n);for(let[f,d]of Object.entries(i))if(Fn(d))l[f]=await tc(d,l,f,n,r);if(!(r?.skipServerFunctions??Ls.skip)){for(let[f,d]of Object.entries(i))if(Wn(d))l[f]=await ic(d,l,f,n)}let u=r?.media??si;if(e.$media)l.$media=e.$media;else if(!l.$media&&Object.keys(u).length>0)l.$media=u;return l}function Hl(e){for(let t of Object.keys(e))if(Cl.has(t))return!0;return!1}function ve(e,t){let n=t?.$map;return Function("state","$map","item","index",`return \`${e}\``)(t,n,n?.item,n?.index)}function Fl(e){if(!e.startsWith("${")||!e.endsWith("}"))return!1;let t=0;for(let n=1;n<e.length;n+=1){let r=e[n];if(r==="{")t+=1;else if(r==="}"){if(t-=1,t===0)return n===e.length-1}}return!1}function Wl(e,t){if(!Fl(e))return ve(e,t);let n=t?.$map;return Function("state","$map","item","index",`return (${e.slice(2,-1)})`)(t,n,n?.item,n?.index)}var Ie=new Map,Xe=new Map;function Xs(e,t){if(typeof t==="function"){Ie.delete(e),Xe.set(e,t);return}Xe.delete(e),Ie.set(e,t)}function Cr(e){let t=Ie.get(e);if(t)return t;let n=Xe.get(e);if(!n)return;if(typeof n!=="function")return n;let r=Promise.resolve(n()).then((o)=>(Ie.set(e,o),Xe.delete(e),o),(o)=>{throw Xe.set(e,n),o});return Xe.set(e,r),r}async function Bl(e,t,n,r){if(e.body&&e.$src)throw Error(`Jx: '${n}' declares both body and $src — these are mutually exclusive`);if(!e.body&&!e.$src){let a=wr(e),c=Function(...a,"");return Object.defineProperty(c,"name",{configurable:!0,value:e.name??n}),c}let o;if(typeof e.body==="string"){let a=wr(e);o=Function(...a,e.body),Object.defineProperty(o,"name",{configurable:!0,value:e.name??n})}else{let a=e.$src;if(!a)throw Error(`Jx: '${n}' has neither body nor $src`);let c=e.$export??n,l,u=Cr(a);if(u instanceof Promise)l=await u;else if(u)l=u;else{if(r){let d=new URL(a,r).href;try{l=await import(d)}catch{l=await import(a)}}else l=await import(a);Ie.set(a,l)}let f=l[c]??l.default?.[c];if(typeof f!=="function")throw TypeError(`Jx: export "${c}" not found or not a function in "${a}"`);o=f}let s=(e.parameters??e.arguments??[]).length>0,i=!1;if(!s){if(typeof e.body==="string")i=Bn(e.body);else if(o)i=o.length<=1&&Bn(o.toString())}if(i)return bt(()=>o(t));return o}function wr(e){let t=e.parameters?Ro(e.parameters):e.arguments??[];return t.length>0&&t[0]==="state"?t:["state",...t]}var Pt=new Set(["$schema","$id","$defs","state","$ref","$props","$elements","$title","$description","$switch","$prototype","$src","$export","$media","$map","timing","default","description","body","parameters","arguments","name","tagName","children","style","attributes","items","map","filter","sort","cases","observedAttributes"]),ks=new Set,Kl="http://www.w3.org/2000/svg",Vl="http://www.w3.org/1998/Math/MathML";function Ul(e,t){if(e==="svg")return Kl;if(e==="math")return Vl;return t??null}function ue(e,t,n){let r=n?._path??[];if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){let f=document.createTextNode(String(e));if(typeof e==="string"&&ie(e))z(()=>{f.textContent=ve(e,t)});return f}let o=t;for(let[f,d]of Object.entries(e))if(f.startsWith("$")&&!Pt.has(f)){if(o===t)o=Object.create(t);o[f]=V(d)?G(d.$ref,t):d}if("$ref"in e&&!e.tagName){let f=String(e.$ref??"");if(!ks.has(f))ks.add(f),console.warn(`Jx: a $ref child ("${f}") is not a supported component instance; register the `+"component in $elements and use its custom-element tag instead (spec §13).")}let s=$r(e.tagName,o),i=s.includes("-")&&customElements.get(s);if(e.$props&&i)return Ds(e,o,n,r);if(e.$props){if(s.includes("-"))return Ds(e,o,n,r);let{$props:f,...d}=e;return ue(d,uc(e,o),n)}if(e.$switch)return ec(e,o,n);let a=Ul(s,n?._ns),c=s==="foreignObject"?null:a,l=a?document.createElementNS(a,s):document.createElement(s);if(n?.onNodeCreated)n.onNodeCreated(l,r,e,o);if(Pr(l,e,o),e.style&&s.includes("-"))Rr.set(l,e.style);bn(l,e.style??{},o.$media??{},o),En(l,e.attributes??{},o);let u=e.children;if(Bt(u)){let f=n||c?{...n,_ns:c,_path:[...r,"children"]}:void 0;Er(l,u,o,f)}else if(Array.isArray(u))for(let f=0;f<u.length;f++){let d=u[f],m=n||c?{...n,_ns:c,_path:[...r,"children",f]}:void 0;if(Bt(d))Er(l,d,o,m);else l.append(ue(d,o,m))}return l}function Pr(e,t,n){for(let[r,o]of Object.entries(t)){if(Pt.has(r))continue;if(r.startsWith("$"))continue;if(r.startsWith("on")&&Zs(e,r,o,n))continue;Qs(e,r,o,n)}}function Zs(e,t,n,r){let o=t.slice(2),s=r;if(V(n)){let i=G(n.$ref,r);if(typeof i==="function"){let a=i;e.addEventListener(o,(c)=>a(s,c))}return!0}if(Hn(n)){let{body:i}=n;return e.addEventListener(o,(a)=>{Ye(i,s,a)}),!0}if(ft(n)&&typeof n.body==="string"){let i=wr(n),a=Function(...i,n.body);return e.addEventListener(o,(c)=>a(s,c)),!0}if(Ke(n)){let i=n.$expression;return e.addEventListener(o,(a)=>Z(i,s,a)),!0}return!1}function ql(e,t,n){for(let[r,o]of Object.entries(t))if(r.startsWith("on")&&!Pt.has(r))Zs(e,r,o,n)}function Qs(e,t,n,r){let o=e,s=jl(t,n,r);if(s)e.dataset.jxBoundProp=s;let i=(c)=>typeof c==="string"?Ar(e.tagName,t,c):c,a=(c)=>{let l=e;if(t==="className"&&!(l instanceof HTMLElement)){l.setAttribute("class",c==null?"":String(c));return}if(o[t]===c)return;o[t]=c};if(V(n)){let c=n;if(t==="id"){o[t]=G(c.$ref,r);return}z(()=>{a(i(G(c.$ref,r)))});return}if(ie(n)){z(()=>{a(i(ve(n,r)))});return}a(i(n))}function Ts(e,t){let n=[];return{detach:t,insert(r){let o=[];for(let i of r){let a=e.cssRules.length;try{e.insertRule(i,a)}catch{continue}let c=e.cssRules[a];if(c)o.push(c)}let s={rules:o,texts:r};return n.push(s),s},remove(r){let o=n.indexOf(r);if(o!==-1)n.splice(o,1);if(r.rules.length===0)return;let s=[...e.cssRules],i=r.rules.map((a)=>s.indexOf(a)).filter((a)=>a>=0).toSorted((a,c)=>c-a);for(let a of i)e.deleteRule(a);r.rules.length=0},replaceAll(r){n.length=0,n.push({rules:[],texts:r}),e.replaceSync(r.join(`
|
|
3
3
|
`))},text(){return n.flatMap((r)=>r.texts.join(`
|
|
4
4
|
`)).join(`
|
|
5
5
|
`)}}}function zl(e){let t=[],n=()=>{e.textContent=t.map((r)=>r.texts.join(`
|
|
@@ -311,5 +311,5 @@ dialog[data-jx-dialog-open]::before {
|
|
|
311
311
|
`," ")&&!Dt)return;Dt=!0,rt(oe,null,n,e);return}nt(_);let t=Wi(_);rt(oe,t.children??null,t.textContent??null,e)}function nu(e){if(!Array.isArray(e.children)||e.children.length===0)return{textContent:""};let t=[];for(let n of e.children)if(typeof n==="string"&&t.length>0&&typeof t.at(-1)==="string")t[t.length-1]+=n;else t.push(n);if(t.every((n)=>typeof n==="string"))return{textContent:t.join("")};return{children:t}}function Wi(e){let t=e.childNodes;if(t.length===0)return{textContent:""};if(t.length===1&&t[0].nodeType===Node.TEXT_NODE)return{textContent:t[0].textContent};let n=[];for(let r of t){let o=Ur(r);if(o!==null&&o!==void 0)n.push(o)}return nu({children:n})}function Ur(e){if(e.nodeType===Node.TEXT_NODE){let a=e.textContent;if(!a)return null;return a}if(e.nodeType!==Node.ELEMENT_NODE)return null;let t=e,n=t.tagName.toLowerCase(),r={tagName:n},o={b:"strong",i:"em",s:"del",strike:"del"};if(o[n])r.tagName=o[n];let s=t.dataset.jxHref??t.getAttribute("href");if(n==="a"&&s!=null){if(r.attributes={href:s},t.title)r.attributes.title=t.title}if(n==="code")return r.textContent=t.textContent,r;let{childNodes:i}=t;if(i.length===0)r.textContent="";else if(i.length===1&&i[0].nodeType===Node.TEXT_NODE)r.textContent=i[0].textContent;else{r.children=[];for(let a of i){let c=Ur(a);if(c)r.children.push(c)}}return r}function Mi(e){let t=e.childNodes;if(t.length===0)return{textContent:""};if(t.length===1&&t[0].nodeType===Node.TEXT_NODE)return{textContent:t[0].textContent};let n=[];for(let r of t){let o=Ur(r);if(o)n.push(o)}if(n.length===1&&typeof n[0]!=="string"&&n[0].tagName==="span"&&typeof n[0].textContent==="string")return{textContent:n[0].textContent};return n.length>0?{children:n}:{textContent:""}}function Rn(e){let t=document.createRange();return t.setStart(_,0),t.setEnd(e.startContainer,e.startOffset),t.toString()}var Bi=0,Pn=!0;function qr(e){if(!_||!ot||!oe)return;if(fe)return;let t=window.getSelection();if(!t||!t.rangeCount)return;let n=t.getRangeAt(0);Pn=e?.anchored!==!1,Bi=Rn(n).length,Ne.show(_,"",{onSelect:Vi,...Pn?{}:{showFilter:!0}})}function Ki(e){if(e.key!=="/"||e.ctrlKey||e.metaKey||!_)return;let t=window.getSelection();if(!t||t.rangeCount===0)return;let n=Rn(t.getRangeAt(0));if(n===""||n.endsWith(" ")||n.endsWith(`
|
|
312
312
|
`))requestAnimationFrame(()=>qr())}function zr(){if(!_||!Pn)return;let e=window.getSelection();if(!e||!e.rangeCount){Ne.dismiss();return}let t=e.getRangeAt(0),n=Rn(t),r=n.lastIndexOf("/");if(r===-1||n.length<Bi-1){Ne.dismiss();return}let o=n.slice(r+1).toLowerCase();Ne.show(_,o,{onSelect:Vi})}function Vi(e){if(!_||!ot||!oe)return;let t=Pn?window.getSelection():null;if(t&&t.rangeCount){let s=t.getRangeAt(0),a=Rn(s).lastIndexOf("/");if(a!==-1){let c=document.createTreeWalker(_,NodeFilter.SHOW_TEXT),l=0,u=null,f=0;while(c.nextNode()){let d=c.currentNode;if(l+d.length>a){u=d,f=a-l;break}l+=d.length}if(u){let d=document.createRange();d.setStart(u,f),d.setEnd(s.startContainer,s.startOffset),d.deleteContents()}}}nt(_);let n=Wi(_),r=[...oe],o=ot;Hi(),o(r,e,n)}function ru(e,t){let{target:n}=e;return n===t||n===t.documentElement||n===t.body}function Gr(e){let t=e instanceof Element?e:null;while(t){if(t.dataset?.jxPath)return t;t=t.parentElement}return null}function qi(e,t){let n=ne(e);return{path:U(t),rect:{height:n.height,width:n.width,x:n.x,y:n.y}}}function Ui(e){let t=Gr(e instanceof Element?e:null);if(!t)return null;return qi(t,t.dataset.jxPath)}function ou(e){let t=e.checkVisibility;return typeof t==="function"?t.call(e,{checkVisibilityCSS:!0}):!0}function zi(e,t=document){let n=[],r=[];for(let o of e){let s=t.querySelector(Je(J(o)));if(!s)continue;if(ou(s)){let i=ne(s);n.push({path:o,rect:{height:i.height,width:i.width,x:i.x,y:i.y}})}else r.push(o)}return{hidden:r,hits:n}}var su=new Set(["toggle","show","hide"]);function iu(e,t){if(!(e instanceof Element))return;let n=e.closest("[popovertarget]"),r=n?.getAttribute("popovertarget");if(!n||!r)return;let i=[...n.ownerDocument.querySelectorAll("[data-jx-popover]")].find((l)=>l.id===r)?.dataset.jxPath;if(!i)return;let a=n.getAttribute("popovertargetaction")??"toggle",c=su.has(a)?a:"toggle";t.post({action:c,kind:"popoverTargetClick",targetPath:U(i)})}function au(e,t){if(!(e instanceof Element))return;let n=e.closest("[data-jx-commandfor]"),r=n?.dataset.jxCommandfor,o=n?.getAttribute("command")?.trim().toLowerCase()??"";if(!n||!r||!o)return;let a=[...n.ownerDocument.querySelectorAll("[data-jx-popover], dialog[data-jx-path]")].find((c)=>c.id===r)?.dataset.jxPath;if(!a)return;t.post({command:o,kind:"commandTargetClick",targetPath:U(a)})}function Gi(e,t=document,n){let r=null,o=null,s=n?.getGen?.()??0,i=()=>n?.getMode?.()==="preview",a=()=>{e.post({kind:"paneFocus"})},c=(x)=>{if(i()){if(x.target instanceof Element){let E=x.target.closest("a[href]")?.getAttribute("href");if(E&&!E.startsWith("#"))x.preventDefault(),e.post({href:E,kind:"previewNavigate"})}return}let v=Ui(x.target);if(v){let P=x;e.post({additive:P.ctrlKey===!0||P.metaKey===!0,hit:v,kind:"hit"})}iu(x.target,e),au(x.target,e)},l=(x)=>{if(i())return;let v=x?.dataset.jxPath??null;if(v===r)return;r=v,e.post({hit:x&&v?qi(x,v):null,kind:"hover"})},u=()=>{let x=n?.getGen?.()??s;if(x!==s)s=x,o="none"},f=(x,v)=>{if(!n||n.getMode?.()==="stylebook"||i())return;u();let P=n.getShadowDoc(),E=Gr(x instanceof Element?x:null),O=E&&P?Ti(E,v,P):null,M=Ai(O);if(M===o)return;o=M,e.post({kind:"insertZones",zones:O})},d=0,m=null,w=0,b=0,g=(x)=>t.defaultView?.requestAnimationFrame(x)??requestAnimationFrame(x),y=(x)=>t.defaultView?.cancelAnimationFrame(x)??cancelAnimationFrame(x),S=()=>{d=0;let x=m;m=null,l(Gr(x instanceof Element?x:null)),f(x,{x:w,y:b})},A=(x)=>{let v=x;if(m=x.target,w=v.clientX,b=v.clientY,d)return;d=g(S)},C=(x)=>{if(!ru(x,t))return;if(l(null),n&&!i()&&o!=="none")o="none",e.post({kind:"insertZones",zones:null})},T=(x)=>{let v=x;if(i())return;let P=de()?st():null;if(P&&x.target instanceof Node&&P.contains(x.target))return;let E=Ui(x.target);if(!E)return;x.preventDefault(),e.post({kind:"contextMenu",path:E.path,x:v.clientX,y:v.clientY})};return t.addEventListener("pointerdown",a,!0),t.addEventListener("click",c,!0),t.addEventListener("pointermove",A,!0),t.addEventListener("pointerleave",C,!0),t.addEventListener("contextmenu",T,!0),()=>{if(d)y(d),d=0;t.removeEventListener("pointerdown",a,!0),t.removeEventListener("click",c,!0),t.removeEventListener("pointermove",A,!0),t.removeEventListener("pointerleave",C,!0),t.removeEventListener("contextmenu",T,!0)}}var lu=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function cu(e){let t=e instanceof Element?e:null;while(t){if(t.dataset?.jxPath)return t;t=t.parentElement}return null}function Xr(e,t,n){let r=Ao(e,t,n);return cu(r)}function Zr(e,t,n,r){let o=e.dataset?.jxPath;if(o==null)return null;let s=U(o);if(s.length===0){let d=[...e.children];if(d.length===0)return Yr(r,s)?{edge:"inside",instruction:"make-child",referenceRect:He(e),targetPath:s}:null;return uu(d,t,s,r)}if(!Yr(r,s))return null;let i=Y(n,s),a=(xe(i?.tagName)||"div").toLowerCase(),c=Array.isArray(i?.children)&&i.children.some((d)=>d!=null&&typeof d==="object"),l=lu.has(a)||!c,u=He(e),f=u.height===0?0:(t-u.y)/u.height;if(l)return f<0.5?{edge:"top",instruction:"reorder-above",referenceRect:u,targetPath:s}:{edge:"bottom",instruction:"reorder-below",referenceRect:u,targetPath:s};if(f<0.25)return{edge:"top",instruction:"reorder-above",referenceRect:u,targetPath:s};if(f>0.75)return{edge:"bottom",instruction:"reorder-below",referenceRect:u,targetPath:s};return{edge:"inside",instruction:"make-child",referenceRect:u,targetPath:s}}function uu(e,t,n,r){let o=1/0,s="reorder-below",i=e.length-1;for(let c=0;c<e.length;c++){let l=He(e[c]),u=Math.abs(t-l.y),f=Math.abs(t-(l.y+l.height));if(u<o)o=u,s="reorder-above",i=c;if(f<o)o=f,s="reorder-below",i=c}let a=[...n,"children",i];if(!Yr(r,a))return null;return{edge:s==="reorder-above"?"top":"bottom",instruction:s,referenceRect:He(e[i]),targetPath:a}}function Yr(e,t){if(e.type!=="tree-node")return!0;let n=e.path;if(Ei(n,t))return!1;return!tt(n,t)}function He(e){let t=ne(e);return{height:t.height,width:t.width,x:t.x,y:t.y}}var fu=40,Yi=12;function Qr(e,t,n=fu){if(e<n)return-1;if(e>t-n)return 1;return 0}var eo=new Set(["deleteContentBackward","deleteWordBackward","deleteSoftLineBackward","deleteHardLineBackward"]),to=new Set(["deleteContentForward","deleteWordForward","deleteSoftLineForward","deleteHardLineForward"]),Xi=new Set(["deleteByCut","deleteContent"]),Zi=new Set(["insertText","insertReplacementText","insertFromPaste","insertFromPasteAsQuotation","insertFromYank","insertTranspose"]),du="format",pu=new Set(["insertParagraph","insertLineBreak"]);function Qi(e){let{inputType:t,from:n,to:r}=e;if(t==="insertCompositionText"||t==="insertFromComposition")return{kind:"native"};if(t==="historyUndo"||t==="historyRedo")return{kind:"reject"};if(t.startsWith(du))return{kind:"reject"};if(t==="insertFromDrop"||t==="deleteByDrag")return{kind:"reject"};if(e.inPropHost)return pu.has(t)?{kind:"reject"}:{kind:"native"};if(!n||!r)return{kind:"reject"};let o=Mt(n,r)&&n.offset===r.offset,s=!Mt(n,r);if(t==="insertParagraph")return{from:n,kind:"split",to:r};if(t==="insertLineBreak"&&!s)return{kind:"native"};if(o&&eo.has(t)&&e.atBlockStart)return{at:n,kind:"mergeBackward"};if(o&&to.has(t)&&e.atBlockEnd)return{at:n,kind:"mergeForward"};if(s){if(Zi.has(t)||t==="insertLineBreak")return{from:n,kind:"replaceRange",text:e.data,to:r};if(eo.has(t)||to.has(t)||Xi.has(t))return{from:n,kind:"replaceRange",text:"",to:r};return{kind:"reject"}}if(Zi.has(t)||eo.has(t)||to.has(t)||Xi.has(t))return{kind:"native"};return{kind:"native"}}var mu=500;function $n(e,t){let n=e.ownerDocument.getSelection();if(!n||n.rangeCount===0||!n.anchorNode||!n.focusNode)return null;if(!e.contains(n.anchorNode)||!e.contains(n.focusNode))return null;let r=Nt(n.anchorNode,n.anchorOffset,t),o=Nt(n.focusNode,n.focusOffset,t);return r&&o?{anchor:r,head:o}:null}function It(e,t){let n=Or(e,t.anchor),r=Or(e,t.head)??n;if(!n)return!1;let o=e.ownerDocument.getSelection();if(!o)return!1;let s=e.ownerDocument.createRange();if(s.setStart(n.node,n.offset),o.removeAllRanges(),o.addRange(s),r&&r!==n)o.extend(r.node,r.offset);return!0}function ea(e,t){let n=e.ownerDocument,r=null,o=null,s=()=>{let T=t.getMode?.();return T===void 0||T==="design"||T==="edit"},i=0,a=()=>{if(i)clearTimeout(i),i=0},c=()=>{if(i=0,!r||!t.onCommitTick)return;let T=$n(e,t.isEditableBlock);if(t.onCommitTick(),T)It(e,T)},l=!1,u=()=>{if(!t.onCommitTick||!r||l)return;a(),i=setTimeout(c,t.commitDelayMs??mu)},f=()=>{l=!0,a()},d=()=>{l=!1,u()},m=()=>{a(),r=null,o=null},w=()=>{if(!r)return;a(),r=null,o=null,t.onDeactivate()},b=()=>{if(!s()){w();return}let x=n.getSelection()?.focusNode??null;if(!x)return;if(!e.contains(x)){w();return}let v=vn(x,t.isEditableBlock);if(!v){if(r?.contains(x)){t.onSelectionChange?.();return}w();return}let P=J(v.path);if(P===o){t.onSelectionChange?.();return}w(),r=v.el,o=P,t.onActivate(v.el,v.path)},g=(T)=>{let[x]=typeof T.getTargetRanges==="function"?T.getTargetRanges():[],v=n.getSelection(),P=v&&v.rangeCount>0&&(v.isCollapsed||!x),E,O,M,h;if(P)({startContainer:E,startOffset:O,endContainer:M,endOffset:h}=v.getRangeAt(0));else if(x)({startContainer:E,startOffset:O,endContainer:M,endOffset:h}=x);else return null;let k=Nt(E,O,t.isEditableBlock),R=Nt(M,h,t.isEditableBlock),N=vn(M,t.isEditableBlock);return k&&R&&N?{endEl:N.el,from:k,to:R}:null},y=(T)=>{let x=T;if(!s())return;let v=g(x),P=Qi({atBlockEnd:v?v.to.offset>=_r(v.endEl):!1,atBlockStart:v?ui(v.from):!1,data:x.data??"",from:v?.from??null,inPropHost:r!==null&&o===null,inputType:x.inputType,to:v?.to??null});switch(P.kind){case"native":return;case"split":{if(x.preventDefault(),!Mt(P.from,P.to)&&!t.onReplaceRange)return;t.onSplit?.();return}case"mergeBackward":{x.preventDefault(),t.onMergeBackward?.(P.at);return}case"mergeForward":{x.preventDefault(),t.onMergeForward?.(P.at);return}case"replaceRange":{x.preventDefault(),t.onReplaceRange?.(P.from,P.to,P.text);return}default:x.preventDefault()}},S=(T)=>{if(!s()||!t.onPropActivate)return;let x=T.target instanceof Element?T.target:null;while(x&&x!==e){if(x.dataset?.jxBoundProp){if(x!==r){if(w(),t.onPropActivate(x))r=x,o=null}return}if(x.dataset?.jxPath)return;x=x.parentElement}},A=(T)=>{T.preventDefault()},C=()=>u();return n.addEventListener("selectionchange",b),e.addEventListener("beforeinput",y),e.addEventListener("input",C),e.addEventListener("compositionstart",f),e.addEventListener("compositionend",d),e.addEventListener("dragstart",A),n.addEventListener("pointerdown",S,!0),{capture:()=>$n(e,t.isEditableBlock),forget:m,isComposing:()=>l,flush:()=>{if(l)return;if(i)a(),c()},placeCaret:(T)=>{let x=It(e,{anchor:T,head:T});if(x)b();return x},restore:(T)=>{let x=It(e,T);if(x)b();return x},stop:()=>{n.removeEventListener("selectionchange",b),e.removeEventListener("beforeinput",y),e.removeEventListener("input",C),e.removeEventListener("compositionstart",f),e.removeEventListener("compositionend",d),e.removeEventListener("dragstart",A),n.removeEventListener("pointerdown",S,!0),w()},sync:b}}var ta=(e,t)=>document.execCommand(e,!1,t);function na(e){let t=window.getSelection();if(!t||!t.rangeCount)return{active:!1,href:null};let n=t.anchorNode;while(n&&n!==e){if(n.nodeType===Node.ELEMENT_NODE&&n.tagName.toLowerCase()==="a"){let r=n;return{active:!0,href:r.dataset.jxHref??r.getAttribute("href")}}n=n.parentNode}return{active:!1,href:null}}function hu(e){let t=window.getSelection();if(!t||!t.rangeCount)return null;let n=t.anchorNode;while(n&&n!==e){if(n.nodeType===Node.ELEMENT_NODE&&n.tagName.toLowerCase()==="a")return n;n=n.parentNode}return null}function ra(e,t){let n=hu(e);if(n)if(t)n.setAttribute("href",t);else{let r=document.createDocumentFragment();while(n.firstChild)r.append(n.firstChild);n.replaceWith(r)}else if(t)ta("createLink",t);nt(e)}function oa(e,t){e.focus(),ta("insertText",`\${${t}}`)}var Nn=new Set(["img","video","source","iframe","audio"]),Mn="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",gu="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3E%3Crect%20width='32'%20height='32'%20fill='%23d0d0d0'/%3E%3C/svg%3E",xu=/(src|poster|image|bg|background|icon|logo|photo|avatar|thumbnail|cover|banner)$/i;function yu(e){return xu.test(e)}var bu=new Set(["p","h1","h2","h3","h4","h5","h6","blockquote","li","dt","dd","th","td","span","strong","em","small","mark","code","abbr","q","sub","sup","time","a","button","label","legend","caption","summary","pre","option"]),wu=new Set(["div","section","article","aside","header","footer","main","nav","figure","figcaption","details","fieldset","form","ul","ol","dl","table"]),sa=["empty-text-placeholder","empty-container-placeholder"];function no(e){if(!e.tagName||e.textContent||e.innerHTML)return null;if(e.$__layout)return null;if(Array.isArray(e.children)&&e.children.length>0)return null;if(bu.has(xe(e.tagName)))return"empty-text-placeholder";if(wu.has(xe(e.tagName)))return"empty-container-placeholder";return null}function Jt(e){return e.replaceAll(/\$\{([^}]+)\}/g,"❪ $1 ❫")}function ia(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);while(t.nextNode()){let n=t.currentNode;if(n.data.includes("❪"))n.data=n.data.replaceAll(/\u276A\s*(.*?)\s*\u276B/g,"${$1}")}}function Eu(e){let t=e.map;return{children:t&&typeof t==="object"?[Se(t)]:[],className:"repeater-perimeter",tagName:"div"}}function Se(e){if(!e||typeof e!=="object")return e;if(Array.isArray(e))return e.map((i)=>Se(i));if(e.$prototype==="Array")return Eu(e);let t=e,n={},r=!1,o=Nn.has(t.tagName||"");if(o){let{attributes:i,src:a}=t,c=i?.src,l=t.poster,u=i?.poster;if(!(a&&a!==""||c&&c!=="")&&!(l&&l!==""||u&&u!==""))r=!0}for(let[i,a]of Object.entries(t))if(i==="state"||i==="$media"||i==="$elements")n[i]=a;else if(i==="$props"&&a&&typeof a==="object"){let c={};for(let[l,u]of Object.entries(a))if(typeof u==="string"&&u.includes("${"))if(yu(l))c[l]=gu;else if(l==="href"||l==="action")c[l]="";else c[l]=Jt(u);else if(u&&typeof u==="object"&&u.$ref){let f=u.$ref,d=f.startsWith("#/state/")?f.slice(8):f;c[l]=`{${d}}`}else c[l]=u;n[i]=c}else if(i==="children")if(Array.isArray(a))n.children=a.map((c)=>Se(c));else if(a&&typeof a==="object"&&a.$prototype==="Array")n.children=[Se(a)];else n.children=Se(a);else if(i==="cases"&&t.$switch&&a&&typeof a==="object"){let c=Object.keys(a);if(c.length>0){let l=a[c[0]];n.children=l&&typeof l==="object"&&!l.$ref?[Se(l)]:[{style:{background:"color-mix(in srgb, var(--danger) 8%, transparent)",border:"1px dashed color-mix(in srgb, var(--danger) 40%, transparent)",borderRadius:"4px",color:"var(--danger)",fontFamily:"'JetBrains Mono', 'SF Mono', 'Fira Code', monospace",fontSize:"11px",fontStyle:"italic",padding:"6px 10px"},tagName:"div",textContent:`[$switch: ${c.join(" | ")}]`}]}}else if(i==="attributes"&&o&&a&&typeof a==="object"){let c=a,l={};for(let[u,f]of Object.entries(c))if(u==="src"||u==="poster")if(typeof f==="string"&&f!==""&&!f.includes("${"))l[u]=f;else r=!0,l[u]=Mn;else if(typeof f==="string"&&f.includes("${")){let d=u==="href"||u==="action";l[u]=d?"":Jt(f)}else if(f&&typeof f==="object"&&f.$ref){let d=f.$ref,m=d.startsWith("#/state/")?d.slice(8):d;l[u]=`{${m}}`}else l[u]=f;n.attributes=l}else if(i==="style")if(a&&typeof a==="object"){let c={};for(let[l,u]of Object.entries(a))if(typeof u!=="string"||!u.includes("${"))c[l]=u;n.style=c}else n.style=a;else if(typeof a==="string"&&a.includes("${"))if((i==="src"||i==="poster")&&Nn.has(t.tagName||""))r=!0,n[i]=Mn;else{let l=i==="src"||i==="href"||i==="poster"||i==="action";n[i]=l?"":Jt(a)}else if(a&&typeof a==="object"&&a.$ref){let c=a.$ref,l=c.startsWith("#/state/")?c.slice(8):c;if((i==="src"||i==="poster")&&Nn.has(t.tagName||""))r=!0,n[i]=Mn;else n[i]=`{${l}}`}else if((i==="src"||i==="poster")&&a===""&&Nn.has(t.tagName||""))r=!0,n[i]=Mn;else n[i]=Se(a);let s=no(n);if(s)n.className=n.className?`${n.className} ${s}`:s;if(r){let i=n.className||"";if(!i.includes("empty-media-placeholder"))n.className=i?`${i} empty-media-placeholder`:"empty-media-placeholder"}return n}var vu={bold:"strong",code:"code",italic:"em",strikethrough:"del",subscript:"sub",superscript:"sup",underline:"u"},Su=["strong","em","u","del","sub","sup","code"],_n="jx-pending-format",aa="jx-pending-format-style";function ku(e){let t=e.parentElement;while(t){if(t.tagName.includes("-"))return t;t=t.parentElement}return null}function Tu(e,t){if(!e)return!1;let n=e.attributes;if(n){if(n[`props.${t}`]!==void 0)return!0;let r=new Set([t.toLowerCase(),on(t).toLowerCase()]);for(let[s,i]of Object.entries(n))if(i!==void 0&&r.has(s.toLowerCase()))return!0;let o=n["data-jx-props"];if(typeof o==="string"&&Au(o,t))return!0}if(Pt.has(t)||t.startsWith("$"))return!1;return e[t]!==void 0}function Au(e,t){try{let n=JSON.parse(e);return typeof n==="object"&&n!==null&&t in n}catch{return!1}}function la(e,t){let r=J(t).replaceAll("\\",String.raw`\\`).replaceAll("'",String.raw`\'`),o=e.querySelector(`[data-jx-path='${r}']`);return o instanceof HTMLElement?o:null}function Cu(e){return{height:e.height,width:e.width,x:e.x,y:e.y}}function ca(e,t,n){let r=t.ownerDocument,o=()=>{let h=n?.getMode?.();return h===void 0||h==="design"||h==="edit"},s=null,i=0,a=(h)=>{let k=window.getSelection();if(!k||!k.rangeCount)return null;let R=k.getRangeAt(0);return h.contains(R.commonAncestorContainer)?R:null},c=()=>{let h=st();if(!h)return;let k=a(h);if(k&&!k.collapsed)s=k.cloneRange()},l=()=>{if(r.querySelector(`#${aa}`))return;let h=r.createElement("style");h.id=aa,h.textContent=`::highlight(${_n}) { background-color: Highlight; color: HighlightText; }`,r.head.append(h)},u=()=>{let h=globalThis.Highlight,k=globalThis.CSS?.highlights;if(!h||!k)return;if(s&&s.startContainer.isConnected)l(),k.set(_n,new h(s.cloneRange()));else k.delete(_n)},f=()=>{globalThis.CSS?.highlights?.delete(_n)},d=()=>{let h=st();if(!h||!h.dataset.jxPath)return null;let k=a(h),R=k??s,N=R?Cu(To(R)):null,B=k?k.collapsed:!0,se=Su.filter((ee)=>Pi(ee,h)),Q=na(h);if(Q.active)se.push("a");return i+=1,{activeTags:se,collapsed:B,kind:"selectionChanged",link:Q,localScope:null,path:U(h.dataset.jxPath),rect:N,seq:i}},m=()=>{if(!de())return;c(),u();let h=d();if(h)e.post(h)},w=(h,k)=>{ia(h),e.post({kind:"editStart",path:k}),Wr(h,k,{onCommit:(R,N,B,se)=>e.post({children:N,kind:"editCommit",path:R,textContent:B,...se?{inPlace:!0}:{}}),onEnd:()=>{f(),s=null,e.post({kind:"editEnd"})},onInsert:(R,N,B)=>e.post({cmd:N,commitData:B,kind:"editInsert",path:R}),onSplit:(R,N,B)=>e.post({after:B,before:N,kind:"editSplit",path:R})}),c(),m()},b=(h,k)=>{let R=n?.getShadowDoc?.();if(!R)return!0;let N=Y(R,h);if(Tu(N,k))return!1;let B=N?.$props?.[k];if(B==null)return!0;if(typeof B!=="string")return!1;return!B.includes("${")},g=(h,k,R)=>{e.post({kind:"editStart",path:k,prop:R}),Wr(h,k,{onCommit:(N,B,se,Q)=>e.post({kind:"editCommitProp",path:N,prop:R,value:se??"",...Q?{inPlace:!0}:{}}),onEnd:()=>{f(),s=null,P.forget(),e.post({kind:"editEnd"})},onInsert:()=>{},onSplit:()=>{}},{plainText:!0})},y=(h)=>{let k=st();if(!k)return;if(Li())return;if(s&&s.startContainer.isConnected&&k.contains(s.commonAncestorContainer)){let R=window.getSelection();k.focus(),R?.removeAllRanges(),R?.addRange(s)}if(h.command==="link")ra(k,h.href);else if(h.command==="insertData")oa(k,h.token);else{let R=vu[h.command];if(R)Ri(R,k)}c(),m()},S=(h)=>{let k=h.dataset.jxBoundProp,R=ku(h),N=R?.dataset.jxPath;if(!k||!R||!N)return!1;let B=U(N);if(!b(B,k))return!1;return g(h,B,k),!0},A=(h,k)=>{let R=fi(t,h,k,je);if(!R)return!1;let[N,B]=k===-1?[h,R.path]:[R.path,h];return P.flush(),e.post({fromPath:N,intoPath:B,kind:"editMerge"}),!0},C=(h,k,R)=>{let N=Dr(t,je),B=J(h.path),se=J(k.path),Q=N.findIndex((ke)=>ke.dataset.jxPath===B),ee=N.findIndex((ke)=>ke.dataset.jxPath===se);if(Q===-1||ee===-1||ee<=Q)return!1;let We=N.slice(Q+1,ee).map((ke)=>U(ke.dataset.jxPath));return P.flush(),e.post({between:We,from:h,kind:"editRangeReplace",text:R,to:k}),!0},T=()=>c(),x=()=>c(),v=()=>c(),P=ea(t,{getMode:()=>n?.getMode?.()??"edit",isEditableBlock:je,onActivate:(h,k)=>w(h,k),onDeactivate:()=>{if(de())he()},onCommitTick:()=>Di(),onMergeBackward:(h)=>A(h.path,-1),onMergeForward:(h)=>A(h.path,1),onReplaceRange:(h,k,R)=>C(h,k,R),onPropActivate:S,onSelectionChange:()=>m(),onSplit:()=>ji()}),E=(h)=>Ki(h),O=()=>{if(Ji())zr()};t.addEventListener("keydown",E),t.addEventListener("input",O),r.addEventListener("mouseup",T,!0),r.addEventListener("keyup",x,!0),r.addEventListener("blur",v,!0);let M=e.onMessage((h)=>{if(h.kind==="applyFormat"){y(h.intent);return}if(h.kind==="openSlash"){qr({anchored:!1});return}if(h.kind==="flushEdits"){P.flush(),e.post({kind:"flushComplete",reqId:h.reqId});return}if(h.kind==="endEdit"){if(de())he();return}if(h.kind!=="enterEdit")return;if(!o())return;if(h.prop!==void 0){let N=la(t,h.path)?.querySelector(`[data-jx-bound-prop="${CSS.escape(h.prop)}"]`);if(N)S(N);return}let k=la(t,h.path);if(k&&je(k))P.placeCaret({offset:h.offset??0,path:h.path})});return()=>{if(t.removeEventListener("keydown",E),t.removeEventListener("input",O),r.removeEventListener("mouseup",T,!0),r.removeEventListener("keyup",x,!0),r.removeEventListener("blur",v,!0),P.stop(),M(),f(),s=null,de())he()}}var Pu=new Set(["ArrowUp","ArrowDown","Enter","Escape"]);function ua(e,t){let n=!1,r=null,o=null,s={dismiss:()=>{if(!n)return;n=!1,o=null,e.post({kind:"slashDismiss"})},isOpen:()=>n,show:(l,u,f)=>{if({onSelect:r}=f,n&&u===o)return;n=!0,o=u;let d=ne(l);e.post({filter:u,kind:"slashShow",rect:{height:d.height,width:d.width,x:d.left,y:d.top},...f.showFilter===!0?{showFilter:!0}:{}})}};Fr(s);let i=(l)=>{if(!n||!Pu.has(l.key))return;l.preventDefault(),l.stopPropagation(),e.post({key:l.key,kind:"slashNav"})},a=()=>{if(n)s.dismiss()};t.addEventListener("keydown",i,!0),t.addEventListener("mousedown",a,!0);let c=e.onMessage((l)=>{if(l.kind==="slashSelect"){n=!1,o=null,r?.({...l.cmd});return}if(l.kind==="slashDismissed")n=!1,o=null});return()=>{t.removeEventListener("keydown",i,!0),t.removeEventListener("mousedown",a,!0),c(),Fr({dismiss:()=>{},isOpen:()=>!1,show:()=>{}})}}var fa=["global","canvas","caret","grid","code","dock","palette"];var pp={"commandbar/primary":{admits:["application","document"],note:"document only for Save / Undo / Redo / Open in Browser, by frequency; ≤5 total"},"commandbar/overflow":{admits:["application","project","document"],note:"never selection — the Command Bar is not a selection surface"},"statusbar/project":{admits:["project"],note:"the status bar's left field"},"statusbar/document":{admits:["document"],note:"the status bar's centre field"},"statusbar/selection":{admits:["selection"],note:"the status bar's right field"},"context/element":{admits:["selection"],note:"the canvas element menu acts on a selection"},"context/file":{admits:["project"],note:"a file row addresses the project's file set"},"context/layer":{admits:["selection"],note:"an outline row IS a selection"},"context/tab":{admits:["document"],note:"a tab addresses one document"},"context/pane":{admits:["document"],note:"a pane hosts one document"},blockbar:{admits:["selection"],note:"the floating bar owns selection-scoped verbs"},"blockbar/format":{admits:["selection"],note:"the bar's inline-format cluster — a range inside the selection is still the selection"},"outline/row":{admits:["selection"],note:"row actions act on the row's node"},"settings/menu":{admits:["application","project"],note:"the rail foot's gear menu — the settings family. It is a MENU, not a pinned slot, so it "+"may host two levels for the reason commandbar/overflow does: a menu prints each row's own name, chord and gate, and draws a divider where the level changes. The rail's PINNED groups stay single-level, in PANEL_PLACEMENT_MATRIX"},palette:{admits:["application","project","document","selection"],note:"the level-agnostic surface; it groups rows by level"},never:{admits:["application","project","document","selection"],note:"keyboard- and API-only; no rendered surface to be misplaced in"}};var Ru=["mod","ctrl","alt","shift"],$u={mod:"mod",cmd:"mod",command:"mod",meta:"mod",super:"mod",ctrl:"ctrl",control:"ctrl",alt:"alt",opt:"alt",option:"alt",shift:"shift"},Nu={up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",esc:"escape",space:" ",spacebar:" ",del:"delete",plus:"=",return:"enter"};function Mu(e){return[...Ru.filter((n)=>e[n]),e.key].join("+")}function _u(e){return/^Digit(\d)$/.exec(e??"")?.[1]}function da(e,t){let n=_u(e.code)??e.key.toLowerCase();if($u[n])return"";let r={mod:t?e.metaKey:e.ctrlKey,ctrl:t?e.ctrlKey:!1,alt:e.altKey,shift:e.shiftKey,key:Nu[n]??n};return Mu(r)}var gp=["global",...fa.filter((e)=>e!=="global"&&e!=="palette")];var Ou=["caret","global"],Du=["canvas","global"],Lu=["global"],On={chords:[],mac:!1};function Iu(e){if(!(e instanceof HTMLElement))return!1;return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"}function Ju(e,t){if(e)return Ou;return t==="preview"?Lu:Du}function ju(e,t=On,n=!1,r="design"){if(Iu(e.target))return!1;let o=da(e,t.mac);if(!o)return!1;let s=Ju(n,r);return t.chords.some((i)=>i.chord===o&&s.includes(i.scope))}function Hu(e){return{altKey:e.altKey,code:e.code,ctrlKey:e.ctrlKey,key:e.key,metaKey:e.metaKey,shiftKey:e.shiftKey}}function pa(e,t=document,n=()=>!1,r=()=>On,o=()=>"design"){let s=(i)=>{if(!ju(i,r(),n(),o()))return;i.preventDefault(),e.post({event:Hu(i),kind:"forwardKey"})};return t.addEventListener("keydown",s,!0),()=>t.removeEventListener("keydown",s,!0)}function Fu(e){return JSON.parse(JSON.stringify(e))}function Dn(e){return e===void 0||e===null?e:Fu(e)}function it(e,t){let n=e;for(let r of t){if(n==null)return;n=n[r]}return n}function at(e){if(Array.isArray(e))throw TypeError("Cannot insert into a children array; parentPath must point at a node");if(!e.children)e.children=[];if(!Array.isArray(e.children))throw TypeError("Cannot insert into mapped-array children; edit the map template instead");return e.children}function ro(e,t){switch(t.op){case"set-key":{let n=it(e,t.path);if(!n)throw Error(`doc-op-node-not-found:${t.path.join("/")}`);let r=n;if(t.value===void 0)delete r[t.key];else r[t.key]=Dn(t.value);return}case"insert-child":{let n=it(e,t.parentPath);at(n).splice(t.index,0,Dn(t.node));return}case"remove-child":{let n=it(e,t.parentPath);at(n).splice(t.index,1);return}case"set-child":{let n=it(e,t.parentPath);at(n).splice(t.index,1,Dn(t.node));return}case"move-child":{Wu(t);let n=it(e,t.fromParentPath),r=it(e,t.toParentPath),o=at(n),s=at(r),[i]=o.splice(t.fromIndex,1);s.splice(t.toIndex,0,i);return}default:break}throw Error(`unknown-doc-op:${t.op}`)}function Wu(e){let t=[...e.fromParentPath,"children",e.fromIndex],n=e.toParentPath;if(n.length>=t.length&&t.every((r,o)=>r===n[o]))throw Error(`doc-op-move-into-self:${n.join("/")}`)}function lt(e){if(!e||typeof e!=="object")return e;if(Array.isArray(e))return e.map((n)=>lt(n));let t={};for(let[n,r]of Object.entries(e)){if(n.startsWith("on")&&Po(r))continue;if(n==="children")t.children=Array.isArray(r)?r.map((o)=>lt(o)):lt(r);else if(n==="cases"&&typeof r==="object"){let o={};for(let[s,i]of Object.entries(r))o[s]=lt(i);t.cases=o}else if(n==="state"&&typeof r==="object"&&r!==null){let o={};for(let[s,i]of Object.entries(r)){if(i&&typeof i==="object"&&i.timing==="server")continue;o[s]=i}t.state=o}else if(n==="style"||n==="attributes"||n==="$media")t[n]=r;else t[n]=r}return t}var oo=new WeakMap,Ln=new Set;function so(e,t,n){let r=Y(e,t);if(r===void 0)throw Error(`iframe-patch-node-not-found:${t.join("/")}`);let o=typeof r==="string"?r:Se(lt(r)),{result:s,stop:i}=gn(()=>ue(o,n.defs,{_path:Bu(t,n),onNodeCreated:jr(n.mapperCtx)}));if(Ln.add(i),s instanceof HTMLElement)oo.set(s,i);return s}function io(e){let t=[e,...e.querySelectorAll("*")];for(let n of t){if(!(n instanceof HTMLElement))continue;pn(n);let r=oo.get(n);if(r)r(),Ln.delete(r),oo.delete(n)}}function ma(){for(let e of Ln)e();Ln.clear()}function Bu(e,t){let{mapperCtx:n}=t;if(n.layoutWrapped&&n.pageContentPrefix&&e[0]==="children"){let[,r]=e;return typeof r==="number"?[...n.pageContentPrefix,r+(n.pageContentOffset??0),...e.slice(2)]:[...n.pageContentPrefix,...e.slice(1)]}return e}function xa(e,t,n,r,o){for(let i of t)ro(e,i);if(!o?.length){for(let i of t)ha(e,i,n,r);return}let s=new Set(o.map((i)=>J(i)));for(let i of t){if(i.op==="set-key"&&s.has(J(i.path))){Ku(e,i.path,n);continue}ha(e,i,n,r)}}function Ku(e,t,n){let r=wa(n,t);if(r)ct(r,Y(e,t))}function ao(e){if(!e)throw Error("iframe-patch-no-render-ctx");return e}function ha(e,t,n,r){switch(t.op){case"set-key":{if(t.key==="style"){Gu(e,t.path,n,r);return}if(t.key==="textContent"){Yu(e,t.path,n);return}if(t.key.startsWith("on"))return;ga(e,t.path,n,ao(r));return}case"insert-child":{Vu(e,t.parentPath,t.index,n,ao(r));return}case"set-child":{ga(e,[...t.parentPath,"children",t.index],n,ao(r));return}case"remove-child":{Uu(e,t.parentPath,t.index,n);return}case"move-child":{qu(e,t.fromParentPath,t.fromIndex,t.toParentPath,t.toIndex,n);return}default:throw Error(`iframe-patch-unsupported-op:${JSON.stringify(t)}`)}}function Vu(e,t,n,r,o){let s=Fe(r,t),i=Y(e,t),a=so(e,[...t,"children",n],o);In(r,t,n,1),ya(s,a,ba(s,i,n)),ct(s,i)}function ga(e,t,n,r){let o=Fe(n,t),s=so(e,t,r);io(o),o.replaceWith(s)}function Uu(e,t,n,r){let o=Fe(r,[...t,"children",n]),s=o.parentElement;if(io(o),o.remove(),In(r,t,n+1,-1),s)ct(s,Y(e,t))}function qu(e,t,n,r,o,s){let i=[...t,"children",n],a=Fe(s,i),c=a.parentElement,l=Fe(s,r);a.remove(),In(s,t,n+1,-1);let u=Jn(l)??r;In(s,u,o,1),zu(a,i,[...u,"children",o]);let f=Y(e,u);if(ya(l,a,ba(l,f,o)),c)ct(c,Y(e,Jn(c)??t));ct(l,f)}function ct(e,t){for(let r of sa)e.classList.remove(r);let n=t?no(t):null;if(n)e.classList.add(n)}function ya(e,t,n){if(n)n.before(t);else e.append(t)}function ba(e,t,n){let r=t?.textContent,o=r!=null&&String(r)!==""?1:0;return e.childNodes[o+n]??null}function In(e,t,n,r){let o=t.length;for(let s of e.querySelectorAll("[data-jx-path]")){let i=Jn(s);if(!i||i.length<o+2||i[o]!=="children")continue;let a=i[o+1];if(typeof a!=="number"||a<n)continue;if(!t.every((l,u)=>i[u]===l))continue;let c=[...i];c[o+1]=a+r,s.dataset.jxPath=J(c)}}function zu(e,t,n){let r=[e,...e.querySelectorAll("[data-jx-path]")];for(let o of r){let s=Jn(o);if(!s||s.length<t.length||!t.every((i,a)=>s[a]===i))continue;o.dataset.jxPath=J([...n,...s.slice(t.length)])}}function Jn(e){let t=e.dataset.jxPath;return t===void 0?null:U(t)}function Gu(e,t,n,r){let o=Fe(n,t),s=Y(e,t),i=r?.defs?.$media??{};wn(o,Xu(s?.style),i)}function Yu(e,t,n){let r=Fe(n,t),o=Y(e,t);r.textContent=Zu(o),ct(r,o)}function Fe(e,t){let n=wa(e,t);if(!n)throw Error(`iframe-patch-element-not-found:${J(t)}`);return n}function wa(e,t){let r=J(t).replaceAll("\\",String.raw`\\`).replaceAll("'",String.raw`\'`),o=e.querySelector(`[data-jx-path='${r}']`);return o instanceof HTMLElement?o:null}function Xu(e){if(!e||typeof e!=="object")return;let t={};for(let[n,r]of Object.entries(e)){if(typeof r==="string"&&r.includes("${"))continue;t[n]=r}return t}function Zu(e){let t=e?.textContent;if(t==null)return"";if(typeof t==="string")return t.includes("${")?Jt(t):t;if(typeof t==="object"&&t.$ref){let n=String(t.$ref);return`{${n.startsWith("#/state/")?n.slice(8):n}}`}return String(t)}function Ea(e){if(e===void 0)return"undefined";let t;try{t=typeof e==="string"?JSON.stringify(e):JSON.stringify(e)??"undefined"}catch{t=String(e)}if(t.length>48)t=`${t.slice(0,47)}…`;return t}function Qu(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&"$expression"in e&&Array.isArray(e.parameters)}function ef(e,t){let n={};for(let r of Object.keys(e))try{let o=e[r];if(typeof o==="function"){if(Qu(t?.[r]))n[r]=o;continue}let s=JSON.stringify(o);n[r]=s===void 0?null:JSON.parse(s)}catch{n[r]=null}return n}function tf(e,t,n){if(!n||n.length===0)return e;let r=t,o=e;for(let s of n){if(!r||typeof r!=="object")break;let i=r;if(i.$prototype==="Array"&&s==="map"){let a=i.items,c=a&&typeof a==="object"&&"$ref"in a?G(a.$ref,o):a;if(Array.isArray(c)&&c.length>0){let l;try{l=structuredClone(c[0])}catch{l=null}let u=Object.create(o);u.$map={index:0,item:l},u["$map/item"]=l,u["$map/index"]=0,o=u}}r=i[s]}return o}function va(e,t,n,r){let o=n&&typeof n==="object"?n.state??null:null;return e.map(({id:s,node:i})=>{let a=new Map,c;try{c=tf(ef(t,o),n,r)}catch(l){return{error:l instanceof Error?l.message:String(l),id:s,values:[]}}try{if(!i||typeof i!=="object"||!("operator"in i))throw Error("not an expression node");return Z(i,c,null,void 0,{report:(l,u)=>a.set(l.join("/"),Ea(u))}),{id:s,values:[...a.entries()]}}catch(l){return{error:l instanceof Error?l.message:String(l),id:s,values:[...a.entries()]}}})}function Sa(e){let t={};for(let n of Object.keys(e))try{let r=e[n];if(typeof r==="function")continue;let o=JSON.stringify(r);if(o===void 0){t[n]=null;continue}if(o.length>256000){t[n]="[large value omitted]";continue}t[n]=JSON.parse(o)}catch{t[n]=null}return t}var ka={"jx-ui:/behaviors/color-area.ts":()=>(K("jqhna8zy"),import("./chunks/color-area-jqhna8zy.js")),"jx-ui:/behaviors/color-field.ts":()=>(K("embq5ctg"),import("./chunks/color-field-embq5ctg.js")),"jx-ui:/behaviors/color-slider.ts":()=>(K("1qmw7wqy"),import("./chunks/color-slider-1qmw7wqy.js")),"jx-ui:/behaviors/combobox.ts":()=>(K("773hdzyj"),import("./chunks/combobox-773hdzyj.js")),"jx-ui:/behaviors/dialog.ts":()=>(K("mtm9fq5t"),import("./chunks/dialog-mtm9fq5t.js")),"jx-ui:/behaviors/listbox.ts":()=>(K("s8fkmnq8"),import("./chunks/listbox-s8fkmnq8.js")),"jx-ui:/behaviors/menu.ts":()=>(K("37d07z9m"),import("./chunks/menu-37d07z9m.js")),"jx-ui:/behaviors/number-field.ts":()=>(K("gw7sq8rn"),import("./chunks/number-field-gw7sq8rn.js")),"jx-ui:/behaviors/action-group.ts":()=>(K("2mqby73c"),import("./chunks/action-group-2mqby73c.js")),"jx-ui:/behaviors/popover.ts":()=>(K("8htra4er"),import("./chunks/popover-8htra4er.js")),"jx-ui:/behaviors/select.ts":()=>(K("n3v7gwas"),import("./chunks/select-n3v7gwas.js")),"jx-ui:/behaviors/split.ts":()=>(K("pff8f3ze"),import("./chunks/split-pff8f3ze.js")),"jx-ui:/behaviors/swatch-group.ts":()=>(K("8qh9a3bm"),import("./chunks/swatch-group-8qh9a3bm.js")),"jx-ui:/behaviors/tabs.ts":()=>(K("jwthg40w"),import("./chunks/tabs-jwthg40w.js")),"jx-ui:/behaviors/toolbar.ts":()=>(K("2nnzqhrj"),import("./chunks/toolbar-2nnzqhrj.js")),"jx-ui:/behaviors/tree.ts":()=>(K("h19v1jfz"),import("./chunks/tree-h19v1jfz.js")),"jx-ui:/behaviors/tooltip.ts":()=>(K("fd6g9xy3"),import("./chunks/tooltip-fd6g9xy3.js")),"jx-ui:/behaviors/textfield.ts":()=>(K("spy3hc77"),import("./chunks/textfield-spy3hc77.js")),"jx-ui:/behaviors/toast.ts":()=>(K("4d35zd64"),import("./chunks/toast-4d35zd64.js")),"jx-ui:/behaviors/toast-host.ts":()=>(K("8sjmfed3"),import("./chunks/toast-host-8sjmfed3.js")),"jx-ui:/color.ts":()=>(K("fpezvnkt"),import("./chunks/color-fpezvnkt.js")),"jx-ui:/icons.ts":()=>(K("qbh8akb1"),import("./chunks/icons-qbh8akb1.js"))};var nf;function Ta(e){nf=new URL("./",e).href}Ta(import.meta.url);for(let[e,t]of Object.entries(ka))Xs(e,t);function jt(e,t,n,r){let o=Xr(e.x,e.y,r);if(!o)return null;return Zr(o,e.y,n,t)}function lo(e){return[...e.dataTransfer?.types??[]].includes("Files")}var rf={type:"block"},uo={},co=null;function Aa(e){return e?{...e,versions:uo}:null}function of(e,t){let n=e.dataset?.jxPath;if(n==null)return null;let r=U(n),o=t?Y(t,r):void 0;return{path:r,rect:He(e),tagName:(xe(o?.tagName)||e.tagName).toLowerCase()}}function sf(e){if(!(e instanceof Element))return null;if(e.closest("[data-jx-path]"))return null;let t=e.closest("[data-jx-layout-region]");if(!(t instanceof HTMLElement))return null;return{className:typeof t.className==="string"?t.className:"",layoutFile:t.dataset.jxLayoutFile??"",layoutPath:U(t.dataset.jxLayoutPath??"[]"),rect:He(t),tagName:t.tagName.toLowerCase()}}var af=new Set(["style","textContent"]);function lf(e){let t=Ii();if(!t)return!1;for(let n of e){let r;if(n.op==="set-key"){if(af.has(n.key)||n.key.startsWith("on"))continue;r=n.path}else if(n.op==="move-child"){if(r=n.fromParentPath,tt(r,t)||tt(n.toParentPath,t))return!0;continue}else r=n.parentPath;if(tt(r,t))return!0}return!1}var cf=2,uf=5000,ff=500;function df(e){let{channel:t,container:n}=e;uo={},co=null;let r=null,o=null,s=-1,i=null,a=-1,c="design",l=null,u=null,f=On,d=null,m=null,w=-1,b=-1,g=0,y=null,S=n.ownerDocument.defaultView;function A(){if(g&&S)S.cancelAnimationFrame(g);g=0,y=null}function C(){g=0;let p=y?.src??m;if(!S||!y||!p||!i)return;let L=Qr(y.y,S.innerHeight);if(L===0)return;let I=S.scrollY;if(S.scrollBy(0,L*Yi),S.scrollY===I)return;let te=jt(y,p,i,n.ownerDocument);t.post({...y.withCursor?{cursor:{x:y.x,y:y.y}}:{},dragSeq:y.dragSeq,gen:y.gen??w,kind:"dragOver",preview:te}),g=S.requestAnimationFrame(C)}function T(p,L,I){if(!S||Qr(p.y,S.innerHeight)===0){A();return}if(y={dragSeq:L,withCursor:I!=null,x:p.x,y:p.y,...I?{gen:I.gen,src:I.src}:{}},!g)g=S.requestAnimationFrame(C)}let x=Gi(t,n.ownerDocument,{getGen:()=>a,getMode:()=>c,getShadowDoc:()=>i}),v=(p)=>{if(c!=="design"&&c!=="edit")return;let L=sf(p.target);if(L)t.post({hit:L,kind:"layoutHit"})};n.ownerDocument.addEventListener("click",v,!0);let P=pa(t,n.ownerDocument,de,()=>f,()=>c),E=ca(t,n,{getMode:()=>c,getShadowDoc:()=>i}),O=ua(t,n.ownerDocument),M=xi(n),h=30000,k=-1;function R(){let p=n.querySelectorAll("[data-jx-popover][data-jx-popover-open], dialog[data-jx-dialog-open]"),L=ne(n),I=0;for(let te of p)I=Math.max(I,ne(te).bottom-L.top);return I}function N(){let p=Math.max(n.scrollHeight,R()),L=Math.min(p,h);if(L>0&&Math.abs(L-k)>=1){k=L;let I=n.firstElementChild,te=I instanceof HTMLElement&&I.dataset.jxDefinitionRoot!==void 0;t.post({fragment:te,height:L,kind:"contentHeight"}),Be()}}let B=S?.ResizeObserver,se=B?new B(()=>N()):null,Q=n.ownerDocument,ee=0,We=0,ke=0,fo="",ut=new Map;function Ca(){let p=Date.now();for(let[L,I]of ut)if(I<=p)ut.delete(L);return ut.size}function Pa(){return{animations:typeof Q.getAnimations==="function"?Q.getAnimations().filter((L)=>L.playState==="running").length:0,fonts:Q.fonts?Q.fonts.status==="loaded":!0,gen:a,images:Ca(),kind:"idle"}}function po(){ee=0;let p=Pa(),L=`${p.gen}|${p.fonts}|${p.animations}|${p.images}`,I=L!==fo;if(I)fo=L,t.post(p);if(We=p.fonts&&p.animations===0&&p.images===0?I?1:We+1:0,We>=cf){N();return}if(Date.now()>=ke)return;ee=S?S.requestAnimationFrame(po):0}function Be(){if(We=0,ke=Date.now()+uf,!ee&&S)ee=S.requestAnimationFrame(po)}let mo=(p)=>{if(p.target instanceof HTMLImageElement)ut.set(p.target,Date.now()+ff),Be()},ho=(p)=>{if(p.target instanceof HTMLImageElement&&ut.delete(p.target))Be()};n.addEventListener("error",mo,!0),n.addEventListener("load",ho,!0),Be(),se?.observe(n);let go=(p)=>{if(c==="preview"){if(p.ctrlKey||p.metaKey)p.preventDefault();return}p.preventDefault(),t.post({ctrlKey:p.ctrlKey,deltaX:p.deltaX,deltaY:p.deltaY,kind:"forwardWheel",metaKey:p.metaKey,shiftKey:p.shiftKey,x:p.clientX,y:p.clientY})};n.ownerDocument.addEventListener("wheel",go,{passive:!1});let Ra=300,xo=0,yo=(p,L)=>{p.preventDefault(),p.stopPropagation();let I={x:p.clientX,y:p.clientY},te=n.ownerDocument,D=Xr(I.x,I.y,te),ge=D?of(D,i):null,Ft=i&&D?Zr(D,I.y,i,rf):null;if(L==="fileDragOver"){if(p.dataTransfer)p.dataTransfer.dropEffect="copy";t.post({hit:ge,kind:"fileDragOver",preview:Ft});return}t.post({files:[...p.dataTransfer?.files??[]],hit:ge,kind:"fileDrop",preview:Ft})},Ht=(p)=>{if(!m){if(lo(p)){yo(p,"fileDragOver");return}let te=Date.now();if(te-xo>=Ra)xo=te,t.post({kind:"nativeDragEnter"});return}if(p.preventDefault(),p.dataTransfer)p.dataTransfer.dropEffect="move";let L={x:p.clientX,y:p.clientY},I=i?jt(L,m,i,n.ownerDocument):null;t.post({cursor:L,dragSeq:b,gen:w,kind:"dragOver",preview:I}),T(L,b)},bo=(p)=>{if(!m){if(lo(p))yo(p,"fileDrop");return}p.preventDefault();let L={x:p.clientX,y:p.clientY},I=i?jt(L,m,i,n.ownerDocument):null;t.post({dragSeq:b,gen:w,instruction:I?.instruction??null,kind:"dropResult",targetPath:I?.targetPath??null}),m=null,w=-1,b=-1,A()},wo=(p)=>{if(!m&&lo(p)&&!p.relatedTarget)t.post({kind:"fileDragLeave"})};n.ownerDocument.addEventListener("dragenter",Ht,!0),n.ownerDocument.addEventListener("dragover",Ht,!0),n.ownerDocument.addEventListener("dragleave",wo,!0),n.ownerDocument.addEventListener("drop",bo,!0);let $a=t.onMessage((p)=>{if(p.kind==="measure"){let{hidden:D,hits:ge}=zi(p.paths,n.ownerDocument);t.post({hidden:D,hits:ge,kind:"geometry",reqId:p.reqId});return}if(p.kind==="evalExpr"){let D=p.gen===a&&d&&i?va(p.exprs,d.defs,i,p.contextPath):[];t.post({gen:p.gen,kind:"evalResult",reqId:p.reqId,results:D});return}if(p.kind==="patch"){let{gen:D}=p;if(D<a){t.post({gen:D,kind:"patchError",message:"patch-behind-render"});return}if(D>a||!i||!d){t.post({gen:D,kind:"patchError",message:"patch-ahead-of-render"});return}let ge=new Set((p.echoPaths??[]).map((Me)=>J(Me))),Ft=ge.size===0?p.forwardOps:p.forwardOps.filter((Me)=>!(Me.op==="set-key"&&ge.has(J(Me.path)))),Eo=de()&&lf(Ft),vo=Eo?$n(n,je):null;if(Eo)he();try{if(xa(i,p.forwardOps,n,d,p.echoPaths),_t(n,l),et(n,u),vo)It(n,vo);t.post({gen:D,kind:"patchComplete"}),Be()}catch(Me){t.post({gen:D,kind:"patchError",message:String(Me?.message??Me)})}return}if(p.kind==="styleUpdate"){if(p.gen!==a||!i)return;i.style=p.style;let D=n.firstElementChild;if(D instanceof HTMLElement)wn(D,p.style,i.$media??{});return}if(p.kind==="dragStart"){m=p.src,w=p.gen,b=p.dragSeq;return}if(p.kind==="dragEnd"||p.kind==="dragCancel"){m=null,w=-1,b=-1,A();return}if(p.kind==="dragMove"){let D=m&&i?jt(p.cursor,m,i,n.ownerDocument):null;t.post({dragSeq:p.dragSeq,gen:w,kind:"dragOver",preview:D}),T(p.cursor,p.dragSeq);return}if(p.kind==="drop"){let D=m&&i?jt(p.cursor,m,i,n.ownerDocument):null;t.post({dragSeq:p.dragSeq,gen:w,instruction:D?.instruction??null,kind:"dropResult",targetPath:D?.targetPath??null}),m=null,w=-1,b=-1,A();return}if(p.kind==="assetVersions"){uo=p.versions;let D=Aa(co);if(D)xn((ge)=>$t(ge,D));return}if(p.kind==="keymap"){f={chords:p.chords,mac:p.mac};return}if(p.kind==="setColorScheme"){Jr(n.ownerDocument,p.scheme);return}if(p.kind==="setPopoverOpen"){if(c==="preview")return;l=p.path===null?null:J(p.path),_t(n,l),et(n,u),N();return}if(p.kind==="setDialogOpen"){if(c==="preview")return;u=p.path===null?null:J(p.path),et(n,u),N();return}if(p.kind==="redefineElement"){ii(p.doc,p.base);return}if(p.kind==="setLocale"){let D=n.ownerDocument.documentElement;if(p.locale===null)D.removeAttribute("lang"),D.removeAttribute("dir");else D.setAttribute("lang",p.locale),D.setAttribute("dir",p.dir);return}if(p.kind==="siteStyleUpdate"){Ir(p.siteStyle,p.media);return}if(p.kind!=="render"||p.gen<s)return;if(Jr(n.ownerDocument,p.colorScheme??null),de())he();s=p.gen,co=p.assets??null,Oi(p.editableTags??null);let{gen:L,mapperCtx:I}=p,te=p.shadowDoc;(async()=>{try{if(ma(),o?.(),o=null,r?.dispose(),ni(n.ownerDocument),r=await yi({assets:Aa(p.assets??null),container:n,doc:p.doc,docBase:p.docBase,mapperCtx:{arrayPaths:new Set(I.arrayPaths),canvasMode:I.canvasMode,layoutWrapped:I.layoutWrapped,pageContentOffset:I.pageContentOffset,pageContentPrefix:I.pageContentPrefix},diffMarks:p.diffMarks??null,mode:p.mode,popoverOpen:p.popoverOpen?J(p.popoverOpen):null,dialogOpen:p.dialogOpen?J(p.dialogOpen):null,siteStyle:p.siteStyle,...p.allowAutoRequests?{allowAutoRequests:!0}:{}}),L===s){l=p.popoverOpen?J(p.popoverOpen):null,u=p.dialogOpen?J(p.dialogOpen):null,_t(n,l),et(n,u),i=te,d=r.ctx,a=L,c=p.mode,t.post({gen:L,kind:"renderComplete"}),Be();let D=r.ctx.defs;o=Ws(()=>{try{t.post({gen:L,kind:"dataScope",scope:Sa(D)})}catch{}}),N()}}catch(D){t.post({gen:L,kind:"renderError",message:String(D?.message??D)})}})()});return t.post({kind:"ready"}),()=>{if($a(),x(),P(),E(),O(),M(),ee&&S)S.cancelAnimationFrame(ee);ee=0,n.removeEventListener("error",mo,!0),n.removeEventListener("load",ho,!0),A(),se?.disconnect(),n.ownerDocument.removeEventListener("click",v,!0),n.ownerDocument.removeEventListener("wheel",go),n.ownerDocument.removeEventListener("dragenter",Ht,!0),n.ownerDocument.removeEventListener("dragleave",wo,!0),n.ownerDocument.removeEventListener("dragover",Ht,!0),n.ownerDocument.removeEventListener("drop",bo,!0),o?.(),r?.dispose()}}function pf(e){let t=new URLSearchParams(e.location.search);Hs(t.get("rpcToken"));let n=t.get("parentOrigin"),r=n||"*";if(!n)console.warn("[jx-canvas] no parentOrigin in iframe URL — accepting messages from any origin (token-gated). "+"The parent origin did not round-trip; the channel relies on the shared token alone.");let o=e.document.querySelector("#jx-canvas-root")??e.document.body,s=ko({acceptOrigin:r,source:e,target:e.parent,targetOrigin:r,token:t.get("token")||""});return df({channel:s,container:o})}if(typeof window<"u"&&window.parent!==window)pf(window);export{cf as IDLE_QUIET_FRAMES,uf as IDLE_WATCH_MAX_MS,ff as IMAGE_RETRY_WINDOW_MS,pf as bootCanvasIframe,of as fileDropHitFor,lo as isExternalFileDrag,sf as layoutHitFor,lf as patchDisturbsActiveEdit,df as startCanvasIframe};
|
|
313
313
|
|
|
314
|
-
//# debugId=
|
|
314
|
+
//# debugId=A47CEE4258DF3BA464756E2164756E21
|
|
315
315
|
//# sourceMappingURL=iframe-entry.js.map
|
package/dist/manifest.json
CHANGED
|
@@ -89,67 +89,67 @@
|
|
|
89
89
|
"dist/chunks/studio-01qza1n3.js",
|
|
90
90
|
"dist/chunks/studio-03wwfvyt.js",
|
|
91
91
|
"dist/chunks/studio-0bbxhhce.js",
|
|
92
|
-
"dist/chunks/studio-0k9mvpgj.js",
|
|
93
|
-
"dist/chunks/studio-0scebvb9.js",
|
|
94
92
|
"dist/chunks/studio-1a99w39s.js",
|
|
93
|
+
"dist/chunks/studio-1q6amtph.js",
|
|
95
94
|
"dist/chunks/studio-1wvfxkyy.js",
|
|
96
|
-
"dist/chunks/studio-
|
|
97
|
-
"dist/chunks/studio-
|
|
98
|
-
"dist/chunks/studio-
|
|
99
|
-
"dist/chunks/studio-
|
|
100
|
-
"dist/chunks/studio-
|
|
101
|
-
"dist/chunks/studio-
|
|
95
|
+
"dist/chunks/studio-3ck2a5c4.js",
|
|
96
|
+
"dist/chunks/studio-4fde4a0x.js",
|
|
97
|
+
"dist/chunks/studio-4jj9gme2.js",
|
|
98
|
+
"dist/chunks/studio-4m50vh74.js",
|
|
99
|
+
"dist/chunks/studio-4r0sjtx8.js",
|
|
100
|
+
"dist/chunks/studio-5d7wfmnp.js",
|
|
101
|
+
"dist/chunks/studio-5gs9th4b.js",
|
|
102
|
+
"dist/chunks/studio-5vy2wfm5.js",
|
|
102
103
|
"dist/chunks/studio-7pgy3xaf.js",
|
|
103
|
-
"dist/chunks/studio-
|
|
104
|
-
"dist/chunks/studio-
|
|
105
|
-
"dist/chunks/studio-
|
|
104
|
+
"dist/chunks/studio-7qvs7v0m.js",
|
|
105
|
+
"dist/chunks/studio-84rtc120.js",
|
|
106
|
+
"dist/chunks/studio-8xcwewjq.js",
|
|
107
|
+
"dist/chunks/studio-aekhcdzw.js",
|
|
106
108
|
"dist/chunks/studio-aje966s9.js",
|
|
107
109
|
"dist/chunks/studio-aqmph6k4.js",
|
|
108
|
-
"dist/chunks/studio-
|
|
109
|
-
"dist/chunks/studio-
|
|
110
|
-
"dist/chunks/studio-
|
|
111
|
-
"dist/chunks/studio-
|
|
112
|
-
"dist/chunks/studio-
|
|
113
|
-
"dist/chunks/studio-
|
|
114
|
-
"dist/chunks/studio-
|
|
110
|
+
"dist/chunks/studio-bftp4n4b.js",
|
|
111
|
+
"dist/chunks/studio-capk0583.js",
|
|
112
|
+
"dist/chunks/studio-cbr9czkn.js",
|
|
113
|
+
"dist/chunks/studio-chdmwwzw.js",
|
|
114
|
+
"dist/chunks/studio-cp1gbff9.js",
|
|
115
|
+
"dist/chunks/studio-cqmtbg2p.js",
|
|
116
|
+
"dist/chunks/studio-e47215hh.js",
|
|
115
117
|
"dist/chunks/studio-edbtvcd1.js",
|
|
116
|
-
"dist/chunks/studio-eh0rac07.js",
|
|
117
118
|
"dist/chunks/studio-ery42sqr.js",
|
|
118
119
|
"dist/chunks/studio-evwgp1ym.js",
|
|
119
|
-
"dist/chunks/studio-
|
|
120
|
+
"dist/chunks/studio-fbx6twps.js",
|
|
120
121
|
"dist/chunks/studio-fqq890ap.js",
|
|
121
|
-
"dist/chunks/studio-
|
|
122
|
-
"dist/chunks/studio-
|
|
123
|
-
"dist/chunks/studio-
|
|
122
|
+
"dist/chunks/studio-fthwn4kf.js",
|
|
123
|
+
"dist/chunks/studio-g8dsj3d2.js",
|
|
124
|
+
"dist/chunks/studio-ge5fqjth.js",
|
|
125
|
+
"dist/chunks/studio-gjknvzam.js",
|
|
124
126
|
"dist/chunks/studio-gp02nqnw.js",
|
|
125
|
-
"dist/chunks/studio-
|
|
127
|
+
"dist/chunks/studio-hnvnfbdv.js",
|
|
126
128
|
"dist/chunks/studio-k1wvtp03.js",
|
|
127
|
-
"dist/chunks/studio-
|
|
129
|
+
"dist/chunks/studio-mk00zd5d.js",
|
|
128
130
|
"dist/chunks/studio-n78gjfy8.js",
|
|
129
131
|
"dist/chunks/studio-nbxqcgvf.js",
|
|
130
|
-
"dist/chunks/studio-nt06yybj.js",
|
|
131
|
-
"dist/chunks/studio-p7c1agz0.js",
|
|
132
132
|
"dist/chunks/studio-pwqfmt4p.js",
|
|
133
|
+
"dist/chunks/studio-qa73881a.js",
|
|
133
134
|
"dist/chunks/studio-r3kaka4d.js",
|
|
135
|
+
"dist/chunks/studio-rmn2dz59.js",
|
|
136
|
+
"dist/chunks/studio-rr4xkv81.js",
|
|
134
137
|
"dist/chunks/studio-semd1s8s.js",
|
|
135
|
-
"dist/chunks/studio-skzanb0k.js",
|
|
136
|
-
"dist/chunks/studio-spf2skgc.js",
|
|
137
138
|
"dist/chunks/studio-st75kn99.js",
|
|
138
139
|
"dist/chunks/studio-sxc0zvpt.js",
|
|
139
140
|
"dist/chunks/studio-t1eedsyx.js",
|
|
141
|
+
"dist/chunks/studio-tmeq6mjb.js",
|
|
140
142
|
"dist/chunks/studio-tp642n5g.js",
|
|
141
|
-
"dist/chunks/studio-tw7rre6s.js",
|
|
142
143
|
"dist/chunks/studio-tzegmy4w.js",
|
|
143
144
|
"dist/chunks/studio-vavmwshr.js",
|
|
144
|
-
"dist/chunks/studio-
|
|
145
|
-
"dist/chunks/studio-
|
|
146
|
-
"dist/chunks/studio-
|
|
147
|
-
"dist/chunks/studio-xta2vxp6.js",
|
|
148
|
-
"dist/chunks/studio-xy3tv3az.js",
|
|
145
|
+
"dist/chunks/studio-x5g1xk77.js",
|
|
146
|
+
"dist/chunks/studio-xg1942as.js",
|
|
147
|
+
"dist/chunks/studio-xkfs0dp2.js",
|
|
149
148
|
"dist/chunks/studio-y7jehjrp.js",
|
|
150
149
|
"dist/chunks/studio-yr04mv2j.js",
|
|
151
150
|
"dist/chunks/studio-zd4kayn2.js",
|
|
152
|
-
"dist/chunks/studio-
|
|
151
|
+
"dist/chunks/studio-zev8ssp1.js",
|
|
152
|
+
"dist/chunks/studio-ztvcxm3w.js"
|
|
153
153
|
],
|
|
154
154
|
"shell": "index.html"
|
|
155
155
|
}
|