graview 0.1.64 → 0.1.65

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 (220) hide show
  1. package/dist/preview/chunk.2P34ML3O.js +111 -0
  2. package/dist/preview/{chunk.77JI5T4F.js → chunk.2PK335JQ.js} +1 -1
  3. package/dist/preview/{chunk.YEXFVDRA.js → chunk.2QQ37RCZ.js} +1 -1
  4. package/dist/preview/{chunk.YIZPW7IK.js → chunk.2TZSLREX.js} +2 -2
  5. package/dist/preview/chunk.2UW5CRHF.js +1 -0
  6. package/dist/preview/{chunk.X36BYTEG.js → chunk.2YMO7ZVX.js} +1 -1
  7. package/dist/preview/chunk.33ULA3CG.js +1 -0
  8. package/dist/preview/{chunk.WX23K7ZU.js → chunk.35E75QJ7.js} +1 -1
  9. package/dist/preview/chunk.3CJLAJXP.js +25 -0
  10. package/dist/preview/chunk.3IJSB5ET.js +1 -0
  11. package/dist/preview/{chunk.BVIJXL4J.js → chunk.3IZEZPJB.js} +1 -1
  12. package/dist/preview/chunk.3KO35VN4.js +1 -0
  13. package/dist/preview/{chunk.UDU545CL.js → chunk.3KUYB5ZT.js} +1 -1
  14. package/dist/preview/chunk.3RFAUIGT.js +1 -0
  15. package/dist/preview/{chunk.DN7UCBOA.js → chunk.3WP66LB5.js} +1 -1
  16. package/dist/preview/{chunk.VZAF3452.js → chunk.44ZHHPPJ.js} +2 -2
  17. package/dist/preview/chunk.4GJ7F4SP.js +35 -0
  18. package/dist/preview/{chunk.7ZG77OI3.js → chunk.4IJTPV5X.js} +1 -1
  19. package/dist/preview/{chunk.HPG6CNKM.js → chunk.4JFBLVXJ.js} +1 -1
  20. package/dist/preview/{chunk.P6FNJR6E.js → chunk.4O3C2LJF.js} +1 -1
  21. package/dist/preview/chunk.4PCVQEVI.js +1 -0
  22. package/dist/preview/{chunk.T4JP6BGP.js → chunk.5FQSYMAE.js} +1 -1
  23. package/dist/preview/chunk.5M34BJIQ.js +1 -0
  24. package/dist/preview/chunk.5NCLZ4NZ.js +1 -0
  25. package/dist/preview/{chunk.5B7NG6WH.js → chunk.5THLLSS4.js} +1 -1
  26. package/dist/preview/chunk.5YNLFOBJ.js +5 -0
  27. package/dist/preview/{chunk.2JEN2RCB.js → chunk.64FCAUAJ.js} +1 -1
  28. package/dist/preview/chunk.6RZHKQP3.js +1 -0
  29. package/dist/preview/chunk.6YDC6IDA.js +1 -0
  30. package/dist/preview/{chunk.F6BNFLQM.js → chunk.74B6KQF4.js} +1 -1
  31. package/dist/preview/chunk.77XQEDT5.js +1 -0
  32. package/dist/preview/chunk.7E4CSXBT.js +1 -0
  33. package/dist/preview/chunk.7HPQI5SY.js +1 -0
  34. package/dist/preview/{chunk.JOM6MFVE.js → chunk.7IGD2K4M.js} +1 -1
  35. package/dist/preview/{chunk.4U45EY5M.js → chunk.7Q43N5JS.js} +1 -1
  36. package/dist/preview/{chunk.B6JR7EQO.js → chunk.7VQ3C7F4.js} +1 -1
  37. package/dist/preview/{chunk.DMENNIHT.js → chunk.A4VA3DU5.js} +1 -1
  38. package/dist/preview/{chunk.2JDAUKSN.js → chunk.AB4RZSYW.js} +31 -23
  39. package/dist/preview/chunk.ABSY3UZF.js +1 -0
  40. package/dist/preview/chunk.ARHAD5IS.js +1 -0
  41. package/dist/preview/chunk.BOC2EOGB.js +9 -0
  42. package/dist/preview/chunk.BR6TINGU.js +1 -0
  43. package/dist/preview/{chunk.4DZOAB4D.js → chunk.BU5PVRX7.js} +1 -1
  44. package/dist/preview/{chunk.4VRX7FCO.js → chunk.BUQKRXI6.js} +1 -1
  45. package/dist/preview/{chunk.S7SHWDPR.js → chunk.C437FVD7.js} +1 -1
  46. package/dist/preview/{chunk.YMXWS4XN.js → chunk.CD6YWH6T.js} +1 -1
  47. package/dist/preview/chunk.CDEAAWPS.js +1 -0
  48. package/dist/preview/{chunk.NGRL3QOI.js → chunk.CGQ6KXVK.js} +1 -1
  49. package/dist/preview/{chunk.YSBTE3PX.js → chunk.CPYBJNHP.js} +1 -1
  50. package/dist/preview/{chunk.REXU6ARY.js → chunk.CS72MISN.js} +2 -2
  51. package/dist/preview/chunk.CXJJB3MK.js +1 -0
  52. package/dist/preview/{chunk.TYIBLD2D.js → chunk.CXLQPE4J.js} +1 -1
  53. package/dist/preview/{chunk.75JQCTR6.js → chunk.DA4RSHLW.js} +1 -1
  54. package/dist/preview/{chunk.K5YFUMRS.js → chunk.DICM56FT.js} +1 -1
  55. package/dist/preview/{chunk.JS2UZYGB.js → chunk.DJMSXXP4.js} +1 -1
  56. package/dist/preview/{chunk.AJEK3I5X.js → chunk.DJPNVXBQ.js} +1 -1
  57. package/dist/preview/chunk.DJVHKBEI.js +1 -0
  58. package/dist/preview/chunk.E5WJSTOV.js +1 -0
  59. package/dist/preview/{chunk.XIVELWAM.js → chunk.F2TWV4TX.js} +1 -1
  60. package/dist/preview/chunk.F5VEHAP2.js +1 -0
  61. package/dist/preview/{chunk.2DH42I7L.js → chunk.FDWRH5P2.js} +1 -1
  62. package/dist/preview/chunk.FEGSYSA7.js +1 -0
  63. package/dist/preview/{chunk.2VIS2NAT.js → chunk.FHHVW2WB.js} +1 -1
  64. package/dist/preview/chunk.FOSY7MZF.js +2 -0
  65. package/dist/preview/{chunk.P4TAX3HE.js → chunk.FXG5AJF6.js} +1 -1
  66. package/dist/preview/{chunk.UJNLT3L6.js → chunk.G3Q5IMM3.js} +1 -1
  67. package/dist/preview/{chunk.APUQIELA.js → chunk.GPCKOYSF.js} +1 -1
  68. package/dist/preview/{chunk.GH5UBSQI.js → chunk.HJS3LTSR.js} +1 -1
  69. package/dist/preview/chunk.HJUXC5GM.js +1 -0
  70. package/dist/preview/chunk.HNMSYQRA.js +1 -0
  71. package/dist/preview/chunk.HWLRKOI3.js +1 -0
  72. package/dist/preview/{chunk.77MLXWZV.js → chunk.IFBGYFS4.js} +1 -1
  73. package/dist/preview/chunk.IHUMKFYH.js +10 -0
  74. package/dist/preview/{chunk.PVDDSBRG.js → chunk.IJ3YDBWI.js} +1 -1
  75. package/dist/preview/{chunk.7VAHHEDX.js → chunk.IMKD6QQG.js} +1 -1
  76. package/dist/preview/{chunk.DUP2CGVH.js → chunk.INTJD5WG.js} +1 -1
  77. package/dist/preview/chunk.IQ54QTA5.js +1 -0
  78. package/dist/preview/{chunk.LTOQ22ZJ.js → chunk.IQC3GOXO.js} +1 -1
  79. package/dist/preview/{chunk.2VYGDY5Z.js → chunk.IR4OW67N.js} +1 -1
  80. package/dist/preview/{chunk.DJIF7IAQ.js → chunk.ISN2QTVL.js} +1 -1
  81. package/dist/preview/{chunk.IQGSEAQ2.js → chunk.J24YPQ5I.js} +4 -4
  82. package/dist/preview/chunk.J545NAMY.js +1 -0
  83. package/dist/preview/{chunk.TQ2G4AM4.js → chunk.J6KNEI5R.js} +1 -1
  84. package/dist/preview/chunk.K3JARAWU.js +1 -0
  85. package/dist/preview/{chunk.E4TXLT25.js → chunk.KHAVEYT7.js} +1 -1
  86. package/dist/preview/{chunk.D2XLECMP.js → chunk.KIQXTQDU.js} +1 -1
  87. package/dist/preview/chunk.KROR65KD.js +2 -0
  88. package/dist/preview/{chunk.KHXRJLLU.js → chunk.KV7GZBJ6.js} +1 -1
  89. package/dist/preview/{chunk.DLWFULWE.js → chunk.L6FGKJ5H.js} +1 -1
  90. package/dist/preview/chunk.L7NJLZWV.js +1 -0
  91. package/dist/preview/{chunk.JHUCKEJS.js → chunk.LGRQDILY.js} +1 -1
  92. package/dist/preview/{chunk.UDYFGYJP.js → chunk.LKK5YF2H.js} +1 -1
  93. package/dist/preview/chunk.LON75VHP.js +1 -0
  94. package/dist/preview/chunk.LQWVJQ5X.js +18 -0
  95. package/dist/preview/{chunk.XJWKIXPV.js → chunk.LVD3V77M.js} +1 -1
  96. package/dist/preview/{chunk.ITBG37WJ.js → chunk.LY5CY7GE.js} +1 -1
  97. package/dist/preview/{chunk.ATHLE33D.js → chunk.M5W2RHC6.js} +1 -1
  98. package/dist/preview/chunk.M6BTLH24.js +1 -0
  99. package/dist/preview/chunk.MAGKI4PD.js +1 -0
  100. package/dist/preview/chunk.MD36ZSM5.js +74 -0
  101. package/dist/preview/chunk.MFZJVHWP.js +1 -0
  102. package/dist/preview/{chunk.LDMBJC3B.js → chunk.MH46V556.js} +1 -1
  103. package/dist/preview/chunk.MHTA4HYB.js +19 -0
  104. package/dist/preview/chunk.N2FNHRI2.js +1 -0
  105. package/dist/preview/chunk.N2YM247R.js +1 -0
  106. package/dist/preview/chunk.N35SJWAM.js +1 -0
  107. package/dist/preview/chunk.NBVPWLRY.js +3 -0
  108. package/dist/preview/{chunk.2TCOLAL2.js → chunk.NKYYDFIX.js} +1 -1
  109. package/dist/preview/{chunk.WPQP54FM.js → chunk.NSO6RUKW.js} +1 -1
  110. package/dist/preview/{chunk.47N2G7A5.js → chunk.O2W5JTWA.js} +1 -1
  111. package/dist/preview/chunk.OHMHPTEW.js +1 -0
  112. package/dist/preview/{chunk.CJHYGRWV.js → chunk.P6TZGR3A.js} +1 -1
  113. package/dist/preview/{chunk.OXFDB5BB.js → chunk.PTQPS2FJ.js} +1 -1
  114. package/dist/preview/chunk.PV2I4UPH.js +1 -0
  115. package/dist/preview/chunk.QFQSSZN7.js +1 -0
  116. package/dist/preview/{chunk.WFCE7NLK.js → chunk.QO5RXOCS.js} +2 -2
  117. package/dist/preview/{chunk.2V7QTIAV.js → chunk.QSDBF7VL.js} +1 -1
  118. package/dist/preview/{chunk.Z26T5E76.js → chunk.R2TSTDS3.js} +1 -1
  119. package/dist/preview/{chunk.T4TRJDBF.js → chunk.RFVOXX3P.js} +1 -1
  120. package/dist/preview/chunk.RSS6OHXG.js +1 -0
  121. package/dist/preview/{chunk.ZA5TDCBC.js → chunk.S2DOVJRL.js} +1 -1
  122. package/dist/preview/chunk.S3EEY7T3.js +1 -0
  123. package/dist/preview/chunk.SBCAYTMT.js +1 -0
  124. package/dist/preview/chunk.SMTGRCMG.js +3 -0
  125. package/dist/preview/{chunk.7SRSE5IS.js → chunk.SOMRYDDH.js} +1 -1
  126. package/dist/preview/{chunk.7CLKGKSF.js → chunk.SPCAMQJE.js} +1 -1
  127. package/dist/preview/{chunk.OW3M4OBN.js → chunk.T3KNLP7C.js} +1 -1
  128. package/dist/preview/chunk.TBY5IR7C.js +1 -0
  129. package/dist/preview/chunk.TCZIZ2PU.js +1 -0
  130. package/dist/preview/{chunk.TMHVYI5R.js → chunk.TUCSUZNO.js} +1 -1
  131. package/dist/preview/{chunk.2G5WLG3Z.js → chunk.TY74U3EI.js} +1 -1
  132. package/dist/preview/chunk.U74PTRHJ.js +1 -0
  133. package/dist/preview/chunk.UAORKZLO.js +1 -0
  134. package/dist/preview/chunk.UDVTPI2W.js +1 -0
  135. package/dist/preview/{chunk.S6QZBWCJ.js → chunk.UETLP5KC.js} +1 -1
  136. package/dist/preview/{chunk.2E62YCMZ.js → chunk.UHI3X2YD.js} +1 -1
  137. package/dist/preview/chunk.UL62ELNR.js +1 -0
  138. package/dist/preview/chunk.VRYSZYAD.js +1 -0
  139. package/dist/preview/{chunk.G5BVZLCM.js → chunk.VUZFLDOX.js} +1 -1
  140. package/dist/preview/chunk.X2NGFOAF.js +1 -0
  141. package/dist/preview/chunk.XE762VL2.js +2 -0
  142. package/dist/preview/{chunk.TA2JTUNX.js → chunk.XSWR5LI4.js} +1 -1
  143. package/dist/preview/{chunk.HZPRMHSL.js → chunk.XTTESA7X.js} +1 -1
  144. package/dist/preview/chunk.Y2RZ5B4U.js +1 -0
  145. package/dist/preview/chunk.Y7QDQ3WF.js +1 -0
  146. package/dist/preview/{chunk.TUR2DA2M.js → chunk.YKMBXMZE.js} +1 -1
  147. package/dist/preview/chunk.Z34KASY7.js +1 -0
  148. package/dist/preview/{chunk.WHX47OJM.js → chunk.ZDUTEM3Z.js} +1 -1
  149. package/dist/preview/{chunk.DQAMVVE6.js → chunk.ZJFXM3LE.js} +1 -1
  150. package/dist/preview/{chunk.UN2IAA5R.js → chunk.ZMGKWMID.js} +1 -1
  151. package/dist/preview/{chunk.R5MLRKAO.js → chunk.ZMWAZACO.js} +1 -1
  152. package/dist/preview/chunk.ZT5YQSSP.js +21 -0
  153. package/dist/preview/{chunk.XCLW4GP7.js → chunk.ZTN7BS5O.js} +1 -1
  154. package/dist/preview/{chunk.4XCYZRZ3.js → chunk.ZYNC73DJ.js} +1 -1
  155. package/dist/preview/chunk.ZZM75ZTN.js +4 -0
  156. package/dist/preview/index.html +56 -56
  157. package/dist/preview/page.js +2 -2
  158. package/package.json +6 -6
  159. package/dist/preview/chunk.2D7K2IJQ.js +0 -4
  160. package/dist/preview/chunk.2HV5FF6O.js +0 -1
  161. package/dist/preview/chunk.37I45R6V.js +0 -35
  162. package/dist/preview/chunk.3FKKH2XU.js +0 -74
  163. package/dist/preview/chunk.3J7XLJP2.js +0 -1
  164. package/dist/preview/chunk.3OEODIHB.js +0 -1
  165. package/dist/preview/chunk.3RD4JHVG.js +0 -88
  166. package/dist/preview/chunk.3RUV4HE4.js +0 -1
  167. package/dist/preview/chunk.3SAESG6X.js +0 -1
  168. package/dist/preview/chunk.4HTB6TX2.js +0 -1
  169. package/dist/preview/chunk.4Q5PCMGZ.js +0 -18
  170. package/dist/preview/chunk.52MBXPEK.js +0 -1
  171. package/dist/preview/chunk.5AD2QHWH.js +0 -3
  172. package/dist/preview/chunk.5HJ2GTKZ.js +0 -1
  173. package/dist/preview/chunk.5IEZF433.js +0 -2
  174. package/dist/preview/chunk.5PPCK7QT.js +0 -1
  175. package/dist/preview/chunk.6NRWLCIZ.js +0 -5
  176. package/dist/preview/chunk.7AOEZJRM.js +0 -1
  177. package/dist/preview/chunk.7ZHH7WBN.js +0 -1
  178. package/dist/preview/chunk.APRWUIE3.js +0 -1
  179. package/dist/preview/chunk.B2YTHEX5.js +0 -1
  180. package/dist/preview/chunk.BN42H3C6.js +0 -1
  181. package/dist/preview/chunk.CC7P435K.js +0 -9
  182. package/dist/preview/chunk.CM65MCHA.js +0 -1
  183. package/dist/preview/chunk.DYRULRFX.js +0 -1
  184. package/dist/preview/chunk.FN34P4IS.js +0 -1
  185. package/dist/preview/chunk.FUPYIOXZ.js +0 -1
  186. package/dist/preview/chunk.FXRYMT3U.js +0 -1
  187. package/dist/preview/chunk.G7YLK4PX.js +0 -1
  188. package/dist/preview/chunk.GF62K25C.js +0 -1
  189. package/dist/preview/chunk.GFQPO3NC.js +0 -1
  190. package/dist/preview/chunk.GHHKRFPD.js +0 -1
  191. package/dist/preview/chunk.GP5DAA4P.js +0 -3
  192. package/dist/preview/chunk.HSJEOM3W.js +0 -1
  193. package/dist/preview/chunk.K2PXP5H6.js +0 -1
  194. package/dist/preview/chunk.K54ISAXN.js +0 -1
  195. package/dist/preview/chunk.KMIFSPGQ.js +0 -1
  196. package/dist/preview/chunk.L4V5VLSM.js +0 -1
  197. package/dist/preview/chunk.M5VHUIDB.js +0 -1
  198. package/dist/preview/chunk.N643PVQA.js +0 -1
  199. package/dist/preview/chunk.NRPBTV6O.js +0 -21
  200. package/dist/preview/chunk.O7HHNQK4.js +0 -2
  201. package/dist/preview/chunk.PR74PGLC.js +0 -1
  202. package/dist/preview/chunk.QROPDEJF.js +0 -1
  203. package/dist/preview/chunk.QRT6BZR6.js +0 -1
  204. package/dist/preview/chunk.RDA35HZB.js +0 -2
  205. package/dist/preview/chunk.SADHOSRC.js +0 -19
  206. package/dist/preview/chunk.SJHUC4TL.js +0 -1
  207. package/dist/preview/chunk.SL5FXE3R.js +0 -1
  208. package/dist/preview/chunk.TOLW64EO.js +0 -1
  209. package/dist/preview/chunk.TP3PZRHE.js +0 -1
  210. package/dist/preview/chunk.UD2GGG7L.js +0 -1
  211. package/dist/preview/chunk.VLX7YWVH.js +0 -25
  212. package/dist/preview/chunk.VT4YBFZL.js +0 -1
  213. package/dist/preview/chunk.WMARJ5E3.js +0 -1
  214. package/dist/preview/chunk.XEG7ZDRG.js +0 -1
  215. package/dist/preview/chunk.XQ5RTPEF.js +0 -1
  216. package/dist/preview/chunk.YLOGIJOH.js +0 -1
  217. package/dist/preview/chunk.Z4XGEV34.js +0 -1
  218. package/dist/preview/chunk.ZNDVJGTY.js +0 -1
  219. package/dist/preview/chunk.ZQGLPP7A.js +0 -1
  220. /package/dist/preview/{chunk.GZHZLJBF.js → chunk.MIE4TJRW.js} +0 -0
