You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
venv/PyCharm 2025.2.1.1/plugins/python/jupyter-web/1733.js

1 line
22 KiB

"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[1733],{11733:(oe,ut,K)=>{var Y,U,R;K.r(ut),K.d(ut,{diagram:()=>se});var y=K(3685),F=K(31083);function ht(t,e){let i;if(void 0===e)for(const a of t)null!=a&&(i>a||void 0===i&&a>=a)&&(i=a);else{let a=-1;for(let l of t)null!=(l=e(l,++a,t))&&(i>l||void 0===i&&l>=l)&&(i=l)}return i}function vt(t){return t.target.depth}function ft(t,e){return t.sourceLinks.length?t.depth:e-1}function nt(t,e){let i=0;if(void 0===e)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let l of t)(l=+e(l,++a,t))&&(i+=l)}return i}function yt(t,e){let i;if(void 0===e)for(const a of t)null!=a&&(i<a||void 0===i&&a>=a)&&(i=a);else{let a=-1;for(let l of t)null!=(l=e(l,++a,t))&&(i<l||void 0===i&&l>=l)&&(i=l)}return i}function X(t){return function(){return t}}function dt(t,e){return Q(t.source,e.source)||t.index-e.index}function pt(t,e){return Q(t.target,e.target)||t.index-e.index}function Q(t,e){return t.y0-e.y0}function it(t){return t.value}function Lt(t){return t.index}function Et(t){return t.nodes}function Tt(t){return t.links}function gt(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function kt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const l of e.sourceLinks)l.y0=i+l.width/2,i+=l.width;for(const l of e.targetLinks)l.y1=a+l.width/2,a+=l.width}}function Wt(){let p,o,c,t=0,e=0,i=1,a=1,l=24,b=8,k=Lt,r=ft,_=Et,x=Tt,d=6;function v(){const n={nodes:_.apply(null,arguments),links:x.apply(null,arguments)};return A(n),W(n),M(n),C(n),z(n),kt(n),n}function A({nodes:n,links:u}){for(const[f,s]of n.entries())s.index=f,s.sourceLinks=[],s.targetLinks=[];const h=new Map(n.map((f,s)=>[k(f,s,n),f]));for(const[f,s]of u.entries()){s.index=f;let{source:m,target:S}=s;"object"!=typeof m&&(m=s.source=gt(h,m)),"object"!=typeof S&&(S=s.target=gt(h,S)),m.sourceLinks.push(s),S.targetLinks.push(s)}if(null!=c)for(const{sourceLinks:f,targetLinks:s}of n)f.sort(c),s.sort(c)}function W({nodes:n}){for(const u of n)u.value=void 0===u.fixedValue?Math.max(nt(u.sourceLinks,it),nt(u.targetLinks,it)):u.fixedValue}function M({nodes:n}){const u=n.length;let h=new Set(n),f=new Set,s=0;for(;h.size;){for(const m of h){m.depth=s;for(const{target:S}of m.sourceLinks)f.add(S)}if(++s>u)throw new Error("circular link");h=f,f=new Set}}function C({nodes:n}){const u=n.length;let h=new Set(n),f=new Set,s=0;for(;h.size;){for(const m of h){m.height=s;for(const{source:S}of m.targetLinks)f.add(S)}if(++s>u)throw new Error("circular link");h=f,f=new Set}}function z(n){const u=function j({nodes:n}){const u=yt(n,s=>s.depth)+1,h=(i-t-l)/(u-1),f=new Array(u);for(const s of n){const m=Math.max(0,Math.min(u-1,Math.floor(r.call(null,s,u))));s.layer=m,s.x0=t+m*h,s.x1=s.x0+l,f[m]?f[m].push(s):f[m]=[s]}if(o)for(const s of f)s.sort(o);return f}(n);p=Math.min(b,(a-e)/(yt(u,h=>h.length)-1)),function $(n){const u=ht(n,h=>(a-e-(h.length-1)*p)/nt(h,it));for(const h of n){let f=e;for(const s of h){s.y0=f,s.y1=f+s.value*u,f=s.y1+p;for(const m of s.sourceLinks)m.width=m.value*u}f=(a-f+p)/(h.length+1);for(let s=0;s<h.length;++s){const m=h[s];m.y0+=f*(s+1),m.y1+=f*(s+1)}et(h)}}(u);for(let h=0;h<d;++h){const f=Math.pow(.99,h),s=Math.max(1-f,(h+1)/d);N(u,f,s),w(u,f,s)}}function w(n,u,h){for(let f=1,s=n.length;f<s;++f){const m=n[f];for(const S of m){let V=0,P=0;for(const{source:L,value:ct}of S.targetLinks){let H=ct*(S.layer-L.layer);V+=E(L,S)*H,P+=H}if(!(P>0))continue;let D=(V/P-S.y0)*u;S.y0+=D,S.y1+=D,T(S)}void 0===o&&m.sort(Q),O(m,h)}}function N(n,u,h){for(let s=n.length-2;s>=0;--s){const m=n[s];for(const S of m){let V=0,P=0;for(const{target:L,value:ct}of S.sourceLinks){let H=ct*(L.layer-S.layer);V+=G(S,L)*H,P+=H}if(!(P>0))continue;let D=(V/P-S.y0)*u;S.y0+=D,S.y1+=D,T(S)}void 0===o&&m.sort(Q),O(m,h)}}function O(n,u){const h=n.length>>1,f=n[h];g(n,f.y0-p,h-1,u),I(n,f.y1+p,h+1,u),g(n,a,n.length-1,u),I(n,e,0,u)}function I(n,u,h,f){for(;h<n.length;++h){const s=n[h],m=(u-s.y0)*f;m>1e-6&&(s.y0+=m,s.y1+=m),u=s.y1+p}}function g(n,u,h,f){for(;h>=0;--h){const s=n[h],m=(s.y1-u)*f;m>1e-6&&(s.y0-=m,s.y1-=m),u=s.y0-p}}function T({sourceLinks:n,targetLinks:u}){if(void 0===c){for(const{source:{sourceLinks:h}}of u)h.sort(pt);for(const{target:{targetLinks:h}}of n)h.sort(dt)}}function et(n){if(void 0===c)for(const{sourceLinks:u,targetLinks:h}of n)u.sort(pt),h.sort(dt)}function E(n,u){let h=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:f,width:s}of n.sourceLinks){if(f===u)break;h+=s+p}for(const{source:f,width:s}of u.targetLinks){if(f===n)break;h-=s}return h}function G(n,u){let h=u.y0-(u.targetLinks.length-1)*p/2;for(const{source:f,width:s}of u.targetLinks){if(f===n)break;h+=s+p}for(const{target:f,width:s}of n.sourceLinks){if(f===u)break;h-=s}return h}return v.update=function(n){return kt(n),n},v.nodeId=function(n){return arguments.length?(k="function"==typeof n?n:X(n),v):k},v.nodeAlign=function(n){return arguments.length?(r="function"==typeof n?n:X(n),v):r},v.nodeSort=function(n){return arguments.length?(o=n,v):o},v.nodeWidth=function(n){return arguments.length?(l=+n,v):l},v.nodePadding=function(n){return arguments.length?(b=p=+n,v):b},v.nodes=function(n){return arguments.length?(_="function"==typeof n?n:X(n),v):_},v.links=function(n){return arguments.length?(x="function"==typeof n?n:X(n),v):x},v.linkSort=function(n){return arguments.length?(c=n,v):c},v.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],v):[i-t,a-e]},v.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],v):[[t,e],[i,a]]},v.iterations=function(n){return arguments.length?(d=+n,v):d},v}var rt=Math.PI,st=2*rt,B=1e-6,At=st-B;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,l,b){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+l)+","+(this._y1=+b)},arcTo:function(t,e,i,a,l){t=+t,e=+e,i=+i,a=+a,l=+l;var b=this._x1,p=this._y1,k=i-t,r=a-e,o=b-t,c=p-e,_=o*o+c*c;if(l<0)throw new Error("negative radius: "+l);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(_>B)if(Math.abs(c*k-r*o)>B&&l){var x=i-b,d=a-p,v=k*k+r*r,A=x*x+d*d,W=Math.sqrt(v),M=Math.sqrt(_),C=l*Math.tan((rt-Math.acos((v+_-A)/(2*W*M)))/2),j=C/M,$=C/W;Math.abs(j-1)>B&&(this._+="L"+(t+j*o)+","+(e+j*c)),this._+="A"+l+","+l+",0,0,"+ +(c*x>o*d)+","+(this._x1=t+$*k)+","+(this._y1=e+$*r)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,a,l,b){t=+t,e=+e,b=!!b;var p=(i=+i)*Math.cos(a),k=i*Math.sin(a),r=t+p,o=e+k,c=1^b,_=b?a-l:l-a;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+r+","+o:(Math.abs(this._x1-r)>B||Math.abs(this._y1-o)>B)&&(this._+="L"+r+","+o),i&&(_<0&&(_=_%st+st),_>At?this._+="A"+i+","+i+",0,1,"+c+","+(t-p)+","+(e-k)+"A"+i+","+i+",0,1,"+c+","+(this._x1=r)+","+(this._y1=o):_>B&&(this._+="A"+i+","+i+",0,"+ +(_>=rt)+","+c+","+(this._x1=t+i*Math.cos(l))+","+(this._y1=e+i*Math.sin(l))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};const Mt=mt;var Nt=Array.prototype.slice;function _t(t){return function(){return t}}function It(t){return t[0]}function Pt(t){return t[1]}function Ct(t){return t.source}function Ot(t){return t.target}function at(t){var e=Ct,i=Ot,a=It,l=Pt,b=null;function p(){var k,r=Nt.call(arguments),o=e.apply(this,r),c=i.apply(this,r);if(b||(b=k=Mt()),t(b,+a.apply(this,(r[0]=o,r)),+l.apply(this,r),+a.apply(this,(r[0]=c,r)),+l.apply(this,r)),k)return b=null,k+""||null}return p.source=function(k){return arguments.length?(e=k,p):e},p.target=function(k){return arguments.length?(i=k,p):i},p.x=function(k){return arguments.length?(a="function"==typeof k?k:_t(+k),p):a},p.y=function(k){return arguments.length?(l="function"==typeof k?k:_t(+k),p):l},p.context=function(k){return arguments.length?(b=k??null,p):b},p}function jt(t,e,i,a,l){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,l,a,l)}function $t(t){return[t.source.x1,t.y0]}function Vt(t){return[t.target.x0,t.y1]}function Bt(){return function Rt(){return at(jt)}().source($t).target(Vt)}var lt=function(){var t=(0,y.eW)(function(k,r,o,c){for(o=o||{},c=k.length;c--;o[k[c]]=r);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],l={trace:(0,y.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,y.eW)(function(r,o,c,_,x,d,v){var A=d.length-1;switch(x){case 7:const W=_.findOrCreateNode(d[A-4].trim().replaceAll('""','"')),M=_.findOrCreateNode(d[A-2].trim().replaceAll('""','"')),C=parseFloat(d[A].trim());_.addLink(W,M,C);break;case 8:case 9:case 11:this.$=d[A];break;case 10:this.$=d[A-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,y.eW)(function(r,o){if(!o.recoverable){var c=new Error(r);throw c.hash=o,c}this.trace(r)},"parseError"),parse:(0,y.eW)(function(r){var o=this,c=[0],_=[],x=[null],d=[],v=this.table,A="",W=0,M=0,C=0,j=2,$=1,z=d.slice.call(arguments,1),w=Object.create(this.lexer),N={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(N.yy[O]=this.yy[O]);w.setInput(r,N.yy),N.yy.lexer=w,N.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var I=w.yylloc;d.push(I);var g=w.options&&w.options.ranges;function T(L){c.length=c.length-2*L,x.length=x.length-L,d.length=d.length-L}function et(){var L;return"number"!=typeof(L=_.pop()||w.lex()||$)&&(L instanceof Array&&(L=(_=L).pop()),L=o.symbols_[L]||L),L}"function"==typeof N.yy.parseError?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,y.eW)(T,"popStack"),(0,y.eW)(et,"lex");for(var E,G,n,u,f,m,S,V,P,s={};;){if(n=c[c.length-1],this.defaultActions[n]?u=this.defaultActions[n]:((null===E||typeof E>"u")&&(E=et()),u=v[n]&&v[n][E]),typeof u>"u"||!u.length||!u[0]){var D="";for(m in P=[],v[n])this.terminals_[m]&&m>j&&P.push("'"+this.terminals_[m]+"'");D=w.showPosition?"Parse error on line "+(W+1)+":\n"+w.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(W+1)+": Unexpected "+(E==$?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(D,{text:w.match,token:this.terminals_[E]||E,line:w.yylineno,loc:I,expected:P})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+n+", token: "+E);switch(u[0]){case 1:c.push(E),x.push(w.yytext),d.push(w.yylloc),c.push(u[1]),E=null,G?(E=G,G=null):(M=w.yyleng,A=w.yytext,W=w.yylineno,I=w.yylloc,C>0&&C--);break;case 2:if(S=this.productions_[u[1]][1],s.$=x[x.length-S],s._$={first_line:d[d.length-(S||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(S||1)].first_column,last_column:d[d.length-1].last_column},g&&(s._$.range=[d[d.length-(S||1)].range[0],d[d.length-1].range[1]]),typeof(f=this.performAction.apply(s,[A,M,W,N.yy,u[1],x,d].concat(z)))<"u")return f;S&&(c=c.slice(0,-1*S*2),x=x.slice(0,-1*S),d=d.slice(0,-1*S)),c.push(this.productions_[u[1]][0]),x.push(s.$),d.push(s._$),V=v[c[c.length-2]][c[c.length-1]],c.push(V);break;case 3:return!0}}return!0},"parse")},b=function(){return{EOF:1,parseError:(0,y.eW)(function(o,c){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,c)},"parseError"),setInput:(0,y.eW)(function(r,o){return this.yy=o||this.yy||{},this._input=r,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:(0,y.eW)(function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.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),r},"input"),unput:(0,y.eW)(function(r){var o=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var _=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),c.length-1&&(this.yylineno-=c.length-1);var x=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:c?(c.length===_.length?this.yylloc.first_column:0)+_[_.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:(0,y.eW)(function(){return this._more=!0,this},"more"),reject:(0,y.eW)(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,y.eW)(function(r){this.unput(this.match.slice(r))},"less"),pastInput:(0,y.eW)(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,y.eW)(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,y.eW)(function(){var r=this.pastInput(),o=new Array(r.length+1).join("-");return r+this.upcomingInput()+"\n"+o+"^"},"showPosition"),test_match:(0,y.eW)(function(r,o){var c,_,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),(_=r[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var d in x)this[d]=x[d];return!1}return!1},"test_match"),next:(0,y.eW)(function(){if(this.done)return this.EOF;var r,o,c,_;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),d=0;d<x.length;d++)if((c=this._input.match(this.rules[x[d]]))&&(!o||c[0].length>o[0].length)){if(o=c,_=d,this.options.backtrack_lexer){if(!1!==(r=this.test_match(c,x[d])))return r;if(this._backtrack){o=!1;continue}return!1}if(!this.options.flex)break}return o?!1!==(r=this.test_match(o,x[_]))&&r:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,y.eW)(function(){return this.next()||this.lex()},"lex"),begin:(0,y.eW)(function(o){this.conditionStack.push(o)},"begin"),popState:(0,y.eW)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,y.eW)(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:(0,y.eW)(function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:(0,y.eW)(function(o){this.begin(o)},"pushState"),stateStackSize:(0,y.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,y.eW)(function(o,c,_,x){switch(_){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}}();function p(){this.yy={}}return l.lexer=b,(0,y.eW)(p,"Parser"),p.prototype=l,l.Parser=p,new p}();lt.parser=lt;var Z=lt,J=[],q=[],tt=new Map,Ft=(0,y.eW)(()=>{J=[],q=[],tt=new Map,(0,y.ZH)()},"clear"),Yt=(Y=class{constructor(e,i,a=0){this.source=e,this.target=i,this.value=a}},__name(Y,"SankeyLink"),Y),Ut=(0,y.eW)((t,e,i)=>{J.push(new Yt(t,e,i))},"addLink"),Gt=(U=class{constructor(e){this.ID=e}},__name(U,"SankeyNode"),U),Ht=(0,y.eW)(t=>{t=y.SY.sanitizeText(t,(0,y.nV)());let e=tt.get(t);return void 0===e&&(e=new Gt(t),tt.set(t,e),q.push(e)),e},"findOrCreateNode"),Kt=(0,y.eW)(()=>q,"getNodes"),Xt=(0,y.eW)(()=>J,"getLinks"),Qt=(0,y.eW)(()=>({nodes:q.map(t=>({id:t.ID})),links:J.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),Zt={nodesMap:tt,getConfig:(0,y.eW)(()=>(0,y.nV)().sankey,"getConfig"),getNodes:Kt,getLinks:Xt,getGraph:Qt,addLink:Ut,findOrCreateNode:Ht,getAccTitle:y.eu,setAccTitle:y.GN,getAccDescription:y.Mx,setAccDescription:y.U$,getDiagramTitle:y.Kr,setDiagramTitle:y.g2,clear:Ft},xt=(R=class{static next(e){return new R(e+ ++R.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},__name(R,"Uid"),R.count=0,R),Jt={left:function bt(t){return t.depth},right:function St(t,e){return e-1-t.height},center:function wt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ht(t.sourceLinks,vt)-1:0},justify:ft},te={draw:(0,y.eW)(function(t,e,i,a){const{securityLevel:l,sankey:b}=(0,y.nV)(),p=y.Fy.sankey;let k;"sandbox"===l&&(k=(0,F.Ys)("#i"+e));const r="sandbox"===l?(0,F.Ys)(k.nodes()[0].contentDocument.body):(0,F.Ys)("body"),o="sandbox"===l?r.select(`[id="${e}"]`):(0,F.Ys)(`[id="${e}"]`),c=b?.width??p.width,_=b?.height??p.width,x=b?.useMaxWidth??p.useMaxWidth,d=b?.nodeAlignment??p.nodeAlignment,v=b?.prefix??p.prefix,A=b?.suffix??p.suffix,W=b?.showValues??p.showValues,M=a.db.getGraph(),C=Jt[d];Wt().nodeId(g=>g.id).nodeWidth(10).nodePadding(10+(W?15:0)).nodeAlign(C).extent([[0,0],[c,_]])(M);const z=(0,F.PKp)(F.K2I);o.append("g").attr("class","nodes").selectAll(".node").data(M.nodes).join("g").attr("class","node").attr("id",g=>(g.uid=xt.next("node-")).id).attr("transform",function(g){return"translate("+g.x0+","+g.y0+")"}).attr("x",g=>g.x0).attr("y",g=>g.y0).append("rect").attr("height",g=>g.y1-g.y0).attr("width",g=>g.x1-g.x0).attr("fill",g=>z(g.id));const w=(0,y.eW)(({id:g,value:T})=>W?`${g}\n${v}${Math.round(100*T)/100}${A}`:g,"getText");o.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(M.nodes).join("text").attr("x",g=>g.x0<c/2?g.x1+6:g.x0-6).attr("y",g=>(g.y1+g.y0)/2).attr("dy",(W?"0":"0.35")+"em").attr("text-anchor",g=>g.x0<c/2?"start":"end").text(w);const N=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(M.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),O=b?.linkColor??"gradient";if("gradient"===O){const g=N.append("linearGradient").attr("id",T=>(T.uid=xt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",T=>T.source.x1).attr("x2",T=>T.target.x0);g.append("stop").attr("offset","0%").attr("stop-color",T=>z(T.source.id)),g.append("stop").attr("offset","100%").attr("stop-color",T=>z(T.target.id))}let I;switch(O){case"gradient":I=(0,y.eW)(g=>g.uid,"coloring");break;case"source":I=(0,y.eW)(g=>z(g.source.id),"coloring");break;case"target":I=(0,y.eW)(g=>z(g.target.id),"coloring");break;default:I=O}N.append("path").attr("d",Bt()).attr("stroke",I).attr("stroke-width",g=>Math.max(1,g.width)),(0,y.j7)(void 0,o,0,x)},"draw")},ee=(0,y.eW)(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),ie=(0,y.eW)(t=>`.label {\n font-family: ${t.fontFamily};\n }`,"getStyles"),re=Z.parse.bind(Z);Z.parse=t=>re(ee(t));var se={styles:ie,parser:Z,db:Zt,renderer:te}}}]);