@marimo-team/frontend 0.14.11-dev5 → 0.14.11-dev50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-DMQ_fMA-.js → ConnectedDataExplorerComponent-CUoL500U.js} +3 -3
  2. package/dist/assets/{ImageComparisonComponent-CWmirTp9.js → ImageComparisonComponent-DDHwIJ8Q.js} +1 -1
  3. package/dist/assets/{VegaLite-D0scTiCV.js → VegaLite-Czmx_ECO.js} +1 -1
  4. package/dist/assets/_baseEach-C52A37kN.js +1 -0
  5. package/dist/assets/_baseMap-CErDCA3r.js +1 -0
  6. package/dist/assets/_baseUniq-hliKyzdp.js +1 -0
  7. package/dist/assets/{_createAggregator-CYc3R5V9.js → _createAggregator-CcihYROi.js} +1 -1
  8. package/dist/assets/{any-language-editor-BAyJi4sp.js → any-language-editor-bqVsHwiH.js} +1 -1
  9. package/dist/assets/architectureDiagram-NQ2NVSRB-BLiKdlfK.js +36 -0
  10. package/dist/assets/blockDiagram-PHRCVELO-Dj7uU_bm.js +122 -0
  11. package/dist/assets/{c4Diagram-VJAJSXHY-DhwC93OT.js → c4Diagram-6F6E4RAY-m6sAlCzp.js} +2 -2
  12. package/dist/assets/channel-eH-Wxlwg.js +1 -0
  13. package/dist/assets/{chunk-4BMEZGHF-BDUQv6oo.js → chunk-353BL4L5-CnAx5AF0.js} +1 -1
  14. package/dist/assets/{chunk-D6G4REZN-DZQFfclG.js → chunk-67H74DCK-Cto_4Bir.js} +1 -1
  15. package/dist/assets/chunk-6OLS64BW-CrFJnDjp.js +220 -0
  16. package/dist/assets/{chunk-XZIHB7SX-CrsSaTFU.js → chunk-AACKK3MU-B_HaHcJu.js} +1 -1
  17. package/dist/assets/chunk-BFAMUDN2-Di38VBDn.js +1 -0
  18. package/dist/assets/chunk-E2GYISFI-CPwLrORh.js +15 -0
  19. package/dist/assets/{chunk-A2AXSNBT-45GjZ4ep.js → chunk-QEP2MXWD-BxExN6Lp.js} +4 -3
  20. package/dist/assets/chunk-SKB7J2MH-CZ1cNiyn.js +1 -0
  21. package/dist/assets/{circle-play-CpQkb-K4.js → circle-play-8nMu2iYy.js} +2 -2
  22. package/dist/assets/classDiagram-BGRH5UQR-BnjY0hFP.js +1 -0
  23. package/dist/assets/classDiagram-v2-O24JOBDK-BnjY0hFP.js +1 -0
  24. package/dist/assets/clone-BqBqvZp5.js +1 -0
  25. package/dist/assets/compile-BFoHfP_H.js +10 -0
  26. package/dist/assets/dagre-FFZHY6LT-B2xtEGm4.js +4 -0
  27. package/dist/assets/{data-editor-CeGjBq6K.js → data-editor-BeWagiEI.js} +22 -22
  28. package/dist/assets/diagram-3EMPZRKU-DSUnwT8T.js +24 -0
  29. package/dist/assets/diagram-5UYTHUR4-BKm2hW4S.js +24 -0
  30. package/dist/assets/diagram-ZTM2IBQH-BQuWD834.js +43 -0
  31. package/dist/assets/edit-page-Dp71Rq_B.js +144 -0
  32. package/dist/assets/{erDiagram-Q7BY3M3F-HfXYTOof.js → erDiagram-R3QVA2FD-3xyAvrIh.js} +1 -1
  33. package/dist/assets/flowDiagram-PKI6S5ZS-ZMlsBCaU.js +162 -0
  34. package/dist/assets/ganttDiagram-EK5VF46D-BCKhVKFb.js +267 -0
  35. package/dist/assets/gitGraphDiagram-GW3U2K7C-pHdDh1du.js +65 -0
  36. package/dist/assets/{graph-DJZT7Xvd.js → graph-C4PkZZxf.js} +1 -1
  37. package/dist/assets/home-page-CmEC47AR.js +9 -0
  38. package/dist/assets/{index-BE19tBFw.js → index--PV_n6OT.js} +1 -1
  39. package/dist/assets/{index-Cz22vp8s.js → index-B-zQMBKJ.js} +1 -1
  40. package/dist/assets/index-BEQfoZiP.js +1 -0
  41. package/dist/assets/{index-CIMxeTn1.js → index-BGwXzM6i.js} +1 -1
  42. package/dist/assets/{index-a27d4K8Z.js → index-BU0kTvje.js} +1 -1
  43. package/dist/assets/{index-Dwm3ogya.js → index-CEEx86Vd.js} +1 -1
  44. package/dist/assets/{index-B1_eV_Ov.js → index-CKQeO2Lm.js} +1 -1
  45. package/dist/assets/{index-D2cDVMJO.js → index-CqGB7278.js} +1 -1
  46. package/dist/assets/{index-B_za8QUJ.js → index-CtmLvKwt.js} +1 -1
  47. package/dist/assets/index-D2Z1hqrf.js +1 -0
  48. package/dist/assets/index-DDdlzLJw.js +503 -0
  49. package/dist/assets/{index-xGgGiEvE.js → index-DGXmlIKQ.js} +1 -1
  50. package/dist/assets/{index-d_s5QBbs.js → index-DjJ-bG6v.js} +1 -1
  51. package/dist/assets/{index-B7mnFA43.js → index-DjpcQgUn.js} +1 -1
  52. package/dist/assets/index-DnCBJYuC.css +1 -0
  53. package/dist/assets/{index-B_D8Im33.js → index-DnxVQzYt.js} +1 -1
  54. package/dist/assets/{index-BAXMt0Rh.js → index-Dx9C9kBl.js} +1 -1
  55. package/dist/assets/{index-D_zHcGhe.js → index-TLD151he.js} +1 -1
  56. package/dist/assets/{index-gxDVzpPY.js → index-grhOS4NZ.js} +1 -1
  57. package/dist/assets/{index-Dw4a-6ZH.js → index-hzUC1b41.js} +1 -1
  58. package/dist/assets/{index-fgCNABM6.js → index-tWtqwKDR.js} +1 -1
  59. package/dist/assets/infoDiagram-RLU2ROGC-CQRQmWBF.js +2 -0
  60. package/dist/assets/journeyDiagram-EWQZEKCU-DoTMV7Ld.js +139 -0
  61. package/dist/assets/{kanban-definition-NDS4AKOZ-BHw2oIqf.js → kanban-definition-ILFWEQ3N-CcX8Odhv.js} +9 -8
  62. package/dist/assets/{layout-CF1oc_e3.js → layout-CMZskpMv.js} +1 -1
  63. package/dist/assets/linear-RD9P-hfS.js +1 -0
  64. package/dist/assets/links-BddFPrre.js +17 -0
  65. package/dist/assets/loro_wasm_bg-bPYKkGLG.wasm +0 -0
  66. package/dist/assets/mermaid-CjHlE8Co.js +152 -0
  67. package/dist/assets/min-DrLXTftx.js +1 -0
  68. package/dist/assets/{mindmap-definition-ALO5MXBD-D4vHkpON.js → mindmap-definition-CZNETY7S-CxqCAn65.js} +4 -4
  69. package/dist/assets/{pieDiagram-IB7DONF6-BE1yDg1G.js → pieDiagram-NIOCPIFQ-PRsPDCUf.js} +1 -1
  70. package/dist/assets/{quadrantDiagram-7GDLP6J5-BuwoLhkk.js → quadrantDiagram-2OG54O6I-pLLKFYFN.js} +1 -1
  71. package/dist/assets/{react-plotly-CKNiAnQY.js → react-plotly-O8CNh3yr.js} +1 -1
  72. package/dist/assets/{requirementDiagram-KVF5MWMF-esdDg5Gf.js → requirementDiagram-SO3GGRV7-yjxijDDw.js} +3 -3
  73. package/dist/assets/run-page-CxZg57Ra.js +1 -0
  74. package/dist/assets/{sankeyDiagram-QLVOVGJD-Dq4ECH57.js → sankeyDiagram-4UZDY2LN-7AVzF911.js} +1 -1
  75. package/dist/assets/save-worker-B8gk1S9x.js +1 -0
  76. package/dist/assets/sequenceDiagram-ZIKVLSP4-CYsC6JlV.js +122 -0
  77. package/dist/assets/slides-component-t8hWAw30.js +1 -0
  78. package/dist/assets/sortBy-6rZ1GeDf.js +1 -0
  79. package/dist/assets/stateDiagram-XX37X6EN-DkOa47Ba.js +1 -0
  80. package/dist/assets/stateDiagram-v2-GD6S3NHB-CtNUX2HF.js +1 -0
  81. package/dist/assets/storage-DFM0grbQ.js +25 -0
  82. package/dist/assets/{terminal-B7XD4iZk.js → terminal-Dxa0NUTG.js} +1 -1
  83. package/dist/assets/{time-Bn4pDW13.js → time-D69fB1YD.js} +1 -1
  84. package/dist/assets/timeline-definition-RI47OAVP-Cv4RoOGw.js +61 -0
  85. package/dist/assets/tracing-CYcKBnLY.js +2 -0
  86. package/dist/assets/treemap-FKARHQ26-DIAQw-dY.js +126 -0
  87. package/dist/assets/vega-component-CzIbLUf6.js +1 -0
  88. package/dist/assets/worker-BYA2ASe8.js +1 -0
  89. package/dist/assets/worker-Ch6cKXnI.js +1 -0
  90. package/dist/assets/xychartDiagram-H2YORKM3-pYUlM72N.js +7 -0
  91. package/dist/index.html +2 -2
  92. package/package.json +42 -42
  93. package/dist/assets/_baseEach-BZRDjF1G.js +0 -1
  94. package/dist/assets/_baseMap-b6pESN37.js +0 -1
  95. package/dist/assets/_baseUniq-C6iB6ndc.js +0 -1
  96. package/dist/assets/architectureDiagram-IEHRJDOE-C7apm4Rb.js +0 -36
  97. package/dist/assets/blockDiagram-JOT3LUYC-fnbiDLBo.js +0 -121
  98. package/dist/assets/channel-CJ0O_DEA.js +0 -1
  99. package/dist/assets/chunk-AEK57VVT-DvnWZ3xV.js +0 -220
  100. package/dist/assets/chunk-RZ5BOZE2-Dgp8VeSi.js +0 -1
  101. package/dist/assets/classDiagram-GIVACNV2-CL3HbgQ3.js +0 -1
  102. package/dist/assets/classDiagram-v2-COTLJTTW-CL3HbgQ3.js +0 -1
  103. package/dist/assets/clone-De7T0DNm.js +0 -1
  104. package/dist/assets/compile-thtiZ0sF.js +0 -10
  105. package/dist/assets/dagre-OKDRZEBW-BIwMvEOu.js +0 -4
  106. package/dist/assets/diagram-SSKATNLV-Db5IE1xf.js +0 -43
  107. package/dist/assets/diagram-VNBRO52H-CsZ5COnC.js +0 -24
  108. package/dist/assets/edit-page-BhCJ9cY3.js +0 -144
  109. package/dist/assets/flowDiagram-4HSFHLVR-D9XaWAut.js +0 -161
  110. package/dist/assets/ganttDiagram-APWFNJXF-B3PLwj3o.js +0 -257
  111. package/dist/assets/gitGraphDiagram-7IBYFJ6S-CFL0d9D_.js +0 -65
  112. package/dist/assets/home-page-ui2vbJR1.js +0 -9
  113. package/dist/assets/index-8IZtaDUn.css +0 -1
  114. package/dist/assets/index-CDoIhryD.js +0 -1
  115. package/dist/assets/index-DITk7HL4.js +0 -501
  116. package/dist/assets/infoDiagram-PH2N3AL5-BIjMI05t.js +0 -2
  117. package/dist/assets/journeyDiagram-U35MCT3I-B7TqIRu7.js +0 -138
  118. package/dist/assets/linear-DaGXRWtq.js +0 -1
  119. package/dist/assets/loro_wasm_bg-DHBNbovs.wasm +0 -0
  120. package/dist/assets/mermaid-CwhZbs51.js +0 -152
  121. package/dist/assets/min-AWTPkpvW.js +0 -1
  122. package/dist/assets/radar-MK3ICKWK-Bxa1jhec.js +0 -126
  123. package/dist/assets/run-page-Dv95FfWv.js +0 -1
  124. package/dist/assets/save-worker-DZnx0AG9.js +0 -1
  125. package/dist/assets/sequenceDiagram-X6HHIX6F-cjRet5DL.js +0 -122
  126. package/dist/assets/shutdown-button-C0QY_4_n.js +0 -17
  127. package/dist/assets/slides-component-wzTLBiyJ.js +0 -1
  128. package/dist/assets/sortBy-CcyoRC99.js +0 -1
  129. package/dist/assets/stateDiagram-DGXRK772-BPcptXup.js +0 -1
  130. package/dist/assets/stateDiagram-v2-YXO3MK2T-C8VwdSCg.js +0 -1
  131. package/dist/assets/storage-DDyP2Zol.js +0 -27
  132. package/dist/assets/timeline-definition-BDJGKUSR-Cz0Eii_m.js +0 -61
  133. package/dist/assets/tracing-9Co-DJfg.js +0 -2
  134. package/dist/assets/vega-component-BLnVJ-8J.js +0 -1
  135. package/dist/assets/worker-BbdB3qWL.js +0 -1
  136. package/dist/assets/worker-CnoOKJWk.js +0 -1
  137. package/dist/assets/xychartDiagram-VJFVF3MP-_9ixqRL2.js +0 -7
  138. /package/dist/assets/{shutdown-button-C1rhMrxo.css → links-C1rhMrxo.css} +0 -0
