graview 0.1.44 → 0.1.45
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/preview/{chunk.2O2THM2R.js → chunk.2EFH63WS.js} +1 -1
- package/dist/preview/{chunk.RVQYXPCM.js → chunk.2JJYGYT2.js} +1 -1
- package/dist/preview/chunk.2LKMNEWZ.js +1 -0
- package/dist/preview/{chunk.P5K7EYDK.js → chunk.2YABX3SC.js} +1 -1
- package/dist/preview/{chunk.5WEEZ7WD.js → chunk.3HSPWSAI.js} +1 -1
- package/dist/preview/chunk.3NMINX5Z.js +1 -0
- package/dist/preview/{chunk.ZN77U6SU.js → chunk.4HYJHGI4.js} +1 -1
- package/dist/preview/{chunk.BA4KQR5H.js → chunk.4KNEBLB7.js} +1 -1
- package/dist/preview/{chunk.UXLJZIYX.js → chunk.4RJZVTW7.js} +1 -1
- package/dist/preview/{chunk.GAN77YDU.js → chunk.4XOWRYRU.js} +1 -1
- package/dist/preview/{chunk.F4DWRBO7.js → chunk.55D33E5A.js} +1 -1
- package/dist/preview/{chunk.YTXEPWVW.js → chunk.5B2LH2SR.js} +1 -1
- package/dist/preview/chunk.5EDA3JHU.js +1 -0
- package/dist/preview/{chunk.V4DR25S4.js → chunk.5O5IJVLN.js} +1 -1
- package/dist/preview/chunk.5R2R364Q.js +1 -0
- package/dist/preview/{chunk.ALFW4ZJQ.js → chunk.63JLXGYX.js} +1 -1
- package/dist/preview/{chunk.7PUFYK3B.js → chunk.64WM4IBI.js} +1 -1
- package/dist/preview/chunk.66JF3UMG.js +1 -0
- package/dist/preview/{chunk.FNXW46U4.js → chunk.6BJBPDF3.js} +72 -72
- package/dist/preview/{chunk.YTZDCIX2.js → chunk.6KWFTSK4.js} +1 -1
- package/dist/preview/{chunk.ATKKTPJS.js → chunk.6MADC6DM.js} +1 -1
- package/dist/preview/{chunk.N5ULWKR4.js → chunk.6RY6OSE6.js} +1 -1
- package/dist/preview/{chunk.HP72LB3B.js → chunk.6SJA4FSW.js} +1 -1
- package/dist/preview/chunk.6SWW6KEV.js +1 -0
- package/dist/preview/chunk.6UIW664O.js +6 -0
- package/dist/preview/chunk.6USUVORO.js +1 -0
- package/dist/preview/{chunk.O4VSQ2ER.js → chunk.6X3G3PWL.js} +1 -1
- package/dist/preview/chunk.7KVWV577.js +1 -0
- package/dist/preview/{chunk.FVHECT47.js → chunk.7ZRFXI73.js} +1 -1
- package/dist/preview/{chunk.AW2T3KFV.js → chunk.AS4CQBOQ.js} +1 -1
- package/dist/preview/{chunk.OAWAUB4P.js → chunk.B6KT6BTG.js} +4 -4
- package/dist/preview/{chunk.7B5BZZBG.js → chunk.BGYY55VO.js} +1 -1
- package/dist/preview/{chunk.B7FZLIAO.js → chunk.BNPQUI3F.js} +1 -1
- package/dist/preview/chunk.BRDAO2OF.js +4 -0
- package/dist/preview/{chunk.EW364363.js → chunk.BS2SJC2P.js} +2 -2
- package/dist/preview/{chunk.HKD5SR45.js → chunk.C2UFMFJ3.js} +2 -2
- package/dist/preview/{chunk.RNUGQRJI.js → chunk.CBUSFM3E.js} +1 -1
- package/dist/preview/chunk.CSDERNQV.js +1 -0
- package/dist/preview/{chunk.JGYGSNQY.js → chunk.DLFWBG33.js} +1 -1
- package/dist/preview/{chunk.LKF4BBCW.js → chunk.DQHPEKWK.js} +1 -1
- package/dist/preview/{chunk.7AEE3VHC.js → chunk.DQOCBKC3.js} +1 -1
- package/dist/preview/{chunk.KERLVJ6I.js → chunk.DX357TZ3.js} +1 -1
- package/dist/preview/{chunk.3M4VCAA3.js → chunk.E37V2EJM.js} +1 -1
- package/dist/preview/{chunk.DLVNW4HU.js → chunk.E4G6DXSB.js} +1 -1
- package/dist/preview/chunk.EAUVEVVO.js +1 -0
- package/dist/preview/chunk.EVW5YY3W.js +1 -0
- package/dist/preview/chunk.F6HMZL65.js +1 -0
- package/dist/preview/{chunk.EJAWDI2V.js → chunk.FCAYURB4.js} +1 -1
- package/dist/preview/{chunk.FIJNKSMQ.js → chunk.FF6DBQMB.js} +1 -1
- package/dist/preview/chunk.FHZBXMXR.js +33 -0
- package/dist/preview/{chunk.D2RK2KJD.js → chunk.FOFLD64U.js} +1 -1
- package/dist/preview/{chunk.YERDP6YF.js → chunk.FPASZ4RD.js} +1 -1
- package/dist/preview/{chunk.WPLKHIO5.js → chunk.FTM64IDI.js} +1 -1
- package/dist/preview/chunk.GEPNIMXW.js +1 -0
- package/dist/preview/{chunk.EYEIDL3T.js → chunk.GER2XRD4.js} +1 -1
- package/dist/preview/chunk.GFLAGZSB.js +1 -0
- package/dist/preview/{chunk.IQWKEGWG.js → chunk.GIYFEGAP.js} +1 -1
- package/dist/preview/chunk.GVY5UQTJ.js +1 -0
- package/dist/preview/{chunk.4EPT2CQG.js → chunk.H7KCWCB4.js} +1 -1
- package/dist/preview/{chunk.MZOIPCDA.js → chunk.HDRD33II.js} +1 -1
- package/dist/preview/{chunk.5JPELFMA.js → chunk.HGTPTRMM.js} +1 -1
- package/dist/preview/chunk.HWCHFQ7O.js +6 -0
- package/dist/preview/{chunk.LUPBT6YM.js → chunk.HZGVEHEN.js} +1 -1
- package/dist/preview/{chunk.VAUG5TGZ.js → chunk.ICCIZDTQ.js} +1 -1
- package/dist/preview/{chunk.REEDZSCG.js → chunk.ICGNIK3Z.js} +2 -2
- package/dist/preview/chunk.II7VTGNC.js +1 -0
- package/dist/preview/{chunk.27ZVVPRZ.js → chunk.IKX4VDTW.js} +1 -1
- package/dist/preview/chunk.IW7YFPGG.js +1 -0
- package/dist/preview/chunk.J7G3AATY.js +14 -0
- package/dist/preview/{chunk.IBWPRK2R.js → chunk.JBW3DI7E.js} +1 -1
- package/dist/preview/{chunk.QJJKITXF.js → chunk.JDMXZFSG.js} +1 -1
- package/dist/preview/{chunk.RYNCEZ6Q.js → chunk.JHIUG25Q.js} +1 -1
- package/dist/preview/{chunk.UZSZPMRC.js → chunk.JLEC3USG.js} +1 -1
- package/dist/preview/{chunk.XPIDPZKS.js → chunk.JLYNMAME.js} +1 -1
- package/dist/preview/{chunk.6BIRNR5P.js → chunk.JR7RDOEP.js} +1 -1
- package/dist/preview/{chunk.LULTKYE3.js → chunk.JSSFA3FC.js} +1 -1
- package/dist/preview/chunk.K46YRA65.js +1 -0
- package/dist/preview/chunk.K6KMLD2B.js +21 -0
- package/dist/preview/{chunk.2CPC3HQI.js → chunk.KBHU54NM.js} +1 -1
- package/dist/preview/{chunk.NBOZPPSM.js → chunk.KRGM25HF.js} +1 -1
- package/dist/preview/chunk.KUUDW7VR.js +1 -0
- package/dist/preview/{chunk.UG23RICT.js → chunk.KWQ7QOHD.js} +1 -1
- package/dist/preview/chunk.L24FCXZ7.js +1 -0
- package/dist/preview/{chunk.H4GHKBMH.js → chunk.L2PI7V4R.js} +1 -1
- package/dist/preview/{chunk.LKXYZK5H.js → chunk.L3FOLN3K.js} +1 -1
- package/dist/preview/{chunk.REOYQTFP.js → chunk.L3FQZCWI.js} +1 -1
- package/dist/preview/{chunk.ZP6PS5Z4.js → chunk.LEO2KWLZ.js} +1 -1
- package/dist/preview/{chunk.TTSNHX3F.js → chunk.LNG3CQNI.js} +1 -1
- package/dist/preview/{chunk.NPS2WN7T.js → chunk.LSLLKICK.js} +1 -1
- package/dist/preview/{chunk.FNF6XQI5.js → chunk.M5GJHVWZ.js} +1 -1
- package/dist/preview/{chunk.JQ7WY2VZ.js → chunk.MGWMGLWE.js} +1 -1
- package/dist/preview/{chunk.6NFR2LYQ.js → chunk.NIVTK2W5.js} +1 -1
- package/dist/preview/chunk.NMIXBH37.js +1 -0
- package/dist/preview/{chunk.KSXB4LDF.js → chunk.OF34OZ4V.js} +1 -1
- package/dist/preview/chunk.OMZ3LDDN.js +1 -0
- package/dist/preview/{chunk.ESU2DD3J.js → chunk.OYHQSXNC.js} +1 -1
- package/dist/preview/{chunk.IIB22IIP.js → chunk.PKUDIWIF.js} +1 -1
- package/dist/preview/{chunk.FUYMLDNJ.js → chunk.PRD3UNJX.js} +1 -1
- package/dist/preview/{chunk.TDCO7LEA.js → chunk.Q7RQC3F7.js} +1 -1
- package/dist/preview/{chunk.ZKBSEUK4.js → chunk.QGVLJTZS.js} +1 -1
- package/dist/preview/chunk.QPCSS322.js +1 -0
- package/dist/preview/{chunk.QNJYXB3U.js → chunk.R2AG4NHQ.js} +1 -1
- package/dist/preview/{chunk.IN4PKQO5.js → chunk.RNEJYIQ7.js} +1 -1
- package/dist/preview/chunk.RPX35VYU.js +1 -0
- package/dist/preview/{chunk.JLOSQ5UY.js → chunk.RYRTKIKB.js} +2 -2
- package/dist/preview/chunk.S5MQVPLF.js +1 -0
- package/dist/preview/{chunk.MFLJIFZD.js → chunk.S6WHA4CW.js} +1 -1
- package/dist/preview/{chunk.3L7OEBJH.js → chunk.SDU76JU6.js} +1 -1
- package/dist/preview/{chunk.RDGFZPKN.js → chunk.SGKPGVBB.js} +1 -1
- package/dist/preview/chunk.SZ34UAQ3.js +2 -0
- package/dist/preview/chunk.T7XH7FVJ.js +1 -0
- package/dist/preview/{chunk.3IUJ4GW7.js → chunk.TBQOSI4J.js} +1 -1
- package/dist/preview/{chunk.Y2MIG2C2.js → chunk.TBSNNOQU.js} +1 -1
- package/dist/preview/{chunk.FBIK4LTM.js → chunk.TOXWNEOQ.js} +2 -2
- package/dist/preview/{chunk.PL2P2OON.js → chunk.UHX4WTM7.js} +1 -1
- package/dist/preview/chunk.UJKT2G6M.js +5 -0
- package/dist/preview/{chunk.OGF6UORU.js → chunk.UKAPFIPJ.js} +1 -1
- package/dist/preview/{chunk.YGX2AE36.js → chunk.UM7GWXEW.js} +1 -1
- package/dist/preview/{chunk.64QDUERE.js → chunk.UNCS63AM.js} +1 -1
- package/dist/preview/{chunk.CDFVEL2Y.js → chunk.URXSZQSF.js} +1 -1
- package/dist/preview/{chunk.P546VMA5.js → chunk.UY7IOVR6.js} +1 -1
- package/dist/preview/{chunk.U3CV5CCL.js → chunk.V5FIZIX2.js} +1 -1
- package/dist/preview/{chunk.DAZEFSWI.js → chunk.VC3BX2ZF.js} +1 -1
- package/dist/preview/{chunk.4WCQWILK.js → chunk.VSAPJAT3.js} +1 -1
- package/dist/preview/{chunk.MWUP5X47.js → chunk.VW2VCPJX.js} +1 -1
- package/dist/preview/chunk.W2RCWPLK.js +1 -0
- package/dist/preview/{chunk.DGXWL4GC.js → chunk.W44VRHKS.js} +2 -2
- package/dist/preview/{chunk.3TBH2FMZ.js → chunk.WAB7UDHU.js} +1 -1
- package/dist/preview/{chunk.OK4FSBHI.js → chunk.WBHM5I3I.js} +1 -1
- package/dist/preview/chunk.WM2LWHTJ.js +1 -0
- package/dist/preview/{chunk.56DR42FA.js → chunk.WPOTEXJZ.js} +1 -1
- package/dist/preview/{chunk.T6S3CEW7.js → chunk.WSTBCWW7.js} +2 -2
- package/dist/preview/{chunk.TJO5Y2OJ.js → chunk.XMCFZD3A.js} +1 -1
- package/dist/preview/chunk.XWAMQPUM.js +25 -0
- package/dist/preview/{chunk.IQ3LUSD6.js → chunk.XXEYRHRG.js} +1 -1
- package/dist/preview/{chunk.7UV7ODXU.js → chunk.Y5ARSVH4.js} +1 -1
- package/dist/preview/{chunk.B2CIQ66N.js → chunk.Z6TMIAAB.js} +1 -1
- package/dist/preview/chunk.ZBR2QY67.js +104 -0
- package/dist/preview/chunk.ZEAH57AZ.js +1 -0
- package/dist/preview/{chunk.JEMQ66FT.js → chunk.ZJ2VS4M4.js} +1 -1
- package/dist/preview/chunk.ZTIF23VF.js +1 -0
- package/dist/preview/index.html +49 -45
- package/dist/preview/page.js +2 -34
- package/package.json +6 -6
- package/dist/preview/chunk.2EXY4AHX.js +0 -117
- package/dist/preview/chunk.3JATXDSP.js +0 -1
- package/dist/preview/chunk.3OKJ4GOA.js +0 -1
- package/dist/preview/chunk.3PNDXNX6.js +0 -1
- package/dist/preview/chunk.4B4DKCS4.js +0 -1
- package/dist/preview/chunk.4JWT6LIS.js +0 -25
- package/dist/preview/chunk.6VIZGLDK.js +0 -1
- package/dist/preview/chunk.7HL7CFXJ.js +0 -1
- package/dist/preview/chunk.7JVBVB4A.js +0 -1
- package/dist/preview/chunk.CSQNDAEK.js +0 -1
- package/dist/preview/chunk.EJOTTZWZ.js +0 -1
- package/dist/preview/chunk.EZRGGPAN.js +0 -1
- package/dist/preview/chunk.GAFYE37S.js +0 -3
- package/dist/preview/chunk.GBCWI2LF.js +0 -2
- package/dist/preview/chunk.HB34VQKQ.js +0 -1
- package/dist/preview/chunk.HKA27VJO.js +0 -1
- package/dist/preview/chunk.IPHWGBZE.js +0 -6
- package/dist/preview/chunk.JUT2VCFW.js +0 -1
- package/dist/preview/chunk.L6FWIQXS.js +0 -1
- package/dist/preview/chunk.LYSHLKAX.js +0 -1
- package/dist/preview/chunk.LYUPJ4VV.js +0 -1
- package/dist/preview/chunk.MOF2D6DV.js +0 -1
- package/dist/preview/chunk.NTFCZYOR.js +0 -1
- package/dist/preview/chunk.OG6GNGTX.js +0 -21
- package/dist/preview/chunk.PSTE3LZL.js +0 -5
- package/dist/preview/chunk.PX6VAZFJ.js +0 -1
- package/dist/preview/chunk.RLMW7DU6.js +0 -1
- package/dist/preview/chunk.URCC626R.js +0 -1
- package/dist/preview/chunk.WE5SA6TP.js +0 -1
- package/dist/preview/chunk.WNYPP52L.js +0 -1
- package/dist/preview/chunk.YE4GZVOX.js +0 -1
- package/dist/preview/chunk.YWVOACSX.js +0 -5
- package/dist/preview/chunk.YYPK7IDM.js +0 -1
- package/dist/preview/chunk.ZZ5F5I3O.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as Ke}from"./chunk.SDO3U72B.js";import{$b as Nn,Fa as Ln,Hc as Gn,J as _n,Ja as gt,Kc as Wn,La as Hn,Nc as Fn,Wa as Dn,ad as Kn,qd as Bn,vd as Fe,wc as jn,wd as ht}from"./chunk.AS4CQBOQ.js";import{a as We,b as _}from"./chunk.AJZBJBMO.js";var uo=We(w=>{"use strict";var kt=Symbol.for("react.transitional.element"),Vr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),Cr=Symbol.for("react.strict_mode"),_r=Symbol.for("react.profiler"),Lr=Symbol.for("react.consumer"),Hr=Symbol.for("react.context"),Dr=Symbol.for("react.forward_ref"),Nr=Symbol.for("react.suspense"),jr=Symbol.for("react.memo"),oo=Symbol.for("react.lazy"),Gr=Symbol.for("react.activity"),Qn=Symbol.iterator;function Wr(e){return e===null||typeof e!="object"?null:(e=Qn&&e[Qn]||e["@@iterator"],typeof e=="function"?e:null)}var ro={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},io=Object.assign,ao={};function ge(e,t,n){this.props=e,this.context=t,this.refs=ao,this.updater=n||ro}ge.prototype.isReactComponent={};ge.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ge.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function so(){}so.prototype=ge.prototype;function Pt(e,t,n){this.props=e,this.context=t,this.refs=ao,this.updater=n||ro}var Rt=Pt.prototype=new so;Rt.constructor=Pt;io(Rt,ge.prototype);Rt.isPureReactComponent=!0;var eo=Array.isArray;function At(){}var M={H:null,A:null,T:null,S:null},lo=Object.prototype.hasOwnProperty;function Tt(e,t,n){var o=n.ref;return{$$typeof:kt,type:e,key:t,ref:o!==void 0?o:null,props:n}}function Fr(e,t){return Tt(e.type,t,e.props)}function Mt(e){return typeof e=="object"&&e!==null&&e.$$typeof===kt}function Kr(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var to=/\/+/g;function Et(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Kr(""+e.key):t.toString(36)}function Br(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(At,At):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function me(e,t,n,o,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case kt:case Vr:a=!0;break;case oo:return a=e._init,me(a(e._payload),t,n,o,r)}}if(a)return r=r(e),a=o===""?"."+Et(e,0):o,eo(r)?(n="",a!=null&&(n=a.replace(to,"$&/")+"/"),me(r,t,n,"",function(u){return u})):r!=null&&(Mt(r)&&(r=Fr(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(to,"$&/")+"/")+a)),t.push(r)),1;a=0;var d=o===""?".":o+":";if(eo(e))for(var s=0;s<e.length;s++)o=e[s],i=d+Et(o,s),a+=me(o,t,n,i,r);else if(s=Wr(e),typeof s=="function")for(e=s.call(e),s=0;!(o=e.next()).done;)o=o.value,i=d+Et(o,s++),a+=me(o,t,n,i,r);else if(i==="object"){if(typeof e.then=="function")return me(Br(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Xe(e,t,n){if(e==null)return e;var o=[],r=0;return me(e,o,"","",function(i){return t.call(n,i,r++)}),o}function qr(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var no=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},$r={map:Xe,forEach:function(e,t,n){Xe(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xe(e,function(){t++}),t},toArray:function(e){return Xe(e,function(t){return t})||[]},only:function(e){if(!Mt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=Gr;w.Children=$r;w.Component=ge;w.Fragment=Ir;w.Profiler=_r;w.PureComponent=Pt;w.StrictMode=Cr;w.Suspense=Nr;w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M;w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return M.H.useMemoCache(e)}};w.cache=function(e){return function(){return e.apply(null,arguments)}};w.cacheSignal=function(){return null};w.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=io({},e.props),r=e.key;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)!lo.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+2];o.children=a}return Tt(e.type,r,o)};w.createContext=function(e){return e={$$typeof:Hr,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Lr,_context:e},e};w.createElement=function(e,t,n){var o,r={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)lo.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var d=Array(a),s=0;s<a;s++)d[s]=arguments[s+2];r.children=d}if(e&&e.defaultProps)for(o in a=e.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return Tt(e,i,r)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:Dr,render:e}};w.isValidElement=Mt;w.lazy=function(e){return{$$typeof:oo,_payload:{_status:-1,_result:e},_init:qr}};w.memo=function(e,t){return{$$typeof:jr,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=M.T,n={};M.T=n;try{var o=e(),r=M.S;r!==null&&r(n,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(At,no)}catch(i){no(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),M.T=t}};w.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()};w.use=function(e){return M.H.use(e)};w.useActionState=function(e,t,n){return M.H.useActionState(e,t,n)};w.useCallback=function(e,t){return M.H.useCallback(e,t)};w.useContext=function(e){return M.H.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e,t){return M.H.useDeferredValue(e,t)};w.useEffect=function(e,t){return M.H.useEffect(e,t)};w.useEffectEvent=function(e){return M.H.useEffectEvent(e)};w.useId=function(){return M.H.useId()};w.useImperativeHandle=function(e,t,n){return M.H.useImperativeHandle(e,t,n)};w.useInsertionEffect=function(e,t){return M.H.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return M.H.useLayoutEffect(e,t)};w.useMemo=function(e,t){return M.H.useMemo(e,t)};w.useOptimistic=function(e,t){return M.H.useOptimistic(e,t)};w.useReducer=function(e,t,n){return M.H.useReducer(e,t,n)};w.useRef=function(e){return M.H.useRef(e)};w.useState=function(e){return M.H.useState(e)};w.useSyncExternalStore=function(e,t,n){return M.H.useSyncExternalStore(e,t,n)};w.useTransition=function(){return M.H.useTransition()};w.version="19.2.8"});var N=We((ka,co)=>{"use strict";co.exports=uo()});var vo=We(et=>{"use strict";var oi=Symbol.for("react.transitional.element"),ri=Symbol.for("react.fragment");function wo(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:oi,type:e,key:o,ref:t!==void 0?t:null,props:n}}et.Fragment=ri;et.jsx=wo;et.jsxs=wo});var Ce=We((Ca,bo)=>{"use strict";bo.exports=vo()});var fe={focusId:null,relation:null,expanded:[],pins:{}},Be=e=>{let t=Number(e);return Number.isFinite(t)?t:null};function te(e){let t=new URLSearchParams;e.focusId&&t.set("focus",e.focusId),e.relation&&t.set("relation",e.relation),e.overview&&t.set("overview","1"),e.zoom&&t.set("zoom","1"),e.past&&t.set("past","1"),e.shown&&e.shown.length>0&&t.set("show",[...e.shown].sort().join(",")),e.selection!==void 0&&e.selection.length>0&&t.set("sel",[...e.selection].sort().join(",")),e.expanded.length>0&&t.set("expand",[...e.expanded].sort().join(","));for(let o of Object.keys(e.pins).sort()){let r=e.pins[o];t.set(`pin.${o}`,`${qe(r.x)},${qe(r.y)}`)}e.pan&&(e.pan.x!==0||e.pan.y!==0)&&t.set("pan",`${qe(e.pan.x)},${qe(e.pan.y)}`);for(let o of Object.keys(e.within??{}).sort()){let r=e.within[o];r.length>0&&t.set(`in.${o}`,r)}e.q&&e.q.trim().length>0&&t.set("q",e.q);let n=t.toString();return n?`#${n}`:"#"}function kr(e){return e&&e.startsWith("agg:")?`aggregate:${e.slice(4)}`:e}function $e(e){let t=e.includes("#")?e.slice(e.indexOf("#")+1):e,n=new URLSearchParams(t),o=Object.create(null);for(let[m,p]of n){if(!m.startsWith("pin."))continue;let[g,v]=p.split(","),k=g===void 0?null:Be(g),y=v===void 0?null:Be(v);k===null||y===null||(o[m.slice(4)]={x:k,y})}let r=Object.create(null);for(let[m,p]of n)!m.startsWith("in.")||p.length===0||(r[m.slice(3)]=p);let i=n.get("view");i&&i.length>0&&r.view===void 0&&(r.view=i);let a=n.get("pan")?.split(",")??[],d=a[0]===void 0?null:Be(a[0]),s=a[1]===void 0?null:Be(a[1]),u=(n.get("sel")??"").split(",").filter(m=>m.length>0).sort(),f=n.get("overview")==="1";return{...u.length>0?{selection:u}:{},...f?{overview:!0}:{},...n.get("zoom")==="1"?{zoom:!0}:{},...n.get("past")==="1"?{past:!0}:{},...n.get("show")?{shown:[...new Set(n.get("show").split(",").filter(Boolean))].sort()}:{},...d!==null&&s!==null?{pan:{x:d,y:s}}:{},...Object.keys(r).length>0?{within:r}:{},...n.get("q")?.trim()?{q:n.get("q")}:{},focusId:kr(n.get("focus")),relation:n.get("relation"),expanded:(n.get("expand")??"").split(",").filter(m=>m.length>0&&(f||!m.startsWith("kind:"))).sort(),pins:o}}function la(e){let t=$e(e);return te(t)==="#"?{...t,overview:!0}:t}function da(e){let t=te(e);return t==="#overview=1"?"":t}function qe(e){return Math.round(e*100)/100}function $n(e,t){return te(e)===te(t)}var qn="edge:";function zn(e){if(!e.startsWith(qn))return null;let t=e.slice(qn.length).split(":");if(t.length!==3)return null;let[n,o,r]=t;if(!n||!o||!r)return null;try{return{kind:decodeURIComponent(n),from:decodeURIComponent(o),to:decodeURIComponent(r)}}catch{return null}}function St(e){let{pan:t,...n}=e;return{...n,pins:{}}}function q(e,t){if(t===e.focusId)return{...e,focusId:t};let n=St(e);return{...n.within?.q!==void 0?ae(n,"q",null):n,focusId:t}}function Un(e,t){return{...e,relation:t}}function ae(e,t,n){let o={...e.within??{}};if(n===null?delete o[t]:o[t]=n,Object.keys(o).length===0){let{within:r,...i}=e;return i}return{...e,within:o}}function pe(e,t){if(t!==e.overview&&(e=St(e)),!t){let n=e.expanded.filter(o=>!o.startsWith("kind:"));return{...e,overview:!1,expanded:n}}return{...e,overview:t}}function ze(e,t){if(t.length===0){let{selection:n,...o}=e;return o}return{...e,selection:[...t]}}function Ve(e,t){if(t!==(e.zoom===!0)&&(e=St(e)),!t){let{zoom:n,...o}=e;return o}return{...e,zoom:!0}}function Ue(e,t){let n=new Set(e.expanded);return n.has(t)?n.delete(t):n.add(t),{...e,expanded:[...n].sort()}}var Ze="aggregate:",Ye="kind:";function wt(e){return`${Ye}${e}`}function ye(e){return e.startsWith(Ye)?e.slice(Ye.length):null}var fa="kinds:beyond";function Pr(e){let t=ye(e);return t?[t]:se(e)}function ne(...e){return`${Ze}${[...e].sort().join("+")}`}function Yn(e){return e.startsWith(Ze)}function se(e){return!Yn(e)||e.includes("|")?[]:e.slice(Ze.length).split("+").filter(Boolean)}function Zn(e,t,n={}){let o=ye(t);if(o!==null&&e.overview&&n.ownPicture!==!0)return Ue(e,t);let r=o!==null?ne(o):t;if(e.zoom&&e.focusId===r&&!(o!==null&&n.carry))return Ve(e,!1);if(o!==null&&n.carry){let i=pe({...q(e,r),relation:null},!1);return ae(Ve(i,!0),"q",n.carry)}return Ve({...q(e,r),relation:null},!0)}function Rr(e,t,n){return ae(pe(q(e,ne(t)),!1),"view",n)}function pa(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Xn="aggregate:";function vt(e){return e.startsWith(Xn)&&e.includes("|")}var bt=e=>e?.off===!0,Tr=e=>e!==void 0&&!bt(e)&&(e.fast!==void 0||e.thinking!==void 0||e.answer!==void 0||e.decide!==void 0||e.complete!==void 0||e.turn!==void 0),Jn=e=>e!==void 0&&!bt(e)&&(e.fast!==void 0||e.decide!==void 0),Mr=e=>e?.suggestOnOpen!==!1&&Jn(e),Or=e=>e?.hoverChips===!0&&Jn(e);var xt={};var fo=_(N(),1),zr={turns:[],outcomes:new Map,busy:!1,pending:null,draft:null,draftNote:null},po=e=>`graview:seat:${e}`;function Ur(e){if(!e)return{};try{let t=sessionStorage.getItem(e);if(!t)return{};let n=JSON.parse(t);return{...Array.isArray(n.turns)?{turns:n.turns}:{},...Array.isArray(n.outcomes)?{outcomes:new Map(n.outcomes)}:{},...n.draft?.drawn?{draft:n.draft}:{}}}catch{return{}}}function Yr(e,t){if(e)try{sessionStorage.setItem(e,JSON.stringify({turns:t.turns.slice(-40),outcomes:[...t.outcomes],draft:t.draft}))}catch{}}function Ot(e){let t=e===null?null:po(e),n={...zr,...Ur(t)},o=new Set,r=(i,a=!0)=>{n=i,a&&Yr(t,n);for(let d of[...o])d()};return{get:()=>n,subscribe(i){return o.add(i),()=>void o.delete(i)},setTurns:i=>r({...n,turns:i(n.turns)}),settle:(i,a)=>r({...n,outcomes:new Map(n.outcomes).set(i,a)}),setBusy:i=>r({...n,busy:i},!1),ask:i=>r({...n,pending:i.trim()||null}),takePending(){let i=n.pending;return i!==null&&r({...n,pending:null},!1),i},setDraft:(i,a=null)=>r({...n,draft:i,draftNote:a})}}function Zr(e){return(0,fo.useSyncExternalStore)(e.subscribe,e.get,e.get)}var mo=_(N(),1),Xr={entries:[],ghost:null,loaded:!1};function yo(e,t){let n=new Map(e.map(o=>[o.id,o]));for(let o of t)n.set(o.id,{...n.get(o.id),...o});return[...n.values()].sort((o,r)=>o.at<r.at?1:o.at>r.at?-1:0)}function Vt(e){let t=Xr,n=new Set,o=r=>{t=r;for(let i of[...n])i()};return{get:()=>t,subscribe:r=>(n.add(r),()=>n.delete(r)),record:r=>{o({...t,entries:yo(t.entries,[r])}),Promise.resolve(e()?.keep?.(r)).catch(i=>{console.warn("The host did not keep an AI interaction:",i)})},setGhost:r=>o({...t,ghost:r}),load:()=>{if(t.loaded)return;o({...t,loaded:!0});let r=e()?.load;r&&Promise.resolve(r()).then(i=>o({...t,entries:yo(t.entries,i)})).catch(i=>{console.warn("The host's AI interactions could not be read:",i)})}}}function Jr(e){return(0,mo.useSyncExternalStore)(e.subscribe,e.get,e.get)}function go(e){return e?.closest?.("[data-graview-pick]")?.getAttribute("data-graview-pick")??null}var Je=_(N(),1),Qe=(0,Je.createContext)(void 0),Qr=()=>(0,Je.useContext)(Qe);var A=_(N(),1),Ie=(0,A.createContext)(null);function So(){return(0,A.useContext)(Ie)}function ei(e,t){let n=So(),o=(0,A.useMemo)(()=>n?n.live.seenBy(t):e,[n,e,t]),r=(0,A.useRef)(0),i=(0,A.useCallback)(a=>o.subscribe(()=>{r.current+=1,a()}),[o]);return(0,A.useSyncExternalStore)(i,()=>r.current,()=>0),o}var ti=Ke(()=>(__graviewPreload(import.meta.url,["./chunk.TI4OSTQV.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.E2AJ7U5Z.js"))),ho,ni=400;function It(e,t,n){let o=(0,A.useContext)(Ie),r=o!==null&&o.owns(e,t),[i,a]=(0,A.useState)(null),[d,s]=(0,A.useState)(ho);(0,A.useEffect)(()=>{if(d||r||i===null)return;let x=!0;return ti().then(V=>{ho=V,x&&s(V)},()=>{}),()=>{x=!1}},[d,r,i]);let[u,f]=(0,A.useState)(0),m=(0,A.useMemo)(()=>r||i===null||i>=e.log.length||!d?void 0:d.askArchived(e,i,n)??d.askDeclaration(n,i),[r,e,i,n,d,u]),p=m&&"waiting"in m?m.waiting:void 0,g=m&&"seq"in m?m:null,[v,k]=(0,A.useState)(void 0);(0,A.useEffect)(()=>{if(!p)return;let x=!0,V=setTimeout(()=>x&&k(p),ni);return p.then(()=>x&&f(O=>O+1)),()=>{x=!1,clearTimeout(V)}},[p]);let y=p!==void 0&&v!==p||g!==null,b=(0,A.useMemo)(()=>{if(r||i===null||i>=e.log.length||!d||y)return null;try{let x=d.pastAt(e,i,n);return{seq:i,at:x.past?.at,store:x}}catch{return null}},[r,e,i,n,d,y,u]),h=(0,A.useRef)(null),E=y?h.current:b;(0,A.useEffect)(()=>{h.current=E},[E]);let P=(0,A.useCallback)(x=>a(x===null?null:x>=e.log.length?Number.POSITIVE_INFINITY:x),[e]),D=(0,A.useCallback)((x,V)=>[e,E?.store].some(O=>O!==void 0&&(O===x||O.seenBy(V)===x)),[e,E]),C=i!==null,G=(0,A.useMemo)(()=>({past:E,open:C,show:P,live:e,host:n,owns:D,archive:g}),[E,C,P,e,n,D,g]);return r?o:G}var xo=e=>`graview:setting:${e}`;function Eo(){return localStorage}function Ao(e,t){try{let n=(t??Eo()).getItem(xo(e.name));if(n!==null&&e.options.some(o=>o.value===n))return n}catch{}return e.initial}function ko(e,t,n){try{(n??Eo()).setItem(xo(e.name),t)}catch{}}function Po(e,t){if(typeof document>"u")return;let n=document.documentElement;if(e.honored==="root-font-size"){n.style.fontSize=t===e.initial?"":t;return}let o=`graview${e.name.replace(/-([a-z0-9])/g,(r,i)=>i.toUpperCase()).replace(/^[a-z]/,r=>r.toUpperCase())}`;t===e.initial?delete n.dataset[o]:n.dataset[o]=t}var L=_(N(),1);function Ct(e){return Fe(e)}var ii=12,ai=4;function si(e,t,n){let o=Ct(t);return e.get(o)??{participant:o,who:t.id??t.kind,at:null,mode:"docked",since:n,trail:[]}}var tt=(e,t)=>t===null||e[e.length-1]===t?e:[...e,t].slice(-ii);function Ro(e,t){let n=e.filter(r=>r.length>0);if(n.length===0)return null;if(n.length<=ai)return n[0];let o=new Set(n.map(r=>t(r)).filter(r=>r!==void 0));return o.size===1?wt([...o][0]):n[0]}function _t(e,t,n){let o=new Map(e);if(t.type==="rest"){for(let[a,d]of e)d.mode!=="asking"&&d.mode!=="docked"&&t.at-d.since>=t.holdMs&&o.set(a,{...d,mode:"docked",at:null,trail:[],say:void 0,confidence:void 0});return o}if(t.author.kind!=="agent")return o;let r=si(e,t.author,t.at),i=a=>o.set(r.participant,{...r,...a,since:t.at});switch(t.type){case"read":{let a=Ro(t.ids,n);return i({at:a,mode:"reading",trail:tt(r.trail,a)}),o}case"about-to-write":case"write":{let a=Ro(t.ids,n);return i({at:a,mode:"writing",trail:tt(r.trail,a),say:void 0,confidence:void 0}),o}case"refused":return i({at:t.where,mode:"refused",say:t.say,confidence:void 0,trail:tt(r.trail,t.where)}),o;case"asking":return i({at:t.where??r.at,mode:"asking",say:t.say,...t.confidence!==void 0?{confidence:t.confidence}:{confidence:void 0},trail:tt(r.trail,t.where)}),o;case"said":return i({say:t.say,...t.confidence!==void 0?{confidence:t.confidence}:{confidence:void 0},...t.caption?{caption:t.caption}:{}}),o;case"over":return i({over:t.over}),o;case"home":return i({at:null,mode:"docked",trail:[],say:void 0,confidence:void 0,over:null}),o;default:return o}}var To="graview:session";function Mo(e){let t=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID().slice(0,8):Math.random().toString(36).slice(2,10);try{let n=e??sessionStorage,o=n.getItem(To);if(o)return o;let r=t();return n.setItem(To,r),r}catch{return t()}}var Lt={name:"share-where",title:"Where you are",description:"Whether the others here see which stop you are on.",honored:"root-attribute",options:[{value:"shared",label:"Shown"},{value:"private",label:"Hidden"}],initial:"shared"},Ht={name:"share-over",title:"What you point at",description:"Whether the others see the thing under your pointer, outlined in your color.",honored:"root-attribute",options:[{value:"private",label:"Kept to yourself"},{value:"shared",label:"Outlined for others"}],initial:"private"},Oo=[Lt,Ht],di=800;function Vo(e){let{channel:t,store:n,view:o,principal:r,session:i,robots:a,seatWho:d,settingValues:s,setView:u,ttlMs:f=1e4,people:m,seats:p}=e,[g,v]=(0,L.useState)(()=>new Map),[k,y]=(0,L.useState)(null),[b,h]=(0,L.useState)(null),[E,P]=(0,L.useState)(null),D=typeof r.id=="string"&&r.id.length>0,C=D&&(s[Lt.name]??Lt.initial)==="shared",G=C&&(s[Ht.name]??Ht.initial)==="shared",x=Ct({kind:r.kind,...r.id?{id:r.id}:{},session:i}),V=D?Dn(r,{graph:n.graph,schema:n.schema,...p?{seats:p}:{},...m?{people:m}:{}}):"",O=d?a.get(`agent:${d}:${i}`):void 0,W=(0,L.useMemo)(()=>!t||!C?null:{participant:x,kind:r.kind,name:V,...r.onBehalfOf?.id?{onBehalfOf:r.onBehalfOf.id,...r.onBehalfOf.name?{onBehalfOfName:r.onBehalfOf.name}:{}}:{},hue:Nn(r.id??"nobody"),stop:E??te(o),...G?{over:k}:{},...O?{robot:{at:O.at,mode:O.mode}}:{},at:new Date().toISOString()},[t,C,G,x,V,r.id,r.kind,r.onBehalfOf?.id,r.onBehalfOf?.name,o,E,k,O?.at,O?.mode]);(0,L.useEffect)(()=>{if(!t||!W)return;t.here(W);let I=setInterval(()=>t.here({...W,at:new Date().toISOString()}),di);return()=>clearInterval(I)},[t,W]),(0,L.useEffect)(()=>t?t.onWho(K=>v(ht(new Map,K,Date.now(),f))):void 0,[t,f]);let Z=g.size>0;(0,L.useEffect)(()=>{if(!Z)return;let I=setInterval(()=>{v(K=>{let Q=ht(K,[],Date.now(),f);return Q.size===K.size?K:Q})},Math.max(250,Math.min(1e3,f/4)));return()=>clearInterval(I)},[Z,f]),(0,L.useEffect)(()=>{if(!t||typeof window>"u")return;let I=()=>t.leave();return window.addEventListener("pagehide",I),()=>window.removeEventListener("pagehide",I)},[t]),(0,L.useEffect)(()=>{if(!G||typeof document>"u")return;let I=null,K=Q=>{let Ee=go(Q.target);Ee!==I&&(I=Ee,y(Ee))};return document.addEventListener("pointermove",K,{passive:!0}),()=>document.removeEventListener("pointermove",K)},[G]);let X=(0,L.useRef)(null),$=b?g.get(b)??null:null,de=(0,L.useCallback)(I=>{X.current=null,h(I)},[]);return(0,L.useEffect)(()=>{if(b){if(!$){h(null);return}$.stop!==X.current?.stop&&(X.current={stop:$.stop,at:Date.now()},u($e($.stop)))}},[b,$,u]),(0,L.useEffect)(()=>{let I=X.current;!b||I===null||Date.now()-I.at<400||$n(o,$e(I.stop))||h(null)},[o,b]),(0,L.useEffect)(()=>{if(!b||typeof document>"u")return;let I=K=>{K.key==="Escape"&&h(null)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[b]),(0,L.useMemo)(()=>({who:g,sharing:W?{participant:x,name:V}:null,following:$,follow:de,sayWhere:P}),[g,W,x,V,$,de])}var U=_(N(),1);function Io(e){return Fe(e.author)}function ui(e,t){return e.length>1?"co-edited":t==="rule"?"rule":t==="agent"?"autonomous":"directed"}function Co(e,t,n,o,r){let i=new Map;for(let[s,u]of e)o-u.at<r&&i.set(s,u);let a=new Set(n.flatMap(s=>s.nodeIds)),d=(s,u,f)=>{let m=i.get(s),p=m?.participants.includes(Io(u))?m.participants:[...m?.participants??[],Io(u)];i.set(s,{at:o,manner:ui(p,u.author.kind),intent:u.intent,wrote:(m?.wrote??!1)||(f.wrote??!1),read:(m?.read??!1)||(f.read??!1),broke:(m?.broke??!1)||a.has(s),participants:p})};for(let s of t){for(let u of s.writes)d(u,s,{wrote:!0});for(let u of s.reads)s.writes.includes(u)||d(u,s,{read:!0})}for(let s of n)for(let u of s.nodeIds){let f=i.get(u);i.set(u,{at:o,manner:f?.manner??"rule",intent:f?.intent??s.message,wrote:f?.wrote??!1,read:f?.read??!1,broke:!0,participants:f?.participants??["rule::"]})}return i}var ci=2600;function _o(e,t=ci){let[n,o]=(0,U.useState)(()=>new Map),r=(0,U.useRef)(n);r.current=n;let i=(0,U.useRef)(null),a=(0,U.useCallback)(s=>{r.current=s,o(s),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{r.current=new Map,o(new Map)},t)},[t]);(0,U.useEffect)(()=>{let s=e.violations(),u=e.subscribe((f,m)=>{let p=e.violations(),g=Fn(e.allInvariants(),s,p).introduces;s=p,a(Co(r.current,m,g.map(v=>({nodeIds:v.nodeIds,message:v.message})),Date.now(),t))});return()=>{u(),i.current&&clearTimeout(i.current)}},[e,t,a]);let d=(0,U.useCallback)(s=>{s.reads.length!==0&&a(Co(r.current,[fi(s)],[],Date.now(),t))},[t,a]);return{activity:n,noteAttention:d}}function fi(e){return{id:`attention:${e.intent}`,seq:-1,batch:"attention",author:e.author,intent:e.intent,mutation:null,primitives:[],reads:e.reads,writes:[],at:new Date().toISOString()}}var l=_(N(),1);function Lo(){let e=null,t=new Set,n=new Set,o=r=>{for(let i of n)i(r)};return{subscribe(r){return t.add(r),t.size===1&&o(!0),()=>{t.delete(r),t.size===0&&(e=null,o(!1))}},snapshot:()=>e,set(r){if(!(e===r||e&&r&&e.x===r.x&&e.y===r.y)){e=r;for(let i of t)i()}},get listeners(){return t.size},onActive(r){return n.add(r),()=>void n.delete(r)}}}var nt=_(N(),1),pi=e=>e.definitions.some(t=>Ln(t).size>0);function Ho(e,t,n){let[o,r]=(0,nt.useState)(void 0),i=(n.roles??[]).join("\0");return(0,nt.useEffect)(()=>{if(!t||!pi(e.schema)){r(void 0);return}let a=!0,d=!1,s=e.graph,u=()=>{d||(d=!0,queueMicrotask(()=>{d=!1,a&&e.reread()}))},f=Hn(t,{kind:n.kind,...n.id===void 0?{}:{id:n.id},...n.roles?{roles:n.roles}:{}},u);return gt(s,f.read),r(f),e.reread(),()=>{a=!1,gt(s,void 0)}},[e,t,n.kind,n.id,i]),o}function Do(){let e=!1,t=new Set;return{moving:()=>e,set(n){if(n!==e){e=n;for(let o of t)o()}},subscribe(n){return t.add(n),()=>t.delete(n)}}}var le=_(Ce(),1),yi="graview:place-menu",_e=(0,l.createContext)(null),Wo=(0,l.createContext)("scene");function mi({mode:e,children:t}){return(0,le.jsx)(Wo.Provider,{value:e,children:t})}function gi(){return(0,l.useContext)(Wo)}var Fo={kind:"human"},hi=[],Si=[],wi=[],Dt=[];function Ko(e,t){let n=(0,l.useId)();(0,l.useEffect)(()=>{if(!globalThis.__graviewWatch)return;let o=t??Fo,r=()=>Wn(e,o,n);r();let i,a=e.subscribe(()=>{clearTimeout(i),i=setTimeout(r,250)});return()=>{clearTimeout(i),a(),globalThis.__graviewWatch?.unseen?.({words:[],from:n,gone:!0})}},[e,t,n])}var vi={off:!0};function bi({store:e,views:t,initialView:n,scheme:o="dark",initialSelection:r,principal:i,seats:a=hi,onSeat:d,people:s=Si,memory:u,presenceTtlMs:f,app:m,settings:p=m?.settings??wi,presence:g,brand:v,locale:k,timeZone:y,onKeepLens:b,providers:h,ai:E,files:P,resolveApp:D,history:C,linkedRecords:G,menuSections:x,keptViews:V,subscriptions:O,signIn:W,view:Z,onViewChange:X,children:$}){let de=(0,l.useContext)(_e),I=x??de?.menuSections,K=W??de?.signIn,Q=V??de?.keptViews,[Ee,fr]=(0,l.useState)(null),ue=Ee??i??a[0]?.principal??Fo,He=It(e,ue,C),Jt=He.past&&He.live===e?He.past.store:e,H=(0,l.useMemo)(()=>Jt.seenBy(ue),[Jt,ue]);Ko(e,ue);let[re]=(0,l.useState)(()=>Mo(u)),[Qt,pr]=(0,l.useState)(!1),en=(0,l.useCallback)(()=>pr(!0),[]),ie=(0,l.useMemo)(()=>g?[...p,...Oo]:p,[p,g]),[ct]=(0,l.useState)(()=>n??Wt(t,e.schema)),[yr,tn]=(0,l.useState)(()=>ze(ct??fe,r??ct?.selection??[])),Ae=(0,l.useRef)(ct??fe).current,[nn,mr]=(0,l.useState)(null),[on,gr]=(0,l.useState)(null),J=(0,l.useContext)(_e),[rn]=(0,l.useState)(()=>J?.seatTalk??Ot(v?.name??e.schema.kinds.join(","))),ft=E??J?.ai??xt,De=(0,l.useMemo)(()=>ft.off?vi:ft,[ft]),an=(0,l.useRef)(De.interactions);an.current=De.interactions;let[sn]=(0,l.useState)(()=>J?.aiDesk??Vt(()=>an.current)),[hr]=(0,l.useState)(()=>J?.subscriptions??Gn()),ln=O??J?.subscriptions??hr,pt=b??J?.onKeepLens,Ne=m??J?.app,je=k??J?.locale,Sr=v?.locale??Ne?.brand?.locale,Ge=y??J?.timeZone;_n({reader:je,app:Sr,readerTimeZone:Ge,appTimeZone:v?.timeZone??Ne?.brand?.timeZone});let dn=(0,l.useRef)(null),un=(0,l.useCallback)(c=>{dn.current=c},[]),cn=(0,l.useCallback)(c=>dn.current?.whereIs(c)??null,[]),[fn]=(0,l.useState)(()=>Lo()),[pn]=(0,l.useState)(()=>Do()),[yt,wr]=(0,l.useState)(null),[ke,yn]=(0,l.useState)(()=>new Map),Pe=(0,l.useRef)(ke);Pe.current=ke;let Re=(0,l.useRef)(null),mt=(0,l.useCallback)(c=>H.graph.getNode(c)?.kind,[H]),ee=(0,l.useCallback)(c=>{let S=_t(Pe.current,c,mt);Pe.current=S,yn(S),Re.current&&clearTimeout(Re.current),[...S.values()].some(T=>T.mode!=="docked"&&T.mode!=="asking")&&(Re.current=setTimeout(()=>{let T=_t(Pe.current,{type:"rest",at:Date.now(),holdMs:Gt},mt);Pe.current=T,yn(T)},Gt+20))},[mt]),mn=(0,l.useCallback)(c=>ee({...c,at:c.at??Date.now()}),[ee]),gn=(0,l.useCallback)(c=>{wr(c),c&&ee({type:"home",author:{kind:"agent",id:c,session:re},at:Date.now()})},[ee,re]);(0,l.useEffect)(()=>H.subscribe((c,S)=>{for(let R of S)R.author.kind==="agent"&&ee({type:"write",author:R.author,ids:R.writes,at:Date.now()})}),[H,ee]),(0,l.useEffect)(()=>()=>{Re.current&&clearTimeout(Re.current)},[]);let z=(0,l.useMemo)(()=>({...ue,session:re}),[ue,re]),hn=Ho(H,G,z),Sn=(0,l.useCallback)(c=>{fr(c),d?.(c)},[d]),[Te,vr]=(0,l.useState)(()=>Object.fromEntries(ie.map(c=>[c.name,Ao(c,u)])));(0,l.useEffect)(()=>{for(let c of ie)Po(c,Te[c.name]??c.initial)},[ie,Te]);let wn=(0,l.useCallback)((c,S)=>{let R=ie.find(T=>T.name===c);!R||!R.options.some(T=>T.value===S)||(ko(R,S,u),vr(T=>({...T,[c]:S})))},[ie,u]),[vn,br]=(0,l.useState)(null),{activity:bn,noteAttention:xn}=_o(H),En=(0,l.useCallback)(c=>{xn(c),ee({type:"read",author:c.author,ids:c.reads,at:Date.now()})},[xn,ee]),ce=(0,l.useCallback)(c=>{if(ye(c)!==null||se(c).length>0||vt(c))return!0;let S=zn(c);return S?H.graph.allEdges().some(R=>R.kind===S.kind&&R.from===S.from&&R.to===S.to):H.graph.getNode(c)!==void 0},[H]),An=(0,l.useCallback)(c=>{let S=c.selection??Dt,R=S.filter(ce),T=R.length===S.length?c:ze(c,R);return T.focusId!==null&&!ce(T.focusId)&&(T=q(T,null)),T},[ce]),Me=(0,l.useCallback)(c=>{let S=An(c),R=Go(H,z,S.shown);if(S.focusId!==null&&R.size>0){let T=se(S.focusId),Cn=H.graph.getNode(S.focusId);(T.length>0?T.every(Ar=>R.has(Ar)):Cn?R.has(Cn.kind):!1)&&(S={...S,focusId:null})}if(!S.overview&&S.focusId===null){let T=Ae.focusId!==null&&!ce(Ae.focusId)?Wt(t,e.schema)??{...fe,overview:!0}:Ae;T.focusId!==null&&ce(T.focusId)?S={...S,focusId:T.focusId}:T.overview===!0&&(S={...S,overview:!0})}return S},[An,ce,H,Ae,z,t,e.schema]),B=Me(Z??yr),kn=(0,l.useMemo)(()=>Go(H,z,B.shown),[H,z,B.shown]),Pn=(0,l.useMemo)(()=>[...H.modules.administered.entries()].map(([c,S])=>{let R=H.mayAdminister(c,z);return{name:c,...S.description?{description:S.description}:{},kinds:S.kinds??[],canShow:R,shown:R&&(B.shown??[]).includes(c)}}),[H,z,B.shown]),Oe=(0,l.useCallback)(c=>{let S=R=>Me(typeof c=="function"?c(R):c);if(Z!==void 0){X?.(S(Z));return}X&&X(S(B)),tn(R=>S(R))},[B,X,Z,Me]);(0,l.useEffect)(()=>{Z===void 0&&tn(c=>{let S=Me(c);return S===c?c:S})},[B,Z,Me]);let Rn=B.selection??Dt,Tn=(0,l.useCallback)(c=>{Oe(S=>ze(S,typeof c=="function"?c(S.selection??Dt):c))},[Oe]),{who:Mn,following:On,follow:Vn,sayWhere:xr,sharing:In}=Vo({channel:g,store:H,view:B,principal:z,session:re,robots:ke,seatWho:yt,settingValues:Te,setView:Oe,seats:a,people:s,...f!==void 0?{ttlMs:f}:{}}),Er=(0,l.useMemo)(()=>({store:H,scheme:o,views:t,view:B,setView:Oe,homeView:Ae,selection:Rn,setSelection:Tn,menuAt:nn,setMenuAt:mr,whereIs:cn,pointer:fn,motion:pn,registerScene:un,robots:ke,noteSeat:mn,seatWho:yt,registerSeatWho:gn,actsDoor:on,registerActsDoor:gr,seatTalk:rn,aiDesk:sn,...u?{memory:u}:{},who:Mn,following:On,follow:Vn,sayWhere:xr,sharing:In,session:re,ai:De,resolveApp:D,linkedRecords:G,menuSections:I,...Q?{keptViews:Q}:{},subscriptions:ln,signIn:K,linkedReads:hn,movedByHand:Qt,noteMoved:en,emphasis:vn,setEmphasis:br,activity:bn,noteAttention:En,principal:z,seats:a,people:s,takeSeat:Sn,settings:ie,settingValues:Te,chooseSetting:wn,hiddenKinds:kn,administered:Pn,...h?{providers:h}:{},...v?{brand:v}:{},...pt?{onKeepLens:pt}:{},app:Ne,...je?{locale:je}:{},...Ge?{timeZone:Ge}:{}}),[H,o,t,B,Oe,Rn,Tn,nn,cn,fn,pn,un,ke,mn,yt,gn,on,rn,sn,u,Mn,On,Vn,In,re,De,D,G,I,Q,ln,K,hn,Qt,en,vn,bn,En,z,a,s,Sn,ie,Te,wn,kn,Pn,h,v,pt,Ne,je,Ge]);return(0,le.jsx)(_e.Provider,{value:Er,children:(0,le.jsx)(Ie.Provider,{value:He,children:(0,le.jsx)(Pi,{children:P?(0,le.jsx)(Qe.Provider,{value:P,children:$}):$})})})}var Bo=(0,l.createContext)(null),Nt,jt=new Set,xi=e=>(jt.add(e),()=>void jt.delete(e)),No=()=>Nt;function Ei(e){if(!Nt){Nt=e;for(let t of[...jt])t()}}var Ai=300;function ki(e){let t=0;return async(n,o)=>{let r=++t;return await new Promise(i=>setTimeout(i,Ai)),r===t?e(n,o):[]}}function Pi({children:e}){let{store:t,view:n,views:o,principal:r,hiddenKinds:i,selection:a,ai:d}=oe(),s=ot(),u=n.q,f=n.focusId,m=!!(u&&u.trim().length>0),p=(0,l.useSyncExternalStore)(xi,No,No),g=(0,l.useMemo)(()=>m&&p?{flagged:new Set(t.violations().flatMap(E=>E.nodeIds)),touched:p.touchWeights(t.log.all())}:null,[t,s,m,p]),v=f?t.graph.getNode(f)?.kind??ye(f)??(se(f).length===1?se(f)[0]:void 0):void 0,k=(0,l.useMemo)(()=>d.near&&ki(d.near),[d.near]),y=(0,l.useMemo)(()=>!u||!g||!p?null:p.search(t,u,{...v?{inKind:v}:{},principal:r,places:o.places(),kinds:t.schema.kinds.filter(E=>!i.has(E)),from:[...a,...f&&t.graph.has(f)?[f]:[]],flagged:g.flagged,touched:g.touched,limit:200,rank:k}),[t,u,r,o,i,a,f,v,g,k]),[b,h]=(0,l.useState)();return(0,l.useEffect)(()=>void y?.later?.then(E=>h([y,E])),[y]),(0,le.jsx)(Bo.Provider,{value:b?.[0]===y?b[1]:y,children:e})}var jo=new WeakMap;function ds(e){let t=jo.get(e);return t||jo.set(e,t=new Set(e.matched)),t}function Ri(){return(0,l.useContext)(Bo)}function oe(){let e=(0,l.useContext)(_e);if(!e)throw new Error("useGraview must be used inside a <GraviewProvider>.");return e}function Ft(){return(0,l.useContext)(_e)??null}function ot(){let{store:e}=oe(),t=(0,l.useRef)(null),n=(0,l.useRef)(null),o=(0,l.useCallback)(()=>(n.current!==e&&(n.current=e,t.current=null),t.current??=e.graph.allNodes(),t.current),[e]),r=(0,l.useCallback)(i=>e.subscribe(()=>{t.current=null,i()}),[e]);return(0,l.useSyncExternalStore)(r,o,o)}function Ti(e){let{store:t}=oe(),n=(0,l.useCallback)(r=>t.subscribe(r),[t]),o=(0,l.useCallback)(()=>e===null?void 0:t.graph.getNode(e),[t,e]);return(0,l.useSyncExternalStore)(n,o,o)}function Go(e,t,n){let o=new Set(e.modules.disabledKinds);for(let r of e.kindsKeptFrom(t))o.add(r);for(let[r,i]of e.modules.administered)if(!(e.mayAdminister(r,t)&&(n??[]).includes(r)))for(let a of i.kinds??[])o.add(a);return o}var Gt=2600;var qo=new WeakSet,Mi=e=>qo.has(e),Oi=e=>void qo.add(e);function Wt(e,t){let n=Bn(e.arrangement?.()?.first,t,e.places());if(!(!n||n.to==="home"))return n.to==="place"?{...fe,focusId:ne(n.place.kind),within:{view:n.place.as}}:{...fe,focusId:ne(n.kind)}}var $o=_(N(),1),Vi=(0,$o.createContext)(!1);var rt=Symbol.for("graview.default-view");function zo(e){return Object.defineProperty(e,rt,{value:!0,enumerable:!1}),e}function Uo(e){return typeof e=="function"&&e[rt]===!0}var it=Symbol.for("graview.replaces-page");function Yo(e){return Object.defineProperty(e,it,{value:!0,enumerable:!1}),e}function Zo(e){return typeof e=="function"&&e[it]===!0}var at=Symbol.for("graview.bleeds");function Xo(e){return Object.defineProperty(e,at,{value:!0,enumerable:!1}),e}function Jo(e){return typeof e=="function"&&e[at]===!0}function Ii(e){return Kn(e)}function Ci(e,t){if(t===e)return e;for(let r of t.registrations())e.register(r.kind,r,r.view,r);let n=t.arrangement?.();n&&e.arrange?.(n);let o=t.homeView?.();return o&&e.home?.(o),e}var F=_(N(),1),Y=_(Ce(),1),Kt=new Set,st=0;function tr(e){return()=>{st+=1;let t=e();return t.then(()=>void(st-=1),()=>void(st-=1)),t}}var _i=()=>st,nr=!1,or=!1,lt=new Set;function Li(){nr=!0}function Hi(){or=!0;for(let e of[...lt])e();lt.clear()}var rr=()=>or||!nr;function Di(e){return rr()?(e(),()=>{}):(lt.add(e),()=>void lt.delete(e))}var Qo=!1;function Bt(){for(let e of[...Kt])e()}function Ni(){Qo||typeof window>"u"||(Qo=!0,window.addEventListener("online",Bt))}function qt(e){let t,n=!1,o=!1,r,i=0,a=new Set,d=()=>{i+=1;for(let p of[...a])p()},s=p=>(a.add(p),()=>void a.delete(p)),u=()=>i,f=()=>void m().catch(()=>{});function m(){if(n)return Promise.resolve(t);if(r)return r;let p=e().then(g=>(t=g,n=!0,o=!1,r=void 0,Kt.delete(f),d(),g),g=>{throw r=void 0,o=!0,Kt.add(f),Ni(),d(),g});return p.catch(()=>{}),r=p,p}return{load:m,prefetch:f,get current(){return t},get failed(){return o},part(p,g={}){let v=g.what??"This part";function k(h){(0,F.useSyncExternalStore)(s,u,u);let E=(0,F.useRef)(null),P=(0,F.useRef)(null),D=(0,F.useRef)(!1);return(0,F.useEffect)(()=>{o&&r===void 0&&f()},[]),n&&typeof document<"u"&&E.current!==null&&document.activeElement===E.current&&(D.current=!0),(0,F.useLayoutEffect)(()=>{if(!(!n||!D.current)){D.current=!1;for(let C=P.current?.nextElementSibling??null;C!==null;C=C.nextElementSibling){let G=C.matches(er)?C:C.querySelector(er);if(G instanceof HTMLElement){G.focus();return}}}}),n?(0,Y.jsxs)(Y.Fragment,{children:[D.current?(0,Y.jsx)("span",{ref:P,hidden:!0}):null,p(t,h)]}):g.quiet?null:(0,Y.jsx)(ji,{what:v,button:E,...g.as?{as:g.as}:{}})}let y=(0,F.lazy)(tr(()=>m().then(()=>({default:k}),()=>({default:k}))));function b(h){let[E]=(0,F.useState)(()=>n||o);return(0,F.createElement)(E?k:y,h)}return b}}}var er="button,a[href],input,select,textarea,[tabindex]:not([tabindex='-1'])";function ji({what:e,button:t,as:n="p"}){let r=typeof navigator<"u"&&navigator.onLine===!1?`${e} will load when you're back online.`:`${e} didn't load.`;return(0,Y.jsxs)(n,{"data-testid":"lazy-part-missing",style:{margin:0,fontSize:"0.875rem",color:"var(--graview-ink-muted)"},children:[(0,Y.jsx)("span",{role:"status",children:r})," ",(0,Y.jsx)("button",{ref:t,type:"button","data-testid":"lazy-part-retry",onClick:Bt,style:{font:"inherit",fontWeight:600,color:"var(--graview-ink)",background:"none",border:"1px solid var(--graview-edge)",borderRadius:6,padding:"2px 10px"},children:"Try again"})]})}var Se=_(N(),1);function Gi(){let{selection:e,setSelection:t}=oe();return(0,Se.useMemo)(()=>({selection:e,set:n=>t(n),clear:()=>t([]),toggle:n=>t(o=>o.includes(n)?o.filter(r=>r!==n):[...o,n]),isSelected:n=>e.includes(n)}),[e,t])}function Wi(){let{store:e}=oe(),t=ot();return(0,Se.useMemo)(()=>Fi(e),[e,t])}var ir=new WeakMap;function Fi(e){let t=ir.get(e);if(!t){let n={violations:null};e.subscribe(()=>{n.violations=null}),ir.set(e,n),t=n}return t.violations??=e.violations(),t.violations}function Ki(){let{view:e,setView:t}=oe();return(0,Se.useMemo)(()=>({view:e,url:te(e),focus:n=>t(o=>q(o,n)),show:n=>t(o=>Un(o,n)),toggle:n=>t(o=>Ue(o,n)),go:n=>t(n)}),[e,t])}var he={at:0,depth:0,listeners:new Set,tell(){for(let e of this.listeners)e()}};typeof window<"u"&&window.addEventListener("popstate",e=>{let t=e.state;he.at=typeof t?.graview=="number"?t.graview:0,he.at>he.depth&&(he.depth=he.at),he.tell()});var j=_(N(),1),zt={profile:{trigger:"profile-button",pane:"profile",opens:"press",focus:"into",drawn:["shell","embed"]},problems:{trigger:"standing",pane:"problems",opens:"press",focus:"into",drawn:["shell","embed"]},places:{trigger:"app-places-open",pane:"app-places",opens:"press",focus:"into",drawn:["embed"]},here:{trigger:"here-open",pane:"here-list",opens:"press",focus:"into",drawn:["shell","embed","pages"]},suggested:{trigger:"suggested-button",pane:"suggested",opens:"press",focus:"into",drawn:["shell","embed","pages"]},activity:{trigger:"activity-button",pane:"activity",opens:"press",focus:"into",drawn:["shell","embed","pages"]},find:{trigger:"find-box",pane:"find-strip",opens:"typing",focus:"stays",drawn:["shell"]},districts:{trigger:"beyond-more",pane:"beyond-list",opens:"press",focus:"into",drawn:["shell","embed"]},acts:{trigger:null,pane:"context-menu",opens:"context-menu",focus:"into",drawn:["shell","embed","pages"]},arrange:{trigger:"arrange-add",pane:"arrange-list",opens:"press",focus:"into",drawn:["pages"]},"studio-ask":{trigger:"studio-agent",pane:"studio-agent-panel",opens:"press",focus:"into",drawn:["studio"]}},Bi={position:"fixed",inset:"auto",margin:0,zIndex:jn("popover"),boxSizing:"border-box"},dt=6,we=8,qi=e=>typeof e.showPopover=="function";function ut(e){try{return e.matches(":popover-open")}catch{return!1}}function $i(e){if(typeof e=="function"){let o=e();return o?{left:o.x,right:o.x,top:o.y,bottom:o.y}:null}let t=e.current;if(!t||!t.isConnected)return null;let n=t.getBoundingClientRect();return{left:n.left,right:n.right,top:n.top,bottom:n.bottom}}function Ut(e,t,n={}){let o=$i(t);if(!o)return;let r={width:document.documentElement.clientWidth||innerWidth,height:innerHeight},i=e.dataset.graviewDesignedHeight??=e.style.maxHeight;e.style.maxHeight=i;let a=e.getBoundingClientRect(),d=r.height-o.bottom-dt-we,s=o.top-dt-we,u=a.height<=d||d>=s,f=Math.max(96,Math.floor(u?d:s)),m=Math.min(a.height,f);a.height>f&&(e.style.maxHeight=i?`min(${i}, ${f}px)`:`${f}px`);let p=a.width,g=n.align==="start"?o.left:o.right-p,v=typeof t=="function"?null:t.current?.closest("[data-graview-embed]")?.getBoundingClientRect();v&&p<=v.right-v.left&&(g<v.left?g=o.left+p<=v.right?o.left:v.left:g+p>v.right&&(g=o.right-p>=v.left?o.right-p:v.right-p));let k=p>=r.width-2*we?Math.max(0,(r.width-p)/2):Math.max(we,Math.min(g,r.width-we-p)),y=u?o.bottom+dt:Math.max(we,o.top-dt-m);e.style.left=`${Math.round(k)}px`,e.style.top=`${Math.round(y)}px`}function ar(e,t,n,o={}){let r=o.align??"end";(0,j.useLayoutEffect)(()=>{let i=e.current;if(!t||!i)return;if(qi(i)&&!ut(i))try{i.showPopover(),Ui()}catch{}let a=0,d=u=>{u?.target instanceof Node&&i.contains(u.target)||(cancelAnimationFrame(a),a=requestAnimationFrame(()=>Ut(i,n,{align:r})))};Ut(i,n,{align:r}),addEventListener("resize",d),addEventListener("scroll",d,!0);let s=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>d());return s?.observe(i),()=>{if(cancelAnimationFrame(a),removeEventListener("resize",d),removeEventListener("scroll",d,!0),s?.disconnect(),i.isConnected&&ut(i))try{i.hidePopover()}catch{}}},[t,e,r])}var Yt=new Set;function zi(e){return Yt.add(e),()=>Yt.delete(e)}function Ui(){for(let e of Yt)if(!(!e.isConnected||!ut(e)))try{e.hidePopover(),e.showPopover()}catch{}}var ve=null,Yi='button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])';function Zi(e){for(let t of e.querySelectorAll(Yi))if(t.closest("[hidden]")===null&&getComputedStyle(t).visibility!=="hidden")return t;return e}var $t=()=>{let e=document.activeElement;return e===null||e===document.body};function Xi(e,t={}){let{at:n,returnTo:o,onOpenChange:r}=t,i=t.popover!==!1,[a,d]=(0,j.useState)(!1),s=t.open??a,u=(0,j.useRef)(null),f=(0,j.useRef)(null),m=(0,j.useCallback)(h=>{u.current=h},[]),p=(0,j.useCallback)(h=>{f.current=h},[]),g=`graview-popover-${(0,j.useId)().replace(/:/g,"")}`,v=(0,j.useRef)({onOpenChange:r,returnTo:o,controlled:t.open!==void 0});v.current={onOpenChange:r,returnTo:o,controlled:t.open!==void 0};let k=(0,j.useCallback)(h=>{v.current.controlled||d(h),v.current.onOpenChange?.(h)},[]),y=(0,j.useCallback)(()=>{(document.querySelector(`[aria-controls="${g}"]`)??u.current??v.current.returnTo?.()??null)?.focus({preventScroll:!0})},[g]),b=(0,j.useCallback)(h=>{let E=f.current,P=typeof document>"u"?null:document.activeElement,D=P===null||P===document.body||E!==null&&E.contains(P);k(!1),!(!h||!D)&&(y(),requestAnimationFrame(()=>{$t()&&y()}))},[k,y]);return ar(f,i&&s,n??u,t.align?{align:t.align}:{}),(0,j.useEffect)(()=>{if(!i||!s)return;let h={name:e,close:()=>b(!1)};if(ve&&ve.close!==h.close&&ve.close(),ve=h,zt[e].focus==="into"){let x=f.current;x&&!x.contains(document.activeElement)&&Zi(x).focus({preventScroll:!0})}let E=x=>{x.key==="Escape"&&b(!0)},P=x=>{let V=x.target;if(!(V instanceof Node))return;let O=f.current;if(O?.contains(V)||u.current?.contains(V))return;let W=V instanceof Element?V.closest('[role="dialog"], [role="alertdialog"]'):null;W&&!(O&&W.contains(O))||(b(!1),zt[e].focus==="into"&&requestAnimationFrame(()=>{($t()||O!==null&&O.contains(document.activeElement))&&y()}))},D=null,C=null,G=x=>{let V=x.target;if(!(V instanceof Element))return;let O=f.current,W=V.closest('[role="dialog"], [role="alertdialog"]');!W||O&&(O.contains(W)||W.contains(O))||(D=W,b(!1))};return document.addEventListener("keydown",E),document.addEventListener("pointerdown",P,!0),document.addEventListener("focusin",G),()=>{document.removeEventListener("keydown",E),document.removeEventListener("pointerdown",P,!0),document.removeEventListener("focusin",G);let x=D;x&&typeof MutationObserver<"u"&&(C?.disconnect(),C=new MutationObserver(()=>{x.isConnected||(C?.disconnect(),requestAnimationFrame(()=>{($t()||document.activeElement.closest("[hidden]")!==null)&&y()}))}),C.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>C?.disconnect(),10*6e4)),ve?.close===h.close&&(ve=null)}},[i,s,e,b,y]),{open:s,setOpen:h=>h?k(!0):b(!0),toggle:()=>s?b(!0):k(!0),trigger:{ref:m,"aria-expanded":s,"aria-controls":g,"data-graview-popover-trigger":e},pane:{ref:p,id:g,popover:"manual",tabIndex:-1,"data-graview-popover":e,"data-graview-overlay":""}}}var be=_(N(),1);var sr=(0,be.createContext)(null);function Ji(){let e=(0,be.useContext)(sr),t=Ft(),n=(o,r,i)=>t?.setView(a=>ae(ae(pe(q(a,ne(o)),!1),"view",r),"filter",i?.filter??null));return(0,be.useMemo)(()=>e??{record:o=>{t&&(t.setView(r=>q(pe(r,!1),o)),t.setSelection([o]))},place:(o,r)=>{let i=t?.views.places().find(a=>a.as===o);i&&n(i.kind,i.as,r)},list:(o,r)=>n(o,null,r)},[e,t])}var xe=_(N(),1);var Qi=qt(Ke(()=>(__graviewPreload(import.meta.url,["./chunk.XWAMQPUM.js","./chunk.SDO3U72B.js","./chunk.AS4CQBOQ.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.4HYJHGI4.js"))));function ea(e,t,n){let o,r=!1,i=()=>{let{hidden:d,removed:s}=t.current();o||r||d.length+s.length===0||(o=()=>{},Qi.load().then(u=>{r||(o=u.watchTidied(e,t,n))},String))};i();let a=t.onChange?.(i);return()=>{r=!0,a?.(),o?.()}}function ta(e,t){let[n,o]=(0,xe.useState)();return(0,xe.useEffect)(()=>t?ea(e,t,r=>o([e,r])):void 0,[e,t]),n?.[0]===e?n[1]:e}var lr=_(N(),1),na=(0,lr.createContext)(!1);var dr=_(N(),1),oa=(0,dr.createContext)(null);var ur=_(N(),1),Zt='button:not([disabled]), a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])',Xt=e=>e instanceof HTMLElement&&(e.matches(Zt)||e.hasAttribute("tabindex")),Le=e=>typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0;function ra(e,t){let n=s=>s.replace(/["\\]/g,"\\$&"),o=t.getAttribute("data-testid"),r=t.getAttribute("data-graview-pick"),i=t.getAttribute("aria-label"),a=o?`[data-testid="${n(o)}"]`:r?`[data-graview-pick="${n(r)}"]`:i?`${t.tagName.toLowerCase()}[aria-label="${n(i)}"]`:null;if(!a)return null;let d=e.querySelector(a);return d&&Xt(d)&&Le(d)?d:null}var ia=e=>e.isConnected&&Xt(e)&&!e.matches(":disabled")&&e instanceof HTMLElement&&Le(e);function cr(e,t){let n=t?ra(e,t):null;if(n)return n;let o=e.querySelector("[data-graview-view][tabindex]");if(o&&Le(o))return o;for(let r of e.querySelectorAll(Zt))if(Le(r))return r;return Xt(e)&&Le(e)?e:null}function aa(e){(0,ur.useEffect)(()=>{let t=e.current;if(!t||typeof MutationObserver>"u")return;let n=[],o=y=>{let b=y.target;if(b instanceof Element){n=[];for(let h=b;h&&h!==t.parentElement;h=h.parentElement)n.push(h)}},r=!1,i=!1,a=t.ownerDocument,d=()=>!i&&a.defaultView!==null,s=(y,b)=>void setTimeout(()=>d()&&b(),y),u=y=>void requestAnimationFrame(()=>d()&&y()),f=y=>{if(r=!1,i)return;let b=a.activeElement;if(!(!(b===null||b===a.body||b===a.documentElement)||n.length===0)){if(ia(n[0])){y&&n[0]instanceof HTMLElement&&n[0].focus({preventScroll:!0});return}for(let E of n.slice(1)){if(!E.isConnected)continue;let P=cr(E,n[0]);if(P){P.focus({preventScroll:!0}),n=[];return}}}},m=(y,b=Date.now()+2500)=>{s(100,()=>{f(y);let h=a.activeElement;(h===null||h===a.body||h===a.documentElement)&&n.length>0&&Date.now()<b&&m(y,b)})},p=()=>{r||n.length===0||(r=!0,s(60,()=>u(()=>{f(!1),m(!1)})))},g=y=>{if(!(y instanceof KeyboardEvent&&!["Enter"," ","Escape"].includes(y.key))){if(!(y instanceof KeyboardEvent)){let b=y.target instanceof Element?y.target.closest(Zt):null,h=a.activeElement,E=h===null||h===a.body||h===a.documentElement;if(b&&E&&t.contains(b)){n=[];for(let P=b;P&&P!==t.parentElement;P=P.parentElement)n.push(P);s(150,()=>u(()=>{f(!1),m(!1)}));return}}!(y instanceof KeyboardEvent)&&!(y.target instanceof Node&&n[0]?.contains(y.target))||s(150,()=>u(()=>{f(!0),m(!0)}))}},v=new MutationObserver(()=>{n.length>0&&!n[0].isConnected&&p()}),k=y=>{y.relatedTarget===null&&p()};return t.addEventListener("focusin",o),t.addEventListener("focusout",k),t.addEventListener("click",g),t.addEventListener("keydown",g),v.observe(t,{childList:!0,subtree:!0}),()=>{i=!0,t.removeEventListener("focusin",o),t.removeEventListener("focusout",k),t.removeEventListener("click",g),t.removeEventListener("keydown",g),v.disconnect()}},[e])}export{fe as a,te as b,$e as c,la as d,da as e,$n as f,qn as g,zn as h,St as i,q as j,Un as k,ae as l,pe as m,ze as n,Ve as o,Ue as p,Ze as q,wt as r,ye as s,fa as t,Pr as u,ne as v,Yn as w,se as x,Zn as y,Rr as z,pa as A,Xn as B,vt as C,Tr as D,Mr as E,Or as F,N as G,Ot as H,Zr as I,Jr as J,go as K,Qe as L,Qr as M,Ie as N,So as O,ei as P,It as Q,Ce as R,yi as S,mi as T,gi as U,Ko as V,bi as W,Ei as X,ds as Y,Ri as Z,oe as _,Ft as $,ot as aa,Ti as ba,Mi as ca,Oi as da,Wt as ea,sr as fa,Ji as ga,Vi as ha,zo as ia,Uo as ja,Yo as ka,Zo as la,Xo as ma,Jo as na,Ii as oa,Ci as pa,tr as qa,_i as ra,Li as sa,Hi as ta,rr as ua,Di as va,qt as wa,ta as xa,na as ya,oa as za,Gi as Aa,Wi as Ba,Ki as Ca,he as Da,aa as Ea,Bi as Fa,ut as Ga,ar as Ha,zi as Ia,Xi as Ja};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
react/cjs/react.production.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license React
|
|
7
|
+
* react.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*)
|
|
14
|
+
|
|
15
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
16
|
+
(**
|
|
17
|
+
* @license React
|
|
18
|
+
* react-jsx-runtime.production.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*)
|
|
25
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};function s(e){let t=[];return typeof e!="string"?["A view's source is text."]:(/\bimport\b/.test(e)&&t.push("It says import: a view loads nothing, so the word may not appear in it at all, even in a string or a comment."),/\bimportScripts\b/.test(e)&&t.push("It names importScripts: a view loads nothing."),/^\s*export\b/m.test(e)&&t.push("It exports something: a view is a plain script that draws through the graview global, not a module."),/\brequire\s*\(/.test(e)&&t.push("It calls require(): a view has no modules to require."),t)}var i,n=()=>i??=(__graviewPreload(import.meta.url,["./chunk.AJZBJBMO.js"]),import("./chunk.
|
|
1
|
+
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};function s(e){let t=[];return typeof e!="string"?["A view's source is text."]:(/\bimport\b/.test(e)&&t.push("It says import: a view loads nothing, so the word may not appear in it at all, even in a string or a comment."),/\bimportScripts\b/.test(e)&&t.push("It names importScripts: a view loads nothing."),/^\s*export\b/m.test(e)&&t.push("It exports something: a view is a plain script that draws through the graview global, not a module."),/\brequire\s*\(/.test(e)&&t.push("It calls require(): a view has no modules to require."),t)}var i,n=()=>i??=(__graviewPreload(import.meta.url,["./chunk.AJZBJBMO.js"]),import("./chunk.5R2R364Q.js")).catch(e=>{throw i=void 0,e});async function p(e){let{VIEW_RUNTIME:t}=await n();return`${t}
|
|
2
2
|
;(function () {
|
|
3
3
|
"use strict";
|
|
4
4
|
${e}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"./chunk.
|
|
1
|
+
import{e as a}from"./chunk.PKUDIWIF.js";import{l as i}from"./chunk.XWAMQPUM.js";import{bd as o}from"./chunk.AS4CQBOQ.js";function p(t){let r=t.within??{};return o({...r.sort?{sort:r.sort}:{},...r.filter?{filter:r.filter}:{},...r.group?{group:r.group}:{},...r.q?{q:r.q}:{},...r.archived?{archived:r.archived}:{}})}function c(t,r){let m=a(r),e=t;for(let n of["sort","filter","group","q","archived"])e=i(e,n,m[n]??null);return e}export{p as a,c as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m}from"./chunk.
|
|
1
|
+
import{c as m}from"./chunk.TBQOSI4J.js";import{ca as c,da as u,ea as f,ga as p,ka as h,la as l}from"./chunk.AS4CQBOQ.js";function A(t,e){let n=t.schema.kinds,r="kind"in e?e.kind:void 0;if(r!==void 0&&!n.includes(r))return`There is no kind "${r}" in this app. Its kinds are: ${n.join(", ")}.`;if(e.on==="act"&&e.act!==void 0&&t.allMutations&&!t.allMutations().some(i=>i.name===e.act))return`There is no act "${e.act}" in this app.`;let o="record"in e?e.record:void 0;if(o!==void 0&&t.graph&&!t.graph.getNode(o))return`No record "${o}" is here to be told about.`;if(o!==void 0&&r!==void 0&&t.graph&&t.graph.getNode(o)?.kind!==r)return`\u201C${o}\u201D is not ${h(r)}.`;if(e.on==="changed"&&e.kind===void 0&&e.record===void 0)return"Say which kind, or which record, to be told about.";if(e.on==="reaches"){if(e.condition.trim()==="")return"Say what it should reach: a condition like done == true.";try{m(e.condition)}catch(i){return`The condition does not read: ${i instanceof Error?i.message:String(i)}.`}}}function a(t,e){let n=t.graph?.getNode(e);return n?c(t.schema.tryDefinition(n.kind),n):e}function g(t,e){let n=t.allMutations?.().find(r=>r.name===e);return n?u(n):f(e)}function M(t,e){let{when:n}=e,r=e.alsoMine?"anyone":"someone else",o=d=>l(t.schema.tryDefinition(d),d),i=d=>{let s=o(d);return`${/^[aeiou]/i.test(s)?"an":"a"} ${s}`};switch(n.on){case"act":{let d=n.act!==void 0?`\u201C${g(t,n.act)}\u201D`:"an act";return`When ${r} runs ${d}${n.record!==void 0?` on \u201C${a(t,n.record)}\u201D`:""}`}case"created":return`When ${r} adds ${i(n.kind)}`;case"changed":return n.record!==void 0?`When ${r} changes \u201C${a(t,n.record)}\u201D`:`When ${r} changes any of the ${p(t.schema,n.kind)}`;case"reaches":return`When ${n.record!==void 0?`\u201C${a(t,n.record)}\u201D`:i(n.kind)} reaches ${n.condition}${e.alsoMine?"":" (by someone else)"}`}}export{A as a,M as b};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import{a as Y,c as _,d as J,f as Q}from"./chunk.EAUVEVVO.js";import{a as U,b as X,c as Z,d as ee,e as ae}from"./chunk.IW7YFPGG.js";import{f as j,g as G,i as K,j as $,k as P,q as B,r as V}from"./chunk.HDRD33II.js";import{b as z}from"./chunk.DX357TZ3.js";import{G as oe,R as H}from"./chunk.XWAMQPUM.js";import{ca as I,ea as E,la as D}from"./chunk.AS4CQBOQ.js";import{b as N}from"./chunk.AJZBJBMO.js";var c=N(oe(),1),a=N(H(),1),le=`
|
|
2
|
+
form:where([data-graview-part="form"]) {
|
|
3
|
+
/* A grid item of the section above it and a grid container for the
|
|
4
|
+
fields below: both halves are allowed to be narrower than what is in
|
|
5
|
+
them, or a big enough text size pushes the page sideways. See the note
|
|
6
|
+
on \`column\` in pages.tsx. */
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: minmax(0, 1fr);
|
|
9
|
+
min-width: 0;
|
|
10
|
+
gap: 12px;
|
|
11
|
+
}
|
|
12
|
+
label:where([data-graview-part="field"]),
|
|
13
|
+
div:where([data-graview-part="field"][data-graview-field="date"]) {
|
|
14
|
+
display: grid;
|
|
15
|
+
/* A track the width it was given: see the note on \`column\` in pages.tsx. */
|
|
16
|
+
grid-template-columns: minmax(0, 1fr);
|
|
17
|
+
min-width: 0;
|
|
18
|
+
gap: 4px;
|
|
19
|
+
}
|
|
20
|
+
label:where([data-graview-part="field"][data-graview-field="boolean"]) {
|
|
21
|
+
grid-auto-flow: column;
|
|
22
|
+
justify-content: start;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
span:where([data-graview-part="label"]),
|
|
26
|
+
legend:where([data-graview-part="label"]),
|
|
27
|
+
p:where([data-graview-part="unasked"]) {
|
|
28
|
+
font-size: 0.8125rem;
|
|
29
|
+
color: var(--graview-ink-muted);
|
|
30
|
+
}
|
|
31
|
+
p:where([data-graview-part="unasked"]) { margin: 0; }
|
|
32
|
+
input:where([data-graview-part="control"]:not([type="checkbox"])),
|
|
33
|
+
select:where([data-graview-part="control"]) {
|
|
34
|
+
font: inherit;
|
|
35
|
+
/* A TARGET IN EVERY ENGINE, not only in the one it was measured in.
|
|
36
|
+
Padding and line height alone came to 24 in Chromium and to 22 in
|
|
37
|
+
WebKit, which has its own intrinsic metrics for a \`select\` and rounds
|
|
38
|
+
nothing up for anybody. So every picker on the routed face was under
|
|
39
|
+
the WCAG 2.2 minimum in the browser iOS ships, and the check that says
|
|
40
|
+
so (\`verify-pages\`' \`bigEnoughToHit\`) only ever ran there through
|
|
41
|
+
\`pnpm engines\`. */
|
|
42
|
+
min-height: 24px;
|
|
43
|
+
/* NEVER WIDER THAN ITS FIELD. A select is as wide as its longest option,
|
|
44
|
+
and a picker over 320 vehicles ("2027 Mercedes-Benz GLE AMG 53 4MATIC+
|
|
45
|
+
Coupe") was 618 pixels on a 390 phone, and the whole page scrolled
|
|
46
|
+
sideways. It shrinks to its track and cuts the option inside its box. */
|
|
47
|
+
min-width: 0;
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
padding: 7px 10px;
|
|
52
|
+
border-radius: 8px;
|
|
53
|
+
border: 1px solid var(--graview-edge);
|
|
54
|
+
background: var(--graview-panel);
|
|
55
|
+
color: var(--graview-ink);
|
|
56
|
+
}
|
|
57
|
+
/* A PICKER THAT STILL LOOKS LIKE ONE.
|
|
58
|
+
WebKit ignores an author's padding and minimum height on a \`select\`
|
|
59
|
+
while the native appearance is on \u2014 so every picker on the routed face
|
|
60
|
+
came out 22 pixels tall in the browser iOS ships, under the 24 WCAG 2.2
|
|
61
|
+
asks for, while the same element measured 35 in Chromium. Turning the
|
|
62
|
+
appearance off is what makes the box the size it was asked to be, and it
|
|
63
|
+
takes the platform's chevron with it; the chevron is put back, in the ink
|
|
64
|
+
the scheme is already using. */
|
|
65
|
+
span:where([data-graview-part="picker"]) {
|
|
66
|
+
position: relative;
|
|
67
|
+
display: grid;
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
span:where([data-graview-part="picker"]) > select:where([data-graview-part="control"]) {
|
|
71
|
+
appearance: none;
|
|
72
|
+
padding-right: 28px;
|
|
73
|
+
}
|
|
74
|
+
span:where([data-graview-part="chevron"]) {
|
|
75
|
+
position: absolute;
|
|
76
|
+
right: 10px;
|
|
77
|
+
top: 50%;
|
|
78
|
+
transform: translateY(-50%);
|
|
79
|
+
font-size: 0.75rem;
|
|
80
|
+
line-height: 1;
|
|
81
|
+
color: var(--graview-ink-muted);
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
fieldset:where([data-graview-part="group"]) {
|
|
85
|
+
display: grid;
|
|
86
|
+
gap: 10px;
|
|
87
|
+
border: 1px solid var(--graview-edge);
|
|
88
|
+
border-radius: 10px;
|
|
89
|
+
padding: 12px;
|
|
90
|
+
}
|
|
91
|
+
fieldset:where([data-graview-part="group"][data-graview-field="list"]) { gap: 8px; }
|
|
92
|
+
div:where([data-graview-part="item"]) {
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
align-items: end;
|
|
96
|
+
}
|
|
97
|
+
button:where([data-graview-part="add"]),
|
|
98
|
+
button:where([data-graview-part="submit"]) { justify-self: start; }
|
|
99
|
+
p:where([data-graview-part="refused"]) {
|
|
100
|
+
margin: 0;
|
|
101
|
+
color: var(--graview-warn);
|
|
102
|
+
font-size: 0.875rem;
|
|
103
|
+
}
|
|
104
|
+
`;function de({title:i,name:e,optional:t,amount:o,value:h,onChange:v}){let s=K(o),[k,m]=(0,c.useState)(()=>typeof h=="number"?$(h,o):""),x=k.trim()!==""&&P(k,o)===void 0;return(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":"number","data-graview-amount":o.format??"unit",children:[(0,a.jsx)("span",{"data-graview-part":"label",children:i}),(0,a.jsxs)("span",{"data-graview-part":"amount",style:{display:"flex",alignItems:"center",gap:6},children:[s.prefix?(0,a.jsx)("span",{"data-graview-part":"amount-symbol","aria-hidden":"true",children:s.prefix}):null,(0,a.jsx)("input",{type:"text",inputMode:"decimal",name:e,required:!t,placeholder:s.placeholder,title:s.hint,"aria-invalid":x||void 0,value:k,onChange:p=>{m(p.target.value),v(P(p.target.value,o))},"data-graview-part":"control",style:{flex:1,minWidth:0}}),s.suffix?(0,a.jsx)("span",{"data-graview-part":"amount-symbol","aria-hidden":"true",children:s.suffix}):null]}),x?(0,a.jsxs)("span",{"data-graview-part":"hint",role:"status",children:["Not an amount ",s.hint,": write it like ",s.prefix??"",s.placeholder,s.suffix?` ${s.suffix}`:""]}):null]})}function te({children:i}){return(0,a.jsxs)("span",{"data-graview-part":"picker",children:[i,(0,a.jsx)("span",{"aria-hidden":"true","data-graview-part":"chevron",children:"\u25BE"})]})}var se=i=>({label:E(i),option:e=>e}),pe={phone:"+1 555 123 4567",place:"An address or a place's name",duration:"1h 30m, 90 or 1:30"};function T({store:i,spec:e,value:t,onChange:o,prefilled:h,open:v,words:s=se,values:k}){if(e.name in h&&e.control!=="group"&&e.control!=="variant")return null;let m=e.control==="node"&&!e.kinds.includes("*")?e.kinds.map(n=>E(D(i.schema.tryDefinition(n),n))).join(" or "):s(e.name).label,x=!(e.optional||e.control==="boolean"),p=x?(0,a.jsxs)(a.Fragment,{children:[m,(0,a.jsx)("span",{"aria-hidden":"true",children:" *"})]}):m;switch(e.control){case"text":case"date":return e.control==="text"&&e.long?(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":"text",children:[(0,a.jsxs)("span",{"data-graview-part":"label",children:[p,e.markdown?(0,a.jsx)("span",{style:{fontWeight:"normal",color:"var(--graview-ink-faint)"},children:" \xB7 Markdown"}):null]}),(0,a.jsx)("textarea",{name:e.name,required:!e.optional,rows:6,value:typeof t=="string"?t:"",onChange:n=>o(n.target.value),"data-graview-part":"control",style:{fieldSizing:"content",minHeight:"7.5em",resize:"vertical",font:"inherit",lineHeight:1.5}})]}):e.control==="date"?(0,a.jsxs)("div",{"data-graview-part":"field","data-graview-field":"date",children:[(0,a.jsx)("span",{"data-graview-part":"label",children:p}),(0,a.jsx)(Q,{name:e.name,label:s(e.name).label,required:!e.optional,value:typeof t=="string"&&t!==""?t:void 0,time:e.time===!0,instant:e.instant===!0,onChange:o})]}):(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":e.control==="text"&&e.holds?e.holds:e.control,children:[(0,a.jsx)("span",{"data-graview-part":"label",children:p}),(0,a.jsx)("input",{type:e.control==="text"&&e.holds==="phone"?"tel":"text",name:e.name,required:!e.optional,...e.control==="text"&&e.app?{placeholder:"@owner/app or https://\u2026"}:{},...e.control==="text"&&e.holds?{placeholder:pe[e.holds]}:{},...e.control==="text"&&e.holds==="phone"?{autoComplete:"tel"}:{},value:typeof t=="string"?t:typeof t=="number"?String(t):"",onChange:n=>o(n.target.value),"data-graview-part":"control"})]});case"number":return e.amount?(0,a.jsx)(de,{title:p,name:e.name,optional:e.optional,amount:e.amount,value:t,onChange:o}):(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":e.control,children:[(0,a.jsx)("span",{"data-graview-part":"label",children:p}),(0,a.jsx)("input",{type:"number",name:e.name,required:!e.optional,...e.min===void 0?{}:{min:e.min},...e.max===void 0?{}:{max:e.max},...e.step===void 0?{}:{step:e.step},value:typeof t=="number"?t:"",onChange:n=>o(n.target.value===""?void 0:Number(n.target.value)),"data-graview-part":"control"})]});case"boolean":return(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":"boolean",children:[(0,a.jsx)("input",{type:"checkbox",name:e.name,checked:t===!0,onChange:n=>o(n.target.checked),"data-graview-part":"control"}),(0,a.jsx)("span",{"data-graview-part":"label",children:p})]});case"choice":return(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":e.control,children:[(0,a.jsx)("span",{"data-graview-part":"label",children:p}),(0,a.jsx)(te,{children:(0,a.jsxs)("select",{name:e.name,required:!e.optional,value:typeof t=="string"?t:"",onChange:n=>o(n.target.value||void 0),"data-graview-part":"control",children:[(0,a.jsx)("option",{value:"",children:"\u2014"}),(e.options??[]).map(n=>(0,a.jsx)("option",{value:n,children:s(e.name).option(n)},n))]})})]});case"node":{let n=v.find(r=>r.name===e.name)?.candidates,g=new Set(Object.values(h).filter(r=>typeof r=="string")),f=(e.kinds.includes("*")?[...i.graph.allNodes()]:e.kinds.flatMap(r=>i.graph.nodesOfKind(r))).filter(r=>!g.has(r.id)),d=n?n.map(r=>i.graph.getNode(r)).filter(r=>r!==void 0):f,b=z(d,r=>i.schema.tryDefinition(r));return(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":e.control,children:[(0,a.jsx)("span",{"data-graview-part":"label",children:p}),(0,a.jsx)(te,{children:(0,a.jsxs)("select",{name:e.name,required:!e.optional,value:typeof t=="string"?t:"",onChange:r=>o(r.target.value||void 0),"data-graview-part":"control",children:[(0,a.jsx)("option",{value:"",children:"\u2014"}),d.map(r=>{let S=b.get(r.id);return(0,a.jsxs)("option",{value:r.id,children:[I(i.schema.tryDefinition(r.kind),r),S?` \xB7 ${S}`:""]},r.id)})]})})]})}case"group":{let n=t??{};return(0,a.jsxs)("fieldset",{"data-graview-part":"group","data-graview-field":e.control,children:[(0,a.jsx)("legend",{"data-graview-part":"label",children:p}),e.fields.map(g=>(0,a.jsx)(T,{store:i,spec:g,value:n[g.name],onChange:f=>o({...n,[g.name]:f}),prefilled:h,open:v,words:s},g.name))]})}case"variant":{let n=t??{},g=typeof n[e.tag]=="string"?n[e.tag]:"",f=e.options.find(d=>d.value===g);return(0,a.jsxs)("fieldset",{"data-graview-part":"group","data-graview-field":e.control,children:[(0,a.jsx)("legend",{"data-graview-part":"label",children:p}),(0,a.jsxs)("label",{"data-graview-part":"field","data-graview-field":"choice",children:[(0,a.jsx)("span",{"data-graview-part":"label",children:E(e.tag)}),(0,a.jsxs)("select",{value:g,onChange:d=>o({[e.tag]:d.target.value}),"data-graview-part":"control",children:[(0,a.jsx)("option",{value:"",children:"\u2014"}),e.options.map(d=>(0,a.jsx)("option",{value:d.value,children:E(d.value)},d.value))]})]}),f?.fields.map(d=>(0,a.jsx)(T,{store:i,spec:d,value:n[d.name],onChange:b=>o({...n,[d.name]:b}),prefilled:h,open:v,words:s},d.name))]})}case"file":case"list":{let n=e.control==="file"?e:e.item.control==="file"?e.item:void 0;if(n||e.control==="file")return(0,a.jsx)(Y,{as:"control",title:x?`${m} *`:m,value:t,onChange:o,several:n!==e,image:n?.image===!0,video:n?.video===!0,label:m});let g=Array.isArray(t)?t:[];return(0,a.jsxs)("fieldset",{"data-graview-part":"group","data-graview-field":"list",children:[(0,a.jsx)("legend",{"data-graview-part":"label",children:p}),g.map((f,d)=>(0,a.jsxs)("div",{"data-graview-part":"item",children:[(0,a.jsx)("div",{style:{flex:1},children:(0,a.jsx)(T,{store:i,spec:{...e.item,optional:!1},value:f,onChange:b=>o(g.map((r,S)=>S===d?b:r)),prefilled:h,open:v,words:s})}),(0,a.jsx)("button",{type:"button","data-graview-part":"remove",onClick:()=>o(g.filter((b,r)=>r!==d)),children:"remove"})]},d)),(0,a.jsx)("button",{type:"button","data-graview-part":"add",onClick:()=>o([...g,void 0]),children:"add another"})]})}case"linked":return(0,a.jsx)("div",{"data-graview-part":"field","data-graview-field":"linked",children:(0,a.jsx)(_,{relation:e.relation,value:t,onChange:o,label:m})});case"repeat":return(0,a.jsx)(J,{value:t,onChange:o,start:e.of?k?.[e.of]:void 0,label:`${e.of?s(e.of).label:m} repeats`,name:e.name});case"opaque":return(0,a.jsxs)("p",{"data-graview-part":"unasked",children:["\u201C",E(e.name),"\u201D needs a structured answer this form cannot ask for yet."]})}}function ue(i){let e=[...i.querySelectorAll("input:not([type=hidden]), select, textarea")].filter(t=>!t.disabled&&!t.closest("[hidden], [inert], [aria-hidden='true']"));return e.find(t=>t.required&&t.value==="")??e[0]??i.querySelector('button[type="submit"]')}function he({store:i,mutation:e,prefilled:t={},open:o=[],onDone:h,principal:v,initial:s,label:k,only:m,autoFocus:x=!1}){let p=()=>Z(e,i.graph,t),[n,g]=(0,c.useState)(p),[f,d]=(0,c.useState)(()=>({...n,...s})),[b,r]=(0,c.useState)(null),S=v??i.seenFor,O=e.subject&&t[e.subject.arg],ne=S?ae(i,S,e,typeof O=="string"?O:void 0):void 0,L=U(e.input),C=(m===void 0?L:m.flatMap(l=>L.find(u=>u.name===l)??[])).filter(l=>!ne?.has(l.name)),re=l=>j(i.schema,e,l),F=V(C.filter(l=>l.control==="date").map(l=>l.name)),W=(0,c.useRef)(void 0),ie=(l,u)=>d(A=>{let M={...A,[l.name]:u};if(F&&l.name===F.start&&l.control==="date"){let w=y=>typeof y=="string"&&y!==""?y:void 0,R=w(A[F.start])??W.current;if(w(u)){W.current=w(u);let y=B(R,w(u),w(A[F.end]),{time:l.time===!0,instant:l.instant===!0});y!==void 0&&(M[F.end]=y)}}return M}),q=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!x)return;let l=document.activeElement,u=0,A=0,M=()=>{let w=q.current;if(!w)return;let R=document.activeElement;if(R!==l&&R!==document.body&&R!==null&&!w.contains(R)||w.contains(R))return;let y=w.querySelector("[data-graview-when-arriving]")&&A<30?null:ue(w);if(y){y.focus();return}A+=1,A<=30&&(u=requestAnimationFrame(M))};return u=requestAnimationFrame(M),()=>cancelAnimationFrame(u)},[]),(0,a.jsxs)("form",{ref:q,"data-testid":`form-${e.name}`,onSubmit:l=>{l.preventDefault();try{i.apply({name:e.name,args:{...ee(X(C,f),n),...t}},v?{author:v}:{}),r(null);let u=p();g(u),d({...u}),h?.()}catch(u){r(G(i.schema,i.allMutations(),u))}},"data-graview-part":"form",children:[(0,a.jsx)("style",{children:le}),C.map(l=>(0,a.jsx)(T,{store:i,spec:l,value:f[l.name],values:f,onChange:u=>ie(l,u),prefilled:t,open:o,words:re},l.name)),b?(0,a.jsx)("p",{"data-testid":"refused","data-graview-part":"refused",role:"alert",children:b}):null,(0,a.jsx)("button",{type:"submit","data-graview-part":"submit",children:k??e.title??e.name})]})}export{he as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,b as y,c as m}from"./chunk.MB7LKKUD.js";import"./chunk.6BJBPDF3.js";import{G as N,Ga as c,Ia as b,R as u}from"./chunk.XWAMQPUM.js";import"./chunk.SDO3U72B.js";import{wc as f}from"./chunk.AS4CQBOQ.js";import"./chunk.2AZTW66C.js";import{b as p}from"./chunk.AJZBJBMO.js";var l=p(N(),1);var t=p(u(),1);function P({notices:o,anchor:n,board:a}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w,{notices:o.filter(i=>i.kind==="banner"),at:"top",anchor:n,board:a}),(0,t.jsx)(w,{notices:o.filter(i=>i.kind==="toast"),at:"foot",anchor:n,board:a})]})}var h={info:"var(--graview-accent)",good:"var(--graview-good)",warn:"var(--graview-warn)",bad:"var(--graview-bad)"};function w({notices:o,at:n,anchor:a,board:i}){let d=(0,l.useRef)(null),e=o.length>0;return(0,l.useLayoutEffect)(()=>{let r=d.current;if(!e||!r)return;if(typeof r.showPopover=="function"&&!c(r))try{r.showPopover()}catch{}let s=()=>(n==="top"?m:y)(r,a());s(),n==="foot"&&i.hold?.(()=>r.matches(":hover, :focus-within"));let S=b(r);addEventListener("resize",s),addEventListener("scroll",s,!0),n==="foot"&&addEventListener(v,s);let g=typeof ResizeObserver=="function"?new ResizeObserver(s):null;return g?.observe(r),()=>{if(S(),g?.disconnect(),removeEventListener("resize",s),removeEventListener("scroll",s,!0),removeEventListener(v,s),r.isConnected&&c(r))try{r.hidePopover()}catch{}}},[e,n,a,i]),e?(0,t.jsx)("div",{ref:d,popover:"manual",role:"region","aria-label":n==="top"?"Notices":"Messages","data-testid":n==="top"?"notices-banners":"notices-toasts","data-graview-offstage":"",style:{position:"fixed",inset:"auto",margin:0,padding:0,border:"none",background:"none",overflow:"visible",zIndex:f("toast"),width:"max-content",height:"auto",maxWidth:"min(560px, calc(100vw - 32px))",display:"grid",gap:8,color:"var(--graview-ink)"},children:o.map(r=>(0,t.jsx)(C,{notice:r,board:i},r.id))}):null}var T=o=>o.split(/\s+/).filter(Boolean).map(n=>n.replace(/^Meta\+/,"\u2318").replace(/^Control\+/,"Ctrl+").replace(/^Alt\+/,"Alt+")).join(" or ");function C({notice:o,board:n}){let a=o.tone??"info",i=[...o.action?[o.action]:[],...o.actions??[]],d=()=>n.dismiss(o.id);return(0,t.jsxs)("div",{"data-testid":"notice","data-kind":o.kind,"data-tone":a,style:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px 12px",padding:o.kind==="banner"?"8px 10px 8px 14px":"10px 12px 10px 14px",borderRadius:"var(--graview-radius, 12px)",borderTop:"1px solid var(--graview-edge)",borderRight:"1px solid var(--graview-edge)",borderBottom:"1px solid var(--graview-edge)",borderLeft:`3px solid ${h[a]}`,background:"var(--graview-float)",boxShadow:"var(--graview-lift-high)",fontSize:"0.875rem",lineHeight:1.45},children:[(0,t.jsx)("span",{"aria-hidden":"true",style:{width:7,height:7,borderRadius:999,flex:"0 0 auto",background:h[a]}}),(0,t.jsx)("span",{style:{flex:"1 1 16rem",minWidth:0},children:o.sentence}),i.length>0?(0,t.jsx)("span",{style:{display:"flex",flexWrap:"wrap",gap:6},children:i.map((e,r)=>e.href!==void 0?(0,t.jsx)("a",{href:e.href,...e.target?{target:e.target,rel:"noopener"}:{},"data-testid":"notice-action",onClick:()=>{e.onSelect?.(),d()},style:{...x,...r===0?k:{}},children:e.label},e.label):(0,t.jsx)("button",{type:"button","data-testid":"notice-action",...e.keys?{"aria-keyshortcuts":e.keys,title:`${e.label} \u2014 ${T(e.keys)}`}:{},onClick:()=>{d(),e.onSelect?.()},style:{...x,...r===0?k:{}},children:e.label},e.label))}):null,(0,t.jsx)("button",{type:"button","data-testid":"notice-dismiss","aria-label":`Dismiss: ${o.sentence}`,title:"Dismiss",onClick:d,style:E,children:"\xD7"})]})}var x={display:"inline-flex",alignItems:"center",minHeight:28,padding:"2px 12px",borderRadius:9,border:"1px solid var(--graview-edge)",background:"var(--graview-panel)",color:"var(--graview-ink)",font:"inherit",fontWeight:500,textDecoration:"none",cursor:"pointer"},k={background:"var(--graview-accent)",borderColor:"var(--graview-accent)",color:"var(--graview-accent-ink)"},E={minWidth:28,minHeight:28,padding:0,border:"none",background:"none",boxShadow:"none",color:"var(--graview-ink-muted)",fontSize:"1rem",cursor:"pointer"};export{P as NoticeStacks};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{d as C,e as re}from"./chunk.
|
|
1
|
+
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{d as C,e as re}from"./chunk.PKUDIWIF.js";import{e as ee}from"./chunk.VW2VCPJX.js";import{b as S}from"./chunk.H7KCWCB4.js";import{m as X}from"./chunk.6BJBPDF3.js";import{Fa as J,G as se,Ja as Q,R as Z,wa as V}from"./chunk.XWAMQPUM.js";import{a as K}from"./chunk.SDO3U72B.js";import{O as Y,U as M,ca as U}from"./chunk.AS4CQBOQ.js";import{b as D}from"./chunk.AJZBJBMO.js";var h=D(se(),1);var n=D(Z(),1),Re=9,le=40,ge=2;function de(e){let r=new Map;for(let i of e.allNodes())r.set(i.kind,(r.get(i.kind)??0)+1);return r}var ue=(e,r)=>(e.far??[]).reduce((i,a)=>i+(r.get(a)??0),0);function ce(e,r,i){if(i)return i.flatMap(s=>e.filters.filter(u=>u.key===s));let a=de(r),o=new Set(e.filters.filter(s=>s.about==="edge"&&ue(s,a)>le).map(s=>s.key));return e.filters.filter(s=>s.about==="edge"?!o.has(s.key):s.about==="via"?o.has(s.key.split(".")[0]):!0)}function pe(e,r){let i=e.filter(a=>a.about==="field"&&a.type==="choice"&&(a.options?.length??0)>0);return r?i:i.slice(0,ge)}var fe=520;function ye(e,r,i,a){let o=i.filters.find(s=>s.key===a.key);if(!o)return`${a.key}: ${a.value}`;if(o.about==="is")return a.value.charAt(0).toUpperCase()+a.value.slice(1);if(o.about==="via")return`${o.label}: ${S(e.tryDefinition(o.far?.[0]??""),o.key.split(".")[1],a.value)}`;if(o.about==="edge"){if(a.value==="*")return`${o.label}: anything`;if(a.value==="none")return`${o.label}: nothing`;let s=r.getNode(a.value);return`${o.label}: ${s?U(e.tryDefinition(s.kind),s):a.value}`}if(o.type==="date"){let[s,u]=a.value.split(":");return`${o.label} ${s} ${u?Y(u):""}`.trim()}if(o.type==="boolean")return`${o.label}: ${a.value==="true"?"yes":"no"}`;if(o.type==="number"){let s=a.value.lastIndexOf(":"),u=a.value.slice(0,Math.max(0,s));if(u==="at-most"||u==="at-least")return`${o.label}: ${u==="at-most"?"at most":"at least"} ${S(e.tryDefinition(i.kind),o.key,Number(a.value.slice(s+1)))}`}return o.type==="text"?`${o.label}: ${a.value}`:`${o.label}: ${S(e.tryDefinition(i.kind),o.key,a.value)}`}var P=e=>/^[A-Z][a-z]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e;function me(e){return e?.type==="date"?{asc:"Earliest first",desc:"Latest first"}:e?.type==="number"?{asc:"Lowest first",desc:"Highest first"}:e?.type==="boolean"?{asc:"No first",desc:"Yes first"}:e?.type==="choice"?{asc:"In their order",desc:"In reverse order"}:{asc:"A to Z",desc:"Z to A"}}var x=V(K(()=>(__graviewPreload(import.meta.url,["./chunk.ZJ2VS4M4.js","./chunk.Y5ARSVH4.js","./chunk.PKUDIWIF.js","./chunk.VW2VCPJX.js","./chunk.HDRD33II.js","./chunk.DX357TZ3.js","./chunk.H7KCWCB4.js","./chunk.6BJBPDF3.js","./chunk.XWAMQPUM.js","./chunk.SDO3U72B.js","./chunk.AS4CQBOQ.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.FOFLD64U.js")))),N=x.part((e,r)=>(0,n.jsx)(e.ArrangeLists,{...r}),{what:"This list",quiet:!0}),he=x.part((e,r)=>(0,n.jsx)(e.ArrangeChips,{...r}),{what:"This list",quiet:!0}),Te=()=>x.load(),q=new Map;function Ie(e){let{schema:r,graph:i,kind:a,arrangement:o,onChange:s}=e,u=e.offers??ee(r,a),g=e.testId??"arrange",y=C(e.allow,"sort")&&u.sorts.length>1,m=C(e.allow,"group")&&u.groups.length>0,F=C(e.allow,"filter")?ce(u,i,e.filters):[],L=e.chips?pe(F,e.filters):[],H=F.filter(t=>!L.includes(t)),G=H.length>0,_=e.query!==!1&&e.allow!==!1,w=we(e.noun,e.kept),v=e.past&&e.past.count>0?e.past:null;if(!y&&!m&&!G&&!_&&!w&&!v)return null;let z=t=>JSON.stringify(re(t)),O=`${g}|${a}`,p={current:q.get(O)??{words:new Set,latest:null,at:0}};q.set(O,p.current),p.current.latest&&Date.now()-p.current.at>1500&&!p.current.words.has(z(o))&&(p.current={words:new Set,latest:null,at:0},q.set(O,p.current));let d=p.current.latest??o,b=t=>{let l={...p.current.latest??o,...t};for(let c of Object.keys(l))l[c]===void 0&&delete l[c];p.current.latest=l,p.current.at=Date.now(),p.current.words.add(z(l)),s(l)},f=d.filter??[],R=t=>{let l=f.filter((c,I)=>I!==t);b({filter:l.length>0?l:void 0})},A=t=>f.some(l=>l.key===t.key&&l.value===t.value),te=t=>A(t)?R(f.findIndex(l=>l.key===t.key&&l.value===t.value)):b({filter:[...f,t]}),T=d.sort?u.sorts.find(t=>t.key===d.sort.by):void 0,j=d.group?u.groups.find(t=>t.key===d.group.by):void 0,ne=me(T),k={schema:r,graph:i,offers:{...u,filters:H},arrangement:d,set:b,toggle:te,has:A,testId:g},ae=(t,l)=>A({key:t,value:l})?R(f.findIndex(c=>c.key===t&&c.value===l)):b({filter:[...f.filter(c=>c.key!==t),{key:t,value:l}]}),oe=d.sort?(0,n.jsxs)(n.Fragment,{children:["Sorted by ",P(T?.label??d.sort.by),(0,n.jsx)("span",{"aria-hidden":"true",children:d.sort.direction==="desc"?" \u2193":" \u2191"})]}):"Sort",ie=d.group?.bucket&&j?.buckets?`, a ${d.group.bucket} each`:"",B=d.group?`Grouped by ${P(j?.label??d.group.by)}${ie}`:"Group";return(0,n.jsxs)("div",{"data-testid":`${g}-bar`,role:"group","aria-label":"Arrange",className:"graview-arrange",style:e.style,onPointerEnter:x.prefetch,onFocus:x.prefetch,children:[(0,n.jsx)("style",{children:xe}),(0,n.jsxs)("div",{className:"graview-arrange-line",children:[w?(0,n.jsxs)("span",{className:"graview-arrange-count","data-testid":`${g}-count`,children:[w.kept?(0,n.jsx)("span",{"data-testid":`${g}-kept`,children:w.kept}):null,w.words]}):null,v?(0,n.jsxs)("button",{type:"button",className:"graview-arrange-open","data-testid":`${g}-past`,title:`${M(v.count)} more behind the horizon \u2014 press to widen the view to the past`,onClick:t=>{let l=t.currentTarget.closest("[data-graview-view]"),c=t.currentTarget;v.widen();let I=0,W=()=>{if(document.activeElement!==c&&document.activeElement!==document.body&&c.isConnected)return;let $=l?.querySelector('[role="group"][aria-label="Arrange"] :is(button, input)');if($&&$!==c&&$.isConnected)return $.focus({preventScroll:!0});++I<120&&requestAnimationFrame(W)};requestAnimationFrame(W)},children:["+",M(v.count)," past"]}):null,f.map((t,l)=>{let c=ye(r,i,u,t);return(0,n.jsxs)("span",{className:"graview-arrange-token","data-testid":`${g}-condition`,children:[c,(0,n.jsx)("button",{type:"button","aria-label":`Remove: ${c}`,title:"Remove",onClick:()=>R(l),children:"\xD7"})]},`${t.key}:${t.value}`)}),y?(0,n.jsx)("span",{className:"graview-arrange-part graview-arrange-one",children:(0,n.jsx)(E,{testId:`${g}-sort`,value:d.sort?.by??"",set:d.sort!==void 0,label:"Sort",name:d.sort?`Sorted by ${P(T?.label??d.sort.by)}, ${ne[d.sort.direction].toLowerCase()}`:"Sort",list:t=>(0,n.jsx)(N,{which:"sort",done:t,...k}),children:oe})}):null,m?(0,n.jsx)("span",{className:"graview-arrange-part graview-arrange-one",children:(0,n.jsx)(E,{testId:`${g}-group`,value:d.group?.by??"",set:d.group!==void 0,label:"Group",name:B,list:t=>(0,n.jsx)(N,{which:"group",done:t,...k}),children:B})}):null,G?(0,n.jsx)("span",{className:"graview-arrange-part",children:(0,n.jsx)(E,{testId:`${g}-add`,value:"",set:!1,label:"Filter",name:f.length>0?`Filter \u2014 ${f.length} on`:"Filter",list:t=>(0,n.jsx)(N,{which:"filter",done:t,...k}),children:"Filter"})}):null,y||m?(0,n.jsx)("span",{className:"graview-arrange-part graview-arrange-all",children:(0,n.jsx)(E,{testId:`${g}-all`,value:"",set:!1,label:"Arrange",name:"Arrange: sort and group",list:t=>(0,n.jsx)(N,{which:"all",done:t,parts:{sort:y,group:m,filter:!1},...k}),children:"Arrange"})}):null,_?(0,n.jsxs)("label",{className:"graview-arrange-words-at",children:[(0,n.jsx)("span",{style:X,children:"Find"}),(0,n.jsx)("input",{type:"search",className:"graview-arrange-words","data-testid":`${g}-query`,value:d.query??"",placeholder:"Find\u2026",onChange:t=>b({query:t.target.value.length>0?t.target.value:void 0})})]}):null,L.length>0&&e.chips?(0,n.jsx)(h.Suspense,{fallback:null,children:(0,n.jsx)(he,{offers:L,chips:e.chips,schema:r,graph:i,kind:a,arrangement:d,has:A,choose:ae,testId:g})}):null]})]})}function we(e,r){if(!r)return null;let i=r.shown!==r.of;if(!e)return i?{words:"",kept:`${r.shown} of ${r.of}`}:null;let a=r.of===1?e.one:e.many;return i?{words:` ${a}`,kept:`${r.shown} of ${r.of}`}:{words:`${r.of} ${a}`}}function E({testId:e,value:r,set:i,label:a,name:o,list:s,children:u}){let g=Q("arrange",{align:"start"}),y=(0,h.useRef)(null);return(0,h.useEffect)(()=>{g.open&&y.current?.querySelector('[aria-pressed="true"]')?.focus({preventScroll:!0})},[g.open]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{type:"button",className:"graview-arrange-open","data-testid":e,"data-set":i?"":void 0,value:r,"aria-label":o,...g.trigger,onClick:g.toggle,children:[u,(0,n.jsx)(be,{})]}),g.open?(0,n.jsx)("div",{...g.pane,ref:m=>{g.pane.ref(m),y.current=m},role:"group","aria-label":a,"data-testid":"arrange-list","data-arrange":e,className:"graview-arrange-list",style:J,onKeyDown:ve,children:s(()=>g.setOpen(!1))}):null]})}function ve(e){if(!["ArrowDown","ArrowUp","Home","End"].includes(e.key))return;let r=[...e.currentTarget.querySelectorAll("button:not([disabled]), input")];if(r.length===0)return;let i=r.indexOf(document.activeElement);if(document.activeElement instanceof HTMLInputElement&&document.activeElement.type==="date"&&(e.key==="ArrowUp"||e.key==="ArrowDown"))return;e.preventDefault();let a=e.key==="Home"?0:e.key==="End"?r.length-1:e.key==="ArrowDown"?(i+1)%r.length:(i-1+r.length)%r.length;r[a].focus()}function be(){return(0,n.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 10 10","aria-hidden":"true",focusable:"false",style:{flex:"0 0 auto",opacity:.7},children:(0,n.jsx)("path",{d:"M2 3.5 L5 6.5 L8 3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}var xe=`
|
|
2
2
|
.graview-arrange{container-type:inline-size;box-sizing:border-box;width:100%;min-width:0;max-width:100%}
|
|
3
3
|
.graview-arrange-line{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0;font-size:.875rem;line-height:1.35;color:var(--graview-ink-muted)}
|
|
4
4
|
.graview-arrange-count{margin-right:2px;color:var(--graview-ink-muted)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as A,c as m,d as v}from"./chunk.55D33E5A.js";import"./chunk.2JJYGYT2.js";import"./chunk.NMIXBH37.js";import{b as g,c as b,d as S}from"./chunk.GVY5UQTJ.js";import"./chunk.AS4CQBOQ.js";import"./chunk.2AZTW66C.js";import"./chunk.AJZBJBMO.js";var N=new Set(["input","select","textarea"]),h=r=>r.namespaceURI==="http://www.w3.org/1999/xhtml"&&N.has(r.localName),x=r=>r.localName==="select"||r.type==="checkbox"||r.type==="radio",w=r=>r.type==="checkbox"||r.type==="radio"?!r.checked:r.localName!=="select"&&r.value==="";function y(r){return r.type==="checkbox"||r.type==="radio"?`checked:${r.checked}`:r.localName==="select"&&r.multiple?`selected:${[...r.selectedOptions].map(a=>a.value).join("\0")}`:`value:${r.value}`}function I(r=a=>a.isTrusted){let a=new WeakMap,c=new WeakSet,o=new WeakMap,i={heard(e,t){if(!(!h(t)||!r(e))&&(e.type==="input"||e.type==="change"&&x(t))&&((x(t)||w(t))&&c.delete(t),w(t)&&o.delete(t),a.set(t,y(t)),t.type==="radio"&&t.name)){let d=t.getRootNode();for(let u of d.querySelectorAll?.('input[type="radio"]')??[])u.name===t.name&&a.set(u,y(u))}},filled(e){a.delete(e),o.delete(e),h(e)&&!w(e)?c.add(e):c.delete(e)},press(e,t,d){if(!r(e))return;let u=t.closest("[data-act]");if(!u||!b(u))return;let l=e.type==="keydown"?e.key:void 0;if(!(e.type!=="click"&&!((l==="Enter"||l===" ")&&t===u&&!g(u))))return i.collect(u,d)},collect(e,t){if(!e.hasAttribute("data-act")||!t.contains(e))return;let d=e.closest("[data-record]"),u=e.closest("fieldset, [role='group']")??t,l=[];for(let n of u.querySelectorAll("input[name], select[name], textarea[name]")){let s=n,f=!c.has(s)&&a.get(s)===y(s);if(s.type==="radio"){if(!s.checked)continue;l.push({name:s.name,value:s.value,typed:f,empty:!1,chosen:!0});continue}if(s.localName==="select"){l.push({name:s.name,value:s.value,typed:f,empty:s.value===""&&!f,chosen:!0});continue}if(s.type==="checkbox"){l.push({name:s.name,value:s.checked,typed:f,empty:!s.checked&&!c.has(s)&&!f});continue}let P=(s.type==="number"||s.type==="range")&&s.value!==""&&Number.isFinite(s.valueAsNumber)?s.valueAsNumber:s.value,E=f?o.get(s):void 0;l.push({name:s.name,value:P,typed:f,empty:s.value===""&&!f,...E?{from:E}:{}})}return{as:e.getAttribute("data-act")??"",...d&&t.contains(d)?{record:d.getAttribute("data-record")}:{},fields:l}},prefilled(e,t){c.delete(e),o.set(e,t),a.set(e,y(e))}};return i}var k=new WeakMap;function H(r){for(let a of r.querySelectorAll("[data-act], [data-graview-press]")){let c=b(a)&&!g(a)&&!h(a),o=k.get(a);if(c&&!o){let i=!a.hasAttribute("tabindex"),e=S(a);i&&a.setAttribute("tabindex","0"),e&&a.setAttribute("role","button"),a.setAttribute("data-graview-press",""),k.set(a,{tab:i,role:e})}else!c&&o&&(o.tab&&a.removeAttribute("tabindex"),o.role&&a.getAttribute("role")==="button"&&a.removeAttribute("role"),a.removeAttribute("data-graview-press"),k.delete(a))}}var T=1e3;function R(r){let a=r.getAttribute("data-debounce")?.trim(),c=a?Number(a):Number.NaN;return Number.isFinite(c)?Math.min(1e4,Math.max(250,Math.round(c))):T}function $(r){let a=r.trusted??(e=>e.isTrusted),c=r.timers??{set:(e,t)=>setTimeout(e,t),clear:e=>clearTimeout(e)},o=new Map,i=(e,t)=>{let d=o.get(e);d&&c.clear(d.handle),o.delete(e);let u=r.reader.collect(e,t);u&&r.save(u,e)};return{heard(e,t,d){if(!h(t)||!a(e)||!t.hasAttribute("data-act"))return;let u=t.getAttribute("data-save");if(e.type==="input"&&u==="input"){let l=o.get(t);l&&c.clear(l.handle),o.set(t,{root:d,handle:c.set(()=>i(t,d),R(t))})}else e.type==="change"&&(u==="change"||u==="input"&&o.has(t))&&i(t,d)},flush(){for(let[e,{root:t}]of[...o])i(e,t)},get waiting(){return o.size}}}var O=new Set(["text","search","email","url","tel","number"]);function F(r,a,c,o){for(let i of r.querySelectorAll("input[data-prefill], textarea[data-prefill]")){let e=i;if(c.has(e))continue;let t=e.getAttribute("data-prefill")??"";if(t===""||e.getAttribute("name")!==t||e.localName==="input"&&!O.has(e.type))continue;if(e.value!==""){c.add(e);continue}let u=[...(e.closest("fieldset, [role='group']")??r).querySelectorAll("[data-act]")],l=e.closest("[data-record]"),n=new Set(u.map(p=>p.closest("[data-record]")?.getAttribute("data-record")).filter(p=>typeof p=="string")),s=l&&r.contains(l)?l.getAttribute("data-record"):n.size===1?[...n][0]:void 0;if(!s)continue;let f=o({record:s,field:t,acts:u.map(p=>p.getAttribute("data-act")??"")});if(f!==void 0){if(e.value=f,c.add(e),e.value!==f){e.value="";continue}a.prefilled(e,{record:s,field:t,value:f})}}}function W(r,a,c,o){let i=v(a,o.as);if(!i)return m("undeclared",`This view may not ask for \u201C${o.as}\u201D: its manifest does not name it.`);let e=r.allMutations().find(n=>n.name===i.act);if(!e)return m("unknown-act","There is no act by that name here.");let t={};if(o.record!==void 0){let n=i.record??e.subject?.arg;if(!n)return m("unbound",`\u201C${o.as}\u201D is not done to a record.`);if(!c.has(o.record))return m("unbound","That press is bound to a record this view was not shown.");t[n]=o.record}for(let[n,s]of Object.entries(i.constants??{})){if(n in t)return m("malformed",`\u201C${n}\u201D is both the bound record and a constant.`);t[n]=s}let d=e.input?.shape??{},u=new Set(Object.keys(d)),l=new Set;for(let n of o.fields)if(!(!u.has(n.name)||n.name in t)){if(l.has(n.name))return m("malformed",`Two fields here are called \u201C${n.name}\u201D.`);if(l.add(n.name),n.typed&&n.chosen){let s=A(d[n.name])?.find(f=>String(f)===String(n.value));if(s!==void 0)t[n.name]=s;else if(typeof n.value=="string"&&c.has(n.value))t[n.name]=n.value;else return m("untyped",`\u201C${n.name}\u201D was a choice among the view's own words, not one this app declares, so it was not sent.`)}else{if(n.typed&&n.from&&!(o.record===n.from.record&&n.name===n.from.field&&M(r,i,n.from.record,n.from.field)))return m("untyped",`\u201C${n.name}\u201D was filled in from a record for an act that writes it back there, not for this one, so it was not sent.`);if(n.typed&&n.from&&String(n.value)===n.from.value)t[n.name]=r.graph.getNode(n.from.record)?.[n.name]??n.value;else if(n.typed)t[n.name]=n.value;else if(!n.empty)return m("untyped",`\u201C${n.name}\u201D was filled in by the view, not typed by you, so it was not sent.`)}}return{ok:!0,name:i.act,args:t}}function M(r,a,c,o){let i=r.allMutations().find(u=>u.name===a.act),e=i?.subject;if(!i||!e||(a.record??e.arg)!==e.arg||o===e.arg||Object.hasOwn(a.constants??{},o)||!Object.hasOwn(i.input.shape??{},o)||Object.keys(i.writesOther??{}).length>0)return!1;let t=r.graph.getNode(c)?.kind,d=t===void 0?void 0:r.schema.tryDefinition(t);return!d||e.kinds!=="*"&&!e.kinds.includes(t)||!Object.hasOwn(d.fields.shape??{},o)?!1:i.writes?.includes(o)??!1}function q(r,a,c,o,i){if(!o.has(i.record))return;let e=r.seenBy(a).graph.getNode(i.record);if(!e||!i.acts.some(u=>{let l=v(c,u);if(!l||!M(r,l,i.record,i.field))return!1;let n=r.allMutations().find(s=>s.name===l.act).subject;return r.permits({name:l.act,args:{[n.arg]:i.record}},a).ok}))return;let d=e[i.field];return typeof d=="string"?d:typeof d=="number"&&Number.isFinite(d)?String(d):void 0}export{T as SAVE_DEBOUNCE_MS,I as createPressReader,$ as createSaver,F as fillPrefills,W as judgePress,H as markPresses,q as prefillOf,R as saveDebounceOf,M as writesBack};
|
package/dist/preview/index.html
CHANGED
|
@@ -5,62 +5,66 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>Graview preview</title>
|
|
7
7
|
<link rel="preload" href="/graview/document" as="fetch" crossorigin="anonymous">
|
|
8
|
-
<link rel="modulepreload" href="/chunk.
|
|
9
|
-
<link rel="modulepreload" href="/chunk.
|
|
8
|
+
<link rel="modulepreload" href="/chunk.E37V2EJM.js">
|
|
9
|
+
<link rel="modulepreload" href="/chunk.FHZBXMXR.js">
|
|
10
|
+
<link rel="modulepreload" href="/chunk.F6HMZL65.js">
|
|
11
|
+
<link rel="modulepreload" href="/chunk.S5MQVPLF.js">
|
|
10
12
|
<link rel="modulepreload" href="/chunk.Q5WEOX3Q.js">
|
|
11
|
-
<link rel="modulepreload" href="/chunk.
|
|
12
|
-
<link rel="modulepreload" href="/chunk.
|
|
13
|
-
<link rel="modulepreload" href="/chunk.
|
|
14
|
-
<link rel="modulepreload" href="/chunk.
|
|
13
|
+
<link rel="modulepreload" href="/chunk.MGWMGLWE.js">
|
|
14
|
+
<link rel="modulepreload" href="/chunk.KWQ7QOHD.js">
|
|
15
|
+
<link rel="modulepreload" href="/chunk.6BJBPDF3.js">
|
|
16
|
+
<link rel="modulepreload" href="/chunk.XWAMQPUM.js">
|
|
15
17
|
<link rel="modulepreload" href="/chunk.SDO3U72B.js">
|
|
16
|
-
<link rel="modulepreload" href="/chunk.
|
|
18
|
+
<link rel="modulepreload" href="/chunk.AS4CQBOQ.js">
|
|
17
19
|
<link rel="modulepreload" href="/chunk.2AZTW66C.js">
|
|
18
20
|
<link rel="modulepreload" href="/chunk.AJZBJBMO.js">
|
|
19
|
-
<link rel="modulepreload" href="/chunk.
|
|
20
|
-
<link rel="modulepreload" href="/chunk.
|
|
21
|
-
<link rel="modulepreload" href="/chunk.
|
|
22
|
-
<link rel="modulepreload" href="/chunk.
|
|
21
|
+
<link rel="modulepreload" href="/chunk.CSDERNQV.js">
|
|
22
|
+
<link rel="modulepreload" href="/chunk.J7G3AATY.js">
|
|
23
|
+
<link rel="modulepreload" href="/chunk.B6KT6BTG.js">
|
|
24
|
+
<link rel="modulepreload" href="/chunk.ZBR2QY67.js">
|
|
25
|
+
<link rel="modulepreload" href="/chunk.K46YRA65.js">
|
|
26
|
+
<link rel="modulepreload" href="/chunk.UJKT2G6M.js">
|
|
23
27
|
<link rel="modulepreload" href="/chunk.UGFDSE37.js">
|
|
24
|
-
<link rel="modulepreload" href="/chunk.
|
|
25
|
-
<link rel="modulepreload" href="/chunk.
|
|
26
|
-
<link rel="modulepreload" href="/chunk.
|
|
27
|
-
<link rel="modulepreload" href="/chunk.
|
|
28
|
-
<link rel="modulepreload" href="/chunk.
|
|
29
|
-
<link rel="modulepreload" href="/chunk.
|
|
30
|
-
<link rel="modulepreload" href="/chunk.
|
|
28
|
+
<link rel="modulepreload" href="/chunk.DLFWBG33.js">
|
|
29
|
+
<link rel="modulepreload" href="/chunk.RYRTKIKB.js">
|
|
30
|
+
<link rel="modulepreload" href="/chunk.M5GJHVWZ.js">
|
|
31
|
+
<link rel="modulepreload" href="/chunk.HZGVEHEN.js">
|
|
32
|
+
<link rel="modulepreload" href="/chunk.JBW3DI7E.js">
|
|
33
|
+
<link rel="modulepreload" href="/chunk.CBUSFM3E.js">
|
|
34
|
+
<link rel="modulepreload" href="/chunk.NIVTK2W5.js">
|
|
31
35
|
<link rel="modulepreload" href="/chunk.PXQVXBNG.js">
|
|
32
|
-
<link rel="modulepreload" href="/chunk.
|
|
33
|
-
<link rel="modulepreload" href="/chunk.
|
|
34
|
-
<link rel="modulepreload" href="/chunk.
|
|
35
|
-
<link rel="modulepreload" href="/chunk.
|
|
36
|
-
<link rel="modulepreload" href="/chunk.
|
|
37
|
-
<link rel="modulepreload" href="/chunk.
|
|
38
|
-
<link rel="modulepreload" href="/chunk.
|
|
39
|
-
<link rel="modulepreload" href="/chunk.
|
|
40
|
-
<link rel="modulepreload" href="/chunk.
|
|
41
|
-
<link rel="modulepreload" href="/chunk.
|
|
42
|
-
<link rel="modulepreload" href="/chunk.
|
|
43
|
-
<link rel="modulepreload" href="/chunk.
|
|
44
|
-
<link rel="modulepreload" href="/chunk.
|
|
36
|
+
<link rel="modulepreload" href="/chunk.FPASZ4RD.js">
|
|
37
|
+
<link rel="modulepreload" href="/chunk.2YABX3SC.js">
|
|
38
|
+
<link rel="modulepreload" href="/chunk.DQOCBKC3.js">
|
|
39
|
+
<link rel="modulepreload" href="/chunk.V5FIZIX2.js">
|
|
40
|
+
<link rel="modulepreload" href="/chunk.DQHPEKWK.js">
|
|
41
|
+
<link rel="modulepreload" href="/chunk.LSLLKICK.js">
|
|
42
|
+
<link rel="modulepreload" href="/chunk.EAUVEVVO.js">
|
|
43
|
+
<link rel="modulepreload" href="/chunk.C2UFMFJ3.js">
|
|
44
|
+
<link rel="modulepreload" href="/chunk.ZJ2VS4M4.js">
|
|
45
|
+
<link rel="modulepreload" href="/chunk.Y5ARSVH4.js">
|
|
46
|
+
<link rel="modulepreload" href="/chunk.PKUDIWIF.js">
|
|
47
|
+
<link rel="modulepreload" href="/chunk.VW2VCPJX.js">
|
|
48
|
+
<link rel="modulepreload" href="/chunk.UKAPFIPJ.js">
|
|
45
49
|
<link rel="modulepreload" href="/chunk.UT6642FC.js">
|
|
46
|
-
<link rel="modulepreload" href="/chunk.
|
|
50
|
+
<link rel="modulepreload" href="/chunk.IW7YFPGG.js">
|
|
47
51
|
<link rel="modulepreload" href="/chunk.MB7LKKUD.js">
|
|
48
52
|
<link rel="modulepreload" href="/chunk.WVUJXDXZ.js">
|
|
49
|
-
<link rel="modulepreload" href="/chunk.
|
|
50
|
-
<link rel="modulepreload" href="/chunk.
|
|
51
|
-
<link rel="modulepreload" href="/chunk.
|
|
52
|
-
<link rel="modulepreload" href="/chunk.
|
|
53
|
-
<link rel="modulepreload" href="/chunk.
|
|
53
|
+
<link rel="modulepreload" href="/chunk.OYHQSXNC.js">
|
|
54
|
+
<link rel="modulepreload" href="/chunk.UHX4WTM7.js">
|
|
55
|
+
<link rel="modulepreload" href="/chunk.IKX4VDTW.js">
|
|
56
|
+
<link rel="modulepreload" href="/chunk.RNEJYIQ7.js">
|
|
57
|
+
<link rel="modulepreload" href="/chunk.TBQOSI4J.js">
|
|
54
58
|
<link rel="modulepreload" href="/chunk.GZHZLJBF.js">
|
|
55
|
-
<link rel="modulepreload" href="/chunk.
|
|
59
|
+
<link rel="modulepreload" href="/chunk.6MADC6DM.js">
|
|
56
60
|
<link rel="modulepreload" href="/chunk.OJGHDWI6.js">
|
|
57
|
-
<link rel="modulepreload" href="/chunk.
|
|
58
|
-
<link rel="modulepreload" href="/chunk.
|
|
59
|
-
<link rel="modulepreload" href="/chunk.
|
|
60
|
-
<link rel="modulepreload" href="/chunk.
|
|
61
|
-
<link rel="modulepreload" href="/chunk.
|
|
62
|
-
<link rel="modulepreload" href="/chunk.
|
|
63
|
-
<script>(()=>{const later=["/chunk.
|
|
61
|
+
<link rel="modulepreload" href="/chunk.JLEC3USG.js">
|
|
62
|
+
<link rel="modulepreload" href="/chunk.HDRD33II.js">
|
|
63
|
+
<link rel="modulepreload" href="/chunk.DX357TZ3.js">
|
|
64
|
+
<link rel="modulepreload" href="/chunk.H7KCWCB4.js">
|
|
65
|
+
<link rel="modulepreload" href="/chunk.L24FCXZ7.js">
|
|
66
|
+
<link rel="modulepreload" href="/chunk.ZEAH57AZ.js">
|
|
67
|
+
<script>(()=>{const later=["/chunk.GFLAGZSB.js","/chunk.4XOWRYRU.js","/chunk.WSTBCWW7.js","/chunk.HJCQ6I3S.js","/chunk.BNPQUI3F.js","/chunk.6RY6OSE6.js","/chunk.SZ34UAQ3.js","/chunk.WBHM5I3I.js","/chunk.VC3BX2ZF.js","/chunk.Q7RQC3F7.js","/chunk.6USUVORO.js","/chunk.FOFLD64U.js","/chunk.BS2SJC2P.js","/chunk.UY7IOVR6.js","/chunk.64WM4IBI.js","/chunk.JDMXZFSG.js","/chunk.TI4OSTQV.js","/chunk.VSAPJAT3.js"],first=[...document.querySelectorAll('link[rel="modulepreload"]')];let left=first.length;const go=()=>{for(const href of later){const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};if(left===0)return go();const one=()=>{if(--left===0)go()};for(const link of first){link.addEventListener("load",one,{once:true});link.addEventListener("error",one,{once:true})}})()</script>
|
|
64
68
|
<style>html,body{margin:0;height:100%}#graview-app{min-height:100dvh}</style>
|
|
65
69
|
</head>
|
|
66
70
|
<body>
|