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.

9 lines
1.3 MiB

5 months ago
  1. /*!
  2. Viz.js 3.4.0
  3. Copyright (c) 2023 Michael Daines
  4. This distribution contains other software in object code form:
  5. Graphviz https://www.graphviz.org
  6. Expat https://libexpat.github.io
  7. */
  8. !function(A,I){"object"==typeof exports&&"undefined"!=typeof module?I(exports):"function"==typeof define&&define.amd?define(["exports"],I):I((A="undefined"!=typeof globalThis?globalThis:A||self).Viz={})}(this,(function(A){"use strict";var I=function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var I,g=A;g.ready=new Promise(((A,g)=>{I=A}));var Q,B,C,E,D,w,i,o,G,M,R=A=>console.log(A);function F(A){throw A}function y(){var A=M.buffer;B=new Int8Array(A),C=new Int16Array(A),D=new Uint8Array(A),E=new Int32Array(A),w=new Uint32Array(A),i=new Float32Array(A),o=new Float64Array(A),G=new BigInt64Array(A),new BigUint64Array(A)}g.agerrMessages=[],g.stderrMessages=[],Q=A=>g.stderrMessages.push(A);var K="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,h=(A,I,g)=>{for(var Q=I+g,B=I;A[B]&&!(B>=Q);)++B;if(B-I>16&&A.buffer&&K)return K.decode(A.subarray(I,B));for(var C="";I<B;){var E=A[I++];if(128&E){var D=63&A[I++];if(192!=(224&E)){var w=63&A[I++];if((E=224==(240&E)?(15&E)<<12|D<<6|w:(7&E)<<18|D<<12|w<<6|63&A[I++])<65536)C+=String.fromCharCode(E);else{var i=E-65536;C+=String.fromCharCode(55296|i>>10,56320|1023&i)}}else C+=String.fromCharCode((31&E)<<6|D)}else C+=String.fromCharCode(E)}return C},s=(A,I)=>A?h(D,A,I):"";function N(A){this.excPtr=A,this.ptr=A-24,this.set_type=function(A){w[this.ptr+4>>2]=A},this.get_type=function(){return w[this.ptr+4>>2]},this.set_destructor=function(A){w[this.ptr+8>>2]=A},this.get_destructor=function(){return w[this.ptr+8>>2]},this.set_caught=function(A){A=A?1:0,B[this.ptr+12>>0]=A},this.get_caught=function(){return 0!=B[this.ptr+12>>0]},this.set_rethrown=function(A){A=A?1:0,B[this.ptr+13>>0]=A},this.get_rethrown=function(){return 0!=B[this.ptr+13>>0]},this.init=function(A,I){this.set_adjusted_ptr(0),this.set_type(A),this.set_destructor(I)},this.set_adjusted_ptr=function(A){w[this.ptr+16>>2]=A},this.get_adjusted_ptr=function(){return w[this.ptr+16>>2]},this.get_exception_ptr=function(){if(_(this.get_type()))return w[this.excPtr>>2];var A=this.get_adjusted_ptr();return 0!==A?A:this.excPtr}}var k={isAbs:A=>"/"===A.charAt(0),splitPath:A=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(A).slice(1),normalizeArray:(A,I)=>{for(var g=0,Q=A.length-1;Q>=0;Q--){var B=A[Q];"."===B?A.splice(Q,1):".."===B?(A.splice(Q,1),g++):g&&(A.splice(Q,1),g--)}if(I)for(;g;g--)A.unshift("..");return A},normalize:A=>{var I=k.isAbs(A),g="/"===A.substr(-1);return(A=k.normalizeArray(A.split("/").filter((A=>!!A)),!I).join("/"))||I||(A="."),A&&g&&(A+="/"),(I?"/":"")+A},dirname:A=>{var I=k.splitPath(A),g=I[0],Q=I[1];return g||Q?(Q&&(Q=Q.substr(0,Q.length-1)),g+Q):"."},basename:A=>{if("/"===A)return"/";var I=(A=(A=k.normalize(A)).replace(/\/$/,"")).lastIndexOf("/");return-1===I?A:A.substr(I+1)},join:function(){var A=Array.prototype.slice.call(arguments);return k.normalize(A.join("/"))},join2:(A,I)=>k.normalize(A+"/"+I)},L=A=>(L=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return A=>crypto.getRandomValues(A);F("initRandomDevice")})())(A),U={resolve:function(){for(var A="",I=!1,g=arguments.length-1;g>=-1&&!I;g--){var Q=g>=0?arguments[g]:r.cwd();if("string"!=typeof Q)throw new TypeError("Arguments to path.resolve must be strings");if(!Q)return"";A=Q+"/"+A,I=k.isAbs(Q)}return(I?"/":"")+(A=k.normalizeArray(A.split("/").filter((A=>!!A)),!I).join("/"))||"."},relative:(A,I)=>{function g(A){for(var I=0;I<A.length&&""===A[I];I++);for(var g=A.length-1;g>=0&&""===A[g];g--);return I>g?[]:A.slice(I,g-I+1)}A=U.resolve(A).substr(1),I=U.resolve(I).substr(1);for(var Q=g(A.split("/")),B=g(I.split("/")),C=Math.min(Q.length,B.length),E=C,D=0;D<C;D++)if(Q[D]!==B[D]){E=D;break}var w=[];for(D=E;D<Q.length;D++)w.push("..");return(w=w.concat(B.slice(E))).join("/")}},S=[],Y=A=>{for(var I=0,g=0;g<A.length;++g){var Q=A.charCodeAt(g);Q<=127?I++:Q<=2047?I+=2:Q>=55296&&Q<=57343?(I+=4,++g):I+=3}return I},J=(A,I,g,Q)=>{if(!(Q>0))return 0;for(var B=g,C=g+Q-1,E=0;E<A.length;++E){var D=A.charCodeAt(E);if(D>=55296&&D<=57343)D=65536+((1023&D)<<10)|1023&A.charCodeAt(++E);if(D<=127){if(g>=C)break