@@ -1,2 +0,0 @@
1
- import{_ as a,l as e,I as s,d as p,K as n}from"./mermaid-CwhZbs51.js";import{p as m}from"./radar-MK3ICKWK-Bxa1jhec.js";import"./index-DITk7HL4.js";import"./transform-DetRMEbJ.js";import"./timer-Bqd5yn_a.js";import"./step-BwsUM5iJ.js";import"./_baseEach-BZRDjF1G.js";import"./_baseUniq-C6iB6ndc.js";import"./min-AWTPkpvW.js";import"./_baseMap-b6pESN37.js";import"./clone-De7T0DNm.js";import"./_createAggregator-CYc3R5V9.js";var d={parse:a(async r=>{const t=await m("info",r);e.debug(t)},"parse")},g={version:n.version},v={parser:d,db:{getVersion:a(()=>g.version,"getVersion")},renderer:{draw:a((r,t,i)=>{e.debug(`rendering info diagram
2
- `+r);const o=s(t);p(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw")}};export{v as diagram};
@@ -1,138 +0,0 @@
1
- import{a as ut,g as J,f as pt,d as yt}from"./chunk-D6G4REZN-DZQFfclG.js";import{_ as s,g as dt,s as ft,a as gt,b as mt,q as xt,p as kt,c as A,d as _t,y as bt}from"./mermaid-CwhZbs51.js";import{s as K}from"./transform-DetRMEbJ.js";import{d as Q}from"./arc-CfyY4LWz.js";import"./index-DITk7HL4.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var z=function(){var t=s(function(n,p,a,u){for(a=a||{},u=n.length;u--;a[n[u]]=p);return a},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],l=[1,10],i=[1,11],o=[1,12],h=[1,13],d=[1,14],y={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(n,p,a,u,f,c,v){var x=c.length-1;switch(f){case 1:return c[x-1];case 2:case 6:case 7:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 8:u.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:u.addTask(c[x-1],c[x]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:l,14:i,16:o,17:h,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:l,14:i,16:o,17:h,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(n,p){if(!p.recoverable){var a=new Error(n);throw a.hash=p,a}this.trace(n)},"parseError"),parse:s(function(n){var p=this,a=[0],u=[],f=[null],c=[],v=this.table,x="",L=0,X=0,lt=c.slice.call(arguments,1),k=Object.create(this.lexer),M={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(M.yy[N]=this.yy[N]);k.setInput(n,M.yy),M.yy.lexer=k,M.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var R=k.yylloc;c.push(R);var ht=k.options&&k.options.ranges;function G(){var w;return typeof(w=u.pop()||k.lex()||1)!="number"&&(w instanceof Array&&(w=(u=w).pop()),w=p.symbols_[w]||w),w}typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(w){a.length=a.length-2*w,f.length=f.length-w,c.length=c.length-w},"popStack"),s(G,"lex");for(var _,E,b,U,O,T,H,B,P={};;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:(_==null&&(_=G()),b=v[E]&&v[E][_]),b===void 0||!b.length||!b[0]){var Z="";for(O in B=[],v[E])this.terminals_[O]&&O>2&&B.push("'"+this.terminals_[O]+"'");Z=k.showPosition?"Parse error on line "+(L+1)+`:
2
- `+k.showPosition()+`
3
- Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(L+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:R,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),f.push(k.yytext),c.push(k.yylloc),a.push(b[1]),_=null,X=k.yyleng,x=k.yytext,L=k.yylineno,R=k.yylloc;break;case 2:if(T=this.productions_[b[1]][1],P.$=f[f.length-T],P._$={first_line:c[c.length-(T||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(T||1)].first_column,last_column:c[c.length-1].last_column},ht&&(P._$.range=[c[c.length-(T||1)].range[0],c[c.length-1].range[1]]),(U=this.performAction.apply(P,[x,X,L,M.yy,b[1],f,c].concat(lt)))!==void 0)return U;T&&(a=a.slice(0,-1*T*2),f=f.slice(0,-1*T),c=c.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),f.push(P.$),c.push(P._$),H=v[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},m=function(){return{EOF:1,parseError:s(function(n,p){if(!this.yy.parser)throw new Error(n);this.yy.parser.parseError(n,p)},"parseError"),setInput:s(function(n,p){return this.yy=p||this.yy||{},this._input=n,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:s(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.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),n},"input"),unput:s(function(n){var p=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var u=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),a.length-1&&(this.yylineno-=a.length-1);var f=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:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:s(function(n){this.unput(this.match.slice(n))},"less"),pastInput:s(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var n=this.pastInput(),p=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+p+"^"},"showPosition"),test_match:s(function(n,p){var a,u,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),(u=n[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var c in f)this[c]=f[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var n,p,a,u;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),c=0;c<f.length;c++)if((a=this._input.match(this.rules[f[c]]))&&(!p||a[0].length>p[0].length)){if(p=a,u=c,this.options.backtrack_lexer){if((n=this.test_match(a,f[c]))!==!1)return n;if(this._backtrack){p=!1;continue}return!1}if(!this.options.flex)break}return p?(n=this.test_match(p,f[u]))!==!1&&n: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:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,p,a,u){switch(a){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\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,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}}();function g(){this.yy={}}return y.lexer=m,s(g,"Parser"),g.prototype=y,y.Parser=g,new g}();z.parser=z;var wt=z,C="",Y=[],j=[],V=[],$t=s(function(){Y.length=0,j.length=0,C="",V.length=0,bt()},"clear"),vt=s(function(t){C=t,Y.push(t)},"addSection"),Tt=s(function(){return Y},"getSections"),St=s(function(){let t=tt(),e=0;for(;!t&&e<100;)t=tt(),e++;return j.push(...V),j},"getTasks"),Mt=s(function(){const t=[];return j.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),Et=s(function(t,e){const r=e.substr(1).split(":");let l=0,i=[];r.length===1?(l=Number(r[0]),i=[]):(l=Number(r[0]),i=r[1].split(","));const o=i.map(d=>d.trim()),h={section:C,type:C,people:o,task:t,score:l};V.push(h)},"addTask"),At=s(function(t){const e={section:C,type:C,description:t,task:t,classes:[]};j.push(e)},"addTaskOrg"),tt=s(function(){const t=s(function(r){return V[r].processed},"compileTask");let e=!0;for(const[r,l]of V.entries())t(r),e=e&&l.processed;return e},"compileTasks"),It=s(function(){return Mt()},"getActors"),et={getConfig:s(()=>A().journey,"getConfig"),clear:$t,setDiagramTitle:kt,getDiagramTitle:xt,setAccTitle:mt,getAccTitle:gt,setAccDescription:ft,getAccDescription:dt,addSection:vt,getSections:Tt,getTasks:St,addTask:Et,addTaskOrg:At,getActors:It},Pt=s(t=>`.label {
7
- font-family: ${t.fontFamily};
8
- color: ${t.textColor};
9
- }
10
- .mouth {
11
- stroke: #666;
12
- }
13
-
14
- line {
15
- stroke: ${t.textColor}
16
- }
17
-
18
- .legend {
19
- fill: ${t.textColor};
20
- font-family: ${t.fontFamily};
21
- }
22
-
23
- .label text {
24
- fill: #333;
25
- }
26
- .label {
27
- color: ${t.textColor}
28
- }
29
-
30
- .face {
31
- ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
32
- stroke: #999;
33
- }
34
-
35
- .node rect,
36
- .node circle,
37
- .node ellipse,
38
- .node polygon,
39
- .node path {
40
- fill: ${t.mainBkg};
41
- stroke: ${t.nodeBorder};
42
- stroke-width: 1px;
43
- }
44
-
45
- .node .label {
46
- text-align: center;
47
- }
48
- .node.clickable {
49
- cursor: pointer;
50
- }
51
-
52
- .arrowheadPath {
53
- fill: ${t.arrowheadColor};
54
- }
55
-
56
- .edgePath .path {
57
- stroke: ${t.lineColor};
58
- stroke-width: 1.5px;
59
- }
60
-
61
- .flowchart-link {
62
- stroke: ${t.lineColor};
63
- fill: none;
64
- }
65
-
66
- .edgeLabel {
67
- background-color: ${t.edgeLabelBackground};
68
- rect {
69
- opacity: 0.5;
70
- }
71
- text-align: center;
72
- }
73
-
74
- .cluster rect {
75
- }
76
-
77
- .cluster text {
78
- fill: ${t.titleColor};
79
- }
80
-
81
- div.mermaidTooltip {
82
- position: absolute;
83
- text-align: center;
84
- max-width: 200px;
85
- padding: 2px;
86
- font-family: ${t.fontFamily};
87
- font-size: 12px;
88
- background: ${t.tertiaryColor};
89
- border: 1px solid ${t.border2};
90
- border-radius: 2px;
91
- pointer-events: none;
92
- z-index: 100;
93
- }
94
-
95
- .task-type-0, .section-type-0 {
96
- ${t.fillType0?`fill: ${t.fillType0}`:""};
97
- }
98
- .task-type-1, .section-type-1 {
99
- ${t.fillType0?`fill: ${t.fillType1}`:""};
100
- }
101
- .task-type-2, .section-type-2 {
102
- ${t.fillType0?`fill: ${t.fillType2}`:""};
103
- }
104
- .task-type-3, .section-type-3 {
105
- ${t.fillType0?`fill: ${t.fillType3}`:""};
106
- }
107
- .task-type-4, .section-type-4 {
108
- ${t.fillType0?`fill: ${t.fillType4}`:""};
109
- }
110
- .task-type-5, .section-type-5 {
111
- ${t.fillType0?`fill: ${t.fillType5}`:""};
112
- }
113
- .task-type-6, .section-type-6 {
114
- ${t.fillType0?`fill: ${t.fillType6}`:""};
115
- }
116
- .task-type-7, .section-type-7 {
117
- ${t.fillType0?`fill: ${t.fillType7}`:""};
118
- }
119
-
120
- .actor-0 {
121
- ${t.actor0?`fill: ${t.actor0}`:""};
122
- }
123
- .actor-1 {
124
- ${t.actor1?`fill: ${t.actor1}`:""};
125
- }
126
- .actor-2 {
127
- ${t.actor2?`fill: ${t.actor2}`:""};
128
- }
129
- .actor-3 {
130
- ${t.actor3?`fill: ${t.actor3}`:""};
131
- }
132
- .actor-4 {
133
- ${t.actor4?`fill: ${t.actor4}`:""};
134
- }
135
- .actor-5 {
136
- ${t.actor5?`fill: ${t.actor5}`:""};
137
- }
138
- `,"getStyles"),q=s(function(t,e){return yt(t,e)},"drawRect"),Ct=s(function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");function o(y){const m=Q().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function h(y){const m=Q().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function d(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s(o,"smile"),s(h,"sad"),s(d,"ambivalent"),e.score>3?o(i):e.score<3?h(i):d(i),l},"drawFace"),nt=s(function(t,e){const r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),it=s(function(t,e){return pt(t,e)},"drawText"),jt=s(function(t,e){function r(i,o,h,d,y){return i+","+o+" "+(i+h)+","+o+" "+(i+h)+","+(o+d-y)+" "+(i+h-1.2*y)+","+(o+d)+" "+i+","+(o+d)}s(r,"genPoints");const l=t.append("polygon");l.attr("points",r(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,it(t,e)},"drawLabel"),Vt=s(function(t,e,r){const l=t.append("g"),i=J();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,q(l,i),at(r)(e.text,l,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),st=-1,Ft=s(function(t,e,r){const l=e.x+r.width/2,i=t.append("g");st++,i.append("line").attr("id","task"+st).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ct(i,{cx:l,cy:300+30*(5-e.score),score:e.score});const o=J();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,q(i,o);let h=e.x+14;e.people.forEach(d=>{const y=e.actors[d].color,m={cx:h,cy:e.y,r:7,fill:y,stroke:"#000",title:d,pos:e.actors[d].position};nt(i,m),h+=10}),at(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),Lt=s(function(t,e){ut(t,e)},"drawBackgroundRect"),at=function(){function t(i,o,h,d,y,m,g,n){l(o.append("text").attr("x",h+y/2).attr("y",d+m/2+5).style("font-color",n).style("text-anchor","middle").text(i),g)}function e(i,o,h,d,y,m,g,n,p){const{taskFontSize:a,taskFontFamily:u}=n,f=i.split(/<br\s*\/?>/gi);for(let c=0;c<f.length;c++){const v=c*a-a*(f.length-1)/2,x=o.append("text").attr("x",h+y/2).attr("y",d).attr("fill",p).style("text-anchor","middle").style("font-size",a).style("font-family",u);x.append("tspan").attr("x",h+y/2).attr("dy",v).text(f[c]),x.attr("y",d+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(x,g)}}function r(i,o,h,d,y,m,g,n){const p=o.append("switch"),a=p.append("foreignObject").attr("x",h).attr("y",d).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,p,h,d,y,m,g,n),l(a,g)}function l(i,o){for(const h in o)h in o&&i.attr(h,o[h])}return s(t,"byText"),s(e,"byTspan"),s(r,"byFo"),s(l,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?r:i.textPlacement==="old"?t:e}}(),F={drawRect:q,drawCircle:nt,drawSection:Vt,drawText:it,drawLabel:jt,drawTask:Ft,drawBackgroundRect:Lt,initGraphics:s(function(t){t.append("defs").append("marker").attr("id","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")},Ot=s(function(t){Object.keys(t).forEach(function(e){D[e]=t[e]})},"setConf"),S={};function rt(t){const e=A().journey;let r=60;Object.keys(S).forEach(l=>{const i=S[l].color,o={cx:20,cy:r,r:7,fill:i,stroke:"#000",pos:S[l].position};F.drawCircle(t,o);const h={x:40,y:r+7,fill:"#666",text:l,textMargin:5|e.boxTextMargin};F.drawText(t,h),r+=20})}s(rt,"drawActorLegend");var D=A().journey,I=D.leftMargin,Bt=s(function(t,e,r,l){const i=A().journey,o=A().securityLevel;let h;o==="sandbox"&&(h=K("#i"+e));const d=K(o==="sandbox"?h.nodes()[0].contentDocument.body:"body");$.init();const y=d.select("#"+e);F.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),n=l.db.getActors();for(const v in S)delete S[v];let p=0;n.forEach(v=>{S[v]={color:i.actorColours[p%i.actorColours.length],position:p},p++}),rt(y),$.insert(0,0,I,50*Object.keys(S).length),Dt(y,m,0);const a=$.getBounds();g&&y.append("text").text(g).attr("x",I).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const u=a.stopy-a.starty+2*i.diagramMarginY,f=I+a.stopx+2*i.diagramMarginX;_t(y,u,f,i.useMaxWidth),y.append("line").attr("x1",I).attr("y1",4*i.height).attr("x2",f-I-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const c=g?70:0;y.attr("viewBox",`${a.startx} -25 ${f} ${u+c}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",u+c+25)},"draw"),$={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,r,l){t[e]===void 0?t[e]=r:t[e]=l(r,t[e])},"updateVal"),updateBounds:s(function(t,e,r,l){const i=A().journey,o=this;let h=0;function d(y){return s(function(m){h++;const g=o.sequenceItems.length-h+1;o.updateVal(m,"starty",e-g*i.boxMargin,Math.min),o.updateVal(m,"stopy",l+g*i.boxMargin,Math.max),o.updateVal($.data,"startx",t-g*i.boxMargin,Math.min),o.updateVal($.data,"stopx",r+g*i.boxMargin,Math.max),y!=="activation"&&(o.updateVal(m,"startx",t-g*i.boxMargin,Math.min),o.updateVal(m,"stopx",r+g*i.boxMargin,Math.max),o.updateVal($.data,"starty",e-g*i.boxMargin,Math.min),o.updateVal($.data,"stopy",l+g*i.boxMargin,Math.max))},"updateItemBounds")}s(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:s(function(t,e,r,l){const i=Math.min(t,r),o=Math.max(t,r),h=Math.min(e,l),d=Math.max(e,l);this.updateVal($.data,"startx",i,Math.min),this.updateVal($.data,"starty",h,Math.min),this.updateVal($.data,"stopx",o,Math.max),this.updateVal($.data,"stopy",d,Math.max),this.updateBounds(i,h,o,d)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},W=D.sectionFills,ot=D.sectionColours,Dt=s(function(t,e,r){const l=A().journey;let i="";const o=r+(2*l.height+l.diagramMarginY);let h=0,d="#CCC",y="black",m=0;for(const[g,n]of e.entries()){if(i!==n.section){d=W[h%W.length],m=h%W.length,y=ot[h%ot.length];let a=0;const u=n.section;for(let c=g;c<e.length&&e[c].section==u;c++)a+=1;const f={x:g*l.taskMargin+g*l.width+I,y:50,text:n.section,fill:d,num:m,colour:y,taskCount:a};F.drawSection(t,f,l),i=n.section,h++}const p=n.people.reduce((a,u)=>(S[u]&&(a[u]=S[u]),a),{});n.x=g*l.taskMargin+g*l.width+I,n.y=o,n.width=l.diagramMarginX,n.height=l.diagramMarginY,n.colour=y,n.fill=d,n.num=m,n.actors=p,F.drawTask(t,n,l),$.insert(n.x,n.y,n.x+n.width+l.taskMargin,450)}},"drawTasks"),ct={setConf:Ot,draw:Bt},Nt={parser:wt,db:et,renderer:ct,styles:Pt,init:s(t=>{ct.setConf(t.journey),et.clear()},"init")};export{Nt as diagram};
@@ -1 +0,0 @@
1
- import{c as K,i as v,a as w,b as G,f as A}from"./timer-Bqd5yn_a.js";import{by as d,cx as J,bH as L,cy as P,cz as Q,cA as U,cB as W,cC as X,cD as Y,cE as Z,cF as _}from"./index-DITk7HL4.js";import{i as $}from"./init-DLRA0X12.js";function k(n){return n===null?NaN:+n}function*nn(n,r){if(r===void 0)for(let t of n)t!=null&&(t=+t)>=t&&(yield t);else{let t=-1;for(let e of n)(e=r(e,++t,n))!=null&&(e=+e)>=e&&(yield e)}}const x=d(J),D=x.right,tn=x.left;function y(n,r){r||(r=[]);var t,e=n?Math.min(r.length,n.length):0,a=r.slice();return function(i){for(t=0;t<e;++t)a[t]=n[t]*(1-i)+r[t]*i;return a}}function j(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function rn(n,r){return(j(r)?y:B)(n,r)}function B(n,r){var t,e=r?r.length:0,a=n?Math.min(e,n.length):0,i=new Array(a),u=new Array(e);for(t=0;t<a;++t)i[t]=p(n[t],r[t]);for(;t<e;++t)u[t]=r[t];return function(c){for(t=0;t<a;++t)u[t]=i[t](c);return u}}function F(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function V(n,r){var t,e={},a={};for(t in n!==null&&typeof n=="object"||(n={}),r!==null&&typeof r=="object"||(r={}),r)t in n?e[t]=p(n[t],r[t]):a[t]=r[t];return function(i){for(t in e)a[t]=e[t](i);return a}}function p(n,r){var t,e=typeof r;return r==null||e==="boolean"?K(r):(e==="number"?v:e==="string"?(t=A(r))?(r=t,w):G:r instanceof A?w:r instanceof Date?F:j(r)?y:Array.isArray(r)?B:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?V:v)(n,r)}function q(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function z(n){return+n}d(k).center;var C=[0,1];function g(n){return n}function M(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:(t=isNaN(r)?NaN:.5,function(){return t});var t}function en(n,r,t){var e=n[0],a=n[1],i=r[0],u=r[1];return a<e?(e=M(a,e),i=t(u,i)):(e=M(e,a),i=t(i,u)),function(c){return i(e(c))}}function an(n,r,t){var e=Math.min(n.length,r.length)-1,a=new Array(e),i=new Array(e),u=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++u<e;)a[u]=M(n[u],n[u+1]),i[u]=t(r[u],r[u+1]);return function(c){var f=D(n,c,1,e)-1;return i[f](a[f](c))}}function E(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function H(){var n,r,t,e,a,i,u=C,c=C,f=p,s=g;function h(){var o,m,N,b=Math.min(u.length,c.length);return s!==g&&(o=u[0],m=u[b-1],o>m&&(N=o,o=m,m=N),s=function(I){return Math.max(o,Math.min(m,I))}),e=b>2?an:en,a=i=null,l}function l(o){return o==null||isNaN(o=+o)?t:(a||(a=e(u.map(n),c,f)))(n(s(o)))}return l.invert=function(o){return s(r((i||(i=e(c,u.map(n),v)))(o)))},l.domain=function(o){return arguments.length?(u=Array.from(o,z),h()):u.slice()},l.range=function(o){return arguments.length?(c=Array.from(o),h()):c.slice()},l.rangeRound=function(o){return c=Array.from(o),f=q,h()},l.clamp=function(o){return arguments.length?(s=!!o||g,h()):s!==g},l.interpolate=function(o){return arguments.length?(f=o,h()):f},l.unknown=function(o){return arguments.length?(t=o,l):t},function(o,m){return n=o,r=m,h()}}function O(){return H()(g,g)}function R(n,r,t,e){var a,i=L(n,r,t);switch((e=P(e??",f")).type){case"s":var u=Math.max(Math.abs(n),Math.abs(r));return e.precision!=null||isNaN(a=W(i,u))||(e.precision=a),X(e,u);case"":case"e":case"g":case"p":case"r":e.precision!=null||isNaN(a=U(i,Math.max(Math.abs(n),Math.abs(r))))||(e.precision=a-(e.type==="e"));break;case"f":case"%":e.precision!=null||isNaN(a=Q(i))||(e.precision=a-2*(e.type==="%"))}return Y(e)}function S(n){var r=n.domain;return n.ticks=function(t){var e=r();return Z(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var a=r();return R(a[0],a[a.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e,a,i=r(),u=0,c=i.length-1,f=i[u],s=i[c],h=10;for(s<f&&(a=f,f=s,s=a,a=u,u=c,c=a);h-- >0;){if((a=_(f,s,t))===e)return i[u]=f,i[c]=s,r(i);if(a>0)f=Math.floor(f/a)*a,s=Math.ceil(s/a)*a;else{if(!(a<0))break;f=Math.ceil(f*a)/a,s=Math.floor(s*a)/a}e=a}return n},n}function T(){var n=O();return n.copy=function(){return E(n,T())},$.apply(n,arguments),S(n)}export{E as a,k as b,O as c,rn as d,F as e,y as f,q as g,z as h,p as i,S as j,g as k,T as l,D as m,nn as n,V as o,R as p,tn as q,H as t};