@@ -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 Ze}from"./chunk.SDO3U72B.js";import{Bd as po,Hd as fo,Kd as yo,N as ro,Na as io,Qc as lo,Ra as Ct,Ta as ao,_d as mo,db as so,ie as go,je as ho,pe as wo,sd as uo,te as So,ve as Ye,we as Ot,zd as co}from"./chunk.IQGSEAQ2.js";import{a as Ue,b as H}from"./chunk.AJZBJBMO.js";var No=Ue(S=>{"use strict";var Wt=Symbol.for("react.transitional.element"),ci=Symbol.for("react.portal"),pi=Symbol.for("react.fragment"),fi=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),mi=Symbol.for("react.consumer"),gi=Symbol.for("react.context"),hi=Symbol.for("react.forward_ref"),wi=Symbol.for("react.suspense"),Si=Symbol.for("react.memo"),Vo=Symbol.for("react.lazy"),vi=Symbol.for("react.activity"),To=Symbol.iterator;function bi(e){return e===null||typeof e!="object"?null:(e=To&&e[To]||e["@@iterator"],typeof e=="function"?e:null)}var Io={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lo=Object.assign,_o={};function he(e,t,n){this.props=e,this.context=t,this.refs=_o,this.updater=n||Io}he.prototype.isReactComponent={};he.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")};he.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ho(){}Ho.prototype=he.prototype;function jt(e,t,n){this.props=e,this.context=t,this.refs=_o,this.updater=n||Io}var Gt=jt.prototype=new Ho;Gt.constructor=jt;Lo(Gt,he.prototype);Gt.isPureReactComponent=!0;var Mo=Array.isArray;function Nt(){}var I={H:null,A:null,T:null,S:null},Do=Object.prototype.hasOwnProperty;function Ft(e,t,n){var o=n.ref;return{$$typeof:Wt,type:e,key:t,ref:o!==void 0?o:null,props:n}}function xi(e,t){return Ft(e.type,t,e.props)}function Kt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wt}function Pi(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Co=/\/+/g;function Dt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Pi(""+e.key):t.toString(36)}function Ei(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Nt,Nt):(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 ge(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 Wt:case ci:a=!0;break;case Vo:return a=e._init,ge(a(e._payload),t,n,o,r)}}if(a)return r=r(e),a=o===""?"."+Dt(e,0):o,Mo(r)?(n="",a!=null&&(n=a.replace(Co,"$&/")+"/"),ge(r,t,n,"",function(u){return u})):r!=null&&(Kt(r)&&(r=xi(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Co,"$&/")+"/")+a)),t.push(r)),1;a=0;var s=o===""?".":o+":";if(Mo(e))for(var l=0;l<e.length;l++)o=e[l],i=s+Dt(o,l),a+=ge(o,t,n,i,r);else if(l=bi(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,i=s+Dt(o,l++),a+=ge(o,t,n,i,r);else if(i==="object"){if(typeof e.then=="function")return ge(Ei(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 rt(e,t,n){if(e==null)return e;var o=[],r=0;return ge(e,o,"","",function(i){return t.call(n,i,r++)}),o}function Ai(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 Oo=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)},ki={map:rt,forEach:function(e,t,n){rt(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rt(e,function(){t++}),t},toArray:function(e){return rt(e,function(t){return t})||[]},only:function(e){if(!Kt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};S.Activity=vi;S.Children=ki;S.Component=he;S.Fragment=pi;S.Profiler=yi;S.PureComponent=jt;S.StrictMode=fi;S.Suspense=wi;S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I;S.__COMPILER_RUNTIME={__proto__:null,c:function(e){return I.H.useMemoCache(e)}};S.cache=function(e){return function(){return e.apply(null,arguments)}};S.cacheSignal=function(){return null};S.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Lo({},e.props),r=e.key;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)!Do.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),s=0;s<i;s++)a[s]=arguments[s+2];o.children=a}return Ft(e.type,r,o)};S.createContext=function(e){return e={$$typeof:gi,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:mi,_context:e},e};S.createElement=function(e,t,n){var o,r={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)Do.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 s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(o in a=e.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return Ft(e,i,r)};S.createRef=function(){return{current:null}};S.forwardRef=function(e){return{$$typeof:hi,render:e}};S.isValidElement=Kt;S.lazy=function(e){return{$$typeof:Vo,_payload:{_status:-1,_result:e},_init:Ai}};S.memo=function(e,t){return{$$typeof:Si,type:e,compare:t===void 0?null:t}};S.startTransition=function(e){var t=I.T,n={};I.T=n;try{var o=e(),r=I.S;r!==null&&r(n,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Nt,Oo)}catch(i){Oo(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),I.T=t}};S.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()};S.use=function(e){return I.H.use(e)};S.useActionState=function(e,t,n){return I.H.useActionState(e,t,n)};S.useCallback=function(e,t){return I.H.useCallback(e,t)};S.useContext=function(e){return I.H.useContext(e)};S.useDebugValue=function(){};S.useDeferredValue=function(e,t){return I.H.useDeferredValue(e,t)};S.useEffect=function(e,t){return I.H.useEffect(e,t)};S.useEffectEvent=function(e){return I.H.useEffectEvent(e)};S.useId=function(){return I.H.useId()};S.useImperativeHandle=function(e,t,n){return I.H.useImperativeHandle(e,t,n)};S.useInsertionEffect=function(e,t){return I.H.useInsertionEffect(e,t)};S.useLayoutEffect=function(e,t){return I.H.useLayoutEffect(e,t)};S.useMemo=function(e,t){return I.H.useMemo(e,t)};S.useOptimistic=function(e,t){return I.H.useOptimistic(e,t)};S.useReducer=function(e,t,n){return I.H.useReducer(e,t,n)};S.useRef=function(e){return I.H.useRef(e)};S.useState=function(e){return I.H.useState(e)};S.useSyncExternalStore=function(e,t,n){return I.H.useSyncExternalStore(e,t,n)};S.useTransition=function(){return I.H.useTransition()};S.version="19.2.8"});var W=Ue((us,Wo)=>{"use strict";Wo.exports=No()});var Zo=Ue(st=>{"use strict";var Di=Symbol.for("react.transitional.element"),Ni=Symbol.for("react.fragment");function Yo(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:Di,type:e,key:o,ref:t!==void 0?t:null,props:n}}st.Fragment=Ni;st.jsx=Yo;st.jsxs=Yo});var Le=Ue((vs,Xo)=>{"use strict";Xo.exports=Zo()});var ye={focusId:null,relation:null,expanded:[],pins:{}},Xe=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}`,`${Je(r.x)},${Je(r.y)}`)}e.pan&&(e.pan.x!==0||e.pan.y!==0)&&t.set("pan",`${Je(e.pan.x)},${Je(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 ii(e){return e&&e.startsWith("agg:")?`aggregate:${e.slice(4)}`:e}function Qe(e){let t=e.includes("#")?e.slice(e.indexOf("#")+1):e,n=new URLSearchParams(t),o=Object.create(null);for(let[m,y]of n){if(!m.startsWith("pin."))continue;let[g,b]=y.split(","),R=g===void 0?null:Xe(g),f=b===void 0?null:Xe(b);R===null||f===null||(o[m.slice(4)]={x:R,y:f})}let r=Object.create(null);for(let[m,y]of n)!m.startsWith("in.")||y.length===0||(r[m.slice(3)]=y);let i=n.get("view");i&&i.length>0&&r.view===void 0&&(r.view=i);let a=n.get("pan")?.split(",")??[],s=a[0]===void 0?null:Xe(a[0]),l=a[1]===void 0?null:Xe(a[1]),u=(n.get("sel")??"").split(",").filter(m=>m.length>0).sort(),c=n.get("overview")==="1";return{...u.length>0?{selection:u}:{},...c?{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()}:{},...s!==null&&l!==null?{pan:{x:s,y:l}}:{},...Object.keys(r).length>0?{within:r}:{},...n.get("q")?.trim()?{q:n.get("q")}:{},focusId:ii(n.get("focus")),relation:n.get("relation"),expanded:(n.get("expand")??"").split(",").filter(m=>m.length>0&&(c||!m.startsWith("kind:"))).sort(),pins:o}}function $a(e){let t=Qe(e);return te(t)==="#"?{...t,overview:!0}:t}function Ua(e){let t=te(e);return t==="#overview=1"?"":t}function Je(e){return Math.round(e*100)/100}function bo(e,t){return te(e)===te(t)}var vo="edge:";function xo(e){if(!e.startsWith(vo))return null;let t=e.slice(vo.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 Vt(e){let{pan:t,...n}=e;return{...n,pins:{}}}function q(e,t){if(t===e.focusId)return{...e,focusId:t};let n=Vt(e);return{...n.within?.q!==void 0?ne(n,"q",null):n,focusId:t}}function Po(e,t){return{...e,relation:t}}function ne(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 le(e,t){if(t!==e.overview&&(e=Vt(e)),!t){let n=e.expanded.filter(o=>!o.startsWith("kind:"));return{...e,overview:!1,expanded:n}}return{...e,overview:t}}function et(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=Vt(e)),!t){let{zoom:n,...o}=e;return o}return{...e,zoom:!0}}function tt(e,t){let n=new Set(e.expanded);return n.has(t)?n.delete(t):n.add(t),{...e,expanded:[...n].sort()}}var ot="aggregate:",nt="kind:";function It(e){return`${nt}${e}`}function me(e){return e.startsWith(nt)?e.slice(nt.length):null}var Xa="kinds:beyond";function ai(e){let t=me(e);return t?[t]:de(e)}function oe(...e){return`${ot}${[...e].sort().join("+")}`}function Eo(e){return e.startsWith(ot)}function de(e){return!Eo(e)||e.includes("|")?[]:e.slice(ot.length).split("+").filter(Boolean)}function Ao(e,t,n={}){let o=me(t);if(o!==null&&e.overview&&n.ownPicture!==!0)return tt(e,t);let r=o!==null?oe(o):t;if(e.zoom&&e.focusId===r&&!(o!==null&&n.carry))return Ve(e,!1);if(o!==null&&n.carry){let i=le({...q(e,r),relation:null},!1);return ne(Ve(i,!0),"q",n.carry)}return Ve({...q(e,r),relation:null},!0)}function si(e,t,n){return ne(le(q(e,oe(t)),!1),"view",n)}function Ja(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ko="aggregate:";function Lt(e){return e.startsWith(ko)&&e.includes("|")}var _t=e=>e?.off===!0,li=e=>e!==void 0&&!_t(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),Ro=e=>e!==void 0&&!_t(e)&&(e.fast!==void 0||e.decide!==void 0),di=e=>e?.suggestOnOpen!==!1&&Ro(e),ui=e=>e?.hoverChips===!0&&Ro(e);var Ht={};var jo=H(W(),1),Ri={turns:[],outcomes:new Map,busy:!1,pending:null,draft:null,draftNote:null},Go=e=>`graview:seat:${e}`;function Ti(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 Mi(e,t){if(e)try{sessionStorage.setItem(e,JSON.stringify({turns:t.turns.slice(-40),outcomes:[...t.outcomes],draft:t.draft}))}catch{}}function Bt(e){let t=e===null?null:Go(e),n={...Ri,...Ti(t)},o=new Set,r=(i,a=!0)=>{n=i,a&&Mi(t,n);for(let s of[...o])s()};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 Ci(e){return(0,jo.useSyncExternalStore)(e.subscribe,e.get,e.get)}var Ko=H(W(),1),Oi={entries:[],ghost:null,loaded:!1};function Fo(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 qt(e){let t=Oi,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:Fo(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:Fo(t.entries,i)})).catch(i=>{console.warn("The host's AI interactions could not be read:",i)})}}}function Vi(e){return(0,Ko.useSyncExternalStore)(e.subscribe,e.get,e.get)}function Bo(e){return e?.closest?.("[data-graview-pick]")?.getAttribute("data-graview-pick")??null}var we=H(W(),1),it=(0,we.createContext)(void 0),Ii=()=>(0,we.useContext)(it),at=(0,we.createContext)(void 0),Li=()=>(0,we.useContext)(at);var E=H(W(),1),Ie=(0,E.createContext)(null);function zo(){return(0,E.useContext)(Ie)}function _i(e,t){let n=zo(),o=(0,E.useMemo)(()=>n?n.live.seenBy(t):e,[n,e,t]),r=(0,E.useRef)(0),i=(0,E.useCallback)(a=>o.subscribe(()=>{r.current+=1,a()}),[o]);return(0,E.useSyncExternalStore)(i,()=>r.current,()=>0),o}var $o=Ze(()=>(__graviewPreload(import.meta.url,["./chunk.YFVJUHAK.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.FC6AF6CC.js")));function zt(e){let[,t]=(0,E.useReducer)(o=>o+1,0),n=e.publishing?.mode==="on-publish"&&!co();return(0,E.useEffect)(()=>{n&&$o().then(t,()=>{})},[n]),!n}var qo,Hi=400;function $t(e,t,n){let o=(0,E.useContext)(Ie),r=o!==null&&o.owns(e,t),[i,a]=(0,E.useState)(null),[s,l]=(0,E.useState)(qo);(0,E.useEffect)(()=>{if(s||r||i===null)return;let x=!0;return $o().then(L=>{qo=L,x&&l(L)},()=>{}),()=>{x=!1}},[s,r,i]);let[u,c]=(0,E.useState)(0),[m,y]=(0,E.useMemo)(()=>r||i===null||!s?[]:[i>=e.log.length?void 0:s.askArchived(e,i,n)??s.askDeclaration(n,i),s.keptOf(e,n)],[r,e,i,n,s,u]),g=m&&"waiting"in m?m.waiting:void 0,b=m&&"seq"in m?m:null,[R,f]=(0,E.useState)(void 0);(0,E.useEffect)(()=>{if(!g)return;let x=!0,L=setTimeout(()=>x&&f(g),Hi);return g.then(()=>x&&c(O=>O+1)),()=>{x=!1,clearTimeout(L)}},[g]);let w=g!==void 0&&R!==g||b!==null,v=(0,E.useMemo)(()=>{if(r||i===null||i>=e.log.length||!s||w)return null;try{let x=s.pastAt(e,i,n);return{seq:i,at:x.past?.at,store:x}}catch{return null}},[r,e,i,n,s,w,u]),A=(0,E.useRef)(null),P=w?A.current:v;(0,E.useEffect)(()=>{A.current=P},[P]);let j=(0,E.useCallback)(x=>a(x===null?null:x>=e.log.length?Number.POSITIVE_INFINITY:x),[e]),G=(0,E.useCallback)((x,L)=>[e,P?.store].some(O=>O!==void 0&&(O===x||O.seenBy(L)===x)),[e,P]),D=i!==null,C=(0,E.useMemo)(()=>({past:P,open:D,show:j,live:e,host:n,owns:G,archive:b,kept:y}),[P,D,j,e,n,G,b,y]);return r?o:C}var Uo=H(W(),1),Ut=(0,Uo.createContext)(null);var Jo=e=>`graview:setting:${e}`;function Qo(){return localStorage}function er(e,t){try{let n=(t??Qo()).getItem(Jo(e.name));if(n!==null&&e.options.some(o=>o.value===n))return n}catch{}return e.initial}function tr(e,t,n){try{(n??Qo()).setItem(Jo(e.name),t)}catch{}}function nr(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 _=H(W(),1);function Yt(e){return Ye(e)}var Wi=12,ji=4;function Gi(e,t,n){let o=Yt(t);return e.get(o)??{participant:o,who:t.id??t.kind,at:null,mode:"docked",since:n,trail:[]}}var lt=(e,t)=>t===null||e[e.length-1]===t?e:[...e,t].slice(-Wi);function or(e,t){let n=e.filter(r=>r.length>0);if(n.length===0)return null;if(n.length<=ji)return n[0];let o=new Set(n.map(r=>t(r)).filter(r=>r!==void 0));return o.size===1?It([...o][0]):n[0]}function Zt(e,t,n){let o=new Map(e);if(t.type==="rest"){for(let[a,s]of e)s.mode!=="asking"&&s.mode!=="docked"&&t.at-s.since>=t.holdMs&&o.set(a,{...s,mode:"docked",at:null,trail:[],say:void 0,confidence:void 0});return o}if(t.author.kind!=="agent")return o;let r=Gi(e,t.author,t.at),i=a=>o.set(r.participant,{...r,...a,since:t.at});switch(t.type){case"read":{let a=or(t.ids,n);return i({at:a,mode:"reading",trail:lt(r.trail,a)}),o}case"about-to-write":case"write":{let a=or(t.ids,n);return i({at:a,mode:"writing",trail:lt(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:lt(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:lt(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 rr="graview:session";function ir(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(rr);if(o)return o;let r=t();return n.setItem(rr,r),r}catch{return t()}}var Xt={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"},Jt={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"},ar=[Xt,Jt],Fi=800;function sr(e){let{channel:t,store:n,view:o,principal:r,session:i,robots:a,seatWho:s,settingValues:l,setView:u,ttlMs:c=So,people:m,seats:y}=e,[g,b]=(0,_.useState)(()=>new Map),[R,f]=(0,_.useState)(null),[w,v]=(0,_.useState)(null),[A,P]=(0,_.useState)(null),j=typeof r.id=="string"&&r.id.length>0,G=j&&(l[Xt.name]??Xt.initial)==="shared",D=G&&(l[Jt.name]??Jt.initial)==="shared",C=Yt({kind:r.kind,...r.id?{id:r.id}:{},session:i}),x=j?so(r,{graph:n.graph,schema:n.schema,...y?{seats:y}:{},...m?{people:m}:{}}):"",L=s?a.get(`agent:${s}:${i}`):void 0,O=(0,_.useMemo)(()=>!t||!G?null:{participant:C,kind:r.kind,name:x,...r.onBehalfOf?.id?{onBehalfOf:r.onBehalfOf.id,...r.onBehalfOf.name?{onBehalfOfName:r.onBehalfOf.name}:{}}:{},hue:lo(r.id??"nobody"),stop:A??te(o),...D?{over:R}:{},...L?{robot:{at:L.at,mode:L.mode}}:{},at:new Date().toISOString()},[t,G,D,C,x,r.id,r.kind,r.onBehalfOf?.id,r.onBehalfOf?.name,o,A,R,L?.at,L?.mode]),De=(0,_.useRef)(null),Ee=k=>k&&t?.here({...k,caret:De.current??void 0,at:new Date().toISOString()}),Ne=(0,_.useCallback)(k=>{De.current=k,Ee(O)},[t,O]);(0,_.useEffect)(()=>{if(!O)return;Ee(O);let k=setInterval(()=>Ee(O),Fi);return()=>clearInterval(k)},[t,O]),(0,_.useEffect)(()=>t?t.onWho(K=>b(Ot(new Map,K,Date.now(),c))):void 0,[t,c]);let We=g.size>0;(0,_.useEffect)(()=>{if(!We)return;let k=setInterval(()=>{b(K=>{let $=Ot(K,[],Date.now(),c);return $.size===K.size?K:$})},Math.max(250,Math.min(1e3,c/4)));return()=>clearInterval(k)},[We,c]),(0,_.useEffect)(()=>{if(!t||typeof window>"u")return;let k=()=>t.leave();return window.addEventListener("pagehide",k),()=>window.removeEventListener("pagehide",k)},[t]),(0,_.useEffect)(()=>{if(!D||typeof document>"u")return;let k=null,K=$=>{let ce=Bo($.target);ce!==k&&(k=ce,f(ce))};return document.addEventListener("pointermove",K,{passive:!0}),()=>document.removeEventListener("pointermove",K)},[D]);let ie=(0,_.useRef)(null),z=w?g.get(w)??null:null,je=(0,_.useCallback)(k=>{ie.current=null,v(k)},[]);(0,_.useEffect)(()=>{if(w){if(!z){v(null);return}z.stop!==ie.current?.stop&&(ie.current={stop:z.stop,at:Date.now()},u(Qe(z.stop)))}},[w,z,u]),(0,_.useEffect)(()=>{let k=ie.current;!w||k===null||Date.now()-k.at<400||bo(o,Qe(k.stop))||v(null)},[o,w]),(0,_.useEffect)(()=>{if(!w||typeof document>"u")return;let k=K=>{K.key==="Escape"&&v(null)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[w]);let Ge=O!==null,J=(0,_.useMemo)(()=>Ge?{participant:C,name:x}:null,[Ge,C,x]);return(0,_.useMemo)(()=>({who:g,sharing:J,following:z,follow:je,sayWhere:P,sayCaret:Ne}),[g,J,z,je,Ne])}var Z=H(W(),1);function lr(e){return Ye(e.author)}function Ki(e,t){return e.length>1?"co-edited":t==="rule"?"rule":t==="agent"?"autonomous":"directed"}function dr(e,t,n,o,r){let i=new Map;for(let[l,u]of e)o-u.at<r&&i.set(l,u);let a=new Set(n.flatMap(l=>l.nodeIds)),s=(l,u,c)=>{let m=i.get(l),y=m?.participants.includes(lr(u))?m.participants:[...m?.participants??[],lr(u)];i.set(l,{at:o,manner:Ki(y,u.author.kind),intent:u.intent,wrote:(m?.wrote??!1)||(c.wrote??!1),read:(m?.read??!1)||(c.read??!1),broke:(m?.broke??!1)||a.has(l),participants:y})};for(let l of t){for(let u of l.writes)s(u,l,{wrote:!0});for(let u of l.reads)l.writes.includes(u)||s(u,l,{read:!0})}for(let l of n)for(let u of l.nodeIds){let c=i.get(u);i.set(u,{at:o,manner:c?.manner??"rule",intent:c?.intent??l.message,wrote:c?.wrote??!1,read:c?.read??!1,broke:!0,participants:c?.participants??["rule::"]})}return i}var Bi=2600;function ur(e,t=Bi){let[n,o]=(0,Z.useState)(()=>new Map),r=(0,Z.useRef)(n);r.current=n;let i=(0,Z.useRef)(null),a=(0,Z.useCallback)(l=>{r.current=l,o(l),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{r.current=new Map,o(new Map)},t)},[t]);(0,Z.useEffect)(()=>{let l=e.violations(),u=e.subscribe((c,m)=>{let y=e.violations(),g=yo(e.allInvariants(),l,y).introduces;l=y,a(dr(r.current,m,g.map(b=>({nodeIds:b.nodeIds,message:b.message})),Date.now(),t))});return()=>{u(),i.current&&clearTimeout(i.current)}},[e,t,a]);let s=(0,Z.useCallback)(l=>{l.reads.length!==0&&a(dr(r.current,[qi(l)],[],Date.now(),t))},[t,a]);return{activity:n,noteAttention:s}}function qi(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 d=H(W(),1);function cr(){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 dt=H(W(),1),zi=e=>e.definitions.some(t=>io(t).size>0);function pr(e,t,n){let[o,r]=(0,dt.useState)(void 0),i=(n.roles??[]).join("\0"),a=n.onBehalfOf?JSON.stringify(n.onBehalfOf):"";return(0,dt.useEffect)(()=>{if(!t||!zi(e.schema)){r(void 0);return}let s=!0,l=!1,u=e.graph,c=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,s&&e.reread()}))},m=ao(t,{kind:n.kind,...n.id===void 0?{}:{id:n.id},...n.roles?{roles:n.roles}:{},...n.onBehalfOf?{onBehalfOf:n.onBehalfOf}:{}},c);return Ct(u,m.read),r(m),e.reread(),()=>{s=!1,Ct(u,void 0)}},[e,t,n.kind,n.id,i,a]),o}function fr(){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 Q=H(Le(),1),$i="graview:place-menu",_e=(0,d.createContext)(null),hr=(0,d.createContext)("scene");function Ui({mode:e,children:t}){return(0,Q.jsx)(hr.Provider,{value:e,children:t})}function Yi(){return(0,d.useContext)(hr)}var wr={kind:"human"},Zi=[],Xi=[],Ji=[],Qt=[];function Sr(e,t){let n=(0,d.useId)();(0,d.useEffect)(()=>{if(!globalThis.__graviewWatch)return;let o=t??wr,r=()=>fo(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 Qi=()=>{try{return typeof location<"u"&&new URLSearchParams(location.search).get("as")==="published"?"published":void 0}catch{return}},ea={off:!0};function ta({store:e,views:t,initialView:n,scheme:o="dark",initialSelection:r,principal:i,as:a,seats:s=Zi,onSeat:l,people:u=Xi,memory:c,presenceTtlMs:m,app:y,settings:g=y?.settings??Ji,presence:b,typing:R,brand:f,locale:w,timeZone:v,onKeepLens:A,onProposeChange:P,providers:j,ai:G,files:D,assetsAt:C,resolveApp:x,history:L,linkedRecords:O,menuSections:De,keptViews:Ee,onExport:Ne,subscriptions:We,dismissals:ie,whileAway:z,workflowRuns:je,signIn:Ge,view:J,onViewChange:k,children:K}){let $=(0,d.useContext)(_e),ce=De??$?.menuSections,wn=Ge??$?.signIn,vt=je??$?.workflowRuns,bt=Ee??$?.keptViews,xt=Ne??$?.onExport,[qr,zr]=(0,d.useState)(null),pe=qr??i??s[0]?.principal??wr,Fe=$t(e,pe,L),Sn=Fe.past&&Fe.live===e?Fe.past.store:e,Pt=a??Qi(),Et=!zt(e),N=(0,d.useMemo)(()=>Et?e:Sn.seenBy(pe,Pt?{as:Pt}:void 0),[Et,e,Sn,pe,Pt]);Sr(e,pe);let[ae]=(0,d.useState)(()=>ir(c)),[vn,$r]=(0,d.useState)(!1),bn=(0,d.useCallback)(()=>$r(!0),[]),se=(0,d.useMemo)(()=>b?[...g,...ar]:g,[g,b]),[At]=(0,d.useState)(()=>n??on(t,e.schema)),[Ur,xn]=(0,d.useState)(()=>et(At??ye,r??At?.selection??[])),Ae=(0,d.useRef)(At??ye).current,[Pn,Yr]=(0,d.useState)(null),[En,Zr]=(0,d.useState)(null),U=(0,d.useContext)(_e),[An]=(0,d.useState)(()=>U?.seatTalk??Bt(f?.name??e.schema.kinds.join(","))),kt=G??U?.ai??Ht,Ke=(0,d.useMemo)(()=>kt.off?ea:kt,[kt]),kn=(0,d.useRef)(Ke.interactions);kn.current=Ke.interactions;let[Rn]=(0,d.useState)(()=>U?.aiDesk??qt(()=>kn.current)),[Xr]=(0,d.useState)(()=>U?.subscriptions??po()),Tn=We??U?.subscriptions??Xr,Rt=A??U?.onKeepLens,Mn=P??U?.onProposeChange,Be=y??U?.app,qe=w??U?.locale,Jr=f?.locale??Be?.brand?.locale,ze=v??U?.timeZone;ro({reader:qe,app:Jr,readerTimeZone:ze,appTimeZone:f?.timeZone??Be?.brand?.timeZone});let Cn=(0,d.useRef)(null),On=(0,d.useCallback)(p=>{Cn.current=p},[]),Vn=(0,d.useCallback)(p=>Cn.current?.whereIs(p)??null,[]),[In]=(0,d.useState)(()=>cr()),[Ln]=(0,d.useState)(()=>fr()),[Tt,Qr]=(0,d.useState)(null),[ke,_n]=(0,d.useState)(()=>new Map),Re=(0,d.useRef)(ke);Re.current=ke;let Te=(0,d.useRef)(null),Mt=(0,d.useCallback)(p=>N.graph.getNode(p)?.kind,[N]),ee=(0,d.useCallback)(p=>{let h=Zt(Re.current,p,Mt);Re.current=h,_n(h),Te.current&&clearTimeout(Te.current),[...h.values()].some(V=>V.mode!=="docked"&&V.mode!=="asking")&&(Te.current=setTimeout(()=>{let V=Zt(Re.current,{type:"rest",at:Date.now(),holdMs:nn},Mt);Re.current=V,_n(V)},nn+20))},[Mt]),Hn=(0,d.useCallback)(p=>ee({...p,at:p.at??Date.now()}),[ee]),Dn=(0,d.useCallback)(p=>{Qr(p),p&&ee({type:"home",author:{kind:"agent",id:p,session:ae},at:Date.now()})},[ee,ae]);(0,d.useEffect)(()=>N.subscribe((p,h)=>{for(let T of h)T.author.kind==="agent"&&ee({type:"write",author:T.author,ids:T.writes,at:Date.now()})}),[N,ee]),(0,d.useEffect)(()=>()=>{Te.current&&clearTimeout(Te.current)},[]);let Y=(0,d.useMemo)(()=>({...pe,session:ae}),[pe,ae]),Nn=pr(N,O,Y),Wn=(0,d.useCallback)(p=>{zr(p),l?.(p)},[l]),[Me,ei]=(0,d.useState)(()=>Object.fromEntries(se.map(p=>[p.name,er(p,c)])));(0,d.useEffect)(()=>{for(let p of se)nr(p,Me[p.name]??p.initial)},[se,Me]);let jn=(0,d.useCallback)((p,h)=>{let T=se.find(V=>V.name===p);!T||!T.options.some(V=>V.value===h)||(tr(T,h,c),ei(V=>({...V,[p]:h})))},[se,c]),[Gn,ti]=(0,d.useState)(null),{activity:Fn,noteAttention:Kn}=ur(N),Bn=(0,d.useCallback)(p=>{Kn(p),ee({type:"read",author:p.author,ids:p.reads,at:Date.now()})},[Kn,ee]),fe=(0,d.useCallback)(p=>{if(me(p)!==null||de(p).length>0||Lt(p))return!0;let h=xo(p);return h?N.graph.allEdges().some(T=>T.kind===h.kind&&T.from===h.from&&T.to===h.to):N.graph.getNode(p)!==void 0},[N]),qn=(0,d.useCallback)(p=>{let h=p.selection??Qt,T=h.filter(fe),V=T.length===h.length?p:et(p,T);return V.focusId!==null&&!fe(V.focusId)&&(V=q(V,null)),V},[fe]),Ce=(0,d.useCallback)(p=>{let h=qn(p),T=gr(N,Y,h.shown);if(h.focusId!==null&&T.size>0){let V=de(h.focusId),oo=N.graph.getNode(h.focusId);(V.length>0?V.every(ri=>T.has(ri)):oo?T.has(oo.kind):!1)&&(h={...h,focusId:null})}if(!h.overview&&h.focusId===null){let V=Ae.focusId!==null&&!fe(Ae.focusId)?on(t,e.schema)??{...ye,overview:!0}:Ae;V.focusId!==null&&fe(V.focusId)?h={...h,focusId:V.focusId}:V.overview===!0&&(h={...h,overview:!0})}return h},[qn,fe,N,Ae,Y,t,e.schema]),B=Ce(J??Ur),zn=(0,d.useMemo)(()=>gr(N,Y,B.shown),[N,Y,B.shown]),$n=(0,d.useMemo)(()=>[...N.modules.administered.entries()].map(([p,h])=>{let T=N.mayAdminister(p,Y);return{name:p,...h.description?{description:h.description}:{},kinds:h.kinds??[],canShow:T,shown:T&&(B.shown??[]).includes(p)}}),[N,Y,B.shown]),Oe=(0,d.useCallback)(p=>{let h=T=>Ce(typeof p=="function"?p(T):p);if(J!==void 0){k?.(h(J));return}k&&k(h(B)),xn(T=>h(T))},[B,k,J,Ce]);(0,d.useEffect)(()=>{J===void 0&&xn(p=>{let h=Ce(p);return h===p?p:h})},[B,J,Ce]);let Un=B.selection??Qt,Yn=(0,d.useCallback)(p=>{Oe(h=>et(h,typeof p=="function"?p(h.selection??Qt):p))},[Oe]),{who:$e,following:Zn,follow:Xn,sayWhere:ni,sayCaret:Jn,sharing:Qn}=sr({channel:b,store:N,view:B,principal:Y,session:ae,robots:ke,seatWho:Tt,settingValues:Me,setView:Oe,seats:s,people:u,...m!==void 0?{ttlMs:m}:{}}),oi=(0,d.useMemo)(()=>({store:N,scheme:o,views:t,view:B,setView:Oe,homeView:Ae,selection:Un,setSelection:Yn,menuAt:Pn,setMenuAt:Yr,whereIs:Vn,pointer:In,motion:Ln,registerScene:On,robots:ke,noteSeat:Hn,seatWho:Tt,registerSeatWho:Dn,actsDoor:En,registerActsDoor:Zr,seatTalk:An,aiDesk:Rn,...c?{memory:c}:{},who:$e,following:Zn,follow:Xn,sayWhere:ni,sharing:Qn,session:ae,ai:Ke,resolveApp:x,linkedRecords:O,menuSections:ce,...bt?{keptViews:bt}:{},...xt?{onExport:xt}:{},subscriptions:Tn,dismissals:ie,whileAway:z,...vt?{workflowRuns:vt}:{},signIn:wn,linkedReads:Nn,movedByHand:vn,noteMoved:bn,emphasis:Gn,setEmphasis:ti,activity:Fn,noteAttention:Bn,principal:Y,seats:s,people:u,takeSeat:Wn,settings:se,settingValues:Me,chooseSetting:jn,hiddenKinds:zn,administered:$n,...j?{providers:j}:{},...f?{brand:f}:{},...Rt?{onKeepLens:Rt}:{},...Mn?{onProposeChange:Mn}:{},app:Be,...qe?{locale:qe}:{},...ze?{timeZone:ze}:{}}),[N,o,t,B,Oe,Un,Yn,Pn,Vn,In,Ln,On,ke,Hn,Tt,Dn,En,An,Rn,c,$e,Zn,Xn,Qn,ae,Ke,x,O,ce,bt,xt,Tn,ie,z,vt,wn,Nn,vn,bn,Gn,Fn,Bn,Y,s,u,Wn,se,Me,jn,zn,$n,j,f,Rt,Be,qe,ze]),eo=(0,d.useMemo)(()=>R?{typing:R,sayCaret:Jn,who:$e}:null,[R,Jn,$e]),to=C?(0,Q.jsx)(at.Provider,{value:C,children:K}):K,no=D?(0,Q.jsx)(it.Provider,{value:D,children:to}):to;return(0,Q.jsx)(_e.Provider,{value:oi,children:(0,Q.jsx)(Ie.Provider,{value:Fe,children:(0,Q.jsx)(aa,{children:Et?null:eo?(0,Q.jsx)(Ut.Provider,{value:eo,children:no}):no})})})}var vr=(0,d.createContext)(null),en,tn=new Set,na=e=>(tn.add(e),()=>void tn.delete(e)),yr=()=>en;function oa(e){if(!en){en=e;for(let t of[...tn])t()}}var ra=300;function ia(e){let t=0;return async(n,o)=>{let r=++t;return await new Promise(i=>setTimeout(i,ra)),r===t?e(n,o):[]}}function aa({children:e}){let{store:t,view:n,views:o,principal:r,hiddenKinds:i,selection:a,ai:s}=re(),l=ut(),u=n.q,c=n.focusId,m=!!(u&&u.trim().length>0),y=(0,d.useSyncExternalStore)(na,yr,yr),g=(0,d.useMemo)(()=>m&&y?{flagged:new Set(t.violations().flatMap(A=>A.nodeIds)),touched:y.touchWeights(t.log.all())}:null,[t,l,m,y]),b=c?t.graph.getNode(c)?.kind??me(c)??(de(c).length===1?de(c)[0]:void 0):void 0,R=(0,d.useMemo)(()=>s.near&&ia(s.near),[s.near]),f=(0,d.useMemo)(()=>!u||!g||!y?null:y.search(t,u,{...b?{inKind:b}:{},principal:r,places:o.places(),kinds:t.schema.kinds.filter(A=>!i.has(A)),from:[...a,...c&&t.graph.has(c)?[c]:[]],flagged:g.flagged,touched:g.touched,limit:200,rank:R}),[t,u,r,o,i,a,c,b,g,R]),[w,v]=(0,d.useState)();return(0,d.useEffect)(()=>void f?.later?.then(A=>v([f,A])),[f]),(0,Q.jsx)(vr.Provider,{value:w?.[0]===f?w[1]:f,children:e})}var mr=new WeakMap;function Xs(e){let t=mr.get(e);return t||mr.set(e,t=new Set(e.matched)),t}function sa(){return(0,d.useContext)(vr)}function re(){let e=(0,d.useContext)(_e);if(!e)throw new Error("useGraview must be used inside a <GraviewProvider>.");return e}function rn(){return(0,d.useContext)(_e)??null}function ut(){let{store:e}=re(),t=(0,d.useRef)(null),n=(0,d.useRef)(null),o=(0,d.useCallback)(()=>(n.current!==e&&(n.current=e,t.current=null),t.current??=e.graph.allNodes(),t.current),[e]),r=(0,d.useCallback)(i=>e.subscribe(()=>{t.current=null,i()}),[e]);return(0,d.useSyncExternalStore)(r,o,o)}function la(e){let{store:t}=re(),n=(0,d.useCallback)(r=>t.subscribe(r),[t]),o=(0,d.useCallback)(()=>e===null?void 0:t.graph.getNode(e),[t,e]);return(0,d.useSyncExternalStore)(n,o,o)}function gr(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 nn=2600;var br=new WeakSet,da=e=>br.has(e),ua=e=>void br.add(e);function on(e,t){let n=wo(e.arrangement?.()?.first,t,e.places());if(!(!n||n.to==="home"))return n.to==="place"?{...ye,focusId:oe(n.place.kind),within:{view:n.place.as}}:{...ye,focusId:oe(n.kind)}}var ue=H(W(),1);var an=H(W(),1),ca=(0,an.createContext)(null),sn=(0,an.createContext)(null);var xr=(0,ue.createContext)(null);function pa(){let e=(0,ue.useContext)(xr),t=rn(),n=(0,ue.useContext)(sn),o=(i,a,s)=>t?.setView(l=>ne(ne(le(q(l,oe(i)),!1),"view",a),"filter",s?.filter??null)),r=()=>t?.setView(i=>ne(le(i,!0),"view",null));return(0,ue.useMemo)(()=>e??{record:i=>{t&&(t.setView(a=>q(le(a,!1),i)),t.setSelection([i]))},place:(i,a)=>{if(i===ho)return r();if(i===go)return n?n.open("/"):r();let s=t?.views.places().find(l=>l.as===i);s&&o(s.kind,s.as,a)},list:(i,a)=>o(i,null,a)},[e,t,n])}var Pr=H(W(),1),fa=(0,Pr.createContext)(!1);var ct=Symbol.for("graview.default-view");function Er(e){return Object.defineProperty(e,ct,{value:!0,enumerable:!1}),e}function Ar(e){return typeof e=="function"&&e[ct]===!0}var pt=Symbol.for("graview.replaces-page");function kr(e){return Object.defineProperty(e,pt,{value:!0,enumerable:!1}),e}function Rr(e){return typeof e=="function"&&e[pt]===!0}var ft=Symbol.for("graview.bleeds");function Tr(e){return Object.defineProperty(e,ft,{value:!0,enumerable:!1}),e}function Mr(e){return typeof e=="function"&&e[ft]===!0}var yt=Symbol.for("graview.previews");function Cr(e,t={}){return Object.defineProperty(e,yt,{value:t,enumerable:!1}),e}function Or(e){return typeof e=="function"?e[yt]:void 0}function ya(e){return mo(e)}function ma(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.homes?.()??[];if(o.length>0)for(let r of o)e.home?.(r.view,r.name!==void 0?{name:r.name}:void 0);else{let r=t.homeView?.();r&&e.home?.(r)}return e}var M=H(W(),1),X=H(Le(),1),ln=new Set,mt=0;function dn(e){return()=>{mt+=1;let t=e();return t.then(()=>void(mt-=1),()=>void(mt-=1)),t}}var ga=()=>mt,ht=(0,M.createContext)(null);function ha(){return{waiting:new Map,at:0}}function wa(e){for(let[t,n]of e.waiting)n<e.at&&e.waiting.delete(t);e.at+=1}var Sa=e=>e?.waiting.size??0;function Lr(e,t){e?.waiting.set(t,e.at)}function _r(e){let t=(0,M.useContext)(ht);(0,M.useLayoutEffect)(()=>{t?.waiting.delete(e)},[t,e])}function va(e){let t={},n=!1,o=new Set,r=(0,M.lazy)(dn(()=>e().then(a=>{n=!0;let s=a.default;function l(u){return _r(t),(0,M.createElement)(s,u)}return{default:l}},a=>{for(let s of o)s.waiting.delete(t);throw a})));function i(a){let s=(0,M.useContext)(ht);return!n&&s&&(o.add(s),Lr(s,t)),(0,M.createElement)(r,a)}return i}var Hr=!1,Dr=!1,gt=new Set;function ba(){Hr=!0}function xa(){Dr=!0;for(let e of[...gt])e();gt.clear()}var Nr=()=>Dr||!Hr;function Pa(e){return Nr()?(e(),()=>{}):(gt.add(e),()=>void gt.delete(e))}var Vr=!1;function un(){for(let e of[...ln])e()}function Ea(){Vr||typeof window>"u"||(Vr=!0,window.addEventListener("online",un))}function cn(e){let t,n=!1,o=!1,r,i=0,a=new Set,s=()=>{i+=1;for(let y of[...a])y()},l=y=>(a.add(y),()=>void a.delete(y)),u=()=>i,c=()=>void m().catch(()=>{});function m(){if(n)return Promise.resolve(t);if(r)return r;let y=e().then(g=>(t=g,n=!0,o=!1,r=void 0,ln.delete(c),s(),g),g=>{throw r=void 0,o=!0,ln.add(c),Ea(),s(),g});return y.catch(()=>{}),r=y,y}return{load:m,prefetch:c,get current(){return t},get failed(){return o},part(y,g={}){let b=g.what??"This part",R={};function f(A){(0,M.useSyncExternalStore)(l,u,u),_r(R);let P=(0,M.useRef)(null),j=(0,M.useRef)(null),G=(0,M.useRef)(!1);return(0,M.useEffect)(()=>{o&&r===void 0&&c()},[]),n&&typeof document<"u"&&P.current!==null&&document.activeElement===P.current&&(G.current=!0),(0,M.useLayoutEffect)(()=>{if(!(!n||!G.current)){G.current=!1;for(let D=j.current?.nextElementSibling??null;D!==null;D=D.nextElementSibling){let C=D.matches(Ir)?D:D.querySelector(Ir);if(C instanceof HTMLElement){C.focus();return}}}}),n?(0,X.jsxs)(X.Fragment,{children:[G.current?(0,X.jsx)("span",{ref:j,hidden:!0}):null,y(t,A)]}):g.quiet?null:(0,X.jsx)(Aa,{what:b,button:P,...g.as?{as:g.as}:{}})}let w=(0,M.lazy)(dn(()=>m().then(()=>({default:f}),()=>({default:f}))));function v(A){let P=(0,M.useContext)(ht),[j]=(0,M.useState)(()=>n||o);return!n&&!o&&Lr(P,R),(0,M.createElement)(j?f:w,A)}return v}}}var Ir="button,a[href],input,select,textarea,[tabindex]:not([tabindex='-1'])";function Aa({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,X.jsxs)(n,{"data-testid":"lazy-part-missing",style:{margin:0,fontSize:"0.875rem",color:"var(--graview-ink-muted)"},children:[(0,X.jsx)("span",{role:"status",children:r})," ",(0,X.jsx)("button",{ref:t,type:"button","data-testid":"lazy-part-retry",onClick:un,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 ve=H(W(),1);function ka(){let{selection:e,setSelection:t}=re();return(0,ve.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 Ra(){let{store:e}=re(),t=ut();return(0,ve.useMemo)(()=>Ta(e),[e,t])}var Wr=new WeakMap;function Ta(e){let t=Wr.get(e);if(!t){let n={violations:null};e.subscribe(()=>{n.violations=null}),Wr.set(e,n),t=n}return t.violations??=e.violations(),t.violations}function Ma(){let{view:e,setView:t}=re();return(0,ve.useMemo)(()=>({view:e,url:te(e),focus:n=>t(o=>q(o,n)),show:n=>t(o=>Po(o,n)),toggle:n=>t(o=>tt(o,n)),go:n=>t(n)}),[e,t])}var Se={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;Se.at=typeof t?.graview=="number"?t.graview:0,Se.at>Se.depth&&(Se.depth=Se.at),Se.tell()});var F=H(W(),1),fn={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"]},"host-actions":{trigger:"host-bar-actions-open",pane:"host-bar-actions",opens:"press",focus:"into",drawn:["shell","embed"]},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"]}},Ca={position:"fixed",inset:"auto",margin:0,zIndex:uo("popover"),boxSizing:"border-box"},wt=6,be=8,Oa=e=>typeof e.showPopover=="function";function St(e){try{return e.matches(":popover-open")}catch{return!1}}function Va(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 yn(e,t,n={}){let o=Va(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(),s=r.height-o.bottom-wt-be,l=o.top-wt-be,u=a.height<=s||s>=l,c=Math.max(96,Math.floor(u?s:l)),m=Math.min(a.height,c);a.height>c&&(e.style.maxHeight=i?`min(${i}, ${c}px)`:`${c}px`);let y=a.width,g=n.align==="start"?o.left:o.right-y,b=typeof t=="function"?null:t.current?.closest("[data-graview-embed]")?.getBoundingClientRect();b&&y<=b.right-b.left&&(g<b.left?g=o.left+y<=b.right?o.left:b.left:g+y>b.right&&(g=o.right-y>=b.left?o.right-y:b.right-y));let R=y>=r.width-2*be?Math.max(0,(r.width-y)/2):Math.max(be,Math.min(g,r.width-be-y)),f=u?o.bottom+wt:Math.max(be,o.top-wt-m);e.style.left=`${Math.round(R)}px`,e.style.top=`${Math.round(f)}px`}function jr(e,t,n,o={}){let r=o.align??"end";(0,F.useLayoutEffect)(()=>{let i=e.current;if(!t||!i)return;if(Oa(i)&&!St(i))try{i.showPopover(),La()}catch{}let a=0,s=u=>{u?.target instanceof Node&&i.contains(u.target)||(cancelAnimationFrame(a),a=requestAnimationFrame(()=>yn(i,n,{align:r})))};yn(i,n,{align:r}),addEventListener("resize",s),addEventListener("scroll",s,!0);let l=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>s());return l?.observe(i),()=>{if(cancelAnimationFrame(a),removeEventListener("resize",s),removeEventListener("scroll",s,!0),l?.disconnect(),i.isConnected&&St(i))try{i.hidePopover()}catch{}}},[t,e,r])}var mn=new Set;function Ia(e){return mn.add(e),()=>mn.delete(e)}function La(){for(let e of mn)if(!(!e.isConnected||!St(e)))try{e.hidePopover(),e.showPopover()}catch{}}var xe=null,_a='button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])';function Ha(e){for(let t of e.querySelectorAll(_a))if(t.closest("[hidden]")===null&&getComputedStyle(t).visibility!=="hidden")return t;return e}var pn=()=>{let e=document.activeElement;return e===null||e===document.body};function Da(e,t={}){let{at:n,returnTo:o,onOpenChange:r}=t,i=t.popover!==!1,[a,s]=(0,F.useState)(!1),l=t.open??a,u=(0,F.useRef)(null),c=(0,F.useRef)(null),m=(0,F.useCallback)(v=>{u.current=v},[]),y=(0,F.useCallback)(v=>{c.current=v},[]),g=`graview-popover-${(0,F.useId)().replace(/:/g,"")}`,b=(0,F.useRef)({onOpenChange:r,returnTo:o,controlled:t.open!==void 0});b.current={onOpenChange:r,returnTo:o,controlled:t.open!==void 0};let R=(0,F.useCallback)(v=>{b.current.controlled||s(v),b.current.onOpenChange?.(v)},[]),f=(0,F.useCallback)(()=>{(document.querySelector(`[aria-controls="${g}"]`)??u.current??b.current.returnTo?.()??null)?.focus({preventScroll:!0})},[g]),w=(0,F.useCallback)(v=>{let A=c.current,P=typeof document>"u"?null:document.activeElement,j=P===null||P===document.body||A!==null&&A.contains(P);R(!1),!(!v||!j)&&(f(),requestAnimationFrame(()=>{pn()&&f()}))},[R,f]);return jr(c,i&&l,n??u,t.align?{align:t.align}:{}),(0,F.useEffect)(()=>{if(!i||!l)return;let v={name:e,close:()=>w(!1)};if(xe&&xe.close!==v.close&&xe.close(),xe=v,fn[e].focus==="into"){let C=c.current;C&&!C.contains(document.activeElement)&&Ha(C).focus({preventScroll:!0})}let A=C=>{C.key==="Escape"&&w(!0)},P=C=>{let x=C.target;if(!(x instanceof Node))return;let L=c.current;if(L?.contains(x)||u.current?.contains(x))return;let O=x instanceof Element?x.closest('[role="dialog"], [role="alertdialog"]'):null;O&&!(L&&O.contains(L))||(w(!1),fn[e].focus==="into"&&requestAnimationFrame(()=>{(pn()||L!==null&&L.contains(document.activeElement))&&f()}))},j=null,G=null,D=C=>{let x=C.target;if(!(x instanceof Element))return;let L=c.current,O=x.closest('[role="dialog"], [role="alertdialog"]');!O||L&&(L.contains(O)||O.contains(L))||(j=O,w(!1))};return document.addEventListener("keydown",A),document.addEventListener("pointerdown",P,!0),document.addEventListener("focusin",D),()=>{document.removeEventListener("keydown",A),document.removeEventListener("pointerdown",P,!0),document.removeEventListener("focusin",D);let C=j;C&&typeof MutationObserver<"u"&&(G?.disconnect(),G=new MutationObserver(()=>{C.isConnected||(G?.disconnect(),requestAnimationFrame(()=>{(pn()||document.activeElement.closest("[hidden]")!==null)&&f()}))}),G.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>G?.disconnect(),10*6e4)),xe?.close===v.close&&(xe=null)}},[i,l,e,w,f]),{open:l,setOpen:v=>v?R(!0):w(!0),toggle:()=>l?w(!0):R(!0),trigger:{ref:m,"aria-expanded":l,"aria-controls":g,"data-graview-popover-trigger":e},pane:{ref:y,id:g,popover:"manual",tabIndex:-1,"data-graview-popover":e,"data-graview-overlay":""}}}var Pe=H(W(),1);var Na=cn(Ze(()=>(__graviewPreload(import.meta.url,["./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.4XCYZRZ3.js"))));function Wa(e,t,n){let o,r=!1,i=()=>{let{hidden:s,removed:l}=t.current();o||r||s.length+l.length===0||(o=()=>{},Na.load().then(u=>{r||(o=u.watchTidied(e,t,n))},String))};i();let a=t.onChange?.(i);return()=>{r=!0,a?.(),o?.()}}function ja(e,t){let[n,o]=(0,Pe.useState)();return(0,Pe.useEffect)(()=>t?Wa(e,t,r=>o([e,r])):void 0,[e,t]),n?.[0]===e?n[1]:e}var Gr=H(W(),1),Ga=(0,Gr.createContext)(!1);var Fr=H(W(),1),Fa=(0,Fr.createContext)(null);var Kr=H(W(),1),gn='button:not([disabled]), a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])',hn=e=>e instanceof HTMLElement&&(e.matches(gn)||e.hasAttribute("tabindex")),He=e=>typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0;function Ka(e,t){let n=l=>l.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 s=e.querySelector(a);return s&&hn(s)&&He(s)?s:null}var Ba=e=>e.isConnected&&hn(e)&&!e.matches(":disabled")&&e instanceof HTMLElement&&He(e);function Br(e,t){let n=t?Ka(e,t):null;if(n)return n;let o=e.querySelector("[data-graview-view][tabindex]");if(o&&He(o))return o;for(let r of e.querySelectorAll(gn))if(He(r))return r;return hn(e)&&He(e)?e:null}function qa(e){(0,Kr.useEffect)(()=>{let t=e.current;if(!t||typeof MutationObserver>"u")return;let n=[],o=f=>{let w=f.target;if(w instanceof Element){n=[];for(let v=w;v&&v!==t.parentElement;v=v.parentElement)n.push(v)}},r=!1,i=!1,a=t.ownerDocument,s=()=>!i&&a.defaultView!==null,l=(f,w)=>void setTimeout(()=>s()&&w(),f),u=f=>void requestAnimationFrame(()=>s()&&f()),c=f=>{if(r=!1,i)return;let w=a.activeElement;if(!(!(w===null||w===a.body||w===a.documentElement)||n.length===0)){if(Ba(n[0])){f&&n[0]instanceof HTMLElement&&n[0].focus({preventScroll:!0});return}for(let A of n.slice(1)){if(!A.isConnected)continue;let P=Br(A,n[0]);if(P){P.focus({preventScroll:!0}),n=[];return}}}},m=(f,w=Date.now()+2500)=>{l(100,()=>{c(f);let v=a.activeElement;(v===null||v===a.body||v===a.documentElement)&&n.length>0&&Date.now()<w&&m(f,w)})},y=()=>{r||n.length===0||(r=!0,l(60,()=>u(()=>{c(!1),m(!1)})))},g=f=>{if(!(f instanceof KeyboardEvent&&!["Enter"," ","Escape"].includes(f.key))){if(!(f instanceof KeyboardEvent)){let w=f.target instanceof Element?f.target.closest(gn):null,v=a.activeElement,A=v===null||v===a.body||v===a.documentElement;if(w&&A&&t.contains(w)){n=[];for(let P=w;P&&P!==t.parentElement;P=P.parentElement)n.push(P);l(150,()=>u(()=>{c(!1),m(!1)}));return}}!(f instanceof KeyboardEvent)&&!(f.target instanceof Node&&n[0]?.contains(f.target))||l(150,()=>u(()=>{c(!0),m(!0)}))}},b=new MutationObserver(()=>{n.length>0&&!n[0].isConnected&&y()}),R=f=>{f.relatedTarget===null&&y()};return t.addEventListener("focusin",o),t.addEventListener("focusout",R),t.addEventListener("click",g),t.addEventListener("keydown",g),b.observe(t,{childList:!0,subtree:!0}),()=>{i=!0,t.removeEventListener("focusin",o),t.removeEventListener("focusout",R),t.removeEventListener("click",g),t.removeEventListener("keydown",g),b.disconnect()}},[e])}export{ye as a,te as b,Qe as c,$a as d,Ua as e,bo as f,vo as g,xo as h,Vt as i,q as j,Po as k,ne as l,le as m,et as n,Ve as o,tt as p,ot as q,It as r,me as s,Xa as t,ai as u,oe as v,Eo as w,de as x,Ao as y,si as z,Ja as A,ko as B,Lt as C,li as D,di as E,ui as F,W as G,Bt as H,Ci as I,Vi as J,Bo as K,it as L,Ii as M,at as N,Li as O,Ie as P,zo as Q,_i as R,zt as S,$t as T,Ut as U,Le as V,$i as W,_e as X,Ui as Y,Yi as Z,Sr as _,ta as $,oa as aa,Xs as ba,sa as ca,re as da,rn as ea,ut as fa,la as ga,da as ha,ua as ia,on as ja,ca as ka,sn as la,xr as ma,pa as na,fa as oa,Er as pa,Ar as qa,kr as ra,Rr as sa,Tr as ta,Mr as ua,Cr as va,Or as wa,ya as xa,ma as ya,dn as za,ga as Aa,ht as Ba,ha as Ca,wa as Da,Sa as Ea,va as Fa,ba as Ga,xa as Ha,Nr as Ia,Pa as Ja,cn as Ka,ja as La,Ga as Ma,Fa as Na,ka as Oa,Ra as Pa,Ma as Qa,Se as Ra,qa as Sa,Ca as Ta,St as Ua,jr as Va,Ia as Wa,Da as Xa};
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 +0,0 @@
1
- import{a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p}from"./chunk.SADHOSRC.js";import{a,b}from"./chunk.4DZOAB4D.js";import"./chunk.UDU545CL.js";import"./chunk.7VAHHEDX.js";import"./chunk.75JQCTR6.js";import"./chunk.5IEZF433.js";import"./chunk.5AD2QHWH.js";import"./chunk.3FKKH2XU.js";import"./chunk.DLWFULWE.js";import"./chunk.VLX7YWVH.js";import"./chunk.SDO3U72B.js";import"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import"./chunk.AJZBJBMO.js";export{j as ARRANGE_NARROW,o as ArrangeBar,e as CHIP_FIELDS,d as MANY_AT_THE_FAR_END,c as TYPED_FROM,p as arrangementCaption,a as arrangementOf,i as chipOffers,m as directionWords,g as farCount,f as farCounts,l as inSentence,h as offeredFilters,n as preloadArrangeLists,k as sayCondition,b as withArrangement};
@@ -1 +0,0 @@
1
- import"./chunk.WVUJXDXZ.js";import{b as P}from"./chunk.ZA5TDCBC.js";import"./chunk.2JEN2RCB.js";import"./chunk.7CLKGKSF.js";import"./chunk.TMHVYI5R.js";import"./chunk.R5MLRKAO.js";import"./chunk.YMXWS4XN.js";import"./chunk.5AD2QHWH.js";import{Aa as L,wa as M,ya as T,za as E}from"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import"./chunk.AJZBJBMO.js";function G(r,l,i){let g=r.getAttribute("data-record")??"",m=r.getAttribute("data-field")??"",c=Number(r.getAttribute("data-index")??"0"),e=[...l?.node?[l.node]:[],...l?.nodes??[]].find(p=>p.id===g);if(!g||!e)return{why:g?`names a record it was not shown ("${g.slice(0,80)}")`:"names no record (data-record)"};let h=m&&Object.hasOwn(e,m)?e[m]:void 0,f=(Array.isArray(h)?h:[h]).filter(M),o=Number.isInteger(c)&&c>=0?f[c]:void 0,v=e.label?`"${e.label}"`:"a record";return m?o?(i==="video"?!E(o):!E(o)&&!T(o))?{why:`names "${o.name}" on ${v}, which is not ${i==="video"?"a video":"a picture or a video"}`}:{file:o,on:e}:{why:f.length===0?`names "${m}" on ${v}, which holds no file it was shown`:`names file ${r.getAttribute("data-index")} of "${m}" on ${v}, which holds ${f.length}`}:{why:`names no field of ${v} (data-field)`}}var C=r=>`${r.caption?.trim()||r.name}, ${L(r)}`;function N(r,l,i,g,m,c={}){let e=r.createElement("video");e.setAttribute("data-graview-video",""),e.setAttribute("playsinline",""),e.setAttribute("aria-label",C(i)),c.autoplay?(e.setAttribute("data-graview-video-autoplay",""),e.setAttribute("muted",""),e.muted=!0,e.setAttribute("loop",""),e.setAttribute("preload",c.still?"metadata":"auto"),c.still?e.setAttribute("data-graview-video-still",""):e.setAttribute("autoplay","")):(e.setAttribute("controls",""),e.setAttribute("preload","metadata"));let h=i.poster?g(i.poster):void 0;h&&e.setAttribute("poster",h),i.width&&i.height?(e.setAttribute("width",String(i.width)),e.setAttribute("height",String(i.height)),e.style.aspectRatio=`${i.width} / ${i.height}`):e.style.aspectRatio="16 / 9",c.cover?(e.setAttribute("data-graview-video-cover",""),e.style.cssText+=";display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;background:#000"):e.style.cssText+=";display:block;width:100%;height:auto;max-height:80vh;background:#000;border-radius:var(--graview-radius, 8px)";let f=i.captions?g(i.captions):void 0;if(f){let o=r.createElement("track");o.setAttribute("kind","captions"),o.setAttribute("src",f),o.setAttribute("srclang","en"),o.setAttribute("label","Captions"),o.setAttribute("default",""),e.appendChild(o)}return i.duration===void 0&&e.addEventListener("loadedmetadata",()=>Number.isFinite(e.duration)&&e.duration>0&&e.setAttribute("aria-label",C({...i,duration:e.duration}))),e.setAttribute("src",m),l.appendChild(e),e}function S(r,l){let i=r.document,g=new Set,m=t=>{g.has(t)||(g.add(t),l.onProblem?.(t))},c=t=>{let a=l.file?l.file(t):t;if(a!==void 0)try{let s=new r.URL(a,i.baseURI);return s.origin===r.location.origin&&/^https?:$/.test(s.protocol)?a:void 0}catch{return}},e=new WeakMap,h=typeof r.matchMedia=="function"?r.matchMedia("(prefers-reduced-motion: reduce)"):void 0,f=new Set,o=(t,a)=>{a?(t.removeAttribute("autoplay"),t.setAttribute("data-graview-video-still",""),t.pause()):(t.removeAttribute("data-graview-video-still"),t.setAttribute("autoplay",""),t.setAttribute("preload","auto"),t.play?.()?.catch?.(()=>{}))},v=()=>{for(let t of f)t.isConnected?o(t,h?.matches===!0):f.delete(t)};h?.addEventListener?.("change",v);let p,k=t=>{if(typeof t.close=="function")return t.close();t.removeAttribute("open"),t.dispatchEvent(new r.Event("close"))},w=(t,a)=>m(`The ${t} in the view ${l.view} was not drawn: it ${a}.`);return{refresh(t){let a=l.shown();for(let s of Array.from(t.querySelectorAll("graview-video"))){let d=s.shadowRoot??s.attachShadow({mode:"open"});if(!l.pictures){e.delete(s),d.replaceChildren(),w("video",`asks for no pictures: a view places a record's video where its manifest says "pictures": true`);continue}let u=G(s,a,"video"),n={autoplay:s.hasAttribute("autoplay"),cover:s.hasAttribute("cover"),still:h?.matches===!0},b="file"in u?JSON.stringify([u.file,n.autoplay,n.cover]):"";if(e.get(s)===b&&d.childNodes.length>0)continue;if(e.set(s,b),d.replaceChildren(),"why"in u){w("video",u.why);continue}let A=c(u.file.href);if(!A){w("video",`names "${u.file.name}", which this host does not say it serves on this page`);continue}let $=i.createElement("style");$.textContent=":host { display: block; min-width: 0; }",d.appendChild($);let y=N(i,d,u.file,c,A,n);n.autoplay&&f.add(y)}},open(t){if(!l.pictures)return w("full-screen viewer",`asks for no pictures: a view opens a record's picture or video full screen where its manifest says "pictures": true`),!1;let a=G(t,l.shown(),"any");if("why"in a)return w("full-screen viewer",a.why),!1;let s=c(a.file.href);if(!s)return w("full-screen viewer",`names "${a.file.name}", which this host does not say it serves on this page`),!1;p&&k(p);let d=a.file,u=d.caption?.trim()||d.name,n=i.createElement("dialog");n.setAttribute("data-graview-lightbox",""),n.setAttribute("aria-label",E(d)?C(d):u),n.style.cssText="padding:0;border:0;border-radius:var(--graview-radius, 8px);max-width:min(96vw, 1600px);max-height:94vh;background:var(--graview-panel, Canvas);color:var(--graview-ink, CanvasText)";let b=i.createElement("figure");if(b.style.cssText="margin:0;display:grid;gap:8px;padding:10px",E(d))N(i,b,d,c,s);else{let x=i.createElement("img");x.setAttribute("src",s),x.setAttribute("alt",u),x.style.cssText="max-width:100%;max-height:80vh;object-fit:contain;display:block;margin:0 auto",b.appendChild(x)}let A=i.createElement("figcaption");A.style.cssText="display:flex;gap:12px;align-items:center;justify-content:space-between";let $=i.createElement("span");$.textContent=E(d)&&d.duration!==void 0?`${u} \xB7 ${P(d.duration)}`:u;let y=i.createElement("button");return y.type="button",y.textContent="Close",y.addEventListener("click",()=>k(n)),A.append($,y),b.appendChild(A),n.appendChild(b),n.addEventListener("click",x=>x.target===n&&k(n)),n.addEventListener("close",()=>{n.remove(),p===n&&(p=void 0),t.focus?.()}),i.body.appendChild(n),p=n,typeof n.showModal=="function"?n.showModal():n.setAttribute("open",""),y.focus(),!0},dispose(){p&&k(p),p?.remove(),p=void 0,h?.removeEventListener?.("change",v),f.clear()}}}export{S as createGuestMedia,G as namedFile};
@@ -1 +0,0 @@
1
- import{b as x}from"./chunk.APRWUIE3.js";import"./chunk.3OEODIHB.js";import"./chunk.WFCE7NLK.js";import"./chunk.WVUJXDXZ.js";import"./chunk.ZA5TDCBC.js";import"./chunk.2JEN2RCB.js";import"./chunk.7CLKGKSF.js";import"./chunk.TMHVYI5R.js";import"./chunk.R5MLRKAO.js";import"./chunk.YMXWS4XN.js";import"./chunk.GZHZLJBF.js";import{o as R}from"./chunk.3SAESG6X.js";import"./chunk.OJGHDWI6.js";import"./chunk.F6BNFLQM.js";import"./chunk.75JQCTR6.js";import"./chunk.5IEZF433.js";import"./chunk.5AD2QHWH.js";import"./chunk.3FKKH2XU.js";import"./chunk.DLWFULWE.js";import{G as A,V as v,ea as g}from"./chunk.VLX7YWVH.js";import"./chunk.SDO3U72B.js";import{ra as y,rd as k,va as c}from"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import{b as u}from"./chunk.AJZBJBMO.js";var f=u(A(),1);var L=u(A(),1),S=(0,L.createContext)(void 0);var i=u(v(),1),W=new WeakMap,m=new WeakMap,P=(e,n)=>`${n.kind}\0${n.id??""}\0${e}`;function b(e,n,a){let p=P(n,a),o=W.get(e);o||W.set(e,o=new Map);let t=o.get(p);return t||(t=Promise.resolve().then(()=>e(n,a)).then(r=>C(r)?r:null,()=>null).then(r=>{let s=m.get(e);return s||m.set(e,s=new Map),s.set(p,r),r}),o.set(p,t)),t}function C(e){if(e===null)return!0;if(typeof e!="object"||e===void 0)return!1;if(e.denied===!0)return!0;let n=e;return typeof n.name=="string"&&n.name.trim()!==""&&typeof n.href=="string"}function h(e){if(/^https?:\/\//i.test(e))try{return new URL(e).href}catch{return}}var N=e=>h(e)??(c(e)?e:void 0),E=e=>h(e)??(e.startsWith("/")&&c(e)?e:void 0),I={kind:"human"},w={color:"var(--graview-ink-muted)"};function M({icon:e}){if(!e)return null;let n=E(e);if(n)return(0,i.jsx)("img",{src:n,alt:"",width:20,height:20,"data-graview-app-icon":"",style:{width:20,height:20,borderRadius:5,objectFit:"cover",flex:"0 0 auto"}});let a=[...e.trim()].slice(0,2).join("");return a?(0,i.jsx)("span",{"aria-hidden":"true","data-graview-app-icon":"",style:{flex:"0 0 auto",lineHeight:"20px"},children:a}):null}function V(e){let n=g(),a=(0,f.useContext)(S)??n?.resolveApp,p=n?.principal??I,o=()=>a?m.get(a)?.get(P(e,p))??"asking":null,[t,r]=(0,f.useState)(o);return(0,f.useEffect)(()=>{let s=o();if(r(s),s!=="asking"||!a)return;let l=!0;return b(a,e,p).then(d=>l&&r(d)),()=>{l=!1}},[a,e,p.kind,p.id]),t}function D({address:e,as:n="chip",nodeId:a,field:p,style:o}){let t=V(e),r={position:"relative",zIndex:k.raised,overflowWrap:"anywhere",minWidth:0,maxWidth:"100%",...o},s;if(t==="asking")s=(0,i.jsx)("span",{"data-graview-app-link":"","data-graview-app-state":"asking","aria-busy":"true",style:{...w,...r},children:"Linked app"});else if(t&&"denied"in t)s=(0,i.jsx)("span",{"data-graview-app-link":"","data-graview-app-state":"denied",style:{...w,fontStyle:"italic",...r},children:"linked app (no access)"});else if(t){let l=N(t.href),d=n==="record"?t.headline?.trim():void 0;s=(0,i.jsxs)(l?"a":"span",{"data-graview-app-link":"","data-graview-app-state":"found",...l?{href:l}:{},...!d&&t.headline?{title:t.headline}:{},style:{display:"inline-flex",alignItems:d?"flex-start":"center",minHeight:24,gap:8,color:"inherit",textUnderlineOffset:3,...r},children:[(0,i.jsx)(M,{icon:t.icon}),(0,i.jsxs)("span",{style:{display:"grid",minWidth:0},children:[(0,i.jsx)("span",{"data-graview-app-name":"",style:{fontWeight:600},children:t.name}),d?(0,i.jsx)("span",{"data-graview-app-headline":"",style:{...w,fontSize:"0.8125em",fontWeight:400},children:d}):null]})]})}else{let l=h(e);s=l?(0,i.jsx)("a",{"data-graview-app-link":"","data-graview-app-state":"plain",href:l,rel:"noopener noreferrer",target:"_blank",style:{color:"var(--graview-accent)",display:"inline-flex",alignItems:"center",minHeight:24,...r},children:e}):(0,i.jsx)("span",{"data-graview-app-link":"","data-graview-app-state":"plain",style:r,children:e})}return a&&p?(0,i.jsx)(H,{nodeId:a,field:p,address:e,drawn:s}):s}function H({nodeId:e,field:n,address:a,drawn:p}){let o=R(e).fields.some(s=>s.field===n),t=g()?.store;if(!o)return p;let r=y(t?t.schema.tryDefinition(String(t.graph.getNode(e)?.kind)):void 0,n).toLowerCase();return(0,i.jsxs)("span",{style:{display:"inline-flex",flexWrap:"wrap",alignItems:"baseline",gap:"4px 12px",maxWidth:"100%",minWidth:0},children:[p,(0,i.jsx)("span",{style:{fontSize:"0.8125rem"},children:(0,i.jsx)(x,{nodeId:e,field:n,value:"Change",stored:a,said:`Change the ${r}`})})]})}var Y=e=>(0,i.jsx)(D,{...e});export{D as AppLink,Y as drawAppLink};
@@ -1 +0,0 @@
1
- import"./chunk.GZHZLJBF.js";import{o as D}from"./chunk.3SAESG6X.js";import"./chunk.OJGHDWI6.js";import"./chunk.F6BNFLQM.js";import"./chunk.75JQCTR6.js";import{a as $}from"./chunk.5IEZF433.js";import"./chunk.5AD2QHWH.js";import"./chunk.3FKKH2XU.js";import"./chunk.DLWFULWE.js";import{G as P,V as C}from"./chunk.VLX7YWVH.js";import"./chunk.SDO3U72B.js";import{Ua as w,Wa as R,_a as c,ba as S}from"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import{b as k}from"./chunk.AJZBJBMO.js";var m=k(P(),1);var e=k(C(),1),W=[["","Does not repeat"],["day","Daily"],["week","Weekly"],["month","Monthly"],["year","Yearly"]],E=r=>`${r}${r%100>=11&&r%100<=13?"th":["th","st","nd","rd"][r%10]??"th"}`,v={display:"flex",flexWrap:"wrap",gap:"6px 12px",alignItems:"center"};function N({value:r,onChange:d,start:p,label:s,name:l="repeat"}){let f=(0,m.useId)(),a=c(r)?r:void 0,i=typeof p=="string"&&/^\d{4}-\d{2}-\d{2}/.test(p)?p:void 0,u=i?w[new Date(`${i.slice(0,10)}T00:00:00Z`).getUTCDay()]:void 0,o=t=>{let n={...a??{every:"week"},...t};for(let b of Object.keys(n))n[b]===void 0&&delete n[b];d(n)},y=a?.every??"week",g=a?.on??(u?[u]:[]);return(0,e.jsxs)("fieldset",{"data-graview-part":"field","data-graview-field":"repeat","data-graview-repeat":l,style:{display:"grid",gap:8,border:"1px solid var(--graview-edge)",borderRadius:8,padding:"8px 12px",margin:0,minWidth:0},children:[(0,e.jsx)("legend",{"data-graview-part":"label",style:{padding:"0 4px"},children:s}),(0,e.jsxs)("div",{style:v,children:[(0,e.jsx)("label",{htmlFor:`${f}-every`,children:"Repeats"}),(0,e.jsx)("select",{id:`${f}-every`,name:`${l}.every`,value:a?.every??"",onChange:t=>{let n=t.target.value;d(n===""?void 0:{...a?.interval?{interval:a.interval}:{},...a?.until?{until:a.until}:{},every:n})},"data-graview-part":"control",children:W.map(([t,n])=>(0,e.jsx)("option",{value:t,children:n},t))}),a?(0,e.jsxs)("label",{style:v,children:["every",(0,e.jsx)("input",{type:"number",min:1,max:99,name:`${l}.interval`,"aria-label":`Every how many ${y}s`,value:a.interval??1,onChange:t=>o({interval:Number(t.target.value)>1?Math.min(99,Math.round(Number(t.target.value))):void 0}),style:{width:"4.5em"},"data-graview-part":"control"}),y,(a.interval??1)>1?"s":""]}):null]}),a?.every==="week"?(0,e.jsxs)("div",{role:"group","aria-label":"On",style:v,children:[(0,e.jsx)("span",{"aria-hidden":"true",children:"On"}),w.map((t,n)=>(0,e.jsxs)("label",{style:{display:"inline-flex",gap:4,alignItems:"center",minHeight:24},children:[(0,e.jsx)("input",{type:"checkbox",name:`${l}.on`,value:t,checked:g.includes(t),onChange:b=>{let h=w.filter(x=>x===t?b.target.checked:g.includes(x));o({on:h.length===0||h.length===1&&h[0]===u?void 0:h})}}),S(n,"short")]},t))]}):null,a?.every==="month"?(0,e.jsxs)("label",{style:v,children:["On",(0,e.jsxs)("select",{name:`${l}.on`,value:a.on?.[0]===-1?"last":"",onChange:t=>o({on:t.target.value==="last"?[-1]:void 0}),"data-graview-part":"control",children:[(0,e.jsx)("option",{value:"",children:i?`the ${E(Number(i.slice(8,10)))}`:"the same day"}),(0,e.jsx)("option",{value:"last",children:"the last day"})]})]}):null,a?(0,e.jsxs)("label",{style:v,children:["Until",(0,e.jsx)("input",{type:"date",name:`${l}.until`,value:a.until??"",onChange:t=>o({until:t.target.value||void 0}),"data-graview-part":"control"})]}):null,(0,e.jsx)("p",{"aria-live":"polite","data-graview-repeat-said":"",style:{margin:0,color:"var(--graview-ink-dim)",fontSize:"0.8125rem"},children:a?$(i??"",a):"Does not repeat"})]})}function K({nodeId:r,field:d,start:p,value:s,label:l}){let{fields:f,commit:a}=D(r),i=f.find(t=>t.field===R(d)&&t.takesValue&&t.open.length===0),[u,o]=(0,m.useState)(!1),[y,g]=(0,m.useState)(c(s)?s:void 0);return i?u?(0,e.jsxs)("form",{onSubmit:t=>{t.preventDefault(),o(!1),a(i,y??null)},style:{display:"grid",gap:6,marginTop:6},children:[(0,e.jsx)(N,{value:y,onChange:g,start:p,label:l,name:R(d)}),(0,e.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,e.jsx)("button",{type:"submit","data-graview-repeat-keep":d,children:"Keep"}),(0,e.jsx)("button",{type:"button",onClick:()=>o(!1),children:"Cancel"})]})]}):(0,e.jsx)("button",{type:"button","data-graview-repeat-open":d,onClick:()=>(g(c(s)?s:void 0),o(!0)),style:{marginInlineStart:8,fontSize:"0.75rem",padding:"1px 8px",borderRadius:999,minHeight:24},children:c(s)?"Change how it repeats":"Repeat\u2026"}):null}export{K as RepeatEditor,N as RepeatPicker};
@@ -1 +0,0 @@
1
- import{a as b,b as c,c as d,d as e,e as f}from"./chunk.2E62YCMZ.js";import"./chunk.DUP2CGVH.js";import"./chunk.7CLKGKSF.js";import"./chunk.R5MLRKAO.js";import"./chunk.YMXWS4XN.js";import{Mb as a}from"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import"./chunk.AJZBJBMO.js";export{a as ActRefusal,e as compileDocumentWithoutCheck,d as effectsOf,f as inDocumentWords,c as kindShapes,b as readDocument};
@@ -1 +0,0 @@
1
- import{a as ot}from"./chunk.T6PU3NKP.js";import"./chunk.UDU545CL.js";import{e as V,l as ue,n as G,r as st}from"./chunk.7VAHHEDX.js";import{a as ee}from"./chunk.G4JJXA63.js";import"./chunk.TA2JTUNX.js";import{b as nt}from"./chunk.HZPRMHSL.js";import{d as tt}from"./chunk.LDMBJC3B.js";import"./chunk.XOZU4OFA.js";import"./chunk.G7YLK4PX.js";import"./chunk.YEXFVDRA.js";import"./chunk.75JQCTR6.js";import{d as et}from"./chunk.5IEZF433.js";import{c as Ze}from"./chunk.5AD2QHWH.js";import{L as ze,Vd as Ne,Wd as Xe,_ as Je,la as Ye,oa as qe,sa as Ae,ta as F,ub as Ve,vb as Qe}from"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import"./chunk.AJZBJBMO.js";var At="Nothing by that name here.",$=o=>o.normalize("NFD").replace(/\p{M}+/gu,"").toLowerCase().replace(/[’']/g,"'").replace(/[^\p{L}\p{N}' ]+/gu," ").replace(/\s+/g," ").trim(),Nt=/^(?:(?:can you |could you |please )?(?:go|take me|bring me|head|jump|navigate|switch|get me)(?: back)? to|(?:please )?(?:open|show(?: me)?|bring up|let me see|view)) (.+)$/,St=/^(?:(?:can you |could you |please )?tell me (?:about|of)|what(?: is|'s| are) (?:in |on )?|describe|explain|who(?: is|'s)) (.+)$/,Ot=/^(?:what(?: is|'s| am i looking at| do i see)(?: (?:here|this|on (?:this|the) (?:page|screen)|in view|this place|this page))?|where am i|describe (?:this|here|this place|this page)|tell me about (?:this|here|this place|this page))$/,rt=new Set(["here","this","this place","this page","on this page","on the page","on this screen","in view"]),Ct=/^(?:date|day|when|on|at|the date|the day)$/,jt=/^(?:what(?: is|'s) (?:wrong|broken|the (?:problem|matter|trouble))|what needs (?:fixing|attention|doing)|any (?:problems|issues|trouble)|(?:show(?: me)? |go to |open )?(?:the )?(?:problems|issues|trouble|standing|what's wrong)|is (?:anything|something) (?:wrong|broken)|are there (?:any )?(?:problems|issues))(?: (?:with|about|on|in) (.+))?$/,z=o=>o.replace(/^(?:the|a|an|my|our) /,""),te=new Set(["the","a","an","my","our","all","any","of","that","which","who","are","is","be","what","whats","what's","with","me","show","list","every","there","do","i","have","we","due","for","please","were","was","by","from","in","on"]),ft=864e5,he=o=>Date.UTC(Number(o.slice(0,4)),Number(o.slice(5,7))-1,Number(o.slice(8,10))),xe=o=>new Date(o).toISOString().slice(0,10),C=(o,i)=>xe(he(o)+i*ft),xt=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],Mt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wt="(monday|tuesday|tues|wednesday|thursday|thurs|friday|saturday|sunday)",it="(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sept|sep|oct|nov|dec)",at="(\\d{1,2})(?:st|nd|rd|th)?",Dt=o=>xt.findIndex(i=>i.startsWith(o.slice(0,3))),dt=o=>Mt.findIndex(i=>o.startsWith(i.toLowerCase()));function Rt(o,i){return Je(o,{year:o.slice(0,4)!==i.slice(0,4)})}function Se(o,i,y){if(o<0||i<1||i>31)return;let f=Number(y.slice(0,4)),c=k=>{let j=Date.UTC(k,o,i);return new Date(j).getUTCMonth()===o?xe(j):void 0},p=c(f);if(p)return he(p)<he(y)-183*ft?c(f+1):p}function Oe(o,i,y){let f=new Date(he(i)).getUTCDay(),c=u=>{let S=(f-y+7)%7,w=C(i,-S+u*7);return{from:w,to:C(w,6)}},p=()=>{let u=`${i.slice(0,8)}01`,S=new Date(Date.UTC(Number(i.slice(0,4)),Number(i.slice(5,7)),1));return{from:u,to:C(xe(S.getTime()),-1)}},k=u=>u?{from:u,to:u,day:Rt(u,i)}:void 0,j=(u,S)=>{let w=Dt(S);return k(u==="this"||u==="next"?C(c(u==="next"?1:0).from,(w-y+7)%7):u==="last"?C(i,-((f-w+6)%7+1)):C(i,(w-f+7)%7))},J=u=>{let S=C(i,f===0?-1:6-f);return{from:C(S,u*7),to:C(S,u*7+1)}},B="\\b(?:(?:due |for |on |by )(?:the )?)?",P=[[/\b(?:overdue|past due|late)\b/,()=>({overdue:!0,to:C(i,-1)})],[/\b(?:due |for |on )?today\b/,()=>({from:i,to:i})],[/\b(?:due |for |on )?tomorrow\b/,()=>k(C(i,1))],[/\b(?:due |for |on )?yesterday\b/,()=>k(C(i,-1))],[/\b(?:due |for |on )?this week\b/,()=>c(0)],[/\b(?:due |for |on )?next week\b/,()=>c(1)],[/\b(?:due |for |on )?(?:last|previous) week\b/,()=>c(-1)],[/\b(?:due |for |on )?next weekend\b/,()=>J(1)],[/\b(?:due |for |on )?(?:this |the )?weekend\b/,()=>J(0)],[/\b(?:due |for |on )?this month\b/,()=>p()],[new RegExp(`${B}(\\d{4}) (\\d{2}) (\\d{2})\\b`),u=>k(Se(Number(u[2])-1,Number(u[3]),`${u[1]}-01-01`))],[new RegExp(`${B}${at} (?:of )?${it}\\b`),u=>k(Se(dt(u[2]),Number(u[1]),i))],[new RegExp(`${B}${it} (?:the )?${at}\\b`),u=>k(Se(dt(u[1]),Number(u[2]),i))],[new RegExp(`${B}(?:(this|next|last|coming) )?${Wt}\\b`),u=>j(u[1],u[2])]];for(let[u,S]of P){let w=o.match(u);if(!w)continue;let N=S(w);if(N)return{ask:{words:w[0],...N},rest:o.replace(w[0]," ").replace(/\s+/g," ").trim()}}}function ht(o,i,y={}){let f=y.principal??{kind:"human"},c=o.seenBy(f),p=c.schema,k=y.today??o.today?.()??ze(),j=y.weekStartsOn??1,J=o.kindsKeptFrom(f),B=o.modules.disabledKinds,P=p.kinds.filter(e=>!J.has(e)&&!B.has(e)),u=new Set(P),S=(y.places??[]).filter(e=>e.kind===null||u.has(e.kind)),w=c.graph,N=$(i).replace(/[?.!]+$/,"").trim();if(N.length===0)return{unresolved:!0};let M=e=>p.tryDefinition(e),H=e=>Ye(M(e.kind),e),I=e=>qe(p,e),se=e=>S.find(t=>t.kind===e&&t.address===Ne(p,e))?.address??Ne(p,e),ge=e=>Xe(p,e.kind,e.id),Me=e=>({to:"record",id:e.id,kind:e.kind,label:H(e),address:ge(e),said:`Went to ${H(e)}.`}),We=e=>{let t=`Went to ${e.title}.`;return e.kind===null?{to:"place",slug:e.slug,title:e.title,address:e.address,...e.slug==="overview"?{face:"scene"}:{},said:t}:e.lens||e.address.startsWith("/places/")?{to:"picture",kind:e.kind,as:e.slug,title:e.title,address:e.address,said:t}:{to:"kind",kind:e.kind,title:e.title,address:e.address,said:t}},De=()=>({unresolved:!0,say:At}),oe=e=>{let t=M(e.kind),s=et(e,t,{limit:3,excerpt:!0}).map(r=>r.alone.startsWith(r.label)?r.alone:`${r.label.toLowerCase()} ${r.alone}`).join(", "),n=c.violations().filter(r=>r.nodeIds.includes(e.id));return[`${H(e)} \u2014 ${Ae(F(t,e.kind))}${s?` (${s})`:""}.`,n.length>0?`Trouble: ${n.map(r=>r.message).join("; ")}.`:""].filter(Boolean).join(" ")},re=e=>{let t=new Set([G(e),G(z(e))]);for(let n of[" page"," view"," lens"," place"," picture"," list"])e.endsWith(n)&&(t.add(G(e.slice(0,-n.length))),t.add(G(z(e.slice(0,-n.length)))));t.delete("");let s=n=>t.has(G(n.title))||t.has(G(z($(n.title))))||t.has(G(n.slug));return S.find(n=>n.kind!==null&&n.address.startsWith("/places/")&&s(n))??S.find(s)},pe=e=>{let t=st(o,e,{principal:f,today:k,limit:6,near:!1,...y.selection?{from:y.selection}:{}}),s=t.hits.filter(r=>r.about==="node"&&u.has(r.kind)&&w.getNode(r.id)!==void 0),n=s.filter(r=>r.why.field==="label"&&r.why.strength==="exact");return n.length===1?{one:w.getNode(n[0].id),picks:s}:n.length>1?{picks:n}:s.length===1&&t.total===1?{one:w.getNode(s[0].id),picks:s}:{picks:s}},Re=e=>{let t=e.map(s=>`${s.label} (${F(M(s.kind),s.kind)})`);return`${e.length===1?"One thing matches":`${e.length} things match`}: ${t.join("; ")}.`},Ee=(e,t)=>{if(rt.has(e))return Le();let s=t?pe(z(e)||e):void 0,n=s?.one&&$(H(s.one))===$(z(e)||e)?void 0:re(e);if(n){let l=We(n);return{about:"place",say:t?`${l.said} ${me(n)}`:l.said,moves:[l],subject:n.slug}}let r=pe(z(e)||e);if(r.one){let l=Me(r.one);return{about:t?"describe":"record",say:t?`${l.said} ${oe(r.one)}`:l.said,moves:[l],subject:r.one.id}}if(r.picks.length>0)return{about:"picks",say:Re(r.picks),moves:[],picks:r.picks};let h=ae(e);if(h)return h;let d=Pe(e);if(d){if(d.rest.split(" ").every(l=>l===""||te.has(l))){let l=I(d.kind),v={to:"kind",kind:d.kind,title:l,address:se(d.kind),said:`Went to the ${l.toLowerCase()}.`};return{about:"kind",say:v.said,moves:[v]}}return{unresolved:!0}}return De()},me=e=>{if(e.kind===null){let h=P.map(l=>({kind:l,count:w.nodesOfKind(l).length})).filter(l=>l.count>0).map(l=>`${l.count} ${(l.count===1?F(M(l.kind),l.kind):I(l.kind)).toLowerCase()}`),d=c.violations().length;return[h.length>0?`It holds ${fe(h)}.`:"It holds nothing yet.",d>0?`${d===1?"One problem":`${d} problems`} to see to.`:""].filter(Boolean).join(" ")}let t=w.nodesOfKind(e.kind).length,s=I(e.kind).toLowerCase(),n=new Set(c.violations().flatMap(h=>h.nodeIds)),r=w.nodesOfKind(e.kind).filter(h=>n.has(h.id)).length;return[e.lens?`It draws the ${s} as ${Ae(e.lens)}${t>0?` \u2014 ${t} of them`:""}.`:`${t===0?"No":t} ${t===1?F(M(e.kind),e.kind):s} ${t===1?"is":"are"} here.`,r>0?`${r} ${r===1?"has":"have"} a problem.`:""].filter(Boolean).join(" ")},Le=()=>{let e=(y.selection??[]).map(s=>w.getNode(s)).find(s=>s!==void 0);if(e)return{about:"here",say:oe(e),moves:[],subject:e.id};let t=S.find(s=>s.slug===y.place)??S.find(s=>s.slug==="home");return t?{about:"here",say:`${t.title}. ${me(t)}`,moves:[],subject:t.slug}:{about:"here",say:me({slug:"home",title:"Home",kind:null,cardinality:"many",address:"/",stop:"#"}),moves:[]}},Pe=e=>{let t=P.flatMap(s=>[I(s),F(M(s),s),s].map(n=>({kind:s,name:$(n)}))).filter(s=>s.name.length>0).sort((s,n)=>n.name.length-s.name.length);for(let{kind:s,name:n}of t)if(!(` ${e} `.indexOf(` ${n} `)<0))return{kind:s,rest:` ${e} `.replace(` ${n} `," ").replace(/\s+/g," ").trim()}},ie=(e,t)=>{let s=V(p,e).filters.filter(d=>d.about==="field"&&d.type==="date");if(s.length===0)return;let n=s.find(d=>t.some(l=>$(d.key)===l||$(d.label)===l));if(n)return n;let r=M(e)?.fieldRoles??{};for(let d of["due","deadline","date","when","start","end"]){let l=r[d],v=l?s.find(x=>x.key===l):void 0;if(v)return v}return s.find(d=>["due","deadline","date","when","on","at"].includes(d.key.toLowerCase()))??(s.length===1?s[0]:void 0)},He=e=>{let t=M(e),s=V(p,e).filters;if(t?.lifecycle)return{conditions:[{key:"is",value:"current"}],holds:d=>ue(be,d,{key:"is",value:"current"})};let r=s.find(d=>d.about==="field"&&d.type==="boolean"&&ne.has($(d.key)));if(r)return{conditions:[{key:r.key,value:"false"}],holds:d=>d[r.key]!==!0};let h=s.find(d=>d.about==="field"&&d.type==="choice"&&(d.options??[]).some(l=>ne.has($(l))));if(h){let d=new Set((h.options??[]).filter(v=>ne.has($(v)))),l=(h.options??[]).filter(v=>!d.has(v));return l.length===1?{conditions:[{key:h.key,value:l[0]}],holds:v=>v[h.key]===l[0]}:"unsayable"}return{conditions:[],holds:()=>!0}},Ie=(e,t)=>{let s=e.words.startsWith("due")||$(t.key)==="due",n=Ct.test($(t.label));if(e.day)return s?`due ${e.day}`:n?`on ${e.day}`:`${t.label.toLowerCase()} on ${e.day}`;let r=e.words.replace(/^(?:due|for|on|by) (?:the )?/,"");return s?`due ${r}`:n?r:`${t.label.toLowerCase()} ${r}`},ye=new Set(c.violations().flatMap(e=>e.nodeIds)),be={schema:p,graph:c.graph,flagged:ye,today:k},ae=e=>{let t=Oe(e,k,j),s=Pe(t?.rest??e),n=s?.kind,r=(s?.rest??t?.rest??e).split(" ").filter(Boolean);if(!n&&t){let g=e.split(" "),m=P.filter(L=>ie(L,g)!==void 0),E=m.filter(L=>{let b=ie(L,g);return g.some(O=>$(b.key)===O||$(b.label)===O)}),U=m.length===1?m:E;if(U.length!==1)return;n=U[0]}if(!n)return;let h=V(p,n).filters,d=[],l=[],v=[],x=[],q=!1,de=[];for(let g=0;g<r.length;g++){let m=r[g],E=g>0&&(r[g-1]==="not"||r[g-1]==="un"),U=h.find(b=>b.about==="field"&&b.type==="choice"&&(b.options??[]).some(O=>$(O)===m));if(U&&!E){let b=(U.options??[]).find(O=>$(O)===m);d.push({key:U.key,value:b}),l.push(b);continue}let L=h.find(b=>b.about==="field"&&b.type==="boolean"&&[$(b.key),$(b.label)].some(O=>O===m||O===m.replace(/^un/,"")));if(L){let b=!E&&!(m.startsWith("un")&&!$(L.key).startsWith("un"));d.push({key:L.key,value:String(b)}),l.push(b?m:`not ${m.replace(/^un/,"")}`);continue}if(Pt.has(m)&&!E){let b=He(n);b==="unsayable"?(q=!0,x.push(O=>!ut(p,O))):(d.push(...b.conditions),x.push(b.holds)),l.push(m);continue}m==="not"||m==="un"||t&&h.some(b=>b.type==="date"&&($(b.key)===m||$(b.label)===m))||de.push(m)}if(r=de,r.some(g=>!te.has(g))||!t&&d.length===0&&x.length===0)return;let T=I(n).toLowerCase(),Q=I(n);if(t){let g=ie(n,e.split(" "));if(!g){let m={to:"kind",kind:n,title:Q,address:se(n),said:`Went to the ${T}.`};return{about:"kind",say:`${ee(Q)} carry no date, so I can't tell which are ${/^(?:due|for|on|overdue|past due|late)\b/.test(t.ask.words)?t.ask.words:`due ${t.ask.words}`}. ${m.said}`,moves:[m]}}if(t.ask.from&&d.push({key:g.key,value:`after:${C(t.ask.from,-1)}`}),t.ask.to&&d.push({key:g.key,value:`before:${C(t.ask.to,1)}`}),t.ask.overdue){let m=He(n);m==="unsayable"?(q=!0,x.push(E=>!ut(p,E))):(d.push(...m.conditions),x.push(m.holds))}t.ask.overdue?l.push("overdue"):v.push(Ie(t.ask,g))}let R=w.nodesOfKind(n).filter(g=>d.every(m=>ue(be,g,m))&&x.every(m=>m(g))),K=[...l,...v].join(" and "),Y=[...l,T,...v].join(" "),W=R.slice(0,6).map(g=>({about:"node",id:g.id,kind:n,label:H(g),why:{field:d[0]?.key??"label",reading:d[0]?.key??"Name",fragment:K,strength:"field"},current:!0,flagged:ye.has(g.id),address:ge(g)})),X=R.length===0?`No ${T} are ${K}.`:`${R.length===1?`One ${F(M(n),n)} is`:`${R.length} ${T} are`} ${K}: ${fe(R.slice(0,6).map(H))}${R.length>6?`, and ${R.length-6} more`:""}.`;if(q)return{about:"kind",say:X,moves:[],picks:W,offer:{draft:Y,label:"Show as a view"}};let Z=d.map(g=>`${g.key}:${g.value}`).join(","),we=`${se(n)}?${new URLSearchParams({filter:Z}).toString()}`,_={to:"kind",kind:n,title:ee(Y),filter:Z,address:we,said:`Went to the ${Y}.`};return{about:"kind",say:`${_.said} ${X}`,moves:[_],picks:W}},Te=e=>M(e)?.figure==="person"?!0:[e,F(M(e),e),I(e)].some(s=>$(s).split(" ").some(n=>Et.has(n))),pt=e=>{let t=[],s=n=>M(n)?.edges??{};for(let[n,r]of Object.entries(s(e)))for(let h of r.to??[])u.has(h)&&t.push({key:n,direction:"out",far:h,words:ct(`${r.description??""} ${n}`)});for(let n of P)for(let[r,h]of Object.entries(s(n)))(h.to??[]).includes(e)&&t.push({key:r,direction:"in",far:n,words:ct(`${h.inverse??""} ${r}`)});return t},mt=e=>{let t=e.match(/^(who|which|what)\b/)?.[1];if(!t)return;let s=Oe(e,k,j);if(!s||s.ask.overdue)return;let n=s.rest.split(" ").filter(Boolean),r=P.flatMap(a=>[I(a),F(M(a),a),a].map(A=>({kind:a,name:$(A)}))).filter(a=>a.name.length>0).sort((a,A)=>A.name.length-a.name.length),h=` ${n.join(" ")} `,d=[];for(let{kind:a,name:A}of r)h.includes(` ${A} `)&&(h=h.replace(` ${A} `," "),d.includes(a)||d.push(a));let l=h.match(/\b(?:is|are|was|were)\b|'s\b/)?.[0],v=h.replace(/'s\b/g," ").split(" ").filter(a=>a.length>0&&!te.has(a)&&!Ce.has(a)),x=t==="who"?d.find(Te):d[0];if(!x&&t!=="who")return;let q=d.find(a=>a!==x),de=v.flatMap(a=>[je(a),...lt.has(je(a))?[...lt]:[]]),T=P.filter(a=>q?a===q:a!==x).flatMap(a=>{let A=ie(a,e.split(" "))??V(p,a).filters.find(D=>D.about==="field"&&D.type==="date");return A?pt(a).filter(D=>(x?D.far===x:Te(D.far))&&D.far!==a).map(D=>({kind:a,field:A,relation:D,said:v.length===0||de.some(ve=>D.words.some(vt=>Lt(vt,ve)))})):[]}).filter(a=>a.said);if(T.length===0)return;let Q=T.filter(a=>n.some(A=>$(a.field.key)===A||$(a.field.label)===A)),R=T.length===1?T[0]:Q.length===1?Q[0]:void 0;if(!R)return;let{kind:K,field:Y,relation:W}=R,X=[...s.ask.from?[{key:Y.key,value:`after:${C(s.ask.from,-1)}`}]:[],...s.ask.to?[{key:Y.key,value:`before:${C(s.ask.to,1)}`}]:[]],Z=w.nodesOfKind(K).filter(a=>X.every(A=>ue(be,a,A))),we=a=>(W.direction==="out"?c.graph.out(a.id,W.key):c.graph.in(a.id,W.key)).filter(A=>A.kind===W.far&&u.has(W.far)),_=[],g=[];for(let a of Z){let A=we(a);A.length===0&&g.push(a);for(let D of A)_.some(ve=>ve.id===D.id)||_.push(D)}let m=Ie(s.ask,Y),E=s.ask.day?`On ${s.ask.day}`:ee(s.ask.words.replace(/^(?:due|for|on|by) (?:the )?/,"")),U=I(K).toLowerCase(),L=X.map(a=>`${a.key}:${a.value}`).join(","),b=`${U} ${m}`,O={to:"kind",kind:K,title:ee(b),filter:L,address:`${se(K)}?${new URLSearchParams({filter:L}).toString()}`,said:`Went to the ${b}.`};if(Z.length===0)return{about:"related",say:`No ${b}. ${O.said}`,moves:[O]};let le=v.join(" "),yt=l==="was"||l==="were",Ge=a=>yt?a===1?"was":"were":a===1?"is":"are",ce=_.map(H),bt=ce.length>8?[...ce.slice(0,8),`${ce.length-8} more`]:ce,kt=_.length===0?`${E}: nobody ${Ge(1)}${le?` ${le}`:""}.`:`${E}: ${fe(bt)}${le?` ${Ge(_.length)} ${le}`:""}.`,$t=t==="who"&&g.length>0?`${fe(g.slice(0,4).map(H))}${g.length>4?` and ${g.length-4} more`:""} ${g.length===1?"has":"have"} nobody.`:"",wt=_.slice(0,8).map(a=>({about:"node",id:a.id,kind:a.kind,label:H(a),why:{field:W.key,reading:Ze(p,W.direction==="out"?K:W.far,W.key,W.direction==="out"?"out":"in"),fragment:m,strength:"field"},current:!0,flagged:ye.has(a.id),address:ge(a)}));return{about:"related",say:[kt,$t,O.said].filter(Boolean).join(" "),moves:[O],picks:wt}},Ke=N.match(jt);if(Ke){let e=Ke[1];if(e&&!rt.has(e)&&!/^(?:it|this|that)$/.test(e)){let n=re(e),r=n?void 0:pe(z(e)||e);if(r?.one){let h=Me(r.one);return{about:"describe",say:`${h.said} ${oe(r.one)}`,moves:[h],subject:r.one.id}}if(!n)return r&&r.picks.length>0?{about:"picks",say:Re(r.picks),moves:[],picks:r.picks}:De()}if(e&&/^(?:it|this|that)$|^(?:here|this place|this page)$/.test(e)){let n=(y.selection??[]).map(r=>w.getNode(r)).find(r=>r!==void 0);if(n)return{about:"describe",say:oe(n),moves:[],subject:n.id}}let t=c.violations();if(t.length===0)return{about:"problems",say:"Nothing is wrong \u2014 every rule holds.",moves:[]};let s={to:"problems",address:"/problems",said:"Went to the problems."};return{about:"problems",say:`${s.said} ${Qe(t)}: ${t.slice(0,4).map(n=>n.message).join("; ")}${t.length>4?"\u2026":"."}`,moves:[s]}}if(Ot.test(N))return Le();let _e=mt(N);if(_e)return _e;let ke=Oe(N,k,j);if(ke&&!re(z(ke.ask.words))&&ke.rest.replace(/'s\b/g,"").split(" ").every(e=>e===""||te.has(e)||Ce.has(e))){let e=ae(N);if(e)return e}if(/^open /.test(N)){let e=ae(N);if(e)return e}let Fe=N.match(Nt)??N.match(/^(?:go|take me|head|get me)(?: back)? (home)$/);if(Fe)return Ee(Fe[1].trim(),!1);let Be=N.match(St);if(Be){let e=Ee(Be[1].trim(),!0);return"unresolved"in e&&e.unresolved&&!/^tell me|^describe/.test(N)?{unresolved:!0}:e}let $e=re(N);if($e){let e=We($e);return{about:"place",say:e.said,moves:[e],subject:$e.slug}}let Ue=ae(N);return Ue||{unresolved:!0}}var Ce=new Set(["who","whom","whose","which","what","whats","what's","who's"]),Et=new Set(["person","people","user","users","member","members","volunteer","volunteers","gardener","gardeners","player","players","staff","worker","workers","employee","employees","owner","owners","assignee","assignees","helper","helpers","student","students","teacher","teachers","customer","customers","client","clients","contact","contacts","author","authors"]),lt=new Set(["work","cover","staff","assign","do","run","schedul","roster","book","duty","serv","help"]);function je(o){let i=o.toLowerCase().replace(/'s$/,"");for(let y of["ing","ed","es","s"])if(i.length>y.length+2&&i.endsWith(y)){let f=i.slice(0,-y.length);return f.length>3&&f[f.length-1]===f[f.length-2]?f.slice(0,-1):f}return i}function ct(o){return o.toLowerCase().split(/[^a-z']+/).filter(i=>i.length>1&&!te.has(i)&&!Ce.has(i)&&!["it","they","them","their","its","this","here","to","at"].includes(i)).map(je)}var Lt=(o,i)=>o===i||o.length>=4&&i.length>=4&&(o.startsWith(i)||i.startsWith(o)),ne=new Set(["done","finished","complete","completed","closed","resolved","agreed","canceled","archived","shipped","delivered"]),Pt=new Set(["open","unfinished","outstanding","pending","remaining","undone","incomplete"]);function ut(o,i){return V(o,i.kind).filters.some(f=>f.about==="field"&&(f.type==="boolean"&&ne.has(f.key.toLowerCase())&&i[f.key]===!0||f.type==="choice"&&typeof i[f.key]=="string"&&ne.has(String(i[f.key]).toLowerCase())))}function fe(o){return o.length<=1?o[0]??"":`${o.slice(0,-1).join(", ")} and ${o[o.length-1]}`}function zt(o,i,y={}){let f=y.scene!==void 0?{...y.pages,scene:y.scene}:y.pages;return[...nt(o,i,f?{pages:f}:{})].map(({first:c,hidden:p,lens:k,...j})=>j)}function gt(o,i){return{...o.principal?{principal:o.principal}:{},...o.places?{places:o.places}:{},...o.selection?{selection:o.selection}:{},...o.place?{place:o.place}:{},...i??o.today?{today:i??o.today}:{},...o.weekStartsOn!==void 0?{weekStartsOn:o.weekStartsOn}:{}}}function Jt(o,i,y,f){let c=ht(o,i,gt(y,f));if(c.unresolved)return c.say?{reply:{say:c.say,proposals:[],grounded:!0}}:{};if(c.about==="picks")return{};let p=c.moves.length>0?{moves:c.moves}:{},k=c.subject?o.graph.getNode(c.subject):void 0;if(c.about==="problems")return{...p,problems:!0};if(k&&(c.about==="describe"||c.about==="here"))return{...p,told:k.id};let j=k?tt(o,ot(Ve(o.violations(),[k.id])).slice(0,3)):[];return{reply:{say:c.say,proposals:j,grounded:!0,...p,...c.picks&&c.picks.length>0?{picks:c.picks}:{},...c.offer?{offer:c.offer}:{}}}}function Yt(o,i,y={}){let f=gt(y),c=[];for(let p of i){let k=typeof p=="string"?p:typeof p=="object"&&p!==null&&typeof p.to=="string"?p.to:void 0;if(!k||k.trim().length===0)continue;let j=ht(o,/^(?:go|take me|open|show)\b/i.test(k.trim())?k:`go to ${k}`,f);if("moves"in j)for(let J of j.moves)c.some(B=>B.address===J.address)||c.push(J)}return c}export{At as NOTHING_BY_THAT_NAME,gt as askContextOf,Jt as goingFrom,Yt as movesFromNames,zt as placesFromViews,ht as resolveAsk};
@@ -1 +0,0 @@
1
- import"./chunk.6NRWLCIZ.js";import"./chunk.Q355UPFG.js";import"./chunk.ZQGLPP7A.js";import"./chunk.VZAF3452.js";import"./chunk.WHX47OJM.js";import"./chunk.QRT6BZR6.js";import"./chunk.2V7QTIAV.js";import"./chunk.Z26T5E76.js";import"./chunk.77JI5T4F.js";import"./chunk.SADHOSRC.js";import"./chunk.4DZOAB4D.js";import"./chunk.UDU545CL.js";import"./chunk.7VAHHEDX.js";import"./chunk.P4TAX3HE.js";import"./chunk.T4TRJDBF.js";import"./chunk.2TCOLAL2.js";import"./chunk.2VYGDY5Z.js";import"./chunk.FUPYIOXZ.js";import"./chunk.APRWUIE3.js";import"./chunk.3OEODIHB.js";import"./chunk.WFCE7NLK.js";import"./chunk.MB7LKKUD.js";import"./chunk.WVUJXDXZ.js";import"./chunk.ZA5TDCBC.js";import"./chunk.2JEN2RCB.js";import"./chunk.7CLKGKSF.js";import"./chunk.TMHVYI5R.js";import"./chunk.R5MLRKAO.js";import"./chunk.YMXWS4XN.js";import"./chunk.GZHZLJBF.js";import"./chunk.3SAESG6X.js";import"./chunk.OJGHDWI6.js";import"./chunk.F6BNFLQM.js";import"./chunk.75JQCTR6.js";import"./chunk.5IEZF433.js";import"./chunk.5AD2QHWH.js";import"./chunk.3FKKH2XU.js";import"./chunk.DLWFULWE.js";import{G as z,V as S}from"./chunk.VLX7YWVH.js";import"./chunk.SDO3U72B.js";import{ga as b,pa as m,ra as k,ta as h}from"./chunk.IQGSEAQ2.js";import"./chunk.FQLNBIQ5.js";import{b as g}from"./chunk.AJZBJBMO.js";var r=g(z(),1),e=g(S(),1),w={color:"var(--graview-ink-muted)"},l={fontSize:"0.8125rem",padding:"0 4px",borderRadius:4,background:"var(--graview-sunken, rgba(127,127,127,0.12))",overflowWrap:"anywhere"};function I(i){let n=i;for(let s=0;s<6&&n?._zod?.def?.innerType&&["optional","default","nullable","prefault","readonly"].includes(n._zod.def.type??"");s++)n=n._zod.def.innerType;return n?._zod?.def?.type??"value"}function P({store:i,inspected:n,close:s}){let f=(0,r.useRef)(null),u=(0,r.useId)(),p=i.schema,t=n.on===void 0?void 0:i.graph.getNode(n.on),d=t?.kind??n.kind,c=d===void 0?void 0:p.tryDefinition(d);(0,r.useEffect)(()=>{let o=f.current;o&&!o.open&&(typeof o.showModal=="function"?o.showModal():o.setAttribute("open",""))},[]);let C=()=>{let o=n.returnTo;s(),requestAnimationFrame(()=>{o?.isConnected?o.focus():document.querySelector("[data-graview-page-title], main h1")?.focus()})},x=t?String(t.label??h(c,t.kind)):n.place?n.place.title:d?m(p,d):"This page",a=[];if(d!==void 0&&a.push(["kind","What it is",(0,e.jsxs)(e.Fragment,{children:[b(h(c,d))," ",(0,e.jsx)("code",{style:l,children:d})]})]),t&&a.push(["record","Record",(0,e.jsx)("code",{style:l,children:t.id})]),n.field!==void 0&&d!==void 0&&a.push(["field","Field",(0,e.jsxs)(e.Fragment,{children:[k(c,n.field)," ",(0,e.jsx)("code",{style:l,children:n.field})]})]),n.place){let o=n.place.lens==="view"?"a view":n.place.lens==="columns"?"a status board":n.place.lens?`the ${n.place.lens} lens`:"a picture";a.push(["drawn-by","Drawn by",(0,e.jsxs)(e.Fragment,{children:["\u201C",n.place.title,"\u201D, ",o," ",(0,e.jsx)("code",{style:l,children:n.place.name??n.place.as})]})])}n.column&&a.push(["column","Column",(0,e.jsxs)(e.Fragment,{children:[n.column.label," ",(0,e.jsx)("code",{style:l,children:`${n.column.field}:${n.column.value}`})]})]),n.href!==void 0&&a.push(["link","Link",(0,e.jsx)("a",{href:n.href,"data-testid":"inspect-link",children:(0,e.jsx)("code",{style:l,children:n.href})})]);let v=c?.fields?.shape;return(0,e.jsx)("dialog",{ref:f,"aria-labelledby":u,"data-testid":"inspect-sheet",onClose:C,onClick:o=>{o.target===o.currentTarget&&o.currentTarget.close()},style:{width:"min(92vw, 440px)",padding:0,border:"1px solid var(--graview-edge)",borderRadius:"var(--graview-radius, 12px)",background:"var(--graview-panel)",color:"var(--graview-ink)",boxShadow:"var(--graview-lift-high)"},children:(0,e.jsxs)("div",{style:{display:"grid",gap:12,padding:18},children:[(0,e.jsx)("h2",{id:u,style:{margin:0,fontSize:"1.0625rem"},children:x}),(0,e.jsx)("dl",{style:{margin:0,display:"grid",gridTemplateColumns:"max-content minmax(0, 1fr)",gap:"6px 12px",fontSize:"0.875rem"},children:a.map(([o,y,T])=>(0,e.jsxs)("div",{"data-inspect":o,style:{display:"contents"},children:[(0,e.jsx)("dt",{style:w,children:y}),(0,e.jsx)("dd",{style:{margin:0,minWidth:0},children:T})]},o))}),n.owner&&d!==void 0&&v?(0,e.jsxs)("section",{"aria-labelledby":`${u}-declared`,"data-inspect":"declared",style:{display:"grid",gap:6},children:[(0,e.jsxs)("h3",{id:`${u}-declared`,style:{margin:0,fontSize:"0.8125rem",...w},children:["How ",m(p,d).toLowerCase()," are declared"]}),(0,e.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none",display:"grid",gap:2,fontSize:"0.8125rem"},children:Object.entries(v).map(([o,y])=>(0,e.jsxs)("li",{children:[(0,e.jsx)("code",{style:l,children:o})," ",(0,e.jsx)("span",{style:w,children:I(y)})]},o))})]}):null,(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,e.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>f.current?.close(),children:"Close"})})]})})}export{P as InspectSheet};
@@ -1 +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 te}from"./chunk.2V7QTIAV.js";import{p as Se,q as ee,t as $,u as be}from"./chunk.3SAESG6X.js";import{m as J,n as ye,o as we,p as X,q as Z}from"./chunk.OJGHDWI6.js";import{c as ke}from"./chunk.5AD2QHWH.js";import{a as he,b as U,c as j,e as ve,o as Me}from"./chunk.3FKKH2XU.js";import{b as de}from"./chunk.DLWFULWE.js";import{D as z,F as Y,G as O,Ia as fe,J as pe,Ja as ge,Ka as T,Oa as _,Q as me,Qa as F,V as M,da as A,ea as q,fa as B,m as le,v as ce,z as ue}from"./chunk.VLX7YWVH.js";import{a as E}from"./chunk.SDO3U72B.js";import{Pd as se,nd as ie,pa as H,sd as ae}from"./chunk.IQGSEAQ2.js";import{b as y}from"./chunk.AJZBJBMO.js";var P=y(O(),1),x=y(M(),1),ne=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.YSBTE3PX.js")))),xe=ne.part(t=>(0,x.jsx)(t.HoverChipDoor,{}),{quiet:!0}),De="A",Q=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.KHRS2SKB.js","./chunk.PR74PGLC.js","./chunk.T6PU3NKP.js","./chunk.B6JR7EQO.js","./chunk.2D7K2IJQ.js","./chunk.77JI5T4F.js","./chunk.UDU545CL.js","./chunk.7VAHHEDX.js","./chunk.HJCQ6I3S.js","./chunk.DQAMVVE6.js","./chunk.OXFDB5BB.js","./chunk.DJIF7IAQ.js","./chunk.S6QZBWCJ.js","./chunk.LTOQ22ZJ.js","./chunk.2TCOLAL2.js","./chunk.FUPYIOXZ.js","./chunk.3OEODIHB.js","./chunk.BIDL7GQD.js","./chunk.TA2JTUNX.js","./chunk.HZPRMHSL.js","./chunk.TQ2G4AM4.js","./chunk.X36BYTEG.js","./chunk.LDMBJC3B.js","./chunk.XOZU4OFA.js","./chunk.G7YLK4PX.js","./chunk.Q5WEOX3Q.js","./chunk.2E62YCMZ.js","./chunk.DUP2CGVH.js","./chunk.YFVJUHAK.js","./chunk.YEXFVDRA.js","./chunk.ZA5TDCBC.js","./chunk.2JEN2RCB.js","./chunk.7CLKGKSF.js","./chunk.TMHVYI5R.js","./chunk.R5MLRKAO.js","./chunk.YMXWS4XN.js","./chunk.3SAESG6X.js","./chunk.OJGHDWI6.js","./chunk.F6BNFLQM.js","./chunk.75JQCTR6.js","./chunk.5IEZF433.js","./chunk.5AD2QHWH.js","./chunk.3FKKH2XU.js","./chunk.DLWFULWE.js","./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.RDA35HZB.js"))));var Ce=Q.part((t,e)=>(0,x.jsx)(t.InspectorPane,{...e}),{what:"This card's acts"});function Le(t){let e=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&t()},n=globalThis;if(n.requestIdleCallback){let c=n.requestIdleCallback(e,{timeout:5e3});return()=>n.cancelIdleCallback?.(c)}let i=setTimeout(e,2500);return()=>clearTimeout(i)}var Oe=150,Ne="[data-graview-pick], [data-graview-view], [data-graview-record], [data-graview-act], [data-graview-field], a[href]";function Re(t){if(t.closest("[data-graview-face='pages'], [data-graview-popover]"))return null;let e=t.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??t.closest("[data-graview-view]")?.getAttribute("data-graview-view");return e?{face:"scene",on:e,about:[e]}:null}function We(t){let{store:e,principal:n,providers:i,ai:c}=A(),p=be(),h=Y(c),r=(0,P.useRef)({aimAt:t,store:e,principal:n,providers:i,prepareSections:p,chipsOn:h});r.current={aimAt:t,store:e,principal:n,providers:i,prepareSections:p,chipsOn:h},(0,P.useEffect)(()=>{if(typeof document>"u")return;let u=null,w=null,k=null,l=g=>{let m=r.current,b=m.chipsOn?m.aimAt(g):null;b&&(k=g,ne.load().then(G=>{k===g&&G.restOn(b,g)},()=>{}))},f=()=>{u&&clearTimeout(u.timer),u=null},s=g=>{let m=r.current,b=m.aimAt(g);if(!b)return;let G=JSON.stringify([b.face,b.on,b.about,b.field,b.place,b.act,m.store.log.length]);G!==w&&(w=G,m.prepareSections(b),Q.load().then(Pe=>Pe.prepareActs(m.store,b,{principal:m.principal,providers:m.providers}),()=>{}))},o=g=>g.target instanceof Element?g.target.closest(Ne):null,d=g=>{if(g.pointerType==="touch")return;let m=o(g);m!==null&&m===u?.element||(f(),m!==null&&(u={element:m,timer:setTimeout(()=>{u=null,s(m),l(m)},Oe)}))},v=g=>{let m=g.relatedTarget;k!==null&&!(m instanceof Node&&k.contains(m))&&(k=null,ne.current?.leaveRest()),u!==null&&(m instanceof Node&&u.element.contains(m)||f())},S=g=>{if(g.pointerType==="mouse")return;let m=o(g);m&&s(m)},I=g=>{if(!fe())return;let m=o(g);m&&s(m)};return document.addEventListener("pointerover",d,{passive:!0}),document.addEventListener("pointerout",v,{passive:!0}),document.addEventListener("pointerdown",S,{capture:!0,passive:!0}),document.addEventListener("focusin",I),()=>{f(),document.removeEventListener("pointerover",d),document.removeEventListener("pointerout",v),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("focusin",I)}},[])}function it({placement:t="float",openActs:e,aimAt:n}={}){let{menuAt:i,setMenuAt:c,registerActsDoor:p,ai:h}=A(),{selection:r}=_();We(n??Re),(0,P.useEffect)(()=>{if(Q.current)return;let f=()=>{v(),Q.prefetch()},s=()=>{},o=ge(()=>void(s=Le(f))),d=["pointerdown","keydown"];for(let S of d)document.addEventListener(S,f,{capture:!0,passive:!0});function v(){o(),s();for(let S of d)document.removeEventListener(S,f,{capture:!0})}return v},[]),(0,P.useEffect)(()=>{if(t==="menu")return p({key:De,open:e??(f=>{let s=f.getBoundingClientRect(),o=f.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??f.closest("[data-graview-view]")?.getAttribute("data-graview-view")??void 0;c({x:Math.round(s.left+Math.min(16,s.width/2)),y:Math.round(Math.min(s.bottom,s.top+36)),...o?{on:o}:{}})})}),()=>p(null)},[t,p,c,e]);let u=i!==null||r.length>0&&e===void 0,[w,k]=(0,P.useState)(u);(0,P.useEffect)(()=>{u&&k(!0)},[u]);let l=Y(h)?(0,x.jsx)(P.Suspense,{fallback:null,children:(0,x.jsx)(xe,{})}):null;return!w&&!u?l:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(P.Suspense,{fallback:null,children:(0,x.jsx)(Ce,{placement:t,chosen:e===void 0})}),l]})}var K=y(O(),1),V=y(M(),1),Ge=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.KHRS2SKB.js","./chunk.PR74PGLC.js","./chunk.25VJPUDH.js","./chunk.T6PU3NKP.js","./chunk.B6JR7EQO.js","./chunk.FN34P4IS.js","./chunk.2DH42I7L.js","./chunk.VZAF3452.js","./chunk.WHX47OJM.js","./chunk.2D7K2IJQ.js","./chunk.QRT6BZR6.js","./chunk.2V7QTIAV.js","./chunk.Z26T5E76.js","./chunk.77JI5T4F.js","./chunk.SADHOSRC.js","./chunk.4DZOAB4D.js","./chunk.UDU545CL.js","./chunk.7VAHHEDX.js","./chunk.HJCQ6I3S.js","./chunk.DQAMVVE6.js","./chunk.OXFDB5BB.js","./chunk.DJIF7IAQ.js","./chunk.S6QZBWCJ.js","./chunk.LTOQ22ZJ.js","./chunk.2TCOLAL2.js","./chunk.2VYGDY5Z.js","./chunk.FUPYIOXZ.js","./chunk.APRWUIE3.js","./chunk.3OEODIHB.js","./chunk.WFCE7NLK.js","./chunk.BIDL7GQD.js","./chunk.TA2JTUNX.js","./chunk.HZPRMHSL.js","./chunk.TQ2G4AM4.js","./chunk.X36BYTEG.js","./chunk.LDMBJC3B.js","./chunk.XOZU4OFA.js","./chunk.G7YLK4PX.js","./chunk.Q5WEOX3Q.js","./chunk.2E62YCMZ.js","./chunk.DUP2CGVH.js","./chunk.YFVJUHAK.js","./chunk.YEXFVDRA.js","./chunk.WVUJXDXZ.js","./chunk.ZA5TDCBC.js","./chunk.2JEN2RCB.js","./chunk.7CLKGKSF.js","./chunk.TMHVYI5R.js","./chunk.R5MLRKAO.js","./chunk.YMXWS4XN.js","./chunk.GZHZLJBF.js","./chunk.3SAESG6X.js","./chunk.OJGHDWI6.js","./chunk.F6BNFLQM.js","./chunk.75JQCTR6.js","./chunk.5IEZF433.js","./chunk.5AD2QHWH.js","./chunk.3FKKH2XU.js","./chunk.DLWFULWE.js","./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.KMIFSPGQ.js")))),He=Ge.part((t,e)=>{let n=t.DraftFrame;return(0,V.jsx)(n,{...e})},{what:"The view"});function ct(t){let{seatTalk:e}=A();return(0,K.useSyncExternalStore)(e.subscribe,()=>e.get().draft!==null,()=>!1)?(0,V.jsx)(K.Suspense,{fallback:null,children:(0,V.jsx)(He,{...t})}):null}var C=y(O(),1),D=y(M(),1),Ae=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.7VAHHEDX.js","./chunk.O7HHNQK4.js","./chunk.BJUUSIQY.js","./chunk.TQ2G4AM4.js","./chunk.X36BYTEG.js","./chunk.LDMBJC3B.js","./chunk.XOZU4OFA.js","./chunk.G7YLK4PX.js","./chunk.GH5UBSQI.js","./chunk.2JEN2RCB.js","./chunk.75JQCTR6.js","./chunk.5IEZF433.js","./chunk.5AD2QHWH.js","./chunk.3FKKH2XU.js","./chunk.DLWFULWE.js","./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.GF62K25C.js")))),ze=Ae.part((t,e)=>{let n=t.QuickAskCard;return(0,D.jsx)(n,{...e})},{what:"The quick ask"});function gt({face:t,on:e=!0}){let{ai:n,aiDesk:i,selection:c,view:p}=A(),h=me()?.open??!1,r=e&&z(n)&&!h,u=ve(i),w=(0,C.useRef)(null),k=(0,C.useRef)({selection:c,place:p.within?.view});return k.current={selection:c,place:p.within?.view},(0,C.useEffect)(()=>{if(!r)return;let l=he(i);return l.drawn+=1,U(l),()=>{l.drawn=Math.max(0,l.drawn-1),l.drawn===0&&(l.open=null),U(l)}},[r,i]),(0,C.useEffect)(()=>{if(!r)return;let l=f=>{if(f.defaultPrevented||f.key.toLowerCase()!=="k"||!(f.metaKey||f.ctrlKey)||f.altKey||f.shiftKey)return;let s=w.current?.closest("[data-graview-embed]"),o=f.target,d=!(o instanceof Node)||o===document.body||o===document.documentElement;if(s&&!(d||o instanceof Node&&s.contains(o)))return;f.preventDefault(),Ae.prefetch();let v=document.activeElement,{selection:S,place:I}=k.current;j(i,{pointed:{...S[0]!==void 0?{on:S[0]}:{},about:S,...I?{place:I}:{}},returnTo:v instanceof HTMLElement&&v!==document.body?v:null})};return window.addEventListener("keydown",l,!0),()=>window.removeEventListener("keydown",l,!0)},[r,i]),r?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("span",{ref:w,hidden:!0,"data-graview-quick-ask":t}),u?(0,D.jsx)(C.Suspense,{fallback:null,children:(0,D.jsx)(ze,{face:t,opening:u,close:()=>j(i,null)},u.at)}):null]}):null}var R=y(O(),1),L=y(M(),1),oe=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.O7HHNQK4.js","./chunk.BJUUSIQY.js","./chunk.TQ2G4AM4.js","./chunk.X36BYTEG.js","./chunk.LDMBJC3B.js","./chunk.XOZU4OFA.js","./chunk.G7YLK4PX.js","./chunk.GH5UBSQI.js","./chunk.2JEN2RCB.js","./chunk.75JQCTR6.js","./chunk.5IEZF433.js","./chunk.5AD2QHWH.js","./chunk.3FKKH2XU.js","./chunk.DLWFULWE.js","./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.SJHUC4TL.js")))),qe=oe.part((t,e)=>{let n=t.InlineAiMenu;return(0,L.jsx)(n,{...e})},{what:"The AI's suggestions"}),Be=oe.part((t,e)=>{let n=t.GhostTray;return(0,L.jsx)(n,{...e})},{quiet:!0});function _e(){let{ai:t}=A(),e=z(t);return(0,R.useMemo)(()=>e?n=>({id:"inline-ai",heading:"AI",render:i=>(0,L.jsx)(R.Suspense,{fallback:null,children:(0,L.jsx)(qe,{target:n,close:i})}),prepare:()=>oe.prefetch()}):null,[e])}var Fe=[];function St({children:t}){let e=_e(),n=(0,R.useMemo)(()=>e?[e]:Fe,[e]);return(0,L.jsx)($,{sections:n,children:t})}function bt(t){let{ai:e,aiDesk:n}=A(),{ghost:i}=pe(n);return i===null||i.onCard||e.off?null:(0,L.jsx)(R.Suspense,{fallback:null,children:(0,L.jsx)(Be,{...t})})}var N=y(O(),1);var Te=y(M(),1),Qe=t=>globalThis[Symbol.for("graview.shown-lists")]?.get(t),Ee=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.3FKKH2XU.js","./chunk.DLWFULWE.js","./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.UJNLT3L6.js"))));function Ve(t){let e=t.about[0];if(t.about.length!==1||!e?.startsWith("aggregate:"))return;let n=e.slice(10).split("+");return n.length===1?n[0]:void 0}function Ke(t,e){return t.filter(n=>n.as!==e.as&&!n.hidden&&(n.kind===e.kind||n.over?.includes(e.kind)===!0)).at(-1)}function Ye(t){let e=q(),n=e?.keptViews,i=e?.views,c=(0,N.useContext)(Me);return(0,N.useMemo)(()=>i?p=>{let h=n?.current(),r=Ve(p),u=s=>s.length>0?{id:"tidy-view",items:s,prepare:()=>Ee.prefetch()}:null,w=(s,...o)=>Ee.load().then(d=>d[s](...o),()=>!1),k=(s,o)=>Qe(s)?.().menu(o,n,c)??[];if(p.place===void 0){if(p.face!=="pages"||r===void 0||p.on!==void 0)return null;let s=h?.may.lenses===!0&&n?.lens!==void 0,o=H(e.store.schema,r),d=i.arrangement?.()?.hide?.includes(r)===!0;return u([...s?[{id:d?"show-list":"hide-list",label:d?"Show":"Hide",hint:d?"Back in the places, for everyone":"Off the places, for everyone; still at its address",run:()=>void w("setListHidden",r,o,n,!d,c)}]:[],...k(`list:${r}`,s)])}let l=i.places().find(s=>s.as===p.place&&(r===void 0||s.kind===r||s.over?.includes(r)===!0));if(!l)return null;let f=n&&h?se(l,h,n):null;return u([...f?[l.hidden?{id:"show-view",label:"Show",hint:"Back in the places, for everyone",run:()=>void w("setHidden",l,f,n,!1,c)}:{id:"hide-view",label:"Hide",hint:"Off the places and the scene, for everyone",run:()=>void w("setHidden",l,f,n,!0,c)},{id:"delete-view",label:"Delete",hint:`Kept ${30} days under Recently deleted`,run:()=>{let s=Ke(i.places(),l);w("remove",l,f,n,c).then(o=>o&&t?.(l,s))}}]:[],...k(`place:${l.as}`,f==="lens")])}:null,[n,i,c,t])}var Ue=[];function Dt({children:t}){let{view:e,go:n}=F(),i=(0,N.useCallback)((h,r)=>{let u=e.within?.view;e.focusId===ce(h.kind)&&(u===void 0||u===h.as)&&n(r?ue(e,r.kind,r.as):le(e,!0))},[e,n]),c=Ye(i),p=(0,N.useMemo)(()=>c?[c]:Ue,[c]);return(0,Te.jsx)($,{sections:p,children:t})}function Nt(t={}){return t.scope===void 0?te:de(te,t.scope)}var W=y(O(),1),a=y(M(),1);function Bt({inside:t=!1,widthOf:e}={}){let{store:n,view:i,emphasis:c,setEmphasis:p}=A(),h=Se(),{selection:r,set:u}=_(),{show:w}=F(),k=B(),l=(0,W.useMemo)(()=>{let o=new Map;for(let d of n.graph.allEdges()){let v=o.get(d.kind)??{count:0,ends:new Set};v.count+=1;for(let S of[d.from,d.to]){let I=n.graph.getNode(S);I&&v.ends.add(`kind:${I.kind}`)}o.set(d.kind,v)}return[...o.entries()].sort(([d],[v])=>d.localeCompare(v)).map(([d,v])=>({kind:d,count:v.count,ends:[...v.ends]}))},[n,k]),f=Math.max(0,...l.map(o=>o.count));if((0,W.useEffect)(()=>()=>p(null),[p]),!i.overview&&!t||l.length===0)return null;let s=new Set;for(let o of r){if(o.startsWith("kind:")){s.add(o);continue}let d=n.graph.getNode(o);d&&s.add(`kind:${d.kind}`)}return(0,a.jsxs)("section",{"aria-label":"What the lines mean",role:t?"group":void 0,"data-testid":"relation-key",style:t?{display:"grid",gap:1}:{position:"absolute",left:16,top:14,zIndex:ae("rail"),display:"grid",gap:1,padding:"8px 10px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",maxWidth:je,animation:"graview-settle 380ms 280ms ease backwards"},children:[t?null:(0,a.jsx)("span",{style:{fontSize:"0.75rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--graview-ink-faint)",paddingBottom:2},children:l.length===1?"1 relation":`${l.length} relations`}),e?(0,a.jsx)(Xe,{aloft:i.overview===!0}):null,l.map(({kind:o,count:d,ends:v})=>{let{connector:S,style:I}=ee(h,o),g=Je(n.schema,o),m=c!==null?c===o:s.size===0||v.some(b=>s.has(b));return(0,a.jsxs)("button",{type:"button",title:n.schema.edge(o)?.description===void 0?`${d} of these`:g.words,onMouseEnter:()=>p(o),onMouseLeave:()=>p(null),onFocus:()=>p(o),onBlur:()=>p(null),onClick:()=>{u(v),w(null)},style:{all:"unset",outline:"revert-layer",cursor:"pointer",display:"grid",gridTemplateColumns:"30px 1fr auto",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px",borderRadius:6,opacity:m?1:.4},children:[(0,a.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",style:{display:"block",opacity:S.visible?1:.35},children:i.overview&&e?(0,a.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",className:"graview-key-ribbon",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:e(d,f)}):(0,a.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",stroke:X(I),strokeWidth:Z(I,!0),strokeDasharray:J[I.pattern],strokeLinecap:"round"})}),(0,a.jsxs)("span",{style:{display:"grid",minWidth:0},"data-graview-relation-words":o,children:[(0,a.jsx)("span",{style:{fontSize:"0.8125rem",color:"var(--graview-ink)"},children:g.words}),(0,a.jsx)("span",{style:{fontSize:"0.6875rem",color:"var(--graview-ink-faint)"},children:g.ends})]}),S.visible?null:(0,a.jsx)("span",{"data-graview-quiet":o,style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontStyle:"italic"},children:"not drawn"}),(0,a.jsx)("span",{style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontVariantNumeric:"tabular-nums"},children:d})]},o)})]})}var je="min(280px, calc(100% - 28px))";function Je(t,e,n){let i=t.edge(e)?.from??[],c=new Map;for(let r of n!==void 0&&i.includes(n)?[n]:i.length>0?i:[""]){let u=ke(t,r,e,"out");c.set(u,[...c.get(u)??[],r])}let p=r=>r==="*"?"anything":H(t,r),h=[...c].map(([r,u])=>{let w=u.flatMap(l=>t.tryDefinition(l)?.edges[e]?.to??[]),k=u[0]&&w.length>0?`${u.map(p).join(", ")} \u2192 ${(w.includes("*")?["*"]:[...new Set(w)]).map(p).join(", ")}`:"";return[r.charAt(0).toUpperCase()+r.slice(1),k]});return{words:h.map(([r])=>r).join(" \xB7 "),ends:h.flatMap(([,r])=>r?[r]:[]).join(" \xB7 ")}}function _t({edgeKind:t,kit:e,width:n=30}){let i=q(),c=(0,W.useMemo)(()=>ie(e??i?.brand?.kit),[e,i?.brand?.kit]),{connector:p,style:h}=ee(c,t);return(0,a.jsx)("svg",{width:n,height:"8","aria-hidden":"true","data-testid":"relation-mark","data-graview-relation":t,style:{display:"inline-block",verticalAlign:"middle",opacity:p.visible?1:.35},children:(0,a.jsx)("path",{d:`M 1 4 L ${n-1} 4`,fill:"none",stroke:X(h),strokeWidth:Z(h,!0),strokeDasharray:J[h.pattern],strokeLinecap:"round"})})}function Xe({aloft:t}){let e={display:"grid",gridTemplateColumns:"30px 1fr",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px"},n={fontSize:"0.75rem",color:"var(--graview-ink-muted)"};return(0,a.jsxs)("div",{role:"group","aria-label":"The lines","data-testid":"line-manners",style:{display:"grid",gap:1,paddingBottom:6,marginBottom:4,borderBottom:"1px solid var(--graview-edge)"},children:[t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:e,"data-graview-manner":"ribbon",children:[(0,a.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:6})}),(0,a.jsx)("span",{style:n,children:"A relation between two districts, as wide as the links along it \u2014 point at one for its words"})]}),(0,a.jsxs)("div",{style:e,"data-graview-manner":"record",children:[(0,a.jsxs)("svg",{width:"30",height:"10","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M 1 5 L 25 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeLinecap:"round"}),(0,a.jsx)("circle",{cx:26,cy:5,r:3,fill:"var(--graview-accent)"})]}),(0,a.jsx)("span",{style:n,children:"A chosen record's link to another record, labeled with the relation"})]}),(0,a.jsxs)("div",{style:e,"data-graview-manner":"district",children:[(0,a.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeDasharray:"5 4"})}),(0,a.jsx)("span",{style:n,children:"A chosen record's links into a district, with how many"})]})]}):null,(0,a.jsxs)("div",{style:e,"data-graview-manner":"unsure",children:[(0,a.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeOpacity:we,strokeWidth:1.8,strokeDasharray:ye,strokeLinecap:"round"})}),(0,a.jsx)("span",{style:n,children:"Unsure: a link its maker was less than sure of, until a person keeps it \u2014 point at its words for what it was based on"})]})]})}var Ie=y(O(),1),re=y(M(),1),Ze=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.25VJPUDH.js","./chunk.APUQIELA.js","./chunk.S6QZBWCJ.js","./chunk.LTOQ22ZJ.js","./chunk.2TCOLAL2.js","./chunk.FUPYIOXZ.js","./chunk.3OEODIHB.js","./chunk.X36BYTEG.js","./chunk.75JQCTR6.js","./chunk.5IEZF433.js","./chunk.5AD2QHWH.js","./chunk.3FKKH2XU.js","./chunk.DLWFULWE.js","./chunk.VLX7YWVH.js","./chunk.SDO3U72B.js","./chunk.IQGSEAQ2.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.7AOEZJRM.js")))),et=Ze.part(t=>(0,re.jsx)(t.SuggestedTray,{}),{quiet:!0});function Vt(){let{store:t,whileAway:e}=A(),n=B();return(0,Ie.useMemo)(()=>t.log.all().some(c=>c.suggests!==void 0&&!c.withheld),[t,n])||e?.tidied?(0,re.jsx)(et,{}):null}export{it as a,ct as b,gt as c,Bt as d,je as e,_t as f,_e as g,St as h,bt as i,Ye as j,Dt as k,Nt as l,Vt as m};