graview 0.1.43 → 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.
Files changed (184) hide show
  1. package/dist/preview/{chunk.6AYTF53S.js → chunk.2EFH63WS.js} +1 -1
  2. package/dist/preview/{chunk.YPEZZLOY.js → chunk.2JJYGYT2.js} +1 -1
  3. package/dist/preview/chunk.2LKMNEWZ.js +1 -0
  4. package/dist/preview/{chunk.X5WB4GJ4.js → chunk.2YABX3SC.js} +1 -1
  5. package/dist/preview/{chunk.OIJP6PQV.js → chunk.3HSPWSAI.js} +1 -1
  6. package/dist/preview/chunk.3NMINX5Z.js +1 -0
  7. package/dist/preview/{chunk.SKB4XSDG.js → chunk.4HYJHGI4.js} +1 -1
  8. package/dist/preview/{chunk.F6CPM7SL.js → chunk.4KNEBLB7.js} +1 -1
  9. package/dist/preview/{chunk.3GQL4K3Q.js → chunk.4RJZVTW7.js} +1 -1
  10. package/dist/preview/{chunk.N3FONYEP.js → chunk.4XOWRYRU.js} +2 -2
  11. package/dist/preview/{chunk.4P3LS2OE.js → chunk.55D33E5A.js} +1 -1
  12. package/dist/preview/{chunk.FTF67QE2.js → chunk.5B2LH2SR.js} +1 -1
  13. package/dist/preview/chunk.5EDA3JHU.js +1 -0
  14. package/dist/preview/{chunk.TX65ZO27.js → chunk.5O5IJVLN.js} +1 -1
  15. package/dist/preview/chunk.5R2R364Q.js +1 -0
  16. package/dist/preview/{chunk.6BU3GCHK.js → chunk.63JLXGYX.js} +1 -1
  17. package/dist/preview/{chunk.XGRMQUFB.js → chunk.64WM4IBI.js} +1 -1
  18. package/dist/preview/chunk.66JF3UMG.js +1 -0
  19. package/dist/preview/chunk.6BJBPDF3.js +349 -0
  20. package/dist/preview/{chunk.T4M4MLOS.js → chunk.6KWFTSK4.js} +1 -1
  21. package/dist/preview/{chunk.EBTYR5CZ.js → chunk.6MADC6DM.js} +1 -1
  22. package/dist/preview/{chunk.WH2RYGXR.js → chunk.6RY6OSE6.js} +1 -1
  23. package/dist/preview/{chunk.4YLBGGWT.js → chunk.6SJA4FSW.js} +1 -1
  24. package/dist/preview/chunk.6SWW6KEV.js +1 -0
  25. package/dist/preview/chunk.6UIW664O.js +6 -0
  26. package/dist/preview/chunk.6USUVORO.js +1 -0
  27. package/dist/preview/{chunk.B2KDYES6.js → chunk.6X3G3PWL.js} +1 -1
  28. package/dist/preview/chunk.7KVWV577.js +1 -0
  29. package/dist/preview/{chunk.DZN26GKS.js → chunk.7ZRFXI73.js} +1 -1
  30. package/dist/preview/chunk.AS4CQBOQ.js +5 -0
  31. package/dist/preview/{chunk.C3DX4LWD.js → chunk.B6KT6BTG.js} +4 -4
  32. package/dist/preview/{chunk.RDXDEFOC.js → chunk.BGYY55VO.js} +1 -1
  33. package/dist/preview/{chunk.A3WOUDOG.js → chunk.BNPQUI3F.js} +1 -1
  34. package/dist/preview/chunk.BRDAO2OF.js +4 -0
  35. package/dist/preview/{chunk.C3X3R7LP.js → chunk.BS2SJC2P.js} +2 -2
  36. package/dist/preview/{chunk.RQBX7M7Q.js → chunk.C2UFMFJ3.js} +2 -2
  37. package/dist/preview/{chunk.S2MP53RO.js → chunk.CBUSFM3E.js} +1 -1
  38. package/dist/preview/chunk.CSDERNQV.js +1 -0
  39. package/dist/preview/chunk.DLFWBG33.js +1 -0
  40. package/dist/preview/{chunk.5TBK44MK.js → chunk.DQHPEKWK.js} +1 -1
  41. package/dist/preview/{chunk.5J2HETUO.js → chunk.DQOCBKC3.js} +1 -1
  42. package/dist/preview/{chunk.R7F6UJVG.js → chunk.DX357TZ3.js} +1 -1
  43. package/dist/preview/{chunk.T4QT5SZY.js → chunk.E37V2EJM.js} +1 -1
  44. package/dist/preview/{chunk.XAXZCOZK.js → chunk.E4G6DXSB.js} +1 -1
  45. package/dist/preview/chunk.EAUVEVVO.js +1 -0
  46. package/dist/preview/chunk.EVW5YY3W.js +1 -0
  47. package/dist/preview/chunk.F6HMZL65.js +1 -0
  48. package/dist/preview/{chunk.IJ2AF3AW.js → chunk.FCAYURB4.js} +1 -1
  49. package/dist/preview/{chunk.LDU25CCL.js → chunk.FF6DBQMB.js} +1 -1
  50. package/dist/preview/chunk.FHZBXMXR.js +33 -0
  51. package/dist/preview/{chunk.26SI4K3P.js → chunk.FOFLD64U.js} +1 -1
  52. package/dist/preview/{chunk.BYVE2NQY.js → chunk.FPASZ4RD.js} +1 -1
  53. package/dist/preview/{chunk.KR3J27IA.js → chunk.FTM64IDI.js} +1 -1
  54. package/dist/preview/chunk.GEPNIMXW.js +1 -0
  55. package/dist/preview/{chunk.25VAWLKJ.js → chunk.GER2XRD4.js} +1 -1
  56. package/dist/preview/chunk.GFLAGZSB.js +1 -0
  57. package/dist/preview/{chunk.JNCSGUO3.js → chunk.GIYFEGAP.js} +1 -1
  58. package/dist/preview/chunk.GVY5UQTJ.js +1 -0
  59. package/dist/preview/{chunk.DYW4D74X.js → chunk.H7KCWCB4.js} +1 -1
  60. package/dist/preview/{chunk.RSYFIL2Z.js → chunk.HDRD33II.js} +1 -1
  61. package/dist/preview/{chunk.3B47UX2J.js → chunk.HGTPTRMM.js} +1 -1
  62. package/dist/preview/chunk.HWCHFQ7O.js +6 -0
  63. package/dist/preview/{chunk.4ZHUGSJL.js → chunk.HZGVEHEN.js} +1 -1
  64. package/dist/preview/{chunk.I4HUBO22.js → chunk.ICCIZDTQ.js} +1 -1
  65. package/dist/preview/{chunk.YKN2VWWQ.js → chunk.ICGNIK3Z.js} +2 -2
  66. package/dist/preview/chunk.II7VTGNC.js +1 -0
  67. package/dist/preview/{chunk.R2B2ZAWI.js → chunk.IKX4VDTW.js} +1 -1
  68. package/dist/preview/chunk.IW7YFPGG.js +1 -0
  69. package/dist/preview/chunk.J7G3AATY.js +14 -0
  70. package/dist/preview/{chunk.DJ3BD7AZ.js → chunk.JBW3DI7E.js} +1 -1
  71. package/dist/preview/{chunk.6IEDQHKI.js → chunk.JDMXZFSG.js} +1 -1
  72. package/dist/preview/{chunk.4IDXQVSW.js → chunk.JHIUG25Q.js} +1 -1
  73. package/dist/preview/{chunk.OWL5GZ6U.js → chunk.JLEC3USG.js} +1 -1
  74. package/dist/preview/{chunk.ZRICIE6T.js → chunk.JLYNMAME.js} +1 -1
  75. package/dist/preview/{chunk.C5NOO4CC.js → chunk.JR7RDOEP.js} +1 -1
  76. package/dist/preview/{chunk.KWQ67UK2.js → chunk.JSSFA3FC.js} +1 -1
  77. package/dist/preview/chunk.K46YRA65.js +1 -0
  78. package/dist/preview/chunk.K6KMLD2B.js +21 -0
  79. package/dist/preview/{chunk.ONSG3OIL.js → chunk.KBHU54NM.js} +1 -1
  80. package/dist/preview/{chunk.6ROYIMQ2.js → chunk.KRGM25HF.js} +1 -1
  81. package/dist/preview/chunk.KUUDW7VR.js +1 -0
  82. package/dist/preview/{chunk.TMBFLZNH.js → chunk.KWQ7QOHD.js} +1 -1
  83. package/dist/preview/chunk.L24FCXZ7.js +1 -0
  84. package/dist/preview/{chunk.7TU2PDYW.js → chunk.L2PI7V4R.js} +1 -1
  85. package/dist/preview/{chunk.NH6D6TWY.js → chunk.L3FOLN3K.js} +1 -1
  86. package/dist/preview/{chunk.PWYMZWAN.js → chunk.L3FQZCWI.js} +1 -1
  87. package/dist/preview/{chunk.IJU322EP.js → chunk.LEO2KWLZ.js} +1 -1
  88. package/dist/preview/{chunk.3HLNRVFY.js → chunk.LNG3CQNI.js} +1 -1
  89. package/dist/preview/{chunk.27QYTMXP.js → chunk.LSLLKICK.js} +1 -1
  90. package/dist/preview/{chunk.QXTLZSBL.js → chunk.M5GJHVWZ.js} +1 -1
  91. package/dist/preview/{chunk.GZA5ZNLJ.js → chunk.MGWMGLWE.js} +1 -1
  92. package/dist/preview/{chunk.7MXQRSNR.js → chunk.NIVTK2W5.js} +1 -1
  93. package/dist/preview/chunk.NMIXBH37.js +1 -0
  94. package/dist/preview/{chunk.6PF5LWRK.js → chunk.OF34OZ4V.js} +1 -1
  95. package/dist/preview/chunk.OMZ3LDDN.js +1 -0
  96. package/dist/preview/{chunk.QWY54AVN.js → chunk.OYHQSXNC.js} +1 -1
  97. package/dist/preview/{chunk.BT6FUNQI.js → chunk.PKUDIWIF.js} +1 -1
  98. package/dist/preview/chunk.PRD3UNJX.js +7 -0
  99. package/dist/preview/{chunk.FKLEIR4Y.js → chunk.Q7RQC3F7.js} +1 -1
  100. package/dist/preview/{chunk.BYVLGDVJ.js → chunk.QGVLJTZS.js} +1 -1
  101. package/dist/preview/chunk.QPCSS322.js +1 -0
  102. package/dist/preview/{chunk.ZEC64CK6.js → chunk.R2AG4NHQ.js} +1 -1
  103. package/dist/preview/{chunk.7XCBIID7.js → chunk.RNEJYIQ7.js} +1 -1
  104. package/dist/preview/chunk.RPX35VYU.js +1 -0
  105. package/dist/preview/{chunk.CO2ZPX3D.js → chunk.RYRTKIKB.js} +2 -2
  106. package/dist/preview/chunk.S5MQVPLF.js +1 -0
  107. package/dist/preview/{chunk.Z56L6V6Z.js → chunk.S6WHA4CW.js} +1 -1
  108. package/dist/preview/{chunk.XBV4WO7D.js → chunk.SDU76JU6.js} +1 -1
  109. package/dist/preview/{chunk.GSZYT6GF.js → chunk.SGKPGVBB.js} +1 -1
  110. package/dist/preview/chunk.SZ34UAQ3.js +2 -0
  111. package/dist/preview/chunk.T7XH7FVJ.js +1 -0
  112. package/dist/preview/{chunk.MI2HL3LQ.js → chunk.TBQOSI4J.js} +1 -1
  113. package/dist/preview/{chunk.WWR7Y2KE.js → chunk.TBSNNOQU.js} +1 -1
  114. package/dist/preview/{chunk.CW6IPHRR.js → chunk.TOXWNEOQ.js} +2 -2
  115. package/dist/preview/{chunk.T4Q6OLZU.js → chunk.UHX4WTM7.js} +1 -1
  116. package/dist/preview/chunk.UJKT2G6M.js +5 -0
  117. package/dist/preview/{chunk.Q5XICUDZ.js → chunk.UKAPFIPJ.js} +1 -1
  118. package/dist/preview/{chunk.7ROWZZN5.js → chunk.UM7GWXEW.js} +1 -1
  119. package/dist/preview/{chunk.OH2N3SX7.js → chunk.UNCS63AM.js} +1 -1
  120. package/dist/preview/{chunk.PEXPTDX7.js → chunk.URXSZQSF.js} +1 -1
  121. package/dist/preview/{chunk.7IXLH7PR.js → chunk.UY7IOVR6.js} +1 -1
  122. package/dist/preview/{chunk.6XEATXZC.js → chunk.V5FIZIX2.js} +1 -1
  123. package/dist/preview/chunk.VC3BX2ZF.js +1 -0
  124. package/dist/preview/{chunk.FCPH4YZN.js → chunk.VSAPJAT3.js} +1 -1
  125. package/dist/preview/{chunk.MBOOUJOE.js → chunk.VW2VCPJX.js} +1 -1
  126. package/dist/preview/chunk.W2RCWPLK.js +1 -0
  127. package/dist/preview/{chunk.ZE4U4JBF.js → chunk.W44VRHKS.js} +2 -2
  128. package/dist/preview/{chunk.SGRKCQ2X.js → chunk.WAB7UDHU.js} +1 -1
  129. package/dist/preview/chunk.WBHM5I3I.js +1 -0
  130. package/dist/preview/chunk.WM2LWHTJ.js +1 -0
  131. package/dist/preview/{chunk.ZE6LJVVN.js → chunk.WPOTEXJZ.js} +1 -1
  132. package/dist/preview/{chunk.RPDTWQKA.js → chunk.WSTBCWW7.js} +3 -3
  133. package/dist/preview/{chunk.XFQUVMRI.js → chunk.XMCFZD3A.js} +1 -1
  134. package/dist/preview/chunk.XWAMQPUM.js +25 -0
  135. package/dist/preview/{chunk.IQ3LUSD6.js → chunk.XXEYRHRG.js} +1 -1
  136. package/dist/preview/{chunk.CTSPNTDX.js → chunk.Y5ARSVH4.js} +1 -1
  137. package/dist/preview/{chunk.DQR45N7V.js → chunk.Z6TMIAAB.js} +1 -1
  138. package/dist/preview/chunk.ZBR2QY67.js +104 -0
  139. package/dist/preview/chunk.ZEAH57AZ.js +1 -0
  140. package/dist/preview/{chunk.FLMNHV6A.js → chunk.ZJ2VS4M4.js} +1 -1
  141. package/dist/preview/chunk.ZTIF23VF.js +1 -0
  142. package/dist/preview/index.html +49 -45
  143. package/dist/preview/page.js +2 -34
  144. package/package.json +6 -6
  145. package/dist/preview/chunk.22E4GKYU.js +0 -1
  146. package/dist/preview/chunk.2JMJTREH.js +0 -1
  147. package/dist/preview/chunk.3JATXDSP.js +0 -1
  148. package/dist/preview/chunk.4C65DXZB.js +0 -1
  149. package/dist/preview/chunk.4HAGPMY6.js +0 -117
  150. package/dist/preview/chunk.4ZSHTUNK.js +0 -1
  151. package/dist/preview/chunk.5BJW4IPW.js +0 -1
  152. package/dist/preview/chunk.63DI7XNE.js +0 -21
  153. package/dist/preview/chunk.64MP7636.js +0 -1
  154. package/dist/preview/chunk.6K4JBLOP.js +0 -1
  155. package/dist/preview/chunk.7L6LYXCV.js +0 -25
  156. package/dist/preview/chunk.7MQ7UWVW.js +0 -5
  157. package/dist/preview/chunk.AXJJUCWT.js +0 -1
  158. package/dist/preview/chunk.CXJXVBGF.js +0 -1
  159. package/dist/preview/chunk.E5PHLNXR.js +0 -1
  160. package/dist/preview/chunk.EPPAFWP7.js +0 -5
  161. package/dist/preview/chunk.GAFYE37S.js +0 -3
  162. package/dist/preview/chunk.GNPYSMHA.js +0 -1
  163. package/dist/preview/chunk.HMABYAZR.js +0 -1
  164. package/dist/preview/chunk.IWUSCCZN.js +0 -1
  165. package/dist/preview/chunk.K6SPN4D6.js +0 -7
  166. package/dist/preview/chunk.KBMVUIWR.js +0 -6
  167. package/dist/preview/chunk.KG5R4GTK.js +0 -1
  168. package/dist/preview/chunk.LBIDNJ6G.js +0 -1
  169. package/dist/preview/chunk.MXU3VQSQ.js +0 -1
  170. package/dist/preview/chunk.NQTCOBOQ.js +0 -1
  171. package/dist/preview/chunk.O4X5WJIC.js +0 -1
  172. package/dist/preview/chunk.ORKXXLWD.js +0 -1
  173. package/dist/preview/chunk.OUN2H3TR.js +0 -1
  174. package/dist/preview/chunk.QJUFVEAU.js +0 -1
  175. package/dist/preview/chunk.RY4E4JRI.js +0 -1
  176. package/dist/preview/chunk.S6BZXNMV.js +0 -1
  177. package/dist/preview/chunk.U3ETEQDO.js +0 -1
  178. package/dist/preview/chunk.VCOIFBUE.js +0 -1
  179. package/dist/preview/chunk.VP35BUUZ.js +0 -349
  180. package/dist/preview/chunk.XVWJD2DG.js +0 -2
  181. package/dist/preview/chunk.YQDIVHCH.js +0 -1
  182. package/dist/preview/chunk.YWVOACSX.js +0 -5
  183. package/dist/preview/chunk.ZHRW2UF4.js +0 -1
  184. package/dist/preview/chunk.ZUJZVK2X.js +0 -1
