@softistx/pulsarix-widget 0.9.1 → 0.10.1

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 (131) hide show
  1. package/README.md +39 -27
  2. package/dist/chunks/{abnfDiagram-XWFEHMT6.xef4vppv.js → abnfDiagram-XWFEHMT6.9n16jbeh.js} +1 -1
  3. package/dist/chunks/architecture-WOLXFQ4H.04w48nbq.js +1 -0
  4. package/dist/chunks/architectureDiagram-CSQXQB3N.3c7xm6kb.js +36 -0
  5. package/dist/chunks/{blockDiagram-BEDRHYPZ.wgdr8xfr.js → blockDiagram-BEDRHYPZ.b7d9kkgr.js} +11 -11
  6. package/dist/chunks/{c4Diagram-M2UUVUY5.t09pndbz.js → c4Diagram-M2UUVUY5.f883rrpb.js} +3 -3
  7. package/dist/chunks/{chat-markdown-CQ4fSIYN.cv3fprzq.js → chat-markdown-BSu4FB_l.ngsfz1hc.js} +29 -29
  8. package/dist/chunks/{classDiagram-v2-KXABOMEV.9yfjtevj.js → classDiagram-v2-KXABOMEV.6gcf0jbx.js} +8 -8
  9. package/dist/chunks/cose-bilkent-JH36ORCC.900yznpf.js +1 -0
  10. package/dist/chunks/cynefin-EF2NZ3EQ.jp3enwcw.js +1 -0
  11. package/dist/chunks/{cynefinDiagram-NJNITYFG.k6mhek0s.js → cynefinDiagram-NJNITYFG.7y6esx64.js} +1 -1
  12. package/dist/chunks/{dagre-KIHZ2IZ3.sqeg911s.js → dagre-KIHZ2IZ3.2xtjsjjb.js} +2 -2
  13. package/dist/chunks/{diagram-7YQZDPLS.k1qvmctj.js → diagram-7YQZDPLS.5a4btxfh.js} +2 -2
  14. package/dist/chunks/{diagram-QBROCOUO.v7fe7e4g.js → diagram-QBROCOUO.je55sz0f.js} +24 -24
  15. package/dist/chunks/{diagram-RJJCUUZO.12s15pm6.js → diagram-RJJCUUZO.19nj7yqv.js} +4 -4
  16. package/dist/chunks/{diagram-WERXNKYE.tmrcv4we.js → diagram-WERXNKYE.h15fxc8e.js} +2 -2
  17. package/dist/chunks/diagram-YHHI257C.rjb588jf.js +3 -0
  18. package/dist/chunks/{diagram-YR4HJLHV.nytxr7pa.js → diagram-YR4HJLHV.5cj602t4.js} +1 -1
  19. package/dist/chunks/{ebnfDiagram-N527522P.6eqw92nv.js → ebnfDiagram-N527522P.edah3bz7.js} +1 -1
  20. package/dist/chunks/editor-shortcuts-dialog-Cz3T8435.kb0b5cra.js +1 -0
  21. package/dist/chunks/editor.ywaw7sz9.js +4 -0
  22. package/dist/chunks/{elk-O5DQBFGD.a5rqryhg.js → elk-O5DQBFGD.qnxmxe5n.js} +13 -13
  23. package/dist/chunks/emoji-picker-00Bw2c2b.2985hrzf.js +4 -0
  24. package/dist/chunks/{erDiagram-K3K3BIDK.exfeddaa.js → erDiagram-K3K3BIDK.9wh4fsa9.js} +8 -8
  25. package/dist/chunks/eventmodeling-K75KTNOO.xt3yb4h8.js +1 -0
  26. package/dist/chunks/{flow-diagram-Byy7DBZZ.pf5vdbkn.js → flow-diagram-DGZOc1z1.1276ykn3.js} +6 -6
  27. package/dist/chunks/flowDiagram-Z6JWZHQI.3t1zqq9x.js +1 -0
  28. package/dist/chunks/{ganttDiagram-3PRQTZWP.0tjaeqjw.js → ganttDiagram-3PRQTZWP.4t4r8jy0.js} +5 -5
  29. package/dist/chunks/gitGraph-VSP46ZUC.v9e8d46n.js +1 -0
  30. package/dist/chunks/{gitGraphDiagram-VXDFKS5L.6vvbj88t.js → gitGraphDiagram-VXDFKS5L.x4pypqh9.js} +19 -19
  31. package/dist/chunks/{grid-E2QIVN74.frpdy6t3.js → grid-E2QIVN74.8njsnft0.js} +1 -1
  32. package/dist/chunks/illustration-BcaGDjvB.ahkxq9mz.js +1 -0
  33. package/dist/chunks/{index.sv013f1z.js → index.0tz15aew.js} +1 -1
  34. package/dist/chunks/{index.zjykrx6y.js → index.0yskyw4t.js} +4 -4
  35. package/dist/chunks/{index.0kv7tp87.js → index.10k18jx6.js} +2 -2
  36. package/dist/chunks/{index.93zpfh3k.js → index.28jrnjz5.js} +2 -2
  37. package/dist/chunks/{index.f6jhkm5c.js → index.2j6fty9j.js} +35 -35
  38. package/dist/chunks/index.3c95g5mh.js +2 -0
  39. package/dist/chunks/{index.d8b8y928.js → index.3y8baz7q.js} +10 -10
  40. package/dist/chunks/{index.7q6v461v.js → index.5n55ccv6.js} +2 -2
  41. package/dist/chunks/{index.yfbwd99n.js → index.5sj251kq.js} +106 -106
  42. package/dist/chunks/{index.3pn4wy4j.js → index.a7m06kba.js} +1 -1
  43. package/dist/chunks/{index.fv9af3wd.js → index.d57x7pg9.js} +6 -6
  44. package/dist/chunks/{index.mcyw2bze.js → index.f1bfv6bh.js} +1 -1
  45. package/dist/chunks/{index.xrg5yg8d.js → index.gzgeb5ax.js} +2 -2
  46. package/dist/chunks/{index.nrd5w1x0.js → index.mjp06b03.js} +2 -2
  47. package/dist/chunks/{index.a6rz456z.js → index.mtrj86e8.js} +2 -2
  48. package/dist/chunks/index.n53k66q8.js +2 -0
  49. package/dist/chunks/index.pg4f51t3.js +44 -0
  50. package/dist/chunks/index.q39061xn.js +2 -0
  51. package/dist/chunks/{index.pyz71tqx.js → index.tnx5y2zc.js} +2 -2
  52. package/dist/chunks/{index.nsckd1vt.js → index.yhmqh641.js} +2 -2
  53. package/dist/chunks/{index.kh3f3gw8.js → index.znt11tbm.js} +2 -2
  54. package/dist/chunks/info-OHQRW6UA.atpz16bq.js +1 -0
  55. package/dist/chunks/{infoDiagram-EZ3ZOAHP.qh2bwz3m.js → infoDiagram-EZ3ZOAHP.mq5603w2.js} +2 -2
  56. package/dist/chunks/{ishikawaDiagram-S3EKX5GW.w2v6vnwd.js → ishikawaDiagram-S3EKX5GW.sx08qj3j.js} +5 -5
  57. package/dist/chunks/{journeyDiagram-POQNLL5X.ftkfdsrw.js → journeyDiagram-POQNLL5X.c3e37ws5.js} +5 -5
  58. package/dist/chunks/{kanban-definition-BH5XI6FM.9scqhcx5.js → kanban-definition-BH5XI6FM.6b85jkvt.js} +7 -7
  59. package/dist/chunks/markup-color-chrome-ykGNUl8y.76asgnkk.js +1 -0
  60. package/dist/chunks/markup-custom-color-MM-HnrqY.de5f5c2g.js +1 -0
  61. package/dist/chunks/mention-list-6cR5VSPa.r7r4w0q8.js +1 -0
  62. package/dist/chunks/{mermaid.core.tnh468qk.js → mermaid.core.kh4z9f22.js} +7 -7
  63. package/dist/chunks/{mindmap-definition-WVAN44T4.gskntx1f.js → mindmap-definition-WVAN44T4.07nv313g.js} +6 -6
  64. package/dist/chunks/packet-JDAUHWVQ.dmnq0wwq.js +1 -0
  65. package/dist/chunks/panel.zcphrx3e.js +7 -0
  66. package/dist/chunks/{pegDiagram-D4NLKWP3.yb58dpky.js → pegDiagram-D4NLKWP3.2mqrk2xy.js} +1 -1
  67. package/dist/chunks/pie-XZMESJXO.0rpk8mwa.js +1 -0
  68. package/dist/chunks/pieDiagram-36ENHN4W.kx9bhkyj.js +39 -0
  69. package/dist/chunks/plated-illustration-pTqcYOQg.a24pxzgf.js +1 -0
  70. package/dist/chunks/{quadrantDiagram-ZQUDMS73.1a721ces.js → quadrantDiagram-ZQUDMS73.68vxq0vb.js} +4 -4
  71. package/dist/chunks/radar-ABXABTNO.xt7snfyy.js +1 -0
  72. package/dist/chunks/railroad-I3PHUGI6.bjssfxkf.js +1 -0
  73. package/dist/chunks/railroad-abnf-LNEFI6M7.mchc5mex.js +1 -0
  74. package/dist/chunks/railroad-ebnf-DWYD2UWJ.wz1e7a1n.js +1 -0
  75. package/dist/chunks/railroad-peg-JR7BVNR7.xg4e4nsz.js +1 -0
  76. package/dist/chunks/{railroadDiagram-JIZHGYPL.xpgkt1zp.js → railroadDiagram-JIZHGYPL.dnj3h1n0.js} +1 -1
  77. package/dist/chunks/{render-VIF2ZAQL.khtqjmgm.js → render-VIF2ZAQL.cawqkxpf.js} +1 -1
  78. package/dist/chunks/{requirementDiagram-AXW2TVFA.ms6anxwg.js → requirementDiagram-AXW2TVFA.5z51j1hn.js} +4 -4
  79. package/dist/chunks/{sankeyDiagram-FBCJTAIF.40yzed7d.js → sankeyDiagram-FBCJTAIF.0dqdm7yd.js} +6 -6
  80. package/dist/chunks/{sequenceDiagram-3LA2ROMG.z0h3shw2.js → sequenceDiagram-3LA2ROMG.0fpdfwg0.js} +11 -11
  81. package/dist/chunks/{sizeCapture-2Q2CQKSF.4dh5g271.js → sizeCapture-2Q2CQKSF.gverqc02.js} +1 -1
  82. package/dist/chunks/{stateDiagram-v2-ATKHQDJO.5ftcgs8s.js → stateDiagram-v2-ATKHQDJO.56dj904f.js} +8 -8
  83. package/dist/chunks/{swimlanes-YQL5WMAO.r6vmskrb.js → swimlanes-YQL5WMAO.frj4npw4.js} +1 -1
  84. package/dist/chunks/swimlanesDiagram-UCCPES4V.834hahmm.js +8 -0
  85. package/dist/chunks/{timeline-definition-7Z437IG3.eke70hfq.js → timeline-definition-7Z437IG3.v99ghwdb.js} +9 -9
  86. package/dist/chunks/treeView-D4JQ5SDB.tbqcaq5q.js +1 -0
  87. package/dist/chunks/treemap-SAJKECNS.jgfv37a0.js +1 -0
  88. package/dist/chunks/{usecaseDiagram-RDK6N6HP.d8p4tnc6.js → usecaseDiagram-RDK6N6HP.b6317ne8.js} +57 -57
  89. package/dist/chunks/{vennDiagram-SHRQU5PJ.4s46abxd.js → vennDiagram-SHRQU5PJ.adr331gc.js} +7 -7
  90. package/dist/chunks/wardley-7MLQ67FV.4653yv6a.js +1 -0
  91. package/dist/chunks/{wardleyDiagram-F3OXNVQS.mq49fny4.js → wardleyDiagram-F3OXNVQS.5tt3knhg.js} +4 -4
  92. package/dist/chunks/{xychartDiagram-GDYJKCDI.d7he0fxa.js → xychartDiagram-GDYJKCDI.dqs1thzc.js} +5 -5
  93. package/dist/index.js +48 -21
  94. package/dist/types/config.d.ts +1 -1
  95. package/dist/types/mount.d.ts +1 -1
  96. package/docs/integration.md +32 -26
  97. package/package.json +4 -4
  98. package/dist/chunks/architecture-WOLXFQ4H.pp4drcrh.js +0 -1
  99. package/dist/chunks/architectureDiagram-CSQXQB3N.0bddzt5e.js +0 -36
  100. package/dist/chunks/cose-bilkent-JH36ORCC.qam7r9b1.js +0 -1
  101. package/dist/chunks/cynefin-EF2NZ3EQ.wgr8qmb2.js +0 -1
  102. package/dist/chunks/diagram-YHHI257C.7735ve6v.js +0 -3
  103. package/dist/chunks/editor-shortcuts-dialog-VmvMTjnq.mm7ab69f.js +0 -1
  104. package/dist/chunks/editor.wb4jsrjy.js +0 -4
  105. package/dist/chunks/emoji-picker-bnO0yA8e.bymgjc9a.js +0 -4
  106. package/dist/chunks/eventmodeling-K75KTNOO.nkahp6zg.js +0 -1
  107. package/dist/chunks/flowDiagram-Z6JWZHQI.54yz6gfm.js +0 -1
  108. package/dist/chunks/gitGraph-VSP46ZUC.2a0am491.js +0 -1
  109. package/dist/chunks/illustration-BfueshiW.syv54ccw.js +0 -1
  110. package/dist/chunks/index.bs3ygyp2.js +0 -2
  111. package/dist/chunks/index.newjn1k4.js +0 -2
  112. package/dist/chunks/index.rn0vxns6.js +0 -44
  113. package/dist/chunks/index.yexf86bf.js +0 -2
  114. package/dist/chunks/info-OHQRW6UA.4824y3cd.js +0 -1
  115. package/dist/chunks/markup-color-chrome-ykGNUl8y.8cysjsfb.js +0 -1
  116. package/dist/chunks/markup-custom-color-CytmKw-R.d25j0pcj.js +0 -1
  117. package/dist/chunks/mention-list-5h2lZwEU.wffam6eb.js +0 -1
  118. package/dist/chunks/packet-JDAUHWVQ.w0pv2dxr.js +0 -1
  119. package/dist/chunks/panel.dq8vt40k.js +0 -7
  120. package/dist/chunks/pie-XZMESJXO.zq72f2fq.js +0 -1
  121. package/dist/chunks/pieDiagram-36ENHN4W.7pgn8ayz.js +0 -39
  122. package/dist/chunks/plated-illustration-VrnsTz7H.tcyq0sxa.js +0 -1
  123. package/dist/chunks/radar-ABXABTNO.288gs0b8.js +0 -1
  124. package/dist/chunks/railroad-I3PHUGI6.aadrd13j.js +0 -1
  125. package/dist/chunks/railroad-abnf-LNEFI6M7.6btgmncj.js +0 -1
  126. package/dist/chunks/railroad-ebnf-DWYD2UWJ.y44ppt8p.js +0 -1
  127. package/dist/chunks/railroad-peg-JR7BVNR7.328jgxkz.js +0 -1
  128. package/dist/chunks/swimlanesDiagram-UCCPES4V.exhrz16x.js +0 -8
  129. package/dist/chunks/treeView-D4JQ5SDB.xz61fh4x.js +0 -1
  130. package/dist/chunks/treemap-SAJKECNS.8gv7pmqr.js +0 -1
  131. package/dist/chunks/wardley-7MLQ67FV.6v9j3be8.js +0 -1
