pilotswarm 0.5.76 → 0.5.77
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/package.json +2 -2
- package/ui/core/src/controller.js +4 -1
- package/ui/react/src/web-app.js +103 -39
- package/web/dist/assets/{abnfDiagram-VRR7QNED-DHZAKybB.js → abnfDiagram-VRR7QNED-CKO_DwJV.js} +1 -1
- package/web/dist/assets/{arc-Bw0S8L-3.js → arc-DNYWrpvl.js} +1 -1
- package/web/dist/assets/{architectureDiagram-ZJ3FMSHR-CIdYlIBv.js → architectureDiagram-ZJ3FMSHR-BuYVWnLH.js} +1 -1
- package/web/dist/assets/{blockDiagram-677ZJIJ3-D9PkQfSJ.js → blockDiagram-677ZJIJ3-Cl_IMZqi.js} +1 -1
- package/web/dist/assets/{c4Diagram-LMCZKHZV-D9YbJQu6.js → c4Diagram-LMCZKHZV-Dp8EWK6S.js} +1 -1
- package/web/dist/assets/channel-DTKy7mHi.js +1 -0
- package/web/dist/assets/{chunk-2Q5K7J3B-BTdwvy5p.js → chunk-2Q5K7J3B-Dja0nryh.js} +1 -1
- package/web/dist/assets/{chunk-32BRIVSS--ow0RNjy.js → chunk-32BRIVSS-BfmHxlTO.js} +1 -1
- package/web/dist/assets/{chunk-5VM5RSS4-DXsS8QVF.js → chunk-5VM5RSS4-DJ3zmwrq.js} +1 -1
- package/web/dist/assets/{chunk-EX3LRPZG-HKSF2xwD.js → chunk-EX3LRPZG-B6SN8xEo.js} +1 -1
- package/web/dist/assets/{chunk-JWPE2WC7-DY6_m3mf.js → chunk-JWPE2WC7-Dlgqhr3G.js} +1 -1
- package/web/dist/assets/{chunk-MOJQB5TN-B-y9e9g1.js → chunk-MOJQB5TN-Dn-J2ayj.js} +1 -1
- package/web/dist/assets/{chunk-RYQCIY6F-UK1vqINl.js → chunk-RYQCIY6F-Af9a3V0M.js} +1 -1
- package/web/dist/assets/{chunk-V7JOEXUC-8KQ7DOjY.js → chunk-V7JOEXUC-M3md4NxL.js} +1 -1
- package/web/dist/assets/{chunk-VR4S4FIN-CkDJLoRb.js → chunk-VR4S4FIN-ee4UcZX-.js} +1 -1
- package/web/dist/assets/{chunk-XXDRQBXY-DrvpqdcI.js → chunk-XXDRQBXY-C1o9OH3_.js} +1 -1
- package/web/dist/assets/classDiagram-OUVF2IWQ-MfqAYpCn.js +1 -0
- package/web/dist/assets/classDiagram-v2-EOCWNBFH-MfqAYpCn.js +1 -0
- package/web/dist/assets/{cose-bilkent-JH36ORCC-BZimjiO7.js → cose-bilkent-JH36ORCC-CRxjVQDN.js} +1 -1
- package/web/dist/assets/{cynefin-VYW2F7L2-DgXpH0xt.js → cynefin-VYW2F7L2-MSAXYGkZ.js} +1 -1
- package/web/dist/assets/{cynefinDiagram-TSTJHNR4-GhvhOnjl.js → cynefinDiagram-TSTJHNR4-BPutBNN1.js} +1 -1
- package/web/dist/assets/{dagre-VKFMJZFB-_likmiuO.js → dagre-VKFMJZFB-_W1WeW3E.js} +1 -1
- package/web/dist/assets/{diagram-FQU43EPY-DQctGbIk.js → diagram-FQU43EPY-DT_0zQl9.js} +1 -1
- package/web/dist/assets/{diagram-G47NLZAW-FVvT1dxp.js → diagram-G47NLZAW-HBy_Ck1W.js} +1 -1
- package/web/dist/assets/{diagram-NH7WQ7WH-Xg1HHD3c.js → diagram-NH7WQ7WH-DyQQlTUp.js} +1 -1
- package/web/dist/assets/{diagram-OA4YK3LP-BcQiRMrv.js → diagram-OA4YK3LP-LJ7WYOVk.js} +1 -1
- package/web/dist/assets/{diagram-WEI45ONY-PB48iGxu.js → diagram-WEI45ONY-B83fa0oq.js} +1 -1
- package/web/dist/assets/{ebnfDiagram-CCIWWBDH-Cl3gvgL7.js → ebnfDiagram-CCIWWBDH-ZbAvBv6c.js} +1 -1
- package/web/dist/assets/{erDiagram-Q63AITRT-BqTsMK1r.js → erDiagram-Q63AITRT-BNe1kdom.js} +1 -1
- package/web/dist/assets/{flowDiagram-23GEKE2U-Defo8220.js → flowDiagram-23GEKE2U-DDlbRR4H.js} +1 -1
- package/web/dist/assets/{ganttDiagram-NO4QXBWP-BNS92EuV.js → ganttDiagram-NO4QXBWP-DRvGvhmv.js} +1 -1
- package/web/dist/assets/{gitGraphDiagram-IHSO6WYX-BY0WUkLV.js → gitGraphDiagram-IHSO6WYX-Bj5CkOw6.js} +1 -1
- package/web/dist/assets/index-CVQyeZNA.js +24 -0
- package/web/dist/assets/index-mtWlthKI.css +1 -0
- package/web/dist/assets/{infoDiagram-FWYZ7A6U-DAslesLk.js → infoDiagram-FWYZ7A6U-BB-pO5BG.js} +1 -1
- package/web/dist/assets/{ishikawaDiagram-FXEZZL3T-DRqAlMhQ.js → ishikawaDiagram-FXEZZL3T-fplKz6J9.js} +1 -1
- package/web/dist/assets/{journeyDiagram-5HDEW3XC-cZgLClOz.js → journeyDiagram-5HDEW3XC-CZXJ9si6.js} +1 -1
- package/web/dist/assets/{kanban-definition-HUTT4EX6-CE-eXw4K.js → kanban-definition-HUTT4EX6-CL9u5Pmv.js} +1 -1
- package/web/dist/assets/{linear-CZiOQoKS.js → linear-WwQWwN2U.js} +1 -1
- package/web/dist/assets/{mermaid.core-AH4mlith.js → mermaid.core-1gBc6FeB.js} +4 -4
- package/web/dist/assets/{mindmap-definition-LN4V7U3C-BNghnDqd.js → mindmap-definition-LN4V7U3C-CtKgb3BP.js} +1 -1
- package/web/dist/assets/{papaparse.min-DVijrOyx.js → papaparse.min-Dk5F4KnO.js} +1 -1
- package/web/dist/assets/{pegDiagram-2B236MQR-DoRp-9Zp.js → pegDiagram-2B236MQR-rkKhqRQO.js} +1 -1
- package/web/dist/assets/{pieDiagram-ENE6RG2P-H2Em8U8J.js → pieDiagram-ENE6RG2P-VfaXje3o.js} +1 -1
- package/web/dist/assets/{pilotswarm-CN9fLEV0.js → pilotswarm-BvFGjArK.js} +66 -66
- package/web/dist/assets/{quadrantDiagram-ABIIQ3AL-CvUqxqnx.js → quadrantDiagram-ABIIQ3AL-Cw6aMTCy.js} +1 -1
- package/web/dist/assets/{railroadDiagram-RFXS5EU6-tQwCHxpV.js → railroadDiagram-RFXS5EU6-Dju0kwmP.js} +1 -1
- package/web/dist/assets/{requirementDiagram-TGXJPOKE-D2wuvVrI.js → requirementDiagram-TGXJPOKE-BbyvxgRb.js} +1 -1
- package/web/dist/assets/{sankeyDiagram-HTMAVEWB-C4r0hO5k.js → sankeyDiagram-HTMAVEWB-Do_VdVhS.js} +1 -1
- package/web/dist/assets/{sequenceDiagram-DBY2YBRQ-DCdGwm9a.js → sequenceDiagram-DBY2YBRQ-CKqDjXwf.js} +1 -1
- package/web/dist/assets/{sizeCapture-X5ZJPWSS-BjRhMoeP.js → sizeCapture-X5ZJPWSS-sVG1J5D7.js} +1 -1
- package/web/dist/assets/{stateDiagram-2N3HPSRC-biMUw9ek.js → stateDiagram-2N3HPSRC-CfjQilyb.js} +1 -1
- package/web/dist/assets/stateDiagram-v2-6OUMAXLB-CYw2jLW6.js +1 -0
- package/web/dist/assets/{swimlanes-5IMT3BWC-BItVHm4_.js → swimlanes-5IMT3BWC-Csum4YeF.js} +2 -2
- package/web/dist/assets/swimlanesDiagram-G3AALYLV-CbG-9P20.js +8 -0
- package/web/dist/assets/{timeline-definition-FHXFAJF6-CC39ef73.js → timeline-definition-FHXFAJF6-Cw6UCQjz.js} +1 -1
- package/web/dist/assets/{vennDiagram-L72KCM5P-BgmPqz-h.js → vennDiagram-L72KCM5P-b_571af9.js} +1 -1
- package/web/dist/assets/{wardleyDiagram-EHGQE667-DRNFO87H.js → wardleyDiagram-EHGQE667-DL_0-lVh.js} +1 -1
- package/web/dist/assets/{xychartDiagram-FW5EYKEG-D_VfxQSu.js → xychartDiagram-FW5EYKEG-BqKYzu8y.js} +1 -1
- package/web/dist/index.html +3 -3
- package/web/dist/assets/channel-g-BbN7P5.js +0 -1
- package/web/dist/assets/classDiagram-OUVF2IWQ-BFAQi-H9.js +0 -1
- package/web/dist/assets/classDiagram-v2-EOCWNBFH-BFAQi-H9.js +0 -1
- package/web/dist/assets/index-CSMHeAhZ.css +0 -1
- package/web/dist/assets/index-Q9Y44qRk.js +0 -24
- package/web/dist/assets/stateDiagram-v2-6OUMAXLB-Dv--LJTg.js +0 -1
- package/web/dist/assets/swimlanesDiagram-G3AALYLV-CEULUMiK.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as o,l as te,c as H,D as fe,ad as ye,ae as be,af as me,W as _e,B as K,i as j,G as ke,J as Ee,T as Se,U as ce,V as le}from"./mermaid.core-
|
|
1
|
+
import{_ as o,l as te,c as H,D as fe,ad as ye,ae as be,af as me,W as _e,B as K,i as j,G as ke,J as Ee,T as Se,U as ce,V as le}from"./mermaid.core-1gBc6FeB.js";import{g as Ne}from"./chunk-5VM5RSS4-DJ3zmwrq.js";import"./pilotswarm-BvFGjArK.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],F=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:F}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:F}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(i,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,Q,G={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=M[P]&&M[P][E]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[E]||E,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(x[0]){case 1:r.push(E),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),E=null,se=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],G.$=u[u.length-C],G._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(G._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(G,[c,se,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(G.$),t.push(G._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,r=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b9 as j,ba as p,bb as w,bc as k,bd as q}from"./mermaid.core-
|
|
1
|
+
import{b9 as j,ba as p,bb as w,bc as k,bd as q}from"./mermaid.core-1gBc6FeB.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,f as F,a as z,b as B}from"./defaultLocale-DX6XiGOO.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
|