@@ -1,25 +0,0 @@
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 Dn,Fa as _n,Hc as jn,J as Cn,Ja as mt,Kc as Gn,La as Ln,Nc as Wn,Wa as Hn,ad as Fn,pd as Kn,ud as Fe,vd as gt,wc as Nn}from"./chunk.7MQ7UWVW.js";import{a as We,b as _}from"./chunk.AJZBJBMO.js";var lo=We(w=>{"use strict";var At=Symbol.for("react.transitional.element"),Tr=Symbol.for("react.portal"),Mr=Symbol.for("react.fragment"),Or=Symbol.for("react.strict_mode"),Vr=Symbol.for("react.profiler"),Ir=Symbol.for("react.consumer"),Cr=Symbol.for("react.context"),_r=Symbol.for("react.forward_ref"),Lr=Symbol.for("react.suspense"),Hr=Symbol.for("react.memo"),no=Symbol.for("react.lazy"),Dr=Symbol.for("react.activity"),Jn=Symbol.iterator;function Nr(e){return e===null||typeof e!="object"?null:(e=Jn&&e[Jn]||e["@@iterator"],typeof e=="function"?e:null)}var oo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ro=Object.assign,io={};function ge(e,t,n){this.props=e,this.context=t,this.refs=io,this.updater=n||oo}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 ao(){}ao.prototype=ge.prototype;function kt(e,t,n){this.props=e,this.context=t,this.refs=io,this.updater=n||oo}var Pt=kt.prototype=new ao;Pt.constructor=kt;ro(Pt,ge.prototype);Pt.isPureReactComponent=!0;var Qn=Array.isArray;function Et(){}var M={H:null,A:null,T:null,S:null},so=Object.prototype.hasOwnProperty;function Rt(e,t,n){var o=n.ref;return{$$typeof:At,type:e,key:t,ref:o!==void 0?o:null,props:n}}function jr(e,t){return Rt(e.type,t,e.props)}function Tt(e){return typeof e=="object"&&e!==null&&e.$$typeof===At}function Gr(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eo=/\/+/g;function xt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gr(""+e.key):t.toString(36)}function Wr(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Et,Et):(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 At:case Tr:a=!0;break;case no:return a=e._init,me(a(e._payload),t,n,o,r)}}if(a)return r=r(e),a=o===""?"."+xt(e,0):o,Qn(r)?(n="",a!=null&&(n=a.replace(eo,"$&/")+"/"),me(r,t,n,"",function(u){return u})):r!=null&&(Tt(r)&&(r=jr(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(eo,"$&/")+"/")+a)),t.push(r)),1;a=0;var d=o===""?".":o+":";if(Qn(e))for(var s=0;s<e.length;s++)o=e[s],i=d+xt(o,s),a+=me(o,t,n,i,r);else if(s=Nr(e),typeof s=="function")for(e=s.call(e),s=0;!(o=e.next()).done;)o=o.value,i=d+xt(o,s++),a+=me(o,t,n,i,r);else if(i==="object"){if(typeof e.then=="function")return me(Wr(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 Fr(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 to=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)},Kr={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(!Tt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=Dr;w.Children=Kr;w.Component=ge;w.Fragment=Mr;w.Profiler=Vr;w.PureComponent=kt;w.StrictMode=Or;w.Suspense=Lr;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=ro({},e.props),r=e.key;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)!so.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 Rt(e.type,r,o)};w.createContext=function(e){return e={$$typeof:Cr,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ir,_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)so.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 Rt(e,i,r)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:_r,render:e}};w.isValidElement=Tt;w.lazy=function(e){return{$$typeof:no,_payload:{_status:-1,_result:e},_init:Fr}};w.memo=function(e,t){return{$$typeof:Hr,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(Et,to)}catch(i){to(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((xa,uo)=>{"use strict";uo.exports=lo()});var wo=We(et=>{"use strict";var ei=Symbol.for("react.transitional.element"),ti=Symbol.for("react.fragment");function So(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:ei,type:e,key:o,ref:t!==void 0?t:null,props:n}}et.Fragment=ti;et.jsx=So;et.jsxs=So});var Ce=We((Oa,vo)=>{"use strict";vo.exports=wo()});var fe={focusId:null,relation:null,expanded:[],pins:{}},qe=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}`,`${Be(r.x)},${Be(r.y)}`)}e.pan&&(e.pan.x!==0||e.pan.y!==0)&&t.set("pan",`${Be(e.pan.x)},${Be(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 xr(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:qe(g),y=v===void 0?null:qe(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:qe(a[0]),s=a[1]===void 0?null:qe(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:xr(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 ia(e){let t=$e(e);return te(t)==="#"?{...t,overview:!0}:t}function aa(e){let t=te(e);return t==="#overview=1"?"":t}function Be(e){return Math.round(e*100)/100}function Bn(e,t){return te(e)===te(t)}var qn="edge:";function $n(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 ht(e){let{pan:t,...n}=e;return{...n,pins:{}}}function B(e,t){if(t===e.focusId)return{...e,focusId:t};let n=ht(e);return{...n.within?.q!==void 0?ae(n,"q",null):n,focusId:t}}function zn(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=ht(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=ht(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 St(e){return`${Ye}${e}`}function ye(e){return e.startsWith(Ye)?e.slice(Ye.length):null}var da="kinds:beyond";function Er(e){let t=ye(e);return t?[t]:se(e)}function ne(...e){return`${Ze}${[...e].sort().join("+")}`}function Un(e){return e.startsWith(Ze)}function se(e){return!Un(e)||e.includes("|")?[]:e.slice(Ze.length).split("+").filter(Boolean)}function Yn(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({...B(e,r),relation:null},!1);return ae(Ve(i,!0),"q",n.carry)}return Ve({...B(e,r),relation:null},!0)}function Ar(e,t,n){return ae(pe(B(e,ne(t)),!1),"view",n)}function ua(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Zn="aggregate:";function wt(e){return e.startsWith(Zn)&&e.includes("|")}var vt=e=>e?.off===!0,kr=e=>e!==void 0&&!vt(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),Xn=e=>e!==void 0&&!vt(e)&&(e.fast!==void 0||e.decide!==void 0),Pr=e=>e?.suggestOnOpen!==!1&&Xn(e),Rr=e=>e?.hoverChips===!0&&Xn(e);var bt={};var co=_(N(),1),qr={turns:[],outcomes:new Map,busy:!1,pending:null,draft:null,draftNote:null},fo=e=>`graview:seat:${e}`;function Br(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 $r(e,t){if(e)try{sessionStorage.setItem(e,JSON.stringify({turns:t.turns.slice(-40),outcomes:[...t.outcomes],draft:t.draft}))}catch{}}function Mt(e){let t=e===null?null:fo(e),n={...qr,...Br(t)},o=new Set,r=(i,a=!0)=>{n=i,a&&$r(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,co.useSyncExternalStore)(e.subscribe,e.get,e.get)}var yo=_(N(),1),Ur={entries:[],ghost:null,loaded:!1};function po(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 Ot(e){let t=Ur,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:po(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:po(t.entries,i)})).catch(i=>{console.warn("The host's AI interactions could not be read:",i)})}}}function Yr(e){return(0,yo.useSyncExternalStore)(e.subscribe,e.get,e.get)}function mo(e){return e?.closest?.("[data-graview-pick]")?.getAttribute("data-graview-pick")??null}var Je=_(N(),1),Qe=(0,Je.createContext)(void 0),Zr=()=>(0,Je.useContext)(Qe);var A=_(N(),1),Ie=(0,A.createContext)(null);function ho(){return(0,A.useContext)(Ie)}function Xr(e,t){let n=ho(),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 Jr=Ke(()=>(__graviewPreload(import.meta.url,["./chunk.TI4OSTQV.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.E2AJ7U5Z.js"))),go,Qr=400;function Vt(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)(go);(0,A.useEffect)(()=>{if(d||r||i===null)return;let x=!0;return Jr().then(V=>{go=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),Qr);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 bo=e=>`graview:setting:${e}`;function xo(){return localStorage}function Eo(e,t){try{let n=(t??xo()).getItem(bo(e.name));if(n!==null&&e.options.some(o=>o.value===n))return n}catch{}return e.initial}function Ao(e,t,n){try{(n??xo()).setItem(bo(e.name),t)}catch{}}function ko(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 It(e){return Fe(e)}var ni=12,oi=4;function ri(e,t,n){let o=It(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(-ni);function Po(e,t){let n=e.filter(r=>r.length>0);if(n.length===0)return null;if(n.length<=oi)return n[0];let o=new Set(n.map(r=>t(r)).filter(r=>r!==void 0));return o.size===1?St([...o][0]):n[0]}function Ct(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=ri(e,t.author,t.at),i=a=>o.set(r.participant,{...r,...a,since:t.at});switch(t.type){case"read":{let a=Po(t.ids,n);return i({at:a,mode:"reading",trail:tt(r.trail,a)}),o}case"about-to-write":case"write":{let a=Po(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 Ro="graview:session";function To(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(Ro);if(o)return o;let r=t();return n.setItem(Ro,r),r}catch{return t()}}var _t={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"},Lt={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"},Mo=[_t,Lt],ai=800;function Oo(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[_t.name]??_t.initial)==="shared",G=C&&(s[Lt.name]??Lt.initial)==="shared",x=It({kind:r.kind,...r.id?{id:r.id}:{},session:i}),V=D?Hn(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:Dn(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()}),ai);return()=>clearInterval(I)},[t,W]),(0,L.useEffect)(()=>t?t.onWho(K=>v(gt(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=gt(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=mo(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||Bn(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 Vo(e){return Fe(e.author)}function si(e,t){return e.length>1?"co-edited":t==="rule"?"rule":t==="agent"?"autonomous":"directed"}function Io(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(Vo(u))?m.participants:[...m?.participants??[],Vo(u)];i.set(s,{at:o,manner:si(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 li=2600;function Co(e,t=li){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=Wn(e.allInvariants(),s,p).introduces;s=p,a(Io(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(Io(r.current,[di(s)],[],Date.now(),t))},[t,a]);return{activity:n,noteAttention:d}}function di(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 _o(){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),ui=e=>e.definitions.some(t=>_n(t).size>0);function Lo(e,t,n){let[o,r]=(0,nt.useState)(void 0),i=(n.roles??[]).join("\0");return(0,nt.useEffect)(()=>{if(!t||!ui(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=Ln(t,{kind:n.kind,...n.id===void 0?{}:{id:n.id},...n.roles?{roles:n.roles}:{}},u);return mt(s,f.read),r(f),e.reread(),()=>{a=!1,mt(s,void 0)}},[e,t,n.kind,n.id,i]),o}function Ho(){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),ci="graview:place-menu",_e=(0,l.createContext)(null),Go=(0,l.createContext)("scene");function fi({mode:e,children:t}){return(0,le.jsx)(Go.Provider,{value:e,children:t})}function pi(){return(0,l.useContext)(Go)}var Wo={kind:"human"},yi=[],mi=[],gi=[],Ht=[];function Fo(e,t){let n=(0,l.useId)();(0,l.useEffect)(()=>{if(!globalThis.__graviewWatch)return;let o=t??Wo,r=()=>Gn(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 hi={off:!0};function Si({store:e,views:t,initialView:n,scheme:o="dark",initialSelection:r,principal:i,seats:a=yi,onSeat:d,people:s=mi,memory:u,presenceTtlMs:f,app:m,settings:p=m?.settings??gi,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,dr]=(0,l.useState)(null),ue=Ee??i??a[0]?.principal??Wo,He=Vt(e,ue,C),Xt=He.past&&He.live===e?He.past.store:e,H=(0,l.useMemo)(()=>Xt.seenBy(ue),[Xt,ue]);Fo(e,ue);let[re]=(0,l.useState)(()=>To(u)),[Jt,ur]=(0,l.useState)(!1),Qt=(0,l.useCallback)(()=>ur(!0),[]),ie=(0,l.useMemo)(()=>g?[...p,...Mo]:p,[p,g]),[ut]=(0,l.useState)(()=>n??Gt(t,e.schema)),[cr,en]=(0,l.useState)(()=>ze(ut??fe,r??ut?.selection??[])),Ae=(0,l.useRef)(ut??fe).current,[tn,fr]=(0,l.useState)(null),[nn,pr]=(0,l.useState)(null),J=(0,l.useContext)(_e),[on]=(0,l.useState)(()=>J?.seatTalk??Mt(v?.name??e.schema.kinds.join(","))),ct=E??J?.ai??bt,De=(0,l.useMemo)(()=>ct.off?hi:ct,[ct]),rn=(0,l.useRef)(De.interactions);rn.current=De.interactions;let[an]=(0,l.useState)(()=>J?.aiDesk??Ot(()=>rn.current)),[yr]=(0,l.useState)(()=>J?.subscriptions??jn()),sn=O??J?.subscriptions??yr,ft=b??J?.onKeepLens,Ne=m??J?.app,je=k??J?.locale,mr=v?.locale??Ne?.brand?.locale,Ge=y??J?.timeZone;Cn({reader:je,app:mr,readerTimeZone:Ge,appTimeZone:v?.timeZone??Ne?.brand?.timeZone});let ln=(0,l.useRef)(null),dn=(0,l.useCallback)(c=>{ln.current=c},[]),un=(0,l.useCallback)(c=>ln.current?.whereIs(c)??null,[]),[cn]=(0,l.useState)(()=>_o()),[fn]=(0,l.useState)(()=>Ho()),[pt,gr]=(0,l.useState)(null),[ke,pn]=(0,l.useState)(()=>new Map),Pe=(0,l.useRef)(ke);Pe.current=ke;let Re=(0,l.useRef)(null),yt=(0,l.useCallback)(c=>H.graph.getNode(c)?.kind,[H]),ee=(0,l.useCallback)(c=>{let S=Ct(Pe.current,c,yt);Pe.current=S,pn(S),Re.current&&clearTimeout(Re.current),[...S.values()].some(T=>T.mode!=="docked"&&T.mode!=="asking")&&(Re.current=setTimeout(()=>{let T=Ct(Pe.current,{type:"rest",at:Date.now(),holdMs:jt},yt);Pe.current=T,pn(T)},jt+20))},[yt]),yn=(0,l.useCallback)(c=>ee({...c,at:c.at??Date.now()}),[ee]),mn=(0,l.useCallback)(c=>{gr(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]),gn=Lo(H,G,z),hn=(0,l.useCallback)(c=>{dr(c),d?.(c)},[d]),[Te,hr]=(0,l.useState)(()=>Object.fromEntries(ie.map(c=>[c.name,Eo(c,u)])));(0,l.useEffect)(()=>{for(let c of ie)ko(c,Te[c.name]??c.initial)},[ie,Te]);let Sn=(0,l.useCallback)((c,S)=>{let R=ie.find(T=>T.name===c);!R||!R.options.some(T=>T.value===S)||(Ao(R,S,u),hr(T=>({...T,[c]:S})))},[ie,u]),[wn,Sr]=(0,l.useState)(null),{activity:vn,noteAttention:bn}=Co(H),xn=(0,l.useCallback)(c=>{bn(c),ee({type:"read",author:c.author,ids:c.reads,at:Date.now()})},[bn,ee]),ce=(0,l.useCallback)(c=>{if(ye(c)!==null||se(c).length>0||wt(c))return!0;let S=$n(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]),En=(0,l.useCallback)(c=>{let S=c.selection??Ht,R=S.filter(ce),T=R.length===S.length?c:ze(c,R);return T.focusId!==null&&!ce(T.focusId)&&(T=B(T,null)),T},[ce]),Me=(0,l.useCallback)(c=>{let S=En(c),R=jo(H,z,S.shown);if(S.focusId!==null&&R.size>0){let T=se(S.focusId),In=H.graph.getNode(S.focusId);(T.length>0?T.every(br=>R.has(br)):In?R.has(In.kind):!1)&&(S={...S,focusId:null})}if(!S.overview&&S.focusId===null){let T=Ae.focusId!==null&&!ce(Ae.focusId)?Gt(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},[En,ce,H,Ae,z,t,e.schema]),q=Me(Z??cr),An=(0,l.useMemo)(()=>jo(H,z,q.shown),[H,z,q.shown]),kn=(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&&(q.shown??[]).includes(c)}}),[H,z,q.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(q)),en(R=>S(R))},[q,X,Z,Me]);(0,l.useEffect)(()=>{Z===void 0&&en(c=>{let S=Me(c);return S===c?c:S})},[q,Z,Me]);let Pn=q.selection??Ht,Rn=(0,l.useCallback)(c=>{Oe(S=>ze(S,typeof c=="function"?c(S.selection??Ht):c))},[Oe]),{who:Tn,following:Mn,follow:On,sayWhere:wr,sharing:Vn}=Oo({channel:g,store:H,view:q,principal:z,session:re,robots:ke,seatWho:pt,settingValues:Te,setView:Oe,seats:a,people:s,...f!==void 0?{ttlMs:f}:{}}),vr=(0,l.useMemo)(()=>({store:H,scheme:o,views:t,view:q,setView:Oe,homeView:Ae,selection:Pn,setSelection:Rn,menuAt:tn,setMenuAt:fr,whereIs:un,pointer:cn,motion:fn,registerScene:dn,robots:ke,noteSeat:yn,seatWho:pt,registerSeatWho:mn,actsDoor:nn,registerActsDoor:pr,seatTalk:on,aiDesk:an,...u?{memory:u}:{},who:Tn,following:Mn,follow:On,sayWhere:wr,sharing:Vn,session:re,ai:De,resolveApp:D,linkedRecords:G,menuSections:I,...Q?{keptViews:Q}:{},subscriptions:sn,signIn:K,linkedReads:gn,movedByHand:Jt,noteMoved:Qt,emphasis:wn,setEmphasis:Sr,activity:vn,noteAttention:xn,principal:z,seats:a,people:s,takeSeat:hn,settings:ie,settingValues:Te,chooseSetting:Sn,hiddenKinds:An,administered:kn,...h?{providers:h}:{},...v?{brand:v}:{},...ft?{onKeepLens:ft}:{},app:Ne,...je?{locale:je}:{},...Ge?{timeZone:Ge}:{}}),[H,o,t,q,Oe,Pn,Rn,tn,un,cn,fn,dn,ke,yn,pt,mn,nn,on,an,u,Tn,Mn,On,Vn,re,De,D,G,I,Q,sn,K,gn,Jt,Qt,wn,vn,xn,z,a,s,hn,ie,Te,Sn,An,kn,h,v,ft,Ne,je,Ge]);return(0,le.jsx)(_e.Provider,{value:vr,children:(0,le.jsx)(Ie.Provider,{value:He,children:(0,le.jsx)(Ei,{children:P?(0,le.jsx)(Qe.Provider,{value:P,children:$}):$})})})}var Ko=(0,l.createContext)(null),Dt,Nt=new Set,wi=e=>(Nt.add(e),()=>void Nt.delete(e)),Do=()=>Dt;function vi(e){if(!Dt){Dt=e;for(let t of[...Nt])t()}}var bi=300;function xi(e){let t=0;return async(n,o)=>{let r=++t;return await new Promise(i=>setTimeout(i,bi)),r===t?e(n,o):[]}}function Ei({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)(wi,Do,Do),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&&xi(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)(Ko.Provider,{value:b?.[0]===y?b[1]:y,children:e})}var No=new WeakMap;function as(e){let t=No.get(e);return t||No.set(e,t=new Set(e.matched)),t}function Ai(){return(0,l.useContext)(Ko)}function oe(){let e=(0,l.useContext)(_e);if(!e)throw new Error("useGraview must be used inside a <GraviewProvider>.");return e}function Wt(){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 ki(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 jo(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 jt=2600;var qo=new WeakSet,Pi=e=>qo.has(e),Ri=e=>void qo.add(e);function Gt(e,t){let n=Kn(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 Bo=_(N(),1),Ti=(0,Bo.createContext)(!1);var rt=Symbol.for("graview.default-view");function $o(e){return Object.defineProperty(e,rt,{value:!0,enumerable:!1}),e}function zo(e){return typeof e=="function"&&e[rt]===!0}var it=Symbol.for("graview.replaces-page");function Uo(e){return Object.defineProperty(e,it,{value:!0,enumerable:!1}),e}function Yo(e){return typeof e=="function"&&e[it]===!0}function Mi(e){return Fn(e)}function Oi(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),Ft=new Set,at=0;function Jo(e){return()=>{at+=1;let t=e();return t.then(()=>void(at-=1),()=>void(at-=1)),t}}var Vi=()=>at,Qo=!1,er=!1,st=new Set;function Ii(){Qo=!0}function Ci(){er=!0;for(let e of[...st])e();st.clear()}var tr=()=>er||!Qo;function _i(e){return tr()?(e(),()=>{}):(st.add(e),()=>void st.delete(e))}var Zo=!1;function Kt(){for(let e of[...Ft])e()}function Li(){Zo||typeof window>"u"||(Zo=!0,window.addEventListener("online",Kt))}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,Ft.delete(f),d(),g),g=>{throw r=void 0,o=!0,Ft.add(f),Li(),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(Xo)?C:C.querySelector(Xo);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)(Hi,{what:v,button:E,...g.as?{as:g.as}:{}})}let y=(0,F.lazy)(Jo(()=>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 Xo="button,a[href],input,select,textarea,[tabindex]:not([tabindex='-1'])";function Hi({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:Kt,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 Di(){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 Ni(){let{store:e}=oe(),t=ot();return(0,Se.useMemo)(()=>ji(e),[e,t])}var nr=new WeakMap;function ji(e){let t=nr.get(e);if(!t){let n={violations:null};e.subscribe(()=>{n.violations=null}),nr.set(e,n),t=n}return t.violations??=e.violations(),t.violations}function Gi(){let{view:e,setView:t}=oe();return(0,Se.useMemo)(()=>({view:e,url:te(e),focus:n=>t(o=>B(o,n)),show:n=>t(o=>zn(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),$t={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"]}},Wi={position:"fixed",inset:"auto",margin:0,zIndex:Nn("popover"),boxSizing:"border-box"},lt=6,we=8,Fi=e=>typeof e.showPopover=="function";function dt(e){try{return e.matches(":popover-open")}catch{return!1}}function Ki(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 zt(e,t,n={}){let o=Ki(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-lt-we,s=o.top-lt-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+lt:Math.max(we,o.top-lt-m);e.style.left=`${Math.round(k)}px`,e.style.top=`${Math.round(y)}px`}function or(e,t,n,o={}){let r=o.align??"end";(0,j.useLayoutEffect)(()=>{let i=e.current;if(!t||!i)return;if(Fi(i)&&!dt(i))try{i.showPopover(),Bi()}catch{}let a=0,d=u=>{u?.target instanceof Node&&i.contains(u.target)||(cancelAnimationFrame(a),a=requestAnimationFrame(()=>zt(i,n,{align:r})))};zt(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&&dt(i))try{i.hidePopover()}catch{}}},[t,e,r])}var Ut=new Set;function qi(e){return Ut.add(e),()=>Ut.delete(e)}function Bi(){for(let e of Ut)if(!(!e.isConnected||!dt(e)))try{e.hidePopover(),e.showPopover()}catch{}}var ve=null,$i='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($i))if(t.closest("[hidden]")===null&&getComputedStyle(t).visibility!=="hidden")return t;return e}var Bt=()=>{let e=document.activeElement;return e===null||e===document.body};function Ui(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(()=>{Bt()&&y()}))},[k,y]);return or(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,$t[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),$t[e].focus==="into"&&requestAnimationFrame(()=>{(Bt()||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(()=>{(Bt()||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 rr=(0,be.createContext)(null);function Yi(){let e=(0,be.useContext)(rr),t=Wt(),n=(o,r,i)=>t?.setView(a=>ae(ae(pe(B(a,ne(o)),!1),"view",r),"filter",i?.filter??null));return(0,be.useMemo)(()=>e??{record:o=>{t&&(t.setView(r=>B(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 Zi=qt(Ke(()=>(__graviewPreload(import.meta.url,["./chunk.7L6LYXCV.js","./chunk.SDO3U72B.js","./chunk.7MQ7UWVW.js","./chunk.2AZTW66C.js","./chunk.AJZBJBMO.js"]),import("./chunk.SKB4XSDG.js"))));function Xi(e,t,n){let o,r=!1,i=()=>{let{hidden:d,removed:s}=t.current();o||r||d.length+s.length===0||(o=()=>{},Zi.load().then(u=>{r||(o=u.watchTidied(e,t,n))},String))};i();let a=t.onChange?.(i);return()=>{r=!0,a?.(),o?.()}}function Ji(e,t){let[n,o]=(0,xe.useState)();return(0,xe.useEffect)(()=>t?Xi(e,t,r=>o([e,r])):void 0,[e,t]),n?.[0]===e?n[1]:e}var ir=_(N(),1),Qi=(0,ir.createContext)(!1);var ar=_(N(),1),ea=(0,ar.createContext)(null);var sr=_(N(),1),Yt='button:not([disabled]), a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])',Zt=e=>e instanceof HTMLElement&&(e.matches(Yt)||e.hasAttribute("tabindex")),Le=e=>typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0;function ta(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&&Zt(d)&&Le(d)?d:null}var na=e=>e.isConnected&&Zt(e)&&!e.matches(":disabled")&&e instanceof HTMLElement&&Le(e);function lr(e,t){let n=t?ta(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(Yt))if(Le(r))return r;return Zt(e)&&Le(e)?e:null}function oa(e){(0,sr.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(na(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=lr(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(Yt):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,ia as d,aa as e,Bn as f,qn as g,$n as h,ht as i,B as j,zn as k,ae as l,pe as m,ze as n,Ve as o,Ue as p,Ze as q,St as r,ye as s,da as t,Er as u,ne as v,Un as w,se as x,Yn as y,Ar as z,ua as A,Zn as B,wt as C,kr as D,Pr as E,Rr as F,N as G,Mt as H,zr as I,Yr as J,mo as K,Qe as L,Zr as M,Ie as N,ho as O,Xr as P,Vt as Q,Ce as R,ci as S,fi as T,pi as U,Fo as V,Si as W,vi as X,as as Y,Ai as Z,oe as _,Wt as $,ot as aa,ki as ba,Pi as ca,Ri as da,Gt as ea,rr as fa,Yi as ga,Ti as ha,$o as ia,zo as ja,Uo as ka,Yo as la,Mi as ma,Oi as na,Jo as oa,Vi as pa,Ii as qa,Ci as ra,tr as sa,_i as ta,qt as ua,Ji as va,Qi as wa,ea as xa,Di as ya,Ni as za,Gi as Aa,he as Ba,oa as Ca,Wi as Da,dt as Ea,or as Fa,qi as Ga,Ui as Ha};
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
- */