ryugi-artifacts 1.102.1 → 1.102.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +5 -5
- package/dist/server.cjs +1 -1
- package/dist/viewer/{ArtboardLayout-Csu2pQ-T.js → ArtboardLayout-BEcgcFOd.js} +12 -12
- package/dist/viewer/CommentPopover-C3k2ys-1.js +1 -0
- package/dist/viewer/{DocumentLayout-Byaaj0lf.js → DocumentLayout-sTWNaA3o.js} +2 -2
- package/dist/viewer/{DocumentPage-CrVLG3xw.js → DocumentPage-latIEoTp.js} +1 -1
- package/dist/viewer/{PreviewArtifactLayout-BKcZov33.js → PreviewArtifactLayout-CqXcOdxK.js} +1 -1
- package/dist/viewer/{PreviewLayout-h2V6IEPR.js → PreviewLayout-AYrRaL1J.js} +2 -2
- package/dist/viewer/{ReportLayout-C1A2NXor.js → ReportLayout-BlpuIdHN.js} +1 -1
- package/dist/viewer/{SlidesLayout-_aL_Wmn0.js → SlidesLayout-Cg-ZL9W5.js} +6 -6
- package/dist/viewer/{SnapshotDocument-BmyM7kKr.js → SnapshotDocument-B40GdnPe.js} +1 -1
- package/dist/viewer/{StoryboardLayout-DWmYoJbh.js → StoryboardLayout-C2-18dzZ.js} +1 -1
- package/dist/viewer/{ThreadView-uYestFjK.js → ThreadView-CqtHFrk_.js} +1 -1
- package/dist/viewer/{VerifyLayout-D3L_Nyhx.js → VerifyLayout-DNAp5mGi.js} +1 -1
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-BRjchUcR.js → VirtualizedEditor-uWe43zaI-DDsyAsfh.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-BiKuicf_.js → VirtualizedRenderer-C_d95FXi-Vq_z2yPz.js} +1 -1
- package/dist/viewer/WhiteboardLayout-BuyJEwNS.js +4 -0
- package/dist/viewer/{channel-BzQy5yb9.js → channel-WsGYBJN3.js} +3 -3
- package/dist/viewer/{dist-DJbqyYbr.js → dist-BKx2i2Bp.js} +1 -1
- package/dist/viewer/{dist-DSiP1sno.js → dist-BPLTpQo5.js} +1 -1
- package/dist/viewer/{dist-DxrXYjGy.js → dist-BtjjxT9L.js} +1 -1
- package/dist/viewer/{dist-BL7gVqxi.js → dist-C-XNmR5I.js} +1 -1
- package/dist/viewer/{dist-ChnAy31A.js → dist-CD6D4M-i.js} +1 -1
- package/dist/viewer/{dist-r4fmjkHw.js → dist-CSxMxiKd.js} +1 -1
- package/dist/viewer/{dist-Ckvl87v1.js → dist-Cavovuxi.js} +1 -1
- package/dist/viewer/{dist-BI7tUIez.js → dist-ClPH_mrv.js} +1 -1
- package/dist/viewer/{dist-DrVA7ut5.js → dist-Cv9nQ9De.js} +1 -1
- package/dist/viewer/{dist-CO1p9q1Z.js → dist-CyV0Zg_e.js} +1 -1
- package/dist/viewer/{dist-CVt5MFeC.js → dist-D1Rtkih1.js} +1 -1
- package/dist/viewer/{dist-B4EO2CPv.js → dist-DF7PCGc5.js} +1 -1
- package/dist/viewer/{dist-EEnCrnE5.js → dist-DJN0mLSv.js} +1 -1
- package/dist/viewer/{dist-CaBa68Xm.js → dist-DOAwS2QX.js} +1 -1
- package/dist/viewer/{dist-j0019Ujc.js → dist-DPRR6AvE.js} +1 -1
- package/dist/viewer/{dist-DBpGO_S5.js → dist-DQMC6coB.js} +1 -1
- package/dist/viewer/{dist-jEPSRJix.js → dist-DVeGz6Hn.js} +2 -2
- package/dist/viewer/{dist-Cdwc8_lc.js → dist-DWGWdalI.js} +1 -1
- package/dist/viewer/{dist-BHAJ5J6a.js → dist-SlN5ZzHW.js} +1 -1
- package/dist/viewer/{dist-DCj5-otB.js → dist-V5zBu8zr.js} +1 -1
- package/dist/viewer/{dist-Bo83M38T.js → dist-g2vfBPfC.js} +1 -1
- package/dist/viewer/{dist-BP8ay-gZ.js → dist-ghwddng4.js} +1 -1
- package/dist/viewer/{dist-B8JYmYN_.js → dist-nqwTHxZV.js} +1 -1
- package/dist/viewer/{dist-UhLZmzFt.js → dist-oWcL-DZu.js} +1 -1
- package/dist/viewer/{editor-2avuG1le.js → editor-BfOKfIhz.js} +4 -4
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index5.css +0 -4
- package/dist/viewer/preview.html +1 -1
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-Bob6oDU4.js → printDocument-DatfOXhT.js} +1 -1
- package/dist/viewer/{viewport-CFJHn_Y6-NgtbO-g_.js → viewport-CFJHn_Y6-C6DdguJp.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/WhiteboardLayout-BwzWcl_v.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./printDocument-
|
|
2
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{b as t,f as n,m as r,w as i}from"./route-CkVEiakc.js";import{t as a}from"./react-DlmbjZJV.js";import{Rt as o,Tr as s,_ as c,d as l,f as u,g as d,i as f,m as p,s as m,v as h}from"./url-64-774qp.js";import{t as g}from"./jsx-runtime-LKYXHABd.js";import{s as _}from"./mergeRefs-BoWyGCK7.js";import{Jr as v,_i as y,bn as b,gn as x,ir as S,ni as C,wn as w,xr as T,zr as E}from"./WhiteboardEditor-cZ32fLqJ-DHGUDfT6.js";import{B as D,Ct as O,F as k,I as A,L as ee,M as j,N as te,P as ne,R as re,V as ie,dt as ae,j as oe,z as se}from"./editor-2avuG1le.js";import{t as ce}from"./link-2-CdvyBGG6.js";import{i as le}from"./route-messages-BblikCub.js";import{a as M,n as ue,o as de}from"./labels-6JqNXprT.js";import{n as fe}from"./tokens.stylex-No4bA13s.js";import{n as pe}from"./useMedia-CFebB4XU.js";import{a as N,i as me,t as he}from"./motion-Cy65kd7X.js";import{n as ge}from"./DocumentExportMenu-CxdmnnnP.js";import{a as P,i as F,r as _e}from"./read-resolutions-iX7kD7Xz.js";import{n as ve}from"./preference-oNdcNeml.js";import{a as I,n as ye,o as L,r as be,t as xe}from"./ref-CG33owdM.js";var R=g(),z=e(i(),1),B=e(a(),1),V=()=>document.documentElement.dataset.ryugiEmbedParent??null,Se=()=>V()??location.origin,Ce=e=>e.source===window.parent&&e.origin===Se();function we(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},Se())}function Te(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g}=t??{};return(0,B.useEffect)(()=>{n&&we(e,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g})},[e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g]),n&&window.parent!==window}function Ee(e,t,n){let r=(0,B.useMemo)(()=>l(),[]),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(t);o.current=t;let s=(0,B.useRef)(n);s.current=n,(0,B.useEffect)(()=>{if(r)return u((e,t)=>{e.kind===`chrome`&&a(e.hosted),e.kind===`history`&&o.current(e.action),t===window.parent&&e.kind===`document-export`&&e.format===`pdf`&&s.current?.()})},[r]);let{activity:c,comments:d,history:f,historyOpen:m,documentExport:h}=e;return(0,B.useEffect)(()=>{r&&p({kind:`header`,activity:c,comments:d,history:f,historyOpen:m,documentExport:h})},[r,c,d,f,m,h]),r&&i}var De=`svg[role="img"] text[font-family*="Excalifont"] { font-family: ${x}; }`;function Oe(){let e=ve();return(0,R.jsx)(R.Fragment,{children:e&&(0,z.createPortal)((0,R.jsx)(`style`,{"data-diagram-font-style":!0,children:De}),document.head)})}var H=(e,t,n,r)=>e.find(e=>t<e.bottom+r&&t+n+r>e.top);function U(e,t,n,r){for(let i=H(e,t,n,r);i;)t=i.bottom+r,i=H(e,t,n,r);return t}function ke(e,t,n,r){for(let i=H(e,t,n,r);i;)t=i.top-r-n,i=H(e,t,n,r);return t}function Ae(e,t,n,r,i){let a=e.top-i-t.height;if(a<0||H(r,a,t.height,i))return null;let o=t.anchorTop-a,s=[],c=a;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.top+t.height+i<=c)break;let a=c-i-t.height;if(t.fixed||a<0||H(r,a,t.height,i))return null;o+=t.top-a,s.push([e,a]),c=a}return{cost:o,moves:s,top:a}}function je(e,t,n,r=[]){let i=[...e].sort((e,t)=>e.anchorTop-t.anchorTop),a=n?i.findIndex(e=>e.id===n):-1,o=Math.max(a,0),s=[],c=-1/0;for(let e=o;e<i.length;e++){let n=i[e],o=Math.max(n.anchorTop,c),l=H(r,o,n.height,t);if(l){let e=U(r,o,n.height,t),i=Ae(l,n,s,r,t);if(i&&i.cost<=e-n.anchorTop){for(let[e,t]of i.moves)s[e].top=t;o=i.top}else o=e}s.push({id:n.id,top:o,height:n.height,fixed:e===a}),c=o+n.height+t}let l={};for(let e of s)l[e.id]=e.top;if(a>0){let e=l[i[a].id];for(let n=a-1;n>=0;n--){let a=i[n],o=Math.min(a.anchorTop,e-t-a.height),s=H(r,o,a.height,t);if(s){let n=ke(r,o,a.height,t),i=s.bottom+t;o=i+a.height+t<=e&&!H(r,i,a.height,t)&&Math.abs(i-a.anchorTop)<Math.abs(a.anchorTop-n)?i:n}l[a.id]=o,e=o}}return l}function Me(e,t,n){let r=Math.max(e.x,t.x-n),i=(r+t.x)/2,a=r>e.x?` H${r}`:``;return`M${e.x} ${e.y}${a} C${i} ${e.y} ${i} ${t.y} ${t.x} ${t.y}`}var Ne=8,Pe=3,Fe=18;function W(e){let t=e.right+Ne;return{left:t,right:t+Pe,top:e.top,bottom:e.bottom}}function Ie(e){return{x:e.right,y:e.top+Math.min(Fe,(e.bottom-e.top)/2)}}function Le(e,t,n,r){return{left:Math.max(t.left,Math.min(e.left,t.right-n)),top:e.bottom+r}}var G=10;function Re(e,t,n,r,i){let a=Math.max(t.left,Math.min(e.left,t.right-n)),o=e.bottom+G;return i.top+o+r<=i.height-i.reserved-8?{left:a,top:o,placement:`below`}:{left:a,top:e.top-r-G,placement:`above`}}var K=e=>e.kind===`element`?[]:e.blocks??(e.kind===`block`?[{id:e.threadId,element:e.element}]:[]),q=e=>e.kind===`text`?e.ranges??[e.range]:[],ze=4;function Be(e){return[...q(e).flatMap(e=>[...e.getClientRects()]),...K(e).map(e=>W(e.element.getBoundingClientRect()))].sort((e,t)=>e.top-t.top||e.left-t.left)}function Ve(e){if(e.kind===`element`)return e.node.isConnected?D(e.node):null;let t=Be(e).at(-1);return t?e.kind===`text`?{x:t.right,y:t.bottom}:Ie(t):null}function He(e,t,n){let r=document.createRange(),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=0,o=!1;for(let e=i.nextNode();e;e=i.nextNode()){let i=a+e.length;if(!o&&t<=i&&(r.setStart(e,t-a),o=!0),o&&n<=i)return r.setEnd(e,n-a),r;a=i}return r.selectNodeContents(e),r}function Ue(e,t,n,r=0){let[i,a]=(0,B.useState)([]);return(0,B.useEffect)(()=>{if(!e||!n)return;let r=()=>{let r=e.getEditorState().read(()=>{let e=new Map;for(let t of T().getChildren()){let n=C(t,O);n&&e.set(n,t.getKey())}return e}),i=n.getBoundingClientRect().top-n.scrollTop,o=[];for(let n of t){let t=M(n.anchor).flatMap(t=>{let n=r.get(t),i=n?e.getElementByKey(n):null;return i?[{id:t,element:i}]:[]}),a=t[0]?.element;if(!a)continue;if(n.anchor.diagram){let e=ie(a,n.id);if(e){let t=e.getBoundingClientRect(),r=n.anchor.diagram.kind===`edge`?D(e).y:t.top;o.push({threadId:n.id,top:r-i,kind:`element`,node:e})}else o.push({threadId:n.id,top:a.getBoundingClientRect().top-i,kind:`block`,element:a,blocks:t});continue}if(n.anchor.textRanges){let e=new Map(n.anchor.textRanges.map(e=>[e.blockId,e])),r=[],s=[],c;for(let n of t){let t=e.get(n.id),a=t?F(n.element.textContent??``,t.quote,t.start):`block`;if(a===`block`)s.push(n),c??=n.element.getBoundingClientRect().top-i;else{let e=He(n.element,a.start,a.end);r.push(e);let t=e.getClientRects()[0]??n.element.getBoundingClientRect();c??=t.top-i}}r.length?o.push({threadId:n.id,top:c,kind:`text`,range:r[0],ranges:r,blocks:s}):o.push({threadId:n.id,top:c,kind:`block`,element:a,blocks:s});continue}let s=n.anchor.blockIds?`block`:F(a.textContent??``,n.anchor.quote);if(s===`block`){o.push({threadId:n.id,top:a.getBoundingClientRect().top-i,kind:`block`,element:a,blocks:t});continue}let c=He(a,s.start,s.end),l=c.getClientRects()[0]??a.getBoundingClientRect();o.push({threadId:n.id,top:l.top-i,kind:`text`,range:c})}a(o)};r();let i=0,o=()=>{cancelAnimationFrame(i),i=requestAnimationFrame(r)},s=e.registerUpdateListener(o),c=new ResizeObserver(o);c.observe(n);let l=e.getRootElement();return l&&c.observe(l),()=>{cancelAnimationFrame(i),s(),c.disconnect()}},[e,t,n,r]),i}function We(e,t,n){(0,B.useEffect)(()=>{if(typeof CSS>`u`||!(`highlights`in CSS))return;let r=P(t,n),i=e.filter(e=>r.has(e.threadId)&&e.threadId!==n).flatMap(q),a=e.filter(e=>e.threadId===n).flatMap(q);return CSS.highlights.set(`ryugi-comment`,new Highlight(...i)),CSS.highlights.set(`ryugi-comment-active`,new Highlight(...a)),()=>{CSS.highlights.delete(`ryugi-comment`),CSS.highlights.delete(`ryugi-comment-active`)}},[e,t,n])}function Ge(e,t){(0,B.useEffect)(()=>{if(t?.length){for(let e of t)e.setAttribute(`data-comment-draft`,``);return()=>{for(let e of t)e.removeAttribute(`data-comment-draft`)}}if(e&&typeof CSS<`u`&&`highlights`in CSS)return CSS.highlights.set(`ryugi-comment-draft`,new Highlight(e)),()=>{CSS.highlights.delete(`ryugi-comment-draft`)}},[e,t])}function Ke(e,t,n){for(let r of e){if(r.kind===`element`)continue;let e=r.kind===`block`||K(r).length?ze:0;for(let i of Be(r))if(t>=i.left-e&&t<=i.right+e&&n>=i.top&&n<=i.bottom)return r.threadId}return null}var qe=e=>Math.max(0,Math.min(window.scrollY+e.getBoundingClientRect().top-100,document.documentElement.scrollHeight-window.innerHeight));function Je(e){window.scrollTo({top:qe(e),behavior:`instant`})}function J(e,t){let n=qe(e);if(N())return window.scrollTo({top:n,behavior:`instant`}),t?.(),()=>{};let r=()=>{window.removeEventListener(`wheel`,i),window.removeEventListener(`touchmove`,i)},i=()=>{a.stop(),r()},a=o({keyframes:[window.scrollY+1,n],type:`spring`,stiffness:1e3,damping:250,onUpdate:e=>window.scrollTo({top:e,behavior:`instant`}),onComplete:()=>{r(),t?.()}});return window.addEventListener(`wheel`,i,{passive:!0}),window.addEventListener(`touchmove`,i,{passive:!0}),i}var Y=12,Ye=40,Xe=18;function Ze({id:e,onHeight:t,children:n}){let r=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{let n=r.current;if(!n)return;let i=new ResizeObserver(()=>t(e,n.offsetHeight));return i.observe(n),t(e,n.offsetHeight),()=>i.disconnect()},[e,t]),(0,R.jsx)(`div`,{ref:r,children:n})}function Qe({narrow:e,threads:t,anchors:n,blocked:i,activeId:a,actions:o,onActivate:s,railRef:c,agent:l}){let[u,d]=(0,B.useState)({}),[f,p]=(0,B.useState)(0),m=(0,B.useCallback)((e,t)=>p(t),[]),[h,g]=(0,B.useState)([]),_=(0,B.useRef)(null),v=(0,B.useRef)(new Map).current,y=(0,B.useRef)((e,t)=>d(n=>n[e]===t?n:{...n,[e]:t})).current,b=(0,B.useCallback)(e=>{_.current=e,c(e)},[c]),x=new Map(n.map(e=>[e.threadId,e.top])),S=t.filter(e=>x.has(e.id)),C=t.filter(e=>!x.has(e.id)&&!e.messages.every(e=>e.deleted)),w=S.map(e=>({id:e.id,anchorTop:x.get(e.id),height:u[e.id]??120})),T=je(w,Y,a??void 0,i),E=Math.max(0,...w.map(e=>(T[e.id]??0)+e.height)),D=U(i??[],E+Y,f,Y),O=JSON.stringify(T);(0,B.useLayoutEffect)(()=>{let r=_.current;if(e||!r)return g([]);let i=r.getBoundingClientRect(),o=P(t,a),s=[];for(let e of n){let t=T[e.threadId],n=Ve(e);if(t===void 0||!n||!o.has(e.threadId))continue;let r={x:n.x-i.left,y:n.y-i.top};s.push({id:e.threadId,d:Me(r,{x:0,y:t+Xe},Ye)})}g(s)},[e,n,t,a,O]),(0,B.useEffect)(()=>{let t=a?v.get(a):void 0;if(e||!t)return;let n=!1,r=()=>{},i=t.getAnimations({subtree:!0}).map(e=>e.finished.catch(()=>void 0));return Promise.all(i).then(()=>{!n&&se(t.getBoundingClientRect(),window.innerHeight)&&(r=J(t))}),()=>{n=!0,r()}},[a,e,v]);let k=e=>(0,R.jsx)(ee,{actions:o,active:e.id===a,agent:l,thread:e,onActivate:()=>s(e.id)});return e?(0,R.jsxs)(`div`,{"aria-label":r(`document.commentsLabel`),ref:b,role:`region`,className:`x78zum5 xdt5ytf x1v2ro7d xh8yej3 x7ep2pv xvueqy4`,children:[[...S].sort((e,t)=>x.get(e.id)-x.get(t.id)).map(e=>(0,R.jsx)(`div`,{children:k(e)},e.id)),C.length>0?(0,R.jsx)(`div`,{className:`xqui205 x1e56ztr xddlp02 xqfszdh x1j6dyjg`,children:r(`document.originalDeleted`)}):null,C.map(e=>(0,R.jsx)(`div`,{children:k(e)},e.id))]}):(0,R.jsxs)(`aside`,{"aria-label":r(`document.commentsLabel`),ref:b,className:`x1n2onr6 xh8yej3 x2lah0s`,style:{minHeight:E},children:[(0,R.jsx)(`svg`,{className:`x10l6tqk x13vifvy xu96u03 x1i1rx1s xjm9jq1 x1rea2x4 x47corl`,children:h.map(e=>(0,R.jsx)(`path`,{d:e.d,fill:`none`,stroke:e.id===a?fe.warningStrong:`currentColor`,strokeDasharray:e.id===a?void 0:`3 3`,strokeOpacity:e.id===a?1:.25},e.id))}),S.map(e=>(0,R.jsx)(`div`,{ref:t=>{t?v.set(e.id,t):v.delete(e.id)},className:`x10l6tqk xu96u03 xh8yej3 xhtitgo x14h5d43 xx6bhzk`,style:{top:T[e.id]},children:(0,R.jsx)(Ze,{id:e.id,onHeight:y,children:k(e)})},e.id)),C.length>0?(0,R.jsx)(`div`,{style:{position:`absolute`,top:D,left:0,width:`100%`,zIndex:2},children:(0,R.jsxs)(Ze,{id:`orphaned`,onHeight:m,children:[(0,R.jsx)(`div`,{className:`xqui205 x1e56ztr xddlp02 xqfszdh x1j6dyjg`,children:r(`document.originalDeleted`)}),C.map(e=>(0,R.jsx)(`div`,{style:{marginBottom:Y},children:k(e)},e.id))]})}):null]})}function $e({container:e,anchors:t,threads:n,activeId:r}){let[i,a]=(0,B.useState)([]);return(0,B.useLayoutEffect)(()=>{if(!e)return a([]);let i=e.getBoundingClientRect(),o=P(n,r),s=[];for(let e of t)if(o.has(e.threadId))for(let t of K(e)){let n=W(t.element.getBoundingClientRect());s.push({id:e.threadId,key:`${e.threadId}:${t.id}`,left:n.left-i.left,top:n.top-i.top,width:n.right-n.left,height:n.bottom-n.top})}a(s)},[e,t,n,r]),i.map(e=>(0,R.jsx)(`div`,{"data-comment-block":e.id,...{0:{className:`x10l6tqk x1cum3z5 x47corl x1f2496h x15406qy xx6bhzk`},1:{className:`x10l6tqk x1cum3z5 x47corl x15406qy xx6bhzk x5hs8br`}}[e.id===r|0],style:{left:e.left,top:e.top,width:e.width,height:e.height}},e.key))}var et=/^#([\w-]{4,64})$/,tt=/^#ryugi-host=/,nt=e=>et.exec(e)?.[1]??null;function X(e=window){if(e.parent===e||!e.parent)return e;try{return e.parent.location.href,e.parent}catch{return e}}var rt=(e=X())=>nt(e.location.hash);function it(e,t=X()){let{hash:n,pathname:r,search:i}=t.location;if(tt.test(n))return;let a=e?`#${e}`:``;n!==a&&t.history.replaceState(t.history.state,``,`${r}${i}${a}`)}function at(e,t){let n=new URL(e);return n.hash=t,n.toString()}var ot=new Set([`h2`,`h3`]),st=160;function ct(e){let t=document.createRange();t.selectNodeContents(e);let n=t.getClientRects?.(),r=n&&n.length>0?n.item(n.length-1):null,i=e.getBoundingClientRect();return r&&r.width>0?r:i}function lt(e,t){e.getEditorState().read(()=>{for(let n of t){let t=S(n),r=e.getElementByKey(n);if(!w(t)||!r)continue;let i=ot.has(t.getTag())?C(t,O):``;i?r.id=i:r.removeAttribute(`id`)}})}function ut({editor:e,shareBase:t}){let[n,i]=(0,B.useState)(null),[a,o]=(0,B.useState)(!1),c=(0,B.useRef)(void 0);if((0,B.useEffect)(()=>{if(e.hasNodes([b]))return e.registerMutationListener(b,t=>lt(e,[...t].filter(([,e])=>e!==`destroyed`).map(([e])=>e)))},[e]),(0,B.useEffect)(()=>{let t=()=>clearTimeout(c.current),n=()=>{t(),c.current=setTimeout(()=>i(null),st)},r=r=>{let a=r.target;if(a?.closest?.(`[data-heading-link]`))return t();let s=e.getRootElement(),c=a?.closest?.(`h2[id], h3[id]`);if(!s||!c||!s.contains(c))return n();t();let l=ct(c);o(!1),i({id:c.id,left:l.right+window.scrollX+6,top:l.top+window.scrollY+(l.height-24)/2})};return document.addEventListener(`pointerover`,r),()=>{t(),document.removeEventListener(`pointerover`,r)}},[e]),!n)return null;let l=()=>{let e=at(t||X().location.href,n.id);navigator.clipboard?.writeText(e),it(n.id),o(!0)},u=r(a?`document.headingLinkCopied`:`document.copyHeadingLink`);return(0,z.createPortal)((0,R.jsx)(`button`,{"aria-label":u,"data-heading-link":``,style:{left:n.left,top:n.top},title:u,type:`button`,onClick:l,onPointerDown:e=>e.preventDefault(),...{0:{className:`x10l6tqk xoegz02 xrvj5dj x1ku5rj1 xvy4d1p xxk0z11 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 xddlp02 x157umkc x1in2gmu x1ypdohk x1de99jn xaatb59 x1y3gkto x1uczgqu x60py1w`},1:{className:`x10l6tqk xoegz02 xrvj5dj x1ku5rj1 xvy4d1p xxk0z11 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 x1ypdohk x1de99jn xaatb59 x1y3gkto x1uczgqu x60py1w x1cge3fn`}}[!!a|0],children:a?(0,R.jsx)(s,{"aria-hidden":`true`,size:14}):(0,R.jsx)(ce,{"aria-hidden":`true`,size:14})}),document.body)}var dt=620,ft=class extends B.Component{state={leaving:null,shown:null};static getDerivedStateFromProps(e,t){return e.history?.immersive?t.shown===e.history?null:{shown:e.history}:t.shown?{shown:null,leaving:t.shown}:null}host=null;paper=null;viewport=null;shell=null;entry=null;slide=null;exitTimer=null;getSnapshotBeforeUpdate(){return{rect:this.paper?.getBoundingClientRect()??null,x:window.scrollX,y:window.scrollY}}animate(e,t){if(!this.paper||!e||N()||typeof this.paper.animate!=`function`)return;this.slide?.cancel();let n=t??this.paper.getBoundingClientRect(),r=Math.max(56,e.top),i=parseFloat(getComputedStyle(this.paper).borderLeftWidth)||0,a=t?0:i,o=t?i:0;this.slide=this.paper.animate([{left:e.left-a+`px`,top:r-a+`px`,width:e.width+a*2+`px`,height:Math.min(e.height,window.innerHeight-r)+a+`px`},{left:n.left-o+`px`,top:n.top-o+`px`,width:n.width+o*2+`px`,height:n.height+o+`px`}],{duration:dt,easing:he,fill:t?`forwards`:`none`}),this.slide.finished.catch(()=>{})}unlock=()=>{if(this.exitTimer&&clearTimeout(this.exitTimer),this.exitTimer=null,this.slide?.cancel(),this.slide=null,this.host&&(this.host.style.height=``),this.entry){let e=this.entry;document.documentElement.style.overflow=e.overflow,document.documentElement.style.scrollbarGutter=e.gutter,window.scrollTo(e.x,e.y)}this.entry=null};componentDidUpdate(e,t,n){let r=!!this.props.history?.immersive,i=!!e.history?.immersive;if(r&&!i)this.exitTimer&&clearTimeout(this.exitTimer),this.exitTimer=null,this.state.leaving&&this.setState({leaving:null}),this.entry||(this.entry={...n,focus:document.activeElement,overflow:document.documentElement.style.overflow,gutter:document.documentElement.style.scrollbarGutter,offset:Math.max(0,56-(n.rect?.top??56))},this.host&&(this.host.style.height=(n.rect?.height??0)+`px`)),n.rect&&this.shell?.style.setProperty(`--history-reading-width`,n.rect.width+`px`),document.documentElement.style.scrollbarGutter=`stable`,document.documentElement.style.overflow=`hidden`,this.viewport&&(this.viewport.scrollTop=this.entry.offset),this.animate(n.rect),this.shell?.querySelector(`[data-history-exit]`)?.focus({preventScroll:!0});else if(!r&&i&&this.entry){let e=this.entry;this.viewport&&(this.viewport.scrollTop=e.offset),window.scrollTo(e.x,e.y),e.focus?.focus({preventScroll:!0});let t=e.rect;t&&this.animate(n.rect,{left:t.left,top:Math.max(56,t.top),width:t.width,height:Math.min(t.height,window.innerHeight-Math.max(56,t.top))});let r=()=>{this.setState({leaving:null},()=>{this.unlock(),e.focus?.focus({preventScroll:!0})})};N()?r():this.exitTimer=setTimeout(r,dt)}else!r&&!this.state.leaving&&(!e.history&&this.props.history&&(this.entry={...n,focus:null,overflow:document.documentElement.style.overflow,gutter:document.documentElement.style.scrollbarGutter,offset:0}),e.history&&!this.props.history&&this.entry&&(window.scrollTo(this.entry.x,this.entry.y),this.entry=null))}componentWillUnmount(){this.unlock()}trap=e=>{if(!this.props.history?.immersive||e.key!==`Tab`)return;let t=[...this.shell?.querySelectorAll(`button:not(:disabled),a[href],summary,[tabindex="0"]`)??[]].filter(e=>!e.closest(`[hidden],[aria-hidden="true"],[inert]`)),n=t[0],r=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())};render(){let{history:e,children:t}=this.props,n=e?.immersive?e:this.state.leaving,i=!!n,a=!!e?.ready;return(0,R.jsx)(`div`,{className:`history-body`,ref:e=>{this.host=e},children:(0,R.jsxs)(`div`,{"aria-label":e?.immersive?r(`history.title`):void 0,"aria-modal":e?.immersive?!0:void 0,className:`history-space-shell`,"data-immersive":i?``:void 0,"data-open":e?.immersive?``:void 0,inert:!(!this.state.leaving||e),role:e?.immersive?`dialog`:void 0,ref:e=>{this.shell=e},onKeyDown:this.trap,children:[n?.space,(0,R.jsx)(`div`,{className:`history-space-paper`,ref:e=>{this.paper=e},children:(0,R.jsxs)(`div`,{className:`history-space-scroll`,tabIndex:i?0:void 0,ref:e=>{this.viewport=e},children:[(0,R.jsx)(`div`,{className:`history-body-comparison`,"data-ready":a,hidden:!a,children:e?.content}),(0,R.jsx)(`div`,{hidden:a,children:t})]})})]})})}};function pt({history:e,children:t}){let[n,r]=(0,B.useState)({current:e,panel:e?.panel??null});return n.current!==e&&r({current:e,panel:e?.panel??n.panel}),(0,B.useEffect)(()=>{if(e)return;let t=setTimeout(()=>{r(e=>e.current?e:{...e,panel:null})},N()?0:280);return()=>clearTimeout(t)},[e]),(0,R.jsx)(`div`,{className:`history-rail`,"data-moving":e||n.panel?``:void 0,"data-open":e?``:void 0,children:(0,R.jsxs)(`div`,{className:`history-rail-track`,children:[(0,R.jsx)(`div`,{"aria-hidden":e?!0:void 0,className:`history-rail-comments`,inert:!!e,children:t}),(0,R.jsx)(`div`,{"aria-hidden":!e||void 0,className:`history-rail-panel`,inert:!e,children:e?.panel??n.panel})]})})}var mt=3e3;function Z(e,t){let n=e.getRootElement()?.closest(`.history-body`)?.querySelector(`.history-body-comparison[data-ready="true"]`);if(n)return[...n.querySelectorAll(`[data-history-block-id]`)].find(e=>e.dataset.historyBlockId===t)?.querySelector(`.history-current :is(h1, h2, h3, h4, h5, h6)`)??null;let r=e.getEditorState().read(()=>T().getChildren().find(e=>C(e,O)===t)?.getKey());return r?e.getElementByKey(r):null}function ht(e,t){let[n]=(0,B.useState)(rt),r=(0,B.useRef)(n),i=(0,B.useRef)(n),a=(0,B.useRef)(void 0),o=(0,B.useRef)(null),s=(0,B.useRef)(null),c=(0,B.useCallback)(e=>{o.current=e,it(e)},[]),l=(0,B.useCallback)(t=>{let n=e&&Z(e,t);return n?(a.current?.(),a.current=J(n,()=>{r.current===t&&!i.current&&(r.current=null)}),!0):!1},[e]),u=(0,B.useCallback)(t=>{let n=e&&Z(e,t);return n?(a.current?.(),Je(n),r.current===t&&!i.current&&(r.current=null),!0):!1},[e]),d=(0,B.useCallback)(e=>{let t={lock:r.current,pending:i.current};r.current=e,i.current=null,l(e)?c(e):(r.current=t.lock,i.current=t.pending)},[l,c]);return(0,B.useEffect)(()=>{if(!e)return;let t=()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let t=i.current;t&&(i.current=null,h()?r.current===t&&(r.current=null):u(t)?s.current={blockId:t,until:Date.now()+mt}:i.current=t)};t();let n=()=>{r.current=null,i.current=null,s.current=null},c=new ResizeObserver(()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let t=s.current;t&&(Date.now()>t.until?s.current=null:u(t.blockId))}),l=e.registerRootListener(e=>{c.disconnect(),e&&c.observe(e)}),d=X(),f=()=>{let e=rt();e&&e!==o.current&&(r.current=e,i.current=e,t())},p=e.registerUpdateListener(t);return window.addEventListener(`wheel`,n,{passive:!0}),window.addEventListener(`touchmove`,n,{passive:!0}),window.addEventListener(`keydown`,n),d.addEventListener(`hashchange`,f),()=>{p(),l(),c.disconnect(),a.current?.(),window.removeEventListener(`wheel`,n),window.removeEventListener(`touchmove`,n),window.removeEventListener(`keydown`,n),d.removeEventListener(`hashchange`,f)}},[e,u]),(0,B.useEffect)(()=>{if(e){if(r.current){if(i.current||t!==r.current)return;r.current=null}else c(t)}},[t,e,c]),{scrollTo:d}}function gt({editor:e}){return ht(e,null),null}var _t={h2:0,h3:1};function vt(){let e=[],t=null,n=null;for(let r of T().getChildren()){let i=w(r)?r.getTag():void 0,a=C(r,O);if(i===`h1`){t={key:r.getKey(),blockId:a,text:r.getTextContent()},n=null;continue}let o=i===void 0?void 0:_t[i];o!==void 0&&(n={key:r.getKey(),blockId:a,text:r.getTextContent(),depth:o,part:t,blocks:[]},e.push(n)),a&&n?.blocks.push(a)}return e}function yt(e,t){let n=new Map;for(let t of e)for(let e of t.blocks)n.set(e,t.blockId);let r=new Set;for(let e of t)if(e.status===`open`)for(let t of M(e.anchor)){let e=n.get(t);e&&r.add(e)}return r}function bt(e){let t=new Set(e.map(e=>e.part?.key??null)).size>1,n=[],r;for(let i of e){let e=n.at(-1),a=i.part!==r;i.depth===0||!e||a?n.push({head:i,children:[],index:n.length,partStart:t&&a?i.part:null}):e.children.push(i),r=i.part}return n}var Q={toc:{kVAEAm:`x7wzq59`,kY2c9j:`x1w0boku`,k87sOh:`xossvpg`,kSGwAc:`x1y8v6su`,keoZOQ:`x1tfhste`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kskxy:`x1r4ahda`,k7Eaqz:`xeuugli`,kMv6JI:`xqfszdh`,kGuDYH:`x1ct8sxb`,kMwMTN:`x1bo0w0s`,$$css:!0},rail:{kzqmXN:`x1td3qas`,$$css:!0},list:{kAzted:`x2lwn1j`,kORKVm:`x1odjw0f`,kacamN:`x1e4zzel`,k5wCbM:`x1rohswg`,k8WAf4:`xj8oexa`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kzqmXN:`xh8yej3`,kZKoxP:`xlrawln`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x1kogg8i`,kWkggS:`xjbqb8w`,kkrTdU:`x1ypdohk`,kMeerF:`x1de99jn`,k3XXqK:`xaatb59`,kInvED:`x1g40iwv`,kjBf7l:`x1uczgqu x60py1w`,$$css:!0},tick:{kmuXW:`x2lah0s`,kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,keTefX:`xdwrcjd`,kaIpWk:`x1nj7uno`,kWkggS:`x174nbcu`,kmkexE:`x10iii20`,$$css:!0},tickH2:{kzqmXN:`xw4jnvo`,keTefX:`x1lziwak`,kWkggS:`xxwmxtg`,$$css:!0},tickActive:{kzqmXN:`xw4jnvo`,keTefX:`x1lziwak`,kWkggS:`x15az74h`,$$css:!0},tickDot:{keTefX:`x165d6jo`,$$css:!0},part:{kB7OPa:`x9f619`,kZKoxP:`x10w6t97`,kVQacm:`xb3r6kr`,kLKAdn:`xyinxu5`,kGuDYH:`x1j6dyjg`,k63SB2:`x1s688f`,kLWn49:`x1wfe3co`,kb6lSQ:`x16q24ku`,kMwMTN:`xddlp02`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,kmkexE:`x1un5det`,$$css:!0},partFirst:{kZKoxP:`xxk0z11`,kLKAdn:`x1yrsyyn`,$$css:!0},row:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,kzqmXN:`xh8yej3`,kZKoxP:`xlrawln`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x12oqio5`,kWkggS:`xjbqb8w`,kMwMTN:`x1bo0w0s xytdrwj`,kVVagm:`xln7xf2`,k9WMMc:`x1yc453h`,kkrTdU:`x1ypdohk`,kmkexE:`x137m0jx x413zg9`,kMeerF:`x1de99jn`,k3XXqK:`xaatb59`,kInvED:`x1g40iwv`,kjBf7l:`x1uczgqu x60py1w`,$$css:!0},rowNested:{kZCmMZ:`x1onr9mi`,kGuDYH:`xfifm61`,kMwMTN:`xddlp02 xytdrwj`,$$css:!0},rowCurrent:{kZKoxP:`x1fgtraw`,kGuDYH:`x2ouz8m`,k63SB2:`x1s688f`,kMwMTN:`xo2rkog xytdrwj`,$$css:!0},rowActive:{k63SB2:`x1s688f`,kMwMTN:`x1cge3fn x157umkc`,$$css:!0},rowText:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},count:{kmuXW:`x2lah0s`,kGuDYH:`x1j6dyjg`,k63SB2:`xo1l8bm`,kMwMTN:`xc7n51q`,kcqcaj:`xss6m8b`,$$css:!0},fold:{k1xSpc:`xrvj5dj`,k9llMU:`xihq33y`,k33iCy:`xlshs6z`,kSiTet:`xg01cxk`,kmkexE:`x1u0be13 x9kvfbb`,$$css:!0},foldOpen:{k9llMU:`x1tu4anv`,k33iCy:`xnpuxes`,kSiTet:`x1hc1fzr`,kmkexE:`xjgrksx x9kvfbb`,$$css:!0},foldRows:{kAzted:`x2lwn1j`,kVQacm:`xb3r6kr`,k3aq6I:`x1bvilyr`,kmkexE:`x1pagzdl x9kvfbb`,$$css:!0},foldRowsOpen:{k3aq6I:`x1c071of`,kmkexE:`x94wcrn x9kvfbb`,$$css:!0},fadeNear:{kSiTet:`xiiclqw`,$$css:!0},fadeMid:{kSiTet:`xf9vgkq`,$$css:!0},fadeFar:{kSiTet:`x197sbye`,$$css:!0},dot:{kmuXW:`x2lah0s`,kzqmXN:`x1ftt334`,kZKoxP:`x1ycjhwn`,kaIpWk:`x16rqkct`,kWkggS:`xzkukvh`,$$css:!0},card:{kVAEAm:`x10l6tqk`,kY2c9j:`x1w0boku`,k87sOh:`xn0lweg`,kbCHJM:`x6f9vd5`,kzqmXN:`x1hfn5x7`,kskxy:`x1r4ahda`,kORKVm:`x1odjw0f`,kB7OPa:`x9f619`,k8WAf4:`x1vvogim`,kg3NbH:`xaope02`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xgcsv5v`,kaIpWk:`x1q4ynmn`,kWkggS:`x12ilycc`,kGVxlE:`x1d5q07e`,$$css:!0}},xt=120,St=200,Ct=150,wt=new Set;function Tt(e,t){let[n,r]=(0,B.useState)({key:null,reading:!1});return(0,B.useEffect)(()=>{if(!e)return;let n=()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let n=t[0]?.key??null,i=!1;for(let r of t){let t=r.blockId?Z(e,r.blockId):e.getElementByKey(r.key);t&&t.getBoundingClientRect().top<xt&&(n=r.key,i=!0)}r(e=>e.key===n&&e.reading===i?e:{key:n,reading:i})};return n(),window.addEventListener(`scroll`,n,{passive:!0}),()=>window.removeEventListener(`scroll`,n)},[e,t]),n}function Et(e,t,n){(0,B.useEffect)(()=>{let n=()=>{let n=e.current,r=t.current;if(!n||!r)return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&(n.scrollTop=Math.max(0,n.scrollTop+a.top-i.top-(n.clientHeight-a.height)/2))};return n(),window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n),()=>{window.removeEventListener(`scroll`,n),window.removeEventListener(`resize`,n)}},n)}function Dt({editor:e,threads:t=[],variant:i=`column`}){let[a,o]=(0,B.useState)([]),[s,c]=(0,B.useState)(!1),[l,u]=(0,B.useState)(wt),d=(0,B.useRef)(void 0),f=(0,B.useRef)(void 0),p=(0,B.useRef)(null),m=(0,B.useRef)(null);(0,B.useEffect)(()=>{if(!e)return;let t=()=>o(e.getEditorState().read(vt));return t(),e.registerUpdateListener(t)},[e]);let h=Tt(e,a),g=a.find(e=>e.key===h.key),{scrollTo:_}=ht(e,h.reading&&g?.blockId?g.blockId:null),v=(0,B.useMemo)(()=>yt(a,t),[a,t]),y=(0,B.useMemo)(()=>bt(a),[a]);Et(p,m,[h.key,a]),(0,B.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]);let b=y.find(e=>e.head.key===h.key||e.children.some(e=>e.key===h.key)),x=b?.head.key??null,[S,C]=(0,B.useState)(x),w=e=>u(t=>t.has(e)?t:new Set(t).add(e));S!==x&&(C(x),s&&S&&w(S));let T=()=>{clearTimeout(d.current),c(!0)},E=()=>{clearTimeout(d.current),clearTimeout(f.current),d.current=setTimeout(()=>{c(!1),u(wt)},St)},D=e=>{clearTimeout(f.current),f.current=setTimeout(()=>w(e),Ct)},O=t=>{if(t.blockId)return _(t.blockId);let n=e?.getElementByKey(t.key);n&&J(n)};if(i===`hidden`)return null;if(a.length===0)return(0,R.jsx)(`nav`,{"data-variant":i,...n(Q.toc)});let k=i===`rail`,A=e=>y.map(t=>{let{head:r,children:i}=t,a=t===b,o=a||l.has(r.key),c=b?Math.abs(t.index-b.index):0,u=e!==`column`||s||c===0?null:c===1?Q.fadeNear:c<=3?Q.fadeMid:Q.fadeFar,d=(t,r,i,o,s=!1)=>{let c=t.key===h.key,l=e===`card`,d=o?(0,R.jsx)(`span`,{"data-commented":``,...n(Q.dot,e===`ticks`&&Q.tickDot)}):null;return(0,R.jsxs)(`button`,{"aria-current":c&&!l?`location`:void 0,"aria-label":t.text,ref:c&&!l?m:void 0,tabIndex:l?-1:void 0,type:`button`,onClick:()=>O(t),onFocus:s?()=>w(t.key):void 0,onPointerEnter:s?()=>D(t.key):void 0,onPointerLeave:s?()=>clearTimeout(f.current):void 0,...n(e===`ticks`?Q.item:Q.row,e!==`ticks`&&r&&Q.rowNested,!r&&a&&Q.rowCurrent,e!==`ticks`&&c&&Q.rowActive,!r&&u),children:[e===`ticks`?(0,R.jsx)(`span`,{...n(Q.tick,!r&&Q.tickH2,c&&Q.tickActive)}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{...n(Q.rowText),children:t.text}),i>0?(0,R.jsx)(`span`,{...n(Q.count),children:i}):null]}),d]},t.key)},p=!o&&i.some(e=>v.has(e.blockId));return(0,R.jsxs)(B.Fragment,{children:[t.partStart?(0,R.jsx)(`div`,{"aria-hidden":e===`ticks`||void 0,...n(Q.part,t.index===0&&Q.partFirst,u),children:e===`ticks`?null:t.partStart.text}):null,d(r,!1,o?0:i.length,v.has(r.blockId)||p,i.length>0),i.length>0?(0,R.jsx)(`div`,{inert:!o,...n(Q.fold,o&&Q.foldOpen),children:(0,R.jsx)(`div`,{...n(Q.foldRows,o&&Q.foldRowsOpen),children:i.map(e=>d(e,!0,0,v.has(e.blockId)))})}):null]},r.key)});return(0,R.jsxs)(`nav`,{"aria-label":r(`document.toc`),"data-expanded":s?`true`:`false`,"data-variant":i,onFocus:T,onPointerEnter:T,onPointerLeave:E,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||E()},...n(Q.toc,k&&Q.rail),children:[(0,R.jsx)(`div`,{"data-toc-list":``,ref:p,...n(Q.list),children:A(k?`ticks`:`column`)}),k&&s?(0,R.jsx)(`div`,{"data-toc-card":``,ref:e=>{e&&p.current&&(e.scrollTop=p.current.scrollTop)},...n(Q.card),children:A(`card`)}):null]})}var Ot=`.rich-table-scrollable-wrapper, .ryugi-mermaid-preview`;function kt(e,t){let n=e.getBoundingClientRect().right;return[...e.querySelectorAll(Ot)].map(e=>e.getBoundingClientRect()).filter(e=>e.right>n+1).map(e=>({top:e.top-t,bottom:e.bottom-t}))}var At=(e,t)=>e.length===t.length&&e.every((e,n)=>e.top===t[n].top&&e.bottom===t[n].bottom);function jt(e,t){let[n,r]=(0,B.useState)([]);return(0,B.useEffect)(()=>{let n=e?.getRootElement();if(!e||!t||!n)return;let i=()=>{let e=t.getBoundingClientRect().top-t.scrollTop,i=kt(n,e);r(e=>At(e,i)?e:i)};i();let a=0,o=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(i)},s=e.registerUpdateListener(o),c=new ResizeObserver(o);return c.observe(t),c.observe(n),()=>{cancelAnimationFrame(a),s(),c.disconnect()}},[e,t]),n}var Mt=56,Nt=40;function Pt(e,t,n){return n>=e.top&&n<=Math.max(e.bottom,e.top+Nt)&&t<=e.right+Mt}function Ft(e){return Math.max(e.getBoundingClientRect().right,...[...e.querySelectorAll(Ot)].map(e=>e.getBoundingClientRect().right))}function It(e,t){let n=e.getRootElement(),r=t instanceof Element?t:null;for(;r&&r.parentElement!==n;)r=r.parentElement;return n&&r instanceof HTMLElement?r:null}function Lt(e,t){let n=It(e,t);return n?Rt(e,n):null}function Rt(e,t){return e.read(()=>{for(let n of T().getChildren())if(e.getElementByKey(n.getKey())===t)return C(n,O)||null;return null})}function zt(e,t,n){let[r,i]=(0,B.useState)(null);return(0,B.useEffect)(()=>{if(!e||!t||!n){i(null);return}let r=0,a=null,o=e=>{e?.element!==a?.element&&(a=e,i(e))},s=()=>{cancelAnimationFrame(r),o(null)},c=t=>{if(cancelAnimationFrame(r),t.pointerType!==`mouse`&&t.pointerType!==`pen`||t.buttons!==0)return o(null);let{target:n,clientX:i,clientY:s}=t;r=requestAnimationFrame(()=>{let t=It(e,n);if(t){if(t===a?.element)return;let n=Rt(e,t);return o(n?{id:n,element:t}:null)}if(a){let{top:e,bottom:t}=a.element.getBoundingClientRect();if(Pt({top:e,bottom:t,right:Ft(a.element)},i,s))return}o(null)})};return document.addEventListener(`pointermove`,c),document.addEventListener(`scroll`,s,!0),document.documentElement.addEventListener(`pointerleave`,s),()=>{cancelAnimationFrame(r),document.removeEventListener(`pointermove`,c),document.removeEventListener(`scroll`,s,!0),document.documentElement.removeEventListener(`pointerleave`,s)}},[e,t,n]),(0,B.useMemo)(()=>{if(!r||!t||!n||!r.element.isConnected)return null;let e=r.element.getBoundingClientRect(),i=t.getBoundingClientRect(),a=document.createRange();return a.selectNodeContents(r.element),{kind:`block`,blockId:r.id,quote:``,elements:[r.element],range:a,left:e.left-i.left,right:Ft(r.element)-i.left,top:e.top-i.top,bottom:e.bottom-i.top}},[r,t,n])}var Bt=80,Vt=240,Ht=e=>{let t=/matrix\(([^)]+)\)/.exec(getComputedStyle(e).transform);return t?Number(t[1].split(`,`)[4]):0};function Ut(e,t){let n=t.offsetLeft,r=null,i=()=>{let i=n-t.offsetLeft;if(n=t.offsetLeft,!i||N()||!r&&Math.abs(i)<Bt)return;let a=i+(r?Ht(t):0),o={duration:Vt,easing:he};if(r)r.cancel();else for(let n of e.children)n!==t&&me(n,[{opacity:0},{opacity:1}],o);let s=t.animate([{transform:`translateX(${a}px)`},{transform:`none`}],o);r=s,s.finished.then(()=>{r===s&&(r=null)},()=>void 0)},a=new ResizeObserver(i);return a.observe(e),{settle:i,stop:()=>a.disconnect()}}function Wt({editor:e,threads:t,actions:n,agent:r,diagram:i,onMain:a,overlay:o,history:s,shareBase:c,children:l}){let[u,d]=(0,B.useState)(null),[f,p]=(0,B.useState)(null),[m,h]=(0,B.useState)(null),[g,_]=(0,B.useState)(null),v=(0,B.useCallback)(e=>{_(e),a?.(e)},[a]),y=(0,B.useRef)(null);(0,B.useEffect)(()=>{if(!g||!m)return;let e=Ut(g,m);return y.current=e,()=>{y.current=null,e.stop()}},[g,m]);let b=pe(`(max-width: 1100px)`),x=!pe(`(max-width: 1480px)`),S=b?`hidden`:x?`column`:`rail`,[C,w]=(0,B.useState)(0),T=Ue(e,t,u,C),E=(0,B.useMemo)(()=>i&&e&&!s?{threads:t,activeId:f,draft:i.draft,pick:i.pick,readOnly:i.readOnly,blockAction:i.blockAction,viewer:{actions:n,agent:r,create:i.create,drafts:i.drafts},activate:p,marked:()=>w(e=>e+1),blockIdOf:t=>Lt(e,t)}:null,[i,e,s,t,f,n,r]),D=jt(e,b||s?null:u);return We(T,t,f),(0,B.useLayoutEffect)(()=>y.current?.settle(),[S]),(0,R.jsxs)(`main`,{ref:v,...{0:{className:`x1n2onr6 xrvj5dj xc94fvo xl56j7k xwaa2ar x13zrc24 x1ffnkcp x4l9tsp`},2:{className:`x1n2onr6 xrvj5dj xl56j7k xwaa2ar x13zrc24 x1ffnkcp x4l9tsp xoiau2f`},1:{className:`x1n2onr6 xc94fvo xl56j7k xwaa2ar x13zrc24 x1ffnkcp x78zum5 xdt5ytf x1qjc9v5 x17qtykl`},3:{className:`x1n2onr6 xl56j7k xwaa2ar x13zrc24 x1ffnkcp xoiau2f x78zum5 xdt5ytf x1qjc9v5 x17qtykl`}}[(S===`rail`)<<1|!!b],children:[(0,R.jsx)(`div`,{className:`history-space-toc`,inert:!!s?.immersive,children:(0,R.jsx)(Dt,{editor:e,threads:t,variant:S})}),e?(0,R.jsx)(ut,{editor:e,shareBase:c}):null,(0,R.jsxs)(`article`,{ref:h,className:`x1n2onr6 x1vjfegm xh8yej3 xrgej4m xeuugli`,style:b?{marginInline:`auto`}:s?void 0:{"--ryugi-table-bleed":`368px`},onClick:e=>p(Ke(T,e.clientX,e.clientY)),children:[(0,R.jsx)(Oe,{}),(0,R.jsx)(A,{value:E,children:(0,R.jsx)(ft,{history:s,children:l})}),s?null:(0,R.jsx)($e,{activeId:f,anchors:T,container:m,threads:t})]}),(0,R.jsx)(`div`,{className:`x1n2onr6`,className:`history-space-comments ${{className:`x1n2onr6`}.className??``}`,inert:!!s?.immersive,children:(0,R.jsx)(pt,{history:s?.immersive?null:s,children:(0,R.jsx)(Qe,{actions:n,activeId:f,agent:r,anchors:T,blocked:D,narrow:b,railRef:d,threads:t,onActivate:p})})}),m&&o&&!s?o(m):null]})}function Gt({left:e,top:t,quote:n,wholeBlock:i,initial:a,restored:o,leaving:s,onChange:c,onSubmit:l,onCancel:u,ref:d}){return(0,R.jsx)(`div`,{ref:d,...{0:{className:`x10l6tqk x1u8a7rm xj6ak53 xowlrko xllfotl xatqbsq x1u6ievf`},1:{className:`x10l6tqk x1u8a7rm xj6ak53 x1u6ievf xxp0q0x x12l1aco xn0cd8s x47corl`}}[!!s|0],style:{left:e,top:t},children:(0,R.jsxs)(re,{active:!0,children:[(0,R.jsxs)(`div`,{className:`x78zum5 x1pha0wt x167g77z xz9dl7a x1hr3lfm xqfszdh x1j6dyjg`,children:[(0,R.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xuxw1ft xlyipyv xddlp02`,children:i?n:`“${n}”`}),o?(0,R.jsx)(`span`,{className:`x2lah0s x7zghnd`,children:r(`document.draftRestored`)}):null]}),(0,R.jsx)(ue,{autoFocus:!0,initial:a,placeholder:r(`document.draftPlaceholder`),onCancel:u,onChange:c,onSubmit:l})]})})}function Kt(e){let t=(0,B.useMemo)(oe,[]),[n,r]=(0,B.useState)(null),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(``),s=(0,B.useRef)(0),c=(0,B.useRef)(null),l=(0,B.useRef)(null);Ge(i?null:n?.target.range??null,i?void 0:n?.target.elements);let u=(0,B.useCallback)(n=>{window.clearTimeout(s.current);let i=t.take(j(n.blockId,n.quote,n.blockIds,n.textRanges,n.diagram));o.current=i,a(!1),r({target:n,initial:i}),window.getSelection()?.removeAllRanges(),e()},[t,e]),d=(0,B.useCallback)(e=>{n&&(t.save(j(n.target.blockId,n.target.quote,n.target.blockIds,n.target.textRanges,n.target.diagram),e?o.current:``),a(!0),s.current=window.setTimeout(()=>{r(null),a(!1)},120))},[n,t]);return(0,B.useEffect)(()=>{if(!n||i)return;let e=e=>{let t=e.target;c.current?.contains(t)||l.current?.contains(t)||d(!0)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[n,i,d]),(0,B.useEffect)(()=>()=>window.clearTimeout(s.current),[]),{drafts:t,draft:n,leaving:i,restored:!!n?.initial,open:u,close:d,onText:e=>{o.current=e},panelRef:c,toolbarRef:l}}var qt=46;function Jt(e,t){return Math.min(e+8,window.innerWidth-(t.offsetParent?.getBoundingClientRect().left??0)-40)}function Yt({article:e,editor:t,enabled:n,onComment:r}){let i=zt(t,e.closest(`main`),n);return i?(0,R.jsx)(te,{left:Jt(i.right,e),top:i.top,onComment:()=>r(i)}):null}function Xt({blockId:e,element:t,node:n,host:r}){let i=r.closest(`main`);if(!i)return null;let a=n.getBoundingClientRect(),o=i.getBoundingClientRect(),s=document.createRange();return s.setStart(r,0),{blockId:e,quote:t.label,diagram:t.target,range:s,left:a.left-o.left,right:a.right-o.left,top:a.top-o.top,bottom:a.bottom-o.top}}function Zt(e){return{left:e.offsetLeft,right:Math.min(e.offsetLeft+e.offsetWidth,window.innerWidth-16)}}function Qt({editor:e,threads:t,actions:n,agent:r,canComment:i,canCommentDiagram:a=i,selection:o,clearSelection:s,resolveSelection:c,onCreate:l,onMain:u,onToolbar:d,history:f,shareBase:p,children:m}){let h=Kt(s),{draft:g,open:_}=h,[v,y]=(0,B.useState)(null),[b,x]=(0,B.useState)(0);(0,B.useLayoutEffect)(()=>{if(!v||f)return;let t=()=>{let t=v.querySelector(`.ryugi-editor-toolbar`);t?x(t.getBoundingClientRect().height):e?.isEditable()||x(0)};t();let n=new MutationObserver(t);return n.observe(v,{childList:!0}),()=>n.disconnect()},[v,f,e]),(0,B.useEffect)(()=>{if(!v||!d)return;let e=()=>d(v.querySelector(`.ryugi-editor-toolbar, .history-bar`)!==null);e();let t=new MutationObserver(e);return t.observe(v,{childList:!0}),()=>{t.disconnect(),d(!1)}},[v,d]);let S=h.leaving?null:g?.target??null,{drafts:C}=h,w=(0,B.useMemo)(()=>({draft:S,drafts:C,readOnly:!a,blockAction:i,pick:e=>{let t=Xt(e);t&&_(t)},create:(e,t)=>l({...e,range:document.createRange(),left:0,right:0,top:0,bottom:0},t)}),[i,a,S,C,_,l]),T=(0,B.useCallback)(()=>{let e=window.getSelection();navigator.clipboard?.writeText(e?.toString()??``),e?.removeAllRanges(),s()},[s]),E=(0,B.useMemo)(()=>({toolbarSlot:v,selectionActions:g?null:(0,R.jsx)(ne,{onCopy:T,onComment:i?()=>{let e=c();e&&_(e)}:void 0})}),[v,g,i,c,_,T]);return(0,R.jsxs)(ae,{value:E,children:[(0,R.jsx)(`div`,{className:`ryugi-editor-toolbar-slot`,ref:y,children:b>0?(0,R.jsx)(`div`,{"aria-hidden":`true`,className:`history-toolbar-space`,style:{height:b}}):null}),(0,R.jsx)(Wt,{actions:n,agent:r,diagram:w,editor:e,history:f,shareBase:p,threads:t,overlay:t=>(0,R.jsxs)(R.Fragment,{children:[o&&!g&&o.kind===`block`&&i?(0,R.jsx)(te,{left:Jt(o.right,t),ref:h.toolbarRef,top:o.top,onComment:()=>h.open(o)}):null,(0,R.jsx)(Yt,{article:t,editor:e,enabled:i&&!g&&!o,onComment:h.open}),o&&!g&&o.kind===`nested`?(0,R.jsx)(k,{left:o.left,ref:h.toolbarRef,top:Math.max(o.top-qt,0),children:(0,R.jsx)(ne,{onComment:i?()=>h.open(o):void 0,onCopy:T})}):null,g?(0,R.jsx)(Gt,{ref:h.panelRef,...Le(g.target,Zt(t),340,8),initial:g.initial,leaving:h.leaving,quote:_e(g.target),restored:h.restored,wholeBlock:g.target.kind===`block`,onCancel:()=>h.close(!0),onChange:h.onText,onSubmit:e=>l(g.target,e).then(e=>(e&&h.close(!1),e))},j(g.target.blockId,g.target.quote,g.target.blockIds,g.target.textRanges,g.target.diagram)):null]}),onMain:u,children:m})]})}function $t({error:e,onDismiss:t}){return e?(0,z.createPortal)((0,R.jsxs)(`div`,{role:`alert`,className:`xixxii4 xy58vm5 xvf9o5y xvueqy4 xeq5yr9 x27kpxv x11uqc5h x78zum5 x6s0dn4 x1v2ro7d x10dr8xq x1hr3lfm xur7f20 xmkeg23 x1y0btm7 xgcsv5v x1rozbrz xo2rkog xqfszdh x4z9k3i x1pzk2i8`,children:[(0,R.jsx)(`span`,{children:r(`documentExport.failed`)}),(0,R.jsx)(`button`,{"aria-label":r(`common.close`),type:`button`,onClick:t,className:`xrvj5dj x1ku5rj1 xjbqb8w x1bo0w0s xc342km xgd8bvy x1fgtraw x1717udv x1ypdohk x2lah0s`,children:(0,R.jsx)(_,{size:16})})]}),document.body):null}var $=[`wheel`,`touchmove`,`keydown`,`pointerdown`];function en(e){return e.getEditorState().read(()=>T().getChildren().map(e=>({id:C(e,O),key:e.getKey()}))).flatMap(({id:t,key:n})=>{let r=t?e.getElementByKey(n):null;return r?[{id:t,element:r}]:[]})}function tn(e,t){if(t.kind!==`document`)return!1;let n=en(e).find(({id:e})=>e===t.blockId);if(!n)return!1;let r=n.element.getBoundingClientRect().top-t.top;return r!==0&&window.scrollBy({top:r,behavior:`instant`}),!0}function nn(e){(0,B.useEffect)(()=>{if(!e)return;let t=c({read(){let t=null;for(let{id:n,element:r}of en(e)){let{top:e,bottom:i}=r.getBoundingClientRect();if(!(i<=0)){if(e>=0&&e<window.innerHeight)return{kind:`document`,blockId:n,top:e};if(t??={kind:`document`,blockId:n,top:e},e>=0)break}}return t},apply:t=>tn(e,t)}),n=()=>{let t=h();t&&tn(e,t)};n();let r=e.registerUpdateListener(n);for(let e of $)window.addEventListener(e,d,{passive:!0});return()=>{t(),r();for(let e of $)window.removeEventListener(e,d)}},[e])}var rn=e=>`${I(e)}:${ye(e)}`;async function an(e,t){let n=new Map;for(let t of L(e))xe(t)&&n.set(rn(t),t);let r=await Promise.all([...n].map(async([e,n])=>[e,await t(n).catch(()=>void 0)])),i={};for(let[e,t]of r)t&&(i[e]=t);return i}function on(e){let t=structuredClone({...e,comments:e.comments??de()}),n=t=>{if(!t||t.startsWith(`#`))return t;try{return new URL(t,e.contentBase||e.sourceUrl).href}catch{return t}},r=e=>{if(!e||typeof e!=`object`)return;let t=e;if(typeof t.type==`string`){for(let e of[`src`,`poster`,`favicon`,`image`])typeof t[e]==`string`&&(t[e]=n(t[e]));if((t.type===`link`||t.type===`autolink`||t.type===`link-card`)&&typeof t.url==`string`&&(t.url=n(t.url)),t.type===`excalidraw`&&typeof t.snapshot==`string`){let[e=``,...r]=t.snapshot.split(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./printDocument-DatfOXhT.js","./rolldown-runtime-XKyaHtl9.js","./react-DlmbjZJV.js","./route-CkVEiakc.js","./bem-vbke-3KC.js","./jsx-runtime-LKYXHABd.js","./types-DAs-xbqr.js","./index2.css","./shims-s-YVfIlz.js","./editor-BfOKfIhz.js","./url-64-774qp.js","./mergeRefs-BoWyGCK7.js","./MotionConfigContext-B3czw3wn.js","./useLayerZIndex-t4BgGwYi.js","./is-html-element-DvgHo_1h.js","./WhiteboardEditor-cZ32fLqJ-DHGUDfT6.js","./Popover-CI2fBO-6.js","./arrow-up-kdcWAnXX.js","./parseTrigger-dhvXKZoS.js","./Center-BYaMwBHF.js","./isElementDisabled-DWHaZxJe.js","./type-DA3yqyzM.js","./minus-YVaskeP9.js","./ellipsis-BN0LovOQ.js","./code-DZDLeByL.js","./SelectScrollUpArrow-DccpygLx.js","./text-align-start-CvIfWAwj.js","./ruler-C-6kncvn.js","./image-DSbKs3OG.js","./zoom-out-DsqNailP.js","./maximize-2-BEWXAYRs.js","./mouse-pointer-2-FWjclmSy.js","./stringifyLocale-Dx2d4AZJ.js","./plus-DOEIgzPd.js","./trash-BZS14NA2.js","./MenuTrigger-CJXtjCtF.js","./CompositeItem-BLrDOuic.js","./index3.css","./pen-tool-BwPmMqqj.js","./underline-D5npPcgf.js","./file-text-CBItcVAp.js","./external-link-CxwFOzUH.js","./globe-IX-8l1m2.js","./message-square-D1ap_NhC.js","./presentation-CrG2a4R-.js","./ThreadView-CqtHFrk_.js","./ActionIcon-BmG7lBfd.js","./labels-6JqNXprT.js","./stable-DqmWGuUk.js","./icons-DWimed9E.js","./index5.css","./useTranslation-ByuUeDLl.js","./search-ClR54veT.js","./sliders-horizontal-BD0nAOF2.js","./upload-Prmd81Mo.js","./video-AtRALBjj.js","./rounds-BLj-tfMG.js","./tokens.stylex-No4bA13s.js","./useMedia-CFebB4XU.js","./BottomSheet-wczv_s4I.js","./motion-Cy65kd7X.js","./useSandboxFrame-CJmSnwgG.js","./read-resolutions-iX7kD7Xz.js","./preference-oNdcNeml.js","./ref-CG33owdM.js","./index4.css","./dist-DVeGz6Hn.js","./katex-DuZJ-tFh.js","./ArtifactModal-DjgA_mk-.js","./clapperboard-BOY4Zk3L.js","./SplitFrame-DY4Pomig.js","./DocumentExportMenu-CxdmnnnP.js","./DropdownMenu-D8PSw8rX.js","./ArtifactModal-BU_PR8k8.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{b as t,f as n,m as r,w as i}from"./route-CkVEiakc.js";import{t as a}from"./react-DlmbjZJV.js";import{Rt as o,Tr as s,_ as c,d as l,f as u,g as d,i as f,m as p,s as m,v as h}from"./url-64-774qp.js";import{t as g}from"./jsx-runtime-LKYXHABd.js";import{s as _}from"./mergeRefs-BoWyGCK7.js";import{Jr as v,_i as y,bn as b,gn as x,ir as S,ni as C,wn as w,xr as T,zr as E}from"./WhiteboardEditor-cZ32fLqJ-DHGUDfT6.js";import{B as D,Ct as O,F as k,I as A,L as ee,M as j,N as te,P as ne,R as re,V as ie,dt as ae,j as oe,z as se}from"./editor-BfOKfIhz.js";import{t as ce}from"./link-2-CdvyBGG6.js";import{i as le}from"./route-messages-BblikCub.js";import{a as M,n as ue,o as de}from"./labels-6JqNXprT.js";import{n as fe}from"./tokens.stylex-No4bA13s.js";import{n as pe}from"./useMedia-CFebB4XU.js";import{a as N,i as me,t as he}from"./motion-Cy65kd7X.js";import{n as ge}from"./DocumentExportMenu-CxdmnnnP.js";import{a as P,i as F,r as _e}from"./read-resolutions-iX7kD7Xz.js";import{n as ve}from"./preference-oNdcNeml.js";import{a as I,n as ye,o as L,r as be,t as xe}from"./ref-CG33owdM.js";var R=g(),z=e(i(),1),B=e(a(),1),V=()=>document.documentElement.dataset.ryugiEmbedParent??null,Se=()=>V()??location.origin,Ce=e=>e.source===window.parent&&e.origin===Se();function we(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},Se())}function Te(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g}=t??{};return(0,B.useEffect)(()=>{n&&we(e,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g})},[e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g]),n&&window.parent!==window}function Ee(e,t,n){let r=(0,B.useMemo)(()=>l(),[]),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(t);o.current=t;let s=(0,B.useRef)(n);s.current=n,(0,B.useEffect)(()=>{if(r)return u((e,t)=>{e.kind===`chrome`&&a(e.hosted),e.kind===`history`&&o.current(e.action),t===window.parent&&e.kind===`document-export`&&e.format===`pdf`&&s.current?.()})},[r]);let{activity:c,comments:d,history:f,historyOpen:m,documentExport:h}=e;return(0,B.useEffect)(()=>{r&&p({kind:`header`,activity:c,comments:d,history:f,historyOpen:m,documentExport:h})},[r,c,d,f,m,h]),r&&i}var De=`svg[role="img"] text[font-family*="Excalifont"] { font-family: ${x}; }`;function Oe(){let e=ve();return(0,R.jsx)(R.Fragment,{children:e&&(0,z.createPortal)((0,R.jsx)(`style`,{"data-diagram-font-style":!0,children:De}),document.head)})}var H=(e,t,n,r)=>e.find(e=>t<e.bottom+r&&t+n+r>e.top);function U(e,t,n,r){for(let i=H(e,t,n,r);i;)t=i.bottom+r,i=H(e,t,n,r);return t}function ke(e,t,n,r){for(let i=H(e,t,n,r);i;)t=i.top-r-n,i=H(e,t,n,r);return t}function Ae(e,t,n,r,i){let a=e.top-i-t.height;if(a<0||H(r,a,t.height,i))return null;let o=t.anchorTop-a,s=[],c=a;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.top+t.height+i<=c)break;let a=c-i-t.height;if(t.fixed||a<0||H(r,a,t.height,i))return null;o+=t.top-a,s.push([e,a]),c=a}return{cost:o,moves:s,top:a}}function je(e,t,n,r=[]){let i=[...e].sort((e,t)=>e.anchorTop-t.anchorTop),a=n?i.findIndex(e=>e.id===n):-1,o=Math.max(a,0),s=[],c=-1/0;for(let e=o;e<i.length;e++){let n=i[e],o=Math.max(n.anchorTop,c),l=H(r,o,n.height,t);if(l){let e=U(r,o,n.height,t),i=Ae(l,n,s,r,t);if(i&&i.cost<=e-n.anchorTop){for(let[e,t]of i.moves)s[e].top=t;o=i.top}else o=e}s.push({id:n.id,top:o,height:n.height,fixed:e===a}),c=o+n.height+t}let l={};for(let e of s)l[e.id]=e.top;if(a>0){let e=l[i[a].id];for(let n=a-1;n>=0;n--){let a=i[n],o=Math.min(a.anchorTop,e-t-a.height),s=H(r,o,a.height,t);if(s){let n=ke(r,o,a.height,t),i=s.bottom+t;o=i+a.height+t<=e&&!H(r,i,a.height,t)&&Math.abs(i-a.anchorTop)<Math.abs(a.anchorTop-n)?i:n}l[a.id]=o,e=o}}return l}function Me(e,t,n){let r=Math.max(e.x,t.x-n),i=(r+t.x)/2,a=r>e.x?` H${r}`:``;return`M${e.x} ${e.y}${a} C${i} ${e.y} ${i} ${t.y} ${t.x} ${t.y}`}var Ne=8,Pe=3,Fe=18;function W(e){let t=e.right+Ne;return{left:t,right:t+Pe,top:e.top,bottom:e.bottom}}function Ie(e){return{x:e.right,y:e.top+Math.min(Fe,(e.bottom-e.top)/2)}}function Le(e,t,n,r){return{left:Math.max(t.left,Math.min(e.left,t.right-n)),top:e.bottom+r}}var G=10;function Re(e,t,n,r,i){let a=Math.max(t.left,Math.min(e.left,t.right-n)),o=e.bottom+G;return i.top+o+r<=i.height-i.reserved-8?{left:a,top:o,placement:`below`}:{left:a,top:e.top-r-G,placement:`above`}}var K=e=>e.kind===`element`?[]:e.blocks??(e.kind===`block`?[{id:e.threadId,element:e.element}]:[]),q=e=>e.kind===`text`?e.ranges??[e.range]:[],ze=4;function Be(e){return[...q(e).flatMap(e=>[...e.getClientRects()]),...K(e).map(e=>W(e.element.getBoundingClientRect()))].sort((e,t)=>e.top-t.top||e.left-t.left)}function Ve(e){if(e.kind===`element`)return e.node.isConnected?D(e.node):null;let t=Be(e).at(-1);return t?e.kind===`text`?{x:t.right,y:t.bottom}:Ie(t):null}function He(e,t,n){let r=document.createRange(),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=0,o=!1;for(let e=i.nextNode();e;e=i.nextNode()){let i=a+e.length;if(!o&&t<=i&&(r.setStart(e,t-a),o=!0),o&&n<=i)return r.setEnd(e,n-a),r;a=i}return r.selectNodeContents(e),r}function Ue(e,t,n,r=0){let[i,a]=(0,B.useState)([]);return(0,B.useEffect)(()=>{if(!e||!n)return;let r=()=>{let r=e.getEditorState().read(()=>{let e=new Map;for(let t of T().getChildren()){let n=C(t,O);n&&e.set(n,t.getKey())}return e}),i=n.getBoundingClientRect().top-n.scrollTop,o=[];for(let n of t){let t=M(n.anchor).flatMap(t=>{let n=r.get(t),i=n?e.getElementByKey(n):null;return i?[{id:t,element:i}]:[]}),a=t[0]?.element;if(!a)continue;if(n.anchor.diagram){let e=ie(a,n.id);if(e){let t=e.getBoundingClientRect(),r=n.anchor.diagram.kind===`edge`?D(e).y:t.top;o.push({threadId:n.id,top:r-i,kind:`element`,node:e})}else o.push({threadId:n.id,top:a.getBoundingClientRect().top-i,kind:`block`,element:a,blocks:t});continue}if(n.anchor.textRanges){let e=new Map(n.anchor.textRanges.map(e=>[e.blockId,e])),r=[],s=[],c;for(let n of t){let t=e.get(n.id),a=t?F(n.element.textContent??``,t.quote,t.start):`block`;if(a===`block`)s.push(n),c??=n.element.getBoundingClientRect().top-i;else{let e=He(n.element,a.start,a.end);r.push(e);let t=e.getClientRects()[0]??n.element.getBoundingClientRect();c??=t.top-i}}r.length?o.push({threadId:n.id,top:c,kind:`text`,range:r[0],ranges:r,blocks:s}):o.push({threadId:n.id,top:c,kind:`block`,element:a,blocks:s});continue}let s=n.anchor.blockIds?`block`:F(a.textContent??``,n.anchor.quote);if(s===`block`){o.push({threadId:n.id,top:a.getBoundingClientRect().top-i,kind:`block`,element:a,blocks:t});continue}let c=He(a,s.start,s.end),l=c.getClientRects()[0]??a.getBoundingClientRect();o.push({threadId:n.id,top:l.top-i,kind:`text`,range:c})}a(o)};r();let i=0,o=()=>{cancelAnimationFrame(i),i=requestAnimationFrame(r)},s=e.registerUpdateListener(o),c=new ResizeObserver(o);c.observe(n);let l=e.getRootElement();return l&&c.observe(l),()=>{cancelAnimationFrame(i),s(),c.disconnect()}},[e,t,n,r]),i}function We(e,t,n){(0,B.useEffect)(()=>{if(typeof CSS>`u`||!(`highlights`in CSS))return;let r=P(t,n),i=e.filter(e=>r.has(e.threadId)&&e.threadId!==n).flatMap(q),a=e.filter(e=>e.threadId===n).flatMap(q);return CSS.highlights.set(`ryugi-comment`,new Highlight(...i)),CSS.highlights.set(`ryugi-comment-active`,new Highlight(...a)),()=>{CSS.highlights.delete(`ryugi-comment`),CSS.highlights.delete(`ryugi-comment-active`)}},[e,t,n])}function Ge(e,t){(0,B.useEffect)(()=>{if(t?.length){for(let e of t)e.setAttribute(`data-comment-draft`,``);return()=>{for(let e of t)e.removeAttribute(`data-comment-draft`)}}if(e&&typeof CSS<`u`&&`highlights`in CSS)return CSS.highlights.set(`ryugi-comment-draft`,new Highlight(e)),()=>{CSS.highlights.delete(`ryugi-comment-draft`)}},[e,t])}function Ke(e,t,n){for(let r of e){if(r.kind===`element`)continue;let e=r.kind===`block`||K(r).length?ze:0;for(let i of Be(r))if(t>=i.left-e&&t<=i.right+e&&n>=i.top&&n<=i.bottom)return r.threadId}return null}var qe=e=>Math.max(0,Math.min(window.scrollY+e.getBoundingClientRect().top-100,document.documentElement.scrollHeight-window.innerHeight));function Je(e){window.scrollTo({top:qe(e),behavior:`instant`})}function J(e,t){let n=qe(e);if(N())return window.scrollTo({top:n,behavior:`instant`}),t?.(),()=>{};let r=()=>{window.removeEventListener(`wheel`,i),window.removeEventListener(`touchmove`,i)},i=()=>{a.stop(),r()},a=o({keyframes:[window.scrollY+1,n],type:`spring`,stiffness:1e3,damping:250,onUpdate:e=>window.scrollTo({top:e,behavior:`instant`}),onComplete:()=>{r(),t?.()}});return window.addEventListener(`wheel`,i,{passive:!0}),window.addEventListener(`touchmove`,i,{passive:!0}),i}var Y=12,Ye=40,Xe=18;function Ze({id:e,onHeight:t,children:n}){let r=(0,B.useRef)(null);return(0,B.useLayoutEffect)(()=>{let n=r.current;if(!n)return;let i=new ResizeObserver(()=>t(e,n.offsetHeight));return i.observe(n),t(e,n.offsetHeight),()=>i.disconnect()},[e,t]),(0,R.jsx)(`div`,{ref:r,children:n})}function Qe({narrow:e,threads:t,anchors:n,blocked:i,activeId:a,actions:o,onActivate:s,railRef:c,agent:l}){let[u,d]=(0,B.useState)({}),[f,p]=(0,B.useState)(0),m=(0,B.useCallback)((e,t)=>p(t),[]),[h,g]=(0,B.useState)([]),_=(0,B.useRef)(null),v=(0,B.useRef)(new Map).current,y=(0,B.useRef)((e,t)=>d(n=>n[e]===t?n:{...n,[e]:t})).current,b=(0,B.useCallback)(e=>{_.current=e,c(e)},[c]),x=new Map(n.map(e=>[e.threadId,e.top])),S=t.filter(e=>x.has(e.id)),C=t.filter(e=>!x.has(e.id)&&!e.messages.every(e=>e.deleted)),w=S.map(e=>({id:e.id,anchorTop:x.get(e.id),height:u[e.id]??120})),T=je(w,Y,a??void 0,i),E=Math.max(0,...w.map(e=>(T[e.id]??0)+e.height)),D=U(i??[],E+Y,f,Y),O=JSON.stringify(T);(0,B.useLayoutEffect)(()=>{let r=_.current;if(e||!r)return g([]);let i=r.getBoundingClientRect(),o=P(t,a),s=[];for(let e of n){let t=T[e.threadId],n=Ve(e);if(t===void 0||!n||!o.has(e.threadId))continue;let r={x:n.x-i.left,y:n.y-i.top};s.push({id:e.threadId,d:Me(r,{x:0,y:t+Xe},Ye)})}g(s)},[e,n,t,a,O]),(0,B.useEffect)(()=>{let t=a?v.get(a):void 0;if(e||!t)return;let n=!1,r=()=>{},i=t.getAnimations({subtree:!0}).map(e=>e.finished.catch(()=>void 0));return Promise.all(i).then(()=>{!n&&se(t.getBoundingClientRect(),window.innerHeight)&&(r=J(t))}),()=>{n=!0,r()}},[a,e,v]);let k=e=>(0,R.jsx)(ee,{actions:o,active:e.id===a,agent:l,thread:e,onActivate:()=>s(e.id)});return e?(0,R.jsxs)(`div`,{"aria-label":r(`document.commentsLabel`),ref:b,role:`region`,className:`x78zum5 xdt5ytf x1v2ro7d xh8yej3 x7ep2pv xvueqy4`,children:[[...S].sort((e,t)=>x.get(e.id)-x.get(t.id)).map(e=>(0,R.jsx)(`div`,{children:k(e)},e.id)),C.length>0?(0,R.jsx)(`div`,{className:`xqui205 x1e56ztr xddlp02 xqfszdh x1j6dyjg`,children:r(`document.originalDeleted`)}):null,C.map(e=>(0,R.jsx)(`div`,{children:k(e)},e.id))]}):(0,R.jsxs)(`aside`,{"aria-label":r(`document.commentsLabel`),ref:b,className:`x1n2onr6 xh8yej3 x2lah0s`,style:{minHeight:E},children:[(0,R.jsx)(`svg`,{className:`x10l6tqk x13vifvy xu96u03 x1i1rx1s xjm9jq1 x1rea2x4 x47corl`,children:h.map(e=>(0,R.jsx)(`path`,{d:e.d,fill:`none`,stroke:e.id===a?fe.warningStrong:`currentColor`,strokeDasharray:e.id===a?void 0:`3 3`,strokeOpacity:e.id===a?1:.25},e.id))}),S.map(e=>(0,R.jsx)(`div`,{ref:t=>{t?v.set(e.id,t):v.delete(e.id)},className:`x10l6tqk xu96u03 xh8yej3 xhtitgo x14h5d43 xx6bhzk`,style:{top:T[e.id]},children:(0,R.jsx)(Ze,{id:e.id,onHeight:y,children:k(e)})},e.id)),C.length>0?(0,R.jsx)(`div`,{style:{position:`absolute`,top:D,left:0,width:`100%`,zIndex:2},children:(0,R.jsxs)(Ze,{id:`orphaned`,onHeight:m,children:[(0,R.jsx)(`div`,{className:`xqui205 x1e56ztr xddlp02 xqfszdh x1j6dyjg`,children:r(`document.originalDeleted`)}),C.map(e=>(0,R.jsx)(`div`,{style:{marginBottom:Y},children:k(e)},e.id))]})}):null]})}function $e({container:e,anchors:t,threads:n,activeId:r}){let[i,a]=(0,B.useState)([]);return(0,B.useLayoutEffect)(()=>{if(!e)return a([]);let i=e.getBoundingClientRect(),o=P(n,r),s=[];for(let e of t)if(o.has(e.threadId))for(let t of K(e)){let n=W(t.element.getBoundingClientRect());s.push({id:e.threadId,key:`${e.threadId}:${t.id}`,left:n.left-i.left,top:n.top-i.top,width:n.right-n.left,height:n.bottom-n.top})}a(s)},[e,t,n,r]),i.map(e=>(0,R.jsx)(`div`,{"data-comment-block":e.id,...{0:{className:`x10l6tqk x1cum3z5 x47corl x1f2496h x15406qy xx6bhzk`},1:{className:`x10l6tqk x1cum3z5 x47corl x15406qy xx6bhzk x5hs8br`}}[e.id===r|0],style:{left:e.left,top:e.top,width:e.width,height:e.height}},e.key))}var et=/^#([\w-]{4,64})$/,tt=/^#ryugi-host=/,nt=e=>et.exec(e)?.[1]??null;function X(e=window){if(e.parent===e||!e.parent)return e;try{return e.parent.location.href,e.parent}catch{return e}}var rt=(e=X())=>nt(e.location.hash);function it(e,t=X()){let{hash:n,pathname:r,search:i}=t.location;if(tt.test(n))return;let a=e?`#${e}`:``;n!==a&&t.history.replaceState(t.history.state,``,`${r}${i}${a}`)}function at(e,t){let n=new URL(e);return n.hash=t,n.toString()}var ot=new Set([`h2`,`h3`]),st=160;function ct(e){let t=document.createRange();t.selectNodeContents(e);let n=t.getClientRects?.(),r=n&&n.length>0?n.item(n.length-1):null,i=e.getBoundingClientRect();return r&&r.width>0?r:i}function lt(e,t){e.getEditorState().read(()=>{for(let n of t){let t=S(n),r=e.getElementByKey(n);if(!w(t)||!r)continue;let i=ot.has(t.getTag())?C(t,O):``;i?r.id=i:r.removeAttribute(`id`)}})}function ut({editor:e,shareBase:t}){let[n,i]=(0,B.useState)(null),[a,o]=(0,B.useState)(!1),c=(0,B.useRef)(void 0);if((0,B.useEffect)(()=>{if(e.hasNodes([b]))return e.registerMutationListener(b,t=>lt(e,[...t].filter(([,e])=>e!==`destroyed`).map(([e])=>e)))},[e]),(0,B.useEffect)(()=>{let t=()=>clearTimeout(c.current),n=()=>{t(),c.current=setTimeout(()=>i(null),st)},r=r=>{let a=r.target;if(a?.closest?.(`[data-heading-link]`))return t();let s=e.getRootElement(),c=a?.closest?.(`h2[id], h3[id]`);if(!s||!c||!s.contains(c))return n();t();let l=ct(c);o(!1),i({id:c.id,left:l.right+window.scrollX+6,top:l.top+window.scrollY+(l.height-24)/2})};return document.addEventListener(`pointerover`,r),()=>{t(),document.removeEventListener(`pointerover`,r)}},[e]),!n)return null;let l=()=>{let e=at(t||X().location.href,n.id);navigator.clipboard?.writeText(e),it(n.id),o(!0)},u=r(a?`document.headingLinkCopied`:`document.copyHeadingLink`);return(0,z.createPortal)((0,R.jsx)(`button`,{"aria-label":u,"data-heading-link":``,style:{left:n.left,top:n.top},title:u,type:`button`,onClick:l,onPointerDown:e=>e.preventDefault(),...{0:{className:`x10l6tqk xoegz02 xrvj5dj x1ku5rj1 xvy4d1p xxk0z11 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 xddlp02 x157umkc x1in2gmu x1ypdohk x1de99jn xaatb59 x1y3gkto x1uczgqu x60py1w`},1:{className:`x10l6tqk xoegz02 xrvj5dj x1ku5rj1 xvy4d1p xxk0z11 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 x1ypdohk x1de99jn xaatb59 x1y3gkto x1uczgqu x60py1w x1cge3fn`}}[!!a|0],children:a?(0,R.jsx)(s,{"aria-hidden":`true`,size:14}):(0,R.jsx)(ce,{"aria-hidden":`true`,size:14})}),document.body)}var dt=620,ft=class extends B.Component{state={leaving:null,shown:null};static getDerivedStateFromProps(e,t){return e.history?.immersive?t.shown===e.history?null:{shown:e.history}:t.shown?{shown:null,leaving:t.shown}:null}host=null;paper=null;viewport=null;shell=null;entry=null;slide=null;exitTimer=null;getSnapshotBeforeUpdate(){return{rect:this.paper?.getBoundingClientRect()??null,x:window.scrollX,y:window.scrollY}}animate(e,t){if(!this.paper||!e||N()||typeof this.paper.animate!=`function`)return;this.slide?.cancel();let n=t??this.paper.getBoundingClientRect(),r=Math.max(56,e.top),i=parseFloat(getComputedStyle(this.paper).borderLeftWidth)||0,a=t?0:i,o=t?i:0;this.slide=this.paper.animate([{left:e.left-a+`px`,top:r-a+`px`,width:e.width+a*2+`px`,height:Math.min(e.height,window.innerHeight-r)+a+`px`},{left:n.left-o+`px`,top:n.top-o+`px`,width:n.width+o*2+`px`,height:n.height+o+`px`}],{duration:dt,easing:he,fill:t?`forwards`:`none`}),this.slide.finished.catch(()=>{})}unlock=()=>{if(this.exitTimer&&clearTimeout(this.exitTimer),this.exitTimer=null,this.slide?.cancel(),this.slide=null,this.host&&(this.host.style.height=``),this.entry){let e=this.entry;document.documentElement.style.overflow=e.overflow,document.documentElement.style.scrollbarGutter=e.gutter,window.scrollTo(e.x,e.y)}this.entry=null};componentDidUpdate(e,t,n){let r=!!this.props.history?.immersive,i=!!e.history?.immersive;if(r&&!i)this.exitTimer&&clearTimeout(this.exitTimer),this.exitTimer=null,this.state.leaving&&this.setState({leaving:null}),this.entry||(this.entry={...n,focus:document.activeElement,overflow:document.documentElement.style.overflow,gutter:document.documentElement.style.scrollbarGutter,offset:Math.max(0,56-(n.rect?.top??56))},this.host&&(this.host.style.height=(n.rect?.height??0)+`px`)),n.rect&&this.shell?.style.setProperty(`--history-reading-width`,n.rect.width+`px`),document.documentElement.style.scrollbarGutter=`stable`,document.documentElement.style.overflow=`hidden`,this.viewport&&(this.viewport.scrollTop=this.entry.offset),this.animate(n.rect),this.shell?.querySelector(`[data-history-exit]`)?.focus({preventScroll:!0});else if(!r&&i&&this.entry){let e=this.entry;this.viewport&&(this.viewport.scrollTop=e.offset),window.scrollTo(e.x,e.y),e.focus?.focus({preventScroll:!0});let t=e.rect;t&&this.animate(n.rect,{left:t.left,top:Math.max(56,t.top),width:t.width,height:Math.min(t.height,window.innerHeight-Math.max(56,t.top))});let r=()=>{this.setState({leaving:null},()=>{this.unlock(),e.focus?.focus({preventScroll:!0})})};N()?r():this.exitTimer=setTimeout(r,dt)}else!r&&!this.state.leaving&&(!e.history&&this.props.history&&(this.entry={...n,focus:null,overflow:document.documentElement.style.overflow,gutter:document.documentElement.style.scrollbarGutter,offset:0}),e.history&&!this.props.history&&this.entry&&(window.scrollTo(this.entry.x,this.entry.y),this.entry=null))}componentWillUnmount(){this.unlock()}trap=e=>{if(!this.props.history?.immersive||e.key!==`Tab`)return;let t=[...this.shell?.querySelectorAll(`button:not(:disabled),a[href],summary,[tabindex="0"]`)??[]].filter(e=>!e.closest(`[hidden],[aria-hidden="true"],[inert]`)),n=t[0],r=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())};render(){let{history:e,children:t}=this.props,n=e?.immersive?e:this.state.leaving,i=!!n,a=!!e?.ready;return(0,R.jsx)(`div`,{className:`history-body`,ref:e=>{this.host=e},children:(0,R.jsxs)(`div`,{"aria-label":e?.immersive?r(`history.title`):void 0,"aria-modal":e?.immersive?!0:void 0,className:`history-space-shell`,"data-immersive":i?``:void 0,"data-open":e?.immersive?``:void 0,inert:!(!this.state.leaving||e),role:e?.immersive?`dialog`:void 0,ref:e=>{this.shell=e},onKeyDown:this.trap,children:[n?.space,(0,R.jsx)(`div`,{className:`history-space-paper`,ref:e=>{this.paper=e},children:(0,R.jsxs)(`div`,{className:`history-space-scroll`,tabIndex:i?0:void 0,ref:e=>{this.viewport=e},children:[(0,R.jsx)(`div`,{className:`history-body-comparison`,"data-ready":a,hidden:!a,children:e?.content}),(0,R.jsx)(`div`,{hidden:a,children:t})]})})]})})}};function pt({history:e,children:t}){let[n,r]=(0,B.useState)({current:e,panel:e?.panel??null});return n.current!==e&&r({current:e,panel:e?.panel??n.panel}),(0,B.useEffect)(()=>{if(e)return;let t=setTimeout(()=>{r(e=>e.current?e:{...e,panel:null})},N()?0:280);return()=>clearTimeout(t)},[e]),(0,R.jsx)(`div`,{className:`history-rail`,"data-moving":e||n.panel?``:void 0,"data-open":e?``:void 0,children:(0,R.jsxs)(`div`,{className:`history-rail-track`,children:[(0,R.jsx)(`div`,{"aria-hidden":e?!0:void 0,className:`history-rail-comments`,inert:!!e,children:t}),(0,R.jsx)(`div`,{"aria-hidden":!e||void 0,className:`history-rail-panel`,inert:!e,children:e?.panel??n.panel})]})})}var mt=3e3;function Z(e,t){let n=e.getRootElement()?.closest(`.history-body`)?.querySelector(`.history-body-comparison[data-ready="true"]`);if(n)return[...n.querySelectorAll(`[data-history-block-id]`)].find(e=>e.dataset.historyBlockId===t)?.querySelector(`.history-current :is(h1, h2, h3, h4, h5, h6)`)??null;let r=e.getEditorState().read(()=>T().getChildren().find(e=>C(e,O)===t)?.getKey());return r?e.getElementByKey(r):null}function ht(e,t){let[n]=(0,B.useState)(rt),r=(0,B.useRef)(n),i=(0,B.useRef)(n),a=(0,B.useRef)(void 0),o=(0,B.useRef)(null),s=(0,B.useRef)(null),c=(0,B.useCallback)(e=>{o.current=e,it(e)},[]),l=(0,B.useCallback)(t=>{let n=e&&Z(e,t);return n?(a.current?.(),a.current=J(n,()=>{r.current===t&&!i.current&&(r.current=null)}),!0):!1},[e]),u=(0,B.useCallback)(t=>{let n=e&&Z(e,t);return n?(a.current?.(),Je(n),r.current===t&&!i.current&&(r.current=null),!0):!1},[e]),d=(0,B.useCallback)(e=>{let t={lock:r.current,pending:i.current};r.current=e,i.current=null,l(e)?c(e):(r.current=t.lock,i.current=t.pending)},[l,c]);return(0,B.useEffect)(()=>{if(!e)return;let t=()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let t=i.current;t&&(i.current=null,h()?r.current===t&&(r.current=null):u(t)?s.current={blockId:t,until:Date.now()+mt}:i.current=t)};t();let n=()=>{r.current=null,i.current=null,s.current=null},c=new ResizeObserver(()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let t=s.current;t&&(Date.now()>t.until?s.current=null:u(t.blockId))}),l=e.registerRootListener(e=>{c.disconnect(),e&&c.observe(e)}),d=X(),f=()=>{let e=rt();e&&e!==o.current&&(r.current=e,i.current=e,t())},p=e.registerUpdateListener(t);return window.addEventListener(`wheel`,n,{passive:!0}),window.addEventListener(`touchmove`,n,{passive:!0}),window.addEventListener(`keydown`,n),d.addEventListener(`hashchange`,f),()=>{p(),l(),c.disconnect(),a.current?.(),window.removeEventListener(`wheel`,n),window.removeEventListener(`touchmove`,n),window.removeEventListener(`keydown`,n),d.removeEventListener(`hashchange`,f)}},[e,u]),(0,B.useEffect)(()=>{if(e){if(r.current){if(i.current||t!==r.current)return;r.current=null}else c(t)}},[t,e,c]),{scrollTo:d}}function gt({editor:e}){return ht(e,null),null}var _t={h2:0,h3:1};function vt(){let e=[],t=null,n=null;for(let r of T().getChildren()){let i=w(r)?r.getTag():void 0,a=C(r,O);if(i===`h1`){t={key:r.getKey(),blockId:a,text:r.getTextContent()},n=null;continue}let o=i===void 0?void 0:_t[i];o!==void 0&&(n={key:r.getKey(),blockId:a,text:r.getTextContent(),depth:o,part:t,blocks:[]},e.push(n)),a&&n?.blocks.push(a)}return e}function yt(e,t){let n=new Map;for(let t of e)for(let e of t.blocks)n.set(e,t.blockId);let r=new Set;for(let e of t)if(e.status===`open`)for(let t of M(e.anchor)){let e=n.get(t);e&&r.add(e)}return r}function bt(e){let t=new Set(e.map(e=>e.part?.key??null)).size>1,n=[],r;for(let i of e){let e=n.at(-1),a=i.part!==r;i.depth===0||!e||a?n.push({head:i,children:[],index:n.length,partStart:t&&a?i.part:null}):e.children.push(i),r=i.part}return n}var Q={toc:{kVAEAm:`x7wzq59`,kY2c9j:`x1w0boku`,k87sOh:`xossvpg`,kSGwAc:`x1y8v6su`,keoZOQ:`x1tfhste`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kskxy:`x1r4ahda`,k7Eaqz:`xeuugli`,kMv6JI:`xqfszdh`,kGuDYH:`x1ct8sxb`,kMwMTN:`x1bo0w0s`,$$css:!0},rail:{kzqmXN:`x1td3qas`,$$css:!0},list:{kAzted:`x2lwn1j`,kORKVm:`x1odjw0f`,kacamN:`x1e4zzel`,k5wCbM:`x1rohswg`,k8WAf4:`xj8oexa`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kzqmXN:`xh8yej3`,kZKoxP:`xlrawln`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x1kogg8i`,kWkggS:`xjbqb8w`,kkrTdU:`x1ypdohk`,kMeerF:`x1de99jn`,k3XXqK:`xaatb59`,kInvED:`x1g40iwv`,kjBf7l:`x1uczgqu x60py1w`,$$css:!0},tick:{kmuXW:`x2lah0s`,kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,keTefX:`xdwrcjd`,kaIpWk:`x1nj7uno`,kWkggS:`x174nbcu`,kmkexE:`x10iii20`,$$css:!0},tickH2:{kzqmXN:`xw4jnvo`,keTefX:`x1lziwak`,kWkggS:`xxwmxtg`,$$css:!0},tickActive:{kzqmXN:`xw4jnvo`,keTefX:`x1lziwak`,kWkggS:`x15az74h`,$$css:!0},tickDot:{keTefX:`x165d6jo`,$$css:!0},part:{kB7OPa:`x9f619`,kZKoxP:`x10w6t97`,kVQacm:`xb3r6kr`,kLKAdn:`xyinxu5`,kGuDYH:`x1j6dyjg`,k63SB2:`x1s688f`,kLWn49:`x1wfe3co`,kb6lSQ:`x16q24ku`,kMwMTN:`xddlp02`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,kmkexE:`x1un5det`,$$css:!0},partFirst:{kZKoxP:`xxk0z11`,kLKAdn:`x1yrsyyn`,$$css:!0},row:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x17d4w8g`,kzqmXN:`xh8yej3`,kZKoxP:`xlrawln`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x12oqio5`,kWkggS:`xjbqb8w`,kMwMTN:`x1bo0w0s xytdrwj`,kVVagm:`xln7xf2`,k9WMMc:`x1yc453h`,kkrTdU:`x1ypdohk`,kmkexE:`x137m0jx x413zg9`,kMeerF:`x1de99jn`,k3XXqK:`xaatb59`,kInvED:`x1g40iwv`,kjBf7l:`x1uczgqu x60py1w`,$$css:!0},rowNested:{kZCmMZ:`x1onr9mi`,kGuDYH:`xfifm61`,kMwMTN:`xddlp02 xytdrwj`,$$css:!0},rowCurrent:{kZKoxP:`x1fgtraw`,kGuDYH:`x2ouz8m`,k63SB2:`x1s688f`,kMwMTN:`xo2rkog xytdrwj`,$$css:!0},rowActive:{k63SB2:`x1s688f`,kMwMTN:`x1cge3fn x157umkc`,$$css:!0},rowText:{kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},count:{kmuXW:`x2lah0s`,kGuDYH:`x1j6dyjg`,k63SB2:`xo1l8bm`,kMwMTN:`xc7n51q`,kcqcaj:`xss6m8b`,$$css:!0},fold:{k1xSpc:`xrvj5dj`,k9llMU:`xihq33y`,k33iCy:`xlshs6z`,kSiTet:`xg01cxk`,kmkexE:`x1u0be13 x9kvfbb`,$$css:!0},foldOpen:{k9llMU:`x1tu4anv`,k33iCy:`xnpuxes`,kSiTet:`x1hc1fzr`,kmkexE:`xjgrksx x9kvfbb`,$$css:!0},foldRows:{kAzted:`x2lwn1j`,kVQacm:`xb3r6kr`,k3aq6I:`x1bvilyr`,kmkexE:`x1pagzdl x9kvfbb`,$$css:!0},foldRowsOpen:{k3aq6I:`x1c071of`,kmkexE:`x94wcrn x9kvfbb`,$$css:!0},fadeNear:{kSiTet:`xiiclqw`,$$css:!0},fadeMid:{kSiTet:`xf9vgkq`,$$css:!0},fadeFar:{kSiTet:`x197sbye`,$$css:!0},dot:{kmuXW:`x2lah0s`,kzqmXN:`x1ftt334`,kZKoxP:`x1ycjhwn`,kaIpWk:`x16rqkct`,kWkggS:`xzkukvh`,$$css:!0},card:{kVAEAm:`x10l6tqk`,kY2c9j:`x1w0boku`,k87sOh:`xn0lweg`,kbCHJM:`x6f9vd5`,kzqmXN:`x1hfn5x7`,kskxy:`x1r4ahda`,kORKVm:`x1odjw0f`,kB7OPa:`x9f619`,k8WAf4:`x1vvogim`,kg3NbH:`xaope02`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xgcsv5v`,kaIpWk:`x1q4ynmn`,kWkggS:`x12ilycc`,kGVxlE:`x1d5q07e`,$$css:!0}},xt=120,St=200,Ct=150,wt=new Set;function Tt(e,t){let[n,r]=(0,B.useState)({key:null,reading:!1});return(0,B.useEffect)(()=>{if(!e)return;let n=()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let n=t[0]?.key??null,i=!1;for(let r of t){let t=r.blockId?Z(e,r.blockId):e.getElementByKey(r.key);t&&t.getBoundingClientRect().top<xt&&(n=r.key,i=!0)}r(e=>e.key===n&&e.reading===i?e:{key:n,reading:i})};return n(),window.addEventListener(`scroll`,n,{passive:!0}),()=>window.removeEventListener(`scroll`,n)},[e,t]),n}function Et(e,t,n){(0,B.useEffect)(()=>{let n=()=>{let n=e.current,r=t.current;if(!n||!r)return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&(n.scrollTop=Math.max(0,n.scrollTop+a.top-i.top-(n.clientHeight-a.height)/2))};return n(),window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n),()=>{window.removeEventListener(`scroll`,n),window.removeEventListener(`resize`,n)}},n)}function Dt({editor:e,threads:t=[],variant:i=`column`}){let[a,o]=(0,B.useState)([]),[s,c]=(0,B.useState)(!1),[l,u]=(0,B.useState)(wt),d=(0,B.useRef)(void 0),f=(0,B.useRef)(void 0),p=(0,B.useRef)(null),m=(0,B.useRef)(null);(0,B.useEffect)(()=>{if(!e)return;let t=()=>o(e.getEditorState().read(vt));return t(),e.registerUpdateListener(t)},[e]);let h=Tt(e,a),g=a.find(e=>e.key===h.key),{scrollTo:_}=ht(e,h.reading&&g?.blockId?g.blockId:null),v=(0,B.useMemo)(()=>yt(a,t),[a,t]),y=(0,B.useMemo)(()=>bt(a),[a]);Et(p,m,[h.key,a]),(0,B.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]);let b=y.find(e=>e.head.key===h.key||e.children.some(e=>e.key===h.key)),x=b?.head.key??null,[S,C]=(0,B.useState)(x),w=e=>u(t=>t.has(e)?t:new Set(t).add(e));S!==x&&(C(x),s&&S&&w(S));let T=()=>{clearTimeout(d.current),c(!0)},E=()=>{clearTimeout(d.current),clearTimeout(f.current),d.current=setTimeout(()=>{c(!1),u(wt)},St)},D=e=>{clearTimeout(f.current),f.current=setTimeout(()=>w(e),Ct)},O=t=>{if(t.blockId)return _(t.blockId);let n=e?.getElementByKey(t.key);n&&J(n)};if(i===`hidden`)return null;if(a.length===0)return(0,R.jsx)(`nav`,{"data-variant":i,...n(Q.toc)});let k=i===`rail`,A=e=>y.map(t=>{let{head:r,children:i}=t,a=t===b,o=a||l.has(r.key),c=b?Math.abs(t.index-b.index):0,u=e!==`column`||s||c===0?null:c===1?Q.fadeNear:c<=3?Q.fadeMid:Q.fadeFar,d=(t,r,i,o,s=!1)=>{let c=t.key===h.key,l=e===`card`,d=o?(0,R.jsx)(`span`,{"data-commented":``,...n(Q.dot,e===`ticks`&&Q.tickDot)}):null;return(0,R.jsxs)(`button`,{"aria-current":c&&!l?`location`:void 0,"aria-label":t.text,ref:c&&!l?m:void 0,tabIndex:l?-1:void 0,type:`button`,onClick:()=>O(t),onFocus:s?()=>w(t.key):void 0,onPointerEnter:s?()=>D(t.key):void 0,onPointerLeave:s?()=>clearTimeout(f.current):void 0,...n(e===`ticks`?Q.item:Q.row,e!==`ticks`&&r&&Q.rowNested,!r&&a&&Q.rowCurrent,e!==`ticks`&&c&&Q.rowActive,!r&&u),children:[e===`ticks`?(0,R.jsx)(`span`,{...n(Q.tick,!r&&Q.tickH2,c&&Q.tickActive)}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{...n(Q.rowText),children:t.text}),i>0?(0,R.jsx)(`span`,{...n(Q.count),children:i}):null]}),d]},t.key)},p=!o&&i.some(e=>v.has(e.blockId));return(0,R.jsxs)(B.Fragment,{children:[t.partStart?(0,R.jsx)(`div`,{"aria-hidden":e===`ticks`||void 0,...n(Q.part,t.index===0&&Q.partFirst,u),children:e===`ticks`?null:t.partStart.text}):null,d(r,!1,o?0:i.length,v.has(r.blockId)||p,i.length>0),i.length>0?(0,R.jsx)(`div`,{inert:!o,...n(Q.fold,o&&Q.foldOpen),children:(0,R.jsx)(`div`,{...n(Q.foldRows,o&&Q.foldRowsOpen),children:i.map(e=>d(e,!0,0,v.has(e.blockId)))})}):null]},r.key)});return(0,R.jsxs)(`nav`,{"aria-label":r(`document.toc`),"data-expanded":s?`true`:`false`,"data-variant":i,onFocus:T,onPointerEnter:T,onPointerLeave:E,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||E()},...n(Q.toc,k&&Q.rail),children:[(0,R.jsx)(`div`,{"data-toc-list":``,ref:p,...n(Q.list),children:A(k?`ticks`:`column`)}),k&&s?(0,R.jsx)(`div`,{"data-toc-card":``,ref:e=>{e&&p.current&&(e.scrollTop=p.current.scrollTop)},...n(Q.card),children:A(`card`)}):null]})}var Ot=`.rich-table-scrollable-wrapper, .ryugi-mermaid-preview`;function kt(e,t){let n=e.getBoundingClientRect().right;return[...e.querySelectorAll(Ot)].map(e=>e.getBoundingClientRect()).filter(e=>e.right>n+1).map(e=>({top:e.top-t,bottom:e.bottom-t}))}var At=(e,t)=>e.length===t.length&&e.every((e,n)=>e.top===t[n].top&&e.bottom===t[n].bottom);function jt(e,t){let[n,r]=(0,B.useState)([]);return(0,B.useEffect)(()=>{let n=e?.getRootElement();if(!e||!t||!n)return;let i=()=>{let e=t.getBoundingClientRect().top-t.scrollTop,i=kt(n,e);r(e=>At(e,i)?e:i)};i();let a=0,o=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(i)},s=e.registerUpdateListener(o),c=new ResizeObserver(o);return c.observe(t),c.observe(n),()=>{cancelAnimationFrame(a),s(),c.disconnect()}},[e,t]),n}var Mt=56,Nt=40;function Pt(e,t,n){return n>=e.top&&n<=Math.max(e.bottom,e.top+Nt)&&t<=e.right+Mt}function Ft(e){return Math.max(e.getBoundingClientRect().right,...[...e.querySelectorAll(Ot)].map(e=>e.getBoundingClientRect().right))}function It(e,t){let n=e.getRootElement(),r=t instanceof Element?t:null;for(;r&&r.parentElement!==n;)r=r.parentElement;return n&&r instanceof HTMLElement?r:null}function Lt(e,t){let n=It(e,t);return n?Rt(e,n):null}function Rt(e,t){return e.read(()=>{for(let n of T().getChildren())if(e.getElementByKey(n.getKey())===t)return C(n,O)||null;return null})}function zt(e,t,n){let[r,i]=(0,B.useState)(null);return(0,B.useEffect)(()=>{if(!e||!t||!n){i(null);return}let r=0,a=null,o=e=>{e?.element!==a?.element&&(a=e,i(e))},s=()=>{cancelAnimationFrame(r),o(null)},c=t=>{if(cancelAnimationFrame(r),t.pointerType!==`mouse`&&t.pointerType!==`pen`||t.buttons!==0)return o(null);let{target:n,clientX:i,clientY:s}=t;r=requestAnimationFrame(()=>{let t=It(e,n);if(t){if(t===a?.element)return;let n=Rt(e,t);return o(n?{id:n,element:t}:null)}if(a){let{top:e,bottom:t}=a.element.getBoundingClientRect();if(Pt({top:e,bottom:t,right:Ft(a.element)},i,s))return}o(null)})};return document.addEventListener(`pointermove`,c),document.addEventListener(`scroll`,s,!0),document.documentElement.addEventListener(`pointerleave`,s),()=>{cancelAnimationFrame(r),document.removeEventListener(`pointermove`,c),document.removeEventListener(`scroll`,s,!0),document.documentElement.removeEventListener(`pointerleave`,s)}},[e,t,n]),(0,B.useMemo)(()=>{if(!r||!t||!n||!r.element.isConnected)return null;let e=r.element.getBoundingClientRect(),i=t.getBoundingClientRect(),a=document.createRange();return a.selectNodeContents(r.element),{kind:`block`,blockId:r.id,quote:``,elements:[r.element],range:a,left:e.left-i.left,right:Ft(r.element)-i.left,top:e.top-i.top,bottom:e.bottom-i.top}},[r,t,n])}var Bt=80,Vt=240,Ht=e=>{let t=/matrix\(([^)]+)\)/.exec(getComputedStyle(e).transform);return t?Number(t[1].split(`,`)[4]):0};function Ut(e,t){let n=t.offsetLeft,r=null,i=()=>{let i=n-t.offsetLeft;if(n=t.offsetLeft,!i||N()||!r&&Math.abs(i)<Bt)return;let a=i+(r?Ht(t):0),o={duration:Vt,easing:he};if(r)r.cancel();else for(let n of e.children)n!==t&&me(n,[{opacity:0},{opacity:1}],o);let s=t.animate([{transform:`translateX(${a}px)`},{transform:`none`}],o);r=s,s.finished.then(()=>{r===s&&(r=null)},()=>void 0)},a=new ResizeObserver(i);return a.observe(e),{settle:i,stop:()=>a.disconnect()}}function Wt({editor:e,threads:t,actions:n,agent:r,diagram:i,onMain:a,overlay:o,history:s,shareBase:c,children:l}){let[u,d]=(0,B.useState)(null),[f,p]=(0,B.useState)(null),[m,h]=(0,B.useState)(null),[g,_]=(0,B.useState)(null),v=(0,B.useCallback)(e=>{_(e),a?.(e)},[a]),y=(0,B.useRef)(null);(0,B.useEffect)(()=>{if(!g||!m)return;let e=Ut(g,m);return y.current=e,()=>{y.current=null,e.stop()}},[g,m]);let b=pe(`(max-width: 1100px)`),x=!pe(`(max-width: 1480px)`),S=b?`hidden`:x?`column`:`rail`,[C,w]=(0,B.useState)(0),T=Ue(e,t,u,C),E=(0,B.useMemo)(()=>i&&e&&!s?{threads:t,activeId:f,draft:i.draft,pick:i.pick,readOnly:i.readOnly,blockAction:i.blockAction,viewer:{actions:n,agent:r,create:i.create,drafts:i.drafts},activate:p,marked:()=>w(e=>e+1),blockIdOf:t=>Lt(e,t)}:null,[i,e,s,t,f,n,r]),D=jt(e,b||s?null:u);return We(T,t,f),(0,B.useLayoutEffect)(()=>y.current?.settle(),[S]),(0,R.jsxs)(`main`,{ref:v,...{0:{className:`x1n2onr6 xrvj5dj xc94fvo xl56j7k xwaa2ar x13zrc24 x1ffnkcp x4l9tsp`},2:{className:`x1n2onr6 xrvj5dj xl56j7k xwaa2ar x13zrc24 x1ffnkcp x4l9tsp xoiau2f`},1:{className:`x1n2onr6 xc94fvo xl56j7k xwaa2ar x13zrc24 x1ffnkcp x78zum5 xdt5ytf x1qjc9v5 x17qtykl`},3:{className:`x1n2onr6 xl56j7k xwaa2ar x13zrc24 x1ffnkcp xoiau2f x78zum5 xdt5ytf x1qjc9v5 x17qtykl`}}[(S===`rail`)<<1|!!b],children:[(0,R.jsx)(`div`,{className:`history-space-toc`,inert:!!s?.immersive,children:(0,R.jsx)(Dt,{editor:e,threads:t,variant:S})}),e?(0,R.jsx)(ut,{editor:e,shareBase:c}):null,(0,R.jsxs)(`article`,{ref:h,className:`x1n2onr6 x1vjfegm xh8yej3 xrgej4m xeuugli`,style:b?{marginInline:`auto`}:s?void 0:{"--ryugi-table-bleed":`368px`},onClick:e=>p(Ke(T,e.clientX,e.clientY)),children:[(0,R.jsx)(Oe,{}),(0,R.jsx)(A,{value:E,children:(0,R.jsx)(ft,{history:s,children:l})}),s?null:(0,R.jsx)($e,{activeId:f,anchors:T,container:m,threads:t})]}),(0,R.jsx)(`div`,{className:`x1n2onr6`,className:`history-space-comments ${{className:`x1n2onr6`}.className??``}`,inert:!!s?.immersive,children:(0,R.jsx)(pt,{history:s?.immersive?null:s,children:(0,R.jsx)(Qe,{actions:n,activeId:f,agent:r,anchors:T,blocked:D,narrow:b,railRef:d,threads:t,onActivate:p})})}),m&&o&&!s?o(m):null]})}function Gt({left:e,top:t,quote:n,wholeBlock:i,initial:a,restored:o,leaving:s,onChange:c,onSubmit:l,onCancel:u,ref:d}){return(0,R.jsx)(`div`,{ref:d,...{0:{className:`x10l6tqk x1u8a7rm xj6ak53 xowlrko xllfotl xatqbsq x1u6ievf`},1:{className:`x10l6tqk x1u8a7rm xj6ak53 x1u6ievf xxp0q0x x12l1aco xn0cd8s x47corl`}}[!!s|0],style:{left:e,top:t},children:(0,R.jsxs)(re,{active:!0,children:[(0,R.jsxs)(`div`,{className:`x78zum5 x1pha0wt x167g77z xz9dl7a x1hr3lfm xqfszdh x1j6dyjg`,children:[(0,R.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xuxw1ft xlyipyv xddlp02`,children:i?n:`“${n}”`}),o?(0,R.jsx)(`span`,{className:`x2lah0s x7zghnd`,children:r(`document.draftRestored`)}):null]}),(0,R.jsx)(ue,{autoFocus:!0,initial:a,placeholder:r(`document.draftPlaceholder`),onCancel:u,onChange:c,onSubmit:l})]})})}function Kt(e){let t=(0,B.useMemo)(oe,[]),[n,r]=(0,B.useState)(null),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(``),s=(0,B.useRef)(0),c=(0,B.useRef)(null),l=(0,B.useRef)(null);Ge(i?null:n?.target.range??null,i?void 0:n?.target.elements);let u=(0,B.useCallback)(n=>{window.clearTimeout(s.current);let i=t.take(j(n.blockId,n.quote,n.blockIds,n.textRanges,n.diagram));o.current=i,a(!1),r({target:n,initial:i}),window.getSelection()?.removeAllRanges(),e()},[t,e]),d=(0,B.useCallback)(e=>{n&&(t.save(j(n.target.blockId,n.target.quote,n.target.blockIds,n.target.textRanges,n.target.diagram),e?o.current:``),a(!0),s.current=window.setTimeout(()=>{r(null),a(!1)},120))},[n,t]);return(0,B.useEffect)(()=>{if(!n||i)return;let e=e=>{let t=e.target;c.current?.contains(t)||l.current?.contains(t)||d(!0)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[n,i,d]),(0,B.useEffect)(()=>()=>window.clearTimeout(s.current),[]),{drafts:t,draft:n,leaving:i,restored:!!n?.initial,open:u,close:d,onText:e=>{o.current=e},panelRef:c,toolbarRef:l}}var qt=46;function Jt(e,t){return Math.min(e+8,window.innerWidth-(t.offsetParent?.getBoundingClientRect().left??0)-40)}function Yt({article:e,editor:t,enabled:n,onComment:r}){let i=zt(t,e.closest(`main`),n);return i?(0,R.jsx)(te,{left:Jt(i.right,e),top:i.top,onComment:()=>r(i)}):null}function Xt({blockId:e,element:t,node:n,host:r}){let i=r.closest(`main`);if(!i)return null;let a=n.getBoundingClientRect(),o=i.getBoundingClientRect(),s=document.createRange();return s.setStart(r,0),{blockId:e,quote:t.label,diagram:t.target,range:s,left:a.left-o.left,right:a.right-o.left,top:a.top-o.top,bottom:a.bottom-o.top}}function Zt(e){return{left:e.offsetLeft,right:Math.min(e.offsetLeft+e.offsetWidth,window.innerWidth-16)}}function Qt({editor:e,threads:t,actions:n,agent:r,canComment:i,canCommentDiagram:a=i,selection:o,clearSelection:s,resolveSelection:c,onCreate:l,onMain:u,onToolbar:d,history:f,shareBase:p,children:m}){let h=Kt(s),{draft:g,open:_}=h,[v,y]=(0,B.useState)(null),[b,x]=(0,B.useState)(0);(0,B.useLayoutEffect)(()=>{if(!v||f)return;let t=()=>{let t=v.querySelector(`.ryugi-editor-toolbar`);t?x(t.getBoundingClientRect().height):e?.isEditable()||x(0)};t();let n=new MutationObserver(t);return n.observe(v,{childList:!0}),()=>n.disconnect()},[v,f,e]),(0,B.useEffect)(()=>{if(!v||!d)return;let e=()=>d(v.querySelector(`.ryugi-editor-toolbar, .history-bar`)!==null);e();let t=new MutationObserver(e);return t.observe(v,{childList:!0}),()=>{t.disconnect(),d(!1)}},[v,d]);let S=h.leaving?null:g?.target??null,{drafts:C}=h,w=(0,B.useMemo)(()=>({draft:S,drafts:C,readOnly:!a,blockAction:i,pick:e=>{let t=Xt(e);t&&_(t)},create:(e,t)=>l({...e,range:document.createRange(),left:0,right:0,top:0,bottom:0},t)}),[i,a,S,C,_,l]),T=(0,B.useCallback)(()=>{let e=window.getSelection();navigator.clipboard?.writeText(e?.toString()??``),e?.removeAllRanges(),s()},[s]),E=(0,B.useMemo)(()=>({toolbarSlot:v,selectionActions:g?null:(0,R.jsx)(ne,{onCopy:T,onComment:i?()=>{let e=c();e&&_(e)}:void 0})}),[v,g,i,c,_,T]);return(0,R.jsxs)(ae,{value:E,children:[(0,R.jsx)(`div`,{className:`ryugi-editor-toolbar-slot`,ref:y,children:b>0?(0,R.jsx)(`div`,{"aria-hidden":`true`,className:`history-toolbar-space`,style:{height:b}}):null}),(0,R.jsx)(Wt,{actions:n,agent:r,diagram:w,editor:e,history:f,shareBase:p,threads:t,overlay:t=>(0,R.jsxs)(R.Fragment,{children:[o&&!g&&o.kind===`block`&&i?(0,R.jsx)(te,{left:Jt(o.right,t),ref:h.toolbarRef,top:o.top,onComment:()=>h.open(o)}):null,(0,R.jsx)(Yt,{article:t,editor:e,enabled:i&&!g&&!o,onComment:h.open}),o&&!g&&o.kind===`nested`?(0,R.jsx)(k,{left:o.left,ref:h.toolbarRef,top:Math.max(o.top-qt,0),children:(0,R.jsx)(ne,{onComment:i?()=>h.open(o):void 0,onCopy:T})}):null,g?(0,R.jsx)(Gt,{ref:h.panelRef,...Le(g.target,Zt(t),340,8),initial:g.initial,leaving:h.leaving,quote:_e(g.target),restored:h.restored,wholeBlock:g.target.kind===`block`,onCancel:()=>h.close(!0),onChange:h.onText,onSubmit:e=>l(g.target,e).then(e=>(e&&h.close(!1),e))},j(g.target.blockId,g.target.quote,g.target.blockIds,g.target.textRanges,g.target.diagram)):null]}),onMain:u,children:m})]})}function $t({error:e,onDismiss:t}){return e?(0,z.createPortal)((0,R.jsxs)(`div`,{role:`alert`,className:`xixxii4 xy58vm5 xvf9o5y xvueqy4 xeq5yr9 x27kpxv x11uqc5h x78zum5 x6s0dn4 x1v2ro7d x10dr8xq x1hr3lfm xur7f20 xmkeg23 x1y0btm7 xgcsv5v x1rozbrz xo2rkog xqfszdh x4z9k3i x1pzk2i8`,children:[(0,R.jsx)(`span`,{children:r(`documentExport.failed`)}),(0,R.jsx)(`button`,{"aria-label":r(`common.close`),type:`button`,onClick:t,className:`xrvj5dj x1ku5rj1 xjbqb8w x1bo0w0s xc342km xgd8bvy x1fgtraw x1717udv x1ypdohk x2lah0s`,children:(0,R.jsx)(_,{size:16})})]}),document.body):null}var $=[`wheel`,`touchmove`,`keydown`,`pointerdown`];function en(e){return e.getEditorState().read(()=>T().getChildren().map(e=>({id:C(e,O),key:e.getKey()}))).flatMap(({id:t,key:n})=>{let r=t?e.getElementByKey(n):null;return r?[{id:t,element:r}]:[]})}function tn(e,t){if(t.kind!==`document`)return!1;let n=en(e).find(({id:e})=>e===t.blockId);if(!n)return!1;let r=n.element.getBoundingClientRect().top-t.top;return r!==0&&window.scrollBy({top:r,behavior:`instant`}),!0}function nn(e){(0,B.useEffect)(()=>{if(!e)return;let t=c({read(){let t=null;for(let{id:n,element:r}of en(e)){let{top:e,bottom:i}=r.getBoundingClientRect();if(!(i<=0)){if(e>=0&&e<window.innerHeight)return{kind:`document`,blockId:n,top:e};if(t??={kind:`document`,blockId:n,top:e},e>=0)break}}return t},apply:t=>tn(e,t)}),n=()=>{let t=h();t&&tn(e,t)};n();let r=e.registerUpdateListener(n);for(let e of $)window.addEventListener(e,d,{passive:!0});return()=>{t(),r();for(let e of $)window.removeEventListener(e,d)}},[e])}var rn=e=>`${I(e)}:${ye(e)}`;async function an(e,t){let n=new Map;for(let t of L(e))xe(t)&&n.set(rn(t),t);let r=await Promise.all([...n].map(async([e,n])=>[e,await t(n).catch(()=>void 0)])),i={};for(let[e,t]of r)t&&(i[e]=t);return i}function on(e){let t=structuredClone({...e,comments:e.comments??de()}),n=t=>{if(!t||t.startsWith(`#`))return t;try{return new URL(t,e.contentBase||e.sourceUrl).href}catch{return t}},r=e=>{if(!e||typeof e!=`object`)return;let t=e;if(typeof t.type==`string`){for(let e of[`src`,`poster`,`favicon`,`image`])typeof t[e]==`string`&&(t[e]=n(t[e]));if((t.type===`link`||t.type===`autolink`||t.type===`link-card`)&&typeof t.url==`string`&&(t.url=n(t.url)),t.type===`excalidraw`&&typeof t.snapshot==`string`){let[e=``,...r]=t.snapshot.split(`
|
|
3
3
|
`);!e.trimStart().startsWith(`{`)&&!e.startsWith(`ref:`)&&/(?:\.excalidraw(?:[?#]|$)|^https?:|^blob:)/.test(e)&&(t.snapshot=[n(e),...r].join(`
|
|
4
|
-
`))}}for(let e of Object.values(t))typeof e==`object`&&r(e)};return r(t.state),t}function sn(e,t){let n;if(t.cloudOrigin){if(!e.to)return;n=new URL(`/a/${encodeURIComponent(e.to)}`,t.cloudOrigin)}else{n=new URL(`/${be(e)}/${encodeURIComponent(I(e))}`,t.sourceUrl);let r=new URL(t.sourceUrl);n.searchParams.set(`at`,r.searchParams.get(`at`)??r.pathname)}for(let t of m)e[t]&&n.searchParams.set(t,e[t]);return n.href}function cn(e){let[n,r]=(0,B.useState)(!1),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(e);o.current=e;let s=(0,B.useRef)(null),c=async()=>{let e=o.current;if(!e.editor||e.available===!1||s.current)return;let n=new AbortController;s.current=n,r(!0),a(!1);try{let r=e.editor.getEditorState().toJSON(),i=e.scenes?await an(r,e.scenes.load):void 0;if(n.signal.aborted)return;let a=on({state:r,...i?{embeds:i}:{},comments:e.comments,title:e.title,contentBase:e.contentBase,sourceUrl:location.href,cloudOrigin:V()??(e.cloud?location.origin:void 0)}),{printDocument:o}=await t(async()=>{let{printDocument:e}=await import(`./printDocument-
|
|
4
|
+
`))}}for(let e of Object.values(t))typeof e==`object`&&r(e)};return r(t.state),t}function sn(e,t){let n;if(t.cloudOrigin){if(!e.to)return;n=new URL(`/a/${encodeURIComponent(e.to)}`,t.cloudOrigin)}else{n=new URL(`/${be(e)}/${encodeURIComponent(I(e))}`,t.sourceUrl);let r=new URL(t.sourceUrl);n.searchParams.set(`at`,r.searchParams.get(`at`)??r.pathname)}for(let t of m)e[t]&&n.searchParams.set(t,e[t]);return n.href}function cn(e){let[n,r]=(0,B.useState)(!1),[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(e);o.current=e;let s=(0,B.useRef)(null),c=async()=>{let e=o.current;if(!e.editor||e.available===!1||s.current)return;let n=new AbortController;s.current=n,r(!0),a(!1);try{let r=e.editor.getEditorState().toJSON(),i=e.scenes?await an(r,e.scenes.load):void 0;if(n.signal.aborted)return;let a=on({state:r,...i?{embeds:i}:{},comments:e.comments,title:e.title,contentBase:e.contentBase,sourceUrl:location.href,cloudOrigin:V()??(e.cloud?location.origin:void 0)}),{printDocument:o}=await t(async()=>{let{printDocument:e}=await import(`./printDocument-DatfOXhT.js`);return{printDocument:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67]),import.meta.url);await o(a,{signal:n.signal})}catch(e){n.signal.aborted||(a(!0),console.warn(`Document export failed`,e))}finally{s.current===n&&(s.current=null),n.signal.aborted||r(!1)}},l=(0,B.useRef)(c);return l.current=c,(0,B.useEffect)(()=>{r(!1),a(!1);let t=t=>{Ce(t)&&t.data?.type===`ryugi:document-export`&&t.data.id===e.id&&t.data.format===`pdf`&&l.current()};return window.addEventListener(`message`,t),()=>{window.removeEventListener(`message`,t),s.current?.abort(),s.current=null}},[e.id]),{state:n?`preparing`:e.editor&&e.available!==!1?`ready`:null,error:i,dismiss:()=>a(!1),exportPdf:()=>void c()}}var ln=2400,un=[{boxShadow:`inset 2px 0 0 #0d99ff`,backgroundColor:`rgb(13 153 255 / 0.13)`},{boxShadow:`inset 2px 0 0 transparent`,backgroundColor:`transparent`}];function dn(e,t){let n=e.getEditorState().read(()=>T().getChildren().find(e=>C(e,O)===t)?.getKey());return n?e.getElementByKey(n):null}var fn=50,pn=100;function mn(e){let t=e.indexOf(`:`),n=e.slice(0,t),r=e.slice(t+1);return`[data-ref-chip="${n}"][data-ref-key="${r}"], [data-ref-to="${n}"][data-ref-key="${r}"]`}function hn(e){let t=0,n=setInterval(()=>{let r=document.querySelector(mn(e));r&&J(r),(r||++t>=fn)&&clearInterval(n)},pn);return()=>clearInterval(n)}function gn(e,n,r,i,a){let o=!!r,[s,c]=(0,B.useState)(null),d=(0,B.useMemo)(()=>o&&l(),[o]);return(0,B.useEffect)(()=>{if(!d)return;let t,n=u(n=>{if(n.kind===`active`&&c(n.key),n.kind===`reveal`&&(c(n.key),t?.(),t=hn(n.key)),n.kind!==`scroll-to`)return;c(n.key);let r=e&&dn(e,n.blockId);r&&(J(r),r.animate(un,{duration:ln,easing:`ease-out`}))});return p({kind:`ready`}),()=>{n(),t?.()}},[d,e]),(0,B.useMemo)(()=>o?{active:s,useBoard:r,useScene:i,openEmbed:e=>{if(d)return p({kind:`embed-open`,target:e});let n=a?.refId(e);if(!a||!n)return;let r=ge(a.frameSrc(`whiteboard`,n),e);t(async()=>{let{openArtifactModal:e}=await import(`./ArtifactModal-DjgA_mk-.js`);return{openArtifactModal:e}},__vite__mapDeps([68,1,10,3,4,2,5,6,7,11,12,13,14,38,69,24,40,44,70,51,71,18,72,35,36,50,73]),import.meta.url).then(({openArtifactModal:t})=>t({allow:a.frameAllow,src:r,title:e.label??I(e)}))},open:e=>{let t=be(e);d?p({kind:`ref-open`,target:e}):location.assign(`/document/${n}${f(location.search,le(I(e),t,e,`document`))}`)}}:null,[o,s,d,n,r,i,a])}function _n(e){let[t,n]=(0,B.useState)([]);return(0,B.useEffect)(()=>{if(!e)return;let t=()=>{let t=L(e.getEditorState().toJSON());n(e=>JSON.stringify(e)===JSON.stringify(t)?e:t)};return t(),e.registerUpdateListener(t)},[e]),t}function vn(e,t){return T().getChildren().flatMap(n=>{let r=C(n,O),i=e.getElementByKey(n.getKey());if(!r||!i||!t.intersectsNode(i))return[];let a=document.createRange();if(a.selectNodeContents(i),t.compareBoundaryPoints(Range.START_TO_START,a)>0&&a.setStart(t.startContainer,t.startOffset),t.compareBoundaryPoints(Range.END_TO_END,a)<0&&a.setEnd(t.endContainer,t.endOffset),a.collapsed)return[];let o=a.toString();if(!o&&i.textContent)return[];let s=document.createRange();return s.selectNodeContents(i),s.setEnd(a.startContainer,a.startOffset),[{blockId:r,quote:o,start:s.toString().length}]})}var yn=200;function bn(e,t){let n=(t instanceof Element?t:t?.parentElement)?.closest(`[contenteditable="true"]`);return!!(n&&n!==e&&e.contains(n))}function xn(e,t){let n=e.read(()=>{let t=E();return v(t)?T().getChildren().flatMap(n=>{if(!t.has(n.getKey()))return[];let r=C(n,O),i=e.getElementByKey(n.getKey());return r&&i?[{id:r,element:i}]:[]}):[]});if(n.length){let e=n.map(e=>e.element),r=e.map(e=>e.getBoundingClientRect()),i=t.getBoundingClientRect(),a=document.createRange();return a.selectNodeContents(e[0]),{kind:`block`,blockId:n[0].id,...n.length>1?{blockIds:n.map(e=>e.id)}:{},quote:``,elements:e,range:a,left:Math.min(...r.map(e=>e.left))-i.left,right:Math.max(...r.map(e=>e.right))-i.left,top:r[0].top-i.top,bottom:r.at(-1).bottom-i.top}}let r=window.getSelection(),i=e.getRootElement();if(!r||r.isCollapsed||r.rangeCount===0||!i?.contains(r.anchorNode)||!i.contains(r.focusNode))return null;let a=r.toString().trim(),o=r.getRangeAt(0),s=e.read(()=>vn(e,o));if(!s.length||!a)return null;let c=bn(i,r.anchorNode)&&bn(i,r.focusNode),l=[...o.getClientRects()],u=l[0]??o.getBoundingClientRect(),d=l.at(-1)??u,f=t.getBoundingClientRect();return{blockId:s[0].blockId,...s.length>1?{blockIds:s.map(e=>e.blockId),textRanges:s}:c?{textRanges:s}:{},...c?{kind:`nested`}:{},quote:a.slice(0,500),left:u.left-f.left,bottom:d.bottom-f.top,top:u.top-f.top,right:Math.max(...l.map(e=>e.right),d.right)-f.left,range:o.cloneRange()}}function Sn(e,t){let[n,r]=(0,B.useState)(null);return(0,B.useEffect)(()=>{if(!e||!t)return;let n=0,i=()=>{clearTimeout(n),n=window.setTimeout(()=>r(xn(e,t)),yn)};document.addEventListener(`selectionchange`,i);let a=e.registerUpdateListener(i);window.addEventListener(`scroll`,i,!0),window.addEventListener(`resize`,i);let o=new ResizeObserver(i);return e.getRootElement()&&o.observe(e.getRootElement()),()=>{clearTimeout(n),document.removeEventListener(`selectionchange`,i),a(),window.removeEventListener(`scroll`,i,!0),window.removeEventListener(`resize`,i),o.disconnect()}},[e,t]),[n,(0,B.useCallback)(()=>{r(null),e?.read(()=>v(E()))&&e.update(()=>y(null))},[e]),(0,B.useCallback)(()=>e&&t?xn(e,t):null,[e,t])]}function Cn(){let e=new Set;return{emit:t=>e.forEach(e=>e(t)),subscribe:t=>(e.add(t),()=>e.delete(t))}}export{V as C,Ee as S,Te as T,Ue as _,_n as a,Re as b,sn as c,Qt as d,Wt as f,Ke as g,ut as h,gn as i,nn as l,ft as m,Sn as n,cn as o,gt as p,vn as r,rn as s,Cn as t,$t as u,Ge as v,Ce as w,Oe as x,We as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{At as e,Dt as t,Kt as n,qt as r,vn as i}from"./editor-
|
|
1
|
+
import{At as e,Dt as t,Kt as n,qt as r,vn as i}from"./editor-BfOKfIhz.js";import{html as a}from"./dist-CD6D4M-i.js";import{r as o}from"./dist-Cv9nQ9De.js";import{n as s,r as c}from"./dist-BtjjxT9L.js";var l=1,u=33,d=34,f=35,p=36,m=new s(e=>{let t=e.pos;for(;;){if(e.next==10){e.advance();break}if(e.next==123&&e.peek(1)==123||e.next<0)break;e.advance()}e.pos>t&&e.acceptToken(l)});function h(e,t,n){return new s(r=>{let i=r.pos;for(;r.next!=e&&r.next>=0&&(n||r.next!=38&&(r.next!=123||r.peek(1)!=123));)r.advance();r.pos>i&&r.acceptToken(t)})}var g=h(39,u,!1),_=h(34,d,!1),v=h(39,f,!0),y=h(34,p,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StR!Y!SQpeRrf",nodeNames:`⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue`,maxTerm:42,nodeProps:[[`openedBy`,3,`{{`,15,`(`],[`closedBy`,4,`}}`,14,`)`],[`isolate`,-4,5,19,25,27,``]],skippedNodes:[0],repeatNodeCount:4,tokenData:"0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}#r}!O+v!O!P-]!P!Q#r!Q![+v![!]+v!]!_#r!_!`-s!`!c#r!c!}+v!}#O.Z#O#P#r#P#Q.q#Q#R#r#R#S+v#S#T#r#T#o+v#o#p/X#p#q#r#q#r0Z#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vQ#wTUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rQ$ZSO#q#r#r;'S#r;'S;=`$g<%lO#rQ$jP;=`<%l#rR$t[UQvPOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mq#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR%qTyPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&XTaPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&oXUQWPOp'[pq#rq!]'[!]!^#r!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R'aXUQOp'[pq#rq!]'[!]!^'|!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R(TTVPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR(gXOp'[pq#rq!]'[!]!^'|!^#q'[#q#r)S#r;'S'[;'S;=`)t<%lO'[P)VUOp)Sq!])S!]!^)i!^;'S)S;'S;=`)n<%lO)SP)nOVPP)qP;=`<%l)SR)wP;=`<%l'[R*RTzPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR*iT^PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+PT_PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+gThPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+}b[PUQO}#r}!O+v!O!Q#r!Q![+v![!]+v!]!c#r!c!}+v!}#R#r#R#S+v#S#T#r#T#o+v#o#q#r#q#r$W#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vR-YP;=`<%l+vR-dTwPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR-zTUQbPO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.bTZPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.xT]PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/^VUQO#o#r#o#p/s#p#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",tokenizers:[m,g,_,v,y,0,1],topRules:{Content:[0,2],Attribute:[1,9]},tokenPrec:0}),x=o.parser.configure({top:`SingleExpression`}),S=b.configure({props:[n({Text:r.content,Is:r.definitionOperator,AttributeName:r.attributeName,"AttributeValue ExpressionAttributeValue StatementAttributeValue":r.attributeValue,Entity:r.character,InvalidEntity:r.invalid,"BoundAttributeName/Identifier":r.attributeName,"EventName/Identifier":r.special(r.attributeName),"ReferenceName/Identifier":r.variableName,"DirectiveName/Identifier":r.keyword,"{{ }}":r.brace,"( )":r.paren,"[ ]":r.bracket,"# '*'":r.punctuation})]}),C={parser:x},w={parser:o.parser},T=S.configure({wrap:i((e,t)=>e.name==`InterpolationContent`?C:null)}),E=S.configure({wrap:i((e,t)=>e.name==`InterpolationContent`?C:e.name==`AttributeInterpolation`?e.node.parent?.name==`StatementAttributeValue`?w:C:null),top:`Attribute`}),D={parser:T},O={parser:E},k=a({selfClosingTags:!0});function A(e){return e.configure({wrap:i(M)},`angular`)}var j=A(k.language);function M(e,t){switch(e.name){case`Attribute`:return/^[*#(\[]|\{\{/.test(t.read(e.from,e.to))?O:null;case`Text`:return D}return null}function N(n={}){let r=k;if(n.base){if(n.base.language.name!=`html`||!(n.base.language instanceof t))throw RangeError(`The base option must be the result of calling html(...)`);r=n.base}return new e(r.language==k.language?j:A(r.language),[r.support,r.language.data.of({closeBrackets:{brackets:[`[`,`{`,`"`]},indentOnInput:/^\s*[\}\]]$/})])}export{N as angular};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./dist-DxrXYjGy.js";import{At as r,Bt as i,Dt as a,Kt as o,Lt as s,Nt as c,Rt as l,qt as u}from"./editor-2avuG1le.js";import{r as d}from"./dist-Cdwc8_lc.js";var f=168,p=169,m=170,h=1,g=2,_=3,ee=171,te=172,v=4,y=173,b=5,x=174,S=175,C=176,w=177,T=6,E=7,ne=8,D=9,O=0,k=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],re=58,A=40,j=95,M=91,N=45,P=46,F=35,I=37,L=123,R=125,z=47,B=42,V=10,H=61,U=43,W=38;function G(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function K(e){return e>=48&&e<=57}function q(e){let t;return e.next==z&&((t=e.peek(1))==z||t==B)}var J=new e((e,t)=>{if(t.dialectEnabled(O)){let n;if(e.next<0&&t.canShift(C))e.acceptToken(C);else if(((n=e.peek(-1))==V||n<0)&&t.canShift(S)){let t=0;for(;e.next!=V&&k.includes(e.next);)e.advance(),t++;e.next==V||q(e)?e.acceptToken(S,-t):t&&e.acceptToken(w)}else if(e.next==V)e.acceptToken(x,1);else if(k.includes(e.next)){for(e.advance();e.next!=V&&k.includes(e.next);)e.advance();e.acceptToken(w)}}else{let t=0;for(;k.includes(e.next);)e.advance(),t++;t&&e.acceptToken(w)}},{contextual:!0}),Y=new e((e,t)=>{if(q(e)){if(e.advance(),t.dialectEnabled(O)){let t=-1;for(let n=1;;n++){let r=e.peek(-n-1);if(r==V||r<0){t=n+1;break}if(!k.includes(r))break}if(t>-1){let n=e.next==B,r=0;for(e.advance();e.next>=0;)if(e.next==V){e.advance();let n=0;for(;e.next!=V&&k.includes(e.next);)n++,e.advance();if(n<t){r=-n-1;break}}else if(n&&e.next==B&&e.peek(1)==z){r=2;break}else e.advance();e.acceptToken(n?E:T,r);return}}if(e.next==z){for(;e.next!=V&&e.next>=0;)e.advance();e.acceptToken(T)}else{for(e.advance();e.next>=0;){let{next:t}=e;if(e.advance(),t==B&&e.next==z){e.advance();break}}e.acceptToken(E)}}}),X=new e((e,t)=>{(e.next==U||e.next==H)&&t.dialectEnabled(O)&&e.acceptToken(e.next==H?ne:D,1)}),ie=new e((e,t)=>{if(!t.dialectEnabled(O))return;let n=t.context.depth;if(e.next<0&&n)e.acceptToken(p);else if(e.peek(-1)==V){let t=0;for(;e.next!=V&&k.includes(e.next);)e.advance(),t++;t!=n&&e.next!=V&&!q(e)&&(t<n?e.acceptToken(p,-t):e.acceptToken(f))}}),ae=new e((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(G(a)||a==N||a==j||n&&K(a))!n&&(a!=N||i>0)&&(n=!0),r===i&&a==N&&r++,e.advance();else if(a==F&&e.peek(1)==L){e.acceptToken(b,2);break}else{n&&e.acceptToken(r==2&&t.canShift(v)?v:t.canShift(y)?y:a==A?ee:te);break}}}),oe=new e(e=>{if(e.next==R){for(e.advance();G(e.next)||e.next==N||e.next==j||K(e.next);)e.advance();e.next==F&&e.peek(1)==L?e.acceptToken(g,2):e.acceptToken(h)}}),se=new e(e=>{if(k.includes(e.peek(-1))){let{next:t}=e;(G(t)||t==j||t==F||t==P||t==M||t==re&&G(e.peek(1))||t==N||t==W||t==B)&&e.acceptToken(m)}}),ce=new e(e=>{if(!k.includes(e.peek(-1))){let{next:t}=e;if(t==I&&(e.advance(),e.acceptToken(_)),G(t)){do e.advance();while(G(e.next)||K(e.next));e.acceptToken(_)}}});function Z(e,t){this.parent=e,this.depth=t,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)}var le=new Z(null,0),ue=new n({start:le,shift(e,t,n,r){return t==f?new Z(e,n.pos-r.pos):t==p?e.parent:e},hash(e){return e.hash}}),de=o({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":u.definitionKeyword,"Keyword selector":u.keyword,ControlKeyword:u.controlKeyword,NamespaceName:u.namespace,KeyframeName:u.labelName,KeyframeRangeName:u.operatorKeyword,TagName:u.tagName,"ClassName Suffix":u.className,PseudoClassName:u.constant(u.className),IdName:u.labelName,"FeatureName PropertyName":u.propertyName,AttributeName:u.attributeName,NumberLiteral:u.number,KeywordQuery:u.keyword,UnaryQueryOp:u.operatorKeyword,"CallTag ValueName":u.atom,VariableName:u.variableName,SassVariableName:u.special(u.variableName),Callee:u.operatorKeyword,Unit:u.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":u.definitionOperator,MatchOp:u.compareOperator,"ChildOp SiblingOp, LogicOp":u.logicOperator,BinOp:u.arithmeticOperator,"Important Global Default":u.modifier,Comment:u.blockComment,LineComment:u.lineComment,ColorLiteral:u.color,"ParenthesizedContent StringLiteral":u.string,"InterpolationStart InterpolationContinue InterpolationEnd":u.meta,': "..."':u.punctuation,"PseudoOp #":u.derefOperator,"; ,":u.separator,"( )":u.paren,"[ ]":u.squareBracket,"{ }":u.brace}),fe={__proto__:null,not:62,using:197,as:207,with:211,without:211,hide:225,show:225,if:263,from:269,to:271,through:273,in:279},pe={__proto__:null,url:82,"url-prefix":82,domain:82,regexp:82,lang:104,"nth-child":104,"nth-last-child":104,"nth-of-type":104,"nth-last-of-type":104,dir:104,"host-context":104},me={__proto__:null,"@import":162,"@include":194,"@mixin":200,"@function":200,"@use":204,"@extend":214,"@at-root":218,"@forward":222,"@media":228,"@charset":232,"@namespace":236,"@keyframes":242,"@supports":254,"@if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(jR(j'sQ'r&gR(i'rQ&w%YR'|&wQ'z&vR(p'zQ&y%^R(O&yQ%a#eR&}%aR|QSoOq]wPx!f#l$_%f`XOPqx!f#l$_%fQ!zeQ!{fQ$W!aQ$X!bQ$Y!cQ$Z!dQ&O$`Q&p%TR(['ZQ!SVQ!uaQ!vbQ!wcQ!xdQ#OgQ#WiQ#crQ#guQ#hvS#q!Q$dQ#x!TQ$e!tQ%l#sQ%m#tQ%n#ul%u$O$a%v&Q&j'S'V'^'t(U(Y(^(w)UQ&S$cS&W$e&YQ&g$wQ&{%_Q'O%bQ'X%{Q'f&XQ(`'bQ(h'qQ(t(QR(u(SR%x$OR&R$aR&P$`QzPQ$^!fR%}$_X#ly#j#m%eQ#VhQ#_mQ$h!uR&^$iW#Rhm!u$iQ#^lQ$|#QQ%S#SQ&m%PQ&n%QQ'p&dR(f'oQ%O#QQ'v&kR)R(nQ#apQ$k!vQ$n!xQ$q!zQ$v#OQ%V#WQ%W#YQ%]#_Q%d#hQ&]$hQ&f$uQ&q%XQ'k&^Q'l&_S'm&`&bQ(k'sQ(}(eR)Q(jR&h$wR#ft",nodeNames:`⚠ InterpolationEnd InterpolationContinue Unit VariableName InterpolationStart LineComment Comment IndentedMixin IndentedInclude StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector SuffixedSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue . CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery ComparisonQuery CompareOp UnaryQuery LogicOp ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword Keyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles`,maxTerm:196,context:ue,nodeProps:[[`openedBy`,1,`InterpolationStart`,5,`InterpolationEnd`,21,`(`,43,`[`,78,`{`],[`isolate`,-3,6,7,26,``],[`closedBy`,22,`)`,44,`]`,70,`}`]],propSources:[de],skippedNodes:[0,6,7,146],repeatNodeCount:21,tokenData:"!$Q~RyOq#rqr$jrs0jst2^tu8{uv;hvw;{wx<^xy={yz>^z{>c{|>||}Co}!ODQ!O!PDo!P!QFY!Q![Fk![!]Gf!]!^Hb!^!_Hs!_!`Is!`!aJ^!a!b#r!b!cKa!c!}#r!}#OMn#O#P#r#P#QNP#Q#RNb#R#T#r#T#UNw#U#c#r#c#d!!Y#d#o#r#o#p!!o#p#qNb#q#r!#Q#r#s!#c#s;'S#r;'S;=`!#z<%lO#rW#uSOy$Rz;'S$R;'S;=`$d<%lO$RW$WSzWOy$Rz;'S$R;'S;=`$d<%lO$RW$gP;=`<%l$RY$m[Oy$Rz!_$R!_!`%c!`#W$R#W#X%v#X#Z$R#Z#[)Z#[#]$R#]#^,V#^;'S$R;'S;=`$d<%lO$RY%jSzWlQOy$Rz;'S$R;'S;=`$d<%lO$RY%{UzWOy$Rz#X$R#X#Y&_#Y;'S$R;'S;=`$d<%lO$RY&dUzWOy$Rz#Y$R#Y#Z&v#Z;'S$R;'S;=`$d<%lO$RY&{UzWOy$Rz#T$R#T#U'_#U;'S$R;'S;=`$d<%lO$RY'dUzWOy$Rz#i$R#i#j'v#j;'S$R;'S;=`$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R;'S;=`$d<%lO$RXKdYOy$Rz}$R}!OLS!O!c$R!c!}Lq!}#T$R#T#oLq#o;'S$R;'S;=`$d<%lO$RXLXWzWOy$Rz!c$R!c!}Lq!}#T$R#T#oLq#o;'S$R;'S;=`$d<%lO$RXLx[!rPzWOy$Rz}$R}!OLq!O!Q$R!Q![Lq![!c$R!c!}Lq!}#T$R#T#oLq#o;'S$R;'S;=`$d<%lO$RZMsS|ROy$Rz;'S$R;'S;=`$d<%lO$R_NUS{VOy$Rz;'S$R;'S;=`$d<%lO$R[NeUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RkNzUOy$Rz#b$R#b#c! ^#c;'S$R;'S;=`$d<%lO$Rk! cUzWOy$Rz#W$R#W#X! u#X;'S$R;'S;=`$d<%lO$Rk! |SmczWOy$Rz;'S$R;'S;=`$d<%lO$Rk!!]UOy$Rz#f$R#f#g! u#g;'S$R;'S;=`$d<%lO$RZ!!tS!hROy$Rz;'S$R;'S;=`$d<%lO$RZ!#VS!pROy$Rz;'S$R;'S;=`$d<%lO$R]!#hU!dPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!#}P;=`<%l#r",tokenizers:[ie,se,oe,ce,ae,J,Y,X,0,1,2,3,4],topRules:{StyleSheet:[0,10],Styles:[1,145]},dialects:{indented:0},specialized:[{term:172,get:e=>fe[e]||-1},{term:171,get:e=>pe[e]||-1},{term:80,get:e=>me[e]||-1},{term:173,get:e=>Q[e]||-1}],tokenPrec:3217}),$=a.define({name:`sass`,parser:he.configure({props:[l.add({Block:s,Comment(e,t){return{from:e.from+2,to:t.sliceDoc(e.to-2,e.to)==`*/`?e.to-2:e.to}}}),i.add({Declaration:c()})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`},line:`//`},indentOnInput:/^\s*\}$/,wordChars:`$-`}}),ge=$.configure({dialect:`indented`,props:[i.add({"Block RuleSet":e=>e.baseIndent+e.unit}),l.add({Block:e=>({from:e.from,to:e.to})})]}),_e=d(e=>e.name==`VariableName`||e.name==`SassVariableName`);function ve(e){return new r(e?.indented?ge:$,$.data.of({autocomplete:_e}))}export{ve as sass};
|
|
1
|
+
import{n as e,r as t,t as n}from"./dist-BtjjxT9L.js";import{At as r,Bt as i,Dt as a,Kt as o,Lt as s,Nt as c,Rt as l,qt as u}from"./editor-BfOKfIhz.js";import{r as d}from"./dist-DWGWdalI.js";var f=168,p=169,m=170,h=1,g=2,_=3,ee=171,te=172,v=4,y=173,b=5,x=174,S=175,C=176,w=177,T=6,E=7,ne=8,D=9,O=0,k=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],re=58,A=40,j=95,M=91,N=45,P=46,F=35,I=37,L=123,R=125,z=47,B=42,V=10,H=61,U=43,W=38;function G(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function K(e){return e>=48&&e<=57}function q(e){let t;return e.next==z&&((t=e.peek(1))==z||t==B)}var J=new e((e,t)=>{if(t.dialectEnabled(O)){let n;if(e.next<0&&t.canShift(C))e.acceptToken(C);else if(((n=e.peek(-1))==V||n<0)&&t.canShift(S)){let t=0;for(;e.next!=V&&k.includes(e.next);)e.advance(),t++;e.next==V||q(e)?e.acceptToken(S,-t):t&&e.acceptToken(w)}else if(e.next==V)e.acceptToken(x,1);else if(k.includes(e.next)){for(e.advance();e.next!=V&&k.includes(e.next);)e.advance();e.acceptToken(w)}}else{let t=0;for(;k.includes(e.next);)e.advance(),t++;t&&e.acceptToken(w)}},{contextual:!0}),Y=new e((e,t)=>{if(q(e)){if(e.advance(),t.dialectEnabled(O)){let t=-1;for(let n=1;;n++){let r=e.peek(-n-1);if(r==V||r<0){t=n+1;break}if(!k.includes(r))break}if(t>-1){let n=e.next==B,r=0;for(e.advance();e.next>=0;)if(e.next==V){e.advance();let n=0;for(;e.next!=V&&k.includes(e.next);)n++,e.advance();if(n<t){r=-n-1;break}}else if(n&&e.next==B&&e.peek(1)==z){r=2;break}else e.advance();e.acceptToken(n?E:T,r);return}}if(e.next==z){for(;e.next!=V&&e.next>=0;)e.advance();e.acceptToken(T)}else{for(e.advance();e.next>=0;){let{next:t}=e;if(e.advance(),t==B&&e.next==z){e.advance();break}}e.acceptToken(E)}}}),X=new e((e,t)=>{(e.next==U||e.next==H)&&t.dialectEnabled(O)&&e.acceptToken(e.next==H?ne:D,1)}),ie=new e((e,t)=>{if(!t.dialectEnabled(O))return;let n=t.context.depth;if(e.next<0&&n)e.acceptToken(p);else if(e.peek(-1)==V){let t=0;for(;e.next!=V&&k.includes(e.next);)e.advance(),t++;t!=n&&e.next!=V&&!q(e)&&(t<n?e.acceptToken(p,-t):e.acceptToken(f))}}),ae=new e((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(G(a)||a==N||a==j||n&&K(a))!n&&(a!=N||i>0)&&(n=!0),r===i&&a==N&&r++,e.advance();else if(a==F&&e.peek(1)==L){e.acceptToken(b,2);break}else{n&&e.acceptToken(r==2&&t.canShift(v)?v:t.canShift(y)?y:a==A?ee:te);break}}}),oe=new e(e=>{if(e.next==R){for(e.advance();G(e.next)||e.next==N||e.next==j||K(e.next);)e.advance();e.next==F&&e.peek(1)==L?e.acceptToken(g,2):e.acceptToken(h)}}),se=new e(e=>{if(k.includes(e.peek(-1))){let{next:t}=e;(G(t)||t==j||t==F||t==P||t==M||t==re&&G(e.peek(1))||t==N||t==W||t==B)&&e.acceptToken(m)}}),ce=new e(e=>{if(!k.includes(e.peek(-1))){let{next:t}=e;if(t==I&&(e.advance(),e.acceptToken(_)),G(t)){do e.advance();while(G(e.next)||K(e.next));e.acceptToken(_)}}});function Z(e,t){this.parent=e,this.depth=t,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)}var le=new Z(null,0),ue=new n({start:le,shift(e,t,n,r){return t==f?new Z(e,n.pos-r.pos):t==p?e.parent:e},hash(e){return e.hash}}),de=o({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":u.definitionKeyword,"Keyword selector":u.keyword,ControlKeyword:u.controlKeyword,NamespaceName:u.namespace,KeyframeName:u.labelName,KeyframeRangeName:u.operatorKeyword,TagName:u.tagName,"ClassName Suffix":u.className,PseudoClassName:u.constant(u.className),IdName:u.labelName,"FeatureName PropertyName":u.propertyName,AttributeName:u.attributeName,NumberLiteral:u.number,KeywordQuery:u.keyword,UnaryQueryOp:u.operatorKeyword,"CallTag ValueName":u.atom,VariableName:u.variableName,SassVariableName:u.special(u.variableName),Callee:u.operatorKeyword,Unit:u.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":u.definitionOperator,MatchOp:u.compareOperator,"ChildOp SiblingOp, LogicOp":u.logicOperator,BinOp:u.arithmeticOperator,"Important Global Default":u.modifier,Comment:u.blockComment,LineComment:u.lineComment,ColorLiteral:u.color,"ParenthesizedContent StringLiteral":u.string,"InterpolationStart InterpolationContinue InterpolationEnd":u.meta,': "..."':u.punctuation,"PseudoOp #":u.derefOperator,"; ,":u.separator,"( )":u.paren,"[ ]":u.squareBracket,"{ }":u.brace}),fe={__proto__:null,not:62,using:197,as:207,with:211,without:211,hide:225,show:225,if:263,from:269,to:271,through:273,in:279},pe={__proto__:null,url:82,"url-prefix":82,domain:82,regexp:82,lang:104,"nth-child":104,"nth-last-child":104,"nth-of-type":104,"nth-last-of-type":104,dir:104,"host-context":104},me={__proto__:null,"@import":162,"@include":194,"@mixin":200,"@function":200,"@use":204,"@extend":214,"@at-root":218,"@forward":222,"@media":228,"@charset":232,"@namespace":236,"@keyframes":242,"@supports":254,"@if":258,"@else":260,"@for":266,"@each":276,"@while":282,"@debug":286,"@warn":286,"@error":286,"@return":286},Q={__proto__:null,layer:166,not:184,only:184,selector:190},he=t.deserialize({version:14,states:"!$WQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#GXO%rQ.jO'#CnO&mQ#dO'#D]O'dQ(pO'#CgO'kQ)OO'#D_O'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%n#ul%u$O$a%v&Q&j'S'V'^'t(U(Y(^(w)UQ&S$cS&W$e&YQ&g$wQ&{%_Q'O%bQ'X%{Q'f&XQ(`'bQ(h'qQ(t(QR(u(SR%x$OR&R$aR&P$`QzPQ$^!fR%}$_X#ly#j#m%eQ#VhQ#_mQ$h!uR&^$iW#Rhm!u$iQ#^lQ$|#QQ%S#SQ&m%PQ&n%QQ'p&dR(f'oQ%O#QQ'v&kR)R(nQ#apQ$k!vQ$n!xQ$q!zQ$v#OQ%V#WQ%W#YQ%]#_Q%d#hQ&]$hQ&f$uQ&q%XQ'k&^Q'l&_S'm&`&bQ(k'sQ(}(eR)Q(jR&h$wR#ft",nodeNames:`⚠ InterpolationEnd InterpolationContinue Unit VariableName InterpolationStart LineComment Comment IndentedMixin IndentedInclude StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector SuffixedSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue . CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery ComparisonQuery CompareOp UnaryQuery LogicOp ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword Keyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles`,maxTerm:196,context:ue,nodeProps:[[`openedBy`,1,`InterpolationStart`,5,`InterpolationEnd`,21,`(`,43,`[`,78,`{`],[`isolate`,-3,6,7,26,``],[`closedBy`,22,`)`,44,`]`,70,`}`]],propSources:[de],skippedNodes:[0,6,7,146],repeatNodeCount:21,tokenData:"!$Q~RyOq#rqr$jrs0jst2^tu8{uv;hvw;{wx<^xy={yz>^z{>c{|>||}Co}!ODQ!O!PDo!P!QFY!Q![Fk![!]Gf!]!^Hb!^!_Hs!_!`Is!`!aJ^!a!b#r!b!cKa!c!}#r!}#OMn#O#P#r#P#QNP#Q#RNb#R#T#r#T#UNw#U#c#r#c#d!!Y#d#o#r#o#p!!o#p#qNb#q#r!#Q#r#s!#c#s;'S#r;'S;=`!#z<%lO#rW#uSOy$Rz;'S$R;'S;=`$d<%lO$RW$WSzWOy$Rz;'S$R;'S;=`$d<%lO$RW$gP;=`<%l$RY$m[Oy$Rz!_$R!_!`%c!`#W$R#W#X%v#X#Z$R#Z#[)Z#[#]$R#]#^,V#^;'S$R;'S;=`$d<%lO$RY%jSzWlQOy$Rz;'S$R;'S;=`$d<%lO$RY%{UzWOy$Rz#X$R#X#Y&_#Y;'S$R;'S;=`$d<%lO$RY&dUzWOy$Rz#Y$R#Y#Z&v#Z;'S$R;'S;=`$d<%lO$RY&{UzWOy$Rz#T$R#T#U'_#U;'S$R;'S;=`$d<%lO$RY'dUzWOy$Rz#i$R#i#j'v#j;'S$R;'S;=`$d<%lO$RY'{UzWOy$Rz#`$R#`#a(_#a;'S$R;'S;=`$d<%lO$RY(dUzWOy$Rz#h$R#h#i(v#i;'S$R;'S;=`$d<%lO$RY(}S!nQzWOy$Rz;'S$R;'S;=`$d<%lO$RY)`UzWOy$Rz#`$R#`#a)r#a;'S$R;'S;=`$d<%lO$RY)wUzWOy$Rz#c$R#c#d*Z#d;'S$R;'S;=`$d<%lO$RY*`UzWOy$Rz#U$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;'S$R;'S;=`$d<%lO$R_NUS{VOy$Rz;'S$R;'S;=`$d<%lO$R[NeUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RkNzUOy$Rz#b$R#b#c! ^#c;'S$R;'S;=`$d<%lO$Rk! cUzWOy$Rz#W$R#W#X! u#X;'S$R;'S;=`$d<%lO$Rk! |SmczWOy$Rz;'S$R;'S;=`$d<%lO$Rk!!]UOy$Rz#f$R#f#g! u#g;'S$R;'S;=`$d<%lO$RZ!!tS!hROy$Rz;'S$R;'S;=`$d<%lO$RZ!#VS!pROy$Rz;'S$R;'S;=`$d<%lO$R]!#hU!dPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!#}P;=`<%l#r",tokenizers:[ie,se,oe,ce,ae,J,Y,X,0,1,2,3,4],topRules:{StyleSheet:[0,10],Styles:[1,145]},dialects:{indented:0},specialized:[{term:172,get:e=>fe[e]||-1},{term:171,get:e=>pe[e]||-1},{term:80,get:e=>me[e]||-1},{term:173,get:e=>Q[e]||-1}],tokenPrec:3217}),$=a.define({name:`sass`,parser:he.configure({props:[l.add({Block:s,Comment(e,t){return{from:e.from+2,to:t.sliceDoc(e.to-2,e.to)==`*/`?e.to-2:e.to}}}),i.add({Declaration:c()})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`},line:`//`},indentOnInput:/^\s*\}$/,wordChars:`$-`}}),ge=$.configure({dialect:`indented`,props:[i.add({"Block RuleSet":e=>e.baseIndent+e.unit}),l.add({Block:e=>({from:e.from,to:e.to})})]}),_e=d(e=>e.name==`VariableName`||e.name==`SassVariableName`);function ve(e){return new r(e?.indented?ge:$,$.data.of({autocomplete:_e}))}export{ve as sass};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_n as e,dn as t,fn as n,gn as r,mn as i,pn as a,un as o}from"./editor-2avuG1le.js";var s=class e{constructor(e,t,n,r,i,a,o,s,c,l=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=c,this.lookAhead=l,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?`!`+this.score:``}`}static start(t,n,r=0){let i=t.parser.context;return new e(t,[],n,r,r,0,[],0,i?new c(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=e&65535,{parser:r}=this.p,i=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=r.dynamicPrecedence(n);if(a&&(this.score+=a),t==0){n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(n,this.reducePos);return}let o=this.stack.length-(t-1)*3-(e&262144?6:0),s=o?this.stack[o-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&s==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-s;c>=2e3&&!this.p.parser.nodeSet.types[n]?.isAnonymous&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));let l=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-l;if(n<r.minRepeatTerm||e&131072){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,s,e,u+4,!0)}if(e&262144)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(n,s)}storeNode(e,t,n,r=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&this.buffer[e-4]==0&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,t,n,r);else{let i=this.buffer.length;if(i>0&&(this.buffer[i-4]!=0||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}}shift(e,t,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:a}=this.p;this.pos=r;let o=a.stateFlag(i,1);!o&&(r>n||t<=a.maxNode)&&(this.reducePos=r),this.pushState(i,o?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=a.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){e&65536?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(t,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let t=this,n=t.buffer.length;for(n&&t.buffer[n-4]==0&&(n-=4);n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new l(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>t&1&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=t&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(e==null)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(!(t&393216)){if(t&65536){let n=(t>>19)-i;if(n>1){let r=t&65535,i=this.stack.length-n*3;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(e!=null)return e}}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new c(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},c=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},l=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}},u=class e{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new e(t,n,n-t.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new e(this.stack,this.pos,this.index)}};function d(e,t=Uint16Array){if(typeof e!=`string`)return e;let n=null;for(let r=0,i=0;r<e.length;){let a=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(t==126){a=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}var f=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},p=new f,m=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk=``,this.chunkOff=0,this.chunk2=``,this.chunk2Pos=0,this.next=-1,this.token=p,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(t==null)return-1;if(n=t,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw RangeError(`Token end out of bounds`);this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk=``,this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=p,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk=``,this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n=``;for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}},h=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;v(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};h.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;var g=class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e==`string`?d(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(v(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(n||r++,i==null)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};g.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;var _=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function v(e,t,n,r,i,a){let o=0,s=1<<r,{dialect:c}=n.p.parser;scan:for(;(s&e[o])!=0;){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&s)>0){let n=e[r];if(c.allows(n)&&(t.token.value==-1||t.token.value==n||b(n,t.token.value,i,a))){t.acceptToken(n);break}}let r=t.next,l=0,u=e[o+2];if(t.next<0&&u>l&&e[n+u*3-3]==65535){o=e[n+u*3-1];continue scan}for(;l<u;){let i=l+u>>1,a=n+i+(i<<1),s=e[a],c=e[a+1]||65536;if(r<s)u=i;else if(r>=c)l=i+1;else{o=e[a+2],t.advance();continue scan}}break}}function y(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function b(e,t,n,r){let i=y(n,r,t);return i<0||y(n,r,e)<i}var x=typeof process<`u`&&/\bparse\b/.test({}.LOG),S=null;function C(e,n,r){let i=e.cursor(t.IncludeAnonymous);for(i.moveTo(n);;)if(!(r<0?i.childBefore(n):i.childAfter(n)))for(;;){if((r<0?i.to<n:i.from>n)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(e.length,Math.max(i.from+1,n+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:e.length}}var w=class{constructor(e,t){this.fragments=e,this.minRepeat=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?C(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?C(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;if(t<this.safeFrom)return null;let i=this.trees[r],a=this.index[r];if(a==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[a],s=this.start[r]+i.positions[a];if(s>t)return this.nextStart=s,null;if(o instanceof e){let e=s>this.lastRepeatPos&&o.type.id>=this.minRepeat;if(s==t||e){let r=s+o.length,i;if(s>=this.safeFrom&&r<=this.safeTo&&(!(i=o.prop(n.lookAhead))||r+i<this.fragment.to)&&(e&&(this.lastRepeat=o,this.lastRepeatPos=s),s==t))return o}this.index[r]++,s+o.length>=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[r]++,this.nextStart=s+o.length}}},T=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new f)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,s=0;for(let r=0;r<i.length;r++){if(!(1<<r&a))continue;let c=i[r],l=this.tokens[r];if((!n||c.fallback)&&((c.contextual||l.start!=e.pos||l.mask!=a||l.context!=o)&&(this.updateCachedToken(l,c,e),l.mask=a,l.context=o),l.lookAhead>l.end+25&&(s=Math.max(l.lookAhead,s)),l.value!=0)){let r=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!c.extend&&(n=l,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),!n&&e.pos==this.stream.end&&(n=new f,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new f,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){i&1?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:a}=e.p,{data:o}=a;for(let e=0;e<2;e++)for(let s=a.stateSlot(i,e?2:1);;s+=3){if(o[s]==65535){if(o[s+1]==1)s=M(o,s+2);else{r==0&&o[s+1]==2&&(r=this.putAction(M(o,s+2),t,n,r));break}}o[s]==t&&(r=this.putAction(M(o,s+1),t,n,r))}return r}},E=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new m(t,r),this.tokens=new T(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[s.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>e.bufferLength*4?new w(n,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&e.length==1){let[t]=e;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let o=e[a];for(;;){if(this.tokens.mainToken=null,o.pos>t)n.push(o);else if(this.advanceStack(o,n,e))continue;else{r||(r=[],i=[]),r.push(o);let e=this.tokens.getMainToken(o);i.push(e.value,e.end)}break}}if(!n.length){let e=r&&N(r);if(e)return x&&console.log(`Finish with `+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw x&&r&&console.log(`Stuck with token `+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):`none`)),SyntaxError(`No parse at `+t);this.recovering||=5}if(this.recovering&&r){let e=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(e)return x&&console.log(`Force-finish `+this.stackID(e)),this.stackToTree(e.forceAll())}if(this.recovering){let e=this.recovering==1?1:this.recovering*3;if(n.length>e)for(n.sort((e,t)=>t.score-e.score);n.length>e;)n.pop();n.some(e=>e.reducePos>t)&&this.recovering--}else if(n.length>1){outer:for(let e=0;e<n.length-1;e++){let t=n[e];for(let r=e+1;r<n.length;r++){let i=n[r];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)n.splice(r--,1);else{n.splice(e--,1);continue outer}}}}n.length>12&&(n.sort((e,t)=>t.score-e.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let e=1;e<n.length;e++)n[e].pos<this.minStackPos&&(this.minStackPos=n[e].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}tryReuse(t,r,i,a){if(!i)return null;let o=t.curContext&&t.curContext.tracker.strict,s=o?t.curContext.hash:0;for(;i;){let c=this.parser.nodeSet.types[i.type.id]==i.type?this.parser.getGoto(t.state,i.type.id):-1;if(c>-1&&i.length&&(!o||(i.prop(n.contextHash)||0)==s))return t.useNode(i,c,r),i;if(i.children.length==0||i.positions[0]>0)break;let l=i.children[0];if(l instanceof e&&(!a||l.type.id>=this.parser.minRepeatTerm))i=l;else break}return null}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,a=x?this.stackID(e)+` -> `:``;if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(t)return x&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(t.type.id)})`),!0}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),x&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;o<s.length;){let c=s[o++],l=s[o++],u=s[o++],d=o==s.length||!n,f=d?e:e.split(),p=this.tokens.mainToken;if(f.apply(c,l,p?p.start:f.pos,u),x&&console.log(a+this.stackID(f)+` (via ${c&65536?`reduce of ${i.getName(c&65535)}`:`shift`} for ${i.getName(l)} @ ${r}${f==e?``:`, split`})`),d)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return D(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a],s=t[a<<1],c=t[(a<<1)+1],l=x?this.stackID(o)+` -> `:``;if(o.deadEnd&&(i||(i=!0,o.restart(),x&&console.log(l+this.stackID(o)+` (restarted)`),this.advanceFully(o,n))))continue;let u=o.split(),d=l;for(let e=0;e<10&&u.forceReduce()&&(x&&console.log(d+this.stackID(u)+` (via force-reduce)`),!this.advanceFully(u,n));e++)x&&(d=this.stackID(u)+` -> `);for(let e of o.recoverByInsert(s))x&&console.log(l+this.stackID(e)+` (via recover-insert)`),this.advanceFully(e,n);this.stream.end>o.pos?(c==o.pos&&(c++,s=0),o.recoverByDelete(s,c),x&&console.log(l+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),D(o,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(t){return t.close(),e.build({buffer:u.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(S||=new WeakMap).get(e);return t||S.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}};function D(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}var O=class{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},k=e=>e,A=class{constructor(e){this.start=e.start,this.shift=e.shift||k,this.reduce=e.reduce||k,this.reuse=e.reuse||k,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},j=class e extends r{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(` `);this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push(``);let r=Object.keys(e.topRules).map(t=>e.topRules[t][1]),s=[];for(let e=0;e<t.length;e++)s.push([]);function c(e,t,n){s[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];typeof e==`string`&&(e=n[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)c(r,e,t[n++]);else{let i=t[n+-r];for(let a=-r;a>0;a--)c(t[n++],e,i);n++}}}this.nodeSet=new a(t.map((t,n)=>i.define({name:n>=this.minRepeatTerm?void 0:t,id:n,props:s[n],top:r.indexOf(n)>-1,error:n==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(n)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=o;let l=d(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(P),this.states=d(e.states,Uint32Array),this.data=d(e.stateData),this.goto=d(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>typeof e==`number`?new h(l,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new E(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],a=t&1,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(a)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),a;;i+=3){if((a=n[i])==65535){if(n[i+1]==1)a=n[i=M(n,i+2)];else if(n[i+1]==2)return M(n,i+2);else break}if(a==t||a==0)return M(n,i+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);r==null;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=M(this.data,n+2);else break}r=t(M(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=M(this.data,n+2);else break}if(!(this.data[n+2]&1)){let e=this.data[n+1];t.some((t,n)=>n&1&&t==e)||t.push(this.data[n],e)}}return t}configure(t){let n=Object.assign(Object.create(e.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let e=this.topRules[t.top];if(!e)throw RangeError(`Invalid top rule name ${t.top}`);n.top=e}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(e=>{let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((e,r)=>{let i=t.specializers.find(t=>t.from==e.external);if(!i)return e;let a=Object.assign(Object.assign({},e),{external:i.to});return n.specializers[r]=P(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(` `)){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;(i=this.data[n++])!=65535;)(r||=new Uint8Array(this.maxTerm+1))[i]=1;return new O(e,n,r)}static deserialize(t){return new e(t)}};function M(e,t){return e[t]|e[t+1]<<16}function N(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||e!=null&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function P(e){if(e.external){let t=+!!e.extend;return(n,r)=>e.external(n,r)<<1|t}return e.get}export{g as i,_ as n,j as r,A as t};
|
|
1
|
+
import{_n as e,dn as t,fn as n,gn as r,mn as i,pn as a,un as o}from"./editor-BfOKfIhz.js";var s=class e{constructor(e,t,n,r,i,a,o,s,c,l=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.curContext=c,this.lookAhead=l,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?`!`+this.score:``}`}static start(t,n,r=0){let i=t.parser.context;return new e(t,[],n,r,r,0,[],0,i?new c(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=e&65535,{parser:r}=this.p,i=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=r.dynamicPrecedence(n);if(a&&(this.score+=a),t==0){n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(n,this.reducePos);return}let o=this.stack.length-(t-1)*3-(e&262144?6:0),s=o?this.stack[o-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&s==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-s;c>=2e3&&!this.p.parser.nodeSet.types[n]?.isAnonymous&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=c));let l=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-l;if(n<r.minRepeatTerm||e&131072){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,s,e,u+4,!0)}if(e&262144)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(n,s)}storeNode(e,t,n,r=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&this.buffer[e-4]==0&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=n;return}}}if(!i||this.pos==n)this.buffer.push(e,t,n,r);else{let i=this.buffer.length;if(i>0&&(this.buffer[i-4]!=0||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}}shift(e,t,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:a}=this.p;this.pos=r;let o=a.stateFlag(i,1);!o&&(r>n||t<=a.maxNode)&&(this.reducePos=r),this.pushState(i,o?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=a.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){e&65536?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.reducePos=this.pos=n+e.length;this.pushState(t,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let t=this,n=t.buffer.length;for(n&&t.buffer[n-4]==0&&(n-=4);n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new l(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>t&1&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=t&65535,i=this.stack.length-n*3;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(e==null)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(!(t&393216)){if(t&65536){let n=(t>>19)-i;if(n>1){let r=t&65535,i=this.stack.length-n*3;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(e!=null)return e}}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new c(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},c=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},l=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}},u=class e{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new e(t,n,n-t.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new e(this.stack,this.pos,this.index)}};function d(e,t=Uint16Array){if(typeof e!=`string`)return e;let n=null;for(let r=0,i=0;r<e.length;){let a=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(t==126){a=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),a+=i,n)break;a*=46}n?n[i++]=a:n=new t(a)}return n}var f=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},p=new f,m=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk=``,this.chunkOff=0,this.chunk2=``,this.chunk2Pos=0,this.next=-1,this.token=p,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(t==null)return-1;if(n=t,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw RangeError(`Token end out of bounds`);this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk=``,this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=p,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk=``,this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n=``;for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}},h=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;v(this.data,e,t,this.id,n.data,n.tokenPrecTable)}};h.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;var g=class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e==`string`?d(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(v(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(n||r++,i==null)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}};g.prototype.contextual=h.prototype.fallback=h.prototype.extend=!1;var _=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function v(e,t,n,r,i,a){let o=0,s=1<<r,{dialect:c}=n.p.parser;scan:for(;(s&e[o])!=0;){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&s)>0){let n=e[r];if(c.allows(n)&&(t.token.value==-1||t.token.value==n||b(n,t.token.value,i,a))){t.acceptToken(n);break}}let r=t.next,l=0,u=e[o+2];if(t.next<0&&u>l&&e[n+u*3-3]==65535){o=e[n+u*3-1];continue scan}for(;l<u;){let i=l+u>>1,a=n+i+(i<<1),s=e[a],c=e[a+1]||65536;if(r<s)u=i;else if(r>=c)l=i+1;else{o=e[a+2],t.advance();continue scan}}break}}function y(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function b(e,t,n,r){let i=y(n,r,t);return i<0||y(n,r,e)<i}var x=typeof process<`u`&&/\bparse\b/.test({}.LOG),S=null;function C(e,n,r){let i=e.cursor(t.IncludeAnonymous);for(i.moveTo(n);;)if(!(r<0?i.childBefore(n):i.childAfter(n)))for(;;){if((r<0?i.to<n:i.from>n)&&!i.type.isError)return r<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(e.length,Math.max(i.from+1,n+25));if(r<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return r<0?0:e.length}}var w=class{constructor(e,t){this.fragments=e,this.minRepeat=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?C(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?C(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;if(t<this.safeFrom)return null;let i=this.trees[r],a=this.index[r];if(a==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[a],s=this.start[r]+i.positions[a];if(s>t)return this.nextStart=s,null;if(o instanceof e){let e=s>this.lastRepeatPos&&o.type.id>=this.minRepeat;if(s==t||e){let r=s+o.length,i;if(s>=this.safeFrom&&r<=this.safeTo&&(!(i=o.prop(n.lookAhead))||r+i<this.fragment.to)&&(e&&(this.lastRepeat=o,this.lastRepeatPos=s),s==t))return o}this.index[r]++,s+o.length>=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[r]++,this.nextStart=s+o.length}}},T=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new f)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,a=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,s=0;for(let r=0;r<i.length;r++){if(!(1<<r&a))continue;let c=i[r],l=this.tokens[r];if((!n||c.fallback)&&((c.contextual||l.start!=e.pos||l.mask!=a||l.context!=o)&&(this.updateCachedToken(l,c,e),l.mask=a,l.context=o),l.lookAhead>l.end+25&&(s=Math.max(l.lookAhead,s)),l.value!=0)){let r=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!c.extend&&(n=l,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),!n&&e.pos==this.stream.end&&(n=new f,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new f,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){i&1?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:a}=e.p,{data:o}=a;for(let e=0;e<2;e++)for(let s=a.stateSlot(i,e?2:1);;s+=3){if(o[s]==65535){if(o[s+1]==1)s=M(o,s+2);else{r==0&&o[s+1]==2&&(r=this.putAction(M(o,s+2),t,n,r));break}}o[s]==t&&(r=this.putAction(M(o,s+1),t,n,r))}return r}},E=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new m(t,r),this.tokens=new T(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[s.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>e.bufferLength*4?new w(n,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,i;if(this.bigReductionCount>300&&e.length==1){let[t]=e;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let o=e[a];for(;;){if(this.tokens.mainToken=null,o.pos>t)n.push(o);else if(this.advanceStack(o,n,e))continue;else{r||(r=[],i=[]),r.push(o);let e=this.tokens.getMainToken(o);i.push(e.value,e.end)}break}}if(!n.length){let e=r&&N(r);if(e)return x&&console.log(`Finish with `+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw x&&r&&console.log(`Stuck with token `+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):`none`)),SyntaxError(`No parse at `+t);this.recovering||=5}if(this.recovering&&r){let e=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,i,n);if(e)return x&&console.log(`Force-finish `+this.stackID(e)),this.stackToTree(e.forceAll())}if(this.recovering){let e=this.recovering==1?1:this.recovering*3;if(n.length>e)for(n.sort((e,t)=>t.score-e.score);n.length>e;)n.pop();n.some(e=>e.reducePos>t)&&this.recovering--}else if(n.length>1){outer:for(let e=0;e<n.length-1;e++){let t=n[e];for(let r=e+1;r<n.length;r++){let i=n[r];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if((t.score-i.score||t.buffer.length-i.buffer.length)>0)n.splice(r--,1);else{n.splice(e--,1);continue outer}}}}n.length>12&&(n.sort((e,t)=>t.score-e.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let e=1;e<n.length;e++)n[e].pos<this.minStackPos&&(this.minStackPos=n[e].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}tryReuse(t,r,i,a){if(!i)return null;let o=t.curContext&&t.curContext.tracker.strict,s=o?t.curContext.hash:0;for(;i;){let c=this.parser.nodeSet.types[i.type.id]==i.type?this.parser.getGoto(t.state,i.type.id):-1;if(c>-1&&i.length&&(!o||(i.prop(n.contextHash)||0)==s))return t.useNode(i,c,r),i;if(i.children.length==0||i.positions[0]>0)break;let l=i.children[0];if(l instanceof e&&(!a||l.type.id>=this.parser.minRepeatTerm))i=l;else break}return null}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,a=x?this.stackID(e)+` -> `:``;if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.reducePos<r&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,r,this.fragments.nodeAt(r),!1);if(t)return x&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(t.type.id)})`),!0}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),x&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let o=0;o<s.length;){let c=s[o++],l=s[o++],u=s[o++],d=o==s.length||!n,f=d?e:e.split(),p=this.tokens.mainToken;if(f.apply(c,l,p?p.start:f.pos,u),x&&console.log(a+this.stackID(f)+` (via ${c&65536?`reduce of ${i.getName(c&65535)}`:`shift`} for ${i.getName(l)} @ ${r}${f==e?``:`, split`})`),d)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return D(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a],s=t[a<<1],c=t[(a<<1)+1],l=x?this.stackID(o)+` -> `:``;if(o.deadEnd&&(i||(i=!0,o.restart(),x&&console.log(l+this.stackID(o)+` (restarted)`),this.advanceFully(o,n))))continue;let u=o.split(),d=l;for(let e=0;e<10&&u.forceReduce()&&(x&&console.log(d+this.stackID(u)+` (via force-reduce)`),!this.advanceFully(u,n));e++)x&&(d=this.stackID(u)+` -> `);for(let e of o.recoverByInsert(s))x&&console.log(l+this.stackID(e)+` (via recover-insert)`),this.advanceFully(e,n);this.stream.end>o.pos?(c==o.pos&&(c++,s=0),o.recoverByDelete(s,c),x&&console.log(l+this.stackID(o)+` (via recover-delete ${this.parser.getName(s)})`),D(o,n)):(!r||r.score<u.score)&&(r=u)}return r}stackToTree(t){return t.close(),e.build({buffer:u.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(S||=new WeakMap).get(e);return t||S.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}};function D(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}var O=class{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}},k=e=>e,A=class{constructor(e){this.start=e.start,this.shift=e.shift||k,this.reduce=e.reduce||k,this.reuse=e.reuse||k,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},j=class e extends r{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(` `);this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push(``);let r=Object.keys(e.topRules).map(t=>e.topRules[t][1]),s=[];for(let e=0;e<t.length;e++)s.push([]);function c(e,t,n){s[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];typeof e==`string`&&(e=n[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)c(r,e,t[n++]);else{let i=t[n+-r];for(let a=-r;a>0;a--)c(t[n++],e,i);n++}}}this.nodeSet=new a(t.map((t,n)=>i.define({name:n>=this.minRepeatTerm?void 0:t,id:n,props:s[n],top:r.indexOf(n)>-1,error:n==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(n)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=o;let l=d(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(P),this.states=d(e.states,Uint32Array),this.data=d(e.stateData),this.goto=d(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>typeof e==`number`?new h(l,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new E(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],a=t&1,o=r[i++];if(a&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(a)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),a;;i+=3){if((a=n[i])==65535){if(n[i+1]==1)a=n[i=M(n,i+2)];else if(n[i+1]==2)return M(n,i+2);else break}if(a==t||a==0)return M(n,i+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);r==null;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=M(this.data,n+2);else break}r=t(M(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=M(this.data,n+2);else break}if(!(this.data[n+2]&1)){let e=this.data[n+1];t.some((t,n)=>n&1&&t==e)||t.push(this.data[n],e)}}return t}configure(t){let n=Object.assign(Object.create(e.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let e=this.topRules[t.top];if(!e)throw RangeError(`Invalid top rule name ${t.top}`);n.top=e}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(e=>{let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((e,r)=>{let i=t.specializers.find(t=>t.from==e.external);if(!i)return e;let a=Object.assign(Object.assign({},e),{external:i.to});return n.specializers[r]=P(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(` `)){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;(i=this.data[n++])!=65535;)(r||=new Uint8Array(this.maxTerm+1))[i]=1;return new O(e,n,r)}static deserialize(t){return new e(t)}};function M(e,t){return e[t]|e[t+1]<<16}function N(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||e!=null&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function P(e){if(e.external){let t=+!!e.extend;return(n,r)=>e.external(n,r)<<1|t}return e.get}export{g as i,_ as n,j as r,A as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{At as e,Dt as t,Kt as n,qt as r,vn as i}from"./editor-
|
|
1
|
+
import{At as e,Dt as t,Kt as n,qt as r,vn as i}from"./editor-BfOKfIhz.js";import{html as a}from"./dist-CD6D4M-i.js";import{r as o}from"./dist-Cv9nQ9De.js";import{i as s,r as c}from"./dist-BtjjxT9L.js";var l=c.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:`!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso`,nodeNames:`⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity`,maxTerm:36,nodeProps:[[`isolate`,-3,3,13,17,``]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new s(`b~RP#q#rU~XP#q#r[~aOT~~`,17,4),new s("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new s(`[~RPwxU~ZOp~~`,11,15),new s(`[~RPrsU~ZOn~~`,11,14),new s("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new s("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),u=o.parser.configure({top:`SingleExpression`}),d=l.configure({props:[n({Text:r.content,Is:r.definitionOperator,AttributeName:r.attributeName,VueAttributeName:r.keyword,Identifier:r.variableName,"AttributeValue ScriptAttributeValue":r.attributeValue,Entity:r.character,"{{ }}":r.brace,"@ :":r.punctuation})]}),f={parser:u},p=d.configure({wrap:i((e,t)=>e.name==`InterpolationContent`?f:null)}),m=d.configure({wrap:i((e,t)=>e.name==`AttributeScript`?f:null),top:`Attribute`}),h={parser:p},g={parser:m},_=a();function v(e){return e.configure({dialect:`selfClosing`,wrap:i(b)},`vue`)}var y=v(_.language);function b(e,t){switch(e.name){case`Attribute`:return/^(@|:|v-)/.test(t.read(e.from,e.from+2))?g:null;case`Text`:return h}return null}function x(n={}){let r=_;if(n.base){if(n.base.language.name!=`html`||!(n.base.language instanceof t))throw RangeError(`The base option must be the result of calling html(...)`);r=n.base}return new e(r.language==_.language?y:v(r.language),[r.support,r.language.data.of({closeBrackets:{brackets:[`{`,`"`]}})])}export{x as vue};
|