offsite 0.0.35 → 0.0.36
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/apps/server/dist/main.mjs +180 -57
- package/apps/server/dist/main.mjs.map +1 -1
- package/apps/server/drizzle/20261021070005_project_positions/migration.sql +3 -0
- package/apps/server/drizzle/20261021070005_project_positions/snapshot.json +315 -0
- package/apps/web/dist/assets/abnfDiagram-WEYOIA3C-CNZkoxwt.js +1 -0
- package/apps/web/dist/assets/arc-DgcGdgmL.js +1 -0
- package/apps/web/dist/assets/architecture-WOLXFQ4H-O--ui1FL.js +1 -0
- package/apps/web/dist/assets/architectureDiagram-ZHVYKT53-Bt5qygpd.js +36 -0
- package/apps/web/dist/assets/array-BifhSqXX.js +1 -0
- package/apps/web/dist/assets/{audio-player-DPpDuqFI.js → audio-player-BBuXiV2_.js} +1 -1
- package/apps/web/dist/assets/blockDiagram-RJAE7QA3-BDcALlM7.js +140 -0
- package/apps/web/dist/assets/button-BF3wjXXJ.js +1 -0
- package/apps/web/dist/assets/c4Diagram-XDPPPE54-DltmZnfl.js +38 -0
- package/apps/web/dist/assets/channel-BiaErSWu.js +1 -0
- package/apps/web/dist/assets/chunk-24IY7LWP-BnbC-kCW.js +1 -0
- package/apps/web/dist/assets/chunk-2E7WHVMD-DI9Z3LRJ.js +88 -0
- package/apps/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/apps/web/dist/assets/chunk-3M4EKCLJ-DOMgvaXT.js +1 -0
- package/apps/web/dist/assets/chunk-4EMNKR2T-Bmu5iPEB.js +1 -0
- package/apps/web/dist/assets/chunk-4S7OKTRW-Bg7nzAWG.js +1 -0
- package/apps/web/dist/assets/chunk-53FOQ5SW-f76P46nL.js +1 -0
- package/apps/web/dist/assets/chunk-55XCU76K-DsrsQaHP.js +1 -0
- package/apps/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/apps/web/dist/assets/chunk-7S6XSTFO-VvdR34BD.js +2 -0
- package/apps/web/dist/assets/chunk-AQDTSKZB-DWCLLcEu.js +72 -0
- package/apps/web/dist/assets/chunk-BP2KR52E-CwyHPMMJ.js +2 -0
- package/apps/web/dist/assets/chunk-DSNLSHJZ-Npz5XPWZ.js +129 -0
- package/apps/web/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/apps/web/dist/assets/chunk-EJLWFMJV-DyjKClu9.js +2 -0
- package/apps/web/dist/assets/chunk-F6S3BTY2-CZGFqKcE.js +2 -0
- package/apps/web/dist/assets/chunk-HAGFOTED-B1IVU9Z4.js +62 -0
- package/apps/web/dist/assets/chunk-HNE4Q36P-ByoLUQMm.js +1 -0
- package/apps/web/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/apps/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/apps/web/dist/assets/chunk-KPI5JJXK-CYaUTtMz.js +1 -0
- package/apps/web/dist/assets/chunk-LNGE3PJU-Cz3NAIRA.js +34 -0
- package/apps/web/dist/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
- package/apps/web/dist/assets/chunk-NQOKRVIF-B4RCKBlg.js +213 -0
- package/apps/web/dist/assets/chunk-OD3NTWWA-tWtUB_cI.js +1 -0
- package/apps/web/dist/assets/chunk-OYAV6JZA-rT8O_-D6.js +1 -0
- package/apps/web/dist/assets/chunk-QNH66VMT-BbxTKInC.js +1 -0
- package/apps/web/dist/assets/chunk-TPMEZKFX-mvOucSjo.js +1 -0
- package/apps/web/dist/assets/chunk-UHW7PFBP-Cu9Ayl_R.js +1 -0
- package/apps/web/dist/assets/chunk-VPELOWWC-Dw8jWE1Y.js +1 -0
- package/apps/web/dist/assets/chunk-VQ5W62QI-yc2D7bI8.js +1 -0
- package/apps/web/dist/assets/chunk-VTWWFHGB-CErZyUMc.js +1 -0
- package/apps/web/dist/assets/chunk-VZTHESGH-BsQ8KQ39.js +1 -0
- package/apps/web/dist/assets/chunk-WQQL4CDK-BAxY1EoE.js +10 -0
- package/apps/web/dist/assets/chunk-XXDRQBXY-RlzOQ08v.js +1 -0
- package/apps/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/apps/web/dist/assets/chunk-YK26KJH5-CFTvfUrJ.js +1 -0
- package/apps/web/dist/assets/chunk-YZO67HFG-B_UXK566.js +1 -0
- package/apps/web/dist/assets/chunk-ZAUX2LTX-BaD-GxqC.js +1 -0
- package/apps/web/dist/assets/chunk-ZCHMQSOR-BoFxnrLn.js +2 -0
- package/apps/web/dist/assets/chunk-ZO67DCNQ-DQMJSBMv.js +2 -0
- package/apps/web/dist/assets/classDiagram-v2-4MYWR3UA-CrgsmZ1r.js +217 -0
- package/apps/web/dist/assets/cose-bilkent-JH36ORCC-Ci-t6eKT.js +1 -0
- package/apps/web/dist/assets/cynefin-EF2NZ3EQ-B22Il0Q0.js +1 -0
- package/apps/web/dist/assets/cynefinDiagram-WF24UDRP-Boik6NMW.js +62 -0
- package/apps/web/dist/assets/cytoscape.esm-BegBNzOV.js +321 -0
- package/apps/web/dist/assets/dagre-NK4GIZVX-BSfLeunL.js +4 -0
- package/apps/web/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/apps/web/dist/assets/diagram-CBK3MWTC-BHJqlY6f.js +24 -0
- package/apps/web/dist/assets/diagram-I5XIIV2D-B_jxetms.js +24 -0
- package/apps/web/dist/assets/diagram-ODIL2UCW-DfqD5uqI.js +30 -0
- package/apps/web/dist/assets/diagram-PFBEJUXE-1aq8qGYY.js +3 -0
- package/apps/web/dist/assets/diagram-RJA3I4VV-KG9CFGTL.js +41 -0
- package/apps/web/dist/assets/diagram-TYUNFSNR-Do2jo9yU.js +200 -0
- package/apps/web/dist/assets/dist-B_J_HbC0.js +1 -0
- package/apps/web/dist/assets/dist-CkDQKgh1.js +153 -0
- package/apps/web/dist/assets/dist-CwYFZY7g.js +1 -0
- package/apps/web/dist/assets/ebnfDiagram-V4P3TTPT-D2ts5XpU.js +1 -0
- package/apps/web/dist/assets/elk-QONTBCTQ-B_GGAzMO.js +27 -0
- package/apps/web/dist/assets/erDiagram-KYQIGQAA-2dqvdzye.js +99 -0
- package/apps/web/dist/assets/eventmodeling-K75KTNOO-CXHQFMgp.js +1 -0
- package/apps/web/dist/assets/flowDiagram-IUGLLWBU-CtZHqT3f.js +1 -0
- package/apps/web/dist/assets/ganttDiagram-R7GPNTJY-BqiF1UBm.js +292 -0
- package/apps/web/dist/assets/gitGraph-VSP46ZUC-TdWHDRg-.js +1 -0
- package/apps/web/dist/assets/gitGraphDiagram-PDYL7XHY-CmG5ZO6p.js +106 -0
- package/apps/web/dist/assets/graphlib-DS17s2tU.js +1 -0
- package/apps/web/dist/assets/image-viewer-4LhMaTO_.js +1 -0
- package/apps/web/dist/assets/index-NMfUawX9.css +2 -0
- package/apps/web/dist/assets/index-yfoAg16U.js +782 -0
- package/apps/web/dist/assets/info-OHQRW6UA-vNA4W1BY.js +1 -0
- package/apps/web/dist/assets/infoDiagram-MVDRKAX5-BKX9UC-k.js +2 -0
- package/apps/web/dist/assets/init-C-OQMol4.js +1 -0
- package/apps/web/dist/assets/ishikawaDiagram-HPEHV2GE-B4qnWXRg.js +70 -0
- package/apps/web/dist/assets/journeyDiagram-BOSHW7O7-BiKpcTEm.js +139 -0
- package/apps/web/dist/assets/jsx-runtime-DKj5X9O4.js +1 -0
- package/apps/web/dist/assets/kanban-definition-FNSA4HC5-D0QGHPZw.js +89 -0
- package/apps/web/dist/assets/katex-B_JcIwqj.js +257 -0
- package/apps/web/dist/assets/line-QLqjjjjp.js +1 -0
- package/apps/web/dist/assets/linear-DzP0d4la.js +1 -0
- package/apps/web/dist/assets/mermaid-parser.core-BHOBNwvf.js +4 -0
- package/apps/web/dist/assets/mermaid.core-BvdElKsv.js +11 -0
- package/apps/web/dist/assets/mindmap-definition-6OY57UG3-BXYDkcmu.js +98 -0
- package/apps/web/dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/apps/web/dist/assets/packet-JDAUHWVQ-B8hYuedA.js +1 -0
- package/apps/web/dist/assets/path-fybaL0A-.js +1 -0
- package/apps/web/dist/assets/pegDiagram-ECIUJNBX-CKUDNsQa.js +1 -0
- package/apps/web/dist/assets/pie-XZMESJXO-Dot5dfKq.js +1 -0
- package/apps/web/dist/assets/pieDiagram-GNMPY74T-CYBpcOWI.js +39 -0
- package/apps/web/dist/assets/preload-helper-BLdHbfdN.js +1 -0
- package/apps/web/dist/assets/{preview-dialog-CPvYDNeU.js → preview-dialog-jk_R2034.js} +1 -1
- package/apps/web/dist/assets/quadrantDiagram-D57K4MC3-Ce4rstAB.js +7 -0
- package/apps/web/dist/assets/radar-ABXABTNO-B-JNDxsg.js +1 -0
- package/apps/web/dist/assets/railroad-I3PHUGI6-CZyDVcgN.js +1 -0
- package/apps/web/dist/assets/railroad-abnf-LNEFI6M7-Vj_R5cg2.js +1 -0
- package/apps/web/dist/assets/railroad-ebnf-DWYD2UWJ-CUdwkvqU.js +1 -0
- package/apps/web/dist/assets/railroad-peg-JR7BVNR7-Cx8B3Fw_.js +1 -0
- package/apps/web/dist/assets/railroadDiagram-Y72NRBL7-DJFwL-gy.js +1 -0
- package/apps/web/dist/assets/{react-BlUBLzv4.js → react-99wk3OSj.js} +1 -1
- package/apps/web/dist/assets/requirementDiagram-EQYSW5RA-BRGd7bW2.js +84 -0
- package/apps/web/dist/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
- package/apps/web/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/apps/web/dist/assets/sankeyDiagram-SY24JHO5-K6n9GTvI.js +40 -0
- package/apps/web/dist/assets/sequenceDiagram-BLEHNHQU-C5fTKXFr.js +169 -0
- package/apps/web/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/apps/web/dist/assets/src-BbHDS76q.js +1 -0
- package/apps/web/dist/assets/stateDiagram-v2-A6IESKWZ-DmuliVkN.js +291 -0
- package/apps/web/dist/assets/swimlanes-B3ENRKFQ-C6184yrk.js +1 -0
- package/apps/web/dist/assets/swimlanesDiagram-AYQRV4AK-C7v5ZG8a.js +8 -0
- package/apps/web/dist/assets/tags-DrTyXsO5.js +1 -0
- package/apps/web/dist/assets/timeline-definition-JXYKGLGB-9zgkFWSz.js +120 -0
- package/apps/web/dist/assets/tooltip-CiWlkHa6.js +1 -0
- package/apps/web/dist/assets/treeView-D4JQ5SDB-C4nFWZ36.js +1 -0
- package/apps/web/dist/assets/treemap-SAJKECNS-BtKhU7nu.js +1 -0
- package/apps/web/dist/assets/usecaseDiagram-WPOLBNNX-GhuLCvVh.js +328 -0
- package/apps/web/dist/assets/vennDiagram-Q3Y3IDCW-CkqSz3Ut.js +34 -0
- package/apps/web/dist/assets/{video-player-DsF9gAr6.js → video-player-Bcow2OC5.js} +1 -1
- package/apps/web/dist/assets/video-player-hDoAwJRk.js +1 -0
- package/apps/web/dist/assets/video-viewer-CJ129jI3.js +1 -0
- package/apps/web/dist/assets/wardley-7MLQ67FV-zgQ1s-nD.js +1 -0
- package/apps/web/dist/assets/wardleyDiagram-IVAIDKWA-CQSNfHYl.js +78 -0
- package/apps/web/dist/assets/xychartDiagram-4URNHDU4-oZoMdVOh.js +7 -0
- package/apps/web/dist/assets/zoomable-image-CZlWBm_z.js +41 -0
- package/apps/web/dist/assets/zoomable-image-DyuZJmov.js +1 -0
- package/apps/web/dist/index.html +10 -7
- package/apps/web/dist/sw.js +1 -1
- package/package.json +1 -1
- package/apps/web/dist/assets/button-B9gb3kFa.js +0 -1
- package/apps/web/dist/assets/dist-BJ6NAVkJ.js +0 -153
- package/apps/web/dist/assets/dist-DjkoGOJl.js +0 -1
- package/apps/web/dist/assets/image-viewer-Cqc2TB1C.js +0 -1
- package/apps/web/dist/assets/index-ChaRNH6C.js +0 -782
- package/apps/web/dist/assets/index-Cs6X6ieb.css +0 -2
- package/apps/web/dist/assets/jsx-runtime-D3jfb0Ew.js +0 -1
- package/apps/web/dist/assets/tooltip-CVzJHuCM.js +0 -1
- package/apps/web/dist/assets/video-player-4TBQR7ei.js +0 -1
- package/apps/web/dist/assets/video-viewer-DAKoRaNT.js +0 -1
- package/apps/web/dist/assets/zoomable-image-8K4_Vqt3.js +0 -41
- package/apps/web/dist/assets/zoomable-image-DKc1MmY3.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function t(){}function n(t){return e.Buffer!==void 0&&e.Buffer.isBuffer(t)}function r(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function i(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var a=`[object RegExp]`,o=`[object String]`,s=`[object Number]`,c=`[object Boolean]`,l=`[object Arguments]`,u=`[object Symbol]`,d=`[object Date]`,f=`[object Map]`,p=`[object Set]`,m=`[object Array]`,h=`[object Function]`,g=`[object ArrayBuffer]`,_=`[object Object]`,v=`[object Error]`,y=`[object DataView]`,b=`[object Uint8Array]`,x=`[object Uint8ClampedArray]`,S=`[object Uint16Array]`,C=`[object Uint32Array]`,w=`[object BigUint64Array]`,T=`[object Int8Array]`,E=`[object Int16Array]`,D=`[object Int32Array]`,O=`[object BigInt64Array]`,k=`[object Float32Array]`,A=`[object Float64Array]`;export{t as A,S as C,i as D,x as E,r as O,u as S,b as T,s as _,w as a,p as b,d as c,A as d,h as f,f as g,T as h,O as i,n as k,v as l,D as m,g as n,c as o,E as p,m as r,y as s,l as t,k as u,_ as v,C as w,o as x,a as y};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import{m as e}from"./chunk-7S6XSTFO-VvdR34BD.js";import{n as t,t as n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r,p as i}from"./src-BbHDS76q.js";import{Y as a,a as o,b as s,it as c,nt as l,o as u,tt as d,y as f}from"./chunk-DSNLSHJZ-Npz5XPWZ.js";import{t as p}from"./arc-DgcGdgmL.js";import{t as m}from"./chunk-OYAV6JZA-rT8O_-D6.js";import{i as h,n as g}from"./chunk-J5ZVWO5B-oDCd-gWO.js";var _=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return t(d,`Parser`),d.prototype=u,u.Parser=d,new d})();_.parser=_;var v=_,y={};n(y,{addEvent:()=>P,addSection:()=>A,addTask:()=>N,addTaskOrg:()=>F,clear:()=>D,default:()=>ee,getCommonDb:()=>E,getDirection:()=>k,getSections:()=>j,getTasks:()=>M,setDirection:()=>O});var b=``,x=0,S=`LR`,C=[],w=[],T=[],E=t(()=>u,`getCommonDb`),D=t(function(){C.length=0,w.length=0,b=``,T.length=0,S=`LR`,o()},`clear`),O=t(function(e){S=e},`setDirection`),k=t(function(){return S},`getDirection`),A=t(function(e){b=e,C.push(e)},`addSection`),j=t(function(){return C},`getSections`),M=t(function(){let e=I(),t=0;for(;!e&&t<100;)e=I(),t++;return w.push(...T),w},`getTasks`),N=t(function(e,t,n){let r={id:x++,section:b,type:b,task:e,score:t||0,events:n?[n]:[]};T.push(r)},`addTask`),P=t(function(e){T.find(e=>e.id===x-1).events.push(e)},`addEvent`),F=t(function(e){let t={section:b,type:b,description:e,task:e,classes:[]};w.push(t)},`addTaskOrg`),I=t(function(){let e=t(function(e){return T[e].processed},`compileTask`),n=!0;for(let[t,r]of T.entries())e(t),n&&=r.processed;return n},`compileTasks`),ee={clear:D,getCommonDb:E,getDirection:k,setDirection:O,addSection:A,getSections:j,getTasks:M,addTask:N,addTaskOrg:F,addEvent:P},L=0,R=t(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),te=t(function(e,n){let r=e.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),i=e.append(`g`);i.append(`circle`).attr(`cx`,n.cx-5).attr(`cy`,n.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),i.append(`circle`).attr(`cx`,n.cx+5).attr(`cy`,n.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(e){let t=p().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}t(a,`smile`);function o(e){let t=p().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}t(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return t(s,`ambivalent`),n.score>3?a(i):n.score<3?o(i):s(i),r},`drawFace`),ne=t(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),z=t(function(e,t){let n=t.text.replace(/<br\s*\/?>/gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),re=t(function(e,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}t(r,`genPoints`);let i=e.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,z(e,n)},`drawLabel`),ie=t(function(e,t,n){let r=e.append(`g`),i=V();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,R(r,i),H(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),B=-1,ae=t(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);B++,a.append(`line`).attr(`id`,r+`-task`+B).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),te(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=V();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,R(a,o),H(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),oe=t(function(e,t){R(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),se=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),V=t(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),H=(function(){function e(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,r).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(p,s)}}t(n,`byTspan`);function r(e,t,r,a,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,a,o,s,c,l),i(d,c)}t(r,`byFo`);function i(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return t(i,`_setTextAttrs`),function(t){return t.textPlacement===`fo`?r:t.textPlacement===`old`?e:n}})(),ce=t(function(e,t){L=0,B=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,5).attr(`refY`,2).attr(`markerWidth`,6).attr(`markerHeight`,4).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0,0 V 4 L6,2 Z`)},`initGraphics`);function U(e,t){e.each(function(){var e=i(this),n=e.text().split(/(\s+|<br>)/).reverse(),r,a=[],o=1.1,s=e.attr(`y`),c=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,c+`em`);for(let i=0;i<n.length;i++)r=n[n.length-1-i],a.push(r),l.text(a.join(` `).trim()),(l.node().getComputedTextLength()>t||r===`<br>`)&&(a.pop(),l.text(a.join(` `).trim()),a=r===`<br>`?[``]:[r],l=e.append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,o+`em`).text(r))})}t(U,`wrap`);var le=t(function(e,t,n,r,a,o=!1){let{theme:s,look:c}=r,l=s?.includes(`redux`),u=n%(r?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=e.append(`g`);t.section=u,d.attr(`class`,(t.class?t.class+` `:``)+`timeline-node `+(`section-`+u));let f=d.append(`g`),p=d.append(`g`),m=p.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(U,t.width).node().getBBox(),h=r.fontSize?.replace?r.fontSize.replace(`px`,``):r.fontSize;if(t.height=m.height+h*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,p.attr(`transform`,`translate(`+t.width/2+`, `+t.padding/2+`)`),l&&p.attr(`transform`,`translate(${t.width/2}, ${o?t.padding/2+3:t.padding})`),de(f,t,u,a,r),c===`neo`&&(d.attr(`data-look`,`neo`),l)){let t=s.includes(`dark`),n=e.node()?.ownerSVGElement??e.node(),r=i(n),a=r.attr(`id`)??``,o=a?`${a}-drop-shadow`:`drop-shadow`;if(r.select(`#${o}`).empty()){let e=r.select(`defs`);(e.empty()?r.append(`defs`):e).append(`filter`).attr(`id`,o).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,t?`0.2`:`0.06`).attr(`flood-color`,t?`#FFFFFF`:`#000000`)}}return t},`drawNode`),ue=t(function(e,t,n){let r=e.append(`g`),i=r.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(U,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace(`px`,``):n.fontSize;return r.remove(),i.height+a*1.1*.5+t.padding},`getVirtualNodeHeight`),de=t(function(e,t,n,r,i){let{theme:a}=i,o=a?.includes(`redux`)?0:5,s=o>0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+L++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),W={drawRect:R,drawCircle:ne,drawSection:ie,drawText:z,drawLabel:re,drawTask:ae,drawBackgroundRect:oe,getTextObj:se,getNoteRect:V,initGraphics:ce,drawNode:le,getVirtualNodeHeight:ue},fe=t(function(e,t,n,o){let c=s(),{look:l,theme:u,themeVariables:d}=c,{useGradient:f,gradientStart:p,gradientStop:m}=d,h=c.timeline?.leftMargin??50;r.debug(`timeline`,o.db);let g=c.securityLevel,_;g===`sandbox`&&(_=i(`#i`+t));let v=i(g===`sandbox`?_.nodes()[0].contentDocument.body:`body`).select(`#`+t);v.append(`g`);let y=o.db.getTasks(),b=o.db.getCommonDb().getDiagramTitle();r.debug(`task`,y),W.initGraphics(v,t);let x=o.db.getSections();r.debug(`sections`,x);let S=0,C=0,w=0,T=0,E=50+h,D=50;T=50;let O=0,k=!0;x.forEach(function(e){let t={number:O,descr:e,section:O,width:150,padding:20,maxHeight:S},n=W.getVirtualNodeHeight(v,t,c);r.debug(`sectionHeight before draw`,n),S=Math.max(S,n+20)});let A=0,j=0;r.debug(`tasks.length`,y.length);for(let[e,t]of y.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:C},i=W.getVirtualNodeHeight(v,n,c);r.debug(`taskHeight before draw`,i),C=Math.max(C,i+20),A=Math.max(A,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=W.getVirtualNodeHeight(v,n,c)}t.events.length>0&&(a+=(t.events.length-1)*10),j=Math.max(j,a)}r.debug(`maxSectionHeight before draw`,S),r.debug(`maxTaskHeight before draw`,C),x&&x.length>0?x.forEach(e=>{let n=y.filter(t=>t.section===e),i={number:O,descr:e,section:O,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:S};r.debug(`sectionNode`,i);let a=v.append(`g`),o=W.drawNode(a,i,O,c,t);r.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${E}, ${T})`),D+=S+50,n.length>0&&G(v,n,O,E,D,C,c,A,j,S,!1,t),E+=200*Math.max(n.length,1),D=T,O++}):(k=!1,G(v,y,O,E,D,C,c,A,j,S,!0,t));let M=v.node().getBBox();if(r.debug(`bounds`,M),b&&v.append(`text`).text(b).attr(`x`,l===`neo`?M.x*2+h:M.width/2-h).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),w=k?S+C+150:C+100,v.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,h).attr(`y1`,w).attr(`x2`,M.width+3*h).attr(`y2`,w).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),l===`neo`&&f&&u!==`neutral`){let e=v.select(`defs`),t=(e.empty()?v.append(`defs`):e).append(`linearGradient`).attr(`id`,v.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,p).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,m).attr(`stop-opacity`,1)}a(void 0,v,c.timeline?.padding??50,c.timeline?.useMaxWidth??!1)},`draw`),G=t(function(e,t,n,i,a,o,s,c,l,u,d,f){for(let c of t){let t={descr:c.task,section:n,number:n,width:150,padding:20,maxHeight:o};r.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=W.drawNode(u,t,n,s,f).height;if(r.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${i}, ${a})`),o=Math.max(o,p),c.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),r=o;a+=100,r+=pe(e,c.events,n,i,a,s,f),a-=100,t.append(`line`).attr(`x1`,i+95).attr(`y1`,a+o).attr(`x2`,i+95).attr(`y2`,a+o+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}i+=200,d&&!s.timeline?.disableMulticolor&&n++}a-=10},`drawTasks`),pe=t(function(e,t,n,i,a,o,s){let c=0,l=a;a+=100;for(let l of t){let t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};r.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=W.drawNode(u,t,n,o,s,!0).height;c+=d,u.attr(`transform`,`translate(${i}, ${a})`),a=a+10+d}return a=l,c},`drawEvents`),me={setConf:t(()=>{},`setConf`),draw:fe},K=200,q=5,he=K+q*2,J=K+100,ge=J+q*2,Y=10,_e=0,X=20,Z=20,Q=30,$=50,ve=t(function(t,n,i,o){let c=s(),l=c.timeline?.leftMargin??50;r.debug(`timeline`,o.db);let u=m(n);u.append(`g`);let d=o.db.getTasks(),f=o.db.getCommonDb().getDiagramTitle();r.debug(`task`,d),W.initGraphics(u);let p=o.db.getSections();r.debug(`sections`,p);let h=0,g=0,_=50+l,v=50,y=v,b=_,x=he+Z,S=ge+$,C=b+x,w=0,T=p&&p.length>0,E=T?C:_+x,D=Math.max(50,x+S-q*2);p.forEach(function(e){let t={number:w,descr:e,section:w,width:D,padding:q,maxHeight:h},n=W.getVirtualNodeHeight(u,t,c);r.debug(`sectionHeight before draw`,n),h=Math.max(h,n)});let O=0;r.debug(`tasks.length`,d.length);for(let[e,t]of d.entries()){let n={number:e,descr:t,section:t.section,width:K,padding:q,maxHeight:g},i=W.getVirtualNodeHeight(u,n,c);r.debug(`taskHeight before draw`,i),g=Math.max(g,i);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:J,padding:q,maxHeight:50};a+=W.getVirtualNodeHeight(u,n,c)}t.events.length>0&&(a+=(t.events.length-1)*Y),O=Math.max(O,a)+_e}r.debug(`maxSectionHeight before draw`,h),r.debug(`maxTaskHeight before draw`,g);let k=Math.max(g,O)+Q;T?p.forEach(e=>{let t=d.filter(t=>t.section===e),n={number:w,descr:e,section:w,width:D,padding:q,maxHeight:h};r.debug(`sectionNode`,n);let i=u.append(`g`),a=W.drawNode(i,n,w,c);r.debug(`sectionNode output`,a);let o=E-x;i.attr(`transform`,`translate(${o}, ${v})`);let s=v+a.height+X;t.length>0&&ye(u,t,w,E,s,g,c,k,!1);let l=t.length,f=a.height+X+k*Math.max(l,1)-(l>0?Q*2:0);v+=f,w++}):ye(u,d,w,E,v,g,c,k,!0);let A=u.node()?.getBBox();if(!A)throw Error(`bbox not found`);if(r.debug(`bounds`,A),f){if(u.append(`text`).text(f).attr(`x`,A.width/2-l).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),A=u.node()?.getBBox(),!A)throw Error(`bbox not found`);r.debug(`bounds after title`,A)}let[j]=e(c.fontSize),M=(j??16)*2,N=(j??16)*.5+20,P=u.append(`g`).attr(`class`,`lineWrapper`);P.append(`line`).attr(`x1`,E).attr(`y1`,y-M).attr(`x2`,E).attr(`y2`,A.y+A.height+N).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),P.lower(),a(void 0,u,c.timeline?.padding??50,c.timeline?.useMaxWidth??!1)},`draw`),ye=t(function(e,t,n,i,a,o,s,c,l){for(let u of t){let t={descr:u.task,section:n,number:n,width:K,padding:q,maxHeight:o};r.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=W.drawNode(d,t,n,s),p=f.height;r.debug(`taskHeight after draw`,p);let m=i-Z-f.width;if(d.attr(`transform`,`translate(${m}, ${a})`),o=Math.max(o,p),u.events&&u.events.length>0){let t=a,r=i+$;be(e,u.events,n,i,r,t,s)}a+=c,l&&!s.timeline?.disableMulticolor&&n++}},`drawTasks`),be=t(function(e,t,n,i,a,o,s){let c=o;for(let o of t){let t={descr:o,section:n,number:n,width:J,padding:q,maxHeight:0};r.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=W.drawNode(l,t,n,s).height;l.attr(`transform`,`translate(${a}, ${c})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=c+u/2;d.append(`line`).attr(`x1`,i).attr(`y1`,f).attr(`x2`,a).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),c=c+u+Y}return c-o},`drawEvents`),xe={setConf:t(()=>{},`setConf`),draw:ve},Se=t(e=>{let{theme:t}=f(),n=t?.includes(`dark`),r=h(t,e.borderColorArray),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t<g(e.THEME_COLOR_LIMIT);t++){let i=`${17-3*t}`,s=r?e.borderColorArray[t%e.borderColorArray.length]:void 0,c=s??e.mainBkg,l=s??e.nodeBorder;o+=`
|
|
7
|
+
.section-${t-1} rect,
|
|
8
|
+
.section-${t-1} path,
|
|
9
|
+
.section-${t-1} circle {
|
|
10
|
+
fill: ${n&&r?e.mainBkg:c};
|
|
11
|
+
stroke: ${l};
|
|
12
|
+
stroke-width: ${e.strokeWidth};
|
|
13
|
+
filter: ${a};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.section-${t-1} text {
|
|
17
|
+
fill: ${e.nodeBorder};
|
|
18
|
+
font-weight: ${e.fontWeight}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.node-icon-${t-1} {
|
|
22
|
+
font-size: 40px;
|
|
23
|
+
color: ${e[`cScaleLabel`+t]};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.section-edge-${t-1} {
|
|
27
|
+
stroke: ${e[`cScale`+t]};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.edge-depth-${t-1} {
|
|
31
|
+
stroke-width: ${i};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.section-${t-1} line {
|
|
35
|
+
stroke: ${e[`cScaleInv`+t]};
|
|
36
|
+
stroke-width: 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.lineWrapper line {
|
|
40
|
+
stroke: ${e.nodeBorder};
|
|
41
|
+
stroke-width:${e.strokeWidth}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.disabled,
|
|
45
|
+
.disabled circle,
|
|
46
|
+
.disabled text {
|
|
47
|
+
fill: ${e.tertiaryColor??`lightgray`};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.disabled text {
|
|
51
|
+
fill: ${e.clusterBorder??`#efefef`};
|
|
52
|
+
}
|
|
53
|
+
`}return o},`genReduxSections`),Ce=t(e=>{let t=``,n=g(e.THEME_COLOR_LIMIT);for(let t=0;t<n;t++)e[`lineColor`+t]=e[`lineColor`+t]??e[`cScaleInv`+t],c(e[`lineColor`+t])?e[`lineColor`+t]=l(e[`lineColor`+t],20):e[`lineColor`+t]=d(e[`lineColor`+t],20);for(let r=0;r<n;r++){let n=``+(17-3*r);t+=`
|
|
54
|
+
.section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path {
|
|
55
|
+
fill: ${e[`cScale`+r]};
|
|
56
|
+
}
|
|
57
|
+
.section-${r-1} text {
|
|
58
|
+
fill: ${e[`cScaleLabel`+r]};
|
|
59
|
+
}
|
|
60
|
+
.node-icon-${r-1} {
|
|
61
|
+
font-size: 40px;
|
|
62
|
+
color: ${e[`cScaleLabel`+r]};
|
|
63
|
+
}
|
|
64
|
+
.section-edge-${r-1}{
|
|
65
|
+
stroke: ${e[`cScale`+r]};
|
|
66
|
+
}
|
|
67
|
+
.edge-depth-${r-1}{
|
|
68
|
+
stroke-width: ${n};
|
|
69
|
+
}
|
|
70
|
+
.section-${r-1} line {
|
|
71
|
+
stroke: ${e[`cScaleInv`+r]} ;
|
|
72
|
+
stroke-width: 3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.lineWrapper line{
|
|
76
|
+
stroke: ${e[`cScaleLabel`+r]} ;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.disabled, .disabled circle, .disabled text {
|
|
80
|
+
fill: ${e.tertiaryColor??`lightgray`};
|
|
81
|
+
}
|
|
82
|
+
.disabled text {
|
|
83
|
+
fill: ${e.clusterBorder??`#efefef`};
|
|
84
|
+
}
|
|
85
|
+
`}return t},`genSections`),we={db:y,renderer:{setConf:t(()=>{},`setConf`),draw:t((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?xe.draw(e,t,n,r):me.draw(e,t,n,r),`draw`)},parser:v,styles:t(e=>{let{theme:t}=f(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r){let t=g(e.THEME_COLOR_LIMIT);for(let n=0;n<t;n++)a+=`
|
|
86
|
+
.section-${n-1}[data-look="neo"] rect,
|
|
87
|
+
.section-${n-1}[data-look="neo"] path,
|
|
88
|
+
.section-${n-1}[data-look="neo"] circle {
|
|
89
|
+
fill: ${e.mainBkg};
|
|
90
|
+
stroke: url(#${i}-gradient);
|
|
91
|
+
stroke-width: 2;
|
|
92
|
+
}
|
|
93
|
+
.section-${n-1}[data-look="neo"] line {
|
|
94
|
+
stroke: url(#${i}-gradient);
|
|
95
|
+
stroke-width: 2;
|
|
96
|
+
}`}return`
|
|
97
|
+
.edge {
|
|
98
|
+
stroke-width: 3;
|
|
99
|
+
}
|
|
100
|
+
${n?Se(e):Ce(e)}
|
|
101
|
+
${a}
|
|
102
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
103
|
+
fill: ${e.git0};
|
|
104
|
+
}
|
|
105
|
+
.section-root text {
|
|
106
|
+
fill: ${e.gitBranchLabel0};
|
|
107
|
+
}
|
|
108
|
+
.icon-container {
|
|
109
|
+
height:100%;
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
.edge {
|
|
115
|
+
fill: none;
|
|
116
|
+
}
|
|
117
|
+
.eventWrapper {
|
|
118
|
+
filter: brightness(120%);
|
|
119
|
+
}
|
|
120
|
+
`},`getStyles`)};export{we as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-DKj5X9O4.js";import{S as r,a as i,b as a,d as o,f as s,g as c,h as l,l as u,m as d,n as f,p,s as m,u as h,y as g}from"./button-BF3wjXXJ.js";var _=[[`path`,{d:`M20 12L4 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],v=[[`path`,{d:`M12 4V20M20 12H4`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],y=e(r(),1),b=e(t(),1),x=n(),S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0}),w=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),T=b.forwardRef(C(function(e,t){return(0,x.jsx)(c.span,{...e,ref:t,style:{...w,...e.style}})},`VisuallyHidden`)),E=Object.defineProperty,D=(e,t)=>E(e,`name`,{value:t,configurable:!0});function O(e){let[t,n]=b.useState(void 0);return d(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}D(O,`useSize`);var k=[`top`,`right`,`bottom`,`left`],A=Math.min,j=Math.max,M=Math.round,N=Math.floor,P=e=>({x:e,y:e}),ee={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function F(e,t,n){return j(e,A(t,n))}function I(e,t){return typeof e==`function`?e(t):e}function L(e){return e.split(`-`)[0]}function R(e){return e.split(`-`)[1]}function z(e){return e===`x`?`y`:`x`}function B(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function te(e){return z(V(e))}function ne(e,t,n){n===void 0&&(n=!1);let r=R(e),i=te(e),a=B(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=de(o)),[o,de(o)]}function re(e){let t=de(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ae=[`left`,`right`],oe=[`right`,`left`],se=[`top`,`bottom`],ce=[`bottom`,`top`];function le(e,t,n){switch(e){case`top`:case`bottom`:return n?t?oe:ae:t?ae:oe;case`left`:case`right`:return t?se:ce;default:return[]}}function ue(e,t,n,r){let i=R(e),a=le(L(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ie)))),a}function de(e){let t=L(e);return ee[t]+e.slice(t.length)}function fe(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function pe(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fe(e)}function me(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function he(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=te(t),s=B(o),c=L(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=R(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ge(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=I(t,e),p=pe(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=me(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=me(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var _e=50,ve=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ge},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=he(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<_e&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=he(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ye=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=I(e,t)||{};if(l==null)return{};let d=pe(u),f={x:n,y:r},p=te(i),m=B(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=A(d[_],T),D=A(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,j=F(E,k,O),M=!c.arrow&&R(i)!=null&&k!==j&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,N=M?k<E?k-E:k-O:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:k-j-N,...M&&{alignmentOffset:N}},reset:M}}}),be=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=I(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=L(r),_=V(o),v=L(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[de(o)]:re(o)),x=p!==`none`;!d&&x&&b.push(...ue(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ne(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===V(t)||T.every(e=>V(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function xe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Se(e){return k.some(t=>e[t]>=0)}var Ce=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=I(e,t);switch(i){case`referenceHidden`:{let e=xe(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Se(e)}}}case`escaped`:{let e=xe(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Se(e)}}}default:return{}}}}},we=new Set([`left`,`top`]);async function Te(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=L(n),s=R(n),c=V(n)===`y`,l=we.has(o)?-1:1,u=a&&c?-1:1,d=I(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ee=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Te(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},De=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=I(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(i),p=z(f),m=u[p],h=u[f],g=(e,t)=>F(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Oe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=I(e,t),u={x:n,y:r},d=V(i),f=z(d),p=u[f],m=u[d],h=I(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=we.has(L(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ke=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=I(e,t),c=await i.detectOverflow(t,s),l=L(n),u=R(n),d=V(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=A(p-c[m],g),y=A(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*j(c.left,c.right):S=p-2*j(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ae(){return typeof window<`u`}function H(e){return je(e)?(e.nodeName||``).toLowerCase():`#document`}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){return((je(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function je(e){return Ae()?e instanceof Node||e instanceof U(e).Node:!1}function G(e){return Ae()?e instanceof Element||e instanceof U(e).Element:!1}function K(e){return Ae()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Me(e){return!Ae()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Ne(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pe(e){return/^(table|td|th)$/.test(H(e))}function Fe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ie=/transform|translate|scale|rotate|perspective|filter/,Le=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,Re;function ze(e){let t=G(e)?J(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!Ve()&&(q(t.backdropFilter)||q(t.filter))||Ie.test(t.willChange||``)||Le.test(t.contain||``)}function Be(e){let t=Y(e);for(;K(t)&&!He(t);){if(ze(t))return t;if(Fe(t))return null;t=Y(t)}return null}function Ve(){return Re??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Re}function He(e){return/^(html|body|#document)$/.test(H(e))}function J(e){return U(e).getComputedStyle(e)}function Ue(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if(H(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Me(e)&&e.host||W(e);return Me(t)?t.host:t}function We(e){let t=Y(e);return He(t)?(e.ownerDocument||e).body:K(t)&&Ne(t)?t:We(t)}function Ge(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=We(e),i=r===e.ownerDocument?.body,a=U(r);if(i){let e=Ke(a);return t.concat(a,a.visualViewport||[],Ne(r)?r:[],e&&n?Ge(e):[])}return t.concat(r,Ge(r,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qe(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=M(n)!==a||M(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Je(e){return G(e)?e:e.contextElement}function X(e){let t=Je(e);if(!K(t))return P(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=qe(t),o=(a?M(n.width):n.width)/r,s=(a?M(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ye=P(0);function Xe(e){let t=U(e);return!Ve()||!t.visualViewport?Ye:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ze(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function Z(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Je(e),o=P(1);t&&(r?G(r)&&(o=X(r)):o=X(e));let s=Ze(a,n,r)?Xe(a):P(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=U(a),t=G(r)?U(r):r,n=e,i=Ke(n);for(;i&&t!==n;){let e=X(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=U(i),i=Ke(n)}}return me({width:u,height:d,x:c,y:l})}function Qe(e,t){let n=Ue(e).scrollLeft;return t?t.left+n:Z(W(e)).left+n}function $e(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Qe(e,n),y:n.top+t.scrollTop}}function et(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=W(r),s=t?Fe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=P(1),u=P(0),d=K(r);if((d||!a)&&((H(r)!==`body`||Ne(o))&&(c=Ue(r)),d)){let e=Z(r);l=X(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?$e(o,c):P(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function tt(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function nt(e){let t=Ue(e),n=e.ownerDocument.body,r=j(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=j(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Qe(e),o=-t.scrollTop;return J(n).direction===`rtl`&&(a+=j(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var rt=25;function it(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=U(e),a=W(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ve()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Qe(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=rt&&(s-=o)}return{width:s,height:c,x:l,y:u}}function at(e,t){let n=Z(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=X(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ot(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=it(e,n,t);else if(t===`document`)r=nt(W(e));else if(G(t))r=at(t,n);else{let n=Xe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return me(r)}function st(e,t){let n=t.get(e);if(n)return n;let r=Ge(e,[],!1).filter(e=>G(e)&&H(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Y(e):e;for(;G(o)&&!He(o);){let e=J(o),t=ze(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Y(o)}return t.set(e,r),r}function ct(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fe(t)?[]:st(t,this._c):[].concat(n),r],o=ot(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ot(t,a[e],i);s=j(n.top,s),c=A(n.right,c),l=A(n.bottom,l),u=j(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function lt(e){let{width:t,height:n}=qe(e);return{width:t,height:n}}function ut(e,t,n){let r=K(t),i=W(t),a=n===`fixed`,o=Z(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=P(0);if((r||!a)&&((H(t)!==`body`||Ne(i))&&(s=Ue(t)),r)){let e=Z(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Qe(i));let l=i&&!r&&!a?$e(i,s):P(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function dt(e){return J(e).position===`static`}function ft(e,t){if(!K(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function pt(e,t){let n=U(e);if(Fe(e))return n;if(!K(e)){let t=Y(e);for(;t&&!He(t);){if(G(t)&&!dt(t))return t;t=Y(t)}return n}let r=ft(e,t);for(;r&&Pe(r)&&dt(r);)r=ft(r,t);return r&&He(r)&&dt(r)&&!ze(r)?n:r||Be(e)||n}var mt=async function(e){let t=this.getOffsetParent||pt,n=this.getDimensions,r=await n(e.floating);return{reference:ut(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ht(e){return J(e).direction===`rtl`}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:et,getDocumentElement:W,getClippingRect:ct,getOffsetParent:pt,getElementRects:mt,getClientRects:tt,getDimensions:lt,getScale:X,isElement:G,isRTL:ht};function _t(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vt(e,t,n){let r=null,i,a=W(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=N(d),h=N(a.clientWidth-(u+f)),g=N(a.clientHeight-(d+p)),_=N(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:j(0,A(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!_t(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=U(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function yt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Je(e),u=i||a?[...l?Ge(l):[],...t?Ge(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?vt(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Z(e):null;c&&g();function g(){let t=Z(e);h&&!_t(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var bt=Ee,xt=De,St=be,Ct=ke,wt=Ce,Tt=ye,Et=Oe,Dt=(e,t,n)=>{let r=new Map,i=n??{},a={...gt,...i.platform,_c:r};return ve(e,t,{...i,platform:a})},Ot=typeof document<`u`?b.useLayoutEffect:function(){};function kt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!kt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!kt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function At(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jt(e,t){let n=At(e);return Math.round(t*n)/n}function Mt(e){let t=b.useRef(e);return Ot(()=>{t.current=e}),t}function Nt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);kt(f,r)||p(r);let[m,h]=b.useState(null),[g,_]=b.useState(null),v=b.useCallback(e=>{e!==w.current&&(w.current=e,h(e))},[]),x=b.useCallback(e=>{e!==T.current&&(T.current=e,_(e))},[]),S=a||m,C=o||g,w=b.useRef(null),T=b.useRef(null),E=b.useRef(u),D=c!=null,O=Mt(c),k=Mt(i),A=Mt(l),j=b.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),Dt(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!kt(E.current,t)&&(E.current=t,y.flushSync(()=>{d(t)}))})},[f,t,n,k,A]);Ot(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=b.useRef(!1);Ot(()=>(M.current=!0,()=>{M.current=!1}),[]),Ot(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=b.useMemo(()=>({reference:w,floating:T,setReference:v,setFloating:x}),[v,x]),P=b.useMemo(()=>({reference:S,floating:C}),[S,C]),ee=b.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=jt(P.floating,u.x),r=jt(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...At(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:ee}),[u,j,N,P,ee])}var Pt=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Tt({element:r.current,padding:i}).fn(n):r?Tt({element:r,padding:i}).fn(n):{}}}},Ft=(e,t)=>{let n=bt(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=(e,t)=>{let n=xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lt=(e,t)=>({fn:Et(e).fn,options:[e,t]}),Rt=(e,t)=>{let n=St(e);return{name:n.name,fn:n.fn,options:[e,t]}},zt=(e,t)=>{let n=Ct(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bt=(e,t)=>{let n=wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vt=(e,t)=>{let n=Pt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ht=Object.defineProperty,Q=(e,t)=>Ht(e,`name`,{value:t,configurable:!0}),Ut={Partial:`partial`,Always:`always`},Wt={Optimized:`optimized`,Always:`always`},Gt=`Popper`,[Kt,qt]=l(Gt),[Jt,Yt]=Kt(Gt),Xt=Q(e=>{let{__scopePopper:t,children:n}=e,[r,i]=b.useState(null),[a,o]=b.useState(void 0);return(0,x.jsx)(Jt,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Zt=`PopperAnchor`,Qt=b.forwardRef(Q(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,o=Yt(Zt,n),s=b.useRef(null),l=o.onAnchorChange,u=b.useCallback(e=>{s.current=e,e&&l(e)},[l]),d=a(t,u),f=b.useRef(null);b.useEffect(()=>{if(!r)return;let e=f.current;f.current=r.current,e!==f.current&&l(f.current)});let p=o.placementState&&on(o.placementState),m=p?.[0],h=p?.[1];return r?null:(0,x.jsx)(c.div,{"data-radix-popper-side":m,"data-radix-popper-align":h,...i,ref:d})},`PopperAnchor`)),$t=`PopperContent`,[en,tn]=Kt($t),nn=b.forwardRef(Q(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:o=`center`,alignOffset:s=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:h=Ut.Partial,hideWhenDetached:g=!1,updatePositionStrategy:_=Wt.Optimized,onPlaced:v,...y}=e,S=Yt($t,n),[C,w]=b.useState(null),T=a(t,w),[E,D]=b.useState(null),k=O(E),A=k?.width??0,j=k?.height??0,M=r+(o===`center`?``:`-`+o),N=typeof m==`number`?m:{top:0,right:0,bottom:0,left:0,...m},P=Array.isArray(p)?p:[p],ee=P.length>0,F={padding:N,boundary:P.filter(rn),altBoundary:ee},{refs:I,floatingStyles:L,placement:R,isPositioned:z,middlewareData:B}=Nt({strategy:`fixed`,placement:M,whileElementsMounted:Q((...e)=>yt(...e,{animationFrame:_===Wt.Always}),`whileElementsMounted`),elements:{reference:S.anchor},middleware:[Ft({mainAxis:i+j,alignmentAxis:s}),f&&It({mainAxis:!0,crossAxis:!1,...h===Ut.Partial?{limiter:Lt()}:{},...F}),f&&Rt({...F}),zt({...F,apply:Q(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),E&&Vt({element:E,padding:l}),an({arrowWidth:A,arrowHeight:j}),g&&Bt(ee?{strategy:`referenceHidden`,...F}:{strategy:`referenceHidden`,padding:F.padding,altBoundary:F.altBoundary})]}),V=S.setPlacementState;d(()=>(V(R),()=>{V(void 0)}),[R,V]);let[te,ne]=on(R),re=u(v);d(()=>{z&&re?.()},[z,re]);let ie=B.arrow?.x,ae=B.arrow?.y,oe=B.arrow?.centerOffset!==0,[se,ce]=b.useState();return d(()=>{C&&ce(window.getComputedStyle(C).zIndex)},[C]),(0,x.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...L,transform:z?L.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(` `),...B.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,x.jsx)(en,{scope:n,placedSide:te,placedAlign:ne,onArrowChange:D,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,x.jsx)(c.div,{"data-side":te,"data-align":ne,...y,ref:T,style:{...y.style,animation:z?y.style?.animation:`none`}})})})},`PopperContent`));function rn(e){return e!==null}Q(rn,`isNotNull`);var an=Q(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=on(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function on(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Q(on,`getSideAndAlignFromPlacement`);var sn=Object.defineProperty,$=(e,t)=>sn(e,`name`,{value:t,configurable:!0}),[cn,ln]=l(`Tooltip`,[qt]),un=qt(),dn=`TooltipProvider`,fn=700,pn=`tooltip.open`,[mn,hn]=cn(dn),gn=$(e=>{let{__scopeTooltip:t,delayDuration:n=fn,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=b.useRef(!0),s=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,x.jsx)(mn,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:b.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:b.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),_n=`Tooltip`,[vn,yn]=cn(_n),bn=$(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:c}=e,l=hn(_n,e.__scopeTooltip),u=un(t),[d,f]=b.useState(null),[p,m]=b.useState(void 0),g=h(),_=b.useRef(0),v=o??l.disableHoverableContent,y=c??l.delayDuration,S=b.useRef(!1),[C,w]=s({prop:r,defaultProp:i??!1,onChange:$(e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(pn))):l.onClose(),a?.(e)},`onChange`),caller:_n}),T=b.useMemo(()=>C?S.current?`delayed-open`:`instant-open`:`closed`,[C]),E=b.useCallback(()=>{window.clearTimeout(_.current),_.current=0,S.current=!1,w(!0)},[w]),D=b.useCallback(()=>{window.clearTimeout(_.current),_.current=0,w(!1)},[w]),O=b.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{S.current=!0,w(!0),_.current=0},y)},[y,w]);b.useEffect(()=>()=>{_.current&&=(window.clearTimeout(_.current),0)},[]);let k=p??g;return(0,x.jsx)(Xt,{...u,children:(0,x.jsx)(vn,{scope:t,contentId:k,setContentId:m,open:C,stateAttribute:T,trigger:d,onTriggerChange:f,onTriggerEnter:b.useCallback(()=>{l.isOpenDelayedRef.current?O():E()},[l.isOpenDelayedRef,O,E]),onTriggerLeave:b.useCallback(()=>{v?D():(window.clearTimeout(_.current),_.current=0)},[D,v]),onOpen:E,onClose:D,disableHoverableContent:v,children:n})})},`Tooltip`),xn=`TooltipTrigger`,Sn=b.forwardRef($(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,o=yn(xn,n),s=hn(xn,n),l=un(n),u=b.useRef(null),d=a(t,u,o.onTriggerChange),f=b.useRef(!1),m=b.useRef(!1),h=b.useCallback(()=>f.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener(`pointerup`,h),[h]),(0,x.jsx)(Qt,{asChild:!0,...l,children:(0,x.jsx)(c.button,{"aria-describedby":o.open?Rn(r,o.contentId):r,"data-state":o.stateAttribute,...i,ref:d,onPointerMove:p(e.onPointerMove,e=>{e.pointerType!==`touch`&&!m.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:p(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:p(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener(`pointerup`,h,{once:!0})}),onFocus:p(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:p(e.onBlur,o.onClose),onClick:p(e.onClick,o.onClose)})})},`TooltipTrigger`)),Cn=`TooltipPortal`,[wn,Tn]=cn(Cn,{forceMount:void 0}),En=$(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=yn(Cn,t);return(0,x.jsx)(wn,{scope:t,forceMount:n,children:(0,x.jsx)(o,{present:n||a.open,children:(0,x.jsx)(f,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Dn=`TooltipContent`,On=b.forwardRef($(function(e,t){let n=Tn(Dn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,s=yn(Dn,e.__scopeTooltip);return(0,x.jsx)(o,{present:r||s.open,children:s.disableHoverableContent?(0,x.jsx)(jn,{side:i,...a,ref:t}):(0,x.jsx)(kn,{side:i,...a,ref:t})})},`TooltipContent`)),kn=b.forwardRef($(function(e,t){let n=yn(Dn,e.__scopeTooltip),r=hn(Dn,e.__scopeTooltip),i=b.useRef(null),o=a(t,i),[s,c]=b.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=b.useCallback(()=>{c(null),f(!1)},[f]),m=b.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Nn(r,Mn(r,n.getBoundingClientRect())),a=Pn(t.getBoundingClientRect()),o=In([...i,...a]);c(o),f(!0)},[f]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){let e=$(e=>m(e,d),`handleTriggerLeave`),t=$(e=>m(e,l),`handleContentLeave`);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),b.useEffect(()=>{if(s){let e=$(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Fn(n,s);r?p():i&&(p(),u())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,x.jsx)(jn,{...e,ref:o})},`TooltipContentHoverable`)),An=g(`TooltipContent`),jn=b.forwardRef($(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":o,id:s,onEscapeKeyDown:c,onPointerDownOutside:l,...u}=e,f=yn(Dn,n),p=un(n),{onClose:h}=f,[g,_]=b.useState(null),v=a(t,_);i(g),b.useEffect(()=>(document.addEventListener(pn,h),()=>document.removeEventListener(pn,h)),[h]),b.useEffect(()=>{if(f.trigger){let e=$(e=>{e.target instanceof Node&&e.target.contains(f.trigger)&&h()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[f.trigger,h]);let{setContentId:y}=f;return d(()=>(y(s),()=>{y(void 0)}),[s,y]),(0,x.jsx)(m,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,x.jsxs)(nn,{"data-state":f.stateAttribute,role:o?void 0:`tooltip`,id:o?void 0:f.contentId,...p,...u,ref:v,style:{...u.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,x.jsx)(An,{children:r}),o?(0,x.jsx)(T,{id:f.contentId,role:`tooltip`,children:o}):null]})})},`TooltipContentImpl`));function Mn(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}$(Mn,`getExitSideFromRect`);function Nn(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}$(Nn,`getPaddedExitPoints`);function Pn(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}$(Pn,`getPointsFromRect`);function Fn(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}$(Fn,`isPointInPolygon`);function In(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Ln(t)}$(In,`getHull`);function Ln(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}$(Ln,`getHullPresorted`);function Rn(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}$(Rn,`concatAriaDescribedby`);function zn(e){return(0,x.jsx)(gn,{delayDuration:600,children:(0,x.jsxs)(bn,{children:[(0,x.jsx)(Sn,{asChild:!0,children:e.children}),(0,x.jsx)(En,{children:(0,x.jsx)(On,{side:e.side??`top`,sideOffset:4,collisionPadding:5,className:`bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-98 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-98 relative z-[140] flex max-w-80 origin-(--radix-tooltip-content-transform-origin) rounded-md border px-2 py-1 text-xs leading-snug text-balance wrap-anywhere whitespace-normal shadow-md/5 not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,children:e.label})})]})})}export{qt as a,v as c,nn as i,_ as l,Xt as n,O as o,Qt as r,w as s,zn as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{n as createTreeViewServices}from"./chunk-KPI5JJXK-CYaUTtMz.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-NGNAAXSQ-C2Wy9Xmz.js";export{n as createTreemapServices}from"./chunk-4S7OKTRW-Bg7nzAWG.js";
|