@bkm016/basalt 0.1.14 → 0.1.16
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/{chunk-mfb3dgs8.js → chunk-1c9nr9rs.js} +1 -1
- package/{chunk-z9p6s986.js → chunk-4hf0r9hv.js} +3 -3
- package/{chunk-p886jr17.js → chunk-6ae9810t.js} +2 -2
- package/{chunk-6hx9y86d.js → chunk-6exa9fp7.js} +1 -1
- package/{chunk-xk3t5ves.js → chunk-8jn0yax5.js} +132 -132
- package/{chunk-xq74x4gc.js → chunk-8r4baw9e.js} +1 -1
- package/{chunk-nysatg77.js → chunk-9ymm1gge.js} +167 -156
- package/{chunk-qjnx4fsn.js → chunk-b350b01x.js} +3 -3
- package/{chunk-59hg9a84.js → chunk-bv96b8q7.js} +1 -1
- package/{chunk-343jsm46.js → chunk-e8x8zwkg.js} +1 -1
- package/{chunk-k38jaz6c.js → chunk-ehnc8g6v.js} +2 -2
- package/{chunk-kcn05erf.js → chunk-fzftb4n2.js} +3 -3
- package/{chunk-0rasqm8y.js → chunk-nrdszs0g.js} +2 -2
- package/{chunk-qs161f2q.js → chunk-p78wde92.js} +1 -1
- package/{chunk-39mh7h58.js → chunk-pna1wh02.js} +1 -1
- package/{chunk-edcf97ka.js → chunk-q6tgpaf3.js} +1 -1
- package/{chunk-qe76naq9.js → chunk-rqn67tm8.js} +1 -1
- package/{chunk-en7z6ne5.js → chunk-v9ttcf6r.js} +1 -1
- package/{chunk-9v3b7jjv.js → chunk-vv9csar7.js} +1 -1
- package/{chunk-81x8r8w4.js → chunk-xba6fr5v.js} +1 -1
- package/{chunk-03wzwnn6.js → chunk-ypxs8djn.js} +1 -1
- package/compiled.js +4 -4
- package/package.json +1 -1
- package/ui-test-worker.js +2 -2
- package/web/{chunk-kpmd893m.js → chunk-0qnetvsc.js} +4 -4
- package/web/{chunk-mvm68qtt.js → chunk-0zb330w3.js} +4 -4
- package/web/{chunk-78m018ya.js → chunk-0zyekjym.js} +1 -1
- package/web/chunk-11byy7vm.js +1 -0
- package/web/chunk-160x5pv7.js +1 -0
- package/web/{chunk-ysw5fs45.js → chunk-19g09ekr.js} +5 -5
- package/web/chunk-1gzprnyd.js +1 -0
- package/web/{chunk-7wzszsf5.js → chunk-1hx4xtdk.js} +2 -2
- package/web/{chunk-wspk8qbg.js → chunk-1je4p601.js} +4 -4
- package/web/{chunk-3haw3wcw.js → chunk-1np2aamb.js} +3 -3
- package/web/{chunk-qftcdcps.js → chunk-1rjtqf8h.js} +2 -2
- package/web/{chunk-54mgncq3.js → chunk-23258z1r.js} +1 -1
- package/web/{chunk-y3tb6410.js → chunk-27592nd8.js} +3 -3
- package/web/chunk-27tchdxd.js +2 -0
- package/web/{chunk-7hpqrfgg.js → chunk-2hqmdqn3.js} +1 -1
- package/web/chunk-2q79n966.js +2 -0
- package/web/{chunk-nfpff7yf.js → chunk-2ws74tfa.js} +10 -10
- package/web/{chunk-9vr6hpmk.js → chunk-2z8epr8f.js} +7 -7
- package/web/{chunk-k4qrqmdk.js → chunk-36e78034.js} +2 -2
- package/web/{chunk-vpegzgzb.js → chunk-3gj2t10x.js} +8 -8
- package/web/{chunk-2gsf89vs.js → chunk-444xfger.js} +4 -4
- package/web/{chunk-988e9wx6.js → chunk-4k62e61g.js} +5 -5
- package/web/{chunk-8sr9w61v.js → chunk-4z6wma3s.js} +2 -2
- package/web/{chunk-qcdej581.js → chunk-5sss3r97.js} +1 -1
- package/web/chunk-5wkqqa59.js +1 -0
- package/web/{chunk-s2ps0ct5.js → chunk-5yczs6sb.js} +1 -1
- package/web/chunk-5yn7mwvt.js +1 -0
- package/web/{chunk-mv7jgmnb.js → chunk-6ty9vw27.js} +3 -3
- package/web/chunk-705tkt2r.js +1 -0
- package/web/{chunk-j6wcszxq.js → chunk-753qp8sa.js} +2 -2
- package/web/{chunk-3rxhs9qm.js → chunk-75kzvpf3.js} +8 -8
- package/web/{chunk-hdtvrh0f.js → chunk-75meb0dh.js} +2 -2
- package/web/{chunk-y6mcxfm0.js → chunk-76e3npmd.js} +1 -1
- package/web/chunk-7p04dn0k.js +1 -0
- package/web/chunk-7rb3v8gy.js +1 -0
- package/web/{chunk-797bh7z6.js → chunk-7yz88k97.js} +3 -3
- package/web/{chunk-p79c7aak.js → chunk-85d7jkp0.js} +1 -1
- package/web/chunk-90kgn35s.js +1 -0
- package/web/chunk-931y1g0h.js +1 -0
- package/web/chunk-bcp6na49.js +1145 -0
- package/web/chunk-bz1q7qdd.js +8 -0
- package/web/chunk-c0evk1xy.js +1 -0
- package/web/{chunk-ahn2frbt.js → chunk-c0hdp2zj.js} +1 -1
- package/web/{chunk-25sn840r.js → chunk-c1z290wm.js} +2 -2
- package/web/{chunk-vg346gxc.js → chunk-cge0cjfm.js} +1 -1
- package/web/{chunk-ffywf5w5.js → chunk-chh8bg2h.js} +11 -11
- package/web/{chunk-7zfqppsx.js → chunk-ctmxm4qd.js} +2 -2
- package/web/{chunk-hbwxtbq3.js → chunk-e229cr90.js} +1 -1
- package/web/{chunk-xhqvzmfj.js → chunk-e9mmkrc3.js} +5 -5
- package/web/{chunk-s70aj1v5.js → chunk-ef03t1mb.js} +5 -5
- package/web/{chunk-783s8jds.js → chunk-f8nnrk6y.js} +4 -4
- package/web/{chunk-8ttp8fh3.js → chunk-fcrswzgm.js} +3 -3
- package/web/{chunk-w5q7978e.js → chunk-ffn1a0zw.js} +1 -1
- package/web/chunk-fw4fa7j6.js +1 -0
- package/web/chunk-fx8hheqz.js +1 -0
- package/web/{chunk-vxm7n7w6.js → chunk-g8wy9sa6.js} +11 -11
- package/web/{chunk-pafw34vg.js → chunk-gaf9brzv.js} +2 -2
- package/web/{chunk-npw1s1h2.js → chunk-gj16e7z0.js} +1 -1
- package/web/{chunk-tjd8qp87.js → chunk-gjchc4kg.js} +1 -1
- package/web/chunk-h1y8y203.js +1 -0
- package/web/{chunk-sgkevxdf.js → chunk-h6vy008x.js} +1 -1
- package/web/{chunk-zsat72qd.js → chunk-h8mhnze5.js} +55 -55
- package/web/{chunk-7kywe73f.js → chunk-hhnhgthx.js} +2 -2
- package/web/{chunk-jzge034r.js → chunk-j27mtdr2.js} +1 -1
- package/web/chunk-jys02310.js +1 -0
- package/web/chunk-kew13yzg.js +1 -0
- package/web/{chunk-zx3h7v72.js → chunk-kx5r8nf2.js} +1 -1
- package/web/{chunk-d3hyf9yd.js → chunk-m7c0xk69.js} +1 -1
- package/web/{chunk-59g6rrew.js → chunk-madrcnm1.js} +2 -2
- package/web/{chunk-vwv6pqy7.js → chunk-mcm3t5wr.js} +1 -1
- package/web/{chunk-mn2wv9ye.js → chunk-mrnx4f74.js} +2 -2
- package/web/chunk-mtdsrtc5.js +1 -0
- package/web/{chunk-aknsydan.js → chunk-mv5axm2y.js} +4 -4
- package/web/{chunk-ya696bfe.js → chunk-n3f5a91k.js} +1 -1
- package/web/{chunk-dwtatme7.js → chunk-n3spc397.js} +1 -1
- package/web/{chunk-feanedhx.js → chunk-nhc280n0.js} +1 -1
- package/web/chunk-nx1bcekh.js +2 -0
- package/web/{chunk-wfgrdabk.js → chunk-p0jghn6b.js} +1 -1
- package/web/chunk-p8t7s4z4.js +1 -0
- package/web/chunk-pgh1cx6w.js +1 -0
- package/web/{chunk-g3szt4c4.js → chunk-ps489yjy.js} +1 -1
- package/web/{chunk-kk5rw81s.js → chunk-qbhv18t0.js} +2 -2
- package/web/{chunk-c7fqrs8j.js → chunk-qgzn0ha5.js} +1 -1
- package/web/{chunk-faskbfjf.js → chunk-qtwxq6hj.js} +3 -3
- package/web/chunk-qwp3dhmf.js +1 -0
- package/web/{chunk-bahccwb9.js → chunk-qwwqdmhv.js} +1 -1
- package/web/{chunk-9h0f3gar.js → chunk-rjh54ygb.js} +5 -5
- package/web/chunk-ryh8jdzy.js +1 -0
- package/web/chunk-s3t8dkkz.js +1 -0
- package/web/chunk-sk1w7f7h.js +1 -0
- package/web/chunk-smkrxjm5.js +1 -0
- package/web/{chunk-s45g7fp6.js → chunk-sv5ph7fa.js} +1 -1
- package/web/{chunk-2gvz70wr.js → chunk-t89tfrpj.js} +8 -8
- package/web/{chunk-qv1w36ja.js → chunk-t9pg7qf8.js} +2 -2
- package/web/{chunk-xf1hnpme.js → chunk-t9twxmsg.js} +1 -1
- package/web/{chunk-ptpkv0te.js → chunk-tfdchqn4.js} +1 -1
- package/web/{chunk-p4pqtybm.js → chunk-tfsrk2rc.js} +24 -24
- package/web/{chunk-we4mhfmq.js → chunk-tvvggvjt.js} +8 -8
- package/web/chunk-ty87gdvr.js +1 -0
- package/web/{chunk-ppa21760.js → chunk-v16s0x7c.js} +1 -1
- package/web/{chunk-zpzvz973.js → chunk-vb2z2azk.js} +10 -10
- package/web/{chunk-snaepr87.js → chunk-vcnsvj49.js} +9 -9
- package/web/{chunk-2c7kxr4v.js → chunk-vgyp8wa2.js} +2 -2
- package/web/chunk-vh8pkcem.css +1 -0
- package/web/{chunk-17wwzrp4.js → chunk-vjnvfb8z.js} +1 -1
- package/web/{chunk-32dh0hft.js → chunk-vphzndz8.js} +1 -1
- package/web/{chunk-r8p741qj.js → chunk-w60dxtyz.js} +1 -1
- package/web/{chunk-1zwc09e8.js → chunk-wcj3bxdf.js} +2 -2
- package/web/{chunk-ex8rmqn1.js → chunk-wgmwgaw4.js} +5 -5
- package/web/{chunk-51b8n5e1.js → chunk-wvt76598.js} +1 -1
- package/web/chunk-y0mef85j.js +1 -0
- package/web/{chunk-410qdvmv.js → chunk-y2ykn1gm.js} +1 -1
- package/web/{chunk-jdx7qp2w.js → chunk-ybqt106a.js} +2 -2
- package/web/{chunk-wkhj4hsw.js → chunk-ym9qfsjs.js} +4 -4
- package/web/{chunk-fx3d48e6.js → chunk-ypdptddq.js} +1 -1
- package/web/{chunk-tdzh6nsz.js → chunk-z08c63ph.js} +2 -2
- package/web/{chunk-k9fyqrhp.js → chunk-z2hvvkf5.js} +2 -2
- package/web/chunk-z6x74qfh.js +1 -0
- package/web/{chunk-zkq1xknc.js → chunk-z86pjpqp.js} +1 -1
- package/web/{chunk-rjakb64x.js → chunk-zh0vjc6g.js} +1 -1
- package/web/chunk-zns9wmab.js +1 -0
- package/web/index.html +1 -1
- package/web/sw.js +17 -1
- package/web/chunk-15g9pnzy.js +0 -1
- package/web/chunk-19tkjg9w.js +0 -1
- package/web/chunk-26sp6jre.js +0 -1
- package/web/chunk-2s3my1jn.js +0 -1
- package/web/chunk-4qehf2xx.js +0 -2
- package/web/chunk-6481wt3t.js +0 -1
- package/web/chunk-6ehecat3.js +0 -1
- package/web/chunk-6m8hq6ph.js +0 -1
- package/web/chunk-73941p08.js +0 -1
- package/web/chunk-8zg89764.js +0 -1
- package/web/chunk-9vrp249f.js +0 -2
- package/web/chunk-dcegr80c.js +0 -1
- package/web/chunk-g7bcntpm.js +0 -1
- package/web/chunk-gr1tjqbd.js +0 -1
- package/web/chunk-j031r08w.js +0 -1
- package/web/chunk-jge7nn3s.js +0 -1
- package/web/chunk-jy8zat04.js +0 -1
- package/web/chunk-k8s7kye3.js +0 -1
- package/web/chunk-k9zn1n6d.js +0 -1
- package/web/chunk-kg3tksv7.js +0 -1
- package/web/chunk-md9j949p.js +0 -1
- package/web/chunk-nk7jkpam.js +0 -1
- package/web/chunk-nmvt1rn3.js +0 -1
- package/web/chunk-npyrdsf8.css +0 -1
- package/web/chunk-nzzxv84v.js +0 -8
- package/web/chunk-rcexbkjj.js +0 -1
- package/web/chunk-say8bvkc.js +0 -1
- package/web/chunk-sjffrcq9.js +0 -1
- package/web/chunk-tncc9e57.js +0 -1
- package/web/chunk-ty2rmwda.js +0 -1142
- package/web/chunk-v22hp18w.js +0 -1
- package/web/chunk-ve9dz857.js +0 -2
- package/web/chunk-xq70hgre.js +0 -1
- package/web/chunk-zkv025s5.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{gn}from"./chunk-
|
|
2
|
-
`),e=new Map,i=-1;for(let[g,d]of r.entries())if(d.trim()==="treeView-beta"){i=g;break}if(i===-1)return{text:n,lineMap:e};let c=[];for(let g=i+1;g<r.length;g++){let d=r[g];if(d.trim()===""||X.test(d)||W.test(d))continue;if(M.test(d))continue;c.push(d.replace(/\t/g," "))}if(!P(c))return{text:n,lineMap:e};let o=Z(c),s=[],l=0;for(let g=0;g<=i;g++)s.push(r[g]),l++,e.set(l,g+1);for(let g=i+1;g<r.length;g++){let d=r[g],p=d.trim(),f=g+1;if(p===""){s.push(d),l++,e.set(l,f);continue}if(X.test(d)){s.push(d),l++,e.set(l,f);continue}if(W.test(d)){s.push(d),l++,e.set(l,f);continue}if(M.test(d))continue;let h=d.replace(/\t/g," "),w=Y.exec(h);if(w?.index!==void 0){let u=w.index,v=Math.round(u/o)+1,m=u+1;while(m<h.length&&ee.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let
|
|
3
|
-
`),lineMap:e}}t(U,"preprocessBoxDrawing");var b=new gn(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),re=t(()=>{b.reset(),C()},"clear"),ne=t(()=>b.records.stack[0],"getRoot"),ie=t(()=>b.records.cnt,"getCount"),oe=N.treeView,se=t(()=>j(oe,x().treeView),"getConfig"),ae=t((n,r,e,i,c,o)=>{while(n<=b.records.stack[b.records.stack.length-1].level)b.records.stack.pop();let s={id:b.records.cnt++,level:n,name:r,nodeType:e,icon:c,cssClass:i,description:o,children:[]};b.records.stack[b.records.stack.length-1].children.push(s),b.records.stack.push(s)},"addNode"),ce={clear:re,addNode:ae,getRoot:ne,getCount:ie,getConfig:se,getAccTitle:E,getAccDescription:A,getDiagramTitle:R,setAccDescription:T,setAccTitle:S,setDiagramTitle:
|
|
1
|
+
import{gn}from"./chunk-n3f5a91k.js";import{H}from"./chunk-85d7jkp0.js";import{t,a,N,x,O,F,C,S,E,T,A,I,R,V,Dn,it,j}from"./chunk-h8mhnze5.js";import{J}from"./chunk-tfsrk2rc.js";var G=/[─━│┃└┗├┣]/,Y=/[└┗├┣]/,ee=/[─━]/,M=/^[\s│┃]+$/,W=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,X=/^\s*%%/,te=" ";function P(n){return n.some((r)=>G.test(r))}t(P,"isBoxDrawingFormat");function Z(n){for(let r of n){let e=Y.exec(r);if(e?.index&&e.index>0)return e.index}return 4}t(Z,"inferSegmentWidth");function q(n,r){return n.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let c=parseInt(i,10),o=r.get(c);return o?`line ${o}`:e})}t(q,"remapErrorLines");function U(n){let r=n.split(`
|
|
2
|
+
`),e=new Map,i=-1;for(let[g,d]of r.entries())if(d.trim()==="treeView-beta"){i=g;break}if(i===-1)return{text:n,lineMap:e};let c=[];for(let g=i+1;g<r.length;g++){let d=r[g];if(d.trim()===""||X.test(d)||W.test(d))continue;if(M.test(d))continue;c.push(d.replace(/\t/g," "))}if(!P(c))return{text:n,lineMap:e};let o=Z(c),s=[],l=0;for(let g=0;g<=i;g++)s.push(r[g]),l++,e.set(l,g+1);for(let g=i+1;g<r.length;g++){let d=r[g],p=d.trim(),f=g+1;if(p===""){s.push(d),l++,e.set(l,f);continue}if(X.test(d)){s.push(d),l++,e.set(l,f);continue}if(W.test(d)){s.push(d),l++,e.set(l,f);continue}if(M.test(d))continue;let h=d.replace(/\t/g," "),w=Y.exec(h);if(w?.index!==void 0){let u=w.index,v=Math.round(u/o)+1,m=u+1;while(m<h.length&&ee.test(h[m]))m++;while(m<h.length&&h[m]===" ")m++;let y=h.slice(m).trimEnd();if(!y)throw Error(`Line ${f}: Empty node — expected a filename or directory name after the box-drawing prefix`);let Q=te.repeat(v);s.push(Q+y),l++,e.set(l,f)}else if(/^[\s─━│┃└┗├┣]+$/.test(h))continue;else if(G.test(h))s.push(d),l++,e.set(l,f);else if(/^\s+/.test(h))throw Error(`Line ${f}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);else s.push(d),l++,e.set(l,f)}return{text:s.join(`
|
|
3
|
+
`),lineMap:e}}t(U,"preprocessBoxDrawing");var b=new gn(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),re=t(()=>{b.reset(),C()},"clear"),ne=t(()=>b.records.stack[0],"getRoot"),ie=t(()=>b.records.cnt,"getCount"),oe=N.treeView,se=t(()=>j(oe,x().treeView),"getConfig"),ae=t((n,r,e,i,c,o)=>{while(n<=b.records.stack[b.records.stack.length-1].level)b.records.stack.pop();let s={id:b.records.cnt++,level:n,name:r,nodeType:e,icon:c,cssClass:i,description:o,children:[]};b.records.stack[b.records.stack.length-1].children.push(s),b.records.stack.push(s)},"addNode"),ce={clear:re,addNode:ae,getRoot:ne,getCount:ie,getConfig:se,getAccTitle:E,getAccDescription:A,getDiagramTitle:R,setAccDescription:T,setAccTitle:S,setDiagramTitle:I},k=ce,le=t((n)=>{H(n,k);for(let r of n.nodes){let e=typeof r.indent==="number"?r.indent:0,i=r.name,c=i.endsWith("/");if(c)i=i.slice(0,-1);let o=c?"directory":"file",s=r.classAnnotation||void 0,l=r.iconAnnotation,g=l!==void 0?l||"none":void 0,d=r.descAnnotation||void 0,p=d?O(d,x()):void 0;k.addNode(e,i,o,s,g,p)}},"populate"),de={parse:t(async(n)=>{let{text:r,lineMap:e}=U(n);try{let i=await J("treeView",r);a.debug(i),le(i)}catch(i){if(e.size>0&&i instanceof Error)i.message=q(i.message,e);throw i}},"parse")},B={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function K(n,r){let e=r?.filenameIcons?.[n];if(e)return e;let i=n.lastIndexOf(".");if(i>0){let c=n.substring(i).toLowerCase(),o=r?.extensionIcons;return o?.[c]??o?.[c.slice(1)]}return}t(K,"detectIcon");function L(n,r){if(n.includes(":"))return n;if(n in B.icons||!r)return`${B.prefix}:${n}`;return`${r}:${n}`}t(L,"qualifyIcon");function _(n,r){if(n.icon==="none")return;if(n.icon)return L(n.icon,r.defaultIconPack);if(!r.showIcons)return;if(n.nodeType==="file"){let e=K(n.name,r);if(e==="none")return;if(e)return L(e,r.defaultIconPack)}return`${B.prefix}:${n.nodeType==="directory"?"folder":"file"}`}t(_,"getNodeIcon");Dn([{name:B.prefix,icons:B}]);var D=14,he=4,pe=16,fe=t(async(n,r)=>{let e=[],i=t((o)=>{let s=_(o,r);if(s)e.push({icon:s,node:o});o.children.forEach(i)},"collect");i(n);let c=await Promise.all(e.map(async({icon:o,node:s})=>({id:s.id,svg:await it(o,{height:D,width:D})})));return new Map(c.map(({id:o,svg:s})=>[o,s]))},"resolveNodeIcons"),ge=t((n,r,e,i,c,o)=>{let s=i.append("g"),l="treeView-node-label";if(e.nodeType==="directory")l+=" treeView-node-dir";if(e.cssClass)l+=` ${e.cssClass}`;let g=D+he,d=_(e,c),p=d!==void 0;if(d)s.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+c.paddingX}, ${r+c.paddingY})`).html(o.get(e.id)??"");let f=s.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",l),{height:h,width:w}=f.node().getBBox(),u=h+c.paddingY*2,v=n+c.paddingX+(p?g:0);f.attr("x",v),f.attr("y",r+u/2);let m=v+w,y=w+c.paddingX*2+(p?g:0);if(e.BBox={x:n,y:r,width:y,height:u},e.cssClass?.split(/\s+/).includes("highlight"))s.insert("rect",":first-child").attr("x",n).attr("y",r+1).attr("width",0).attr("height",u-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:e,nodeGroup:s,labelRightEdge:m,centerY:r+u/2}},"positionLabel"),z=t((n,r,e,i,c,o)=>n.append("line").attr("x1",r).attr("y1",e).attr("x2",i).attr("y2",c).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),ue=t((n,r,e,i)=>{let c=0,o=0,s=[],l=t((p,f,h,w)=>{let u=w*(h.rowIndent+h.paddingX),v=ge(u,c,f,p,h,i);s.push(v);let{height:m,width:y}=f.BBox;z(p,u-h.rowIndent,c+m/2,u,c+m/2,h.lineThickness),o=Math.max(o,u+y),c+=m},"drawNode"),g=t((p,f=0)=>{l(n,p,e,f),p.children.forEach((v)=>{g(v,f+1)});let{x:h,y:w,height:u}=p.BBox;if(p.children.length){let{y:v,height:m}=p.children[p.children.length-1].BBox;z(n,h+e.paddingX,w+u,h+e.paddingX,v+m/2+e.lineThickness/2,e.lineThickness)}},"processNode");g(r);let d=s.filter((p)=>p.node.description);if(d.length>0){let f=Math.max(...s.map((h)=>h.labelRightEdge))+pe;for(let h of d){let u=h.nodeGroup.append("text").text(h.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",f).attr("y",h.centerY).node().getBBox();o=Math.max(o,f+u.width+e.paddingX)}}for(let p of s)if(p.node.cssClass?.split(/\s+/).includes("highlight")){let f=p.nodeGroup.select(".treeView-highlight-bg");if(!f.empty()){let h=o-p.node.BBox.x+8;f.attr("width",h),o=Math.max(o,p.node.BBox.x+h+2)}}return{totalHeight:c,totalWidth:o}},"drawTree"),me=t(async(n,r,e,i)=>{a.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);let c=i.db,o=c.getRoot(),s=c.getConfig(),l=V(r),g=l.append("g");g.attr("class","tree-view");let d=await fe(o,s),{totalHeight:p,totalWidth:f}=ue(g,o,s,d);l.attr("viewBox",`-${s.lineThickness/2} 0 ${f} ${p}`),F(l,p,f,s.useMaxWidth)},"draw"),we={draw:me},xe=we,ve={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},be=t(({treeView:n})=>{let{labelFontSize:r,labelColor:e,lineColor:i,iconColor:c,descriptionColor:o,highlightBg:s,highlightStroke:l}=j(ve,n);return`
|
|
5
5
|
.treeView-node-label {
|
|
6
6
|
font-size: ${r};
|
|
@@ -27,4 +27,4 @@ import{gn}from"./chunk-ya696bfe.js";import{H}from"./chunk-p79c7aak.js";import{t,
|
|
|
27
27
|
stroke: ${l};
|
|
28
28
|
stroke-width: 1;
|
|
29
29
|
}
|
|
30
|
-
`},"styles"),Ce=be,Ee={db:
|
|
30
|
+
`},"styles"),Ce=be,Ee={db:k,renderer:xe,parser:de,styles:Ce};export{Ee as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h,o,G,i,r,e,n,y,Vt,
|
|
1
|
+
import{h,o,G,i,r,e,n,y,Vt,re}from"./chunk-bcp6na49.js";import{qt}from"./chunk-w60dxtyz.js";import"./chunk-nx1bcekh.js";var H={config:"自定义路径",env:"环境变量",system:"系统预装"},x="chrome://inspect/#remote-debugging";function M({connection:d}){let{Button:w,Input:B,Switch:E,SettingGroup:S,SettingRow:b,cn:v}=y(),N=G(),[f,R]=r({}),[s,g]=r({}),[a,C]=r(null),[u,I]=r(!0),[k,O]=r(!1),[p,P]=r(!1),[D,c]=r(null),T=i(null),q=(s.executable??"")!==(f.executable??"")||Boolean(s.noSandbox)!==Boolean(f.noSandbox)||Boolean(s.ignoreCertErrors)!==Boolean(f.ignoreCertErrors)||(s.cdpEndpoint??"")!==(f.cdpEndpoint??""),z=h(async(t)=>{O(!0);try{let l=await d.request("/api/plugins/browser/status",{signal:t});C(l)}catch(l){if(!t?.aborted)C({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)O(!1)}},[d]);o(()=>{let t=new AbortController;return T.current=t,Promise.all([d.request("/api/plugins/browser/settings",{signal:t.signal}),d.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,m])=>{if(!t.signal.aborted)R(l),g(l),C(m)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)I(!1)}),()=>t.abort()},[d]);let U=async(t)=>{if(t?.preventDefault(),p||u)return;let l=new AbortController;P(!0),c(null);try{if(await d.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),!l.signal.aborted)R(s),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await z(l.signal)}catch(m){if(!l.signal.aborted)c({type:"error",text:m instanceof Error?m.message:"保存设置失败"})}finally{if(!l.signal.aborted)P(!1)}},L=()=>{g(f),c(null)},_=async()=>{try{await navigator.clipboard.writeText(x),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${x}`})}},F=a?.user?.available===!1,A="首次连接时在 Chrome 弹窗中点「允许」";if(F)A=s.cdpEndpoint?e("span",{className:"break-words text-danger",children:a?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:N,onSubmit:U,className:"min-w-0 space-y-5",children:[e(S,{title:"运行环境",children:e(b,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",a?.available?"bg-success":"bg-danger")}),a?a.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:a&&!a.available&&a.error?e("span",{className:"text-danger",children:a.error}):a?.available&&a.source?`来源:${H[a.source]??a.source}`:void 0,children:n(w,{type:"button",size:"sm",variant:"ghost",disabled:u||k,onClick:()=>void z(),className:"text-dim",children:[e(re,{className:v("size-3.5",k&&"animate-spin")}),"重新检测"]})})}),n(S,{title:"用户浏览器",children:[e(b,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",a?.user?.available?"bg-success":"bg-danger")}),a?.user?a.user.available?"可以连接":"暂不可连接":"正在检测…"]}),description:A,children:!s.cdpEndpoint&&n(w,{type:"button",size:"sm",variant:"secondary",title:x,onClick:()=>void _(),children:[e(Vt,{className:"size-3.5"}),"复制远程调试地址"]})}),e(b,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(B,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||p,value:s.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...s,cdpEndpoint:t.target.value}),c(null)}})})]}),n(S,{title:"启动参数",children:[e(b,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(B,{id:"browser-executable",disabled:u||p,value:s.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...s,executable:t.target.value}),c(null)}}),s.executable&&e(w,{type:"button",variant:"ghost",size:"sm",disabled:u||p,onClick:()=>{g({...s,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(b,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(E,{label:"禁用沙箱",disabled:u||p,checked:s.noSandbox??!1,onCheckedChange:(t)=>{g({...s,noSandbox:t}),c(null)}})}),e(b,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(E,{label:"忽略证书错误",disabled:u||p,checked:s.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...s,ignoreCertErrors:t}),c(null)}})})]}),e(qt,{formID:N,notice:D,dirty:q,busy:u||p,saving:p,onReset:L})]})}export{M as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Lt}from"./chunk-ty2rmwda.js";var Z={};Lt(Z,{default:()=>St});var Q={};Lt(Q,{default:()=>Ht});var Kr=typeof global=="object"&&global&&global.Object===Object&&global,H=Kr;var Hr=typeof self=="object"&&self&&self.Object===Object&&self,qr=H||Hr||Function("return this")(),be=qr;var $r=be.Symbol,Pe=$r;var wt=Object.prototype,{hasOwnProperty:kr,toString:Yr}=wt,G=Pe?Pe.toStringTag:void 0;function Xr(t){var e=kr.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=Yr.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var Pt=Xr;var Zr=Object.prototype,Jr=Zr.toString;function Qr(t){return Jr.call(t)}var Et=Qr;var Vr="[object Null]",to="[object Undefined]",It=Pe?Pe.toStringTag:void 0;function eo(t){if(t==null)return t===void 0?to:Vr;return It&&It in Object(t)?Pt(t):Et(t)}var Je=eo;function ro(t){return t!=null&&typeof t=="object"}var Ee=ro;var oo="[object Symbol]";function ao(t){return typeof t=="symbol"||Ee(t)&&Je(t)==oo}var pt=ao;function fo(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var Wt=fo;var io=Array.isArray,Y=io;var no=1/0,jt=Pe?Pe.prototype:void 0,Mt=jt?jt.toString:void 0;function Nt(t){if(typeof t=="string")return t;if(Y(t))return Wt(t,Nt)+"";if(pt(t))return Mt?Mt.call(t):"";var e=t+"";return e=="0"&&1/t==-no?"-0":e}var Dt=Nt;function so(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var me=so;function po(t){return t}var ct=po;var uo="[object AsyncFunction]",mo="[object Function]",lo="[object GeneratorFunction]",xo="[object Proxy]";function ho(t){if(!me(t))return!1;var e=Je(t);return e==mo||e==lo||e==uo||e==xo}var Gt=ho;var co=be["__core-js_shared__"],q=co;var Rt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function go(t){return!!Rt&&Rt in t}var Ft=go;var yo=Function.prototype,_o=yo.toString;function bo(t){if(t!=null){try{return _o.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var _=bo;var vo=/[\\^$.*+?()[\]{}|]/g,Oo=/^\[object .+?Constructor\]$/,Ao=Function.prototype,To=Object.prototype,wo=Ao.toString,So=To.hasOwnProperty,Po=RegExp("^"+wo.call(So).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Co(t){if(!me(t)||Ft(t))return!1;var e=Gt(t)?Po:Oo;return e.test(_(t))}var Bt=Co;function Eo(t,e){return t==null?void 0:t[e]}var Ut=Eo;function Io(t,e){var r=Ut(t,e);return Bt(r)?r:void 0}var x=Io;var Lo=x(be,"WeakMap"),k=Lo;function jo(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var zt=jo;function Mo(){}var Kt=Mo;var No=800,Do=16,Ro=Date.now;function Fo(t){var e=0,r=0;return function(){var o=Ro(),a=Do-(o-r);if(r=o,a>0){if(++e>=No)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var qt=Fo;function Bo(t){return function(){return t}}var ut=Bo;var Go=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),dr=Go;var Uo=!dr?ct:function(t,e){return dr(t,"toString",{configurable:!0,enumerable:!1,value:ut(e),writable:!0})},kt=Uo;var zo=qt(kt),ya=zo;function Wo(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var va=Wo;function Ko(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var ba=Ko;function Ho(t){return t!==t}var Jt=Ho;function qo(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var Qt=qo;function $o(t,e,r){return e===e?Qt(t,e,r):ba(t,Jt,r)}var Vt=$o;function ko(t,e){var r=t==null?0:t.length;return!!r&&Vt(t,e,0)>-1}var te=ko;var Yo=9007199254740991,Xo=/^(?:0|[1-9]\d*)$/;function Zo(t,e){var r=typeof t;return e=e==null?Yo:e,!!e&&(r=="number"||r!="symbol"&&Xo.test(t))&&(t>-1&&t%1==0&&t<e)}var bn=Zo;function Jo(t,e){return t===e||t!==t&&e!==e}var Ct=Jo;var ee=Math.max;function Qo(t,e,r){return e=ee(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=ee(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),zt(t,this,n)}}var xa=Qo;function Vo(t,e){return ya(xa(t,e,ct),t+"")}var xn=Vo;var ta=9007199254740991;function ea(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ta}var j=ea;function ra(t){return t!=null&&j(t.length)&&!Gt(t)}var Oe=ra;var oa=Object.prototype;function aa(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||oa;return t===r}var _n=aa;function fa(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var oe=fa;var ia="[object Arguments]";function na(t){return Ee(t)&&Je(t)==ia}var gt=na;var ae=Object.prototype,{hasOwnProperty:sa,propertyIsEnumerable:pa}=ae,ua=gt(function(){return arguments}())?gt:function(t){return Ee(t)&&sa.call(t,"callee")&&!pa.call(t,"callee")},$t=ua;function ma(){return!1}var fe=ma;var se=typeof Z=="object"&&Z&&!Z.nodeType&&Z,ie=se&&typeof X=="object"&&X&&!X.nodeType&&X,la=ie&&ie.exports===se,ne=la?be.Buffer:void 0,da=ne?ne.isBuffer:void 0,ha=da||fe,St=ha;var ca="[object Arguments]",ga="[object Array]",Oa="[object Boolean]",Pa="[object Date]",Ia="[object Error]",La="[object Function]",ja="[object Map]",Ma="[object Number]",Na="[object Object]",Da="[object RegExp]",Fa="[object Set]",Ba="[object String]",Ga="[object WeakMap]",Ua="[object ArrayBuffer]",za="[object DataView]",Wa="[object Float32Array]",Ka="[object Float64Array]",Ha="[object Int8Array]",qa="[object Int16Array]",$a="[object Int32Array]",Ya="[object Uint8Array]",Xa="[object Uint8ClampedArray]",Za="[object Uint16Array]",Ja="[object Uint32Array]",u={};u[Wa]=u[Ka]=u[Ha]=u[qa]=u[$a]=u[Ya]=u[Xa]=u[Za]=u[Ja]=!0;u[ca]=u[ga]=u[Ua]=u[Oa]=u[za]=u[Pa]=u[Ia]=u[La]=u[ja]=u[Ma]=u[Na]=u[Da]=u[Fa]=u[Ba]=u[Ga]=!1;function Qa(t){return Ee(t)&&j(t.length)&&!!u[Je(t)]}var pe=Qa;function Va(t){return function(e){return t(e)}}var wn=Va;var ue=typeof Q=="object"&&Q&&!Q.nodeType&&Q,U=ue&&typeof J=="object"&&J&&!J.nodeType&&J,tf=U&&U.exports===ue,yt=tf&&H.process,ef=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return yt&&yt.binding&&yt.binding("util")}catch(e){}}(),Ht=ef;var le=Ht&&Ht.isTypedArray,rf=le?wn(le):pe,kn=rf;var of=Object.prototype,af=of.hasOwnProperty;function ff(t,e){var r=Y(t),o=!r&&$t(t),a=!r&&!o&&St(t),f=!r&&!o&&!a&&kn(t),i=r||o||a||f,n=i?oe(t.length,String):[],s=n.length;for(var p in t)if((e||af.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||bn(p,s))))n.push(p);return n}var _a=ff;function nf(t,e){return function(r){return t(e(r))}}var wa=nf;var sf=wa(Object.keys,Object),de=sf;var pf=Object.prototype,uf=pf.hasOwnProperty;function mf(t){if(!_n(t))return de(t);var e=[];for(var r in Object(t))if(uf.call(t,r)&&r!="constructor")e.push(r);return e}var pr=mf;function lf(t){return Oe(t)?_a(t):pr(t)}var xe=lf;var df=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xf=/^\w*$/;function hf(t,e){if(Y(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||pt(t))return!0;return xf.test(t)||!df.test(t)||e!=null&&t in Object(e)}var M=hf;var cf=x(Object,"create"),b=cf;function gf(){this.__data__=b?b(null):{},this.size=0}var he=gf;function yf(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ce=yf;var _f="__lodash_hash_undefined__",bf=Object.prototype,vf=bf.hasOwnProperty;function Of(t){var e=this.__data__;if(b){var r=e[t];return r===_f?void 0:r}return vf.call(e,t)?e[t]:void 0}var ge=Of;var Af=Object.prototype,Tf=Af.hasOwnProperty;function wf(t){var e=this.__data__;return b?e[t]!==void 0:Tf.call(e,t)}var ye=wf;var Sf="__lodash_hash_undefined__";function Pf(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=b&&e===void 0?Sf:e,this}var ve=Pf;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=he;N.prototype.delete=ce;N.prototype.get=ge;N.prototype.has=ye;N.prototype.set=ve;var _t=N;function Cf(){this.__data__=[],this.size=0}var Ae=Cf;function Ef(t,e){var r=t.length;while(r--)if(Ct(t[r][0],e))return r;return-1}var O=Ef;var If=Array.prototype,Lf=If.splice;function jf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else Lf.call(e,r,1);return--this.size,!0}var Te=jf;function Mf(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var we=Mf;function Nf(t){return O(this.__data__,t)>-1}var Se=Nf;function Df(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var Ce=Df;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=Ae;D.prototype.delete=Te;D.prototype.get=we;D.prototype.has=Se;D.prototype.set=Ce;var A=D;var Rf=x(be,"Map"),T=Rf;function Ff(){this.size=0,this.__data__={hash:new _t,map:new(T||A),string:new _t}}var Ie=Ff;function Bf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Le=Bf;function Gf(t,e){var r=t.__data__;return Le(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=Gf;function Uf(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var je=Uf;function zf(t){return w(this,t).get(t)}var Me=zf;function Wf(t){return w(this,t).has(t)}var Ne=Wf;function Kf(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var De=Kf;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=Ie;R.prototype.delete=je;R.prototype.get=Me;R.prototype.has=Ne;R.prototype.set=De;var E=R;var Hf="Expected a function";function bt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(Hf);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(bt.Cache||E),r}bt.Cache=E;var Re=bt;var qf=500;function $f(t){var e=Re(t,function(o){if(r.size===qf)r.clear();return o}),r=e.cache;return e}var Fe=$f;var kf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yf=/\\(\\)?/g,Xf=Fe(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(kf,function(r,o,a,f){e.push(a?f.replace(Yf,"$1"):o||r)}),e}),Be=Xf;function Zf(t){return t==null?"":Dt(t)}var ka=Zf;function Jf(t,e){if(Y(t))return t;return M(t,e)?[t]:Be(ka(t))}var Cn=Jf;var Qf=1/0;function Vf(t){if(typeof t=="string"||pt(t))return t;var e=t+"";return e=="0"&&1/t==-Qf?"-0":e}var Yt=Vf;function ti(t,e){e=Cn(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[Yt(e[r++])];return r&&r==o?t:void 0}var Sn=ti;function ei(t,e,r){var o=t==null?void 0:Sn(t,e);return o===void 0?r:o}var Ge=ei;function ri(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var mr=ri;var Ue=Pe?Pe.isConcatSpreadable:void 0;function oi(t){return Y(t)||$t(t)||!!(Ue&&t&&t[Ue])}var ze=oi;function We(t,e,r,o,a){var f=-1,i=t.length;r||(r=ze),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)We(n,e-1,r,o,a);else mr(a,n);else if(!o)a[a.length]=n}return a}var fr=We;function ai(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var Ke=ai;function fi(){this.__data__=new A,this.size=0}var qe=fi;function ii(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var $e=ii;function ni(t){return this.__data__.get(t)}var ke=ni;function si(t){return this.__data__.has(t)}var Ye=si;var pi=200;function ui(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<pi-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var Xe=ui;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=qe;F.prototype.delete=$e;F.prototype.get=ke;F.prototype.has=Ye;F.prototype.set=Xe;var Zt=F;function mi(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var V=mi;function li(){return[]}var Ca=li;var di=Object.prototype,xi=di.propertyIsEnumerable,Ze=Object.getOwnPropertySymbols,hi=!Ze?Ca:function(t){if(t==null)return[];return t=Object(t),V(Ze(t),function(e){return xi.call(t,e)})},hr=hi;function ci(t,e,r){var o=e(t);return Y(t)?o:mr(o,r(t))}var Sa=ci;function gi(t){return Sa(t,xe,hr)}var Wr=gi;var yi=x(be,"DataView"),tt=yi;var _i=x(be,"Promise"),rt=_i;var bi=x(be,"Set"),S=bi;var Qe="[object Map]",vi="[object Object]",Ve="[object Promise]",tr="[object Set]",er="[object WeakMap]",rr="[object DataView]",Oi=_(tt),Ai=_(T),Ti=_(rt),wi=_(S),Si=_(k),I=Je;if(tt&&I(new tt(new ArrayBuffer(1)))!=rr||T&&I(new T)!=Qe||rt&&I(rt.resolve())!=Ve||S&&I(new S)!=tr||k&&I(new k)!=er)I=function(t){var e=Je(t),r=e==vi?t.constructor:void 0,o=r?_(r):"";if(o)switch(o){case Oi:return rr;case Ai:return Qe;case Ti:return Ve;case wi:return tr;case Si:return er}return e};var mt=I;var Pi=be.Uint8Array,gr=Pi;var Ci="__lodash_hash_undefined__";function Ei(t){return this.__data__.set(t,Ci),this}var or=Ei;function Ii(t){return this.__data__.has(t)}var ar=Ii;function ot(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}ot.prototype.add=ot.prototype.push=or;ot.prototype.has=ar;var at=ot;function Li(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var ir=Li;function ji(t,e){return t.has(e)}var it=ji;var Mi=1,Ni=2;function Di(t,e,r,o,a,f){var i=r&Mi,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,y=r&Ni?new at:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var v=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(v!==void 0){if(v)continue;m=!1;break}if(y){if(!ir(e,function(P,C){if(!it(y,C)&&(h===P||a(h,P,r,o,f)))return y.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var nt=Di;function Ri(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var nr=Ri;function Fi(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=Fi;var Bi=1,Gi=2,Ui="[object Boolean]",zi="[object Date]",Wi="[object Error]",Ki="[object Map]",Hi="[object Number]",qi="[object RegExp]",$i="[object Set]",ki="[object String]",Yi="[object Symbol]",Xi="[object ArrayBuffer]",Zi="[object DataView]",sr=Pe?Pe.prototype:void 0,vt=sr?sr.valueOf:void 0;function Ji(t,e,r,o,a,f,i){switch(r){case Zi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Xi:if(t.byteLength!=e.byteLength||!f(new gr(t),new gr(e)))return!1;return!0;case Ui:case zi:case Hi:return Ct(+t,+e);case Wi:return t.name==e.name&&t.message==e.message;case qi:case ki:return t==e+"";case Ki:var n=nr;case $i:var s=o&Bi;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=Gi,i.set(t,e);var d=nt(n(t),n(e),o,a,f,i);return i.delete(t),d;case Yi:if(vt)return vt.call(t)==vt.call(e)}return!1}var ur=Ji;var Qi=1,Vi=Object.prototype,tn=Vi.hasOwnProperty;function en(t,e,r,o,a,f){var i=r&Qi,n=Wr(t),s=n.length,p=Wr(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:tn.call(e,m)))return!1}var y=f.get(t),h=f.get(e);if(y&&h)return y==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var v=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var Tt=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(Tt===void 0?P===C||a(P,C,r,o,f):Tt)){c=!1;break}v||(v=m=="constructor")}if(c&&!v){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var lr=en;var rn=1,xr="[object Arguments]",cr="[object Array]",st="[object Object]",on=Object.prototype,_r=on.hasOwnProperty;function an(t,e,r,o,a,f){var i=Y(t),n=Y(e),s=i?cr:mt(t),p=n?cr:mt(e);s=s==xr?st:s,p=p==xr?st:p;var d=s==st,l=p==st,m=s==p;if(m&&St(t)){if(!St(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new Zt),i||kn(t)?nt(t,e,r,o,a,f):ur(t,e,s,r,o,a,f);if(!(r&rn)){var y=d&&_r.call(t,"__wrapped__"),h=l&&_r.call(e,"__wrapped__");if(y||h){var c=y?t.value():t,v=h?e.value():e;return f||(f=new Zt),a(c,v,r,o,f)}}if(!m)return!1;return f||(f=new Zt),lr(t,e,r,o,a,f)}var Or=an;function Ar(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!Ee(t)&&!Ee(e))return t!==t&&e!==e;return Or(t,e,r,o,Ar,a)}var lt=Ar;var fn=1,nn=2;function sn(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new Zt;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?lt(d,p,fn|nn,o,l):m))return!1}}return!0}var Tr=sn;function pn(t){return t===t&&!me(t)}var dt=pn;function un(t){var e=xe(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,dt(a)]}return e}var wr=un;function mn(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var xt=mn;function ln(t){var e=wr(t);if(e.length==1&&e[0][2])return xt(e[0][0],e[0][1]);return function(r){return r===t||Tr(r,t,e)}}var Sr=ln;function dn(t,e){return t!=null&&e in Object(t)}var Pr=dn;function hn(t,e,r){e=Cn(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=Yt(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&bn(i,a)&&(Y(t)||$t(t))}var Ta=hn;function cn(t,e){return t!=null&&Ta(t,e,Pr)}var Ea=cn;var gn=1,yn=2;function vn(t,e){if(M(t)&&dt(e))return xt(Yt(t),e);return function(r){var o=Ge(r,t);return o===void 0&&o===e?Ea(r,t):lt(e,o,gn|yn)}}var Cr=vn;function On(t){return function(e){return e==null?void 0:e[t]}}var Aa=On;function An(t){return function(e){return Sn(e,t)}}var Er=An;function Pn(t){return M(t)?Aa(Yt(t)):Er(t)}var Ir=Pn;function En(t){if(typeof t=="function")return t;if(t==null)return ct;if(typeof t=="object")return Y(t)?Cr(t[0],t[1]):Sr(t);return Ir(t)}var He=En;function In(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var Lr=In;var Ln=Lr(),yr=Ln;function jn(t,e){return t&&yr(t,e,xe)}var vr=jn;function Mn(t,e){return function(r,o){if(r==null)return r;if(!Oe(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var jr=Mn;var Nn=jr(vr),Tn=Nn;function Dn(t){return Ee(t)&&Oe(t)}var Ra=Dn;function Rn(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var Mr=Rn;function Fn(t){return typeof t=="function"?t:ct}var br=Fn;function Bn(t,e){var r=Y(t)?va:Tn;return r(t,br(e))}var g=Bn;function Gn(t,e){var r=[];return Tn(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var Nr=Gn;function Un(t,e){var r=Y(t)?V:Nr;return r(t,He(e,3))}var et=Un;function zn(t,e){return Wt(e,function(r){return t[r]})}var Dr=zn;function Wn(t){return t==null?[]:Dr(t,xe(t))}var ft=Wn;var Kn="[object Map]",Hn="[object Set]",qn=Object.prototype,$n=qn.hasOwnProperty;function Yn(t){if(t==null)return!0;if(Oe(t)&&(Y(t)||typeof t=="string"||typeof t.splice=="function"||St(t)||kn(t)||$t(t)))return!t.length;var e=mt(t);if(e==Kn||e==Hn)return!t.size;if(_n(t))return!pr(t).length;for(var r in t)if($n.call(t,r))return!1;return!0}var ht=Yn;function Xn(t){return t===void 0}var _e=Xn;function Zn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var Rr=Zn;function Jn(t,e,r){var o=Y(t)?Ke:Rr,a=arguments.length<3;return o(t,He(e,4),r,a,Tn)}var Xt=Jn;var Qn=1/0,Vn=!(S&&1/B(new S([,-0]))[1]==Qn)?Kt:function(t){return new S(t)},Fr=Vn;var ts=200;function es(t,e,r){var o=-1,a=te,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=Mr;else if(f>=ts){var p=e?null:Fr(t);if(p)return B(p);i=!1,a=it,s=new at}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var Br=es;var rs=xn(function(t){return Br(fr(t,1,Ra,!0))}),Ot=rs;var as="\x00",L="\x00",Gr="\x01";class re{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=ut(void 0),this._defaultEdgeLabelFn=ut(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!Gt(t))t=ut(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return xe(this._nodes)}sources(){var t=this;return et(this.nodes(),function(e){return ht(t._in[e])})}sinks(){var t=this;return et(this.nodes(),function(e){return ht(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return g(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],g(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];g(xe(this._in[t]),e),delete this._in[t],delete this._preds[t],g(xe(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(_e(e))e=L;else{e+="";for(var r=e;!_e(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(_e(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return xe(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return xe(e)}successors(t){var e=this._sucs[t];if(e)return xe(e)}neighbors(t){var e=this.predecessors(t);if(e)return Ot(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;g(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),g(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)g(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!Gt(t))t=ut(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return ft(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return Xt(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!_e(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!_e(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=fs(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,Ur(this._preds[e],t),Ur(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?At(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?At(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?At(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],zr(this._preds[e],t),zr(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=ft(r);if(!e)return o;return et(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=ft(r);if(!e)return o;return et(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}re.prototype._nodeCount=0;re.prototype._edgeCount=0;function Ur(t,e){if(t[e])t[e]++;else t[e]=1}function zr(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+Gr+f+Gr+(_e(o)?as:o)}function fs(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function At(t,e){return z(t,e.v,e.w,e.name)}
|
|
2
|
-
export{be,
|
|
1
|
+
import{Lt}from"./chunk-bcp6na49.js";var Z={};Lt(Z,{default:()=>St});var Q={};Lt(Q,{default:()=>Ht});var Kr=typeof global=="object"&&global&&global.Object===Object&&global,H=Kr;var Hr=typeof self=="object"&&self&&self.Object===Object&&self,qr=H||Hr||Function("return this")(),be=qr;var $r=be.Symbol,Oe=$r;var Pt=Object.prototype,{hasOwnProperty:kr,toString:Yr}=Pt,G=Oe?Oe.toStringTag:void 0;function Xr(t){var e=kr.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=Yr.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var Et=Xr;var Zr=Object.prototype,Jr=Zr.toString;function Qr(t){return Jr.call(t)}var It=Qr;var Vr="[object Null]",to="[object Undefined]",jt=Oe?Oe.toStringTag:void 0;function eo(t){if(t==null)return t===void 0?to:Vr;return jt&&jt in Object(t)?Et(t):It(t)}var et=eo;function ro(t){return t!=null&&typeof t=="object"}var Ee=ro;var oo="[object Symbol]";function ao(t){return typeof t=="symbol"||Ee(t)&&et(t)==oo}var pt=ao;function fo(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var Wt=fo;var io=Array.isArray,Y=io;var no=1/0,Mt=Oe?Oe.prototype:void 0,Nt=Mt?Mt.toString:void 0;function Dt(t){if(typeof t=="string")return t;if(Y(t))return Wt(t,Dt)+"";if(pt(t))return Nt?Nt.call(t):"";var e=t+"";return e=="0"&&1/t==-no?"-0":e}var Rt=Dt;function so(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var me=so;function po(t){return t}var ct=po;var uo="[object AsyncFunction]",mo="[object Function]",lo="[object GeneratorFunction]",xo="[object Proxy]";function ho(t){if(!me(t))return!1;var e=et(t);return e==mo||e==lo||e==uo||e==xo}var Gt=ho;var co=be["__core-js_shared__"],q=co;var Ft=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function go(t){return!!Ft&&Ft in t}var Bt=go;var yo=Function.prototype,_o=yo.toString;function bo(t){if(t!=null){try{return _o.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var _=bo;var vo=/[\\^$.*+?()[\]{}|]/g,Oo=/^\[object .+?Constructor\]$/,Ao=Function.prototype,To=Object.prototype,wo=Ao.toString,So=To.hasOwnProperty,Po=RegExp("^"+wo.call(So).replace(vo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Co(t){if(!me(t)||Bt(t))return!1;var e=Gt(t)?Po:Oo;return e.test(_(t))}var Ut=Co;function Eo(t,e){return t==null?void 0:t[e]}var zt=Eo;function Io(t,e){var r=zt(t,e);return Ut(r)?r:void 0}var x=Io;var Lo=x(be,"WeakMap"),k=Lo;function jo(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Kt=jo;function Mo(){}var qt=Mo;var No=800,Do=16,Ro=Date.now;function Fo(t){var e=0,r=0;return function(){var o=Ro(),a=Do-(o-r);if(r=o,a>0){if(++e>=No)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var kt=Fo;function Bo(t){return function(){return t}}var ut=Bo;var Go=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),pr=Go;var Uo=!pr?ct:function(t,e){return pr(t,"toString",{configurable:!0,enumerable:!1,value:ut(e),writable:!0})},Jt=Uo;var zo=kt(Jt),va=zo;function Wo(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var ba=Wo;function Ko(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var xa=Ko;function Ho(t){return t!==t}var Qt=Ho;function qo(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var Vt=qo;function $o(t,e,r){return e===e?Vt(t,e,r):xa(t,Qt,r)}var te=$o;function ko(t,e){var r=t==null?0:t.length;return!!r&&te(t,e,0)>-1}var ee=ko;var Yo=9007199254740991,Xo=/^(?:0|[1-9]\d*)$/;function Zo(t,e){var r=typeof t;return e=e==null?Yo:e,!!e&&(r=="number"||r!="symbol"&&Xo.test(t))&&(t>-1&&t%1==0&&t<e)}var bn=Zo;function Jo(t,e){return t===e||t!==t&&e!==e}var Ct=Jo;var re=Math.max;function Qo(t,e,r){return e=re(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=re(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),Kt(t,this,n)}}var _a=Qo;function Vo(t,e){return va(_a(t,e,ct),t+"")}var xn=Vo;var ta=9007199254740991;function ea(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ta}var j=ea;function ra(t){return t!=null&&j(t.length)&&!Gt(t)}var $e=ra;var oa=Object.prototype;function aa(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||oa;return t===r}var _n=aa;function fa(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var oe=fa;var ia="[object Arguments]";function na(t){return Ee(t)&&et(t)==ia}var yt=na;var fe=Object.prototype,{hasOwnProperty:sa,propertyIsEnumerable:pa}=fe,ua=yt(function(){return arguments}())?yt:function(t){return Ee(t)&&sa.call(t,"callee")&&!pa.call(t,"callee")},$t=ua;function ma(){return!1}var ie=ma;var pe=typeof Z=="object"&&Z&&!Z.nodeType&&Z,ne=pe&&typeof X=="object"&&X&&!X.nodeType&&X,la=ne&&ne.exports===pe,se=la?be.Buffer:void 0,da=se?se.isBuffer:void 0,ha=da||ie,St=ha;var ca="[object Arguments]",ga="[object Array]",ya="[object Boolean]",Oa="[object Date]",Pa="[object Error]",Ia="[object Function]",ja="[object Map]",Ma="[object Number]",Na="[object Object]",Da="[object RegExp]",Fa="[object Set]",Ba="[object String]",Ga="[object WeakMap]",Ua="[object ArrayBuffer]",za="[object DataView]",Wa="[object Float32Array]",Ka="[object Float64Array]",Ha="[object Int8Array]",qa="[object Int16Array]",$a="[object Int32Array]",Ya="[object Uint8Array]",Xa="[object Uint8ClampedArray]",Za="[object Uint16Array]",Ja="[object Uint32Array]",u={};u[Wa]=u[Ka]=u[Ha]=u[qa]=u[$a]=u[Ya]=u[Xa]=u[Za]=u[Ja]=!0;u[ca]=u[ga]=u[Ua]=u[ya]=u[za]=u[Oa]=u[Pa]=u[Ia]=u[ja]=u[Ma]=u[Na]=u[Da]=u[Fa]=u[Ba]=u[Ga]=!1;function Qa(t){return Ee(t)&&j(t.length)&&!!u[et(t)]}var ue=Qa;function Va(t){return function(e){return t(e)}}var wn=Va;var le=typeof Q=="object"&&Q&&!Q.nodeType&&Q,U=le&&typeof J=="object"&&J&&!J.nodeType&&J,tf=U&&U.exports===le,_t=tf&&H.process,ef=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return _t&&_t.binding&&_t.binding("util")}catch(e){}}(),Ht=ef;var de=Ht&&Ht.isTypedArray,rf=de?wn(de):ue,kn=rf;var of=Object.prototype,af=of.hasOwnProperty;function ff(t,e){var r=Y(t),o=!r&&$t(t),a=!r&&!o&&St(t),f=!r&&!o&&!a&&kn(t),i=r||o||a||f,n=i?oe(t.length,String):[],s=n.length;for(var p in t)if((e||af.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||bn(p,s))))n.push(p);return n}var wa=ff;function nf(t,e){return function(r){return t(e(r))}}var ka=nf;var sf=ka(Object.keys,Object),he=sf;var pf=Object.prototype,uf=pf.hasOwnProperty;function mf(t){if(!_n(t))return he(t);var e=[];for(var r in Object(t))if(uf.call(t,r)&&r!="constructor")e.push(r);return e}var mr=mf;function lf(t){return $e(t)?wa(t):mr(t)}var xe=lf;var df=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xf=/^\w*$/;function hf(t,e){if(Y(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||pt(t))return!0;return xf.test(t)||!df.test(t)||e!=null&&t in Object(e)}var M=hf;var cf=x(Object,"create"),b=cf;function gf(){this.__data__=b?b(null):{},this.size=0}var ce=gf;function yf(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ge=yf;var _f="__lodash_hash_undefined__",bf=Object.prototype,vf=bf.hasOwnProperty;function Of(t){var e=this.__data__;if(b){var r=e[t];return r===_f?void 0:r}return vf.call(e,t)?e[t]:void 0}var ye=Of;var Af=Object.prototype,Tf=Af.hasOwnProperty;function wf(t){var e=this.__data__;return b?e[t]!==void 0:Tf.call(e,t)}var ve=wf;var Sf="__lodash_hash_undefined__";function Pf(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=b&&e===void 0?Sf:e,this}var Ae=Pf;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=ce;N.prototype.delete=ge;N.prototype.get=ye;N.prototype.has=ve;N.prototype.set=Ae;var bt=N;function Cf(){this.__data__=[],this.size=0}var Te=Cf;function Ef(t,e){var r=t.length;while(r--)if(Ct(t[r][0],e))return r;return-1}var O=Ef;var If=Array.prototype,Lf=If.splice;function jf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else Lf.call(e,r,1);return--this.size,!0}var we=jf;function Mf(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var Se=Mf;function Nf(t){return O(this.__data__,t)>-1}var Pe=Nf;function Df(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var Ce=Df;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=Te;D.prototype.delete=we;D.prototype.get=Se;D.prototype.has=Pe;D.prototype.set=Ce;var A=D;var Rf=x(be,"Map"),T=Rf;function Ff(){this.size=0,this.__data__={hash:new bt,map:new(T||A),string:new bt}}var Ie=Ff;function Bf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Le=Bf;function Gf(t,e){var r=t.__data__;return Le(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=Gf;function Uf(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var je=Uf;function zf(t){return w(this,t).get(t)}var Me=zf;function Wf(t){return w(this,t).has(t)}var Ne=Wf;function Kf(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var De=Kf;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=Ie;R.prototype.delete=je;R.prototype.get=Me;R.prototype.has=Ne;R.prototype.set=De;var E=R;var Hf="Expected a function";function vt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(Hf);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(vt.Cache||E),r}vt.Cache=E;var Re=vt;var qf=500;function $f(t){var e=Re(t,function(o){if(r.size===qf)r.clear();return o}),r=e.cache;return e}var Fe=$f;var kf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yf=/\\(\\)?/g,Xf=Fe(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(kf,function(r,o,a,f){e.push(a?f.replace(Yf,"$1"):o||r)}),e}),Be=Xf;function Zf(t){return t==null?"":Rt(t)}var Ca=Zf;function Jf(t,e){if(Y(t))return t;return M(t,e)?[t]:Be(Ca(t))}var Cn=Jf;var Qf=1/0;function Vf(t){if(typeof t=="string"||pt(t))return t;var e=t+"";return e=="0"&&1/t==-Qf?"-0":e}var Yt=Vf;function ti(t,e){e=Cn(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[Yt(e[r++])];return r&&r==o?t:void 0}var Sn=ti;function ei(t,e,r){var o=t==null?void 0:Sn(t,e);return o===void 0?r:o}var Ge=ei;function ri(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var fr=ri;var Ue=Oe?Oe.isConcatSpreadable:void 0;function oi(t){return Y(t)||$t(t)||!!(Ue&&t&&t[Ue])}var ze=oi;function We(t,e,r,o,a){var f=-1,i=t.length;r||(r=ze),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)We(n,e-1,r,o,a);else fr(a,n);else if(!o)a[a.length]=n}return a}var hr=We;function ai(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var Ke=ai;function fi(){this.__data__=new A,this.size=0}var He=fi;function ii(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var qe=ii;function ni(t){return this.__data__.get(t)}var ke=ni;function si(t){return this.__data__.has(t)}var Xe=si;var pi=200;function ui(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<pi-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var Ze=ui;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=He;F.prototype.delete=qe;F.prototype.get=ke;F.prototype.has=Xe;F.prototype.set=Ze;var Zt=F;function mi(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var V=mi;function li(){return[]}var Sa=li;var di=Object.prototype,xi=di.propertyIsEnumerable,Je=Object.getOwnPropertySymbols,hi=!Je?Sa:function(t){if(t==null)return[];return t=Object(t),V(Je(t),function(e){return xi.call(t,e)})},gr=hi;function ci(t,e,r){var o=e(t);return Y(t)?o:fr(o,r(t))}var Ta=ci;function gi(t){return Ta(t,xe,gr)}var Gr=gi;var yi=x(be,"DataView"),rt=yi;var _i=x(be,"Promise"),ot=_i;var bi=x(be,"Set"),S=bi;var Qe="[object Map]",vi="[object Object]",Ve="[object Promise]",tr="[object Set]",er="[object WeakMap]",rr="[object DataView]",Oi=_(rt),Ai=_(T),Ti=_(ot),wi=_(S),Si=_(k),I=et;if(rt&&I(new rt(new ArrayBuffer(1)))!=rr||T&&I(new T)!=Qe||ot&&I(ot.resolve())!=Ve||S&&I(new S)!=tr||k&&I(new k)!=er)I=function(t){var e=et(t),r=e==vi?t.constructor:void 0,o=r?_(r):"";if(o)switch(o){case Oi:return rr;case Ai:return Qe;case Ti:return Ve;case wi:return tr;case Si:return er}return e};var mt=I;var Pi=be.Uint8Array,yr=Pi;var Ci="__lodash_hash_undefined__";function Ei(t){return this.__data__.set(t,Ci),this}var or=Ei;function Ii(t){return this.__data__.has(t)}var ar=Ii;function at(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}at.prototype.add=at.prototype.push=or;at.prototype.has=ar;var it=at;function Li(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var ir=Li;function ji(t,e){return t.has(e)}var nt=ji;var Mi=1,Ni=2;function Di(t,e,r,o,a,f){var i=r&Mi,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,y=r&Ni?new it:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var v=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(v!==void 0){if(v)continue;m=!1;break}if(y){if(!ir(e,function(P,C){if(!nt(y,C)&&(h===P||a(h,P,r,o,f)))return y.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var st=Di;function Ri(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var nr=Ri;function Fi(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=Fi;var Bi=1,Gi=2,Ui="[object Boolean]",zi="[object Date]",Wi="[object Error]",Ki="[object Map]",Hi="[object Number]",qi="[object RegExp]",$i="[object Set]",ki="[object String]",Yi="[object Symbol]",Xi="[object ArrayBuffer]",Zi="[object DataView]",sr=Oe?Oe.prototype:void 0,Ot=sr?sr.valueOf:void 0;function Ji(t,e,r,o,a,f,i){switch(r){case Zi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Xi:if(t.byteLength!=e.byteLength||!f(new yr(t),new yr(e)))return!1;return!0;case Ui:case zi:case Hi:return Ct(+t,+e);case Wi:return t.name==e.name&&t.message==e.message;case qi:case ki:return t==e+"";case Ki:var n=nr;case $i:var s=o&Bi;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=Gi,i.set(t,e);var d=st(n(t),n(e),o,a,f,i);return i.delete(t),d;case Yi:if(Ot)return Ot.call(t)==Ot.call(e)}return!1}var ur=Ji;var Qi=1,Vi=Object.prototype,tn=Vi.hasOwnProperty;function en(t,e,r,o,a,f){var i=r&Qi,n=Gr(t),s=n.length,p=Gr(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:tn.call(e,m)))return!1}var y=f.get(t),h=f.get(e);if(y&&h)return y==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var v=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var wt=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(wt===void 0?P===C||a(P,C,r,o,f):wt)){c=!1;break}v||(v=m=="constructor")}if(c&&!v){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var lr=en;var rn=1,dr="[object Arguments]",cr="[object Array]",lt="[object Object]",on=Object.prototype,_r=on.hasOwnProperty;function an(t,e,r,o,a,f){var i=Y(t),n=Y(e),s=i?cr:mt(t),p=n?cr:mt(e);s=s==dr?lt:s,p=p==dr?lt:p;var d=s==lt,l=p==lt,m=s==p;if(m&&St(t)){if(!St(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new Zt),i||kn(t)?st(t,e,r,o,a,f):ur(t,e,s,r,o,a,f);if(!(r&rn)){var y=d&&_r.call(t,"__wrapped__"),h=l&&_r.call(e,"__wrapped__");if(y||h){var c=y?t.value():t,v=h?e.value():e;return f||(f=new Zt),a(c,v,r,o,f)}}if(!m)return!1;return f||(f=new Zt),lr(t,e,r,o,a,f)}var Or=an;function Ar(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!Ee(t)&&!Ee(e))return t!==t&&e!==e;return Or(t,e,r,o,Ar,a)}var dt=Ar;var fn=1,nn=2;function sn(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new Zt;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?dt(d,p,fn|nn,o,l):m))return!1}}return!0}var Tr=sn;function pn(t){return t===t&&!me(t)}var xt=pn;function un(t){var e=xe(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,xt(a)]}return e}var wr=un;function mn(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var ht=mn;function ln(t){var e=wr(t);if(e.length==1&&e[0][2])return ht(e[0][0],e[0][1]);return function(r){return r===t||Tr(r,t,e)}}var Sr=ln;function dn(t,e){return t!=null&&e in Object(t)}var Pr=dn;function hn(t,e,r){e=Cn(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=Yt(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&bn(i,a)&&(Y(t)||$t(t))}var Ea=hn;function cn(t,e){return t!=null&&Ea(t,e,Pr)}var Aa=cn;var gn=1,yn=2;function vn(t,e){if(M(t)&&xt(e))return ht(Yt(t),e);return function(r){var o=Ge(r,t);return o===void 0&&o===e?Aa(r,t):dt(e,o,gn|yn)}}var Cr=vn;function On(t){return function(e){return e==null?void 0:e[t]}}var Ra=On;function An(t){return function(e){return Sn(e,t)}}var Er=An;function Pn(t){return M(t)?Ra(Yt(t)):Er(t)}var Ir=Pn;function En(t){if(typeof t=="function")return t;if(t==null)return ct;if(typeof t=="object")return Y(t)?Cr(t[0],t[1]):Sr(t);return Ir(t)}var Ye=En;function In(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var Lr=In;var Ln=Lr(),vr=Ln;function jn(t,e){return t&&vr(t,e,xe)}var br=jn;function Mn(t,e){return function(r,o){if(r==null)return r;if(!$e(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var jr=Mn;var Nn=jr(br),Tn=Nn;function Dn(t){return Ee(t)&&$e(t)}var La=Dn;function Rn(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var Mr=Rn;function Fn(t){return typeof t=="function"?t:ct}var xr=Fn;function Bn(t,e){var r=Y(t)?ba:Tn;return r(t,xr(e))}var g=Bn;function Gn(t,e){var r=[];return Tn(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var Nr=Gn;function Un(t,e){var r=Y(t)?V:Nr;return r(t,Ye(e,3))}var tt=Un;function zn(t,e){return Wt(e,function(r){return t[r]})}var Dr=zn;function Wn(t){return t==null?[]:Dr(t,xe(t))}var ft=Wn;var Kn="[object Map]",Hn="[object Set]",qn=Object.prototype,$n=qn.hasOwnProperty;function Yn(t){if(t==null)return!0;if($e(t)&&(Y(t)||typeof t=="string"||typeof t.splice=="function"||St(t)||kn(t)||$t(t)))return!t.length;var e=mt(t);if(e==Kn||e==Hn)return!t.size;if(_n(t))return!mr(t).length;for(var r in t)if($n.call(t,r))return!1;return!0}var gt=Yn;function Xn(t){return t===void 0}var _e=Xn;function Zn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var Rr=Zn;function Jn(t,e,r){var o=Y(t)?Ke:Rr,a=arguments.length<3;return o(t,Ye(e,4),r,a,Tn)}var Xt=Jn;var Qn=1/0,Vn=!(S&&1/B(new S([,-0]))[1]==Qn)?qt:function(t){return new S(t)},Fr=Vn;var ts=200;function es(t,e,r){var o=-1,a=ee,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=Mr;else if(f>=ts){var p=e?null:Fr(t);if(p)return B(p);i=!1,a=nt,s=new it}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var Br=es;var rs=xn(function(t){return Br(hr(t,1,La,!0))}),At=rs;var as="\x00",L="\x00",Ur="\x01";class ae{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=ut(void 0),this._defaultEdgeLabelFn=ut(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!Gt(t))t=ut(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return xe(this._nodes)}sources(){var t=this;return tt(this.nodes(),function(e){return gt(t._in[e])})}sinks(){var t=this;return tt(this.nodes(),function(e){return gt(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return g(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],g(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];g(xe(this._in[t]),e),delete this._in[t],delete this._preds[t],g(xe(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(_e(e))e=L;else{e+="";for(var r=e;!_e(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(_e(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return xe(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return xe(e)}successors(t){var e=this._sucs[t];if(e)return xe(e)}neighbors(t){var e=this.predecessors(t);if(e)return At(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;g(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),g(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)g(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!Gt(t))t=ut(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return ft(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return Xt(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!_e(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!_e(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=fs(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,zr(this._preds[e],t),zr(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?Tt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?Tt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?Tt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],Wr(this._preds[e],t),Wr(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=ft(r);if(!e)return o;return tt(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=ft(r);if(!e)return o;return tt(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}ae.prototype._nodeCount=0;ae.prototype._edgeCount=0;function zr(t,e){if(t[e])t[e]++;else t[e]=1}function Wr(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+Ur+f+Ur+(_e(o)?as:o)}function fs(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function Tt(t,e){return z(t,e.v,e.w,e.name)}
|
|
2
|
+
export{be,Oe,et,Ee,pt,Wt,Y,me,ct,Gt,ut,pr,va,ba,xa,bn,Ct,_a,xn,$e,_n,$t,St,wn,Ht,kn,wa,ka,mr,xe,Ca,Cn,Yt,Sn,fr,hr,Zt,Sa,gr,Ta,Gr,mt,yr,Ea,Aa,Ra,Ye,vr,br,Tn,La,xr,g,tt,ft,_e,Xt,ae};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t,jn,p,Zn}from"./chunk-
|
|
2
|
-
export{on,
|
|
1
|
+
import{t,jn,p,Zn}from"./chunk-h8mhnze5.js";import{Ce}from"./chunk-bcp6na49.js";var o=Ce(Zn(),1);var on=t((s,e)=>{let r=s.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name)r.attr("name",e.name);if(e.rx)r.attr("rx",e.rx);if(e.ry)r.attr("ry",e.ry);if(e.attrs!==void 0)for(let a in e.attrs)r.attr(a,e.attrs[a]);if(e.class)r.attr("class",e.class);return r},"drawRect"),Hr=t((s,e)=>{let r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};on(s,r).lower()},"drawBackgroundRect"),ho=t((s,e)=>{let r=e.text.replace(jn," "),a=s.append("text");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("class","legend"),a.style("text-anchor",e.anchor),e.class)a.attr("class",e.class);let i=a.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),a},"drawText"),Ia=t((s,e,r,a)=>{let i=s.append("image");i.attr("x",e),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",n)},"drawImage"),Da=t((s,e,r,a)=>{let i=s.append("use");i.attr("x",e),i.attr("y",r);let n=o.sanitizeUrl(a);i.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),nt=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Na=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Ft=t(()=>{let s=p(".mermaidTooltip");if(s.empty())s=p("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return s},"createTooltip");
|
|
2
|
+
export{on,Hr,ho,Ia,Da,nt,Na,Ft};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di}from"./chunk-tfsrk2rc.js";export{Di as createWardleyServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,a}from"./chunk-
|
|
1
|
+
import{t,a}from"./chunk-h8mhnze5.js";import{ee,Dt,Nt}from"./chunk-qgzn0ha5.js";import{H}from"./chunk-85d7jkp0.js";import{cr,wt}from"./chunk-tfsrk2rc.js";var i=cr().RailroadPeg.parser.LangiumParser,s=t((e)=>{let r=e.alternatives.map(l);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformOrderedChoice"),l=t((e)=>{let r=e.elements.map(m);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),m=t((e)=>{let r=p(e.suffix);if(!e.operator)return r;return{type:"special",text:e.operator==="&"?`&${o(r)}`:`!${o(r)}`}},"transformPrefix"),o=t((e)=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),p=t((e)=>{let r=u(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),u=t((e)=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return s(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),c=t((e)=>({name:e.name,definition:s(e.definition)}),"transformRule"),f=t((e)=>{if(H(e,ee),e.title)ee.setTitle(e.title);e.rules.map((r)=>ee.addRule(c(r)))},"populateDb"),d={parse:t((e)=>{ee.clear(),a.debug("[PEG Parser] Starting Langium parse");let r=i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new wt(r);let n=r.value;a.debug("[PEG Parser] Parsed rules:",n.rules.length),f(n),a.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:ee}},w={parser:d,db:ee,renderer:Nt,styles:Dt};export{w as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,m,e,n,y,s,te,
|
|
1
|
+
import{r,m,e,n,y,s,te,Z,U,Qe}from"./chunk-bcp6na49.js";var z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],h=s("circle-slash",z);function B(t){if(!t||typeof t!=="object")return;if(!("id"in t)||typeof t.id!=="string")return;if(!("state"in t)||typeof t.state!=="string")return;return{id:t.id,state:t.state,command:"command"in t&&typeof t.command==="string"?t.command:void 0,code:"code"in t&&(t.code===null||typeof t.code==="number")?t.code:void 0,output:"output"in t&&typeof t.output==="string"?t.output:void 0}}function E(t){let{Button:N,Panel:b,style:k}=y(),i=B(t.payload),[a,c]=r(!1),[C,P]=r(!1),[u,d]=r();if(!i)return null;let o=C?"killed":i.state,l=o==="running",f=o==="exited"&&i.code===0,p=o==="killed"||o==="timeout",g=i.output?.trim(),I=async()=>{if(a)return;c(!0),d(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(i.id)}/kill`,{method:"POST"}),P(!0)}catch(x){d(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{c(!1)}};return n(b,{className:"my-2",header:n(m,{children:[e(Qe,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:i.command??i.id,children:i.command??`任务 ${i.id}`})]}),actions:n(m,{children:[l&&n(m,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(Z,{className:"size-3.5 animate-spin"}),e("span",{children:"后台运行中"})]}),e(N,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:a,onClick:()=>{I()},children:"停止"})]}),f&&n("span",{className:"flex items-center gap-1 text-success",children:[e(U,{className:"size-3.5"}),e("span",{children:"已完成"})]}),p&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(h,{className:"size-3.5"}),e("span",{children:o==="timeout"?"已超时":"已停止"})]}),!l&&!f&&!p&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(te,{className:"size-3.5"}),n("span",{children:["退出码 ",i.code??"异常"]})]})]}),children:[u&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:u}),g&&e("pre",{className:k("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:g})]})}export{E as BashJobCard};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$o}from"./chunk-bcp6na49.js";export{$o as QuestionDock};
|
package/web/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<link rel="icon" href="./icon-1wgy7kzy.svg" type="image/svg+xml" />
|
|
16
16
|
<link rel="apple-touch-icon" href="./apple-touch-icon-7dkm33qp.png" />
|
|
17
17
|
|
|
18
|
-
<link rel="stylesheet" crossorigin href="./chunk-
|
|
18
|
+
<link rel="stylesheet" crossorigin href="./chunk-vh8pkcem.css"><script type="module" crossorigin src="./chunk-bcp6na49.js"></script></head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|
|
21
21
|
|
package/web/sw.js
CHANGED
|
@@ -21,6 +21,22 @@ self.addEventListener("activate", (event) => {
|
|
|
21
21
|
)
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
+
// 代码块请求遇到网络错误或网关错误(经隧道访问时本机暂时连不上会返回 502/503/504)时的重试间隔。
|
|
25
|
+
// 必须在这里重试:页面里 import 失败过的模块地址会被浏览器记住,之后再 import 不会重新请求,只能刷新页面。
|
|
26
|
+
// 404 不重试:那是服务端已升级、旧代码块不存在了,交给页面提示刷新。
|
|
27
|
+
const CHUNK_RETRY_DELAYS_MS = [500, 1000, 2000]
|
|
28
|
+
|
|
29
|
+
async function fetchChunk(request) {
|
|
30
|
+
for (const delay of CHUNK_RETRY_DELAYS_MS) {
|
|
31
|
+
try {
|
|
32
|
+
const response = await fetch(request)
|
|
33
|
+
if (![502, 503, 504].includes(response.status)) return response
|
|
34
|
+
} catch {}
|
|
35
|
+
await new Promise((resolve) => setTimeout(resolve, delay))
|
|
36
|
+
}
|
|
37
|
+
return fetch(request)
|
|
38
|
+
}
|
|
39
|
+
|
|
24
40
|
function isImmutableChunk(pathname) {
|
|
25
41
|
return /^\/chunk-[a-z0-9]+\.(js|css)$/i.test(pathname) || /-[a-z0-9]{8}\.(woff2|png|svg|webmanifest)$/i.test(pathname)
|
|
26
42
|
}
|
|
@@ -69,7 +85,7 @@ self.addEventListener("fetch", (event) => {
|
|
|
69
85
|
(async () => {
|
|
70
86
|
const cached = await caches.match(request)
|
|
71
87
|
if (cached) return cached
|
|
72
|
-
const response = await
|
|
88
|
+
const response = await fetchChunk(request)
|
|
73
89
|
if (response.ok) {
|
|
74
90
|
const cache = await caches.open(CACHE_NAME)
|
|
75
91
|
void cache.put(request, response.clone())
|
package/web/chunk-15g9pnzy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{or}from"./chunk-p4pqtybm.js";export{or as createRailroadEbnfServices};
|
package/web/chunk-19tkjg9w.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Pi}from"./chunk-p4pqtybm.js";export{Pi as createArchitectureServices};
|
package/web/chunk-26sp6jre.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di}from"./chunk-p4pqtybm.js";export{Di as createPacketServices};
|
package/web/chunk-2s3my1jn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ii}from"./chunk-p4pqtybm.js";export{Ii as createInfoServices};
|
package/web/chunk-4qehf2xx.js
DELETED
package/web/chunk-6481wt3t.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{sr}from"./chunk-p4pqtybm.js";export{sr as createRailroadAbnfServices};
|
package/web/chunk-6ehecat3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tr}from"./chunk-hbwxtbq3.js";export{tr as default};
|
package/web/chunk-6m8hq6ph.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{oo,Mo,so,Po,Oo,lo}from"./chunk-j6wcszxq.js";import"./chunk-2c7kxr4v.js";import"./chunk-tdzh6nsz.js";import"./chunk-zsat72qd.js";export{Mo as applyDagreLayoutResult,oo as getEdgesToRender,Po as measureDagreLayout,so as prepareLayoutForDagre,lo as render,Oo as runDagreLayoutCore};
|
package/web/chunk-73941p08.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fi}from"./chunk-25sn840r.js";export{fi as default};
|
package/web/chunk-8zg89764.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{mi}from"./chunk-7wzszsf5.js";export{mi as default};
|
package/web/chunk-9vrp249f.js
DELETED
package/web/chunk-dcegr80c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Oi}from"./chunk-p4pqtybm.js";export{Oi as createEventModelingServices};
|
package/web/chunk-g7bcntpm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ki}from"./chunk-pafw34vg.js";export{ki as default};
|
package/web/chunk-gr1tjqbd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ai}from"./chunk-p4pqtybm.js";export{Ai as createWardleyServices};
|
package/web/chunk-j031r08w.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{pi}from"./chunk-7zfqppsx.js";export{pi as default};
|
package/web/chunk-jge7nn3s.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ti}from"./chunk-p4pqtybm.js";export{Ti as createRadarServices};
|
package/web/chunk-jy8zat04.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ci}from"./chunk-jdx7qp2w.js";export{Ci as default};
|
package/web/chunk-k8s7kye3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Si}from"./chunk-hdtvrh0f.js";export{Si as default};
|
package/web/chunk-k9zn1n6d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{da}from"./chunk-qv1w36ja.js";export{da as default};
|
package/web/chunk-kg3tksv7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lr}from"./chunk-p4pqtybm.js";export{lr as createRailroadPegServices};
|
package/web/chunk-md9j949p.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wi}from"./chunk-k4qrqmdk.js";export{wi as default};
|
package/web/chunk-nk7jkpam.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ni}from"./chunk-p4pqtybm.js";export{Ni as createPieServices};
|
package/web/chunk-nmvt1rn3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ir}from"./chunk-p4pqtybm.js";export{ir as createRailroadServices};
|