@@ -1,4 +0,0 @@
1
- import{E,d,P,l,H,Ns,Z,w,Ze,i,o,X,T,r,a,G,Nr,B,s,v,J,ne,W,ht,At,Tn,wr,Cn,Se,Bl,Tr,Fo,Cr,rn,x,In,jt,nn,Ks,Ys,jo,Ei,va,Ai}from"./index.rn0vxns6.js";import{oa}from"./index.bs3ygyp2.js";var ue={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};ue.node;var ee=x(ue);var de={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};de.node;var fe=x(de);var me=/mac|iphone|ipad|ipod/i;function te(c){if(c!==void 0)return me.test(c);if(typeof navigator>"u")return!1;return me.test(navigator.platform||navigator.userAgent||"")}function q(c){let e=c.trim(),t=e.endsWith("+"),n=t?"+":e.slice(e.lastIndexOf("+")+1),h=t?e.slice(0,-1):e.slice(0,-(n.length+1)),u=new Set(h.toLowerCase().split("+").map((f)=>f.trim()));return{mod:u.has("mod"),ctrl:u.has("ctrl")||u.has("control"),meta:u.has("meta")||u.has("cmd")||u.has("⌘"),alt:u.has("alt")||u.has("option"),shift:u.has("shift"),key:n.toLowerCase()}}function ge(c){let e=q(c);return e.mod||e.ctrl||e.meta||e.alt}function ie(c){return!ge(c)&&[...q(c).key].length===1}var pe=(c)=>c.length===1?c.toUpperCase():c;function se(c,e){if(!c)return;let t=q(c),n=[...t.alt?["Alt"]:[],...t.shift?["Shift"]:[],pe(t.key)],h=(m)=>[...m,...n].join("+");if(!t.mod)return h([...t.ctrl?["Control"]:[],...t.meta?["Meta"]:[]]);let u=h(["Meta"]),f=h(["Control"]);return e===void 0?`${u} ${f}`:e?u:f}function re(c,e=!1){let t=q(c),n=e||t.meta,h=[...t.ctrl||t.mod&&!n?[n?"⌃":"Ctrl"]:[],...t.alt?[n?"⌥":"Alt"]:[],...t.shift?[n?"⇧":"Shift"]:[],...t.meta||t.mod&&n?[n?"⌘":"Meta"]:[]],u=pe(t.key);return n?`${h.join("")}${u}`:[...h,u].join(" ")}function ke(c){let e=c?.trim();if(!e)return"general";return e.toLowerCase().replace(/ & /g,"_").replace(/\s+/g,"_")}function ve(c,e){let t={all:c},n=e.map((h)=>c.find((u)=>u.name===h)).filter((h)=>Boolean(h));if(n.length>0)t.recent=n;for(let h of c){let u=ke(h.group);t[u]=[...t[u]??[],h]}return Object.fromEntries(Object.entries(t).filter(([,h])=>h.length>0))}function be(c,e){let t=e.trim().toLowerCase();if(!t)return null;return c.filter((n)=>{if(n.name.toLowerCase().includes(t))return!0;return n.shortcodes?.some((h)=>h.toLowerCase().includes(t))})}var je={all:"All",recent:"Recent",general:"General",smileys_emotion:"Smileys & emotion",people_body:"People & body",components:"Components",animals_nature:"Animals & nature",food_drink:"Food & drink",travel_places:"Travel & places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"};function ye(c){let e=c.replace(/_/g," ");return je[c]??e.charAt(0).toUpperCase()+e.slice(1)}var De=function(c,e,t){if(!jo)return[e,Ys,Ys];if(!c)throw Error("useLocalStorage key may not be falsy");var n=t?t.raw?function(b){return b}:t.deserializer:JSON.parse,h=i(function(b){try{var p=t?t.raw?String:t.serializer:JSON.stringify,g=localStorage.getItem(b);return g===null?(e&&localStorage.setItem(b,p(e)),e):n(g)}catch{return e}}),u=o(function(){return h.current(c)}),f=u[0],m=u[1];return Z(function(){return m(h.current(c))},[c]),[f,d(function(b){try{var p=typeof b=="function"?b(f):b;if(p===void 0)return;var g=void 0;g=t?t.raw?typeof p=="string"?p:JSON.stringify(p):t.serializer?t.serializer(p):JSON.stringify(p):JSON.stringify(p),localStorage.setItem(c,g),m(n(g))}catch{}},[c,m]),d(function(){try{localStorage.removeItem(c),m(void 0)}catch{}},[c,m])]},Le=new Set(["button","checkbox","color","file","image","radio","reset","submit"]);function Re(c){let e,t;try{e=c.selectionStart,t=c.selectionEnd}catch{return null}return e===null||t===null?null:{atStart:t===0,atEnd:e===c.value.length}}function Ke(c){let e=c.target;if(e.isContentEditable||c.nativeEvent.isComposing)return!0;let t=c.key==="ArrowUp"||c.key==="ArrowDown";if(e instanceof HTMLSelectElement)return t;let n=e instanceof HTMLInputElement&&!Le.has(e.type)||e instanceof HTMLTextAreaElement?e:null;if(!n)return!1;let h=Re(n);if(!h||t)return!0;let u=getComputedStyle(e).direction==="rtl",f=u?"ArrowRight":"ArrowLeft",m=u?"ArrowLeft":"ArrowRight";return c.key===f||c.key==="Home"?!h.atStart:c.key===m||c.key==="End"?!h.atEnd:!1}var Ne=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function Fe(c){if(!Ne.has(c.key)||!Ke(c))return;let e=!0;Object.defineProperty(c,"defaultPrevented",{configurable:!0,get:()=>e?(e=!1,!0):c.nativeEvent.defaultPrevented})}var ce=E({inside:!1,spilled:new Set,entries:new Map,dir:"ltr",orientation:"horizontal",overflowing:!1,moreAnchor:{current:null},focusLost:{current:null}}),Pe=E(null);E(null);function We(c,e){let t=H(),{inside:n,spilled:h,entries:u}=P(ce),f=P(Pe);Z(()=>{n&&u.set(t,c)}),Z(()=>()=>void u.delete(t),[u,t]);let m=n&&(!!f?.spilled||h.has(t));return{id:t,spilled:m,inside:n,props:n?{"data-toolbar-id":t,"data-toolbar-priority":f?void 0:e,hidden:m||void 0,"data-toolbar-unlisted":c.more?.kind==="none"?"":void 0,"data-toolbar-choice":c.group?c.choice:void 0}:{}}}function Ve({own:c,folded:e}){let{moreAnchor:t}=P(ce),n=Bl(),h=w(()=>({get current(){return e?t.current:c.current},set current(u){}}),[e,c,t]);return n?r(rn,{virtualRef:h}):null}function He(c,e){let{inside:t,focusLost:n}=P(ce),h=i(null);return d((u)=>{if(!c||!t)h.current=u;else if(u===null){let f=h.current;if(h.current=null,f&&f.ownerDocument.activeElement===f){let m={label:e};n.current=m,queueMicrotask(()=>{n.current===m&&(n.current=null)})}}else if(h.current=u,n.current?.label===e){n.current=null;let{activeElement:f,body:m}=u.ownerDocument;f&&f!==m||u.focus({preventScroll:!0})}},[c,t,e,n])}function $e({children:c,label:e,icon:t,toggle:n,priority:h,onSelect:u,more:f,onKeyDown:m,fit:b,shape:p="pill",...g}){let{inside:S,spilled:M,props:O}=We({label:e,icon:t,toggle:n,onSelect:u,more:f},h),A=i(null),C=He(f?.kind==="popover",e),y=G(A,g.ref,C);return S?a(T,{children:[f?.kind==="popover"?r(Ve,{own:A,folded:M}):null,r(oa,{asChild:!0,...g,ref:y,...qe(c),onKeyDown:B(m,Fe),...O,"data-toolbar-item":"","data-toolbar-shape":p,"data-toolbar-fit":b??!Ce(c)?"":void 0,children:c})]}):r(Nr,{...g,onKeyDown:m,children:c})}function qe(c){let e=c.props;return c.type==="input"?{type:e.type??"text"}:Ce(c)?{type:void 0}:{}}var Ce=(c)=>c.type==="input"||c.type==="textarea"||c.type==="select",Je="--glyph-cell-size",Be="--glyph-gap",Ue="relative max-h-52 overflow-auto px-px pb-0.5 outline-none [overflow-anchor:none] [--glyph-cell-size:36px] pointer-coarse:[--glyph-cell-size:44px] [--glyph-gap:2px] [--scroll-fade-size:1rem] [scrollbar-gutter:stable_both-edges] scroll-fade-y",Ge="grid justify-center gap-(--glyph-gap) [grid-auto-rows:var(--gg-cell,var(--glyph-cell-size))] [grid-template-rows:repeat(var(--gg-rows),var(--gg-cell,var(--glyph-cell-size)))] [grid-template-columns:repeat(var(--gg-cols,8),var(--gg-cell,var(--glyph-cell-size)))]",Qe="flex size-[var(--gg-cell,var(--glyph-cell-size))] [grid-row:var(--gg-row)] [grid-column:var(--gg-col)] relative cursor-pointer items-center justify-center rounded-md text-xl transition outline-none hover:bg-card-tint-8 dark:hover:bg-card-tint-12 aria-selected:bg-card-tint-12 aria-selected:hover:bg-card-tint-18 aria-selected:inset-ring-2 aria-selected:inset-ring-primary-indicator dark:aria-selected:bg-card-tint-20 dark:aria-selected:hover:bg-card-tint-18 focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card";function Ye({item:c,itemKey:e,index:t,i:n,size:h,cols:u,active:f,shared:m}){let b=e===m.selectedKey;return r("div",{role:"option","data-glyph-key":e,tabIndex:f?0:-1,"aria-selected":b,"aria-label":m.getLabel?.(c),"aria-setsize":h,"aria-posinset":n+1,className:Qe,ref:(p)=>{p?.style.setProperty("--gg-row",String(Math.floor(n/u)+1)),p?.style.setProperty("--gg-col",String(n%u+1))},onFocus:()=>{m.setActive({s:t,i:n}),m.onHighlight?.(c)},onMouseEnter:()=>m.onHighlight?.(c),onMouseLeave:()=>m.onHighlight?.(null),onClick:()=>m.onPick(c),children:m.renderItem(c,{selected:b,active:f})})}function Xe(c){return typeof c=="object"?c.key:c}function et(c,e){let t=c.length;return new Proxy(c,{get(n,h,u){if(typeof h=="string"){let f=h.charCodeAt(0);if(f>=48&&f<=57){let m=+h;if(Number.isInteger(m)&&m>=0&&m<t){let b=n[m];if(typeof b!="object"){let p=e[m*2];b=n[m]={index:m,key:b,start:p,size:e[m*2+1],end:p+e[m*2+1],lane:0}}return b}}if(h==="length")return t}return Reflect.get(n,h,u)}})}function N(c,e,t){let n=t.initialDeps??[],h,u=!0;function f(){let m=!1,b=0;m&&(b=Date.now());let p=c();if(!(p.length!==n.length||p.some((S,M)=>n[M]!==S)))return h;n=p;let g=0;if(m&&(g=Date.now()),h=e(...p),m){let S=Math.round((Date.now()-b)*100)/100,M=Math.round((Date.now()-g)*100)/100,O=M/16,A=(C,y)=>{for(C=String(C);C.length<y;)C=" "+C;return C};console.info(`%c⏱ ${A(M,5)} /${A(S,5)} ms`,`
2
- font-size: .6rem;
3
- font-weight: bold;
4
- color: hsl(${Math.max(0,Math.min(120-120*O,120))}deg 100% 31%);`,t?.key)}return t?.onChange&&!(u&&t.skipInitialOnChange)&&t.onChange(h),u=!1,h}return f.updateDeps=(m)=>{n=m},f}function xe(c,e){if(c===void 0)throw Error(`Unexpected undefined${e?`: ${e}`:""}`);return c}var tt=(c,e)=>Math.abs(c-e)<1.01,it=(c,e,t)=>{let n;return Object.assign(function(...h){c.clearTimeout(n),n=c.setTimeout(()=>e.apply(this,h),t)},{cancel:()=>{c.clearTimeout(n)}})},U,le=()=>{if(U!==void 0)return U;if(typeof navigator>"u")return U=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return U=!0;let c=navigator.maxTouchPoints;return U=navigator.platform==="MacIntel"&&c!==void 0&&c>0},we=(c)=>{let{offsetWidth:e,offsetHeight:t}=c;return{width:e,height:t}},nt=(c)=>c,Te=(c)=>{let e=Math.max(c.startIndex-c.overscan,0),t=Math.min(c.endIndex+c.overscan,c.count-1)-e+1,n=Array(t);for(let h=0;h<t;h++)n[h]=e+h;return n},st=(c,e)=>{let t=c.scrollElement;if(!t)return;let n=c.targetWindow;if(!n)return;let h=(f)=>{let{width:m,height:b}=f;e({width:Math.round(m),height:Math.round(b)})};if(h(we(t)),!n.ResizeObserver)return()=>{};let u=new n.ResizeObserver((f)=>{let m=()=>{let b=f[0];if(b?.borderBoxSize){let p=b.borderBoxSize[0];if(p){h({width:p.inlineSize,height:p.blockSize});return}}h(we(t))};c.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(m):m()});return u.observe(t,{box:"border-box"}),()=>{u.unobserve(t)}},Q={passive:!0},rt=typeof window>"u"||"onscrollend"in window,lt=(c,e,t)=>{let n=c.scrollElement;if(!n)return;let h=c.targetWindow;if(!h)return;let u=c.options.useScrollendEvent&&rt,f=0,m=u?null:it(h,()=>e(f,!1),c.options.isScrollingResetDelay),b=(S)=>()=>{f=t(n),m?.(),e(f,S)},p=b(!0),g=b(!1);return n.addEventListener("scroll",p,Q),u&&n.addEventListener("scrollend",g,Q),()=>{n.removeEventListener("scroll",p),u&&n.removeEventListener("scrollend",g),m?.cancel()}},ot=(c,e)=>lt(c,e,(t)=>{let{horizontal:n,isRtl:h}=c.options;return n?t.scrollLeft*(h&&-1||1):t.scrollTop}),at=(c,e,t)=>{if(t.options.useCachedMeasurements){let n=t.indexFromElement(c),h=t.options.getItemKey(n);return t.itemSizeCache.get(h)??t.options.estimateSize(n)}if(e?.borderBoxSize){let n=e.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}if(!e){let n=t.indexFromElement(c),h=t.options.getItemKey(n),u=t.itemSizeCache.get(h);if(u!==void 0)return u}return c[t.options.horizontal?"offsetWidth":"offsetHeight"]},ct=(c,{adjustments:e=0,behavior:t},n)=>{var h,u;(u=(h=n.scrollElement)?.scrollTo)==null||u.call(h,{[n.options.horizontal?"left":"top"]:c+e,behavior:t})};function ut(c,e,t,n){if(e===0)return!1;let h=n(0),u=new Set,f=0;for(;f<c;){let b=t(f);if(b===h)break;u.add(b),f++}let m=c-f;if(m===0||m>=e)return!1;for(let b=0;b<m;b++)if(n(b)!==t(f+b))return!1;for(let b=m;b<e;b++)if(u.has(n(b)))return!1;return!0}var dt=class{constructor(c){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e;return(e=this.targetWindow?.performance)?.now?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver((n)=>{n.forEach((h)=>{let u=()=>{let f=h.target,m=this.indexFromElement(f);if(f.isConnected)this.isIndexInRange(m)&&this.shouldMeasureDuringScroll(m)&&this.resizeItem(m,this.options.measureElement(f,h,this));else{this.observer.unobserve(f);for(let[b,p]of this.elementsCache)if(p===f){this.elementsCache.delete(b);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:(n)=>t()?.observe(n,{box:"border-box"}),unobserve:(n)=>t()?.unobserve(n)}})(),this.range=null,this.setOptions=(e)=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nt,rangeExtractor:Te,onChange:()=>{},measureElement:at,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let p in e){let g=e[p];g!==void 0&&(t[p]=g)}let n=this.options,h=null,u=null,f=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo==="end"&&this.scrollElement!==null){let p=n.count,g=t.count,S=this.getMeasurements(),M=this._singleLaneMeasurements?.items??S,O=(y)=>Xe(M[y]),A=p>0?O(0):null,C=p>0?O(p-1):null;if(g!==p||p>0&&g>0&&(t.getItemKey(0)!==A||t.getItemKey(g-1)!==C)){f=!0;let y=p>0?this.getVirtualItemForOffset(this.getScrollOffset())??S[0]:null;y&&(h=[y.key,this.getScrollOffset()-y.start]);let _=t.followOnAppend===!0?"auto":t.followOnAppend||null;_&&g>0&&this.isAtEnd(n.scrollEndThreshold)&&(p===0||t.getItemKey(g-1)!==C)&&(g>p||ut(p,g,O,t.getItemKey))&&(u=_)}}this.options=t,f&&(this.pendingMin=0,this.itemSizeCacheVersion++);let m=!1,b=0;if(h&&this.scrollOffset!==null){let[p,g]=h,S=this.getMeasurements(),{count:M,getItemKey:O}=this.options,A=0;for(;A<M&&O(A)!==p;)A++;if(A<M){let C=S[A];if(C){let y=Math.max(0,C.start+g);!u&&y!==this.scrollOffset&&(b=y-this.scrollOffset,this.scrollOffset=y,m=!0)}}}(m||u)&&(this.pendingScrollAnchor=[m?h[0]:null,m?h[1]:0,u,b])},this.notify=(e)=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=N(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),(e)=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e)=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&"ownerDocument"in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach((n)=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,(n)=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,h)=>{if(h&&this._intendedScrollOffset===null&&n===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(n-this._intendedScrollOffset)<1.5&&(n=this._intendedScrollOffset),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(n-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;let u=this.getScrollOffset();this.scrollDirection=h?u===n?this.scrollDirection:u<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=h,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let n=this.scrollElement,h=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},u=()=>{this._iosTouching=!1,le()&&this.targetWindow!=null&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};n.addEventListener("touchstart",h,Q),n.addEventListener("touchend",u,Q),this.unsubs.push(()=>{n.removeEventListener("touchstart",h),n.removeEventListener("touchend",u),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[n,h,u,f]=t;n!==null&&!u&&(le()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?f!==0&&(this._iosDeferredAdjustment+=f):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),u&&this.scrollToEnd({behavior:u})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+0.5&&(this._clampedAdjustment=e>n+0.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=N(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,h,u,f,m,b)=>(this.prevLanes!==void 0&&this.prevLanes!==f&&(this.lanesChangedFlag=!0),this.prevLanes=f,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:h,enabled:u,lanes:f,laneAssignmentMode:m,gap:b}),{key:!1}),this.isIndexInRange=(e)=>e>=0&&e<this.options.count,this.getMeasurements=N(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:h,enabled:u,lanes:f,laneAssignmentMode:m,gap:b},p)=>{let g=this.itemSizeCache;if(!u)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let y of this.laneAssignments.keys())y>=e&&this.laneAssignments.delete(y);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((y)=>{this.itemSizeCache.set(y.key,y.size)}));let S=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),f===1){let y=e*2,_=this._singleLaneMeasurements?.flat;if(!_||_.length<y){let k=new Float64Array(y);_&&S>0&&k.set(_.subarray(0,S*2)),_=k}let z=S===0?Array(e):this._singleLaneMeasurements.items.slice(),I;if(S===0)I=t+n;else{let k=S-1;I=_[k*2]+_[k*2+1]+b}for(let k=S;k<e;k++){let D=h(k);z[k]=D;let L=g.get(D),F=typeof L=="number"?L:this.options.estimateSize(k);_[k*2]=I,_[k*2+1]=F,I+=F+b}this._singleLaneMeasurements={flat:_,items:z};let j=et(z,_);return this.measurementsCache=j,j}let M=this.measurementsCache.slice(0,S),O=Array(f).fill(void 0),A=new Float64Array(f),C=0;for(let y=0;y<S;y++){let _=M[y];_&&(O[_.lane]===void 0&&C++,O[_.lane]=y,A[_.lane]=_.end)}for(let y=S;y<e;y++){let _=h(y),z=this.laneAssignments.get(y),I,j,k=m==="estimate"||g.has(_);if(z!==void 0&&this.options.lanes>1){I=z;let V=O[I],R=V===void 0?void 0:M[V];j=R?R.end+b:t+n}else if(C===f){let V=0,R=A[0],he=O[0];for(let K=1;K<f;K++){let Y=A[K];(Y<R||Y===R&&O[K]<he)&&(V=K,R=Y,he=O[K])}I=V,j=R+b,k&&this.laneAssignments.set(y,I)}else I=y%this.options.lanes,j=t+n,k&&this.laneAssignments.set(y,I);let D=g.get(_),L=typeof D=="number"?D:this.options.estimateSize(y),F=j+L;M[y]={index:y,start:j,size:L,end:F,key:_,lane:I},O[I]===void 0&&C++,O[I]=y,A[I]=F}return this.measurementsCache=M,M},{key:!1,debug:()=>this.options.debug}),this.calculateRange=N(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,h)=>e.length===0||t===0?(this.range=null,null):(this.range=mt(e,t,n,h,h===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=N(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,h,u)=>h===null||u===null?[]:e({startIndex:h,endIndex:u,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=(e)=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=(e)=>{if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),h=Math.max(0,t-n),u=Math.min(this.options.count-1,t+n);return e>=h&&e<=u}return!0},this.measureElement=(e)=>{if(!e){this.elementsCache.forEach((u,f)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(f))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),h=this.elementsCache.get(n);h!==e&&(h&&this.observer.unobserve(h),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(!this.isIndexInRange(e))return;let n,h,u,f=this._singleLaneMeasurements?.flat;if(this.options.lanes===1&&f!=null)u=this.options.getItemKey(e),h=f[e*2],n=f[e*2+1];else{let p=this.measurementsCache[e];if(!p)return;u=p.key,h=p.start,n=p.size}let m=this.itemSizeCache.get(u)??n,b=t-m;if(b!==0){let p=this.options.anchorTo==="end"&&this.scrollState?.behavior!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,g=p?this.getTotalSize():0,S=this.getScrollOffset()+this.scrollAdjustments,M=this.itemSizeCache.has(u)?h+m<=S&&this.scrollDirection!=="backward":h<S,O=this.scrollState?.behavior!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?M:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:u,start:h,size:n,end:h+n,lane:0},b,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(u,t),this.itemSizeCacheVersion++;let A=!1;p?A=this.applyScrollAdjustment(this.getTotalSize()-g):O&&(A=this.applyScrollAdjustment(b)),this.notify(A),this._retryClampedAdjustment()}},this.getVirtualItems=N(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let h=0,u=e.length;h<u;h++){let f=t[e[h]];n.push(f)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=(e)=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._singleLaneMeasurements?.flat,h=this.options.lanes===1&&n!=null;return xe(t[Oe(0,t.length-1,h?(u)=>n[u*2]:(u)=>xe(t[u]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let h=this.getSize(),u=this.getScrollOffset();t==="auto"&&(t=e>=u+h?"end":"start"),t==="center"?e+=(n-h)/2:t==="end"&&(e-=h);let f=this.getMaxScrollOffset();return Math.max(Math.min(f,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),h=this.getScrollOffset(),u=this.measurementsCache[e];if(!u)return;if(t==="auto")if(u.end>=h+n-this.options.scrollPaddingEnd)t="end";else if(u.start<=h+this.options.scrollPaddingStart)t="start";else return[h,t];if(t==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let f=t==="end"?u.end+this.options.scrollPaddingEnd:u.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,t,u.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;let h=this.getOffsetForAlignment(e,t),u=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:u,lastTargetOffset:h,stableFrames:0},this._scrollToOffset(h,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let h=this.getOffsetForIndex(e,t);if(!h)return;let[u,f]=h,m=this.now();this.scrollState={index:e,align:f,behavior:n,startedAt:m,lastTargetOffset:u,stableFrames:0},this._scrollToOffset(u,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,h=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:h,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,h=this._singleLaneMeasurements?.flat;t=h==null?e[n]?.end??0:h[n*2]+h[n*2+1]}else{let n=Array(this.options.lanes).fill(null),h=e.length-1;for(;h>=0&&n.some((u)=>u===null);){let u=e[h];n[u.lane]===null&&(n[u.lane]=u.end),h--}t=Math.max(...n.filter((u)=>u!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(c)}applyScrollAdjustment(c,e){if(c===0)return!1;if(le()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=c,!1;{let t=this.getScrollOffset()+this.scrollAdjustments+c,n=this.scrollElement,h=n!==null&&(("scrollHeight"in n)||("document"in n))?this.getMaxScrollOffset():null;return this._clampedAdjustment=h!==null&&t>h+0.5?{target:t,maxAtWrite:h}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:e}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){this.targetWindow?this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}):this.scrollState=null}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5000){this.scrollState=null;return}let c=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),e=c?c[0]:this.scrollState.lastTargetOffset,t=e!==this.scrollState.lastTargetOffset;if(!t&&tt(e,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==e&&this._scrollToOffset(e,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,t){let n=this.getSize()||600,h=Math.abs(e-this.getScrollOffset()),u=this.scrollState.behavior==="smooth"&&h>n;this.scrollState.lastTargetOffset=e,u||(this.scrollState.behavior="auto"),this._scrollToOffset(e,{adjustments:void 0,behavior:u?"smooth":"auto"})}this.scheduleScrollReconcile()}},Oe=(c,e,t,n)=>{for(;c<=e;){let h=(c+e)/2|0,u=t(h);if(u<n)c=h+1;else if(u>n)e=h-1;else return h}return c>0?c-1:0};function ft(c,e,t){let n=0;for(;n<=e;){let h=(n+e)/2|0,u=c[h*2];if(u<t)n=h+1;else if(u>t)e=h-1;else return h}return n>0?n-1:0}function mt(c,e,t,n,h){let u=c.length-1;if(c.length<=n)return{startIndex:0,endIndex:u};if(n===1&&h!==null){let b=ft(h,u,t),p=b,g=t+e;for(;p<u&&h[p*2]+h[p*2+1]<g;)p++;return{startIndex:b,endIndex:p}}let f=Oe(0,u,(b)=>c[b].start,t),m=f;if(n===1)for(;m<u&&c[m].end<t+e;)m++;else if(n>1){let b=Array(n).fill(0);for(;m<u&&b.some((g)=>g<t+e);){let g=c[m];b[g.lane]=g.end,m++}let p=Array(n).fill(t+e);for(;f>=0&&p.some((g)=>g>=t);){let g=c[f];p[g.lane]=g.start,f--}f=Math.max(0,f-f%n),m=Math.min(u,m+(n-1-m%n))}return{startIndex:f,endIndex:m}}var oe=typeof document<"u"?Z:l;function gt({useFlushSync:c=!0,directDomUpdates:e=!1,directDomUpdatesMode:t="transform",...n}){let[,h]=Ze((O)=>O+1,0),u=i(h).current,f=i({enabled:e,mode:t,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});f.current.enabled=e,f.current.mode=t;let m=i(!1),b=(O)=>{let A=f.current;if(!A.enabled||!A.container)return;let C=O.getTotalSize();if(C!==A.lastSize){A.lastSize=C;let y=O.options.horizontal?"width":"height";A.container.style[y]=`${C}px`}},p=(O,A,C)=>{let y=f.current,_=!!O.options.horizontal,z=A.start-O.options.scrollMargin;y.lastPositions.get(C)!==z&&(y.lastPositions.set(C,z),y.mode==="transform"?C.style.transform=_?`translate3d(${z}px, 0, 0)`:`translate3d(0, ${z}px, 0)`:C.style[_?"left":"top"]=`${z}px`)},g=(O)=>{let A=f.current;if(A.enabled&&A.container){b(O);for(let C of O.getVirtualItems()){let y=O.elementsCache.get(C.key);y&&p(O,C,y)}}},S={...n,onChange:(O,A)=>{var C;let y=f.current,_=!0;if(y.enabled){g(O);let z=O.range,I=y.prevRange;_=!I||I.isScrolling!==O.isScrolling||I.startIndex!==z?.startIndex||I.endIndex!==z?.endIndex,_&&(y.prevRange=z?{startIndex:z.startIndex,endIndex:z.endIndex,isScrolling:O.isScrolling}:null)}_&&(c&&A&&!m.current?X(u):u()),(C=n.onChange)==null||C.call(n,O,A)}},[M]=o(()=>{let O=new dt(S),A=O.measureElement;return O.measureElement=(C)=>{m.current=!0;try{A(C)}finally{m.current=!1}let y=f.current;if(C!==null&&y.enabled&&y.container){let _=O.measurementsCache[O.indexFromElement(C)];_&&p(O,_,C)}},Object.assign(O,{containerRef:(C)=>{let y=f.current;y.container=C,y.lastSize=null,C!==null&&g(O)}})});return M.setOptions(S),oe(()=>M._didMount(),[]),oe(()=>(b(M),M._willUpdate())),oe(()=>{g(M)}),M}function pt(c){return gt({observeElementRect:st,observeElementOffset:ot,scrollToFn:ct,...c})}function vt(c,e,t){let{cols:n,cell:h,gap:u}=e.metrics,f=Math.ceil(c/n),m=i(null),[b,p]=o(0),g=pt({count:f,getScrollElement:()=>e.scrollerRef.current,estimateSize:()=>h,gap:u,overscan:3,scrollMargin:b,initialRect:{width:0,height:208},rangeExtractor:(S)=>[...new Set([...Te(S),...t.filter((M)=>M>=0&&M<f)])].sort((M,O)=>M-O)});return Z(()=>{let S=m.current;S&&(p((M)=>M===S.offsetTop?M:S.offsetTop),S.style.setProperty("--gg-rows",String(f)))}),{ref:m,rows:g.getVirtualItems().map((S)=>S.index)}}function bt({section:c,index:e,first:t,labelId:n,shared:h}){let{items:u}=c,{cols:f}=h.metrics,m=h.active.s===e?h.active.i:-1,b=h.target?.s===e?h.target.i:-1,{ref:p,rows:g}=vt(u.length,h,[m,b].filter((M)=>M>=0).map((M)=>Math.floor(M/f)));if(u.length===0)return null;let S=[];for(let M of g){let O=Math.min(u.length,(M+1)*f);for(let A=M*f;A<O;A++){let C=u[A],y=h.getKey(C);S.push(r(Ye,{item:C,itemKey:y,index:e,i:A,size:u.length,cols:f,active:A===m,shared:h},y))}}return a(T,{children:[r("div",{id:n,className:s("sticky top-0 z-[1] bg-[var(--glyph-surface,var(--card))] px-[var(--glyph-heading-inset,0.25rem)] text-xs font-medium text-muted-foreground","pt-1 pb-1",!t&&"mt-3",h.hideLabels&&"sr-only"),children:c.label}),r("div",{ref:p,role:"listbox","aria-labelledby":n,"data-section":c.id,className:Ge,children:S})]})}var yt=3,Ee=19;function St(c,e,t,n,h,u){let f=c.querySelector(`[data-section="${e}"]`);if(!f)return;let m=f.offsetTop+t*n,b=f.previousElementSibling,p=u?0:(b?.offsetHeight??0)+yt;m-p<c.scrollTop?c.scrollTop=Math.max(0,m-p):m+h+Ee>c.scrollTop+c.clientHeight&&(c.scrollTop=m+h+Ee-c.clientHeight)}function xt(c){let{sections:e,selectedKey:t,getKey:n,scrollerRef:h,metrics:u,hideLabels:f}=c,[m,b]=o(null),[p,g]=o(null),S=w(()=>e.map((C)=>C.items.length),[e]),M=w(()=>{if(m&&(S[m.s]??0)>m.i)return m;if(t!==void 0)for(let[y,_]of e.entries()){let z=_.items.findIndex((I)=>n(I)===t);if(z>=0)return{s:y,i:z}}let C=S.findIndex((y)=>y>0);return{s:Math.max(0,C),i:0}},[m,S,e,t,n]),O=d((C)=>{b(C),g(null)},[]),A=w(()=>{if(!p)return null;let C=Math.min(p.s,S.length-1),y=S[C]??0;return y>0?{s:C,i:Math.min(p.i,y-1)}:null},[p,S]);return Z(()=>{if(!p)return;let C=h.current,y=A&&e[A.s],_=A&&y?y.items[A.i]:void 0,z=C&&y&&_!==void 0?[...([...C.querySelectorAll("[data-section]")].find((k)=>k.dataset.section===y.id)??C).querySelectorAll("[data-glyph-key]")].find((k)=>k.dataset.glyphKey===n(_)):void 0;if(!A||!y||!C||!z){g(null);return}let I=u.cell+u.gap,j=Math.floor(A.i/u.cols);St(C,y.id,j,I,u.cell,!!f),z.focus({preventScroll:!0})},[p,A,e,n,u,h,f]),{active:M,target:A,move:d((C)=>g(C),[]),setActive:O,lengths:S}}var Ae=(c,e)=>c.findIndex((t,n)=>n>e&&t>0),ae=(c,e)=>{for(let t=Math.min(e,c.length)-1;t>=0;t--)if((c[t]??0)>0)return t;return-1};function wt(c,e,t,n,h=!1){let{s:u,i:f}=t,m=c[u]??0,b=f%e,p=f-b;switch(n){case"ArrowRight":{if(f+1<m)return{s:u,i:f+1};let g=Ae(c,u);return g<0?null:{s:g,i:0}}case"ArrowLeft":{if(f>0)return{s:u,i:f-1};let g=ae(c,u);return g<0?null:{s:g,i:(c[g]??1)-1}}case"ArrowDown":{if(f+e<m)return{s:u,i:f+e};if(p+e<m)return{s:u,i:m-1};let g=Ae(c,u);return g<0?null:{s:g,i:Math.min(b,(c[g]??1)-1)}}case"ArrowUp":{if(f-e>=0)return{s:u,i:f-e};let g=ae(c,u);if(g<0)return null;let S=c[g]??1,M=Math.floor((S-1)/e)*e;return{s:g,i:Math.min(M+b,S-1)}}case"Home":{if(!h)return{s:u,i:p};let g=c.findIndex((S)=>S>0);return g<0?null:{s:g,i:0}}case"End":{if(!h)return{s:u,i:Math.min(p+e-1,m-1)};let g=ae(c,c.length);return g<0?null:{s:g,i:(c[g]??1)-1}}default:return null}}var Et=new Set(["ArrowRight","ArrowLeft","ArrowDown","ArrowUp","Home","End"]);function Mt(c){return(e)=>{if(e.target.closest('[role="option"]'))if(Et.has(e.key)){let t=wt(c.lengths,c.cols,c.active,e.key,e.ctrlKey||e.metaKey);e.preventDefault(),t&&c.move(t)}else e.key==="Enter"||e.key===" "?(e.preventDefault(),c.pick(c.active)):c.onTypeAhead&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.preventDefault(),c.onTypeAhead(e.key))}}var Me=(c,e,t)=>{let n=Number.parseFloat(getComputedStyle(c).getPropertyValue(e));return Number.isFinite(n)&&n>0?n:t};function Ct(c,e){let[t,n]=o({cols:e??8,cell:36,gap:2}),h=i(null);return Z(()=>{let u=c.current;if(!u)return;let f=()=>{let b=Me(u,Je,36),p=Me(u,Be,2),g=u.clientWidth-2,S=Math.floor((g+p)/(b+p)),M=e??(S>0?S:8),O=g>0?Math.max(b,(g-(M-1)*p)/M):b,A=Math.floor(O*100)/100,C=h.current;C&&C.cols===M&&A>=C.cell&&A-C.cell<0.5||(h.current={cols:M,cell:A},u.style.setProperty("--gg-cols",String(M)),u.style.setProperty("--gg-cell",`${A}px`),n((y)=>y.cols===M&&y.cell===A&&y.gap===p?y:{cols:M,cell:A,gap:p}))};if(f(),typeof ResizeObserver>"u")return;let m=new ResizeObserver(f);return m.observe(u),()=>m.disconnect()},[c,e]),t}var Tt=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,Ot=(c)=>Math.min(2000,600+Math.abs(c)*0.4),_t=100,It=2;function _e(c){return[...c.querySelectorAll("[data-section]")]}function Ie(c,e){let t=c.previousElementSibling;return c.offsetTop-(e?0:t?.offsetHeight??0)}function zt(c,e){let t=_e(c);if(c.scrollTop+c.clientHeight>=c.scrollHeight-1)return t[t.length-1]?.dataset.section;let n=t[0]?.dataset.section;for(let h of t)Ie(h,e)<=c.scrollTop+It&&(n=h.dataset.section);return n}function kt(c){let{scrollerRef:e,hideLabels:t,setActive:n,ref:h}=c,u=i({...c});u.current={...c};let f=i(!1),m=i(void 0),b=i(null),p=i(null),g=d((M)=>{M&&M!==m.current&&(m.current=M,u.current.onActiveSectionChange?.(M))},[]);l(()=>{let M=e.current;if(!M)return;let O=0,A=()=>{cancelAnimationFrame(O),O=requestAnimationFrame(()=>{f.current||p.current!==null&&Math.abs(M.scrollTop-p.current)<=1||(p.current=null,g(zt(M,t)))})};return M.addEventListener("scroll",A,{passive:!0}),()=>{cancelAnimationFrame(O),M.removeEventListener("scroll",A)}},[e,t,g]),l(()=>()=>b.current?.(),[]);let S=d((M,O)=>{let A=e.current,C=u.current.sections.findIndex((k)=>k.id===M),y=A?_e(A).find((k)=>k.dataset.section===M):void 0;if(!A||!y||C<0)return;let _=O?.behavior??(Tt()?"auto":"smooth"),z=Math.max(0,Ie(y,u.current.hideLabels));b.current?.(),f.current=!0,p.current=null;let I=()=>{f.current=!1,p.current=A.scrollTop,A.removeEventListener("scrollend",I),clearTimeout(j),b.current=null},j=setTimeout(I,_==="smooth"?Ot(z-A.scrollTop):_t);A.addEventListener("scrollend",I,{once:!0}),b.current=I,g(M),n({s:C,i:0}),A.scrollTo({top:z,behavior:_})},[e,g,n]);Ns(h,()=>({scrollToSection:S}),[S])}function Dt(c){let{sections:e,columns:t,selectedKey:n,onTypeAhead:h,hideLabels:u,onActiveSectionChange:f,ref:m,getKey:b,onPick:p}=c,g=i(null),S=Ei(),M=S.props.ref,O=d((j)=>{g.current=j,M(j)},[M]),A=Ct(g,t),{active:C,target:y,move:_,setActive:z,lengths:I}=xt({hideLabels:u,sections:e,selectedKey:n,getKey:b,scrollerRef:g,metrics:A});return kt({scrollerRef:g,sections:e,hideLabels:u,setActive:z,onActiveSectionChange:f,ref:m}),{scrollerRef:g,setScroller:O,fade:S,metrics:A,active:C,target:y,setActive:z,onKeyDown:Mt({lengths:I,cols:A.cols,active:C,move:_,onTypeAhead:h,pick:(j)=>{let k=e[j.s]?.items[j.i];k!==void 0&&p(k)}})}}function Lt({sections:c,columns:e,selectedKey:t,onTypeAhead:n,hideLabels:h,onActiveSectionChange:u,ref:f,className:m,...b}){let p=H(),{scrollerRef:g,setScroller:S,fade:M,metrics:O,active:A,target:C,setActive:y,onKeyDown:_}=Dt({sections:c,columns:e,selectedKey:t,onTypeAhead:n,hideLabels:h,onActiveSectionChange:u,ref:f,...b}),z=c.findIndex((I)=>I.items.length>0);return r("div",{"data-fade":M.props["data-fade"],ref:S,className:s(Ue,!h&&"[--scroll-fade-inset-start:1.5rem]",m),onKeyDown:_,onBlur:(I)=>{I.currentTarget.contains(I.relatedTarget)||b.onHighlight?.(null)},children:c.map((I,j)=>r(bt,{section:I,index:j,first:j===z,labelId:`${p}-${I.id}`,shared:{...b,selectedKey:t,scrollerRef:g,metrics:O,active:A,target:C,setActive:y,hideLabels:h}},I.id))})}function ze(){let[c,e]=o(void 0);return l(()=>{e(te())},[]),c}function Rt({className:c,...e}){return r("kbd",{"data-slot":"kbd",className:s("pointer-events-none inline-flex h-5 min-w-5 items-center justify-center rounded border bg-muted px-1 font-mono text-[10px] font-medium text-muted-foreground","in-[[data-slot=button][data-variant=filled]]:border-current/40 in-[[data-slot=button][data-variant=filled]]:bg-current/15 in-[[data-slot=button][data-variant=filled]]:text-inherit","dark:border-foreground/45 dark:bg-background","dark:in-[[data-slot=button][data-variant=filled]]:border-current/40 dark:in-[[data-slot=button][data-variant=filled]]:bg-current/15",c),...e})}function Kt({shortcut:c,loading:e,filled:t,disabled:n,onClear:h}){let{t:u}=v(),f=ze()===!0,m=c&&!t&&!e&&!n,b=t&&!e&&!n;return!m&&!b&&!e?null:a(wr,{align:"inline-end",className:"pe-2.5 has-[>button]:pe-2.5 has-[>kbd]:pe-[0.275rem]",children:[m&&r(Rt,{"aria-hidden":"true",dir:"ltr",children:c&&re(c,f)}),e&&r("span",{"data-slot":"field-box-clear","aria-hidden":!0,className:"pointer-events-none",children:r(fe,{className:"animate-spin motion-reduce:animate-none"})}),b&&r("button",{type:"button","data-slot":"field-box-clear","aria-label":u("material.search-field.clear","Clear search"),className:"cursor-pointer",onClick:(p)=>{let g=p.currentTarget.closest('[data-slot="input-group"]')?.querySelector("input");h(),g?.focus()},children:r(jt,{"aria-hidden":!0,className:"pointer-events-none"})})]})}function Nt({search:c,error:e,loading:t,shortcut:n,placeholder:h,disabled:u,...f}){let{t:m}=v(),b=ze(),p=n&&!ie(n)?n:void 0;return a(Tn,{"data-disabled":u||void 0,children:[r(wr,{align:"inline-start",className:"ps-2.5",children:r("span",{"data-slot":"field-box-lead","aria-hidden":!0,children:r(In,{})})}),r(Cn,{...f,type:"search",value:c.value,disabled:u,"aria-invalid":e||void 0,"aria-busy":t||void 0,"aria-keyshortcuts":se(p??null,b),placeholder:h??m("material.search-field.placeholder","Search"),className:"[&::-webkit-search-cancel-button]:hidden",onChange:c.handleChange,onKeyDown:c.handleKeyDown}),r(Kt,{shortcut:p,loading:t,filled:c.value!=="",disabled:u,onClear:c.clear})]})}function Ft({value:c,defaultValue:e="",debounceMs:t,onValueChange:n,onClear:h,onChange:u,onKeyDown:f}){let[m,b]=o(String(e??"")),p=c!==void 0,g=p?String(c??""):m,S=Se(n),M=n!==void 0,O=w(()=>t?Ai((y)=>S.current?.(y),t):null,[t,S]);l(()=>()=>O?.cancel(),[O]);let A=(y,_=!1)=>{p||b(y),M&&(_||!O?(O?.cancel(),S.current?.(y)):O(y))},C=()=>{A("",!0),h?.(),u?.({target:{value:""},currentTarget:{value:""}})};return{value:g,clear:C,handleChange:(y)=>{A(y.target.value),u?.(y)},handleKeyDown:(y)=>{y.key==="Escape"&&g&&(y.preventDefault(),C()),f?.(y)}}}function Pt({id:c,value:e,defaultValue:t="",onChange:n,onValueChange:h,onClear:u,debounceMs:f=0,loading:m=!1,placeholder:b,label:p,helperText:g,error:S,disabled:M,required:O,name:A,className:C,onKeyDown:y,shortcut:_,...z}){let I=H(),j=H(),k=Ft({value:e,defaultValue:t,debounceMs:f,onValueChange:h,onClear:u,onChange:n,onKeyDown:y}),D=c??I,L=va(z["aria-describedby"],!!g&&j);return a("div",{"data-slot":"search-field","data-pw":A??"search-field",className:s("grid w-full content-start gap-1.5",C),children:[p&&r(ht,{htmlFor:D,withAsterisk:O,children:p}),r(Nt,{...z,id:D,name:A,search:k,disabled:M,required:O,error:S,loading:m,shortcut:_,placeholder:b,"aria-describedby":L}),g&&r(At,{id:j,error:S,children:g})]})}function Wt(c,e){let t=i(!1);l(()=>{if(!t.current){t.current=!0;return}let n=c.current,h=n?.querySelector('[aria-current="true"]');n&&h&&(h.offsetLeft<n.scrollLeft?n.scrollTo({left:h.offsetLeft}):h.offsetLeft+h.offsetWidth>n.scrollLeft+n.clientWidth&&n.scrollTo({left:h.offsetLeft+h.offsetWidth-n.clientWidth}))},[e])}var Vt=`relative flex h-11 min-w-8 flex-1 shrink-0 cursor-pointer items-center justify-center rounded-[var(--nxgt-item-radius)] px-1.5 text-muted-foreground transition-colors hover:bg-card-tint-8 dark:hover:bg-card-tint-12 ${Ks} after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-[3px] aria-[current=true]:text-primary-text aria-[current=true]:after:bg-primary dark:aria-[current=true]:after:bg-track-fill`;function Ht(c,e,t){return c==="ArrowRight"?(e+1)%t:c==="ArrowLeft"?(e-1+t)%t:c==="Home"?0:c==="End"?t-1:-1}function $t({label:c,hint:e,links:t,current:n,onJump:h}){let u=H(),f=Ei("x"),m=i(null),b=f.props.ref;Wt(m,n);let p=Math.max(0,t.findIndex((g)=>g.id===n));return a(T,{children:[r("span",{id:u,className:"sr-only",children:e}),r("nav",{"data-fade":f.props["data-fade"],ref:(g)=>{m.current=g,b(g)},"aria-label":c,onKeyDown:(g)=>{let S=[...g.currentTarget.querySelectorAll("button")],M=S.indexOf(document.activeElement),O=Ht(g.key,M,S.length);M<0||O<0||(g.preventDefault(),S[O]?.focus())},className:s("sticky top-0 z-[2] flex overflow-x-auto bg-[var(--glyph-surface,var(--card))] scroll-fade-x [--scroll-fade-size:1.5rem] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),children:t.map((g,S)=>r("button",{type:"button","aria-label":g.label,title:g.label,tabIndex:S===p?0:-1,"aria-describedby":S===p?u:void 0,"aria-current":n===g.id?"true":void 0,className:Vt,onClick:()=>h(g.id),children:r(W,{name:g.icon,className:"size-5","aria-hidden":!0})},g.id))})]})}function qt({query:c,onClear:e}){let{t}=v();return r(nn,{size:"compact",kind:"search",icon:r(W,{name:"magnifying-glass",className:"size-8"}),title:t("material.emoji.no-match","No emoji match “{query}”",{query:c.trim()}),description:t("material.emoji.no-match-hint","Check the spelling or try a shorter word."),action:r(J,{variant:"tonal",size:"sm",onClick:e,children:t("material.emoji.clear","Clear search")})})}function Jt(c,e){let[t,n]=o(),[h,u]=o(),f=i(null),m=i(null);l(()=>{h&&!e&&(f.current?.scrollToSection(h),u(void 0))},[h,e]);let b=(S)=>{n(S),u(S),c("")},p=d((S)=>{c((M)=>M+S),m.current?.querySelector("input")?.focus()},[c]),g=(S)=>{S||n(void 0),c(S)};return{spied:t,setSpied:n,grid:f,box:m,onJump:b,typeAhead:p,changeQuery:g,clear:()=>{g(""),m.current?.querySelector("input")?.focus()}}}var Bt={recent:"clock-rotate-left",general:"icons",smileys_emotion:"face-smile",people_body:"hand",animals_nature:"leaf",food_drink:"utensils",travel_places:"earth-americas",activities:"trophy",objects:"lightbulb",symbols:"hashtag",flags:"flag"},Ut=new Set(["all","components","component"]);function Gt(c,e,t){let{t:n}=v(),h=d((m)=>n(`material.emoji.groups.${m}`,ye(m)),[n]),u=w(()=>Object.entries(ve(c,e)).filter(([m])=>!Ut.has(m)),[c,e]),f=w(()=>be(c,t),[c,t]);return{hits:f,sections:w(()=>(f?[["results",f]]:u).map(([m,b])=>({id:m,label:h(m),items:b})),[f,u,h]),links:w(()=>u.map(([m])=>({id:m,label:h(m),icon:Bt[m]??"icons"})),[u,h])}}var Qt="recent-emojis";function Yt(c){let[e,t]=De(Qt,[]),[n]=o(()=>e??[]);return{snapshot:n,handleSelect:d((h)=>{c(h),t((u)=>[h.name,...u?.filter((f)=>f!==h.name)??[]].slice(0,20))},[c,t])}}function Xt({emojis:c,onSelect:e}){let{t}=v(),[n,h]=o(null),{snapshot:u,handleSelect:f}=Yt(e),[m,b]=o(""),{hits:p,sections:g,links:S}=Gt(c,u,m),M=Jt(b,p!==null),{grid:O,box:A,changeQuery:C,clear:y,onJump:_,typeAhead:z,setSpied:I}=M,j=p!==null,k=j?void 0:M.spied??S[0]?.id;return a("div",{ref:A,"data-keeps-escape":m?"":void 0,className:"@container flex min-w-0 flex-col gap-1",onKeyDown:(D)=>{D.key==="Escape"&&m&&(D.preventDefault(),C(""))},children:[r(Pt,{debounceMs:0,value:m,onValueChange:C,placeholder:t("material.emoji.search","Search emoji")}),r($t,{label:t("material.emoji.categories","Emoji categories"),hint:t("material.emoji.categories-hint","Use the arrow keys to move between categories"),links:S,current:k,onJump:_}),j&&p.length===0?r(qt,{query:m,onClear:y}):r(Lt,{ref:O,sections:g,getKey:(D)=>D.name,getLabel:(D)=>D.name,renderItem:(D)=>D.emoji,onPick:f,onHighlight:h,onTypeAhead:z,onActiveSectionChange:I},j?"results":"sections"),r("p",{className:"truncate px-1 text-xs text-muted-foreground",children:n?`:${n.name}:`:t("material.emoji.pick","Choose an emoji")})]})}function _i({emojis:c,onSelect:e,className:t,toolbarItem:n}){let{t:h}=v(),[u,f]=o(!1),m=h("material.emoji.picker","Emoji"),b=r(ne,{variant:"ghost",tooltip:m,className:s("size-8 rounded-[var(--nxgt-icon-button-radius,0.25rem)]",t),children:r(ee,{})});return a(Tr,{open:u,onOpenChange:f,children:[r(Fo,{asChild:!0,children:n?r(oa,{asChild:!0,children:b}):r($e,{label:m,icon:r(ee,{}),priority:"pinned",more:{kind:"popover"},children:b})}),r(Cr,{align:"start","aria-label":m,className:"w-80 rounded border-border bg-background p-3 shadow-lg",children:r(Xt,{emojis:c,onSelect:(p)=>{e(p),f(!1)}})})]})}export{_i as EmojiPicker};
@@ -1 +0,0 @@
1
- import{as}from"./index.d8b8y928.js";export{as as createEventModelingServices};
@@ -1 +0,0 @@
1
- import"./index.mcyw2bze.js";import"./index.yfbwd99n.js";import"./index.7q6v461v.js";import{gc}from"./index.f6jhkm5c.js";import"./index.xrg5yg8d.js";import"./index.newjn1k4.js";import"./index.pyz71tqx.js";export{gc as diagram};
@@ -1 +0,0 @@
1
- import{Zo}from"./index.d8b8y928.js";export{Zo as createGitGraphServices};
@@ -1 +0,0 @@
1
- import{Mo,yc}from"./index.sv013f1z.js";import"./index.rn0vxns6.js";export{yc as Illustration,Mo as t};
@@ -1,2 +0,0 @@
1
- import{f,d,w,i,X,r,re,ke,B,Je,tr,yr,ci,ui}from"./index.rn0vxns6.js";var N=Object.defineProperty,A=(e,o)=>N(e,"name",{value:o,configurable:!0}),F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function H(e,o){e&&X(()=>e.dispatchEvent(o))}A(H,"dispatchDiscreteCustomEvent");var q=Object.defineProperty,S=(e,o)=>q(e,"name",{value:o,configurable:!0}),C={Horizontal:"horizontal",Vertical:"vertical"},P=C.Horizontal,J=Object.values(C),Rs=f(S(function(e,o){let{decorative:t,orientation:a=P,...n}=e,u=G(a)?a:P,s=u===C.Vertical?u:void 0,l=t?{role:"none"}:{"aria-orientation":s,role:"separator"};return r(F.div,{"data-orientation":u,...l,...n,ref:o})},"Separator"));function G(e){return J.includes(e)}S(G,"isValidOrientation");var K=Object.defineProperty,L=(e,o)=>K(e,"name",{value:o,configurable:!0}),Q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function U(e,o){e&&X(()=>e.dispatchEvent(o))}L(U,"dispatchDiscreteCustomEvent");var W=Object.defineProperty,Y=(e,o)=>W(e,"name",{value:o,configurable:!0}),Z="Toggle",ee=f(Y(function(e,o){let{pressed:t,defaultPressed:a,onPressedChange:n,...u}=e,[s,l]=Je({prop:t,onChange:n,defaultProp:a??!1,caller:Z});return r(Q.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:o,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})},"Toggle")),oe=Object.defineProperty,ae=(e,o)=>oe(e,"name",{value:o,configurable:!0}),_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ie(e,o){e&&X(()=>e.dispatchEvent(o))}ae(ie,"dispatchDiscreteCustomEvent");var te=Object.defineProperty,p=(e,o)=>te(e,"name",{value:o,configurable:!0}),m="ToggleGroup",b={Single:"single",Multiple:"multiple"},[I,j]=ke(m,[yr]),O=yr(),Sl=f(p(function(e,o){let{type:t,...a}=e;if(t===b.Single)return r(le,{role:"radiogroup",...a,ref:o});if(t===b.Multiple)return r(ne,{role:"toolbar",...a,ref:o});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[E,V]=I(m),le=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??"",onChange:n,caller:m});return r(E,{scope:e.__scopeToggleGroup,type:b.Single,value:w(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:d(()=>l(""),[l]),children:r(x,{...u,ref:o})})},"ToggleGroupImplSingle")),ne=f(p(function(e,o){let{value:t,defaultValue:a,onValueChange:n=p(()=>{},"onValueChange"),...u}=e,[s,l]=Je({prop:t,defaultProp:a??[],onChange:n,caller:m}),c=d((v)=>l((g=[])=>[...g,v]),[l]),h=d((v)=>l((g=[])=>g.filter((M)=>M!==v)),[l]);return r(E,{scope:e.__scopeToggleGroup,type:b.Multiple,value:s,onItemActivate:c,onItemDeactivate:h,children:r(x,{...u,ref:o})})},"ToggleGroupImplMultiple")),[ue,de]=I(m),x=f(p(function(e,o){let{__scopeToggleGroup:t,disabled:a=!1,rovingFocus:n=!0,orientation:u,dir:s,loop:l=!0,...c}=e,h=O(t),v=tr(s),g={dir:v,...c};return r(ue,{scope:t,rovingFocus:n,disabled:a,children:n?r(ci,{asChild:!0,...h,orientation:u,dir:v,loop:l,children:r(_.div,{...g,ref:o})}):r(_.div,{...g,ref:o})})},"ToggleGroupImpl")),y="ToggleGroupItem",El=f(p(function(e,o){let t=V(y,e.__scopeToggleGroup),a=de(y,e.__scopeToggleGroup),n=O(e.__scopeToggleGroup),u=t.value.includes(e.value),s=a.disabled||e.disabled,l={...e,pressed:u,disabled:s},c=i(null);return a.rovingFocus?r(ui,{asChild:!0,...n,focusable:!s,active:u,ref:c,children:r(R,{...l,ref:o})}):r(R,{...l,ref:o})},"ToggleGroupItem")),R=f(p(function(e,o){let{__scopeToggleGroup:t,value:a,...n}=e,u=V(y,t),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=u.type===b.Single?s:void 0;return r(ee,{...l,...n,ref:o,onPressedChange:(c)=>{c?u.onItemActivate(a):u.onItemDeactivate(a)}})},"ToggleGroupItemImpl")),se=Object.defineProperty,fe=(e,o)=>se(e,"name",{value:o,configurable:!0}),D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,o)=>{let t=re(`Primitive.${o}`),a=f((n,u)=>{let{asChild:s,...l}=n,c=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r(c,{...l,ref:u})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function ce(e,o){e&&X(()=>e.dispatchEvent(o))}fe(ce,"dispatchDiscreteCustomEvent");var pe=Object.defineProperty,T=(e,o)=>pe(e,"name",{value:o,configurable:!0}),k="Toolbar",[ve,Te]=ke(k,[yr,j]),z=yr();j();var[ge,me]=ve(k),Al=f(T(function(e,o){let{__scopeToolbar:t,orientation:a="horizontal",dir:n,loop:u=!0,...s}=e,l=z(t),c=tr(n);return r(ge,{scope:t,orientation:a,dir:c,children:r(ci,{asChild:!0,...l,orientation:a,dir:c,loop:u,children:r(D.div,{role:"toolbar","aria-orientation":a,dir:c,...s,ref:o})})})},"Toolbar")),be="ToolbarSeparator",_l=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=me(be,t);return r(Rs,{orientation:n.orientation==="horizontal"?"vertical":"horizontal",...a,ref:o})},"ToolbarSeparator")),oa=f(T(function(e,o){let{__scopeToolbar:t,...a}=e,n=z(t);return r(ui,{asChild:!0,...n,focusable:!e.disabled,children:r(D.button,{type:"button",...a,ref:o})})},"ToolbarButton"));
2
- export{Rs,Sl,El,Al,_l,oa};
@@ -1,2 +0,0 @@
1
- import{e,m}from"./index.yfbwd99n.js";var Ee=e((o,t)=>{let n;if(t==="sandbox")n=m("#i"+o);return(t==="sandbox"?m(n.nodes()[0].contentDocument.body):m("body")).select(`[id="${o}"]`)},"getDiagramElement");
2
- export{Ee};